
/* ============================================================
   主题变量：6 套可切换配色
   ============================================================ */
:root,
[data-theme="navy-gold"] {
  --bg: #0e1b2e;
  --bg-soft: #14263d;
  --card: #1a2f4a;
  --ink: #eef3f8;
  --muted: #9db0c4;
  --line: rgba(238, 243, 248, 0.14);
  --accent: #e8b64c;
  --accent-2: #7fd0c9;
  --accent-ink: #101a26;
  --chip-bg: rgba(14, 27, 46, 0.72);
}
[data-theme="cream-terra"] {
  --bg: #faf6ef;
  --bg-soft: #f3ead9;
  --card: #fffdf8;
  --ink: #33251c;
  --muted: #8a7663;
  --line: rgba(51, 37, 28, 0.16);
  --accent: #c96f4a;
  --accent-2: #3d7a6b;
  --accent-ink: #fff8ee;
  --chip-bg: rgba(51, 37, 28, 0.78);
}
[data-theme="pine-gold"] {
  --bg: #0f2420;
  --bg-soft: #16312b;
  --card: #1c3a33;
  --ink: #eef6f1;
  --muted: #9dbcb0;
  --line: rgba(238, 246, 241, 0.14);
  --accent: #d9b877;
  --accent-2: #7fd6a8;
  --accent-ink: #0f2420;
  --chip-bg: rgba(15, 36, 32, 0.72);
}
[data-theme="violet-neon"] {
  --bg: #150f2e;
  --bg-soft: #1e1740;
  --card: #261d4e;
  --ink: #f2eefc;
  --muted: #a89cc9;
  --line: rgba(242, 238, 252, 0.14);
  --accent: #e04fa0;
  --accent-2: #7a6cff;
  --accent-ink: #ffffff;
  --chip-bg: rgba(21, 15, 46, 0.72);
}
[data-theme="carbon-acid"] {
  --bg: #0d0f0d;
  --bg-soft: #161a15;
  --card: #1c211b;
  --ink: #eef2ea;
  --muted: #9aa38f;
  --line: rgba(238, 242, 234, 0.14);
  --accent: #b8f34e;
  --accent-2: #4ee3c0;
  --accent-ink: #0d0f0d;
  --chip-bg: rgba(13, 15, 13, 0.72);
}
[data-theme="mist-coral"] {
  --bg: #eef4f7;
  --bg-soft: #e2edf2;
  --card: #ffffff;
  --ink: #1c2b33;
  --muted: #6f8490;
  --line: rgba(28, 43, 51, 0.16);
  --accent: #f26b5f;
  --accent-2: #2f7f9d;
  --accent-ink: #ffffff;
  --chip-bg: rgba(28, 43, 51, 0.78);
}

/* ============================================================
   基础
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background-color 0.45s ease, color 0.45s ease;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   通用组件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-soft); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.01em;
}
.section-lead { margin: 0 0 40px; color: var(--muted); font-size: 16px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { letter-spacing: 0.02em; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 360px at 82% 12%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(480px 320px at 8% 88%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-name {
  margin: 0 0 6px;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 18px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--accent);
}
.hero-desc {
  margin: 0 0 30px;
  max-width: 30em;
  color: var(--muted);
  font-size: 16px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-mini-stats li strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.hero-mini-stats li span { font-size: 13px; color: var(--muted); }

/* Hero 封面卡（签名元素：抖音封面 + 播放角标） */
.hero-visual { display: flex; justify-content: center; }
.cover-card {
  position: relative;
  display: block;
  width: min(320px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.45);
  border: 3px solid var(--accent);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.cover-card:hover { transform: rotate(0deg) translateY(-4px); }
.cover-card img { width: 100%; height: 100%; object-fit: cover; }
.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}
.cover-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cover-badge svg { width: 13px; height: 13px; }
.cover-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd84d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cover-account {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   区块通用
   ============================================================ */
.section { padding: 84px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }

/* ============================================================
   代表作品
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.45); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.78) 100%);
}
.work-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd84d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.work-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.work-play svg { width: 13px; height: 13px; }
.work-info {
  position: absolute;
  inset: auto 16px 14px;
  z-index: 2;
}
.work-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd84d;
  font-size: 13px;
  font-weight: 700;
}
.work-link svg { width: 14px; height: 14px; }

/* ============================================================
   课程体系
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.course-card {
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.course-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.course-name {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.course-name em { font-style: normal; color: var(--accent); }
.course-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.course-for { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.course-for b { color: var(--ink); font-weight: 700; }

/* ============================================================
   数据成果
   ============================================================ */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.data-tile {
  padding: 26px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.data-tile.hot { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.data-tile.hot .data-label { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.data-num {
  display: block;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.data-label { font-size: 14px; color: var(--muted); line-height: 1.55; }
.data-label b { color: var(--ink); font-weight: 700; }
.data-tile.hot .data-label b { color: var(--accent-ink); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 56px;
  text-align: center;
}
.foot-name { font-size: 18px; font-weight: 900; margin: 0 0 6px; }
.foot-note { margin: 0; color: var(--muted); font-size: 13px; }

/* ============================================================
   名字编辑弹窗
   ============================================================ */
dialog {
  width: min(420px, 92vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.dialog-title { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.dialog-desc { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.dialog-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}
.dialog-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.dialog-actions .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }

/* ============================================================
   排版切换：经典 / 沉浸 / 杂志 三套版式（内容不变，版式差异大）
   ============================================================ */
/* --- 沉浸版：整高 hero、横向作品卡、无框数据 --- */
[data-layout="immersive"] .hero { padding: 0; }
[data-layout="immersive"] .hero-inner { min-height: min(720px, 86vh); grid-template-columns: 1fr 1fr; align-items: stretch; gap: 36px; }
[data-layout="immersive"] .hero-copy { display: flex; flex-direction: column; justify-content: center; }
[data-layout="immersive"] .hero-visual { align-items: center; justify-content: flex-end; }
[data-layout="immersive"] .cover-card { width: 100%; max-width: 430px; height: 100%; max-height: 600px; transform: none; border-radius: 26px; align-self: center; }
[data-layout="immersive"] .works-grid { grid-template-columns: 1fr; gap: 18px; }
[data-layout="immersive"] .work-card { aspect-ratio: auto; height: 250px; display: grid; grid-template-columns: 220px 1fr; }
[data-layout="immersive"] .work-card img { position: absolute; left: 0; top: 0; width: 220px; height: 100%; }
[data-layout="immersive"] .work-card::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.3) 32%, transparent 55%); }
[data-layout="immersive"] .work-info { position: static; inset: auto; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 26px 0 30px; }
[data-layout="immersive"] .work-title { -webkit-line-clamp: 3; font-size: 18px; margin-bottom: 10px; }
[data-layout="immersive"] .work-tag,
[data-layout="immersive"] .work-play { z-index: 2; }
[data-layout="immersive"] .courses-grid { grid-template-columns: repeat(2, 1fr); }
[data-layout="immersive"] .data-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
[data-layout="immersive"] .data-tile { border: none; background: transparent; border-left: 3px solid var(--accent); border-radius: 0; padding: 10px 18px; }
[data-layout="immersive"] .data-tile.hot { background: var(--accent); color: var(--accent-ink); border-left: none; border-radius: 18px; }

/* --- 杂志版：小图在左、作品错落、课程清单、数据表格 --- */
[data-layout="magazine"] .hero { padding: 56px 0 64px; }
[data-layout="magazine"] .hero-inner { grid-template-columns: 0.55fr 1.45fr; gap: 44px; }
[data-layout="magazine"] .hero-visual { order: -1; justify-content: flex-start; }
[data-layout="magazine"] .cover-card { width: min(250px, 62vw); transform: none; border-radius: 12px; }
[data-layout="magazine"] .hero-name { font-size: clamp(42px, 5.4vw, 64px); }
[data-layout="magazine"] .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 330px; gap: 22px; }
[data-layout="magazine"] .work-card { aspect-ratio: auto; height: 100%; }
[data-layout="magazine"] .work-card:nth-child(1) { grid-row: span 2; }
[data-layout="magazine"] .work-card:nth-child(4) { grid-column: span 2; height: 300px; }
[data-layout="magazine"] .work-card:nth-child(4) .work-title { font-size: 19px; }
[data-layout="magazine"] .courses-grid { grid-template-columns: 1fr; gap: 0; counter-reset: course; }
[data-layout="magazine"] .course-card { counter-increment: course; display: grid; grid-template-columns: 56px 1.1fr 1.4fr; align-items: center; gap: 20px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 22px 6px; }
[data-layout="magazine"] .course-card::before { content: "0" counter(course); font-size: 20px; font-weight: 900; color: var(--accent); font-family: "Noto Serif SC", "Songti SC", serif; }
[data-layout="magazine"] .course-card:hover { transform: none; }
[data-layout="magazine"] .course-for { text-align: right; }
[data-layout="magazine"] .data-grid { grid-template-columns: 1fr; gap: 0; }
[data-layout="magazine"] .data-tile { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 6px; }
[data-layout="magazine"] .data-tile.hot { background: transparent; color: inherit; }
[data-layout="magazine"] .data-tile.hot .data-num { color: var(--accent); }
[data-layout="magazine"] .data-tile.hot .data-label { color: var(--muted); }
[data-layout="magazine"] .data-tile.hot .data-label b { color: var(--ink); }
[data-layout="magazine"] .data-num { margin: 0; font-size: clamp(26px, 3vw, 34px); }
[data-layout="magazine"] .data-label { text-align: right; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 64px; }
  .works-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  [data-layout="immersive"] .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  [data-layout="immersive"] .cover-card { height: auto; max-height: none; }
  [data-layout="magazine"] .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  [data-layout="magazine"] .hero-visual { order: 0; justify-content: center; }
}
@media (max-width: 560px) {
  .works-grid, .courses-grid, .data-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 10px 16px; }
  .container { padding: 0 16px; }
  .btn span { display: none; }
  .btn { padding: 10px 12px; }
  .brand-sub { display: none; }
  .section { padding: 60px 0; }
  [data-layout="magazine"] .works-grid { grid-template-columns: 1fr; }
  [data-layout="magazine"] .course-card { grid-template-columns: 1fr; gap: 8px; }
  [data-layout="magazine"] .course-for { text-align: left; }
  [data-layout="immersive"] .work-card { grid-template-columns: 128px 1fr; height: 210px; }
  [data-layout="immersive"] .work-card img { width: 128px; }
  [data-layout="immersive"] .work-info { padding: 0 14px 0 16px; }
  [data-layout="immersive"] .work-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

