/* 八方智能官网 —— 配色与客户端 default-color-scheme.css 保持一致 */
:root {
  --brand: #009fe8;
  --brand-strong: #007bb3;
  --brand-deep: #07384d;
  --brand-soft: #eaf7fd;
  --brand-soft-2: #d5effb;

  --bg: #ffffff;
  --bg-alt: #f5f9fb;
  --surface: #ffffff;
  --surface-2: #f0f5f8;
  --border: #dfe7ec;
  --text: #1f2a30;
  --text-2: #4b5b66;
  --text-3: #7f929f;
  --success: #00a82a;
  --shadow: 0 1px 2px rgba(7, 56, 77, .06), 0 12px 32px -12px rgba(7, 56, 77, .18);
  --shadow-lg: 0 30px 80px -24px rgba(7, 56, 77, .35);
  --radius: 14px;
  --logo-filter: none;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #0c2a38;
    --brand-soft-2: #103b50;
    --bg: #0e1418;
    --bg-alt: #121b20;
    --surface: #172228;
    --surface-2: #1d2a31;
    --border: #2a3a43;
    --text: #e8eef2;
    --text-2: #a9b8c2;
    --text-3: #7d8f9a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .8);
    --logo-filter: brightness(0) invert(1);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code {
  font: .88em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: .1em .4em;
  border-radius: 6px;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 159, 232, .7); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft-2); }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand img { height: 34px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--brand-strong); }

/* 首屏 */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow-x: clip;
  background:
    radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 13px; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 22px 0 20px; font-weight: 800; }
.accent {
  background: linear-gradient(100deg, var(--brand) 10%, #36c3ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.lede { font-size: 18px; color: var(--text-2); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* 产品窗口示意 */
.hero-visual { position: relative; }
.window {
  border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
.win-bar {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: auto; margin-right: auto; color: var(--text-3); font-size: 12px; transform: translateX(-20px); }
.win-body { display: grid; grid-template-columns: 172px 1fr; min-height: 380px; }
.win-side { background: var(--bg-alt); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-new { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 7px 10px; font-weight: 600; margin-bottom: 8px; }
.side-label { font-size: 11px; color: var(--text-3); padding: 8px 8px 4px; }
.side-item { padding: 6px 8px; border-radius: 7px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.active { background: var(--brand-soft-2); color: var(--brand-deep); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--border); font-weight: 600; }
.side-foot em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--success); font-weight: 500; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; }
.win-main { padding: 28px 28px 24px; display: flex; flex-direction: column; align-items: center; }
.identity { display: flex; align-items: center; gap: 10px; }
.identity img { width: 34px; }
.identity b { display: block; font-size: 15px; }
.identity small { color: var(--text-3); font-size: 11px; }
.win-title { font-size: 19px; font-weight: 700; margin: 18px 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: 12px; }
.chip.on { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.input-card { width: 100%; border: 1.5px solid var(--brand); border-radius: 14px; padding: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); background: var(--surface); }
.input-card p { color: var(--text); min-height: 44px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.input-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; }
.pill img { width: 13px; }
.pill em { font-style: normal; color: var(--brand-strong); font-weight: 700; }
.send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.float-card {
  position: absolute; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--text); font-size: 13px; }
.fc-1 { left: -28px; bottom: 70px; }
.fc-1 b::before { content: "✓ "; color: var(--success); }
.fc-2 { right: -18px; bottom: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* 通用段落 */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker { color: var(--brand-strong); font-weight: 700; font-size: 14px; letter-spacing: .08em; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* 介绍 */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.intro-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.intro-card .num { font: 800 14px ui-monospace, Menlo, monospace; color: var(--brand); }
.intro-card h3 { font-size: 22px; margin: 10px 0 10px; }
.intro-card p { color: var(--text-2); }

/* 能力 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; fill: var(--brand); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* 展示 */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 28px; }
.tabs button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600;
  padding: 9px 20px; border-radius: 9px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand-strong); box-shadow: 0 1px 3px rgba(7, 56, 77, .12); }
.panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; animation: fade .3s ease; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.panel-copy h3 { font-size: 26px; margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23009fe8' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.mock { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); padding: 24px; font-size: 14px; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; }
.msg.user { margin-left: auto; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--surface-2); border-bottom-left-radius: 4px; }
.steps { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.steps .ok::before { content: "✓  "; color: var(--success); font-weight: 700; }
.steps .run::before { content: "◌  "; color: var(--brand); display: inline-block; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.file-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.file-card small { display: block; color: var(--text-3); font-size: 12px; }
.file-ico { width: 38px; height: 44px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.file-ico.ppt { background: #d24726; }
.file-act { margin-left: auto; color: var(--brand-strong); font-weight: 600; font-size: 13px; }
.mock-agents { display: grid; gap: 10px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.agent.on { border-color: var(--brand); background: var(--brand-soft); }
.agent small { display: block; color: var(--text-3); font-size: 12px; }
.agent em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--success); }
.agent.on em { color: var(--brand-strong); }
.agent em.muted { color: var(--text-3); }
.a-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.kpis div { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.kpis small { display: block; color: var(--text-3); font-size: 12px; }
.kpis b { font-size: 22px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; border-bottom: 1px solid var(--border); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 55%, transparent)); }
.bar-labels { display: flex; gap: 12px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); }
.note { margin-top: 20px; font-size: 12.5px; color: var(--text-3); }

/* 下载 */
.dl-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.dl-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.primary-card { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); }
.dl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.os-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; }
.os-ico svg { width: 28px; fill: var(--text); }
.dl-head h3 { font-size: 22px; }
.dl-head p { color: var(--text-2); font-size: 14px; }
.dl-files { display: grid; gap: 10px; }
.dl-file {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.dl-file:hover { border-color: var(--brand); background: var(--brand-soft); }
.dl-file.rec { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-file.rec:hover { background: var(--brand-strong); }
.dl-file b { font-size: 15px; }
.dl-file small { display: block; font-size: 12.5px; opacity: .75; }
.dl-file .arrow { margin-left: auto; font-size: 18px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .22); margin-left: 6px; vertical-align: 2px; }
.hash { margin-top: 18px; font-size: 13px; color: var(--text-2); }
.hash summary { cursor: pointer; color: var(--text-3); }
.hash-row { margin-top: 10px; }
.hash-row b { font-size: 12px; color: var(--text-2); }
.hash-row div { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.hash-row code { flex: 1; min-width: 0; word-break: break-all; font-size: 11px; background: var(--surface-2); color: var(--text-2); padding: 6px 8px; }
.copy { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.copy:hover { border-color: var(--brand); color: var(--brand-strong); }
.dl-side { display: grid; gap: 20px; }
.soon { display: flex; flex-direction: column; justify-content: center; border-style: dashed; background: transparent; }
.soon h3 { font-size: 18px; color: var(--text-2); }
.soon p { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.install { margin-top: 40px; }
.install h3 { font-size: 20px; margin-bottom: 18px; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps-list li { counter-increment: s; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps-list li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.steps-list b { display: block; margin-bottom: 6px; }
.steps-list span { color: var(--text-2); font-size: 14.5px; }

/* 更新 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); }
.flow li:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-weight: 700; z-index: 1;
}
.flow span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft-2); color: var(--brand-strong); font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.flow b { display: block; }
.flow small { color: var(--text-2); font-size: 13.5px; }
.feed-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.feed-status.live .status-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
.history-title { font-size: 20px; margin: 48px 0 18px; }
.history { border-left: 2px solid var(--border); margin-left: 6px; display: grid; gap: 4px; }
.rel { position: relative; padding: 4px 0 22px 28px; }
.rel::before { content: ""; position: absolute; left: -8px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); }
.rel.latest::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft-2); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.rel-head h4 { margin: 0; font-size: 18px; }
.rel-head time { color: var(--text-3); font-size: 13.5px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft-2); color: var(--brand-strong); }
.rel ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.rel-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.rel-links a { text-decoration: none; }
.rel-links a:hover { text-decoration: underline; }
.rel-links span { color: var(--text-3); }
.more { margin: 4px 0 0 28px; border: 0; background: none; color: var(--brand-strong); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }

/* 底部 */
.cta-band { background: linear-gradient(120deg, var(--brand-deep), #0a6f9c 55%, var(--brand)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-band p { opacity: .8; margin-top: 8px; }
.footer { padding: 32px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-3); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand img { width: 26px; }

/* 响应式 */
@media (max-width: 1040px) {
  .hero-inner, .panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-side { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li::after { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 64px 0; }
  .intro-grid, .feature-grid, .steps-list, .flow, .dl-side { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .win-main { padding: 22px 16px; }
  .float-card { display: none; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 9px 8px; }
  .hero-cta .btn { flex: 1; }
}

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