/* ============================================================
   答引 Anscite · 品牌页样式
   原生 CSS，无构建工具、无外部字体（中文 web font 体积太大，
   用系统栈换首屏速度）。配色用 token，亮/暗两套。
   ============================================================ */

:root {
  /* 中性色带一点冷偏，和强调色的青绿是同一家 */
  --ink:        #14171d;
  --ink-2:      #333a46;
  --ink-3:      #5d6675;
  --ink-4:      #8b95a4;
  --paper:      #fbfbfa;
  --paper-2:    #f2f3f1;
  --line:       #e0e2e0;
  --line-2:     #cfd3d2;
  --accent:     #0f7a5a;
  --accent-ink: #ffffff;
  --accent-sub: #e3f2eb;
  --warn:       #8a6320;
  --warn-bg:    #fdf6e6;

  --radius: 10px;
  --wrap: 1080px;
  --step: clamp(1rem, 0.6rem + 1.4vw, 1.125rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #eef1f3;
    --ink-2:      #c7cdd6;
    --ink-3:      #9aa3b0;
    --ink-4:      #6f7885;
    --paper:      #0f1216;
    --paper-2:    #171b21;
    --line:       #262c34;
    --line-2:     #333a44;
    --accent:     #3ecf9a;
    --accent-ink: #08110d;
    --accent-sub: #12271f;
    --warn:       #e0b968;
    --warn-bg:    #241f12;
  }
}

:root[data-theme="dark"] {
  --ink:        #eef1f3;
  --ink-2:      #c7cdd6;
  --ink-3:      #9aa3b0;
  --ink-4:      #6f7885;
  --paper:      #0f1216;
  --paper-2:    #171b21;
  --line:       #262c34;
  --line-2:     #333a44;
  --accent:     #3ecf9a;
  --accent-ink: #08110d;
  --accent-sub: #12271f;
  --warn:       #e0b968;
  --warn-bg:    #241f12;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step);
  line-height: 1.75;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}
strong, b { font-weight: 650; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 99; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── 页头 ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink);
  position: relative; flex: none;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; left: 5px; height: 2.5px; border-radius: 2px;
  background: var(--accent);
}
.brand-mark::before { top: 7px;  width: 12px; }
.brand-mark::after  { top: 12.5px; width: 7px; }
.brand-text { display: inline-flex; align-items: baseline; gap: .4rem; font-weight: 650; letter-spacing: .01em; }
.brand-latin {
  font-size: .72em; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}

.nav { display: none; margin-left: auto; gap: 1.4rem; font-size: .92rem; }
.nav a { color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

.header-inner > .btn-sm { margin-left: auto; }
@media (min-width: 900px) { .header-inner > .btn-sm { margin-left: 0; } }

/* ── 按钮 ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
  padding: .7rem 1.3rem; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-3); filter: none; }

/* ── 版块通用 ─────────────────────────────────────────── */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1rem + 1.7vw, 2rem); font-weight: 680; }
h3 { font-size: 1.08rem; font-weight: 650; }
p  { margin: 0 0 1em; max-width: 68ch; }

.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}
.section-lede { color: var(--ink-2); max-width: 66ch; }

/* ── Hero ─────────────────────────────────────────────── */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hero-inner { max-width: 62rem; }
.hero .lede { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* ── 三栏 ─────────────────────────────────────────────── */

.cols-3 {
  display: grid; gap: 1.5rem 2.2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-3 article { border-top: 2px solid var(--ink); padding-top: 1rem; }
.cols-3 p { color: var(--ink-2); margin-bottom: 0; }

/* ── 步骤 ─────────────────────────────────────────────── */

/* 编号在这里是**有信息的**：这五步必须按顺序做，
   第 1 步没做好，后面四步全部建在沙子上。 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.2rem 0 0; }
.steps > li {
  counter-increment: s;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.4rem;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1.45rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-size: .9rem; font-weight: 650; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); margin-bottom: 0; }

/* ── 报告演示 ─────────────────────────────────────────── */

.report-demo {
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}
.band-alt .report-demo { background: var(--paper); }

.report-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.report-title { font-weight: 650; }
.tag-row { display: flex; gap: .4rem; margin-left: auto; }
.tag {
  font-size: .78rem; padding: .2rem .6rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-3);
}
.tag-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.metric:nth-child(-n+2) { border-top: 0; }
@media (min-width: 760px) { .metric { border-top: 0; } }
.metric:last-child { border-right: 0; }
@media (max-width: 759px) { .metric:nth-child(2n) { border-right: 0; } }
.metric-label { display: block; font-size: .82rem; color: var(--ink-3); }
.metric-value {
  display: block; font-size: 1.7rem; font-weight: 680;
  font-variant-numeric: tabular-nums; line-height: 1.3; color: var(--ink-4);
}
.metric-note { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.6; }

.board { padding: 1.2rem; }
.board h4 { margin-bottom: .2em; font-size: .95rem; }
.board-note { font-size: .82rem; color: var(--ink-3); margin-bottom: 1rem; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.board-list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(5.5rem, auto) 1fr;
  align-items: center; gap: .7rem;
  font-size: .9rem;
}
.board-rank { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.board-bar {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--line-2) var(--w), transparent var(--w));
}
.board-list .is-self .board-name { color: var(--accent); font-weight: 650; }
.board-list .is-self .board-bar {
  background: linear-gradient(to right, var(--accent) var(--w), var(--accent-sub) var(--w));
}

.honest {
  margin-top: 2rem;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.honest h3 { color: var(--warn); margin-bottom: .5em; }
.honest p:last-child { margin-bottom: 0; }

/* ── 两种合作 ─────────────────────────────────────────── */

.plans { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.6rem;
  display: flex; flex-direction: column;
}
.plan-lead { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent) inset; }
.plan-kicker {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 650; color: var(--ink-4); margin-bottom: .5rem;
}
.plan-lead .plan-kicker { color: var(--accent); }
.plan-desc { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .5rem; height: .28rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ── 站点清单 ─────────────────────────────────────────── */

.site-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem; }
@media (min-width: 720px) { .site-list { grid-template-columns: 1fr 1fr; } }
.site-list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem;
  text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-weight: 600;
  transition: border-color .12s ease;
}
.site-list a:hover { border-color: var(--accent); }
.site-list span {
  font-weight: 400; font-size: .84rem; color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-left: auto;
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.5rem;
  width: .5rem; height: .5rem;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq p { color: var(--ink-2); margin: 0 0 1.1rem; font-size: .96rem; }

/* ── 联系 ─────────────────────────────────────────────── */

.band-contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.3rem;
}
.contact-card h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-value { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-note { font-size: .84rem; color: var(--ink-3); margin: 0; }

.qr-slot {
  width: 100%; aspect-ratio: 1 / 1; max-width: 168px;
  display: grid; place-items: center; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  color: var(--ink-4); font-size: .82rem; line-height: 1.5;
  margin-bottom: .9rem;
}

/* 占位内容一眼可辨，免得忘了替换就发出去 */
[data-placeholder] b { color: var(--warn); background: var(--warn-bg); padding: 0 .3em; border-radius: 3px; }

.console-hint { margin-top: 2rem; color: var(--ink-3); font-size: .92rem; }
.console-hint a { color: var(--accent); font-weight: 600; }

/* ── 页脚 ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.2rem calc(2.2rem + env(safe-area-inset-bottom, 0px));
  font-size: .9rem;
}
.footer-inner { display: grid; gap: 1.2rem; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .copyright { grid-column: 1 / -1; }
}
.footer-tag { color: var(--ink-3); margin: .4rem 0 0; font-size: .86rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: var(--ink-3); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.copyright { color: var(--ink-4); margin: 0; font-size: .82rem; }

/* ── 留资表单 ─────────────────────────────────────────── */

.lead-form {
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid; gap: 1.1rem;
  max-width: 46rem;
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: block; }
.field-label {
  display: block; margin-bottom: .4rem;
  font-size: .88rem; font-weight: 600;
}
.field-label em {
  font-style: normal; font-weight: 500; font-size: .78rem;
  color: var(--ink-3); margin-left: .35em;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: .65rem .8rem;
  transition: border-color .12s ease;
}
.band-contact .field input,
.band-contact .field textarea { background: var(--paper-2); }
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 蜜罐：真人看不见、读屏器不念、Tab 也到不了（tabindex="-1" 在 HTML 上）。
   不用 display:none —— 有些机器人会跳过不可见字段，
   而这个字段的价值恰恰在于它们会填。 */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.form-foot .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-foot .btn:disabled { opacity: .6; cursor: default; transform: none; filter: none; }
.form-hint { font-size: .82rem; color: var(--ink-3); margin: 0; }

.form-msg {
  margin: 0; padding: .7rem .9rem;
  border-radius: 8px; font-size: .92rem;
  border: 1px solid transparent;
}
.form-msg.is-ok   { background: var(--accent-sub); border-color: var(--accent); color: var(--ink); }
.form-msg.is-warn { background: var(--warn-bg);   border-color: var(--warn);   color: var(--warn); }

/* 表单之外的直达通道。做得比表单轻——它是备选，不该抢表单的注意力。 */
.contact-direct {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.contact-direct a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.contact-direct a:hover { border-bottom-color: var(--accent); }
.contact-direct span {
  display: block;
  font-size: .84rem;
  color: var(--ink-3);
  margin-top: .2rem;
}
