:root {
  --ink: #152033;
  --muted: #64748b;
  --line: #dce7ee;
  --blue: #4f67ed;
  --blue-dark: #3449c7;
  --cyan: #13cce3;
  --sidebar: #edf5f9;
  --soft-blue: #eef1ff;
  --paper: rgba(255, 255, 255, 0.92);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(35, 55, 90, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfd;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none;
}
.ambient-one { top: 100px; right: 10%; background: #6376ff; }
.ambient-two { bottom: 0; left: 20%; background: #19d3e6; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: grid;
  grid-template-columns: 278px 1fr auto;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(196, 211, 220, .72);
  background: rgba(248, 251, 253, .82);
  backdrop-filter: blur(20px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: white; box-shadow: 0 7px 20px rgba(51, 84, 170, .14);
}
.brand-mark img { width: 29px; height: 29px; object-fit: contain; }
.brand-copy { display: flex; align-items: baseline; gap: 9px; }
.brand-copy strong { font-size: 17px; letter-spacing: .01em; }
.brand-copy small { color: #8290a5; font-size: 12px; }
.topnav { display: flex; align-items: center; justify-content: center; gap: 34px; font-size: 14px; }
.topnav a { position: relative; padding: 24px 0; color: #68758a; }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a.active::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 13px; height: 3px;
  border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: flex; align-items: center; gap: 34px; min-width: 208px; padding: 9px 11px 9px 14px;
  border: 1px solid #d7e2e9; border-radius: 11px; color: #8793a5; background: rgba(255,255,255,.7);
  cursor: pointer; transition: .2s ease;
}
.search-trigger:hover { border-color: #aebbe9; box-shadow: 0 6px 20px rgba(62, 78, 140, .08); }
kbd { padding: 2px 6px; border: 1px solid #d7e0e6; border-radius: 6px; color: #8a96a7; background: #fff; font-size: 11px; box-shadow: 0 1px 1px rgba(15,23,42,.04); }
.primary-button {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px;
  color: white; background: linear-gradient(135deg, var(--blue), #6779f6); box-shadow: 0 9px 24px rgba(79,103,237,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(79,103,237,.34); }
.primary-button.small { min-height: 39px; padding: 0 15px; font-size: 13px; }
.primary-button.large { min-height: 48px; padding: 0 20px; font-weight: 700; }
.secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 1px solid #d7e1e8; border-radius: 12px; background: rgba(255,255,255,.8); font-weight: 650;
}
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }

.docs-shell { display: grid; grid-template-columns: 278px minmax(0, 1fr) 230px; min-height: calc(100vh - 70px); }
.sidebar {
  position: sticky; top: 70px; height: calc(100vh - 70px); padding: 24px 18px 18px 22px;
  border-right: 1px solid rgba(205, 220, 228, .78); background: rgba(237, 245, 249, .72); overflow: auto;
}
.sidebar-inner { padding-bottom: 18px; }
.nav-group { margin-bottom: 23px; }
.nav-group-title { display: block; margin: 0 10px 7px; color: #94a1b1; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 0 11px; margin: 2px 0;
  border-radius: 10px; color: #58677b; font-size: 13px; transition: .18s ease;
}
.nav-link:hover { color: #26344a; background: rgba(255,255,255,.65); }
.nav-link.active { color: #3249cb; background: #fff; box-shadow: 0 8px 26px rgba(61,84,123,.09); font-weight: 700; }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: rgba(92,112,140,.09); font-size: 11px; }
.nav-link.active .nav-icon { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.sidebar-help {
  display: flex; gap: 10px; padding: 14px; border: 1px solid rgba(205,219,229,.9); border-radius: 14px;
  background: rgba(255,255,255,.62); font-size: 12px;
}
.sidebar-help div { display: flex; flex-direction: column; gap: 4px; }
.sidebar-help a { color: #64748b; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }

.content { width: min(100%, 980px); padding: 60px 56px 100px; margin: 0 auto; outline: none; }
.doc-eyebrow { margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.doc-title { max-width: 760px; margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.doc-lead { max-width: 760px; margin: 20px 0 0; color: #607086; font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; color: #6c788b; font-size: 12px; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: #16b5c9; font-weight: 900; }

.product-stage {
  position: relative; min-height: 380px; margin: 50px 0 70px; padding: 30px;
  border: 1px solid rgba(196,209,232,.75); border-radius: 28px;
  background: linear-gradient(145deg, rgba(234,239,255,.92), rgba(232,251,253,.82)); overflow: hidden;
}
.stage-orb { position: absolute; width: 230px; height: 230px; border-radius: 50%; filter: blur(25px); opacity: .35; }
.stage-orb.blue { top: -90px; right: -20px; background: #7383ff; }
.stage-orb.cyan { bottom: -100px; left: 15%; background: #25d8e5; }
.app-window { position: relative; z-index: 1; display: grid; grid-template-columns: 172px 1fr; min-height: 320px; border: 1px solid rgba(130,152,184,.3); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 32px 60px rgba(42,61,110,.2); overflow: hidden; }
.app-mini-sidebar { padding: 18px 12px; background: #edf5f9; border-right: 1px solid #dfe9ef; }
.window-dots { display: flex; gap: 5px; margin: 0 0 22px 3px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9d4dc; }
.mini-nav { display: flex; align-items: center; gap: 8px; padding: 8px 9px; margin: 3px 0; border-radius: 8px; color: #6e7b8e; font-size: 10px; }
.mini-nav i { width: 14px; height: 14px; border-radius: 5px; background: #dce6ec; }
.mini-nav.active { color: #354bcd; background: white; font-weight: 700; box-shadow: 0 5px 15px rgba(50,76,110,.08); }
.mini-nav.active i { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.app-main { position: relative; display: flex; flex-direction: column; padding: 30px 34px 22px; }
.assistant-badge { display: flex; align-items: center; gap: 10px; color: #8390a2; font-size: 10px; }
.assistant-badge img { width: 24px; height: 24px; padding: 4px; border-radius: 8px; background: #eef2ff; }
.app-main h3 { margin: 35px 0 8px; font-size: 23px; letter-spacing: -.03em; }
.app-main > p { margin: 0; color: #7d899a; font-size: 11px; }
.prompt-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 23px 0 18px; }
.prompt-chip { padding: 10px 11px; border: 1px solid #e2e9ee; border-radius: 10px; color: #556378; background: #fbfdfe; font-size: 9px; }
.chat-input-mini { margin-top: auto; padding: 13px 14px; border: 1px solid #dce5eb; border-radius: 13px; color: #9aa5b3; font-size: 10px; background: white; box-shadow: 0 8px 30px rgba(51,71,105,.08); }
.chat-input-mini b { float: right; width: 23px; height: 23px; margin-top: -6px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--blue); }

.real-interface { margin: 34px 0 8px; }
.screenshot-label { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; color: #77859a; font-size: 11px; }
.screenshot-label strong { color: #43536a; font-size: 12px; }
.screenshot-label span:last-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #18bfcf; box-shadow: 0 0 0 4px rgba(24,191,207,.1); }
.screenshot-open { display: block; width: 100%; padding: 0; border: 1px solid #d4e0e8; border-radius: 20px; background: #fff; box-shadow: 0 22px 55px rgba(43,65,101,.14); overflow: hidden; cursor: zoom-in; transition: transform .22s ease, box-shadow .22s ease; }
.screenshot-open:hover { transform: translateY(-3px); box-shadow: 0 28px 66px rgba(43,65,101,.19); }
.screenshot-canvas { position: relative; aspect-ratio: 1396 / 768; overflow: hidden; background: #eef4f8; }
.screenshot-canvas img { display: block; width: 100%; height: 100%; object-fit: cover; }
.real-interface.focus-main .screenshot-canvas img { width: 122.9%; max-width: none; transform: translateX(-18.65%); }
.real-interface.full-app .privacy-shade { position: absolute; left: 0; bottom: 0; width: 18.65%; height: 68%; background: linear-gradient(180deg, rgba(237,245,249,.2), rgba(237,245,249,.96) 17%, #edf5f9 72%); backdrop-filter: blur(6px); }
.real-interface.full-app .privacy-shade::after { content: "演示信息已隐藏"; position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 80%; color: #91a0af; font-size: 9px; text-align: center; letter-spacing: .06em; }
.screenshot-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; color: #718095; font-size: 11px; text-align: left; }
.screenshot-caption b { color: #5366da; font-weight: 700; white-space: nowrap; }

.section { padding-top: 26px; margin-top: 42px; scroll-margin-top: 92px; }
.section-kicker { color: var(--blue); font-size: 12px; font-weight: 800; }
.section h2 { margin: 8px 0 13px; font-size: 28px; letter-spacing: -.025em; }
.section > p { margin: 0; color: #65748a; line-height: 1.8; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 23px; }
.feature-card {
  position: relative; min-height: 175px; padding: 22px; border: 1px solid #e0e9ef; border-radius: var(--radius);
  background: rgba(255,255,255,.78); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); border-color: #c8d3fa; box-shadow: 0 18px 40px rgba(41,61,104,.1); }
.feature-card .number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #3f55d5; background: var(--soft-blue); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin: 20px 0 7px; font-size: 17px; }
.feature-card p { margin: 0; color: #6c7a8d; font-size: 13px; line-height: 1.65; }
.feature-card .arrow { position: absolute; right: 19px; top: 19px; color: #a8b2c1; transition: transform .2s ease; }
.feature-card:hover .arrow { color: var(--blue); transform: translate(2px,-2px); }

.steps { display: grid; gap: 0; margin-top: 24px; counter-reset: guide-step; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 25px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 38px; bottom: 4px; left: 18px; width: 1px; background: linear-gradient(#bcc8fa, #dce8ee); }
.step-number { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--blue), #6f80f4); box-shadow: 0 8px 20px rgba(79,103,237,.2); font-size: 12px; font-weight: 800; }
.step h3 { margin: 3px 0 6px; font-size: 16px; }
.step p { margin: 0; color: #6c788b; font-size: 13px; line-height: 1.7; }

.prompt-box { position: relative; margin-top: 22px; padding: 20px 56px 20px 21px; border: 1px solid #d8e0ff; border-radius: 16px; background: linear-gradient(135deg, #f2f4ff, #f1fbfc); }
.prompt-box::before { content: "试试这样说"; display: block; margin-bottom: 9px; color: #5365d3; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.prompt-box p { margin: 0; color: #344258; line-height: 1.7; }
.copy-prompt { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid #d8e1eb; border-radius: 9px; background: rgba(255,255,255,.8); cursor: pointer; }
.copy-prompt:hover { color: var(--blue); border-color: #bfcaf8; }
.note { display: flex; gap: 12px; margin-top: 22px; padding: 17px 18px; border-left: 3px solid var(--cyan); border-radius: 4px 14px 14px 4px; color: #56657a; background: #effbfd; font-size: 13px; line-height: 1.7; }
.note strong { color: #238da0; white-space: nowrap; }
.doc-footer { display: flex; justify-content: space-between; gap: 14px; padding-top: 55px; margin-top: 70px; border-top: 1px solid #e1e9ee; }
.doc-footer a { min-width: 190px; padding: 15px 17px; border: 1px solid #e0e8ed; border-radius: 13px; background: rgba(255,255,255,.65); }
.doc-footer small { display: block; margin-bottom: 5px; color: #94a0af; }
.doc-footer a:last-child { text-align: right; margin-left: auto; }

.toc { position: sticky; top: 70px; height: calc(100vh - 70px); padding: 38px 22px 20px 0; overflow: auto; }
.toc-card { padding: 15px 0 15px 18px; border-left: 1px solid #dce5eb; }
.toc-title { display: block; margin-bottom: 10px; color: #9aa5b3; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.toc-card a { display: block; padding: 6px 0; color: #778397; font-size: 12px; }
.toc-card a:hover { color: var(--blue); }
.tip-card { margin-top: 30px; padding: 18px; border: 1px solid #dce5f8; border-radius: 16px; background: linear-gradient(145deg, rgba(244,246,255,.9), rgba(241,252,253,.9)); }
.tip-card span { color: #7585d9; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.tip-card strong { display: block; margin-top: 8px; font-size: 13px; }
.tip-card p { margin: 7px 0 11px; color: #748096; font-size: 11px; line-height: 1.6; }
.tip-card a { color: var(--blue); font-size: 11px; font-weight: 700; }

.search-dialog { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.search-dialog.open { display: flex; }
.search-backdrop { position: absolute; inset: 0; background: rgba(20,31,50,.26); backdrop-filter: blur(6px); }
.search-panel { position: relative; width: min(620px, calc(100vw - 28px)); border: 1px solid rgba(203,215,226,.9); border-radius: 18px; background: white; box-shadow: var(--shadow); overflow: hidden; animation: search-in .18s ease-out; }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid #e5ebef; }
.search-input-wrap > span { color: var(--blue); font-size: 22px; }
.search-input-wrap input { flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.search-results { max-height: 52vh; padding: 10px; overflow: auto; }
.search-result { display: block; padding: 13px 14px; border-radius: 11px; }
.search-result:hover { background: #f2f5ff; }
.search-result strong { display: block; font-size: 13px; }
.search-result span { display: block; margin-top: 4px; color: #7d899a; font-size: 11px; }
.search-empty { padding: 34px; text-align: center; color: #8a96a7; font-size: 13px; }
.image-dialog { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; }
.image-dialog.open { display: flex; }
.image-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(11,20,35,.72); backdrop-filter: blur(12px); }
.image-panel { position: relative; width: min(1220px, 95vw); max-height: 92vh; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: #eef4f8; box-shadow: 0 30px 100px rgba(0,0,0,.35); overflow: hidden; animation: search-in .18s ease-out; }
.image-panel-bar { display: flex; align-items: center; justify-content: space-between; height: 45px; padding: 0 15px; color: #48576c; background: white; font-size: 12px; }
.image-panel-bar button { width: 30px; height: 30px; border: 0; border-radius: 9px; color: #718095; background: #f0f4f7; cursor: pointer; font-size: 20px; line-height: 1; }
.image-panel img { display: block; width: 100%; max-height: calc(92vh - 45px); object-fit: contain; background: #eef4f8; }
.image-panel.focus-main img { width: 122.9%; max-width: none; transform: translateX(-18.65%); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; padding: 10px 16px; border-radius: 10px; color: white; background: #1e293b; box-shadow: 0 12px 30px rgba(15,23,42,.25); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 250px minmax(0,1fr); }
  .topbar { grid-template-columns: 250px 1fr auto; }
  .toc { display: none; }
  .content { padding-inline: 48px; }
}
@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; height: 62px; padding: 0 16px; }
  .topnav, .search-trigger, .top-actions .primary-button { display: none; }
  .mobile-menu { display: block; }
  .docs-shell { display: block; }
  .sidebar { position: fixed; z-index: 25; top: 62px; bottom: 0; left: 0; width: min(310px, 86vw); height: auto; transform: translateX(-105%); transition: transform .24s ease; box-shadow: 20px 0 50px rgba(25,42,68,.16); }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 40px 22px 80px; }
  .doc-title { font-size: 40px; }
  .doc-lead { font-size: 16px; }
  .screenshot-label span:last-child { display: none; }
  .screenshot-open { border-radius: 14px; }
  .image-dialog { padding: 10px; }
  .product-stage { padding: 18px; margin-top: 36px; }
  .app-window { grid-template-columns: 112px 1fr; }
  .app-main { padding: 24px 20px 18px; }
  .prompt-chips { grid-template-columns: 1fr; }
  .mini-nav { font-size: 0; }
  .mini-nav::after { content: ""; display: block; width: 45px; height: 6px; border-radius: 999px; background: currentColor; opacity: .18; }
}
@media (max-width: 560px) {
  .brand-copy small { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .doc-title { font-size: 36px; }
  .product-stage { min-height: 330px; }
  .app-window { grid-template-columns: 70px 1fr; min-height: 286px; }
  .app-mini-sidebar { padding-inline: 8px; }
  .app-main { padding: 20px 14px 15px; }
  .app-main h3 { margin-top: 26px; font-size: 19px; }
  .prompt-chip:nth-child(n+3) { display: none; }
  .doc-footer { flex-direction: column; }
  .doc-footer a, .doc-footer a:last-child { width: 100%; text-align: left; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
