/* ============================================================
 * AI新品发现（page-new.php）
 *  - 整体宽度：复用父主题原生容器 .container（= 后台「内容页宽度」main_width），
 *    与网址工具分类/汇总列表页同一套方法，不硬编码宽度。
 *  - 背景框（头部 Banner / 工具卡 / 弹窗）圆角 = 主题「内容圆角」(--main-radius)。
 *  - 按钮 / 徽章 / 标签的配色与形状严格照搬参考文件 AI新品发现.html。
 *  - 精选 / 国内不可用 / 价格 / 平台 标签直接复用详情页头部同款
 *    (.io9200-featured-tag / .io9200-cn-tag / .io9200-tag，见 front.css)。
 * 父主题零改动。
 * ============================================================ */

.io9-newpage {
	--io-radius: var(--theme-border-radius, 12px);        /* 跟随后台「内容圆角」 */
	--io-shadow: 0 4px 12px rgba(0, 0, 0, .03), 0 1px 3px rgba(0, 0, 0, .02);
	--io-ink: #0a1a2f;                                    /* 参考文件主色 */
	--io-line: #f0f3f8;
	padding: 15px;
	box-sizing: border-box;
}

/* 本页无侧栏：抵消父主题 .sidebar_right .content-layout{margin-right:325px} */
.io9-newpage .content-layout {
	margin-right: 0 !important;
}

/* ---------------- 1) 头部 Banner ---------------- */
.io9-new-header {
	background: var(--main-bg-color, #fff);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: var(--io-radius);
	box-shadow: var(--io-shadow);
	padding: 20px 30px;
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
}
.io9-new-hl {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.io9-new-hl h1 {
	font-size: 28px;
	font-weight: 700;
	color: var(--main-color, #0a1a2f);
	letter-spacing: -.5px;
	line-height: 1.2;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.io9-new-hl h1 i { color: #6366f1; }

/* 微信订阅更新 */
.io9-new-wx {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0f4ff;
	color: #2563eb;
	padding: 6px 16px;
	border-radius: 40px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #dbeafe;
	transition: .2s;
	user-select: none;
}
.io9-new-wx:hover { background: #dbeafe; }
.io9-new-wx i { font-size: 16px; }

.io9-new-hr { display: flex; align-items: center; gap: 12px; }

/* 挑选AI工具 */
.io9-new-pick {
	background: var(--io-ink);
	color: #fff !important;
	padding: 8px 24px;
	border-radius: 40px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	transition: .2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}
.io9-new-pick:hover {
	background: #1e2f4a;
	box-shadow: 0 4px 12px rgba(10, 26, 47, .15);
}
.io9-new-pick i { font-size: 14px; }

/* ---------------- 2) 列表 & 分组标题 ---------------- */
.io9-new-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.io9-new-group {
	font-size: 20px;
	font-weight: 600;
	color: var(--main-color, #0a1a2f);
	padding: 8px 0 6px;
	border-bottom: 1px dashed #d1d9e6;
	display: flex;
	align-items: center;
	gap: 12px;
}
.io9-new-group:not(:first-child) { margin-top: 8px; }
.io9-new-group-n {
	font-size: 15px;
	font-weight: 400;
	color: #64748b;
	background: #f1f5f9;
	padding: 0 12px;
	border-radius: 30px;
	line-height: 1.6;
}

.io9-new-empty {
	background: var(--main-bg-color, #fff);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: var(--io-radius);
	padding: 48px 16px;
	text-align: center;
	color: #94a3b8;
	font-size: 15px;
}

/* ---------------- 3) 工具卡 ---------------- */
.io9-new-card {
	background: var(--main-bg-color, #fff);
	border-radius: var(--io-radius);
	box-shadow: var(--io-shadow);
	display: flex;
	flex-direction: row;
	overflow: hidden;
	border: 1px solid var(--io-line);
	transition: .2s;
}
.io9-new-card:hover {
	box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .06);
	border-color: #d9e0eb;
}

/* 左侧：网站预览截图，强制 3:2 */
.io9-new-thumb {
	flex: 0 0 300px;
	width: 300px;
	aspect-ratio: 3 / 2;
	min-height: 200px;
	align-self: stretch; /* 保持 3:2，不被 flex 行 stretch 拉变形 */
	background: #eef2f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-decoration: none !important;
}
.io9-new-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform .3s;
}
.io9-new-card:hover .io9-new-thumb img { transform: scale(1.03); }
.io9-new-thumb-ph { font-size: 36px; color: #94a3b8; opacity: .5; }

/* 右侧内容 */
.io9-new-body {
	flex: 1;
	min-width: 0;
	padding: 14px 22px 14px 22px;
	display: flex;
	flex-direction: column;
}

/* 行 1：名称 + 精选/国内不可用 + 发布时间 */
.io9-new-row1 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 2px;
}
.io9-new-name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}
.io9-new-name-text {
	color: var(--main-color, #0a1a2f) !important;
	text-decoration: none !important;
}
.io9-new-name-text:hover { color: var(--theme-color, #4f46e5) !important; }
.io9-new-badges { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.io9-new-badges .io9200-featured-tag,
.io9-new-badges .io9200-cn-tag { margin-left: 0; }

.io9-new-time {
	font-size: 13px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 12px;
	border-radius: 30px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.4;
}
.io9-new-time i { font-size: 12px; }

/* 行 2：简介（最多 3 行，吸收卡片纵向空白） */
.io9-new-desc {
	font-size: 14.5px;
	color: #334155;
	line-height: 1.6;
	margin: 8px 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 行 3：价格 / 平台（同详情页 .io9200-metabar 风格，但卡片内不加底部线） */
.io9-new-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 8px 0 10px;
}
.io9-new-meta-block {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

/* 行 4：标签行（标签本体复用 .io9200-tag，见 front.css） */
.io9-new-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-bottom: 6px;
}
.io9-new-tags .io9200-tag { font-size: 12px; }
/* 行 4 下方一条浅灰细线 */
.io9-new-tags--taxo {
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 0;
}
/* 说明标签在卡片内垂直居中 */
.io9-new-card .io9200-tag-label { flex: 0 0 auto; }

/* 末行：按钮组 */
.io9-new-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding-top: 6px;
	border-top: 1px solid #f1f5f9;
}
/* 行 4 存在时，它自带细线，按钮组不再重复画线 */
.io9-new-tags--taxo + .io9-new-actions { border-top: none; padding-top: 0; }

.io9-new-btn {
	padding: 6px 20px;
	border-radius: 40px;
	font-weight: 600;
	font-size: 13px;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: .2s;
	background: #fff;
	color: #1e293b;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.6;
}
.io9-new-btn--primary {
	background: var(--io-ink);
	color: #fff !important;
	border-color: var(--io-ink);
}
.io9-new-btn--primary:hover {
	background: #1e2f4a;
	border-color: #1e2f4a;
	color: #fff !important;
	box-shadow: 0 4px 10px rgba(10, 26, 47, .15);
}
.io9-new-btn--outline { color: #1e293b !important; }
.io9-new-btn--outline:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a !important;
}

/* 收藏：父主题原生 get_posts_star_btn() 输出，这里只做参考文件外观 */
.io9-new-card .io9-new-fav {
	background: transparent;
	border: 1px solid #e2e8f0;
	color: #64748b !important;
	padding: 6px 16px;
	border-radius: 40px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	transition: .2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;              /* 推到最右侧 */
	text-decoration: none !important;
	line-height: 1.6;
}
.io9-new-card .io9-new-fav:hover,
.io9-new-card .io9-new-fav.liked,
.io9-new-card .io9-new-fav.active {
	background: #fee2e2;
	border-color: #fecaca;
	color: #dc2626 !important;
}
.io9-new-card .io9-new-fav i { font-size: 14px; }
.io9-new-card .io9-new-fav .star-count { font-size: 12px; opacity: .85; }

/* ---------------- 4) 加载态 / 瀑布流提示 / 到底 ---------------- */
.io9-new-loading {
	text-align: center;
	padding: 22px 0 6px;
	color: #94a3b8;
	font-size: 14px;
}
.io9-new-loading i { margin-right: 6px; color: #6366f1; }

.io9-new-hint {
	text-align: center;
	padding: 34px 0 18px;
	color: #94a3b8;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: .7;
	animation: io9NewPulse 2s infinite;
}
.io9-new-hint i { font-size: 32px; color: #6366f1; }
@keyframes io9NewPulse {
	0%   { opacity: .5; transform: translateY(0); }
	50%  { opacity: 1;  transform: translateY(6px); }
	100% { opacity: .5; transform: translateY(0); }
}

.io9-new-end {
	text-align: center;
	padding: 30px 0 16px;
	color: #94a3b8;
	font-size: 14px;
}

/* ---------------- 5) 微信二维码弹窗 ---------------- */
.io9-new-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	backdrop-filter: blur(6px);
	z-index: 99999;
	justify-content: center;
	align-items: center;
	padding: 16px;
}
.io9-new-modal.active { display: flex; }
body.io9-new-modal-open { overflow: hidden; }

.io9-new-modalbox {
	background: var(--main-bg-color, #fff);
	padding: 30px 35px 32px;
	border-radius: calc(var(--theme-border-radius, 12px) + 8px);
	text-align: center;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .15);
	max-width: 340px;
	width: 100%;
	position: relative;
	border: 1px solid rgba(0, 0, 0, .06);
	box-sizing: border-box;
}
.io9-new-qr { margin-bottom: 18px; }
.io9-new-qr img {
	width: 180px;
	height: 180px;
	border-radius: 16px;
	background: #f1f5f9;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
	border: 2px solid #f1f5f9;
}
.io9-new-qr-ph {
	width: 180px;
	height: 180px;
	border-radius: 16px;
	background: #f1f5f9;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #94a3b8;
	font-size: 12px;
	line-height: 1.5;
	padding: 0 14px;
	text-align: center;
	box-sizing: border-box;
}
.io9-new-qr-ph i { font-size: 34px; color: #22c55e; }

.io9-new-qrsub {
	font-size: 15px;
	color: var(--main-color, #1e293b);
	margin-top: 4px;
	font-weight: 500;
}
.io9-new-qrsub:last-of-type {
	font-weight: 400;
	color: #64748b;
	font-size: 14px;
	margin-top: 2px;
}
.io9-new-close {
	margin-top: 22px;
	background: #f1f5f9;
	border: none;
	padding: 8px 36px;
	border-radius: 40px;
	font-weight: 600;
	cursor: pointer;
	color: #334155;
	transition: .2s;
	font-size: 14px;
}
.io9-new-close:hover { background: #e2e8f0; }
.io9-new-deco {
	position: absolute;
	top: -10px;
	right: -10px;
	font-size: 40px;
	opacity: .05;
	pointer-events: none;
}

/* ---------------- 6) 响应式 ---------------- */
@media (max-width: 992px) {
	.io9-new-thumb { flex: 0 0 240px; width: 240px; min-height: 160px; }
	.io9-new-body { padding: 12px 16px; }
}
@media (max-width: 768px) {
	.io9-newpage { padding: 10px 5px; }
	.io9-new-header { padding: 16px 18px; flex-direction: column; align-items: stretch; gap: 14px; }
	.io9-new-hl { flex-wrap: wrap; }
	.io9-new-hl h1 { font-size: 22px; }
	.io9-new-hr { justify-content: flex-end; }
	.io9-new-card { flex-direction: column; }
	.io9-new-thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 2; min-height: unset; }
	.io9-new-row1 { flex-direction: column; align-items: flex-start; }
	.io9-new-time { align-self: flex-start; }
	.io9-new-name { font-size: 18px; }
	.io9-new-card .io9-new-fav { margin-left: 0; }
	.io9-new-group { font-size: 17px; }
}
