/*
Theme Name: 泰趣味 · 门户
Theme URI: https://www.taiquwei.com/
Author: 泰趣味工作室
Description: 泰趣味 AI 视觉素材库矩阵门户：深色画布、画廊式大图卡片、结构化信息层级，为素材库导流与长尾内容设计。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: taiquwei
*/

/* =========================================================================
   1. 设计令牌
   ====================================================================== */
:root {
	--ink: #07070a;
	--bg: #0a0a0c;
	--surface: #101015;
	--surface-2: #16161d;
	--surface-3: #1c1c25;
	--line: rgba(255, 255, 255, .075);
	--line-2: rgba(255, 255, 255, .14);
	--text: #f2f3f7;
	--text-2: #9ea2ae;
	--text-3: #6a6e7b;
	--accent: #a99bff;
	--accent-d: #8b74ff;
	--accent-soft: rgba(139, 116, 255, .14);
	--gold: #e3bd8d;
	--wrap: 1240px;
	--r-s: 10px;
	--r-m: 16px;
	--r-l: 24px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
	--mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
	--ease: cubic-bezier(.22, .9, .28, 1);
}

/* =========================================================================
   2. 重置
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .22s var(--ease), opacity .22s var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.028em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }
::selection { background: var(--accent); color: #0a0a0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px 18px; background: var(--accent); color: #0a0a0c; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* =========================================================================
   3. 通用组件
   ====================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	height: 44px; padding: 0 20px;
	border-radius: 999px;
	font-size: 14px; font-weight: 650; letter-spacing: -.01em;
	white-space: nowrap;
	transition: transform .26s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .26s var(--ease), color .22s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-primary {
	background: linear-gradient(180deg, #b9adff, #9182ff);
	color: #0a0a0c;
	box-shadow: 0 10px 30px -12px rgba(139, 116, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover { color: #0a0a0c; transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(139, 116, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); color: var(--text); transform: translateY(-2px); }
.btn-arrow { transition: transform .28s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-more { font-size: 14px; font-weight: 600; color: var(--text-2); }
.link-more:hover { color: var(--accent); }

/* 区块标题 */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-eyebrow {
	font-size: 11.5px; font-weight: 700; letter-spacing: .22em;
	color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
.sec-desc { margin-top: 16px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }

/* =========================================================================
   4. 页头
   ====================================================================== */
.site-head {
	position: sticky; top: 0; z-index: 90;
	background: rgba(10, 10, 12, 0);
	border-bottom: 1px solid transparent;
	transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
.site-head.is-stuck {
	background: rgba(8, 8, 11, .82);
	border-bottom-color: var(--line);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
}
.head-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--text); }
.brand-mark { display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.brand-text em { font-size: 9px; font-style: normal; letter-spacing: .2em; color: var(--text-3); margin-top: 3px; }

.nav-main { margin-right: auto; }
/* 移动端专属：桌面端隐藏快捷入口与 CTA */
.nav-quick, .nav-cta { display: none; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-list a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--text); }

.head-actions { display: flex; align-items: center; gap: 18px; }
.head-link { font-size: 13px; color: var(--text-3); }
.head-link:hover { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================================
   5. Hero
   ====================================================================== */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero-glow {
	position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: 0;
	background:
		radial-gradient(46% 46% at 62% 30%, rgba(139, 116, 255, .26), transparent 70%),
		radial-gradient(38% 38% at 18% 12%, rgba(227, 189, 141, .1), transparent 72%);
	filter: blur(20px);
	pointer-events: none;
}
.hero-grid {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(70% 55% at 50% 22%, #000 0%, transparent 78%);
	-webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-size: 11px; font-weight: 700; letter-spacing: .2em;
	color: var(--text-2); text-transform: uppercase; margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(169, 155, 255, .16); }

.hero h1 { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: 1.06; letter-spacing: -.04em; }
.grad {
	background: linear-gradient(96deg, #fff 0%, #cfc6ff 42%, #a99bff 72%, #e3bd8d 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { max-width: 520px; margin-top: 24px; color: var(--text-2); font-size: 16px; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat { padding-right: 16px; }
.stat-num { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.stat-sub { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

/* Hero 图片堆叠 */
.hero-visual { position: relative; height: 620px; }
.shot {
	position: absolute; border-radius: var(--r-l); overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95);
	background: var(--surface-2);
	transition: transform .6s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
	position: absolute; left: 12px; bottom: 12px;
	padding: 5px 11px; border-radius: 999px;
	font-size: 10.5px; font-weight: 650; letter-spacing: .04em;
	background: rgba(8, 8, 11, .66); border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.shot-a { width: 52%; height: 74%; right: 2%; top: 2%; z-index: 3; transform: rotate(1.4deg); }
.shot-b { width: 42%; height: 56%; left: 0; top: 22%; z-index: 2; transform: rotate(-2.6deg); }
.shot-c { width: 34%; height: 42%; right: 24%; bottom: 0; z-index: 4; transform: rotate(2deg); }
.hero-visual:hover .shot-a { transform: rotate(0deg) translateY(-6px); }
.hero-visual:hover .shot-b { transform: rotate(-1deg) translateY(4px); }
.hero-visual:hover .shot-c { transform: rotate(0deg) translateY(-4px); }

.float-tag {
	position: absolute; z-index: 6;
	padding: 7px 13px; border-radius: 999px;
	font-size: 11px; font-weight: 650; letter-spacing: .02em;
	background: rgba(18, 18, 24, .82); border: 1px solid var(--line-2);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9);
	animation: floaty 6s ease-in-out infinite;
}
.tag-1 { left: -8px; top: 8%; color: var(--accent); }
.tag-2 { right: 6%; bottom: 30%; color: var(--gold); animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-logos {
	position: relative; z-index: 2;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px;
	margin-top: 62px; padding: 26px 28px;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-logos span { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }

/* =========================================================================
   6. 素材库 Bento
   ====================================================================== */
.libraries { padding: 110px 0; position: relative; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.lib-card {
	position: relative; display: block; min-height: 460px;
	border-radius: var(--r-l); overflow: hidden;
	border: 1px solid var(--line);
	background: var(--surface);
	isolation: isolate;
	transition: border-color .35s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.lib-pose { grid-column: span 7; min-height: 520px; }
.lib-costume { grid-column: span 5; min-height: 520px; }
.lib-portrait { grid-column: span 5; }
.lib-studio { grid-column: span 7; border-color: rgba(227, 189, 141, .2); }
.lib-studio:hover { border-color: rgba(227, 189, 141, .42); }
.lib-studio .lib-label { color: var(--gold); }
.lib-studio .lib-go { color: var(--gold); }
.lib-studio:hover .lib-go { color: var(--gold); }
.lib-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 1); }

.lib-media { position: absolute; inset: 0; z-index: 0; }
.lib-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.lib-card:hover .lib-media img { transform: scale(1.05); }
.lib-veil {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 8, 11, .12) 0%, rgba(8, 8, 11, .5) 44%, rgba(8, 8, 11, .93) 80%, #08080b 100%),
		linear-gradient(90deg, rgba(8, 8, 11, .5), transparent 62%);
	transition: opacity .4s;
}
/* 线稿库预览是白底图，上半段留亮、文字区快速压黑，避免紫字压在白底上看不清 */
.lib-pose .lib-veil {
	background: linear-gradient(180deg, rgba(8, 8, 11, 0) 0%, rgba(8, 8, 11, .1) 26%, rgba(8, 8, 11, .72) 50%, rgba(8, 8, 11, .97) 64%, #08080b 100%);
}
.lib-studio .lib-veil { background: linear-gradient(120deg, rgba(8, 8, 11, .95) 0%, rgba(8, 8, 11, .78) 46%, rgba(8, 8, 11, .3) 100%); }

.lib-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 26px 26px 24px; }
.lib-label { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }
.lib-body h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -.03em; }
.lib-desc { margin-top: 10px; font-size: 13.6px; line-height: 1.72; color: var(--text-2); max-width: 44ch; }
.lib-foot { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.lib-num { font-size: 13px; color: var(--text-2); }
.lib-num strong { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--text); margin-right: 7px; font-variant-numeric: tabular-nums; }
.lib-go { margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--text-3); transition: color .3s, transform .3s var(--ease); }
.lib-card:hover .lib-go { color: var(--accent); transform: translateX(4px); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lib-tags li {
	padding: 4px 9px; border-radius: 6px;
	font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
	color: var(--text-2); background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
}
.lib-card:hover .lib-tags li { border-color: rgba(169, 155, 255, .3); color: var(--text); }

/* =========================================================================
   7. 为什么
   ====================================================================== */
.why { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(139, 116, 255, .05) 50%, transparent); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.why-item { position: relative; padding: 34px 26px 38px; background: var(--bg); transition: background .35s; }
.why-item:hover { background: var(--surface); }
.why-no { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent); opacity: .8; }
.why-item h3 { font-size: 17px; margin: 16px 0 12px; letter-spacing: -.02em; }
.why-item p { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

/* =========================================================================
   8. 教程
   ====================================================================== */
.guides { padding: 100px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card {
	display: flex; flex-direction: column;
	border-radius: var(--r-m); overflow: hidden;
	border: 1px solid var(--line); background: var(--surface);
	transition: transform .38s var(--ease), border-color .3s, box-shadow .38s var(--ease);
}
.guide-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .2); box-shadow: 0 32px 60px -44px #000; color: var(--text); }
.guide-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.guide-card:hover .guide-thumb img { transform: scale(1.045); }
.guide-thumb--empty { display: grid; place-items: center; background: linear-gradient(135deg, #1b1b24, #12121a); }
.guide-thumb--empty span { font-size: 42px; font-weight: 700; color: rgba(255, 255, 255, .12); }
.guide-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.guide-meta { font-size: 11.5px; letter-spacing: .06em; color: var(--text-3); }
.guide-body h3 { font-size: 18px; line-height: 1.42; letter-spacing: -.02em; }
.guide-excerpt { font-size: 13.4px; line-height: 1.72; color: var(--text-2); }

/* =========================================================================
   9. CTA
   ====================================================================== */
.cta { padding: 20px 0 100px; }
.cta-inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
	padding: 48px 44px; border-radius: var(--r-l);
	border: 1px solid rgba(169, 155, 255, .22);
	background:
		radial-gradient(120% 100% at 0% 0%, rgba(139, 116, 255, .16), transparent 60%),
		linear-gradient(120deg, #121219, #0d0d12);
	position: relative; overflow: hidden;
}
.cta-inner::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
	border-radius: 50%; background: radial-gradient(circle, rgba(227, 189, 141, .18), transparent 70%);
	pointer-events: none;
}
.cta-inner h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta-inner p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   10. 页脚
   ====================================================================== */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 34px; background: #08080b; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.foot-brand .brand-mark { color: var(--accent); margin-bottom: 16px; }
.foot-claim { font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.foot-note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-col h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.foot-col a span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.foot-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.foot-langs li { margin: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 12.5px; color: var(--text-3); }
.foot-meta a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }

.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 80;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--line-2); background: rgba(18, 18, 24, .86);
	color: var(--text-2); font-size: 15px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .3s, visibility .3s, transform .3s, color .2s, border-color .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   11. 内页（文章 / 单页 / 归档 / 404）
   ====================================================================== */
.site-main { min-height: 40vh; }
.page-wrap { padding: 56px 0 90px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); margin-bottom: 26px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs em { font-style: normal; color: var(--text-2); }

.article-head { max-width: 780px; margin-bottom: 34px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.18; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body { max-width: 780px; font-size: 16.5px; line-height: 1.86; color: #d8dae2; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.1em; color: var(--text); }
.article-body h3 { font-size: 1.24rem; margin-top: 1.9em; color: var(--text); }
.article-body h4 { font-size: 1.06rem; margin-top: 1.7em; color: var(--text); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .5em; }
.article-body blockquote {
	margin: 1.9em 0; padding: 4px 0 4px 22px;
	border-left: 2px solid var(--accent);
	color: var(--text-2); font-size: 1.02em;
}
.article-body figure { margin: 1.9em 0; }
.article-body img, .article-body video { border-radius: var(--r-m); }
.article-body figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.article-body code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }
.article-body pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95em; }
@media (max-width: 900px) {
	/* 窄屏表格改成横向可滚动容器，避免撑破页面 */
	.article-body table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
	.article-body table th, .article-body table td { white-space: nowrap; }
}
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--surface-2); }

.article-foot { max-width: 780px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.post-nav a { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .3s, background .3s; }
.post-nav a:hover { border-color: var(--line-2); background: var(--surface); }
.post-nav span { display: block; font-size: 11px; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; margin-bottom: 7px; }
.post-nav strong { font-size: 14.5px; font-weight: 600; }

/* 列表页 */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.page-lead { color: var(--text-2); font-size: 15px; max-width: 640px; margin-bottom: 40px; }

/* 分页 */
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 50px; }
.pager .page-numbers { padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--text-2); }
.pager .page-numbers.current, .pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* 404 */
.err-wrap { padding: 120px 0 140px; text-align: center; }
.err-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1;
	background: linear-gradient(120deg, #fff, #7a6dd8 60%, #e3bd8d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err-wrap h1 { margin-top: 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.err-wrap p { margin-top: 14px; color: var(--text-2); }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* =========================================================================
   12. 动效
   ====================================================================== */
/* 只有 JS 可用时才隐藏待渐显元素，避免无 JS / 爬虫 / 打印时内容不可见 */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.float-tag { animation: none; }
	html { scroll-behavior: auto; }
}

/* =========================================================================
   13. 响应式
   ====================================================================== */
@media (max-width: 1120px) {
	.head-link { display: none; }
	.hero-inner { grid-template-columns: 1fr; gap: 56px; }
	.hero-visual { height: 500px; max-width: 560px; }
	.hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.foot-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
	.wrap { padding: 0 20px; }
	.head-inner { height: 66px; gap: 16px; }
	/* 手机端把图片提到数据条之前，首屏就能看到画面 */
	.hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.hero-copy { display: contents; }
	.hero-visual { order: 2; margin-top: 38px; }
	.hero-stats { order: 3; margin-top: 38px; }
	.nav-main {
		position: fixed; inset: 66px 0 auto 0; z-index: 89;
		/* 必须完全不透明：0.97 的黑会让下面的大标题透出 3%，在深色页面上非常脏 */
		background: #08080b;
		border-bottom: 1px solid var(--line);
		padding: 10px 20px 24px;
		max-height: calc(100vh - 66px); overflow-y: auto; overscroll-behavior: contain;
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: opacity .3s, transform .3s var(--ease), visibility .3s;
	}
	.nav-main.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list a {
		display: flex; align-items: center; justify-content: space-between;
		padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line);
	}
	.nav-list a::after {
		content: "→"; color: var(--text-3); font-size: 15px;
		transition: transform .25s var(--ease), color .25s;
	}
	.nav-list a:hover { color: var(--text); }
	.nav-list a:hover::after { color: var(--accent); transform: translateX(3px); }
	.nav-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 16px; }
	.nav-quick a {
		display: block; padding: 10px 6px; text-align: center;
		font-size: 13px; font-weight: 600; color: var(--text-2);
		border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
	}
	.nav-quick a:hover { border-color: var(--accent); color: var(--accent); }
	.nav-cta { display: inline-flex; width: 100%; }
	body.nav-open { overflow: hidden; }
	.burger { display: block; }
	/* 手机端保留一个主 CTA，否则顶栏只剩一个汉堡按钮，主路径断了 */
	.head-actions .btn { height: 36px; padding: 0 14px; font-size: 12.5px; }
	.hero { padding-top: 48px; }
	.hero-visual { height: 420px; }
	.hero-logos { gap: 10px 20px; padding: 20px; }
	.bento { grid-template-columns: 1fr; }
	.lib-pose, .lib-costume, .lib-portrait, .lib-studio { grid-column: span 1; min-height: 400px; }
	.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guide-grid, .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta-inner { padding: 34px 26px; }
	.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-head.row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
	.hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
	.hero-lead { font-size: 15px; }
	.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
	.stat { padding-right: 8px; }
	.hero-visual { height: 380px; }
	.shot-a { width: 60%; height: 70%; }
	.shot-b { width: 46%; height: 50%; top: 30%; left: 3%; transform: rotate(-1.4deg); }
	.shot-c { width: 38%; height: 38%; right: 20%; transform: rotate(1deg); }
	/* 小屏上标签会压到画面、卡片旋转也会溢出裁字，索性收起来 */
	.float-tag { display: none; }
	.shot figcaption { left: 8px; bottom: 8px; padding: 4px 8px; font-size: 9.5px; }
	.why-grid { grid-template-columns: 1fr; }
	.guide-grid, .post-list { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.foot-cols { grid-template-columns: 1fr; gap: 26px; }
	.foot-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-bottom { flex-direction: column; }
	.cta-actions { width: 100%; }
	.cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== 语言切换器 ===== */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher-btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 36px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 10px;
	background: rgba(255, 255, 255, .04); color: var(--text-2);
	font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
	cursor: pointer; list-style: none; user-select: none;
	transition: border-color .2s, color .2s, background .2s;
}
.lang-switcher-btn::-webkit-details-marker { display: none; }
.lang-switcher-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .07); }
.lang-switcher[open] .lang-switcher-btn { color: var(--text); border-color: var(--accent); }
.lang-switcher-menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
	min-width: 150px; margin: 0; padding: 5px; list-style: none;
	background: #121218; border: 1px solid var(--line-2); border-radius: 12px;
	box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .75);
}
.lang-switcher-menu a {
	display: block; padding: 7px 10px; border-radius: 8px;
	font-size: 13px; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.lang-switcher-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-switcher-menu li.on a { color: var(--accent); font-weight: 600; }
.nav-lang { margin-top: 14px; }
.nav-lang .lang-switcher { display: block; }
.nav-lang .lang-switcher-btn { width: 100%; justify-content: space-between; }
.nav-lang .lang-switcher-menu { right: auto; left: 0; width: 100%; }
@media (max-width: 900px) {
	.head-actions .lang-switcher { display: none; }
}
@media (min-width: 901px) {
	.nav-lang { display: none; }
}

/* 顶栏：语言切换器与右侧操作不换行；窄屏收起重复的素材库文字链接 */
.head-actions { flex-wrap: nowrap; }
@media (max-width: 1280px) {
	.head-link { display: none; }
}
