/* ============================================================
   龙正哲个人官网 · 全站样式
   设计系统：Linear-style —— 近黑画布 + 薰衣草蓝 + 发丝线 + 负字距
   深色 · 克制 · 安静的奢华 · 零外部依赖
   ============================================================ */

/* ---------- Reset & Tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 色彩（Linear 规范） */
  --primary: #5e6ad2;         /* 薰衣草蓝：品牌、主 CTA、焦点 */
  --primary-hover: #828fff;   /* hover 提亮 */
  --primary-focus: #5e69d1;
  --primary-dim: rgba(94, 106, 210, 0.14);
  --canvas: #090a0d;          /* 炭灰画布 */
  --surface-1: #1c1d22;       /* 卡片面板，与画布拉大差距 */
  --surface-2: #26282e;       /* hover / featured */
  --surface-3: #2e3036;       /* 更高层 */
  --hairline: #33363d;        /* 发丝线边框 */
  --hairline-strong: #44474f;
  --ink: #f7f8f8;             /* 主文字 */
  --ink-muted: #d0d6e0;       /* 次文字 */
  --ink-subtle: #9a9fab;      /* 三级文字（提亮一档） */
  --ink-tertiary: #6e737c;    /* 弱文字 */
  --success: #27a644;         /* 唯一语义色：免费 */
  --success-text: #57c975;
  --success-dim: rgba(39, 166, 68, 0.13);
  --paid-text: #828fff;       /* 付费 = 薰衣草提亮（保持单色系） */
  --paid-dim: rgba(130, 143, 255, 0.13);
  --overlay: rgba(12, 13, 16, 0.78);

  /* 字体 */
  --font: -apple-system, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

  /* 圆角（Linear 规范） */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-xxl: 24px;

  /* 间距（4px 基数） */
  --sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-xxl: 48px; --sp-section: 96px;

  --container: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink-muted);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink-muted); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--ink); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(94, 106, 210, 0.35); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.icon { width: 24px; height: 24px; display: block; }
.icon-sm { width: 18px; height: 18px; display: block; }
.icon-lg { width: 32px; height: 32px; display: block; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------- 滚动渐显（reveal） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons（8px 圆角，Linear 紧凑规格） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  min-height: 40px; border: 1px solid transparent; white-space: nowrap;
}
.btn .icon-sm { width: 16px; height: 16px; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 0 rgba(94, 106, 210, 0);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px -6px rgba(94, 106, 210, 0.55); }
.btn-primary:active { background: var(--primary-focus); transform: none; }
.btn-secondary {
  background: var(--surface-1); color: var(--ink); border-color: var(--hairline);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.btn-ghost { background: transparent; color: var(--ink-subtle); border-color: var(--hairline); }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); border-color: var(--hairline-strong); }
.btn-inverse { background: #fff; color: #0a0a0c; }
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -8px rgba(255, 255, 255, 0.35); color: #0a0a0c; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
.btn-block { width: 100%; }

/* ---------- Tags（胶囊状态徽标） ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; line-height: 1.7; letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--hairline);
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-tertiary); }
.tag-free { background: var(--success-dim); color: var(--success-text); border-color: rgba(39, 166, 68, 0.25); }
.tag-free::before { background: var(--success); }
.tag-paid { background: var(--paid-dim); color: var(--paid-text); border-color: rgba(130, 143, 255, 0.25); }
.tag-paid::before { background: var(--primary-hover); }
.tag-accent { background: var(--primary-dim); color: #aab3ff; border-color: rgba(94, 106, 210, 0.35); }
.tag-accent::before { background: var(--primary); }
.tag-plain::before { display: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(1, 1, 2, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7b83e0 100%);
  color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px -4px rgba(94, 106, 210, 0.5);
}
.logo-text { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 400; color: var(--ink-subtle); white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); background: var(--surface-2); }

.nav-cta { flex-shrink: 0; }

.burger {
  display: none; width: 40px; height: 40px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--ink-muted);
}
.burger:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Hero（Linear 式：负字距大标题 + 薰衣草微光） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 108px 0 72px;
  background: #0c0d11;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 50% -6%, rgba(94, 106, 210, 0.17) 0%, transparent 60%),
    radial-gradient(ellipse 38% 32% at 82% 12%, rgba(94, 106, 210, 0.07) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(94, 106, 210, 0.12), transparent);
  pointer-events: none; opacity: .6;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 26px;
  background: var(--surface-1); border: 1px solid var(--hairline);
  font-size: 12.5px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0.06em;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary-hover);
  box-shadow: 0 0 0 0 rgba(130, 143, 255, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(130, 143, 255, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(130, 143, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(130, 143, 255, 0); }
}

.hero h1 {
  font-size: 62px; font-weight: 600; line-height: 1.06;
  letter-spacing: -0.028em; color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e4e0ff 0%, #828fff 48%, #5e6ad2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: 17px; line-height: 1.65; color: var(--ink-subtle);
  max-width: 540px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-platforms { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-platforms .hp-label { font-size: 12px; color: var(--ink-tertiary); letter-spacing: 0.08em; }
.hero-platforms .hp-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-subtle); transition: color 0.15s;
}
.hero-platforms .hp-item:hover { color: var(--ink); }
.hero-platforms .hp-item .icon-sm { opacity: 0.75; }

/* Hero 入场动效 */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-platforms, .hero-card {
  animation: heroRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero-lead { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }
.hero-platforms { animation-delay: 0.32s; }
.hero-card { animation-delay: 0.2s; }

/* Hero 侧卡（炭灰面板 + 顶部微光边） */
.hero-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 28px;
  text-align: center;
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 143, 255, 0.65), transparent);
}
.hero-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden; border: 1px solid var(--hairline-strong);
  box-shadow: 0 0 40px -8px rgba(94, 106, 210, 0.6);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-card h2 { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: 0.1em; margin-bottom: 4px; }
.hero-card .hc-title { font-size: 12.5px; color: var(--ink-subtle); margin-bottom: 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stats .hs-item {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 12px 8px;
}
.hero-stats .hs-num { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.hero-stats .hs-num sup { font-size: 12px; color: var(--primary-hover); }
.hero-stats .hs-label { font-size: 11px; color: var(--ink-tertiary); margin-top: 4px; }

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #07080a; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat-item { text-align: center; padding: 4px 12px; border-right: 1px solid var(--hairline); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 34px; font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -0.03em; }
.stat-num small, .stat-num sup { font-size: 18px; font-weight: 500; color: var(--primary-hover); }
.stat-label { font-size: 13px; color: var(--ink-subtle); margin-top: 6px; }

/* ---------- Section ---------- */
.section { padding: 100px 0; background: #090a0d; }
.section-alt {
  background: #181a1f;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-title .eyebrow {
  display: block; font-size: 12px; font-weight: 500; color: var(--primary-hover);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title h2 {
  font-size: 38px; font-weight: 600; color: var(--ink);
  line-height: 1.12; letter-spacing: -0.022em;
}
.section-title p { font-size: 15px; color: var(--ink-subtle); margin-top: 12px; max-width: 620px; }
.section-more {
  font-size: 13.5px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px; color: var(--ink-subtle);
  padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--hairline);
  background: var(--surface-1); transition: all 0.16s ease; margin-bottom: 6px;
}
.section-more:hover { color: var(--ink); border-color: var(--hairline-strong); background: var(--surface-2); }
.section-more .icon-sm { width: 14px; height: 14px; transition: transform 0.18s; }
.section-more:hover .icon-sm { transform: translateX(2px); }

.group-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-subtle);
  letter-spacing: 0.1em; margin: 44px 0 18px;
}
.group-label::before { content: ''; width: 14px; height: 1px; background: var(--primary); }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.group-label .icon-sm { color: var(--primary-hover); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 20px 0 0; font-size: 12.5px; color: var(--ink-tertiary); }
.breadcrumb a { color: var(--ink-tertiary); }
.breadcrumb a:hover { color: var(--ink-muted); }
.breadcrumb .sep { margin: 0 9px; color: var(--hairline-strong); }
.breadcrumb .cur { color: var(--ink-subtle); }

/* ---------- 内页 Page Hero ---------- */
.page-hero {
  position: relative; padding: 44px 0 56px;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 54% 66% at 18% -20%, rgba(94, 106, 210, 0.13) 0%, transparent 60%),
    var(--canvas);
}
.page-hero h1 {
  font-size: 42px; font-weight: 600; color: var(--ink);
  line-height: 1.12; letter-spacing: -0.024em; margin-bottom: 16px;
}
.page-hero .ph-eyebrow {
  display: block; font-size: 12px; font-weight: 500; color: var(--primary-hover);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero .ph-desc { font-size: 15.5px; color: var(--ink-subtle); max-width: 740px; line-height: 1.75; }
.ph-cols { display: grid; grid-template-columns: 1fr 248px; gap: 44px; align-items: start; }
.ph-qr-card {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 18px; text-align: center;
}
.ph-qr-card img { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: var(--r-sm); }
.ph-qr-card .qr-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ph-qr-card .qr-d { font-size: 12px; color: var(--ink-subtle); margin-top: 5px; line-height: 1.6; }

/* ---------- Service Card ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.service-card::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 143, 255, 0.0), transparent);
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-3px); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.5); }
.service-card:hover::before { background: linear-gradient(90deg, transparent, rgba(130, 143, 255, 0.75), transparent); }
.service-icon {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--primary-dim); color: #aab3ff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
  border: 1px solid rgba(94, 106, 210, 0.22);
}
.service-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.service-card .sc-desc { font-size: 13px; color: var(--ink-subtle); line-height: 1.68; flex: 1; }
.service-card .sc-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.service-card .sc-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--ink-subtle); margin-top: 6px;
  transition: color 0.15s;
}
.service-card:hover .sc-link { color: var(--primary-hover); }
.service-card .sc-link .icon-sm { width: 13px; height: 13px; transition: transform 0.18s; }
.service-card:hover .sc-link .icon-sm { transform: translateX(3px); }

/* ---------- Work Card（3:4 作品卡） ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-card { position: relative; }
.work-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-1); cursor: pointer; text-align: left; padding: 0;
  border: 1px solid var(--hairline);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.work-media:hover {
  transform: translateY(-4px); border-color: var(--hairline-strong);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.7);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.work-media:hover img { transform: scale(1.045); }
.work-badge {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(1, 1, 2, 0.66); color: var(--ink-muted); font-size: 11px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(6px);
}
.qr-corner {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px;
  border-radius: var(--r-xs); background: #fff; padding: 3px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.work-media:hover .qr-corner, .work-media:focus-visible .qr-corner { opacity: 1; transform: none; }
.qr-corner img { width: 100%; height: 100%; border-radius: 2px; }
.play-corner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(15, 16, 17, 0.72); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.22s ease, background 0.2s;
  backdrop-filter: blur(6px);
}
.play-corner .icon { width: 20px; height: 20px; }
.work-media:hover .play-corner { opacity: 1; background: rgba(94, 106, 210, 0.85); border-color: rgba(130, 143, 255, 0.5); }
.work-info { padding: 11px 2px 0; }
.work-info h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-muted); line-height: 1.45; letter-spacing: -0.005em; }
.work-info p { font-size: 12px; color: var(--ink-tertiary); margin-top: 3px; line-height: 1.55; }

/* ---------- Course Card（16:9） ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.course-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-3px); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.5); }
.course-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-media .tag { position: absolute; left: 10px; top: 10px; }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; letter-spacing: -0.008em; }
.course-body .cc-meta { font-size: 12px; color: var(--ink-tertiary); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.course-body .cc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-body .cc-meta .icon-sm { width: 13px; height: 13px; }
.course-body .cc-desc { font-size: 13px; color: var(--ink-subtle); line-height: 1.68; flex: 1; }
.course-body .cc-actions { margin-top: 4px; }

/* ---------- Product Card ---------- */
.product-card {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-3px); box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.5); }
.product-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.product-media:hover img { transform: scale(1.03); }
.product-media .zoom-hint {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(1, 1, 2, 0.66); color: var(--ink-muted); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
}
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.product-body .pd-desc { font-size: 13px; color: var(--ink-subtle); line-height: 1.7; flex: 1; }
.product-body .pd-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* 截图画廊 */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shot-card {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-1); transition: border-color 0.2s, transform 0.2s;
}
.shot-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.shot-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); cursor: zoom-in; }
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
.shot-media .zoom-hint {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(1, 1, 2, 0.66); color: var(--ink-muted); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09);
}
.shot-card figcaption { padding: 11px 14px; font-size: 12.5px; color: var(--ink-subtle); border-top: 1px solid var(--hairline); }

/* ---------- Feature / Steps ---------- */
.feature-card {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.5); }
.feature-icon {
  width: 38px; height: 38px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--primary-dim); color: #aab3ff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(94, 106, 210, 0.22);
}
.feature-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.008em; }
.feature-card p { font-size: 13px; color: var(--ink-subtle); line-height: 1.68; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
  position: relative; background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.step-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.5); }
.step-num {
  width: 28px; height: 28px; border-radius: var(--r-sm); margin-bottom: 14px;
  background: var(--primary-dim); color: #aab3ff;
  border: 1px solid rgba(94, 106, 210, 0.25);
  font-size: 13px; font-weight: 600; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--ink-subtle); line-height: 1.65; }

/* ---------- Mode cards（定制 / 一对一） ---------- */
.mode-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mode-card {
  position: relative; background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 28px 26px; overflow: hidden;
}
.mode-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary-hover), var(--primary));
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.55);
}
.mode-card.mc-coach::before { background: linear-gradient(180deg, #57c975, var(--success)); box-shadow: 0 0 12px rgba(39, 166, 68, 0.45); }
.mode-card .mc-badge { position: absolute; right: 18px; top: 20px; }
.mode-card h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.012em; }
.mode-card .mc-sub { font-size: 13px; color: var(--ink-subtle); margin-bottom: 18px; }
.mode-card ul { margin-bottom: 18px; }
.mode-card li {
  position: relative; padding-left: 24px; font-size: 13.5px;
  color: var(--ink-muted); line-height: 1.68; margin-bottom: 9px;
}
.mode-card li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--primary-dim); border: 1.5px solid var(--primary);
}
.mode-card.mc-coach li::before { border-color: var(--success); background: var(--success-dim); }
.mode-card .mc-note {
  font-size: 12.5px; color: var(--ink-tertiary);
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 10px 14px;
}

/* ---------- Platform cards ---------- */
.platform-card {
  display: grid; grid-template-columns: 56px 1fr 118px; gap: 20px; align-items: center;
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.platform-card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.5); }
.platform-card .pf-icon {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  background: var(--primary-dim); color: #aab3ff;
  border: 1px solid rgba(94, 106, 210, 0.22);
  display: flex; align-items: center; justify-content: center;
}
.platform-card h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.platform-card .pf-sub { font-size: 12.5px; color: var(--ink-subtle); margin-top: 4px; }
.platform-card .pf-qr { text-align: center; cursor: pointer; }
.platform-card .pf-qr img { width: 90px; height: 90px; border-radius: var(--r-sm); border: 1px solid var(--hairline); transition: border-color 0.2s; }
.platform-card .pf-qr:hover img { border-color: var(--primary); }
.platform-card .pf-qr p { font-size: 11px; color: var(--ink-tertiary); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 840px; }
.faq-item {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { background: var(--surface-1); border-color: var(--hairline-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 16px 52px 16px 20px; position: relative;
  font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.55;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--primary-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 20px; font-weight: 300;
  color: var(--ink-tertiary); transition: transform 0.22s ease, color 0.2s; line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--primary-hover); }
.faq-body { padding: 0 20px 18px; font-size: 13.5px; color: var(--ink-subtle); line-height: 1.78; }
.faq-item[open] .faq-body { animation: faqOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs（课程筛选） ---------- */
.tabs {
  display: inline-flex; gap: 4px; background: var(--surface-1);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.tabs button {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--ink-subtle); transition: all 0.18s ease; min-height: 34px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--primary); color: #fff; }
.course-card.hidden { display: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--hairline-strong); }
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-dim);
}
.timeline .tl-time {
  font-size: 11.5px; font-weight: 500; color: var(--primary-hover);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--mono);
}
.timeline h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 6px 0 8px; letter-spacing: -0.01em; }
.timeline p { font-size: 14px; color: var(--ink-subtle); line-height: 1.75; max-width: 620px; }

/* ---------- CTA band（Linear 式 surface 面板） ---------- */
.cta-section { padding: 40px 0 88px; }
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 70% 100% at 85% 8%, rgba(94, 106, 210, 0.16) 0%, transparent 55%),
    var(--surface-1);
  padding: 56px 60px;
  display: grid; grid-template-columns: 1.5fr auto; gap: 44px; align-items: center;
}
.cta-band::before {
  content: ''; position: absolute; left: 6%; right: 40%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 143, 255, 0.75), transparent);
}
.cta-band h2 {
  font-size: 32px; font-weight: 600; color: var(--ink);
  margin-bottom: 14px; letter-spacing: -0.02em; line-height: 1.15;
}
.cta-band p { font-size: 15px; color: var(--ink-subtle); max-width: 540px; }
.cta-band .cta-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.cta-qr {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 16px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.cta-qr:hover { border-color: var(--primary); transform: translateY(-2px); }
.cta-qr img { width: 128px; height: 128px; border-radius: var(--r-sm); }
.cta-qr p { color: var(--ink-subtle); font-size: 12px; margin: 10px 0 0; max-width: none; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: var(--overlay); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal.open { display: flex; animation: modalFade 0.2s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-mask { position: absolute; inset: 0; }
.modal-card {
  position: relative; background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  width: 100%; max-width: 352px; padding: 30px 26px 26px;
  text-align: center; border-radius: var(--r-xl);
  animation: modalIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.modal-card.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; right: 12px; top: 12px;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-subtle); background: var(--surface-2);
  border: 1px solid var(--hairline);
  transition: all 0.15s;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); border-color: var(--hairline-strong); }
.modal-qr img { width: 200px; height: 200px; margin: 0 auto 18px; border-radius: var(--r-md); background: #fff; padding: 6px; }
.modal-pic img { width: 100%; border-radius: var(--r-md); margin: 0 auto 12px; }
.modal-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.modal-card .modal-desc { font-size: 13px; color: var(--ink-subtle); line-height: 1.7; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--canvas); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 44px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-top: 16px; max-width: 300px; color: var(--ink-tertiary); }
.footer-col h4 {
  font-size: 12px; font-weight: 500; color: var(--ink-subtle);
  margin-bottom: 16px; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-col a { display: block; font-size: 13px; color: var(--ink-tertiary); padding: 4.5px 0; }
.footer-col a:hover { color: var(--ink-muted); }
.footer-bottom {
  border-top: 1px solid var(--hairline); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-tertiary);
}

/* ---------- Back to top ---------- */
.backtop {
  position: fixed; right: 24px; bottom: 28px; z-index: 80;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--hairline);
  color: var(--ink-subtle);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.backtop.show { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ---------- 通用文本 ---------- */
.prose { max-width: 800px; }
.prose p { font-size: 15px; line-height: 1.85; color: var(--ink-muted); margin-bottom: 15px; }
.prose p:last-child { margin-bottom: 0; }

.note-box {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 15px 20px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.75;
}
.note-box b { color: var(--ink); }
.note-box a { color: var(--primary-hover); }

/* 联系表单 */
.contact-form { display: grid; gap: 16px; max-width: 620px; }
.contact-form label { font-size: 13px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--surface-1); transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.22);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-tertiary); }

/* ---------- 数据表格 ---------- */
.table-wrap {
  background: var(--surface-1); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap thead th {
  background: var(--surface-2); color: var(--ink-subtle); text-align: left;
  padding: 12px 18px; font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.06em; border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
.table-wrap tbody td { padding: 13px 18px; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr { transition: background 0.14s; }
.table-wrap tbody tr:hover td { background: var(--surface-2); }
.table-wrap td a { font-weight: 500; color: var(--ink); }
.table-wrap td a:hover { color: var(--primary-hover); }

/* ---------- 首页作品横滑 ---------- */
.works-scroller {
  display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.works-scroller .work-card { flex: 0 0 236px; scroll-snap-align: start; }
.works-scroller::-webkit-scrollbar { height: 6px; }
.works-scroller::-webkit-scrollbar-track { background: var(--surface-1); border-radius: 3px; }
.works-scroller::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }
.works-scroller::-webkit-scrollbar-thumb:hover { background: #4a4a52; }

/* ---------- 关于页头部 ---------- */
.about-hero { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
.about-hero img {
  border-radius: var(--r-xl); border: 1px solid var(--hairline-strong);
  box-shadow: 0 0 44px -10px rgba(94, 106, 210, 0.35);
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-hero img { margin: 0 auto; }
}

/* ---------- SEO 隐藏 ---------- */
.seo-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero h1 { font-size: 52px; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .courses-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { padding: 76px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-platforms { justify-content: center; }
  .hero-card { max-width: 380px; margin: 0 auto; width: 100%; }
  .ph-cols { grid-template-columns: 1fr; }
  .ph-qr-card { max-width: 260px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; text-align: center; padding: 44px 32px; }
  .cta-band p { margin: 0 auto; }
  .cta-band .cta-actions { justify-content: center; }
  .cta-qr { margin: 0 auto; }
  .shots-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: inline-flex; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface-1); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5); padding: 10px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { display: none; }

  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
  .section-title h2 { font-size: 30px; }
  .page-hero h1 { font-size: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-eyebrow { font-size: 11.5px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 22px 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--hairline); padding: 16px 8px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 27px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .courses-grid, .grid-3, .grid-2, .mode-cards { grid-template-columns: 1fr; }
  .platform-card { grid-template-columns: 48px 1fr; }
  .platform-card .pf-icon { width: 48px; height: 48px; }
  .platform-card .pf-qr { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 44px 0 32px; }
  .footer-bottom { flex-direction: column; }
  .backtop { right: 16px; bottom: 20px; }
  .cta-band h2 { font-size: 26px; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; }
  .works-scroller .work-card { flex: 0 0 200px; }
}

/* ============================================================
   炫酷升级 · 粒子 / 光晕 / 3D / 噪点 / 流动渐变 / 微动
   ============================================================ */

/* ---------- 全局噪点纹理 ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Hero 网格线 ---------- */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(94, 106, 210, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 106, 210, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
}

/* ---------- Hero 粒子 Canvas ---------- */
.hero-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}

/* ---------- Hero 鼠标光晕 ---------- */
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.12) 0%, transparent 65%);
  pointer-events: none; z-index: 0; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}
.hero:hover .hero-glow { opacity: 1; }

/* ---------- 标题流动渐变 ---------- */
.hero h1 em {
  background: linear-gradient(100deg, #e4e0ff, #828fff, #5e6ad2, #a8b0ff, #e4e0ff);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientFlow 4s linear infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

/* ---------- 按钮呼吸发光 ---------- */
.btn-primary {
  animation: btnBreathe 3s ease-in-out infinite;
}
@keyframes btnBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 106, 210, 0); }
  50% { box-shadow: 0 0 20px -2px rgba(94, 106, 210, 0.4); }
}
.btn-primary:hover { animation: none; box-shadow: 0 6px 24px -6px rgba(94, 106, 210, 0.55); }

/* ---------- 导航链接下划线展开 ---------- */
.main-nav a { position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1.5px; border-radius: 1px; background: var(--primary-hover);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ---------- 标签弹跳 ---------- */
.tag { transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tag:hover { transform: scale(1.08); }

/* ---------- 进度条发光拖尾 ---------- */
.scroll-progress {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  box-shadow: 0 0 8px rgba(94, 106, 210, 0.6);
}

/* ---------- 3D 倾斜卡片基础 ---------- */
.service-card, .work-card, .course-card, .product-card, .feature-card, .step-card, .mode-card {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tilt-active { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-3px); }

/* ---------- 卡片光斑跟随 ---------- */
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(circle 180px at var(--mx, 50%) var(--my, 50%), rgba(130, 143, 255, 0.12), transparent 60%);
  z-index: 1;
}
.service-card:hover .card-glow, .work-card:hover .card-glow,
.course-card:hover .card-glow, .product-card:hover .card-glow,
.feature-card:hover .card-glow { opacity: 1; }

/* ---------- 滚动渐显升级：弹入+缩放 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 数字发光脉冲 ---------- */
.stat-num, .hs-num {
  text-shadow: 0 0 24px rgba(94, 106, 210, 0.2);
}
.stat-item.in .stat-num, .hs-item .hs-num {
  animation: numGlow 1.6s ease-out;
}
@keyframes numGlow {
  0% { text-shadow: 0 0 0 rgba(94, 106, 210, 0); }
  40% { text-shadow: 0 0 28px rgba(94, 106, 210, 0.55); }
  100% { text-shadow: 0 0 24px rgba(94, 106, 210, 0.2); }
}

/* ---------- 作品卡 ken-burns ---------- */
.work-media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.work-media:hover img { transform: scale(1.06) rotate(0.5deg); }

/* ---------- 二维码角标弹性弹出 ---------- */
.qr-corner {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.work-media:hover .qr-corner, .work-media:focus-visible .qr-corner {
  opacity: 1; transform: scale(1);
}

/* ---------- CTA 顶部光带流动 ---------- */
.cta-band::before {
  background: linear-gradient(90deg, transparent, rgba(130, 143, 255, 0.75), transparent, rgba(130, 143, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: lightFlow 4s linear infinite;
}
@keyframes lightFlow {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- 返回顶部发光 ---------- */
.backtop.show { box-shadow: 0 0 16px rgba(94, 106, 210, 0.3); }

/* ---------- reduced motion 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
  .btn-primary { animation: none; }
  .cta-band::before { animation: none; }
  .card-glow { display: none; }
  .hero-grid-bg { display: none; }
  .hero-particles { display: none; }
  .hero-glow { display: none; }
}
