/* 介绍页：配色、字体、圆角跟主系统一样（assets/css/main.css、viz.css）：白底、深灰黑主色，人蓝紫、AI 青绿。
   只用系统字体，不引外部资源 */
:root {
  --background: #FFFFFF;
  --foreground: #09090B;
  --primary: #18181B;
  --primary-hover: #27272A;
  --muted: #F4F4F5;
  --muted-2: #FAFAFA;
  --muted-foreground: #71717A;
  --border: #E4E4E7;
  --viz-ai: #0F9488;
  --viz-ai-soft: #E6F4F2;
  --viz-human: #5B6BD6;
  --danger: #DC2626;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(9, 9, 11, .05), 0 8px 24px rgba(9, 9, 11, .06);
  --shadow-lg: 0 2px 6px rgba(9, 9, 11, .06), 0 24px 56px rgba(9, 9, 11, .12);
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- 按钮（同主系统的主按钮） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-dark { background: var(--primary); color: #FAFAFA; }
.btn-dark:hover { background: var(--primary-hover); }
.btn-dark:disabled { opacity: .6; cursor: default; }
.btn-light { background: #FAFAFA; color: var(--primary); }
.btn-light:hover { background: #E4E4E7; }
.btn-sm { min-height: 36px; padding: 0 16px; }
.btn-lg { min-height: 52px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; min-height: 48px; font-size: 16px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 28px; width: auto; }

/* ---------- 第一屏 ---------- */
.hero {
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(15, 148, 136, .10), transparent 65%),
    radial-gradient(600px 320px at 0% 100%, rgba(91, 107, 214, .08), transparent 65%),
    var(--muted-2);
  border-bottom: 1px solid var(--border);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "head login" "more login";
  column-gap: clamp(32px, 6vw, 88px);
  row-gap: 28px;
}
.pitch-head { grid-area: head; align-self: end; }
.pitch-more { grid-area: more; align-self: start; }
.login { grid-area: login; align-self: center; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "login" "more"; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--background);
  font-size: 13px; font-weight: 600; color: var(--muted-foreground);
}
.dot-ai { width: 8px; height: 8px; border-radius: 50%; background: var(--viz-ai); box-shadow: 0 0 0 3px var(--viz-ai-soft); }
.pitch-head h1 { margin-top: 18px; font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; }
.nb { white-space: nowrap; }
@media (max-width: 420px) { .nb { white-space: normal; } }
.lead { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted-foreground); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--viz-ai-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 10px;
  border: solid var(--viz-ai); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- 登录卡 ---------- */
.card {
  width: 100%; max-width: 420px; margin-left: auto; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--background); box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .card { margin: 0 auto; } }
@media (max-width: 640px) { .card { padding: 22px 18px; } }
.card h2 { font-size: 22px; font-weight: 700; }
.card-lead { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }
.card .btn-block { margin-top: 20px; }
.field { display: block; margin-top: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--background); color: var(--foreground);
  font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24, 24, 27, .12); }
.error { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--danger); }
.error:empty { margin-top: 0; min-height: 0; }
.hint { margin-top: 14px; font-size: 13px; color: var(--muted-foreground); text-align: center; }

/* ---------- 小标题 ---------- */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--viz-ai); }
.sec-head { max-width: 720px; margin: 0 auto; text-align: center; }
.sec-head h2 { margin-top: 8px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.sec-head p:last-child:not(.kicker) { margin-top: 12px; font-size: 17px; color: var(--muted-foreground); }

/* ---------- 截图 ---------- */
.shot {
  margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--background); box-shadow: var(--shadow);
}
.shot-wide { max-width: 1040px; margin: 40px auto 0; box-shadow: var(--shadow-lg); }
.shot-card { border-radius: var(--radius); }
.cards-stack {
  display: grid; gap: 16px; padding: clamp(16px, 2.5vw, 28px);
  border-radius: var(--radius-lg); background: var(--muted);
}

/* ---------- AI 办公室（3D，lib/office/intro.ts） ---------- */
.office { padding: clamp(64px, 8vw, 104px) 0 0; }
.ioff { margin-top: 40px; }
.ioff-main { display: flex; gap: 16px; }
.ioff-stage {
  position: relative; flex: 1; min-width: 0; height: 560px; overflow: hidden;
  border-radius: var(--radius-lg); background: #0B1220; box-shadow: var(--shadow-lg);
}
/* 场景库会给宿主加 position: relative，所以这里用满宽满高撑开，不用 absolute */
.ioff-host { width: 100%; height: 100%; }
.ioff-side { display: flex; flex-direction: column; gap: 8px; width: 176px; flex: none; }
.ioff:not(.ready) .ioff-side { visibility: hidden; }
.ioff.failed .ioff-legend { display: none; }
.ioff-people { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ioff-people button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s;
}
.ioff-people button:hover { background: var(--muted); }
.ioff-people li.on button { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.ioff-people i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ioff-people span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ioff-people b { font-size: 14px; font-weight: 600; }
.ioff-people small { overflow: hidden; font-size: 12px; color: var(--muted-foreground); white-space: nowrap; text-overflow: ellipsis; }
.ioff-home {
  margin-top: auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ioff-home:hover { background: var(--muted); }
.ioff-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--muted-foreground);
}
.ioff-legend li { display: flex; align-items: center; gap: 6px; }
.ioff-legend svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 860px) {
  .ioff-main { flex-direction: column; }
  .ioff-stage { height: 380px; }
  .ioff-side { width: auto; }
  .ioff-people { flex-direction: row; flex-wrap: wrap; }
  .ioff-home { margin-top: 0; align-self: flex-start; }
}

/* ---------- 总览大图 ---------- */
.showcase { padding: clamp(64px, 8vw, 104px) 0 0; }

/* ---------- 卖点 ---------- */
.points { padding: clamp(72px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.point {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(64px, 8vw, 104px);
}
.point-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.point-flip .point-text { order: 2; }
.point h2 { margin-top: 8px; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; }
.point-text p:last-child { margin-top: 14px; font-size: 17px; color: var(--muted-foreground); }
@media (max-width: 860px) {
  .point, .point-flip { grid-template-columns: minmax(0, 1fr); }
  .point-flip .point-text { order: 0; }
}

.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .minis { grid-template-columns: minmax(0, 1fr); } }
.mini { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--muted-2); }
.mini h3 { font-size: 17px; font-weight: 700; }
.mini p { margin-top: 6px; font-size: 15px; color: var(--muted-foreground); }

/* ---------- 对比 ---------- */
.versus { padding: clamp(64px, 8vw, 96px) 0; background: var(--muted-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vs {
  max-width: 920px; margin: 36px auto 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--background); box-shadow: var(--shadow);
}
.vs-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.6fr); border-top: 1px solid var(--border); }
.vs-row:first-child { border-top: 0; }
.vs-row > span { padding: 15px 20px; font-size: 15px; }
.vs-row > span:first-child { font-weight: 600; }
.vs-row > span:nth-child(2) { color: var(--muted-foreground); }
.vs-head > span { font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.vs-us { background: var(--viz-ai-soft); font-weight: 600; }
.vs-head .vs-us { background: var(--primary); color: #FAFAFA; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .vs-head > span:first-child { display: none; }
  .vs-row > span { padding: 12px 14px; font-size: 14px; }
}

/* ---------- 收尾：深色，同主系统侧栏 ---------- */
.cta { padding: clamp(64px, 8vw, 96px) 0; background: var(--primary); color: #FAFAFA; }
.cta-in { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.cta p { font-size: 14px; color: #A1A1AA; }

.foot { padding: 24px 0; font-size: 13px; color: var(--muted-foreground); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .field input { transition: none; }
}
