/* 维斯 宣传页 —— 深色、克制、一个强调色。所有颜色与字号集中在这里。 */
:root {
  --bg: #0a0f1c;
  --bg-raise: #111827;
  --ink: #f4f6fa;
  --ink-2: rgba(232, 238, 248, 0.84);
  --ink-3: rgba(232, 238, 248, 0.64);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #4fc3f7;
  --accent-soft: rgba(79, 195, 247, 0.16);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background:
    radial-gradient(1400px 900px at 50% -8%, rgba(79, 195, 247, 0.13), transparent 62%),
    radial-gradient(900px 700px at 85% 18%, rgba(120, 100, 255, 0.07), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
/* 中文正常换行，别撑破容器 */
h1, h2, h3, .lede, .feature__lede, .tile p { overflow-wrap: break-word; word-break: break-word; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(10, 15, 28, 0.86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; flex: none; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 32%, #ffffff 0%, #bfeaff 22%, #4fc3f7 55%, rgba(79, 195, 247, 0.3) 76%, transparent 78%);
  box-shadow: 0 0 16px rgba(79, 195, 247, 0.55);
}
.nav__links { display: flex; gap: 22px; margin-left: auto; color: var(--ink-2); min-width: 0; }
.nav__links a { flex: none; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { flex: none; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: #000; font-weight: 600; white-space: nowrap; }
.nav__cta:hover { background: #ffffff; }

/* ---------- 通用排版 ---------- */
.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
.lede { color: var(--ink-2); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.45; }
.fineprint { color: var(--ink-3); font-size: 13px; margin-top: 18px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #031018; }
.btn--primary:hover { background: #7ad3fb; }
.btn--ghost { color: var(--accent); }
.btn--ghost:hover { color: #9adfff; }
.btn--ghost::after { content: "›"; margin-left: 6px; font-size: 20px; line-height: 1; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 132px var(--gutter) clamp(60px, 9vh, 110px); text-align: center; overflow: hidden; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > *:not(.stars) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 6.4vw, 88px); line-height: 1.12; letter-spacing: -0.02em; }
.hero .lede { margin-top: 16px; }

/* 首屏入场：依次淡入上浮 */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes land { from { opacity: 0; transform: translateY(60px) scale(0.97); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .fineprint { animation: rise 1.1s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.06s; } .hero h1 { animation-delay: 0.14s; } .hero .lede { animation-delay: 0.26s; }
.hero .cta-row { animation-delay: 0.36s; } .hero .fineprint { animation-delay: 0.42s; }

/* ---------- 实机演示画框 ---------- */
.hero__demo { margin: clamp(40px, 7vh, 72px) auto 0; max-width: 980px; animation: land 1.3s var(--ease) 0.5s both; }
.demo {
  border-radius: 20px; overflow: hidden;
  background: #0b1120;
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 90px rgba(79, 195, 247, 0.08);
  text-align: left;
}
.demo__bar {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.demo__dots { display: flex; gap: 6px; flex: none; }
.demo__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.demo__title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.demo__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.demo__body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; padding: 20px; }
.demo__left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* 对话气泡：用户右侧黑、维斯左侧白（对照真界面） */
.d-bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
.d-bubble--user { align-self: flex-end; background: #101826; border: 1px solid var(--line); color: #eaf2fb; }
.d-bubble--ai { align-self: flex-start; background: #f2f5fa; color: #16202e; }
.d-caret { display: inline-block; width: 2px; height: 15px; margin-left: 2px; background: #1a6f96; vertical-align: -2px; animation: caret-blink 0.9s steps(1) infinite; }
@keyframes caret-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 正在执行：发光胶囊 + 呼吸状态灯 */
.demo__exec {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(79, 195, 247, 0.35); background: rgba(79, 195, 247, 0.08);
}
.demo__led { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #6be3a0; box-shadow: 0 0 8px rgba(107, 227, 160, 0.8); }
.demo__led--run { background: var(--accent); animation: led-breathe 1.6s ease-in-out infinite; }
@keyframes led-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.5), 0 0 8px rgba(79, 195, 247, 0.8); }
  50% { box-shadow: 0 0 0 7px rgba(79, 195, 247, 0), 0 0 16px rgba(79, 195, 247, 1); }
}

/* 员工正在做任务面板 */
.demo__panel { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); min-width: 0; }
.demo__panel-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.demo__panel-head span { font-size: 14px; font-weight: 600; }
.demo__panel-en { font-size: 11px !important; color: var(--ink-3); letter-spacing: 0.1em; }
.d-task { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.d-task > span:first-child { flex: none; }
.d-task.is-active > span:first-child { color: var(--ink); }
.d-task .d-check { margin-left: auto; color: #6be3a0; font-weight: 700; }
.d-bar { position: relative; flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; min-width: 0; }
.d-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: var(--accent); }
.demo__ready { align-self: flex-start; margin-top: 6px; padding: 5px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }

/* ---------- 功能段 ---------- */
.feature { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter) 0; }
.feature__head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 6vh, 56px); min-width: 0; }
.feature__head h2 { font-size: clamp(28px, 4.8vw, 60px); line-height: 1.16; margin-bottom: 18px; }
.feature__lede { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }

/* 可视化画框 */
.viz {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(79, 195, 247, 0.08), transparent 60%), #0b1120;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 110px rgba(0, 0, 0, 0.45);
}
@media (max-width: 700px) { .viz { aspect-ratio: 4 / 3; } }

/* 三个要点 */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 5vh, 48px); }
.tile {
  padding: 20px 22px 24px; border-radius: var(--radius); min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* ---------- 页脚 ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; margin-top: clamp(90px, 14vh, 160px);
}
.footer__brand { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }

/* 进入视口时淡入（site.js 加 .is-in） */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2) { transition-delay: 0.08s; }
.tiles .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero { padding-top: 104px; }
  .tiles { grid-template-columns: 1fr; }
  .demo__body { grid-template-columns: 1fr; }
  .demo__panel { order: -1; }
  .demo__left { min-height: 200px; }
  .nav__cta { padding: 5px 12px; font-size: 12px; }
}
@media (max-width: 390px) {
  .demo { border-radius: 14px; }
  .demo__body { padding: 14px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .fineprint, .hero__demo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 手机端：专有名词不拆行 */
.nb { white-space: nowrap; }
@media (max-width: 720px) {
  .hero h1, .feature__head h2 { word-break: keep-all; }
}
