:root {
  --brand: #3a7deb;
  --brand2: #19b8e4;
  --ink: #1c2333;
  --ink2: #5a6478;
  --line: #e7ebf3;
  --bg: #f7f9fc;
  --code-bg: #151b28;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: block;
}
.nav-links { display: flex; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--ink2); }
.nav-links a:hover { color: var(--brand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #5b8def);
  box-shadow: 0 8px 22px rgba(58,125,235,.32);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* hero */
.hero { padding: 90px 0 80px; text-align: center;
  background: radial-gradient(700px 380px at 50% -120px, rgba(58,125,235,.13), transparent 70%); }
.hero-badge {
  display: inline-block; font-size: 13px; color: var(--brand);
  background: rgba(58,125,235,.1); border-radius: 999px; padding: 5px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.2; letter-spacing: 1px; }
.hero p.sub { margin: 20px auto 34px; font-size: 18px; color: var(--ink2); max-width: 640px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: 13px; color: #98a0b0; }

.external-row { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 30px; }
.ext-chip {
  font-size: 13px; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px;
}
.ext-chip:hover { color: var(--brand); border-color: var(--brand); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 12px; }
.section .lead { text-align: center; color: var(--ink2); margin-bottom: 44px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.section.alt .card { background: #fff; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(58,125,235,.12), rgba(25,184,228,.12));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink2); }

.notice {
  margin: 8px auto 0; max-width: 760px;
  background: #fff8ec; border: 1px solid #f5d9a8; color: #8a5a12;
  border-radius: 12px; padding: 16px 22px; font-size: 14.5px; text-align: left;
}
.notice b { color: #6f4407; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; position: relative; }
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink2); }

/* footer */
.footer { background: #121722; color: #aab2c2; padding: 40px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer a { color: #aab2c2; }
.footer a:hover { color: #fff; }
.beian { display: flex; gap: 18px; flex-wrap: wrap; }

/* reading progress */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  z-index: 60;
}
#top { scroll-margin-top: 74px; }

/* inline code */
.inline-code {
  font-family: "Cascadia Code", Consolas, monospace;
  background: #eef2f8; color: #2b4a7a; border-radius: 5px;
  padding: 2px 7px; font-size: 13px;
}

/* window code block */
.codeblock {
  margin: 12px 0 18px; border-radius: 12px; overflow: hidden;
  background: var(--code-bg);
  box-shadow: 0 14px 32px rgba(16, 24, 40, .22);
}
.codeblock-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 15px; background: #1d2536; border-bottom: 1px solid #2a3347;
}
.cb-dots { display: flex; gap: 7px; }
.cb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a445c; }
.cb-dots i:nth-child(1) { background: #ff5f57; }
.cb-dots i:nth-child(2) { background: #febc2e; }
.cb-dots i:nth-child(3) { background: #28c840; }
.cb-lang { font-size: 12px; color: #8b97b0; letter-spacing: .5px; }
.codeblock .copy {
  margin-left: auto;
  background: transparent; border: 1px solid #33405a; color: #9aa8c4;
  border-radius: 6px; padding: 3px 12px; font-size: 12px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.codeblock .copy:hover { color: #fff; border-color: #5b6e96; background: rgba(255,255,255,.06); }
.codeblock pre {
  padding: 15px 18px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.7;
}
.codeblock code {
  font-family: "Cascadia Code", Consolas, monospace;
  color: #e6ebf4;
}
.codeblock pre::-webkit-scrollbar { height: 8px; }
.codeblock pre::-webkit-scrollbar-thumb { background: #33405a; border-radius: 4px; }

/* docs hero */
.docs-hero {
  padding: 54px 0 46px;
  background:
    radial-gradient(680px 300px at 88% -100px, rgba(25,184,228,.15), transparent 70%),
    radial-gradient(720px 320px at 6% -120px, rgba(58,125,235,.17), transparent 70%),
    #fbfcfe;
  border-bottom: 1px solid var(--line);
}
.docs-crumb { font-size: 13px; color: #98a0b0; margin-bottom: 14px; }
.docs-crumb a { color: var(--ink2); }
.docs-crumb a:hover { color: var(--brand); }
.docs-crumb span { margin: 0 9px; }
.docs-hero h1 { font-size: 34px; letter-spacing: .5px; }
.docs-hero p { margin: 12px 0 22px; color: var(--ink2); font-size: 16px; }
.docs-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* docs layout */
.docs-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 44px; padding: 40px 0 84px; }
.docs-nav { position: sticky; top: 86px; align-self: start; }
.docs-nav-title {
  font-size: 12px; letter-spacing: 1.5px; color: #98a0b0;
  padding: 0 12px 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.docs-nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink2); font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
  border-left: 2px solid transparent;
}
.docs-nav a .n { font-size: 11.5px; color: #aeb6c6; font-variant-numeric: tabular-nums; }
.docs-nav a:hover { background: #f0f4fa; color: var(--brand); }
.docs-nav a.active {
  background: rgba(58,125,235,.09); color: var(--brand);
  font-weight: 600; border-left-color: var(--brand);
}
.docs-nav a.active .n { color: var(--brand); }

.doc-section + .doc-section { margin-top: 48px; }
.docs-body h2 {
  font-size: 25px; margin: 0 0 16px; letter-spacing: .3px;
  scroll-margin-top: 86px;
  display: flex; align-items: center; gap: 12px;
}
.docs-body h2::before {
  content: ""; flex: none; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}
.docs-body h3 { font-size: 16.5px; margin: 26px 0 10px; scroll-margin-top: 86px; }
.docs-body p { color: #3a4357; margin: 10px 0; font-size: 14.5px; }
.docs-body b { color: var(--ink); }
.docs-body ul { margin: 10px 0; list-style: none; }
.docs-body ul li {
  position: relative; padding-left: 22px; margin: 8px 0;
  color: #3a4357; font-size: 14.5px;
}
.docs-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.docs-body a { border-bottom: 1px solid rgba(58,125,235,.35); }
.docs-body a:hover { border-bottom-color: var(--brand); }

/* install tabs */
.tabs {
  margin: 18px 0 8px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 12px 32px rgba(30, 60, 120, .06);
}
.tab-btns { display: flex; gap: 4px; padding: 8px 8px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.tab-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink2);
  padding: 9px 18px; border-radius: 9px 9px 0 0;
}
.tab-btn:hover { color: var(--brand); }
.tab-btn.active { color: var(--brand); background: #fff; box-shadow: inset 0 2px 0 var(--brand); }
.tab-panel { display: none; padding: 20px 22px; }
.tab-panel.active { display: block; }
.tab-panel > p:first-child { margin-top: 0; }

/* callouts */
.callout {
  position: relative;
  border-radius: 12px; padding: 14px 18px 14px 48px; margin: 18px 0;
}
.callout b { display: block; margin-bottom: 2px; font-size: 14px; }
.callout p { margin: 0; font-size: 13.5px; }
.callout::before {
  position: absolute; left: 17px; top: 15px;
  font-size: 16px; line-height: 1.4;
}
.callout-tip { background: #eef5ff; border: 1px solid #cfe1fb; }
.callout-tip b { color: #1a4378; }
.callout-tip p { color: #35598a; }
.callout-tip::before { content: "\1F4A1"; }
.callout-warn { background: #fff7e9; border: 1px solid #f4dcae; }
.callout-warn b { color: #754a0a; }
.callout-warn p { color: #8a6428; }
.callout-warn::before { content: "\26A0"; }

/* use steps */
.use-steps { list-style: none; margin: 14px 0; counter-reset: usestep; }
.use-steps li {
  counter-increment: usestep;
  position: relative; padding: 16px 18px 16px 60px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30, 60, 120, .04);
}
.use-steps li::before {
  content: counter(usestep);
  position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.use-steps b { display: block; font-size: 14.5px; color: var(--ink); }
.use-steps span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink2); }

/* faq */
.faq {
  border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; background: #fff; overflow: hidden;
}
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 14px 44px 14px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--brand);
  transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 18px 16px; margin: 0; font-size: 14px; color: var(--ink2); }

/* back to top */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(58, 125, 235, .4);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* download section */
.dl-card {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 14px 40px rgba(30, 60, 120, 0.07);
}
.dl-icon { font-size: 44px; flex: none; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0; font-size: 13.5px; color: var(--ink2); }
.dl-note { font-size: 13.5px; color: var(--ink2); }
.dl-other { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .docs-hero { padding: 40px 0 34px; }
  .docs-hero h1 { font-size: 27px; }
  .docs-wrap { grid-template-columns: 1fr; gap: 0; padding: 26px 0 60px; }
  .docs-nav { display: none; }
  .tab-btns { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
  .back-top { right: 18px; bottom: 18px; }
  .dl-card { flex-direction: column; align-items: stretch; text-align: center; }
}
/* ===== 法律条款页（服务协议 / 隐私政策） ===== */
.legal-hero {
  padding: 56px 0 30px;
  background: radial-gradient(720px 360px at 50% -120px, rgba(58,125,235,.13), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.legal-hero .docs-crumb { font-size: 13px; color: var(--brand); margin-bottom: 12px; }
.legal-hero h1 { font-size: 36px; letter-spacing: .5px; }
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--ink2); }
.container.legal-container { max-width: 880px; }
.legal-wrap { padding: 34px 24px 72px; }
.legal-toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 34px;
  font-size: 14px;
}
.legal-toc b { display: block; margin-bottom: 8px; font-size: 13.5px; }
.legal-toc a { display: inline-block; margin: 4px 18px 4px 0; color: var(--ink2); }
.legal-toc a:hover { color: var(--brand); }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 19.5px; margin-bottom: 12px; color: var(--ink); }
.legal-section h3 { font-size: 15.5px; margin: 16px 0 8px; color: var(--ink); }
.legal-section p { margin-bottom: 10px; color: #313a4d; }
.legal-section ul { margin: 0 0 10px 22px; color: #313a4d; }
.legal-section li { margin: 5px 0; }
.legal-contact {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 22px; font-size: 14px; color: var(--ink2);
}
/* ============================================================
   落地页（/）
   ============================================================ */
.lp-hero { padding: 72px 0 80px; }
.lp-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lp-hero-text { text-align: left; }
.lp-hero-text h1 { font-size: 44px; }
.lp-hero-text .sub { margin-left: 0; }
.lp-hero-text .hero-btns { justify-content: flex-start; }
.lp-hero-text .hero-meta { text-align: left; }

.mock {
  background: #151b28;
  border: 1px solid #283349;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(20, 40, 80, 0.28);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: #1d2536; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4560; display: block; }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 8px; font-size: 11.5px; color: #7b85a0; }
.mock-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 268px; font-size: 12px; }
.mock-sidebar { background: #121827; padding: 12px 10px; }
.mock-new { background: #2fbf71; color: #08130c; border-radius: 8px; text-align: center; padding: 7px 0; font-weight: 700; }
.mock-group { color: #7b85a0; font-size: 11px; margin: 13px 3px 7px; }
.mock-hist { color: #97a0b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 9px 3px; }
.mock-main { padding: 15px; }
.mock-msg { padding: 8px 11px; border-radius: 10px; margin-bottom: 9px; max-width: 92%; line-height: 1.55; }
.mock-msg.user { background: #26334d; color: #dfe7f5; margin-left: auto; text-align: right; }
.mock-msg.ai { background: #202b40; color: #dfe7f5; }
.mock-code { margin-top: 5px; font-size: 11px; color: #7fd0a0; }
.mock-approve { background: #202b40; border: 1px solid #2f3d59; border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.mock-cmd { font-family: ui-monospace, Consolas, monospace; color: #bcd0f0; font-size: 11px; }
.mock-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 9px; }
.mock-btns span { font-size: 11px; padding: 3px 13px; border-radius: 6px; }
.mock-deny { background: #2a3349; color: #aeb8d0; }
.mock-ok { background: #2fbf71; color: #08130c; font-weight: 600; }

.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(20, 40, 80, 0.07); }
.lp-table th, .lp-table td { padding: 15px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.lp-table thead th { background: var(--bg); font-size: 15px; }
.lp-table tbody tr:last-child td { border-bottom: none; }
.lp-table td:first-child { color: var(--ink2); }
.lp-table th:last-child, .lp-table td:last-child { color: var(--brand); font-weight: 600; white-space: nowrap; }

.lp-faq { max-width: 820px; }
.lp-faq .lead { margin-bottom: 30px; }

@media (max-width: 900px) {
  .lp-split { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-text h1 { font-size: 34px; }
}