/* 官网样式（深色科技风）：改配色只需改下面的变量 */
:root {
  --bg: #060a12;
  --bg-2: #0a111f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8eef7;
  --muted: #93a1b5;
  --dim: #64728a;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(90deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
code { font-family: var(--mono); }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 图标 */
.ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255, 255, 255, .04); color: var(--cyan); }
.ico svg, .brand-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-red { color: var(--red); }
.ico-amber { color: var(--amber); }
.ico-blue { color: #60a5fa; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(6, 10, 18, .72); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #03121a; box-shadow: 0 0 24px rgba(34, 211, 238, .35); }
.brand-mark svg { stroke-width: 2.2; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand-tag { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { padding: 7px 16px; border: 1px solid rgba(34, 211, 238, .45); border-radius: 999px; background: rgba(34, 211, 238, .08); color: var(--text); }
.nav .nav-cta:hover { background: rgba(34, 211, 238, .16); }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding: 96px 0 56px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow-a { left: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 65%); }
.glow-b { right: -160px; top: 40px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 65%); }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.constellation line { stroke: rgba(34, 211, 238, .22); stroke-width: 1; }
.constellation circle { fill: #7dd3fc; }
.constellation .p { animation: twinkle 3.2s ease-in-out infinite; }
.constellation .p:nth-child(3n) { animation-delay: 1.1s; }
.constellation .p:nth-child(4n) { animation-delay: 2.2s; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 13px; color: #c9d6e6; }
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { margin-bottom: 24px; font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
.lead { max-width: 34em; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--grad); color: #03121a; box-shadow: 0 8px 30px rgba(59, 130, 246, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(59, 130, 246, .5); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.platforms-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.platforms ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 13px; color: #cbd5e1; }
.platforms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* 首屏右侧：AI 答案解析示意 */
.hero-visual { position: relative; }
.radar { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(34, 211, 238, .1) 0 1px, transparent 1px 70px), conic-gradient(from 0deg, transparent 0 75%, rgba(34, 211, 238, .22) 95%, transparent 100%); -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 70%); mask-image: radial-gradient(circle, #000 55%, transparent 70%); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.console { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 25, 43, .94), rgba(10, 16, 30, .94)); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334055; }
.console-title { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.console-badge { margin-left: auto; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; color: var(--muted); }
.console-tabs { display: flex; gap: 2px; padding: 8px 10px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.console-tabs span { position: relative; padding: 6px 10px 10px; font-size: 12px; white-space: nowrap; color: var(--dim); }
.console-tabs .on { color: var(--text); }
.console-tabs .on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.console-body { padding: 18px 18px 6px; }
.msg { display: flex; gap: 12px; margin-bottom: 12px; }
.role { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.msg-q .role { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.msg-a .role { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.msg p { margin: 2px 0 10px; font-size: 14.5px; color: #dbe4f0; }
.msg-a > div { flex: 1; min-width: 0; }
.typing::after { content: "▍"; margin-left: 2px; color: var(--cyan); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ans { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ans li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: 14px; }
.ans .n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ans .you { border-color: rgba(34, 211, 238, .55); background: linear-gradient(90deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .08)); box-shadow: 0 0 24px rgba(34, 211, 238, .15); }
.ans .you .n { background: var(--grad); color: #03121a; }
.nm { font-weight: 700; }
.hit { margin-left: auto; font-size: 11.5px; white-space: nowrap; color: var(--green); }
.ph { display: block; flex: 1; max-width: 62%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.ph-s { max-width: 44%; }
.cites { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px 38px; }
.cites-label { margin-right: 2px; font-size: 12px; color: var(--dim); }
.cites code { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .03); font-size: 11.5px; color: #9fb3c8; }
.console-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.console-foot span { padding: 10px 8px; border-left: 1px solid var(--line); font-size: 12px; text-align: center; color: var(--dim); }
.console-foot span:first-child { border-left: 0; }
.console-foot b { margin-left: 6px; font-family: var(--mono); color: var(--text); }
.console-foot .ok { color: var(--green); }
.visual-caption { position: relative; margin: 12px 0 0; font-size: 12px; text-align: center; color: var(--dim); }
.js .ans li { opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.js .typed .ans li { opacity: 1; transform: none; }
.js .typed .ans li:nth-child(2) { transition-delay: .15s; }
.js .typed .ans li:nth-child(3) { transition-delay: .3s; }

/* 数字带 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.stats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* 通用区块 */
.section { position: relative; padding: 104px 0; }
.section-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--cyan); }
.kicker span { padding: 1px 7px; border: 1px solid rgba(34, 211, 238, .4); border-radius: 6px; font-size: 12px; }
.section h2 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-lead { max-width: 46em; margin-bottom: 44px; font-size: 17px; color: var(--muted); }
.card, .rule, .report, .pipeline li { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: border-color .2s, transform .2s, opacity .7s; }
.card:hover, .rule:hover, .report:hover, .pipeline li:hover { border-color: rgba(34, 211, 238, .35); }
.card p, .rule p, .report p, .pipeline p { margin: 0; font-size: 15px; color: var(--muted); }

/* 三种情况 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-top code { font-size: 12px; color: var(--dim); }
.card h3, .rule h3 { margin-bottom: 8px; font-size: 20px; }
.note { margin: 28px 0 0; padding: 16px 20px; border: 1px solid rgba(251, 191, 36, .25); border-left: 3px solid var(--amber); border-radius: 12px; background: rgba(251, 191, 36, .06); font-size: 15px; color: #f3e3b5; }

/* 技术路线 */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pipeline li { overflow: hidden; padding: 26px; }
.pipeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--grad); transform-origin: left; }
.js .pipeline li::before { transform: scaleX(0); transition: transform .9s ease .2s; }
.js .pipeline li.in::before { transform: scaleX(1); }
.pl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pl-head code { font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.pipeline h3 { margin-bottom: 8px; font-size: 19px; }

/* 诊断体系 */
.diag { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.confidence { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.confidence li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: var(--muted); }
.badge { flex: none; min-width: 6em; padding: 2px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.b-green { border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.b-amber { border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); color: #fcd34d; }
.b-gray { border: 1px solid rgba(148, 163, 184, .35); background: rgba(148, 163, 184, .1); color: #cbd5e1; }
.reports { display: grid; gap: 16px; }
.report { padding: 22px 24px; }
.report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--dim); }
.report-head code { padding: 1px 8px; border-radius: 6px; background: var(--grad); font-size: 12px; font-weight: 700; color: #03121a; }
.report h3 { margin-bottom: 6px; font-size: 18px; }
.report h3 em { margin-left: 10px; font-family: var(--mono); font-size: 13px; font-style: normal; font-weight: 500; color: var(--cyan); }

/* 效果看板 */
.dash { margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 25, 43, .85), rgba(10, 16, 30, .85)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dash-title { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.demo { padding: 2px 10px; border: 1px solid rgba(251, 191, 36, .35); border-radius: 999px; background: rgba(251, 191, 36, .08); font-size: 12px; color: #fcd34d; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpis div { padding: 18px 20px; border-left: 1px solid var(--line); }
.kpis div:first-child { border-left: 0; }
.kpis b { display: block; font-family: var(--mono); font-size: 26px; line-height: 1.2; }
.kpis span { font-size: 13px; color: var(--muted); }
.dtable { padding: 6px 12px 10px; }
.dr { display: grid; grid-template-columns: 1.1fr 2.2fr .9fr 1.6fr 1fr; align-items: center; gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dr:last-child { border-bottom: 0; }
.dh { font-size: 12px; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.pf { font-weight: 600; }
.rate { display: flex; align-items: center; gap: 12px; }
.rate i { position: relative; flex: 1; height: 8px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.rate i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 4px; background: var(--grad); }
.js .dash .rate i::after { width: 0; transition: width 1.2s cubic-bezier(.2, .7, .2, 1) .3s; }
.js .dash.in .rate i::after { width: var(--v); }
.rate b { width: 3em; font-family: var(--mono); font-weight: 600; text-align: right; }
.dr:not(.dh) > span:nth-child(3) { font-family: var(--mono); }
.src { font-size: 13px; color: var(--muted); }
.spark { display: block; width: 80px; height: 24px; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash figcaption { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* 原则 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rule { padding: 24px; }
.rule .ico { margin-bottom: 18px; }

/* 常见问题 */
.faq { border-top: 1px solid var(--line); }
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa h3 { margin-bottom: 8px; font-size: 17px; }
.qa p { margin: 0; font-size: 15px; color: var(--muted); }

/* 联系 */
.contact { padding-top: 56px; }
.contact-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .3); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, .16), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(139, 92, 246, .18), transparent 50%), rgba(255, 255, 255, .03); }
.contact-copy h2 { margin-bottom: 12px; }
.contact-copy p { margin: 0; font-size: 17px; color: var(--muted); }
.contact-card { display: flex; align-items: center; gap: 24px; padding: 8px 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(6, 10, 18, .55); }
.contact-list { flex: 1; margin: 0; }
.contact-list div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { flex: none; width: 3em; color: var(--dim); }
.contact-list dd { margin: 0; }
.qr { flex: none; display: grid; place-items: center; width: 108px; height: 108px; font-size: 12px; line-height: 1.5; text-align: center; }

/* 页脚 */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }

/* 待填写项：填好后把外面的 todo 标记去掉 */
.todo, .todo-box { border: 1px dashed rgba(251, 191, 36, .7); border-radius: 4px; background: rgba(251, 191, 36, .12); color: #fcd34d; }
.todo { padding: 0 6px; }

/* 滚动出现（没有 JS 时直接显示） */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease, border-color .2s; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
  .hero { padding: 64px 0 40px; }
  .hero-inner, .diag, .contact-panel { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .pipeline, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .radar { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav a:not(.nav-cta), .brand-tag { display: none; }
  .grid-3, .pipeline, .grid-4 { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .stats dt { font-size: 32px; }
  .stats > div { padding: 18px; }
  .console-foot span { padding: 10px 4px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis div:nth-child(3) { border-left: 0; }
  .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dr { grid-template-columns: 4.6em 1fr 3.6em; gap: 10px; }
  .dr > span:nth-child(4), .dr > span:nth-child(5) { display: none; }
  .contact-panel { padding: 28px 20px; }
  .contact-card { flex-direction: column; align-items: stretch; padding: 8px 18px 18px; }
  .qr { margin: 0 auto; }
}
