/* ============================================================
   刚好工作室官网 ganghao.cc ｜ 全局样式
   品牌色：紫 #8b5cf6 / 青 #22d3ee ｜ 暗紫科技风 ｜ 移动端优先
   合规：站内零交易 —— 全站无购物车/支付/价格/结算类元素
   ============================================================ */

:root {
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --purple-soft: #a78bfa;
  --cyan-soft: #67e8f9;
  --bg: #0f0a1e;
  --bg-2: #161029;
  --bg-card: #1c1436;
  --bg-card-2: #241a45;
  --line: #322554;
  --bg-deep: #0c0818;
  --gold: #fbbf24;
  --on-gold: #0f0a1e;
  --text: #ece9f7;
  --text-dim: #aaa3c7;
  --text-faint: #8780a5;
  --glow-purple: rgba(139, 92, 246, .35);
  --glow-cyan: rgba(34, 211, 238, .30);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 64px;
  --grad: linear-gradient(120deg, var(--purple), var(--cyan));
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,.16), rgba(34,211,238,.16));
  --header-bg: rgba(15, 10, 30, .72);
  --star: #fbbf24;
  font-synthesis: none;
}

/* ============ 主题方案（2026-10-17 老板追加：右上角切换，全站跟随） ============ */
/* light：白底黑字 */
html[data-theme="light"] {
  /* DS-03（2026-10-20）：浅色下重定义品牌色，原 #8b5cf6/#22d3ee 直接做正文/小字在白底上对比度不足(青仅 1.7:1) */
  --purple: #6d28d9;
  --purple-soft: #7c3aed;
  --cyan: #0e7490;
  --cyan-soft: #0f766e;
  --bg: #f6f5fa;
  --bg-2: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f0edf9;
  --line: #e2dcf1;
  --bg-deep: #ece9f7;
  --gold: #b45309;
  --on-gold: #ffffff;
  --star: var(--gold);
  --text: #1a1530;
  --text-dim: #5b5578;
  --text-faint: #6d6787;
  --glow-purple: rgba(139, 92, 246, .14);
  --glow-cyan: rgba(34, 211, 238, .12);
  --header-bg: rgba(255, 255, 255, .86);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(720px 480px at 12% -8%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(680px 520px at 92% 8%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(139,92,246,.06), transparent 60%);
}
/* warm：暖黄主题 */
html[data-theme="warm"] {
  /* DS-03：暖色底同样重定义品牌色 */
  --purple: #6d28d9;
  --purple-soft: #7c3aed;
  --cyan: #0f766e;
  --cyan-soft: #115e59;
  --bg: #faf4e8;
  --bg-2: #fffaf0;
  --bg-card: #fffdf6;
  --bg-card-2: #f6eeda;
  --line: #e7d9bd;
  --bg-deep: #f3e9d2;
  --gold: #9a6a12;
  --on-gold: #ffffff;
  --star: var(--gold);
  --text: #3a2c1a;
  --text-dim: #756553;
  --text-faint: #7b6852;
  --glow-purple: rgba(191, 138, 74, .16);
  --glow-cyan: rgba(214, 160, 84, .13);
  --header-bg: rgba(255, 250, 240, .88);
}
html[data-theme="warm"] body::before {
  background:
    radial-gradient(720px 480px at 12% -8%, rgba(191,138,74,.13), transparent 60%),
    radial-gradient(680px 520px at 92% 8%, rgba(214,160,84,.10), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(191,138,74,.08), transparent 60%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* 背景光晕 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 480px at 12% -8%, var(--glow-purple), transparent 60%),
    radial-gradient(680px 520px at 92% 8%, var(--glow-cyan), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, var(--glow-purple), transparent 60%);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand .logo-mark {
  height: 30px; width: auto; display: block; flex: 0 0 auto;
  border-radius: 8px;
}
.brand .brand-name { font-size: 17px; }
.brand .brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
  transition: .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-card-2); }
.nav a.cta-mini {
  background: var(--grad); color: #0f0a1e; font-weight: 700;
  box-shadow: 0 0 16px var(--glow-cyan);
}

/* 创作者服务下拉（桌面端） */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border: none; border-radius: 999px; font-size: 14px;
  color: var(--text-dim); background: transparent; cursor: pointer; transition: .2s; white-space: nowrap;
  font-family: inherit;
}
.nav-drop-toggle:hover, .nav-drop.is-active .nav-drop-toggle { color: var(--text); background: var(--bg-card-2); }
.nav-drop-toggle svg { transition: transform .2s; }
.nav-drop.open .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 168px; padding: 8px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px;
  color: var(--text-dim); white-space: nowrap;
}
.nav-drop-menu a:hover, .nav-drop-menu a.active { color: var(--text); background: var(--bg-card-2); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-card); cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(15, 10, 30, .97);
  display: none; flex-direction: column; padding: 18px 20px; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; border-radius: 12px; font-size: 16px; color: var(--text);
  border: 1px solid var(--line); background: var(--bg-card);
}
.mobile-nav a.cta-mini { background: var(--grad); color: #0f0a1e; font-weight: 700; border: none; }
.mobile-nav .mob-group { display: grid; gap: 6px; margin: 4px 0 8px; }
.mobile-nav .mob-group-title {
  padding: 6px 16px 2px; font-size: 12px; letter-spacing: 1.5px;
  color: var(--cyan); font-weight: 700; text-transform: uppercase;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.section-title .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 28px; }

.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 10px;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s; line-height: 1;
}
.btn-primary { background: var(--grad); color: #0f0a1e; box-shadow: 0 0 22px var(--glow-cyan); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow-purple); }
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); }

/* ---------------- 首屏 Hero ---------------- */
.hero { position: relative; }
/* ---- 沉浸式首屏（2026-10-21 老板令：放大到近乎全屏、四边只留一点点黑边，字要看得清）---- */
.hero.hero--immersive { min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding: 96px 0 48px; }
.hero-bg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94vw, 1800px); height: min(94vh, 1080px);
  border-radius: 22px; overflow: hidden;
  z-index: 0; background-size: cover; background-position: center;
  box-shadow: 0 40px 130px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.10);
}
.hero-scrim {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94vw, 1800px); height: min(94vh, 1080px);
  border-radius: 22px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,10,30,.72) 0%, rgba(15,10,30,.40) 45%, rgba(15,10,30,.93) 100%),
    radial-gradient(120% 85% at 82% 8%, rgba(139,92,246,.16), transparent 62%),
    radial-gradient(120% 85% at 8% 96%, rgba(34,211,238,.12), transparent 62%); }
.hero--immersive .container { position: relative; z-index: 2; width: min(94vw, 1800px); box-sizing: border-box; padding-left: 56px; padding-right: 56px; }
.hero-copy { max-width: 880px; }
.hero-copy .eyebrow { color: var(--cyan-soft); letter-spacing: 2px; }
.hero-copy h1 { text-shadow: 0 6px 34px rgba(0,0,0,.55); }
.hero-copy .slogan { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-copy .btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.hero-copy .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero--immersive .hero-slider { background: transparent; border: none; aspect-ratio: auto; margin: 44px 0 0; max-width: 760px; }
.hero--immersive .hero-slider .slide { background: linear-gradient(180deg, rgba(22,15,44,.40), rgba(15,10,30,.74)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); }
.hero--immersive .hero-slider .slide-bg { display: none; }
/* ---- 主题对比度修复（2026-10-20 老板反馈「皮肤已改那个字看不到」）----
   根因：沉浸区=图上/深色渐变上的文字，此前继承 var(--text)，切到 light/warm
   浅色主题后深字压深底直接不可见。图上文字一律固定白字系，三主题一致。 */
.hero--immersive .hero-copy h1 { color: #fff; }
.hero--immersive .hero-copy .slogan,
.hero--immersive .hero-copy .lead { color: rgba(255,255,255,.88); }
.hero--immersive .hero-copy .slogan b { color: #a5f3fc; }
.hero--immersive .hero-badges .chip { color: rgba(255,255,255,.92); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.32); }
.hero--immersive .hero-slider .slide-title { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.hero--immersive .hero-slider .slide-sub { color: rgba(255,255,255,.85); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero--immersive .hero-slider .slide-badge.is-rank { background: rgba(15,10,30,.72); color: #fff; border-color: rgba(255,255,255,.3); }
.hero--immersive .slider-dot { background: rgba(255,255,255,.45); }
.hero--immersive .slider-dot.on { background: var(--cyan); }
/* 登录门禁：深色遮罩上的文字同样固定白字系 */
.ai-gate-box p { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.ai-gate-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.ai-gate-box .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(30px, 6vw, 52px); line-height: 1.15; font-weight: 900; letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .slogan { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-dim); margin-bottom: 14px; }
.hero .slogan b { color: var(--cyan-soft); font-weight: 700; }
.hero .lead { font-size: 16px; color: var(--text-faint); margin-bottom: 30px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges .chip {
  font-size: 13px; color: var(--text-dim); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
}
.hero-badges .chip b { color: var(--purple-soft); }

/* ---------------- 业务卡片网格 ---------------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.biz-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .25s; display: flex; flex-direction: column; gap: 12px;
}
.biz-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--grad-soft); opacity: 0; transition: .25s; pointer-events: none;
}
.biz-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.18); }
.biz-card:hover::after { opacity: 1; }
.biz-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan);
}
.biz-card .icon svg { width: 28px; height: 28px; }
.biz-card h3 { font-size: 19px; font-weight: 800; }
.biz-card p { color: var(--text-dim); font-size: 14.5px; flex: 1; }
.biz-card .more { color: var(--cyan-soft); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.biz-card .more svg { width: 16px; height: 16px; transition: .2s; }
.biz-card:hover .more svg { transform: translateX(4px); }

/* 核心大卡（首页首屏主推：素材&模板交易 / 刚好旺VIP） */
.biz-core {
  border-color: rgba(139, 92, 246, .45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .12), 0 18px 48px rgba(139, 92, 246, .16);
}
.biz-core .icon { width: 60px; height: 60px; border-radius: 16px; }
.biz-core .icon svg { width: 32px; height: 32px; }
.biz-core h3 { font-size: 22px; }
.biz-core .core-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #0f0a1e; background: var(--grad); border-radius: 999px; padding: 3px 10px;
}

/* 配套小卡（首页下方：10 个配套板块，缩小不抢主视觉） */
.biz-card--sm { padding: 16px 18px; gap: 8px; border-radius: var(--radius-sm); }
.biz-card--sm .icon { width: 38px; height: 38px; border-radius: 10px; }
.biz-card--sm .icon svg { width: 20px; height: 20px; }
.biz-card--sm h3 { font-size: 15.5px; }
.biz-card--sm p { font-size: 13px; }
.biz-card--sm:hover { transform: translateY(-2px); }

/* ---------------- 画廊作品卡片（火山方舟 Gallery 式） ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
  transition: .25s; display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.18); }
.work-cover { position: relative; aspect-ratio: 16/10; background: var(--bg-card-2); overflow: hidden; }
.work-cover .work-cover-img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-faint); font-size: 13px; }
.work-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.work-card:hover .work-cover video { opacity: 1; }
.work-rank-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; font-weight: 800; color: #0f0a1e; background: var(--grad);
  border-radius: 999px; padding: 3px 10px;
}
.work-demo-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px;
}
.work-body { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; }
.work-title { font-size: 15.5px; font-weight: 800; }
.work-creator { font-size: 13px; color: var(--text-dim); }
.work-desc { font-size: 13px; color: var(--text-dim); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.work-stars { display: inline-flex; align-items: center; gap: 3px; }
.work-stars .star { font-size: 15px; color: var(--text-faint); cursor: pointer; transition: transform .15s; background: none; border: none; padding: 0; line-height: 1; }
.work-stars .star:hover { transform: scale(1.2); }
.work-stars .star.on { color: var(--star); }
.work-stars .star.locked { cursor: default; }
.work-stars .star.locked:hover { transform: none; }
.work-stars-num { font-size: 12.5px; color: var(--text-dim); margin-left: 4px; }
.work-dl { font-size: 12.5px; }

/* ---------------- 排行榜 ---------------- */
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rank-tab {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text-dim);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s;
  font-family: inherit;
}
.rank-tab:hover { color: var(--text); border-color: var(--purple); }
.rank-tab.on { background: var(--grad); color: #0f0a1e; border-color: transparent; }
.rank-note { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.rank-list { display: grid; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: .2s;
}
.rank-row:hover { border-color: var(--purple); }
.rank-no {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; font-weight: 900; color: var(--text-dim); background: var(--bg-card-2);
}
.rank-no.top { background: var(--grad); color: #0f0a1e; }
.rank-info { display: grid; gap: 2px; min-width: 0; }
.rank-info .t { font-size: 15px; font-weight: 700; }
.rank-info .m { font-size: 12.5px; color: var(--text-dim); }
.rank-score { text-align: right; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.rank-score b { color: var(--cyan-soft); font-size: 15px; }

/* ---------------- 首页轮播 ---------------- */
.hero-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
  aspect-ratio: 21/9; margin-bottom: 28px;
}
.hero-slider .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px;
  background: linear-gradient(180deg, transparent 30%, rgba(15,10,30,.78) 100%);
}
.hero-slider .slide.on { opacity: 1; pointer-events: auto; }
.hero-slider .slide-bg { position: absolute; inset: 0; background: var(--grad-soft); }
.hero-slider .slide-badge {
  position: absolute; top: 16px; left: 20px; z-index: 2;
  font-size: 12px; font-weight: 800; color: #0f0a1e; background: var(--grad);
  border-radius: 999px; padding: 4px 12px;
}
.hero-slider .slide-badge.is-rank { background: var(--bg-card); color: var(--cyan-soft); border: 1px solid var(--line); }
.hero-slider .slide-title { position: relative; font-size: clamp(18px, 3.4vw, 26px); font-weight: 900; }
.hero-slider .slide-sub { position: relative; font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.hero-slider .slide-link { position: relative; align-self: flex-start; margin-top: 14px; }
.slider-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; z-index: 3; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); border: none; padding: 0; cursor: pointer; transition: .2s; }
.slider-dot.on { background: var(--cyan); box-shadow: 0 0 8px var(--glow-cyan); }

/* ---------------- 主题切换（单按钮 + 弹出三选项，见 GW-005 区块） ---------------- */

/* ---------------- 首页大按钮入口（磨砂海景底图 · 2026-10-21 老板令） ---------------- */
.big-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.big-entry {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 44px 24px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); transition: .25s;
}
/* 磨砂底图：模糊放大防露边 + 深色渐变遮罩保文字可读（底图为 Pexels 公开授权海景，仅站点装饰） */
.big-entry-bg {
  position: absolute; inset: -6%; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(16px) saturate(1.15) brightness(.92);
  transform: scale(1.06); transition: transform .5s ease, filter .3s ease;
}
.big-entry:hover .big-entry-bg { transform: scale(1.12); filter: blur(13px) saturate(1.25) brightness(1); }
.big-entry-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,9,28,.58), rgba(13,9,28,.78));
}
.big-entry > *:not(.big-entry-bg):not(.big-entry-shade) { position: relative; z-index: 2; }
.big-entry:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.34); box-shadow: 0 18px 46px rgba(8,5,20,.42); }
.big-entry-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 30px; line-height: 1; color: #fff;
}
.big-entry-text { display: grid; gap: 6px; justify-items: center; }
.big-entry-text b { font-size: 21px; font-weight: 900; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.big-entry-text i { color: rgba(255,255,255,.86); font-size: 14px; font-style: normal; max-width: 420px; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.big-entry-arrow {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  font-size: 22px; font-style: normal; font-weight: 700; color: rgba(255,255,255,.75); transition: .2s;
}
.big-entry:hover .big-entry-arrow { color: #fff; transform: translateX(4px); }

/* ---------------- 内页通用 ---------------- */
.page-hero { padding: 70px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { color: var(--purple-soft); }
.page-hero h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 900; margin-bottom: 12px; }
.page-hero p.lead { font-size: 17px; color: var(--text-dim); max-width: 700px; }

/* 子页沉浸式页头：大图铺满 + 暗角 scrim + 白字，主体结构不变（仅加 class 与 --hero-img 变量） */
.page-hero--bg {
  position: relative; padding: 110px 0 84px; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(15,10,30,.62) 0%, rgba(15,10,30,.78) 55%, rgba(15,10,30,.92) 100%),
    var(--hero-img, none) center/cover no-repeat,
    var(--bg-0, #0d0a1a);
  color: #fff;
}
.page-hero--bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 65% at 18% 0%, rgba(139,92,246,.22), transparent 60%),
    radial-gradient(70% 60% at 88% 110%, rgba(34,211,238,.16), transparent 60%);
}
.page-hero--bg .container { position: relative; z-index: 1; }
.page-hero--bg .eyebrow {
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px;
  letter-spacing: .14em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.page-hero--bg h1 {
  color: #fff; text-shadow: 0 4px 28px rgba(0,0,0,.55);
  background: linear-gradient(120deg, #fff 30%, #d9c9ff 68%, #a5f3fc 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero--bg p.lead { color: rgba(255,255,255,.82); text-shadow: 0 2px 14px rgba(0,0,0,.5); }

.feature-list { display: grid; gap: 12px; margin-top: 8px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.feature-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft);
  display: grid; place-items: center; color: var(--cyan); margin-top: 2px;
}
.feature-list .tick svg { width: 13px; height: 13px; }
.feature-list b { color: var(--text); }
.feature-list span { color: var(--text-dim); font-size: 14.5px; }

.cta-band {
  margin-top: 36px; padding: 30px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-band h3 { font-size: 20px; font-weight: 800; }
.cta-band p { color: var(--text-dim); font-size: 14.5px; margin-top: 4px; }

/* 图文区 */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split .visual {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background-color: var(--bg-card-2); background-size: cover; background-position: center;
  box-shadow: var(--sh-1);
}

/* 联系卡 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.contact-card .k { color: var(--text-faint); font-size: 13px; letter-spacing: 1px; }
.contact-card .v { font-size: 16px; font-weight: 700; margin-top: 6px; color: var(--cyan-soft); word-break: break-all; }

/* 可点击联系卡（电话 tel / 邮箱 mailto / 官网外链） */
.contact-card.link { transition: .2s; cursor: pointer; }
.contact-card.link:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(139,92,246,.16); }

/* 微信号一键复制按钮（已移除：前台零运营者信息，无微信号可复制） */

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--bg-2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.footer-top .brand { margin-bottom: 10px; }
.footer-note { color: var(--text-faint); font-size: 13.5px; max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--cyan-soft); }
.footer-col-title { color: var(--text-dim); font-size: 13px; letter-spacing: .08em; margin-bottom: 12px; }
.footer-links--static { flex-direction: column; gap: 10px; }
.footer-links--static a { font-size: 13.5px; }
/* 激励体系分组小标题 */
.incentive-title {
  margin: 34px 0 16px; font-size: 17px; font-weight: 700; color: var(--text);
  padding-left: 12px; border-left: 3px solid var(--purple);
}
.incentive-title:first-of-type { margin-top: 26px; }
/* 法条列表（免责声明等编号条款） */
.legal-list { list-style: none; counter-reset: legal; display: grid; gap: 14px; }
.legal-list li { counter-increment: legal; position: relative; padding-left: 40px; color: var(--text-dim); font-size: 14.5px; line-height: 1.75; }
.legal-list li::before {
  content: counter(legal); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan-soft); font-size: 13px; font-weight: 600;
}
.legal-list li b { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: var(--text-faint); font-size: 13px;
}
.footer-bottom .legal { line-height: 1.7; }
.footer-bottom a { color: var(--text-dim); }

/* 占位高亮（提醒后台替换真实值） */
.placeholder { border-bottom: 1px dashed var(--purple-soft); cursor: help; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #0f0a1e; box-shadow: 0 0 20px var(--glow-purple);
  opacity: 0; pointer-events: none; transition: .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .grid-4, .gallery-grid, .big-entries { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-slider { aspect-ratio: 16/9; }
}

/* 可访问性：减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------------- 合作景区名录卡片 ---------------- */
.spot-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .25s;
}
.spot-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.18); }
.spot-cover {
  height: 150px; background-size: cover; background-position: center; background-color: var(--bg-card-2);
  display: grid; place-items: center; background-image: var(--grad-soft);
}
.spot-cover--ph span {
  font-size: 42px; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spot-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spot-head h3 { font-size: 18px; font-weight: 800; }
.spot-tag {
  font-size: 12px; color: var(--cyan-soft); padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card-2); white-space: nowrap;
}
.spot-area { color: var(--text-faint); font-size: 13px; margin-top: -4px; }
.spot-hl { color: var(--text-dim); font-size: 14.5px; flex: 1; }
.spot-meta { display: grid; gap: 4px; margin: 2px 0 6px; }
.spot-meta li { font-size: 13.5px; color: var(--text-dim); }
.spot-meta b { color: var(--text); font-weight: 700; margin-right: 4px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; align-self: flex-start; }

/* ---------------- 游记相册页（journal） ---------------- */
/* 关于 / 个人简介 */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.about-avatar {
  aspect-ratio: 1/1; max-width: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139,92,246,.28), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(34,211,238,.24), transparent 55%),
    var(--bg-card);
  display: grid; place-items: center; font-size: 76px; font-weight: 900;
}
.about-avatar span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.about-role { color: var(--cyan-soft); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.about-bio { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags .chip { font-size: 13px; color: var(--text-dim); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); }

/* 游记目录（时间线列表） */
.notes-list { display: grid; gap: 14px; }
.note-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: stretch;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .25s;
}
.note-card:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(139,92,246,.16); }
.note-card.is-upcoming { opacity: .93; }
.note-cover {
  border-radius: var(--radius-sm); min-height: 96px; background-size: cover; background-position: center;
  background-color: var(--bg-card-2); background-image: var(--grad-soft); display: grid; place-items: center;
}
.note-cover--ph span { font-size: 40px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note-body { display: flex; flex-direction: column; gap: 6px; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.note-date { color: var(--cyan-soft); font-weight: 700; }
.note-loc { color: var(--text-faint); }
.note-status { font-size: 12px; color: var(--text-dim); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card-2); }
.note-status.is-live { color: #0f0a1e; background: var(--grad); border-color: transparent; font-weight: 700; }
.note-title { font-size: 18px; font-weight: 800; }
.note-excerpt { color: var(--text-dim); font-size: 14.5px; }

/* 相册分类筛选 */
.album-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip-btn {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--line); transition: .2s;
}
.chip-btn:hover { border-color: var(--cyan); color: var(--cyan-soft); }
.chip-btn.active, .chip-btn.on { background: var(--grad); color: #0f0a1e; border-color: transparent; font-weight: 700; }

/* 相册网格 */
.albums-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.album-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
}
.album-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.18); }
.album-cover {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--bg-card-2); background-image: var(--grad-soft); display: grid; place-items: center;
}
.album-cover--ph span { font-size: 56px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.album-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.album-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.album-head h3 { font-size: 17px; font-weight: 800; }
.album-tag { font-size: 12px; color: var(--cyan-soft); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card-2); white-space: nowrap; }
.album-loc { color: var(--text-faint); font-size: 13px; }
.album-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.album-count { font-size: 13px; color: var(--text-dim); }
.album-count.is-pending { color: var(--text-faint); }

/* 全屏灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(8, 5, 18, .94); backdrop-filter: blur(6px); padding: 56px 72px;
}
.lightbox.open { display: flex; }
.lb-stage { max-width: 1000px; width: 100%; text-align: center; }
.lb-img { max-width: 100%; max-height: 74vh; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-empty { color: var(--text-dim); font-size: 17px; padding: 72px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.lb-caption { color: var(--text-faint); font-size: 14px; margin-top: 16px; }
.lb-close, .lb-nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text); font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: .2s;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { border-color: var(--cyan); color: var(--cyan-soft); }

/* 首页「边走边拍 · 游记相册」入口 */
.journal-teaser {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s;
}
.journal-teaser:hover { border-color: var(--cyan); box-shadow: 0 16px 44px rgba(34,211,238,.14); transform: translateY(-3px); }
.journal-teaser .jt-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 30px; font-weight: 900; color: var(--cyan-soft);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139,92,246,.30), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(34,211,238,.26), transparent 55%),
    var(--bg-card-2);
  border: 1px solid var(--line);
}
.journal-teaser .jt-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--cyan-soft); font-weight: 700; }
.journal-teaser .jt-more svg { width: 16px; height: 16px; transition: .2s; }
.journal-teaser:hover .jt-more svg { transform: translateX(4px); }

/* 响应式 */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .albums-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .note-card { grid-template-columns: 84px 1fr; gap: 14px; }
  .note-cover { min-height: 84px; }
  .albums-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 16px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------------- 首页轮播媒体（GW-004 视频化：本地样片 <video> + 封面底图兜底） ---------------- */
.hero-slider .slide-video,
.hero-slider .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center;
  background-color: var(--bg-card);
}
.hero-slider .slide-video { display: block; }

/* ---------------- 视频库（videos.html） ---------------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(139,92,246,.18); }
.video-cover { position: relative; aspect-ratio: 16/9; background: var(--bg-card-2); }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--text-faint); font-size: 14px;
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15,10,30,.55); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: .2s;
}
.video-play:hover { background: var(--grad); color: #0f0a1e; transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { margin-left: 2px; }
.video-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(15,10,30,.62); border-radius: 999px; padding: 3px 10px;
}
.video-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-title { font-size: 17px; font-weight: 800; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.video-src { font-size: 12.5px; color: var(--text-dim); }
.video-ext { font-size: 14px; color: var(--cyan-soft); font-weight: 700; }
.video-ext:hover { text-decoration: underline; }

/* ---------------- 视频播放模态（本地演示片；外链用「去平台观看」兜底） ---------------- */
.video-modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(8,5,18,.92); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: .25s; padding: 20px;
}
.video-modal.open { opacity: 1; pointer-events: auto; }
.vm-box {
  position: relative; width: min(920px, 100%); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.vm-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15,10,30,.55); color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: .2s;
}
.vm-close:hover { background: var(--grad); color: #0f0a1e; }
.vm-video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.vm-title { padding: 14px 18px 4px; font-size: 16px; font-weight: 800; }
.vm-ext { margin: 6px 18px 16px; align-self: flex-start; }

/* 首页五大入口：第五项（作品排行榜）跨两列 */
.big-entry.span-all { grid-column: 1 / -1; }

/* 视频库网格响应式（≤720px 单列） */
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------------- 游记站子页组件类化（GW-004-20 细节治理：内联样式清零） ---------------- */
.album-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.rank-note { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.rank-list { margin-top: 16px; display: grid; gap: 8px; }
@media (max-width: 980px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .album-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GW-005 刚好网平台组件（2026-10-18 追加）
   头部操作区 / 语言切换 / 类目卡 / 素材库 / 详情页 / 登录模态 / 条款
   ============================================================ */

/* ---- 头部操作区（主题 + 语言 + 登录） ---- */
.site-actions { display: flex; align-items: center; gap: 10px; position: relative; }

/* 主题切换：触发器（三色叠放小色块 + 当前名 + 箭头） */
.theme-switch { position: relative; display: inline-block; }
.theme-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px 6px 8px; transition: all .15s; white-space: nowrap;
}
.theme-trigger:hover { border-color: var(--cyan); color: var(--cyan-soft); }
.theme-swatches { position: relative; width: 23px; height: 13px; display: inline-block; flex: 0 0 auto; }
.theme-swatches i {
  position: absolute; top: 0; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--line); box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.theme-swatches i:nth-child(1) { left: 0; z-index: 3; }
.theme-swatches i:nth-child(2) { left: 5px; z-index: 2; }
.theme-swatches i:nth-child(3) { left: 10px; z-index: 1; }
.theme-caret { font-size: 10px; line-height: 1; opacity: .8; transition: transform .2s; }
.theme-switch.open .theme-caret { transform: rotate(180deg); }

/* 弹出层：三项主题 */
/* TRC-44（2026-10-21）：原 right:0 右对齐，触发器位于侧栏（pop 右缘≈104px）→ 弹层左探出视口
   43.6~77.6px、三档全裁切。改 left:0 向右展开（375 档最右 ≈250px，三档均不出界）。 */
.theme-pop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 148px; z-index: 60;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.30); padding: 6px;
  display: none; flex-direction: column; gap: 2px;
}
.theme-switch.open .theme-pop { display: flex; }
.theme-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font-family: inherit; font-size: 13px; cursor: pointer; text-align: left;
  background: transparent; color: var(--text); border: 0; border-radius: 8px;
  padding: 8px 9px; transition: background .15s;
}
.theme-opt:hover { background: var(--bg-2); }
.theme-opt i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; }
.theme-opt.on { background: var(--grad-soft); font-weight: 700; }
.theme-opt.on::after { content: "\2713"; margin-left: auto; color: var(--cyan); font-weight: 700; }

/* 语言切换（保留中 / EN 两按钮） */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-btn {
  font-size: 12.5px; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--line);
  transition: all .15s; font-family: inherit;
}
.lang-btn:hover { border-color: var(--cyan); color: var(--cyan-soft); }
.lang-btn.on { background: var(--grad); color: #0f0a1e; border-color: transparent; font-weight: 700; }

/* ---- 类目卡（首页 8 类 + 分类浏览大卡） ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 20px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--sh-1);
}
/* 全屏封面类目卡（首页：大图铺满 + 暗色 scrim + 悬停放大）*/
.cat-card--cover { min-height: 236px; justify-content: flex-end; color: #fff; border-color: rgba(255,255,255,.10); }
.cat-card-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: transform .55s ease; }
.cat-card-bg:not(.bg-loaded) { background-color: var(--bg-deep); }
.cat-card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,10,30,.10) 0%, rgba(15,10,30,.50) 52%, rgba(15,10,30,.92) 100%); }
.cat-card--cover:hover .cat-card-bg { transform: scale(1.09); }
.cat-card--cover > *:not(.cat-card-bg):not(.cat-card-scrim) { position: relative; z-index: 2; }
.cat-card--cover .cat-card-icon { font-size: 30px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.cat-card--cover .cat-card-name { color: #fff; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cat-card--cover .cat-card-desc { color: rgba(255,255,255,.85); }
.cat-card--cover .cat-card-count { color: var(--cyan-soft); }
.cat-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.cat-card-icon { font-size: 26px; }
.cat-card-name { font-size: 16px; font-weight: 800; }
.cat-card-desc { font-size: 13px; color: var(--text-dim); font-style: normal; line-height: 1.5; }
.cat-card-count { font-size: 12px; color: var(--cyan-soft); margin-top: auto; padding-top: 8px; }
.cat-card--lg { padding: 26px 22px; }
.cat-card--lg .cat-card-icon { font-size: 34px; }
.cat-card--lg .cat-card-name { font-size: 18px; }
.cat-card-go { font-size: 13px; color: var(--purple-soft); font-weight: 700; }

/* ---- 素材库工具条（搜索 + 排序 + 计数） ---- */
.lib-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.lib-search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px;
}
.lib-search:focus-within { border-color: var(--cyan); }
.lib-search-icon { color: var(--text-dim); }
.lib-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 14.5px; font-family: inherit;
}
.lib-search input::placeholder { color: var(--text-faint); }
.lib-sort { display: inline-flex; gap: 6px; }
.lib-count { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.lib-empty { color: var(--text-dim); padding: 48px 0; text-align: center; font-size: 15px; }

/* ---- 素材网格与卡片 ---- */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mat-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; box-shadow: var(--sh-1);
}
.mat-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.mat-card.is-soon { opacity: .82; }
.mat-cover-link { display: block; position: relative; }
.mat-cover {
  /* 素材卡片封面：固定比例容器 + 等比裁切，禁止图片被压扁/拉长。
     旧写法只依赖 aspect-ratio，微信内置浏览器（iOS<15 / 老版 X5 内核）不支持时
     容器高度会算错，导致背景图被拉伸。这里先用 padding-bottom 百分比兜底（所有内核都支持），
     支持的浏览器再由下方 @supports 切回 aspect-ratio，视觉与布局完全不变。 */
  position: relative; width: 100%; height: 0; padding-bottom: 75%;
  overflow: hidden; background-size: cover; background-position: center center; background-repeat: no-repeat;
  background-color: var(--bg-deep); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@supports (aspect-ratio: 4 / 3) {
  .mat-cover { height: auto; padding-bottom: 0; aspect-ratio: 4 / 3; }
}
/* 封面内的真实 <img> / <video>：铺满容器并等比裁切，永不拉伸 */
.mat-cover > img,
.mat-cover > video,
.mat-card .mat-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block;
}
.mat-cover--ph { display: grid; place-items: center; }
.mat-cover--ph span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; opacity: .5; }
.mat-badge {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: rgba(15, 10, 30, .78);
  color: var(--warn); border: 1px solid var(--warn); backdrop-filter: blur(4px);
}
.mat-badge--soon { color: var(--cyan-soft); border-color: rgba(34, 211, 238, .45); }
.mat-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 10, 30, .66);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px);
}
.mat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mat-cat { font-size: 12px; color: var(--cyan-soft); }
.mat-title { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.mat-title a { color: var(--text); text-decoration: none; }
.mat-title a:hover { color: var(--cyan-soft); }
.mat-meta { font-size: 12px; color: var(--text-faint); }
.mat-foot {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-dim);
}
.mat-stat { white-space: nowrap; }
.mat-dl {
  margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 6px 13px;
  border-radius: 999px; background: var(--grad); color: #0f0a1e; text-decoration: none;
  white-space: nowrap;
}
.mat-dl.is-soon { background: var(--bg-deep); color: var(--text-faint); border: 1px solid var(--line); }

/* ---- 素材详情页 ---- */
.dt-crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.dt-crumb a { color: var(--cyan-soft); text-decoration: none; }
.dt-grid { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.dt-video video, .dt-img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-deep); display: block;
}
.dt-video video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); }
.dt-img {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.dt-img:hover { transform: scale(1.012); box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 24px rgba(139,92,246,.18); }
.dt-img--ph { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: 15px; }
.dt-audio { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dt-audio audio { width: 100%; }
.dt-audio-note { font-size: 12.5px; color: var(--gold); }
.dt-actions { display: flex; gap: 12px; margin: 18px 0 20px; flex-wrap: wrap; }
.dt-like.is-liked { color: #f472b6; border-color: rgba(244, 114, 182, .5); }
.dt-title { font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin-bottom: 10px; }
.dt-desc { color: var(--text-dim); line-height: 1.8; margin-bottom: 14px; }
.dt-license {
  font-size: 13px; color: var(--gold); background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .3); border-radius: var(--radius);
  padding: 12px 16px; line-height: 1.7;
}
.dt-comments { margin-top: 34px; }
.dt-comments h2, .dt-side h2, .dt-related h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.dt-comment-form { display: flex; gap: 10px; }
.dt-comment-form input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.dt-comment-form input:disabled { opacity: .55; cursor: not-allowed; }
.dt-comment-form .btn:disabled { opacity: .55; cursor: not-allowed; }
.dt-comment-note { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }
.dt-side {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; position: sticky; top: 90px;
}
.dt-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.dt-info dt { color: var(--text-faint); }
.dt-info dd { color: var(--text); margin: 0; }
.dt-demo { margin-top: 14px; font-size: 12.5px; color: var(--gold); }
.dt-related { margin-top: 44px; }

/* ---- 注册/登录模态（复用视频模态视觉） ---- */
.login-modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 3, 15, .82); backdrop-filter: blur(6px);
}
.login-modal.open { display: flex; }
.lm-box {
  position: relative; width: min(440px, 100%); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.lm-title { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.lm-tip { font-size: 12.5px; color: var(--gold); margin-bottom: 18px; }
.lm-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.lm-tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700;
  background: var(--bg-deep); color: var(--text-dim); border: 1px solid var(--line);
}
.lm-tab.on { background: var(--grad); color: #0f0a1e; border-color: transparent; }
.lm-form { display: flex; flex-direction: column; gap: 14px; }
.lm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.lm-form input {
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.lm-form input:focus { border-color: var(--cyan); }
.lm-submit { margin-top: 6px; align-self: stretch; }
.lm-note { font-size: 12px; color: var(--text-faint); margin-top: 16px; line-height: 1.7; }

/* ---- 积分系统框架 ---- */
.pts-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px 4px 10px; }
.pts-chip .pts-label { font-size: 12px; color: var(--text-dim); }
.pts-chip .pts-balance { display: inline-flex; align-items: center; margin: 0; padding: 2px 8px; font-size: 13px; font-weight: 800; color: var(--cyan-soft); background: transparent; border: 0; cursor: pointer; border-radius: 8px; }
.pts-chip .pts-balance:hover { background: var(--bg-deep); }
.pts-chip .pts-signin { display: inline-flex; align-items: center; margin: 0; padding: 3px 10px; font-size: 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.pts-chip .pts-signin:hover { border-color: var(--cyan-soft); }
.pts-chip .pts-signin.is-done { color: var(--text-faint); border-color: var(--line); cursor: default; }
.pts-balance-num { font-size: 30px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lm-box--wide { max-width: 560px; }
.pts-rules { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pts-rule { font-size: 12.5px; color: var(--text-dim); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.pts-convert { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.pts-convert.is-locked { opacity: .72; }
.pts-convert-t { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.pts-convert-d { font-size: 12px; color: var(--text-faint); }
.pts-hist-title, .pub-list-title { font-size: 13px; color: var(--text-dim); font-weight: 700; margin: 4px 0 8px; }
.pts-hist { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow: auto; }
.pts-hist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 10px; background: var(--bg-deep); border-radius: 8px; }
.pts-hist-r { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-hist-n.pos { color: var(--cyan-soft); font-weight: 800; }
.pts-hist-n.neg { color: #ff8a8a; font-weight: 800; }
.pts-hist-ts { color: var(--text-faint); }
.pts-empty { font-size: 12.5px; color: var(--text-faint); padding: 10px 0; text-align: center; }
/* ---- 发布作品 + 三级审核（框架） ---- */
.pub-audit { margin: 4px 0 16px; }
.pub-audit-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; }
.pub-audit-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pub-stage { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--text-dim); }
.pub-stage-n { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); color: #0f0a1e; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.pub-arrow { color: var(--text-faint); }
.pub-audit-note { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.6; }
.pub-list { display: flex; flex-direction: column; gap: 6px; max-height: 170px; overflow: auto; }
.pub-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 8px 12px; background: var(--bg-deep); border-radius: 8px; }
.pub-row-t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-row-s { color: var(--cyan-soft); flex: 0 0 auto; }

/* ---- 平台条款页 ---- */
.legal-sec {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 16px;
}
.legal-sec h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.legal-sec-icon { font-size: 20px; }
.legal-sec p { color: var(--text-dim); line-height: 1.9; font-size: 14.5px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal-nav a {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-dim);
}
.legal-nav a:hover { border-color: var(--cyan); color: var(--cyan-soft); }

/* ---- 创作者入驻 / 关于我们 信息卡 ---- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.info-card-icon { font-size: 28px; }
.info-card h3 { font-size: 17px; font-weight: 800; }
.info-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.8; }
.info-card .btn { margin-top: auto; align-self: flex-start; }
.creator-form-panel {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; max-width: 560px; margin: 0 auto;
}
.creator-form-panel h2 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.creator-form-panel .lm-tip { margin-bottom: 16px; }

/* ---- 响应式（GW-005 新增组件） ---- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .dt-grid { grid-template-columns: 1fr; }
  .dt-side { position: static; }
  .info-grid { grid-template-columns: 1fr; }
  /* 沉浸首屏画框：小屏留 36px 黑边，仍不全屏 */
  .hero-bg, .hero-scrim { width: calc(100% - 36px); height: min(84vh, 900px); border-radius: 18px; }
  .hero--immersive .container { width: 100%; padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 720px) {
  .site-actions { gap: 6px; }
  .theme-trigger { padding: 6px 8px; }
  .theme-trigger-label { display: none; }
  .lang-btn { padding: 6px 9px; font-size: 12px; }
  .mat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .lib-bar { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   GW-005 视觉升级（2026-10-18 工单）：左侧导航 / 卡片高级感 / 去发光 / 收藏 / 抖音
   设计原则：柔和高层级阴影替代霓虹发光；封面占主导；hover 微微上浮；操作方便。
   ============================================================ */

/* ---- 设计令牌：轻柔阴影 + 统一圆角/间距 ---- */
:root {
  --sh-1: 0 4px 14px rgba(0, 0, 0, .22);
  --sh-2: 0 14px 38px rgba(0, 0, 0, .36);
  --sh-modal: 0 26px 72px rgba(0, 0, 0, .55);
  --radius: 18px;
  --radius-sm: 12px;
  --gap-card: 28px;
  --side-w: 250px;
}

/* ---- 不锈钢 GH Logo（替代霓虹紫 G 标） ---- */
.brand .logo-mark {
  height: 32px; width: auto; display: block; flex: 0 0 auto;
  border-radius: 9px; box-shadow: var(--sh-1);
}

/* ---- 去发光：统一轻柔阴影（覆盖既有霓虹 glow） ---- */
.btn-primary { box-shadow: var(--sh-1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.mat-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.work-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.big-entry:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30); }
.video-card:hover, .album-card:hover, .spot-card:hover, .note-card:hover, .biz-card:hover, .journal-teaser:hover {
  transform: translateY(-3px); border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}
.to-top { box-shadow: var(--sh-1); }
.lm-box { box-shadow: var(--sh-modal); }
.nav-drop-menu { box-shadow: var(--sh-2); }
.pts-chip { box-shadow: none; }

/* ============================================================
   左侧导航（侧边栏）
   ============================================================ */
.side-nav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: var(--side-w); display: flex; flex-direction: column;
  background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 20px 14px; gap: 8px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-brand .brand-name { font-size: 17px; }
.side-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  color: var(--text-dim); font-size: 15px; font-weight: 600; transition: .16s; white-space: nowrap;
}
.side-links a .si { font-size: 19px; width: 22px; text-align: center; flex: 0 0 auto; }
.side-links a:hover { background: var(--bg-card); color: var(--text); }
.side-links a.active { background: var(--grad-soft); color: var(--text); border: 1px solid var(--line); }
.side-actions { padding: 14px 0 30px; border-top: 1px solid var(--line); }
.side-actions .site-actions { flex-wrap: wrap; gap: 8px; }
/* 左下角主题切换（2026-10-21 老板令）：侧栏底部空间有限，下拉一律向上弹，防出界点不到 */
.side-actions .theme-pop { top: auto; bottom: calc(100% + 8px); }

/* 移动端：顶栏 + 抽屉 */
.mobile-topbar { display: none; }
.side-backdrop { display: none; }
.menu-toggle { display: none; }

@media (min-width: 981px) {
  body { padding-left: var(--side-w); }
}
@media (max-width: 980px) {
  .side-nav {
    transform: translateX(-100%); transition: transform .34s cubic-bezier(.22,.61,.36,1);
    will-change: transform; width: 284px; z-index: 70; box-shadow: var(--sh-modal);
  }
  .side-nav.open { transform: none; }
  body { padding-left: 0; padding-top: 52px; }
  .menu-toggle { display: flex; }
  .mobile-topbar {
    display: flex; position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 60;
    align-items: center; justify-content: space-between; padding: 0 14px;
    background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .mobile-topbar .brand { gap: 8px; }
  .mobile-topbar .logo-mark { height: 28px; width: auto; font-size: 12px; }
  .mobile-topbar .brand-name { font-size: 15px; }
  .side-backdrop {
    display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
  }
  .side-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---- 桌面侧边栏伸缩开关 ---- */
.side-toggle {
  position: fixed; top: 12px; left: 12px; z-index: 80;
  width: 38px; height: 38px; border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; box-shadow: var(--sh-1);
  transition: box-shadow .2s, background .2s;
}
.side-toggle:hover { box-shadow: var(--sh-2); background: var(--bg-card-2); }
.side-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
body.side-collapsed .side-toggle svg { transform: rotate(180deg); }
@media (min-width: 981px) {
  .side-toggle { display: flex; }
  .side-nav { padding-top: 58px; }
  body.side-collapsed { padding-left: 0; }
  body.side-collapsed .side-nav { transform: translateX(-100%); }
}

/* ============================================================
   素材卡片：封面占 75% 视觉 + 悬停静音预播 + 收藏 + 抖音
   ============================================================ */
.mat-grid { gap: var(--gap-card); grid-template-columns: repeat(3, 1fr); }
.mat-cover { aspect-ratio: 4 / 3; }
.mat-card .mat-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s; background: #000; z-index: 1;
}
.mat-card:hover .mat-video { opacity: 1; }
.mat-card .mat-play { z-index: 2; }
.mat-card .mat-badge { z-index: 3; }
/* 收藏按钮（卡片左上） */
.mat-card .fav-btn {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(15, 10, 30, .6); color: #fff; font-size: 16px; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(4px); cursor: pointer; transition: .18s;
}
.mat-card .fav-btn:hover { background: rgba(15, 10, 30, .82); transform: scale(1.08); }
.mat-card .fav-btn.on { color: #ff5d8f; border-color: rgba(255, 93, 143, .5); }
/* 抖音观看（卡片底部） */
.mat-douyin {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mat-douyin:hover { background: #161616; }
.mat-dl--inline { margin-left: 0; }

/* 详情页：视频大预览置顶 + 抖音 + 收藏按钮 */
.dt-douyin {
  display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, .2); padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
}
.dt-douyin:hover { background: #161616; }
.dt-fav {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.dt-fav:hover { border-color: var(--cyan-soft); }
.dt-fav.on { color: #ff5d8f; border-color: rgba(255, 93, 143, .5); }

/* Toast 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 200;
  box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: .25s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 首页首屏：高清视频轮播优先，去大段文字 */
.hero { padding: 26px 0 56px; }
.hero-slider--home { aspect-ratio: auto; min-height: 64vh; margin-bottom: 0; border-radius: var(--radius); }
@media (max-width: 720px) { .hero-slider--home { min-height: 46vh; } }

/* ============================================================
   GW-007 · AI 创作面板
   复用站点令牌：--bg-card / --bg-deep / --line / --grad / --radius / --text-dim
   ============================================================ */
.ai-panel-wrap { position: relative; max-width: 880px; margin: 0 auto; }
.ai-panel {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 0 4px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.ai-panel::before {
  content: ""; display: block; height: 4px; width: 100%;
  background: var(--grad);
}

/* 区块 */
.ai-block { padding: 26px 28px; border-top: 1px solid var(--line); }
.ai-block:first-of-type { border-top: 0; }
.ai-h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--text);
}
.ai-h2::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--grad); flex: 0 0 auto; }
.ai-tip { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.7; }

/* 通用输入控件（textarea / select / text） */
.ai-panel textarea, .ai-panel select, .ai-panel input[type="text"] {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
  font-family: inherit; padding: 12px 14px; outline: none; transition: .18s; line-height: 1.6;
}
.ai-panel textarea { resize: vertical; }
.ai-panel textarea:focus, .ai-panel select:focus, .ai-panel input[type="text"]:focus { border-color: var(--cyan); }
.ai-panel select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa3c7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

/* 素材上传网格 */
.ai-upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ai-upload-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--bg-deep); transition: .18s; text-align: center;
}
.ai-upload-cell:hover { border-color: var(--cyan); background: var(--bg-card-2); }
.ai-uc-ico { font-size: 26px; line-height: 1; }
.ai-uc-label { font-size: 13px; font-weight: 700; color: var(--text); }
.ai-upload-cell input[type="file"] { display: none; }

/* 预览区 */
.ai-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ai-prev {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim); max-width: 100%;
}
.ai-prev img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ai-prev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.ai-prev-ico { font-size: 20px; }

/* 提示词 */
.ai-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ai-prompt-head .ai-h2 { margin-bottom: 0; }
.ai-prompt-head .ai-extract { flex: 0 0 auto; }

/* 画面参数 */
.ai-params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-param { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.ai-param--str { grid-column: 1 / -1; }
.ai-str-wrap { display: flex; align-items: center; gap: 14px; }
.ai-str { flex: 1; accent-color: var(--purple); height: 6px; cursor: pointer; }
.ai-str-val { flex: 0 0 auto; min-width: 52px; text-align: center; font-weight: 800; color: var(--cyan-soft); font-size: 14px; }

/* 算力 / 模型来源 */
.ai-billing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-bill-opt {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep);
  cursor: pointer; transition: .18s; position: relative;
}
.ai-bill-opt:hover { border-color: var(--cyan); }
.ai-bill-opt:has(input:checked) { border-color: transparent; background: var(--grad-soft); box-shadow: 0 0 0 1px var(--cyan); }
.ai-bill-opt input { position: absolute; top: 14px; right: 14px; accent-color: var(--purple); }
.ai-bill-t { font-size: 14px; font-weight: 700; color: var(--text); padding-right: 22px; }
.ai-bill-locked { opacity: .7; cursor: not-allowed; }
.ai-bill-locked:hover { border-color: var(--line); }
.ai-lock { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.ai-mode-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; line-height: 1.7; }
.ai-apikey-wrap { margin-top: 14px; }
.ai-note { font-size: 12px; color: var(--text-faint); margin-top: 8px; line-height: 1.7; }
.ai-recharge-wrap { margin-top: 14px; }
.ai-cost {
  margin-top: 16px; font-size: 15px; font-weight: 800; color: var(--cyan-soft);
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* 合规与免责 */
.ai-agree-wrap { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); line-height: 1.7; cursor: pointer; margin-bottom: 18px; }
.ai-agree-wrap input { margin-top: 4px; accent-color: var(--purple); width: 16px; height: 16px; flex: 0 0 auto; }
.ai-filter { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.ai-filter-title { font-size: 13.5px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.ai-filter-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-stage {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
}
.ai-stage-n { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #0f0a1e; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.ai-arrow { color: var(--text-faint); font-size: 16px; }

/* 生成按钮 */
.ai-actions { padding: 22px 28px; border-top: 1px solid var(--line); }
.ai-generate { width: 100%; justify-content: center; font-size: 16px; padding: 15px 24px; }

/* 生成结果 */
.ai-result { margin: 0 28px 26px; border: 1px solid var(--cyan); border-radius: var(--radius-sm); background: var(--bg-deep); overflow: hidden; box-shadow: 0 0 30px var(--glow-cyan); }
.ai-result-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--text); background: var(--grad-soft); }
.ai-demo-badge { font-size: 11px; font-weight: 800; color: var(--on-gold); background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.ai-result-body { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.ai-result-thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 30px; }
.ai-result-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ai-result-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }
.ai-result-row span { flex: 0 0 76px; color: var(--text-faint); }
.ai-result-row code { flex: 1; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text); background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-result-note { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.ai-result-dl { align-self: flex-start; margin-top: 4px; }

/* 免责说明 */
.ai-disclaimer, .ai-nostore { padding: 0 28px; font-size: 12px; color: var(--text-faint); line-height: 1.8; }
.ai-disclaimer { margin: 18px 0 6px; }
.ai-nostore { margin-bottom: 26px; }

/* 登录门禁（未登录时覆盖面板） */
.ai-gate {
  position: absolute; inset: 0; z-index: 5; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: rgba(12, 8, 24, .82); backdrop-filter: blur(8px); border-radius: var(--radius);
}
.ai-gate-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px; max-width: 320px; }
.ai-gate-ico { font-size: 44px; }
.ai-gate-box p { font-size: 15px; font-weight: 700; color: var(--text); }

/* 生成前扣费弹窗（复用 .login-modal） */
.lm-actions { display: flex; gap: 12px; margin-top: 22px; }
.lm-actions .btn { flex: 1; justify-content: center; }
.ai-cost-modal .lm-title { color: var(--text); }
.ai-cost-summary { font-size: 13.5px; color: var(--text-dim); line-height: 1.8; margin-bottom: 14px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ai-cost-num { font-size: 15px; color: var(--text-dim); margin-bottom: 0; }
.ai-cost-num b { font-size: 24px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 响应式 */
@media (max-width: 720px) {
  .ai-block { padding: 22px 18px; }
  .ai-upload-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-params { grid-template-columns: 1fr; }
  .ai-billing { grid-template-columns: 1fr; }
  .ai-actions, .ai-result, .ai-disclaimer, .ai-nostore { padding-left: 18px; padding-right: 18px; }
  .ai-result { margin-left: 18px; margin-right: 18px; }
  .ai-prompt-head { flex-direction: column; align-items: flex-start; }
}

/* ============ GW-008 追加：Logo 徽章描边 + 积分合规提示行 ============ */
.brand .logo-mark { border: 1px solid var(--line); }
.pts-rule-limit { color: var(--gold); font-weight: 600; }

/* ============================================================
   GW-008-C 质感打磨 · 微交互 / 焦点可达性 / 滚动揭示 / 骨架屏 / 空态升级
   纯增量，沿用 :root 设计令牌；dark / light / warm 三主题自动跟随
   竞品对标（2026）：Dribbble 微交互 · Awwwards 滚动动效 · Collect UI 空态/骨架
   ============================================================ */

/* 选区品牌色 */
::selection { background: var(--glow-purple); color: #fff; }

/* 键盘焦点可达性（a11y 关键，原站仅 3 处 :focus，缺 focus-visible） */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.btn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
.side-links a:focus-visible, .cat-card:focus-visible, .contact-card:focus-visible,
.work-card:focus-visible, .album-card:focus-visible, .video-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--glow-cyan);
  border-color: var(--cyan);
}

/* 通用卡片微交互：悬浮抬升 + 描边辉光 + 按下回弹 */
.cat-card, .contact-card, .work-card, .spot-card, .album-card, .video-card,
.biz-card, .mat-card, .info-card, .note-card {
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s;
}
.cat-card:hover, .contact-card:hover, .work-card:hover, .spot-card:hover,
.album-card:hover, .video-card:hover, .biz-card:hover, .mat-card:hover,
.info-card:hover, .note-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 18px 44px var(--glow-purple);
}
.btn:active, button:active, .cat-card:active, .contact-card:active, .work-card:active { transform: scale(.97); }

/* 链接下划线揭示动画 */
.nav a, .footer-links a, .side-links a, .text-link { position: relative; }
.nav a::after, .footer-links a::after, .side-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .footer-links a:hover::after, .side-links a:hover::after { transform: scaleX(1); }

/* 关键帧 */
@keyframes gh-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes gh-shimmer { 0% { background-position: -480px 0; } 100% { background-position: 480px 0; } }
@keyframes gh-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* 滚动揭示：JS 给 .section / .card 加 .reveal，进入视口加 .is-visible */
html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
html.js-reveal .reveal[data-delay="1"] { transition-delay: .08s; }
html.js-reveal .reveal[data-delay="2"] { transition-delay: .16s; }
html.js-reveal .reveal[data-delay="3"] { transition-delay: .24s; }

/* 骨架屏 / 图片占位微光（用于动态渲染占位与懒加载底色） */
.skeleton, .img-skeleton {
  background: linear-gradient(100deg, var(--bg-card) 30%, var(--bg-card-2) 50%, var(--bg-card) 70%);
  background-size: 480px 100%;
  animation: gh-shimmer 1.3s linear infinite;
  border-radius: var(--radius-sm);
}
.img-skeleton { width: 100%; aspect-ratio: 16 / 10; }

/* 空态升级（覆盖原 .lib-empty / .pts-empty / .fav-empty 观感） */
.lib-empty, .pts-empty, .fav-empty, .empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 48px 20px; color: var(--text-dim);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-card);
  margin: 18px 0; font-size: 15px;
}
.lib-empty::before, .empty-state::before {
  content: ""; width: 220px; height: 124px; border-radius: 10px;
  background: url("../img/gen/empty-01.jpg") center/contain no-repeat;
}
.fav-empty::before {
  content: ""; width: 220px; height: 124px; border-radius: 10px;
  background: url("../img/gen/empty-02.jpg") center/contain no-repeat;
}
.pts-empty::before {
  content: ""; width: 150px; height: 84px; border-radius: 8px;
  background: url("../img/gen/empty-03.jpg") center/contain no-repeat;
}

/* Toast 入场动画 */
.toast { animation: gh-toast-in .26s ease; }

/* 星级悬浮微动 */
.star { transition: transform .15s ease; }
.star:hover { transform: scale(1.25) rotate(-6deg); }

/* 页脚防诈提示（GW-008-H 合规强化，由 JS 注入到全站页脚） */
.antifraud-note { color: var(--gold); font-weight: 600; margin-top: 8px; font-size: 12.5px; line-height: 1.6; }

/* 减少动效偏好：关闭 GW-008 新增动效（沿用原站 a11y 基线） */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .skeleton, .img-skeleton, .toast { animation: none !important; }
  .cat-card:hover, .contact-card:hover, .work-card:hover, .spot-card:hover,
  .album-card:hover, .video-card:hover, .biz-card:hover, .mat-card:hover,
  .info-card:hover, .note-card:hover { transform: none !important; }
  .star:hover { transform: none !important; }
  .nav a::after, .footer-links a::after, .side-links a::after { transition: none !important; }
}


/* == P2-2/P2-5 修复块（AutoClaw 2026-10-20）== */
.dt-get { margin: 10px 0 2px; padding: 10px 14px; border: 1px solid var(--bg-card-2, rgba(139,92,246,.25)); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.dt-get-t { font-size: 13px; opacity: .75; }
.dt-get-item { font-size: 14px; line-height: 1.6; }
.dt-get-item b { margin-right: 6px; color: var(--brand, #8b5cf6); }
.dt-get-pending { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; opacity: .6; }
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .container { max-width: 100%; }
}
/* == DSH-20261019-023 修复块（F5 --warn / F11 --bg-1）2026-10-19 DeepSeek Harness 总调度直办 == */
:root { --bg-1: #17102b; --warn: #fbbf24; }
html[data-theme="light"] { --bg-1: #ffffff; --warn: #b45309; }
html[data-theme="warm"] { --bg-1: #fff8f0; --warn: #b45309; }

/* ============================================================================
   GW-20261019-MCODE 视觉升级层（刚好网平台站 · 主体不变，只改结构与观感）
   1) 侧栏 Logo 尺寸修正：原缺 .side-brand .logo-mark 规则，512px 原始尺寸撑爆
      侧栏、挤压「刚好网」成竖排三字
   2) 首页轮播重构：媒体区 + 信息条分区，根治「DOM 文案压在样片烘焙文字上」
      与「角标被裁」两类重叠
   3) 首屏改双栏栅格（文案 | 轮播），填掉宽屏右侧大片留白
   4) 触控目标补到 44px（对齐 TRAE-13 第六章观感预算）
   5) 排版节奏与卡片反馈微调
   本层不改动：文案 / 板块 / data.js 数据 / 合规口径 / 三主题配色变量
   ============================================================================ */

/* ---- 1) 侧栏 Logo 尺寸修正 ---- */
.side-brand { gap: 10px; }
.side-brand .logo-mark {
  height: 40px; width: auto; flex: 0 0 auto; display: block;
  border-radius: 10px; box-shadow: var(--sh-1);
}
.side-brand .brand-name { font-size: 17px; white-space: nowrap; }

/* ---- 3) 首屏双栏栅格 ---- */
@media (min-width: 1025px) {
  .hero--immersive .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(30px, 3.2vw, 56px);
    align-items: center;
  }
  .hero--immersive .hero-copy { max-width: 560px; }
  .hero--immersive .hero-slider { max-width: none; margin: 0; }
  .hero--immersive .hero-copy h1 { font-size: clamp(32px, 3.9vw, 50px); }
}
/* 中文标语断行：禁止把「发作品」这类词拆开
   注：原文件里 .hero--immersive .hero h1 属无效选择器（hero 与 hero--immersive 同一元素），此处一并纠正 */
.hero--immersive .hero-copy h1 { word-break: keep-all; text-wrap: balance; }
@media (max-width: 1024px) {
  .hero--immersive .container { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero--immersive .hero-slider { max-width: none; margin: 30px 0 0; }
}

/* ---- 2) 首页轮播：媒体区 + 信息条 ---- */
.hero--immersive .hero-slider {
  display: grid; grid-template-areas: "stack";
  aspect-ratio: auto; min-height: 0; background: transparent; border: 0;
}
.hero--immersive .hero-slider .slide {
  grid-area: stack; position: relative; inset: auto;
  display: block; padding: 0; gap: 0;
  background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero--immersive .hero-slider .slide-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--bg-card-2);
}
.hero--immersive .hero-slider .slide-media .slide-video,
.hero--immersive .hero-slider .slide-media .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero--immersive .hero-slider .slide-media .slide-bg {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 8, 26, .58) 0%, rgba(12, 8, 26, 0) 32%,
                                     rgba(12, 8, 26, 0) 62%, rgba(12, 8, 26, .42) 100%);
}
.hero--immersive .hero-slider .slide-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 800; color: #0f0a1e; background: var(--grad);
  border-radius: 999px; padding: 5px 12px; letter-spacing: .02em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero--immersive .hero-slider .slide-badge.is-rank {
  background: rgba(15, 10, 30, .72); color: var(--cyan-soft);
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero--immersive .hero-slider .slide-info {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title ." "sub ." "cta .";
  column-gap: 20px; row-gap: 6px;
  padding: 16px 20px 18px;
  background: var(--bg-card); border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero--immersive .hero-slider .slide-title {
  grid-area: title; position: relative;
  font-size: clamp(18px, 1.45vw, 22px); font-weight: 900; line-height: 1.32; letter-spacing: -.01em;
}
.hero--immersive .hero-slider .slide-sub {
  grid-area: sub; position: relative; margin: 0;
  font-size: 13px; line-height: 1.55; color: var(--text-dim);
  padding-right: 58px; /* 给右下角轮播点让位，避免压字 */
}
.hero--immersive .hero-slider .slide-link {
  grid-area: cta; position: relative; align-self: end; justify-self: start; margin-top: 8px;
}
.hero--immersive .hero-slider .slider-dots {
  bottom: 24px; right: 22px; gap: 8px; z-index: 4;
}
.hero--immersive .hero-slider .slider-dot { width: 9px; height: 9px; position: relative; }
.hero--immersive .hero-slider .slider-dot::after {
  content: ""; position: absolute; inset: -17px; /* 扩大点击热区到 43px */
}
@media (max-width: 560px) {
  .hero--immersive .hero-slider .slide-info {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "sub" "cta";
    padding: 14px 16px 38px;
  }
  .hero--immersive .hero-slider .slide-sub { padding-right: 0; }
  .hero--immersive .hero-slider .slide-link { margin-top: 10px; }
  .hero--immersive .hero-slider .slider-dots { bottom: 12px; right: 16px; }
}

/* ---- 4) 触控目标补到 44px ---- */
.btn { min-height: 44px; }
.btn-sm { min-height: 44px; padding: 10px 18px; }
.lang-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.theme-trigger { min-height: 44px; }
.side-links a { min-height: 44px; }
.pts-balance, .pts-signin { min-height: 38px; }

/* ---- 5) 排版节奏与卡片反馈 ---- */
.section-title { line-height: 1.22; letter-spacing: -.02em; }
.eyebrow { letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.big-entry, .cat-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.big-entry:hover, .cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
/* ---- GW-20261019-MCODE 图标尺寸：线性 SVG 继承 currentColor，跟随主题 ---- */
.side-links a .si { display: grid; place-items: center; }
.side-links a .si svg { width: 19px; height: 19px; display: block; }
.big-entry-icon { color: #fff; }
.big-entry-icon svg { width: 28px; height: 28px; display: block; }
.cat-card-icon { display: block; color: var(--text-dim); }
.cat-card-icon svg { width: 26px; height: 26px; display: block; }
.cat-card--cover .cat-card-icon { color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.55)); }
.cat-card--cover .cat-card-icon svg { width: 28px; height: 28px; }
.cat-card--lg .cat-card-icon svg { width: 34px; height: 34px; }

/* ---- GW-20261019-MCODE 图标尺寸二：info-card / ai / search / 404 图标统一线性 SVG ---- */
.info-card-icon { display: inline-grid; place-items: center; color: var(--cyan-soft); }
.info-card-icon svg { width: 1.05em; height: 1.05em; }
.ai-uc-ico { display: inline-grid; place-items: center; color: var(--purple-soft); }
.ai-uc-ico svg { width: 1em; height: 1em; }
.ai-gate-ico { display: inline-grid; place-items: center; color: var(--gold); }
.ai-gate-ico svg { width: 1em; height: 1em; }
.ai-lock { display: inline-flex; align-items: center; gap: 5px; }
.ai-lock svg { width: 13px; height: 13px; flex: 0 0 auto; }
.lib-search-icon { display: inline-grid; place-items: center; }
.lib-search-icon svg { width: 1em; height: 1em; }
.ai-upload-cell svg, [style*="font-size:64px"] svg { width: 1em; height: 1em; display: block; margin: 0 auto; }

/* ===== 作品案例 tab 轮播（火山方舟质感·2026-10-20） ===== */
.section--cases { padding-top: 56px; }
.case-rotator { display: grid; gap: 16px; }
.case-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.case-tab {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 10px 16px; border-radius: 14px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
  font: inherit; text-align: left;
}
.case-tab b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.case-tab-badge { font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--purple-soft); }
.case-tab:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.4); }
.case-tab.is-on {
  border-color: var(--purple); color: var(--text);
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(34,211,238,.10));
  box-shadow: 0 8px 28px rgba(139,92,246,.18);
}
.case-tab.is-on b { color: #fff; }
.case-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: clamp(340px, 52vh, 460px); box-shadow: var(--sh-1); }
.case-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .5s ease, transform .8s ease, visibility .5s;
}
.case-slide.is-on { opacity: 1; visibility: visible; transform: scale(1); }
.case-slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,16,.82) 0%, rgba(8,8,16,.45) 45%, rgba(8,8,16,.12) 75%),
              linear-gradient(0deg, rgba(8,8,16,.55) 0%, transparent 45%);
}
.case-slide-copy {
  position: absolute; left: clamp(20px, 5vw, 56px); bottom: clamp(20px, 5vw, 48px);
  max-width: min(560px, 72%); display: grid; gap: 12px; justify-items: start;
}
.case-slide-badge {
  font-style: normal; font-size: 12px; letter-spacing: .14em; padding: 5px 12px; border-radius: 999px;
  color: #fff; background: rgba(139,92,246,.32); border: 1px solid rgba(139,92,246,.5); backdrop-filter: blur(6px);
}
.case-slide-copy h2 { font-size: clamp(22px, 3.6vw, 36px); font-weight: 900; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); line-height: 1.25; }
.case-slide-copy p { font-size: clamp(14px, 1.6vw, 17px); color: rgba(255,255,255,.86); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.case-slide-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.case-slide-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.case-slide-cta .btn-ghost:hover { background: rgba(255,255,255,.16); }
@media (max-width: 720px) {
  .case-stage { min-height: 340px; }
  .case-slide-copy { max-width: 88%; }
  .case-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .case-tabs::-webkit-scrollbar { display: none; }
  .case-tab { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .case-slide, .case-tab { transition: none; }
}
.dt-img--portrait { aspect-ratio: 3 / 4; max-width: 520px; margin: 0 auto; }

/* 2026-10-20 无障碍：视觉隐藏但保留给读屏与 SEO（含标题层级补位） */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- GW-001/003：下载态 + 创作者卡片（2026-10-20 国际版） ---------- */
.mat-dl.is-soon{opacity:.55;cursor:not-allowed;filter:grayscale(1)}
.creator-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.creator-head h2{font-size:22px;margin:0}
.creator-head-sub{margin:0;color:var(--muted,#8b93a7);font-size:13px}
.creator-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.creator-card{display:flex;gap:12px;padding:14px;border:1px solid var(--border,#e6e8ef);border-radius:14px;background:var(--card,#fff)}
.creator-ava{flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;background:linear-gradient(135deg,#6b5bff,#2fb8ff)}
.creator-body{min-width:0}
.creator-name{margin:0 0 2px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-meta{margin:0 0 4px;font-size:12px;color:var(--muted,#8b93a7)}
.creator-num{margin:0 0 6px;font-size:12px;color:var(--muted,#8b93a7)}
.creator-link{font-size:12px;color:#6b5bff;text-decoration:none}
.creator-empty{color:var(--muted,#8b93a7);font-size:14px}


/* ---------- GW-002：本机上传素材 ---------- */
.lib-tools{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.lib-local{font-size:12px;color:var(--muted,#8b93a7)}
.mat-local-badge{position:absolute;top:8px;left:8px;padding:2px 8px;border-radius:999px;font-size:11px;color:#fff;background:rgba(107,91,255,.92)}
.mat-card--local{outline:1px dashed rgba(107,91,255,.5)}
.mat-local-del{margin-left:8px;padding:4px 10px;border-radius:8px;border:1px solid var(--border,#e6e8ef);background:transparent;font-size:12px;cursor:pointer;color:var(--muted,#8b93a7)}
.mat-local-del:hover{border-color:#e5484d;color:#e5484d}
.detail-media{margin:14px 0}

/* ===== DS-05（2026-10-20）：详情页官方 4 网盘下载区，链接未到位前置灰【渠道上架中】 ===== */
.dt-drives{margin:14px 0 6px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--bg-card)}
.dt-drives-tip{margin:0 0 10px;font-size:13px;color:var(--text-dim);letter-spacing:.02em}
.dt-drives-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btn.btn-drive{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;padding:10px 8px;border:1px dashed var(--line);background:transparent;color:var(--text-dim);cursor:not-allowed;border-radius:12px;font-weight:600;box-shadow:none}
.btn.btn-drive .drv-name{font-size:14px;color:var(--text)}
.btn.btn-drive .drv-soon{font-size:11px;color:var(--gold);font-weight:500}
.dt-drives-note{margin:10px 0 0;font-size:12px;color:var(--text-faint);line-height:1.55}
.dt-preview-dl{display:inline-block;margin-top:9px;font-size:12px;color:var(--cyan);text-decoration:underline}
@media (max-width:640px){.dt-drives-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ============ DS-03b（2026-10-20）首屏深色视觉块 on-dark 作用域 ============
   hero 背景恒为深色影像，不能跟随浅色/暖色主题令牌（否则深字压深底 = 1.1:1）。
   此处用固定 on-dark 配色并置于文件末尾，覆盖前面所有主题令牌规则。 */
.hero--immersive .hero-copy .eyebrow { color: #86e9f7; }
.hero--immersive .hero-copy h1,
.hero--immersive .hero-copy .slogan,
.hero--immersive .hero-copy p { color: #f5f2ff; }
.hero--immersive .hero-copy .accent { background-image: linear-gradient(120deg, #d8ccff, #9fe8fb); }
.hero--immersive .hero-slider .slide-info { background: var(--bg-card); border-top: 1px solid var(--line); }
.hero--immersive .hero-slider .slide-title { color: var(--text); }
.hero--immersive .hero-slider .slide-sub { color: var(--text); opacity: .78; }

/* DS-03c（2026-10-20）霓虹降噪：底图去饱和+压暗，左侧文字区加暗色承托，消除刺眼与文字被吞 */
.hero--immersive .hero-bg { filter: saturate(.55) brightness(.72); }
.hero--immersive .hero-scrim {
  background:
    linear-gradient(96deg, rgba(8,6,18,.94) 0%, rgba(8,6,18,.86) 34%, rgba(8,6,18,.52) 58%, rgba(8,6,18,.28) 100%);
}
.hero--immersive .hero-copy h1,
.hero--immersive .hero-copy .slogan,
.hero--immersive .hero-copy .eyebrow { text-shadow: 0 1px 12px rgba(6,4,16,.65); }
.hero--immersive .hero-copy .slogan { color: #e9e4ff; }
.hero--immersive .hero-slider .slide-badge,
.hero--immersive .hero-slider .slide .badge { color: #0f0a1e; }

/* ============ DS-06 首页素材精选 24 卡 + 虚线示例位 ============ */
.section-head { max-width: 820px; margin: 0 0 24px; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.section-head h2 { margin: 0 0 10px; }
.section-head .lead { margin: 0; }
#mats .mat-grid { margin-top: 4px; }
.mat-card--ph {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 10px; text-align: center; padding: 26px 18px;
  border: 2px dashed var(--line); border-radius: 16px;
  background: transparent; color: var(--muted); text-decoration: none;
  min-height: 210px; transition: border-color .2s, color .2s;
}
.mat-card--ph:hover { border-color: var(--cyan); color: var(--fg-1); }
.mat-card--ph .ph-ico { font-size: 26px; opacity: .55; line-height: 1; }
.mat-card--ph .ph-label { font-size: 13px; letter-spacing: .04em; }
.mat-card--ph .ph-cta { font-size: 12px; opacity: .75; }

/* ============ DS-03d（2026-10-21）首屏文字承托层：不依赖 DOM 里的 .hero-scrim ============
   根因：沉浸 hero 的 h1/副标题固定白字，但浅色/暖色主题下 hero 底图偏亮（实测 bg rgb(250,244,232)），
   白字对比度仅 1.01:1 = 肉眼「看不见」。此处用 ::before 恒定压暗，任何主题下白字都 ≥ 7:1。 */
.hero--immersive { position: relative; isolation: isolate; }
.hero--immersive::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(8,6,18,.93) 0%, rgba(8,6,18,.80) 42%, rgba(8,6,18,.52) 68%, rgba(8,6,18,.30) 100%),
    radial-gradient(70% 90% at 12% 30%, rgba(8,6,18,.55), transparent 70%);
}
.hero--immersive .hero-bg { position: relative; z-index: 0; }
.hero--immersive .hero-copy,
.hero--immersive .hero-slider { position: relative; z-index: 2; }

/* ============ DS-03e（2026-10-21）实底按钮/角标对比度修复 ============
   根因（像素采样实证）：浅色/暖色主题把 --purple/--cyan 改成深色品牌色后，--grad 变成「深紫→深青」，
   而 .btn-primary / .slide-badge 的文字固定 #0f0a1e → 深字压深底，实测 1.04:1，按钮文字等于消失。
   修法：带文字填充的元素改用「亮底 + 深字」的独立渐变 --grad-fill，标题渐变文字(.accent)继续用原 --grad。 */
:root { --grad-fill: linear-gradient(120deg, var(--purple), var(--cyan)); }
[data-theme="light"] { --grad-fill: linear-gradient(120deg, #a78bfa, #67e8f9); }
[data-theme="warm"]  { --grad-fill: linear-gradient(120deg, #c4a6f7, #7fd8e8); }

.btn-primary,
.hero-slider .slide-badge,
.hero--immersive .hero-slider .slide-badge,
.hero--immersive .hero-slider .slide .badge,
.badge--grad {
  background: var(--grad-fill);
  color: #0f0a1e;
}

/* 首屏恒为深色影像，按钮/角标在三种主题下都用同一套亮底深字 */
.hero--immersive .btn-primary,
.hero--immersive .hero-slider .slide-badge:not(.is-rank) {
  background: linear-gradient(120deg, #a78bfa, #67e8f9);
  color: #0f0a1e;
}
.hero--immersive .hero-copy .btn-ghost { color: #f2eeff; border-color: rgba(255,255,255,.42); }

/* 素材区标题眉：浅色/暖色主题下 section 底色偏亮，改用深一档品牌色；深色主题用亮青 */
.section-head .eyebrow { color: var(--cyan); }
[data-theme="dark"] .section-head .eyebrow { color: var(--cyan-soft); }

/* ============ DS-03f（2026-10-21）首屏遮罩压住文案/按钮的层叠修复 ============
   根因（截图像素实证）：.hero-scrim 带 z-index:1，而 .container / .hero-copy / .hero-slider 均为 auto，
   同级后绘制的遮罩直接盖在文案与按钮之上 —— 实测 CTA 中心像素 rgb(8,6,17)，按钮文字整块被吃掉。
   修法：显式分层 bg(0) → scrim(1) → 内容(2)，并把首屏文字统一提到最高层。 */
.hero--immersive { position: relative; isolation: isolate; }
/* TRC-45（2026-10-21）：此处原为 inset:0，与基础规则 .hero-bg 的 left/top:50%+translate(-50%,-50%)
   过约束冲突（inset 赢了 left/top，translate 仍生效）→ 画框左移半宽+上移半高。二去其一：删 inset，
   保留基础居中画框（94vw/94vh 圆角黑边=老板「近乎全屏留黑边」令），DS-03f 分层 z-index 不变。 */
.hero--immersive .hero-bg { position: absolute; z-index: 0; }
.hero--immersive .hero-scrim { position: absolute; z-index: 1; pointer-events: none; }
.hero--immersive > .container { position: relative; z-index: 2; }
.hero--immersive .hero-copy,
.hero--immersive .hero-slider { position: relative; z-index: 2; }

/* ============ DS-03g（2026-10-21）首屏渐变标题字「拿分成」发灰 ============
   根因：.accent 用 --grad 做 background-clip:text，深色首屏影像上深紫→深青渐变几乎与背景同色。
   修法：首屏内的 .accent 单独换亮色渐变，并补 text-shadow 兜底；非首屏仍用原 --grad。 */
.hero--immersive .accent,
.hero--immersive h1 .accent {
  background: linear-gradient(120deg, #c4b5fd 0%, #7dd3fc 55%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c4b5fd;
}

/* DS-03h（2026-10-21）语言切换选中态对比度 4.43 → 达标：亮底深字 */
.lang-btn.on,
[data-theme] .lang-btn.on {
  background: linear-gradient(120deg, #c4b5fd, #7dd3fc);
  color: #0f0a1e;
  border-color: transparent;
}

/* ============ DS-03i（2026-10-20）浅/暖主题首屏翻转：不再「白页面套一块黑首屏」 ============
   实证（1440px 整页截图）：浅色主题下页面 #f6f5fa、首屏却是深色大图 + 白字，
   明暗硬拼 → 割裂刺眼，且 .hero-copy 里 #f5f2ff/#e9e4ff/#f2eeff 属硬编码浅色字，
   一旦首屏图加载慢/被压暗就白字压白底。修法：浅/暖主题首屏整体翻为浅底深字，深色主题不动。 */
html[data-theme="light"] .hero--immersive .hero-bg,
html[data-theme="warm"]  .hero--immersive .hero-bg { opacity: .14; filter: saturate(.3) brightness(1.7); }
html[data-theme="light"] .hero--immersive .hero-scrim { background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(246,245,250,.99) 60%, var(--bg) 100%); }
html[data-theme="warm"]  .hero--immersive .hero-scrim { background: linear-gradient(180deg, rgba(255,250,240,.97) 0%, rgba(250,244,232,.99) 60%, var(--bg) 100%); }
html[data-theme="light"] .hero--immersive::before,
html[data-theme="warm"]  .hero--immersive::before { display: none; }
html[data-theme="light"] .hero--immersive::after,
html[data-theme="warm"]  .hero--immersive::after { display: none; }

html[data-theme="light"] .hero--immersive .hero-copy h1,
html[data-theme="warm"]  .hero--immersive .hero-copy h1 { color: var(--text); text-shadow: none; }
html[data-theme="light"] .hero--immersive .hero-copy p,
html[data-theme="warm"]  .hero--immersive .hero-copy p { color: var(--text-dim); }
html[data-theme="light"] .hero--immersive .hero-copy .slogan,
html[data-theme="warm"]  .hero--immersive .hero-copy .slogan { color: var(--text); text-shadow: none; }
html[data-theme="light"] .hero--immersive .hero-copy .slogan b,
html[data-theme="warm"]  .hero--immersive .hero-copy .slogan b { color: var(--purple); }
html[data-theme="light"] .hero--immersive .hero-copy .lead,
html[data-theme="warm"]  .hero--immersive .hero-copy .lead { color: var(--text-dim); }
html[data-theme="light"] .hero--immersive .hero-copy .eyebrow,
html[data-theme="warm"]  .hero--immersive .hero-copy .eyebrow { color: var(--cyan); text-shadow: none; }
html[data-theme="light"] .hero--immersive h1 .accent,
html[data-theme="warm"]  .hero--immersive h1 .accent { background: linear-gradient(120deg, #6d28d9, #0e7490); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #6d28d9; }
html[data-theme="light"] .hero--immersive .hero-copy .btn-ghost,
html[data-theme="warm"]  .hero--immersive .hero-copy .btn-ghost { color: var(--text); border-color: rgba(26,21,48,.24); background: rgba(26,21,48,.05); }
html[data-theme="light"] .hero--immersive .hero-badges .chip,
html[data-theme="warm"]  .hero--immersive .hero-badges .chip { color: var(--text); background: rgba(26,21,48,.05); border-color: rgba(26,21,48,.16); }
html[data-theme="light"] .hero--immersive .hero-badges .chip b,
html[data-theme="warm"]  .hero--immersive .hero-badges .chip b { color: var(--purple); }
html[data-theme="light"] .hero--immersive .hero-slider .slide-info,
html[data-theme="warm"]  .hero--immersive .hero-slider .slide-info { background: var(--bg-card); border-top: 1px solid var(--line); }
html[data-theme="light"] .hero--immersive .btn-primary,
html[data-theme="warm"]  .hero--immersive .btn-primary { background: var(--purple); color: #fff; }
html[data-theme="light"] .hero--immersive .btn-primary:hover,
html[data-theme="warm"]  .hero--immersive .btn-primary:hover { background: #5b21b6; }

/* ============ DS-03j（2026-10-20）浅/暖主题：首屏轮播副标题不再贴图取色 ============ */
/* 原因：.slide-sub 原先依赖封面亮度取浅灰字，浅色主题下浅图+浅灰小字对比不足（视觉复核实拍） */
html[data-theme="light"] .hero--immersive .slide-sub,
html[data-theme="warm"] .hero--immersive .slide-sub {
  color: #14121c;
  background: rgba(255, 255, 255, .9);
  padding: 3px 10px;
  border-radius: 8px;
  display: inline-block;
  max-width: min(92%, 720px);
  text-shadow: none;
}
html[data-theme="light"] .hero--immersive .slide-desc,
html[data-theme="warm"] .hero--immersive .slide-desc {
  color: #1d1a29;
  background: rgba(255, 255, 255, .82);
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-block;
  text-shadow: none;
}

/* ============ DS-03k（2026-10-20）浅/暖主题：首屏小字强制落在深色端 ============ */
/* 视觉复核：轮播白卡上 .slide-sub 呈浅灰、hero eyebrow 浅青蓝，均对比不足 */
html[data-theme="light"] .hero--immersive .slide-sub,
html[data-theme="warm"] .hero--immersive .slide-sub,
html[data-theme="light"] .hero-slider--home .slide-sub,
html[data-theme="warm"] .hero-slider--home .slide-sub {
  color: #23202e !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
html[data-theme="light"] .hero-copy .eyebrow,
html[data-theme="warm"] .hero-copy .eyebrow,
html[data-theme="light"] .hero .eyebrow,
html[data-theme="warm"] .hero .eyebrow {
  color: #14414b !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
/* 卡片内标题与说明的分层：说明不低于 4.5:1 */
html[data-theme="light"] .hero-slider--home .slide-title,
html[data-theme="warm"] .hero-slider--home .slide-title { color: #12101a !important; }

/* ============ DS-08b（2026-10-20）合规红线区 ============ */
.redline-box{border:1px solid rgba(255,120,80,.35);border-left:4px solid #ff6b3d;border-radius:14px;padding:22px 24px;background:rgba(255,107,61,.06)}
.redline-box h2{margin:0 0 12px;font-size:20px}
.redline-list{margin:0 0 14px;padding-left:22px;line-height:1.9}
.redline-list li{margin:6px 0}
.redline-list b{color:#ff8a5c}
.redline-note{margin:0;font-size:14px;line-height:1.8;opacity:.92}
html[data-theme="light"] .redline-box,html[data-theme="warm"] .redline-box{background:rgba(255,107,61,.08);border-color:rgba(210,90,40,.35)}
html[data-theme="light"] .redline-list b,html[data-theme="warm"] .redline-list b{color:#b3401a}

/* ============================================================
   DS-06b（2026-10-20 23:5x · A 方案）
   平台样例角标：站内 54 条 AI 生成演示素材保留，卡片与详情页统一明示身份。
   配色固定为「深底 + 白字 + 白描边」，不随 light/warm/dark 翻色，三主题均高对比，
   不使用任何高饱和硬编码强调色，避免破坏 DS-03 已收口的对比度基线。
   ============================================================ */
.mat-badge--sample {
  left: 10px; right: auto;
  background: rgba(15, 10, 30, .86); color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  letter-spacing: .02em;
}
.dt-sample {
  display: inline-block; margin: 0 0 10px;
  font-size: 12px; line-height: 1; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(15, 10, 30, .86); color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  letter-spacing: .02em;
}

/* AI 创作示例区（ACL-36） */
.ai-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-sample { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.ai-sample img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.ai-sample figcaption { padding: 10px 12px; font-size: 13px; color: var(--text-dim); text-align: center; }
@media (max-width: 768px) { .ai-samples { grid-template-columns: 1fr; } }
/* ===== DS-08 上传页原创声明（2026-10-21 全站排查追加） ===== */
.up-declare{border:1px solid rgba(255,120,80,.38);border-left:4px solid #ff6b3d;border-radius:14px;padding:16px 18px;margin:0 0 18px;background:rgba(255,107,61,.07)}
.up-declare-h{font-weight:700;font-size:15px;margin:0 0 8px;color:#ff8a5c;letter-spacing:.2px}
html[data-theme="light"] .up-declare-h,html[data-theme="warm"] .up-declare-h{color:#c2410c}
.up-declare-list{margin:0 0 12px;padding-left:18px;font-size:13.5px;line-height:1.78;color:var(--text)}
.up-declare-list li{margin:3px 0}
.up-declare-check{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;line-height:1.62;cursor:pointer;padding:10px 12px;border-radius:10px;background:rgba(255,107,61,.10);border:1px dashed rgba(255,120,80,.45);color:var(--text)}
.up-declare-check input{margin:3px 0 0;width:16px;height:16px;flex:0 0 auto;accent-color:#ff6b3d}
.up-declare-link{margin:9px 0 0;font-size:12.5px}
.up-declare-link a{color:var(--text-dim);text-decoration:underline;text-underline-offset:2px}
@media(max-width:640px){.up-declare{padding:14px;border-radius:12px}.up-declare-h{font-size:14px}.up-declare-list{font-size:13px;padding-left:16px;line-height:1.72}.up-declare-check{font-size:13px;padding:9px 10px}}

/* ===== 不锈钢主题摄影内测赛专题（2026-10-21） ===== */
.contest-badges{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.contest-badge{font-size:12.5px;padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:var(--bg-card-2);color:var(--text-dim)}
.contest-badge--on{border-color:rgba(34,211,238,.5);color:#67e8f9;background:rgba(34,211,238,.08)}
.founder-box{border:1px solid rgba(139,92,246,.45);border-left:4px solid #8b5cf6;border-radius:14px;padding:20px 22px;margin:0;background:linear-gradient(135deg,rgba(139,92,246,.16),rgba(34,211,238,.06))}
.founder-box .fb-k{display:inline-block;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#a78bfa;margin-bottom:8px}
.founder-box h2{margin:0 0 10px;font-size:20px}
.founder-box p{margin:0;color:var(--text);line-height:1.85;font-size:14.5px}
.founder-box p+p{margin-top:10px}
.founder-box .fb-note{margin-top:12px;padding-top:10px;border-top:1px dashed rgba(139,92,246,.30);font-size:12.5px;line-height:1.7;color:var(--text-dim)}
html[data-theme="light"] .founder-box,html[data-theme="warm"] .founder-box{background:linear-gradient(135deg,rgba(139,92,246,.10),rgba(34,211,238,.05))}
.contest-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin:14px 0 0}
.contest-card{background:var(--bg-card);border:1px solid var(--line);border-radius:14px;padding:18px}
.contest-card h3{margin:0 0 8px;font-size:15.5px}
.contest-card p{margin:0;font-size:13.8px;line-height:1.78;color:var(--text-dim)}
.contest-steps{counter-reset:cs;display:grid;gap:12px;margin:14px 0 22px;padding:0;list-style:none}
.contest-steps li{position:relative;padding:14px 16px 14px 52px;background:var(--bg-card);border:1px solid var(--line);border-radius:12px;font-size:14px;line-height:1.75;color:var(--text)}
.contest-steps li::before{counter-increment:cs;content:counter(cs);position:absolute;left:14px;top:13px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#0b1020;background:linear-gradient(135deg,#8b5cf6,#22d3ee)}
.contest-cta{display:flex;flex-wrap:wrap;gap:12px;margin:4px 0 0}
.contest-foot{margin:22px 0 0;padding:15px 17px;border:1px dashed var(--line);border-radius:12px;font-size:13.2px;line-height:1.9;color:var(--text-dim)}
.contest-foot a{color:var(--text)}
@media(max-width:640px){
  .founder-box{padding:16px 15px}
  .founder-box h2{font-size:17.5px}
  .founder-box p{font-size:13.8px}
  .contest-grid{grid-template-columns:1fr}
  .contest-steps li{padding:13px 14px 13px 48px;font-size:13.6px}
  .contest-cta{gap:10px}
  .contest-cta .btn{width:100%;justify-content:center}
}

/* ================= DS-10 全站卡片媒体：固定宽高比 + 等比裁切 =================
   问题：微信内置浏览器（iOS<15 / 老版 Android X5 内核）不支持 aspect-ratio 与 inset 简写，
   卡片媒体容器高度算错，图片被拉成竖长条、比例失真（电脑端正常）。
   策略：现代内核只加 object-fit:cover 保证裁切；不支持 aspect-ratio 的内核用
   padding-bottom 百分比兜底，容器比例与视觉完全一致，不改卡片布局/文字/交互。 */
.work-cover > img,
.video-cover > img,
.album-cover > img,
.slide-media > img,
.dt-img > img,
.ai-sample > img,
.mat-cover > img,
.mat-card .mat-video,
.work-cover video,
.video-cover video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block;
}
.work-cover > img, .video-cover > img, .album-cover > img,
.slide-media > img, .dt-img > img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}
@supports not (aspect-ratio: 1 / 1) {
  /* —— 老内核兜底：用 padding-bottom 撑出固定比例 —— */
  .work-cover, .video-cover, .album-cover, .img-skeleton, .dt-img { height: 0; }
  .work-cover, .img-skeleton { padding-bottom: 62.5%; }      /* 16:10 */
  .video-cover, .dt-img { padding-bottom: 56.25%; }          /* 16:9  */
  .album-cover { padding-bottom: 75%; }                       /* 4:3   */
  .dt-img--portrait { padding-bottom: 133.33%; }              /* 3:4   */
  .work-cover > *, .video-cover > *, .album-cover > *, .dt-img > * {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  }
  .album-cover > *, .dt-img > * { display: grid; place-items: center; }
}
