:root {
  color-scheme: dark;

  /* ── 黑白色板 tokens ── */
  --bg:  #060606;
  --bg2: #0c0c0e;

  /* 黑琉璃玻璃 */
  --glass:  rgba(255, 255, 255, 0.04);
  --glass2: rgba(255, 255, 255, 0.08);

  /* 白色描边 */
  --line:  rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);

  /* 文字灰阶（均满足 4.5:1 对比度） */
  --text:  #f2f2f2;
  --muted: #8e8e8e; /* 对 #060606 实测 6.18:1 */
  --dim:   #777777; /* 对 #060606 实测 ≈4.52:1，过 WCAG AA */

  /* 强调：纯白系，无彩色 */
  --accent:        rgba(255, 255, 255, 0.85);
  --accent-bright: #ffffff;
  --accent-soft:   rgba(255, 255, 255, 0.07);
  --accent2:       rgba(210, 210, 210, 0.80);
  --accent2-soft:  rgba(255, 255, 255, 0.05);
  --accent3:       rgba(170, 170, 170, 0.85);

  /* 卡片/表面 */
  --card:   rgba(255, 255, 255, 0.04);
  --card2:  rgba(255, 255, 255, 0.07);
  --border: var(--line);

  /* 字体 */
  --font-serif:   "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-cn:      "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num:     "Rajdhani", "Noto Serif SC", serif;
  --font-display: "Syne", "Rajdhani", sans-serif;
  --font-en:      "Syne", "Rajdhani", sans-serif;
  --font-mono:    "Rajdhani", monospace;

  /* 布局 — 更慷慨的圆角 */
  --maxw:   1180px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 极细噪点肌理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  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 type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.030;
}

::selection { background: rgba(255, 255, 255, 0.18); color: #ffffff; }

/* ── 星空画布 ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 白色科技网格纹 ── */
.tech-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(ellipse 90% 72% at 50% 18%, #000 18%, transparent 86%);
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 18%, #000 18%, transparent 86%);
}

/* ── 白极光背景 ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background:
    radial-gradient(58% 44% at 50% -6%, rgba(255, 255, 255, 0.08), transparent 66%),
    radial-gradient(42% 36% at 84% 8%,  rgba(200, 200, 200, 0.04), transparent 70%),
    radial-gradient(40% 40% at 14% 22%, rgba(255, 255, 255, 0.03), transparent 72%),
    radial-gradient(60% 50% at 70% 90%, rgba(0, 0, 0, 0.50),       transparent 70%);
  animation: auroraDrift 28s ease-in-out infinite;
}

@keyframes auroraDrift {
  0%,  100% { opacity: 0.80; transform: translateY(0)   scale(1);    }
  33%       { opacity: 0.95; transform: translateY(18px) scale(1.01); }
  66%       { opacity: 0.85; transform: translateY(-10px) scale(0.99); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 26%, transparent 36%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, transparent 26%, rgba(0, 0, 0, 0.68) 100%);
}

/* ── 顶栏 ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(4, 4, 4, 0.65);
  backdrop-filter: saturate(130%) blur(20px);
  -webkit-backdrop-filter: saturate(130%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b     { font-family: var(--font-serif); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.brand-text small { font-family: var(--font-display); font-size: 9px; color: var(--dim); letter-spacing: .22em; opacity: 0.9; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav a:hover { color: var(--accent-bright); }

/* ── 锚点偏移 ── */
section[id], main[id] { scroll-margin-top: 88px; }

/* ── 主内容 ── */
main {
  position: relative;
  z-index: 10;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 154px 0 106px;
  position: relative;
}

/* 分镜格背景母题 — hero 右侧隐约可见 */
.hero::before {
  content: "";
  position: absolute;
  right: -2%;
  top: 5%;
  width: 54%;
  height: 92%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, rgba(0,0,0,0.45) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, rgba(0,0,0,0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Hero 首屏错峰渐入 ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-copy > .eyebrow   { animation: heroIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.10s; }
.hero-copy > .hero-title { animation: heroIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both 0.26s; }
.hero-copy > .hero-sub   { animation: heroIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.44s; }
.hero-copy > .hero-cta   { animation: heroIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.58s; }
.hero-visual             { animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both 0.14s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 18px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 18px rgba(255, 255, 255, 0.3);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
/* 渐变白描字 — 微缓慢光晕移动 */
.hero-title .grad {
  background: linear-gradient(112deg, #ffffff 20%, #d8d8d8 55%, #ffffff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  animation: gradSlide 6s ease-in-out infinite;
}
@keyframes gradSlide {
  0%, 100% { background-position: 0% 0; }
  50%       { background-position: 100% 0; }
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.82;
  max-width: 30em;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

/* ── 产品窗口 ── */
.hero-visual {
  position: relative;
  will-change: transform;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  inset: -18% -12%;
  background:
    radial-gradient(50% 50% at 58% 38%, rgba(255, 255, 255, 0.07), transparent 68%),
    radial-gradient(44% 44% at 26% 74%, rgba(200, 200, 200, 0.04), transparent 70%);
  filter: blur(44px);
  z-index: -1;
  animation: glowPulse 10s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.68; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.06); }
}

.app-window {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 8, 0.96);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.80),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 0.5px rgba(255, 255, 255, 0.04);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.55s;
}
.app-window:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 52px 120px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 60px rgba(255, 255, 255, 0.04);
}

.aw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: rgba(8, 8, 8, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* 窗口圆点走灰阶明度阶梯：严格黑白系，不用 mac 红绿灯彩点（产品仅 Windows 版） */
.aw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2a; }
.aw-bar i:nth-child(1) { background: rgba(255, 255, 255, 0.24); }
.aw-bar i:nth-child(2) { background: rgba(255, 255, 255, 0.44); }
.aw-bar i:nth-child(3) { background: rgba(255, 255, 255, 0.68); }
.aw-title {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.app-window img { display: block; width: 100%; height: auto; }

/* hero 软件 UI Mock */
.aw-screen { background: linear-gradient(168deg, #0a0a0c, #060608); padding: 18px 18px 20px; }
.aw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.aw-htxt b { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.aw-htxt span { font-size: 10px; color: var(--dim); }
.aw-hbtn {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 9.5px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.aw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aw-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  background: rgba(14, 14, 16, 0.88);
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  min-height: 142px;
}
.aw-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 1px;
  background: var(--c);
  opacity: 0.65;
}
/* 灰阶三级 — 从亮到暗形成层次 */
.aw-card.g { --c: rgba(255, 255, 255, 0.70); }
.aw-card.c { --c: rgba(200, 200, 200, 0.55); }
.aw-card.v { --c: rgba(155, 155, 155, 0.45); }
.aw-ctop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.aw-cico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.aw-cico svg { width: 16px; height: 16px; }
.aw-cbadge {
  font-family: var(--font-display);
  font-size: 7.5px;
  color: var(--dim);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  padding: 2px 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.aw-cname { font-family: var(--font-serif); font-size: 14px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.aw-cen { font-family: var(--font-display); font-size: 7.5px; color: var(--dim); letter-spacing: 3px; margin-top: 3px; }
.aw-cgo {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 9.5px;
  color: var(--c);
  padding-top: 12px;
}
.aw-cgo svg { width: 11px; height: 11px; }

/* 全息印章（黑白版） */
.seal {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 32px rgba(255, 255, 255, 0.05);
  transform: rotate(-6deg);
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.seal span {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 2px;
  text-align: center;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

/* ── 功能模块卡片 — 分镜光轨母题 ── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* 光轨扫描动画 */
@keyframes cardScan {
  0%   { transform: translateX(-110%); opacity: 0;   }
  5%   { opacity: 1;                                 }
  50%  { transform: translateX(110%);  opacity: 1;   }
  51%  { opacity: 0;                                 }
  100% { transform: translateX(-110%); opacity: 0;   }
}

.mod-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  padding: 26px;
  min-height: 344px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s, box-shadow 0.28s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 44px rgba(0, 0, 0, 0.40);
}

/* 分镜光轨：每张卡顶部从左到右的白色扫描线 */
.mod-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.60) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.60) 55%,
    transparent 100%);
  transform: translateX(-110%);
  animation: cardScan 7s ease-in-out infinite var(--scan-delay, 0s);
}

/* 角部光晕 */
.mod-card::after {
  content: "";
  position: absolute;
  right: -48px; top: -48px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  transition: opacity 0.28s, transform 0.28s;
  opacity: 0.5;
}

.mod-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
.mod-card:hover::after { opacity: 1; transform: scale(1.2); }

/* 灰阶亮度四级产线区分 */
.mod-card.tone-violet { --tone: rgba(255,255,255,0.85); --tone-soft: rgba(255,255,255,0.07); --tone-line: rgba(255,255,255,0.16); }
.mod-card.tone-gold   { --tone: rgba(230,230,230,0.75); --tone-soft: rgba(255,255,255,0.06); --tone-line: rgba(255,255,255,0.13); }
.mod-card.tone-cyan   { --tone: rgba(200,200,200,0.65); --tone-soft: rgba(255,255,255,0.05); --tone-line: rgba(255,255,255,0.10); }
.mod-card.tone-green  { --tone: rgba(170,170,170,0.55); --tone-soft: rgba(255,255,255,0.04); --tone-line: rgba(255,255,255,0.08); }

.mod-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

.mod-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--tone-soft, rgba(255,255,255,0.05));
  color: var(--tone, var(--accent));
  border: 1px solid var(--tone-line, var(--line));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.04);
}
.mod-ico svg { width: 23px; height: 23px; }

.mod-badge {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
}

.mod-name { font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; }
.mod-en   { font-family: var(--font-display); font-size: 9px; color: var(--dim); letter-spacing: 4px; margin-bottom: 12px; }
.mod-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; flex: 1; }

/* ── 卡片内 UI Mock ── */
.ui-mock {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.36);
  padding: 10px;
  margin-top: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-ws { display: flex; gap: 8px; min-height: 88px; }
.ui-side { display: flex; flex-direction: column; gap: 3px; width: 28px; flex-shrink: 0; }
.ui-side i {
  font-style: normal;
  font-size: 9px;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  color: var(--dim);
  background: rgba(255,255,255,0.025);
}
.ui-side i.on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ui-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ui-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; flex: 1; }
.ui-grid span {
  border-radius: 4px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.04);
  min-height: 22px;
}
.ui-grid span.f {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}
.ui-grid span.f.a {
  border-color: rgba(200, 200, 200, 0.12);
  background: rgba(200, 200, 200, 0.04);
}

.ui-bar { display: flex; gap: 4px; }
.ui-bar em {
  font-style: normal;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.ui-bar em.p {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.ui-voice { display: flex; flex-direction: column; gap: 6px; min-height: 88px; }
.ui-vrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}
.ui-vrow b { font-size: 10px; font-weight: 600; color: var(--muted); }
.ui-wave { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.ui-wave i {
  display: block;
  width: 2px;
  background: var(--text);
  opacity: 0.55;
  border-radius: 1px;
  animation: waveBar 1s ease-in-out infinite;
}
.ui-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.ui-wave i:nth-child(2) { height: 70%; animation-delay: .1s; }
.ui-wave i:nth-child(3) { height: 50%; animation-delay: .2s; }
.ui-wave i:nth-child(4) { height: 85%; animation-delay: .3s; }
.ui-wave i:nth-child(5) { height: 60%; animation-delay: .4s; }

.ui-line {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  padding: 5px 8px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.22);
  opacity: 0.85;
}

.ui-skill { display: flex; flex-direction: column; gap: 5px; min-height: 88px; }
.ui-chat {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  max-width: 95%;
  animation: chatIn .5s ease both;
}
.ui-chat.u {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.ui-chat.a {
  align-self: flex-start;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  color: var(--muted);
  animation-delay: .45s;
}
.ui-chat code {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
  margin-bottom: 2px;
  opacity: 0.8;
}
.ui-dots { display: inline-flex; align-items: center; gap: 3px; }
.ui-dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.6;
  animation: typingDot 1.3s ease-in-out infinite;
}
.ui-dots i:nth-child(2) { animation-delay: .2s; }
.ui-dots i:nth-child(3) { animation-delay: .4s; }

.ui-gen { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 0; }
.ui-gen span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.40) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 220% 100%;
  animation: shimmer 2s linear infinite;
}
.ui-gen span:nth-child(1) { width: 92%; }
.ui-gen span:nth-child(2) { width: 100%; animation-delay: .35s; }
.ui-gen span:nth-child(3) { width: 66%; animation-delay: .7s; }

.ui-prog { position: relative; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.ui-prog i {
  position: absolute;
  top: 0; left: -42%;
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: progressSlide 1.8s ease-in-out infinite;
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50%       { transform: scaleY(1);   opacity: 0.7; }
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0);   opacity: .4; }
  30%           { transform: translateY(-3px); opacity: 0.8;  }
}
@keyframes shimmer {
  0%   { background-position: 120% 0;  }
  100% { background-position: -120% 0; }
}
@keyframes progressSlide {
  0%   { left: -42%; }
  100% { left: 100%; }
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn .i { width: 18px; height: 18px; flex-shrink: 0; }
.btn.lg     { padding: 15px 32px;  font-size: 15.5px; border-radius: var(--r-lg); }
.btn.btn-sm { padding: 9px 18px;   font-size: 13px;   border-radius: var(--r-md); }

/* 主按钮：白底黑字 — 最大视觉权重 */
.btn.primary {
  background: #ebebeb;
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow:
    0 4px 20px rgba(255, 255, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn.primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 10px 32px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── Section 通用 ── */
.section-head {
  text-align: center;
  margin-bottom: 54px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-shadow: 0 0 80px rgba(255,255,255,0.06);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.65; }

.features { padding: 20px 0 84px; }

/* ── 截图展示 — 稳定的产品画廊 ── */
.shots-section { padding: 20px 0 84px; }

.shots-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.shot-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 44px rgba(0, 0, 0, 0.50);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s, box-shadow 0.28s;
}
.shot-item:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 70px rgba(0, 0, 0, 0.60);
}

.shot-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.shot-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px 16px;
  background: rgba(5, 5, 5, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.shot-caption b {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.shot-caption span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ── AI 创作全景 ── */
.showcase { padding: 60px 0 80px; }
.showcase-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s, box-shadow 0.28s;
}
.showcase-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 90px rgba(0, 0, 0, 0.65);
}
.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78) 42%);
}
.showcase-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(10, 10, 12, 0.62);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.showcase-tags span.on {
  color: var(--accent-bright);
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--accent-soft);
}

/* ── 流程 ── */
.workflow { padding: 60px 0 80px; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.flow-card {
  padding: 26px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 26px rgba(0, 0, 0, 0.32);
  transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1), border-color .28s, box-shadow .28s;
  position: relative;
  overflow: hidden;
}
/* 电影胶片感：左侧纵向分镜线 */
.flow-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent);
}
.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 44px rgba(0, 0, 0, 0.44);
}

.flow-card .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #6a6a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -2px;
}
.flow-card h4 { font-size: 15px; margin-bottom: 7px; font-weight: 600; }
.flow-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── 核心能力 ── */
.highlights { padding: 40px 0 80px; }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hl-card {
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 26px rgba(0, 0, 0, 0.32);
  transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1), border-color .28s, box-shadow .28s;
}
.hl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 44px rgba(0, 0, 0, 0.44);
}

.hl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.04);
}
.hl-icon svg { width: 24px; height: 24px; }
.hl-card h4 { font-size: 15px; margin-bottom: 9px; font-weight: 600; letter-spacing: 0.02em; }
.hl-card p  { font-size: 13px; color: var(--muted); line-height: 1.68; }

/* ── 下载区 ── */
.download { padding: 50px 0 72px; }

.download-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 76px 32px;
  border-radius: var(--r-xl);
  background: var(--glass2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 44px 120px rgba(0, 0, 0, 0.70);
}
.download-card > :not(.dl-glow) { position: relative; z-index: 1; }
.dl-glow {
  position: absolute;
  top: -42%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 66%);
  filter: blur(32px);
  pointer-events: none;
  animation: glowPulse 10s ease-in-out infinite;
}

.dl-logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow:
    0 14px 50px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.download-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.download-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  margin: 0 auto 28px;
  max-width: 30em;
}
.dl-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(360px, 100%);
  margin: 0 auto 24px;
}
.dl-actions .btn { width: 100%; }

.dl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 8px var(--muted);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.80); }
}

/* ── Footer ── */
/* 参数对标桌面端启动封面底部（CoverView.cv-foot / cv-beian）：
   11px 字号、12px 间距、图标 14×14、不换行单排；去掉 flex-wrap 防止窄屏时逐项断行。 */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 32px;
  font-size: 11px;
  /* 备案号与版权信息合规展示：--muted 保证对比度 */
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-beian {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .14s;
}
.site-beian:hover { color: var(--text); text-decoration: underline; }
/* 公安备案图标（正规双备案布局：图标在前、备案号在后；14×14 与桌面端封面一致） */
.beian-icon { width: 14px; height: 14px; object-fit: contain; }

/* ── 滚动入场动画 + 错峰延迟 ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 响应式 ── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 126px 0 72px;
    text-align: center;
  }
  .hero::before { display: none; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub   { margin-left: auto; margin-right: auto; }
  .hero-cta   { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .app-window { transform: none; }

  .mod-grid   { grid-template-columns: repeat(2, 1fr); }
  .flow-grid  { grid-template-columns: repeat(2, 1fr); }
  .hl-grid    { grid-template-columns: repeat(2, 1fr); }

  .nav { gap: 18px; font-size: 12.5px; }
}

@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  /* 手机窄屏隐藏文字导航，保留右侧「立即体验」CTA */
  .nav { display: none; }
  main { padding: 0 16px 80px; }
  .hero { padding: 112px 0 56px; }
  .mod-grid   { grid-template-columns: 1fr; }
  .flow-grid  { grid-template-columns: 1fr; }
  .hl-grid    { grid-template-columns: 1fr; }
  .shots-grid { gap: 16px; }
  .shot-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .download-card { padding: 50px 22px; }
}

/* ── 官网注册弹层 ── */
.reg-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.reg-overlay[hidden] { display: none !important; }
.reg-card {
  width: min(420px, 100%);
  background: #111;
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 28px 24px 22px;
  position: relative;
}
.reg-card h2 { margin: 0 0 6px; font-size: 22px; }
.reg-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.reg-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
/* hidden 属性必须能真正隐藏行：author 的 display:block 会覆盖 UA 的 [hidden]{display:none} */
.reg-card label[hidden] { display: none !important; }
.reg-card input {
  display: block; width: 100%; margin-top: 6px;
  background: #0a0a0a; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
.reg-card input::placeholder { color: var(--dim); }
.reg-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer;
}
.reg-control {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}
.reg-control:focus-within { border-color: var(--line2); }
.reg-control input {
  margin-top: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 10px 108px 10px 12px;
  outline: none;
}
.reg-code-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--line2);
  background: var(--glass2);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.reg-code-btn:disabled { opacity: 0.45; cursor: default; }
/* 注册双 tab：邮箱注册 / 手机注册（黑白灰阶，不加彩色） */
.reg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}
.reg-tab {
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.reg-tab.on {
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.reg-code-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.reg-card .btn.primary { width: 100%; margin-top: 4px; }
.reg-card .btn.primary:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.reg-msg { min-height: 18px; font-size: 13px; margin: 0 0 8px; }
.reg-hint { font-size: 12px; color: var(--muted); margin: -4px 0 12px; }
.reg-card input[readonly] { opacity: 0.9; cursor: default; color: var(--text); }

/* ── 无障碍：减少动效 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .aurora { transition: none !important; animation: none !important; }
  .hero-copy > *, .hero-visual { animation: none !important; opacity: 1 !important; transform: none !important; }
}
