/* WPa 官网样式 —— 执行《闻道有新-VI规范-V1.0》：暖白 70 / 墨黑 20 / 朱红 10，上升曲线动线。
   只引用 tokens.css 的品牌变量；层级靠字重（禁细字/伪斜体/拉宽字）。 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .demo-pane * { transition: none !important; animation: none !important; }
}

body {
  background: var(--wd-paper);
  color: var(--wd-ink);
  font-family: var(--wd-font-zh);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--wd-red); outline-offset: 2px; }

.container { max-width: var(--wd-container); margin: 0 auto; padding: 0 var(--wd-space-6); }

/* ---------- 公告条 ---------- */
.announce {
  background: var(--wd-ink);
  color: var(--wd-paper);
  font-size: 13px;
  line-height: 1.5;
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: var(--wd-space-3); padding-top: var(--wd-space-2); padding-bottom: var(--wd-space-2); position: relative; }
.announce a { color: var(--wd-paper); font-weight: 600; border-bottom: 1px solid var(--wd-red); }
.announce a:hover { color: #FFFFFF; border-color: #FFFFFF; }
.announce-close {
  position: absolute; right: var(--wd-space-4);
  background: none; border: 0; color: var(--wd-paper); cursor: pointer;
  font-size: 16px; line-height: 1; padding: var(--wd-space-1) var(--wd-space-2); font-family: inherit;
}
.announce-close:hover { color: var(--wd-red); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wd-line);
}
.site-header .container { display: flex; align-items: center; gap: var(--wd-space-12); height: 68px; }
.brand { display: flex; align-items: center; gap: var(--wd-space-3); }
.brand img { width: 176px; height: auto; } /* VI：横向组合（无 slogan）≥160px */
.brand-divider { width: 1px; height: 20px; background: var(--wd-line); }
.brand-product { font-family: var(--wd-font-latin); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; }
.nav { display: flex; gap: var(--wd-space-8); margin-left: auto; }
.nav a { font-size: 15px; color: var(--wd-ink); }
.nav a:hover { color: var(--wd-red); }
.header-cta { margin-left: var(--wd-space-8); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--wd-space-2);
  border-radius: var(--wd-radius);
  padding: 12px var(--wd-space-6);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--wd-red); color: var(--wd-white); }
.btn-primary:hover { background: var(--wd-red-hover); }
.btn-outline { border-color: var(--wd-ink); color: var(--wd-ink); background: transparent; }
.btn-outline:hover { border-color: var(--wd-red); color: var(--wd-red); }
.btn-sm { padding: 8px var(--wd-space-4); font-size: 14px; }
.btn[disabled], .btn-disabled { background: var(--wd-line); color: var(--wd-gray); cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--wd-space-16);
  padding-top: var(--wd-space-24); padding-bottom: var(--wd-space-16); align-items: center;
}
.hero-kicker {
  color: var(--wd-red); font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  margin-bottom: var(--wd-space-4);
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600; line-height: 1.22; letter-spacing: 0.01em;
  margin-bottom: var(--wd-space-6);
}
.hero-sub { font-size: 17px; max-width: 34em; margin-bottom: var(--wd-space-8); }
.hero-actions { display: flex; gap: var(--wd-space-4); flex-wrap: wrap; margin-bottom: var(--wd-space-4); }
.hero-note { font-size: 13px; color: var(--wd-gray); }
.hero-curve {
  position: absolute; right: -140px; top: -60px; width: 620px; height: auto;
  opacity: 0.32; pointer-events: none;
}

/* ---------- Hero 演示窗（产品演示层：红笔批注只在此层出现） ---------- */
.demo-window {
  background: var(--wd-ink); border-radius: var(--wd-radius);
  box-shadow: var(--wd-shadow); overflow: hidden;
}
.demo-titlebar {
  display: flex; align-items: center; gap: var(--wd-space-2);
  padding: 10px var(--wd-space-4); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.demo-dot:first-child { background: var(--wd-red); }
.demo-title { margin-left: var(--wd-space-2); font-size: 12px; color: rgba(246, 243, 237, 0.6); font-family: var(--wd-font-latin); }
.demo-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--wd-space-3); padding: var(--wd-space-4); }
.demo-pane { border-radius: var(--wd-radius); padding: var(--wd-space-3); min-height: 218px; }
.demo-pane-doc { background: var(--wd-white); }
.demo-pane-gen { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.demo-pane-label { font-size: 12px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.demo-pane-doc .demo-pane-label { color: var(--wd-gray); }
.demo-pane-gen .demo-pane-label { color: rgba(246, 243, 237, 0.6); }
.doc-line { height: 8px; border-radius: 2px; background: var(--wd-line); margin: 10px 0; }
.doc-line.w60 { width: 60%; } .doc-line.w85 { width: 85%; } .doc-line.w75 { width: 75%; } .doc-line.w40 { width: 40%; }
.req-item {
  font-size: 13px; color: rgba(246, 243, 237, 0.92); line-height: 1.6;
  margin: 7px 0; opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.req-item .ok { color: rgba(246, 243, 237, 0.5); margin-right: 6px; }
.demo-pane .anno {
  margin-top: var(--wd-space-3);
  border: 1px solid rgba(183, 44, 38, 0.9); background: rgba(183, 44, 38, 0.18);
  color: #F2D7D4; font-size: 12px; line-height: 1.55; border-radius: var(--wd-radius);
  padding: 8px var(--wd-space-3);
  opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.demo-status {
  padding: 10px var(--wd-space-4); border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; color: rgba(246, 243, 237, 0.62); font-family: var(--wd-font-latin);
}
.demo-status strong { color: var(--wd-paper); font-weight: 600; }
.demo-window.playing .req-item, .demo-window.playing .anno { opacity: 1; transform: none; }
.demo-window.playing .req-item:nth-child(2) { transition-delay: 0.35s; }
.demo-window.playing .req-item:nth-child(3) { transition-delay: 0.7s; }
.demo-window.playing .req-item:nth-child(4) { transition-delay: 1.05s; }
.demo-window.playing .anno { transition-delay: 1.5s; }

/* ---------- 区块骨架 ---------- */
.section { padding: var(--wd-space-24) 0; }
.section-alt { background: var(--wd-white); border-top: 1px solid var(--wd-line); border-bottom: 1px solid var(--wd-line); }
.kicker { color: var(--wd-red); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; margin-bottom: var(--wd-space-3); }
.section h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.35; margin-bottom: var(--wd-space-3); }
.section-sub { font-size: 16px; color: var(--wd-gray); max-width: 40em; margin-bottom: var(--wd-space-12); }

/* ---------- 信任带 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--wd-space-4); }
.trust-card { background: var(--wd-white); border: 1px solid var(--wd-line); border-radius: var(--wd-radius); padding: var(--wd-space-6); }
.trust-card h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.trust-card h3 em { font-style: normal; font-family: var(--wd-font-latin); color: var(--wd-red); margin-right: 6px; }
.trust-card p { font-size: 14px; color: var(--wd-gray); line-height: 1.65; }
.trust-note { margin-top: var(--wd-space-4); font-size: 13px; color: var(--wd-gray); }

/* ---------- 能力 bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wd-space-4); }
.bento-card { background: var(--wd-paper); border: 1px solid var(--wd-line); border-radius: var(--wd-radius); padding: var(--wd-space-6); }
.section-alt .bento-card { background: var(--wd-paper); }
.bento-icon { width: 36px; height: 36px; margin-bottom: var(--wd-space-4); }
.bento-icon svg { width: 100%; height: 100%; }
.bento-card h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.bento-card p { font-size: 14px; color: var(--wd-gray); line-height: 1.65; }

/* ---------- 工作流 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wd-space-8); }
.step-num { font-family: var(--wd-font-latin); font-size: 40px; font-weight: 600; color: var(--wd-red); line-height: 1; margin-bottom: var(--wd-space-4); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.step p { font-size: 15px; color: var(--wd-gray); }
.step .red-mark { color: var(--wd-red); font-weight: 600; }

/* ---------- 场景 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wd-space-4); }
.scene-card { background: var(--wd-white); border: 1px solid var(--wd-line); border-radius: var(--wd-radius); padding: var(--wd-space-6); }
.scene-card h3 { font-size: 17px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.scene-card h3 span { color: var(--wd-gray); font-weight: 400; font-size: 14px; margin-left: var(--wd-space-2); }
.scene-card p { font-size: 14px; color: var(--wd-gray); line-height: 1.65; }

/* ---------- 对比表 ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: var(--wd-space-4); border-bottom: 1px solid var(--wd-line); font-size: 14px; vertical-align: top; }
.compare thead th { font-size: 15px; font-weight: 600; color: var(--wd-gray); }
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--wd-ink); width: 15%; }
.compare .col-wpa { background: var(--wd-paper); border-top: 2px solid var(--wd-red); color: var(--wd-ink); font-weight: 400; }
.compare thead .col-wpa { color: var(--wd-red); font-weight: 600; }
.compare td.no { color: var(--wd-gray); }

/* ---------- 安全与数据 ---------- */
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--wd-space-4); margin-bottom: var(--wd-space-8); }
.security-item h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--wd-space-2); }
.security-item h3 b { color: var(--wd-red); margin-right: 6px; font-weight: 600; }
.security-item p { font-size: 14px; color: var(--wd-gray); line-height: 1.65; }
.integrity-note {
  background: var(--wd-white); border: 1px solid var(--wd-line); border-left: 3px solid var(--wd-red);
  border-radius: var(--wd-radius); padding: var(--wd-space-4) var(--wd-space-6);
  font-size: 14px; color: var(--wd-ink);
}
.integrity-note code { font-family: var(--wd-font-mono); font-size: 13px; background: var(--wd-paper); padding: 2px 6px; border-radius: 2px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--wd-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: var(--wd-space-4) 0; font-size: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--wd-font-latin); font-size: 20px; color: var(--wd-red); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 var(--wd-space-4); font-size: 15px; color: var(--wd-gray); max-width: 46em; }

/* ---------- 下载区（深色：白卡即 VI 承托板，不放标志） ---------- */
.download { background: var(--wd-ink); color: var(--wd-paper); }
.download .kicker { color: var(--wd-red); }
.download h2 { color: var(--wd-paper); }
.download .section-sub { color: rgba(246, 243, 237, 0.62); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wd-space-4); margin-bottom: var(--wd-space-8); }
.dl-card { background: var(--wd-white); color: var(--wd-ink); border-radius: var(--wd-radius); padding: var(--wd-space-6); display: flex; flex-direction: column; gap: var(--wd-space-3); }
.dl-os { font-size: 17px; font-weight: 600; }
.dl-os span { display: block; font-size: 13px; font-weight: 400; color: var(--wd-gray); margin-top: 2px; }
.dl-meta { font-size: 13px; color: var(--wd-gray); line-height: 1.7; }
.dl-meta code { font-family: var(--wd-font-mono); font-size: 12px; color: var(--wd-ink); word-break: break-all; }
.dl-card .btn { margin-top: auto; }
.dl-error { font-size: 13px; color: var(--wd-red); min-height: 1.4em; }
.dl-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dl-verify {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--wd-radius);
  padding: var(--wd-space-4) var(--wd-space-6); font-size: 13px; color: rgba(246, 243, 237, 0.78);
  margin-bottom: var(--wd-space-4);
}
.dl-verify code { font-family: var(--wd-font-mono); color: var(--wd-paper); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 2px; }
.dl-note { font-size: 13px; color: rgba(246, 243, 237, 0.55); }

/* ---------- 底部 CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-final .section-sub { margin-left: auto; margin-right: auto; }
.cta-final .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--wd-white); border-top: 1px solid var(--wd-line); padding: var(--wd-space-12) 0 var(--wd-space-8); }
.footer-brand img { width: 380px; height: auto; margin-bottom: var(--wd-space-4); } /* VI：含 slogan 组合 ≥360px */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--wd-space-8); margin-bottom: var(--wd-space-8); }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--wd-gray); letter-spacing: 0.1em; margin-bottom: var(--wd-space-3); }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: var(--wd-ink); }
.footer-col a:hover { color: var(--wd-red); }
.footer-desc { font-size: 14px; color: var(--wd-gray); max-width: 26em; }
.footer-meta {
  border-top: 1px solid var(--wd-line); padding-top: var(--wd-space-4);
  font-size: 13px; color: var(--wd-gray); display: flex; flex-wrap: wrap; gap: var(--wd-space-2) var(--wd-space-4);
}
.footer-meta a:hover { color: var(--wd-red); }
.footer-meta .icp a { margin-left: var(--wd-space-2); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--wd-space-8); padding-top: var(--wd-space-12); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps, .scene-grid { grid-template-columns: 1fr; gap: var(--wd-space-6); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--wd-space-6); }
  .footer-brand img { width: 360px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .site-header .container { gap: var(--wd-space-4); }
  .header-cta { margin-left: auto; }
  .brand img { width: 160px; }
  .brand-product { display: none; }
  .brand-divider { display: none; }
  .trust-grid, .bento, .security-grid { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .announce-close { right: var(--wd-space-2); }
}
