:root {
  /* 色系与图书封面一致：封面黑 / 封面红 / 机器人橙 */
  --ink-deep: #17181c;     /* 封面标题黑 */
  --brand: #d7000f;        /* 封面红（Broadview 红） */
  --brand-600: #a8000c;    /* 封面红 · 深一档（hover） */
  --ink: #2a2a2e;
  --muted: #6b655f;
  --line: #ebe3dc;
  --bg: #ffffff;
  --bg-alt: #faf6f1;
  --accent: #e87a00;       /* 封面机器人橙 */
  --warn: #b4631a;
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(70, 25, 12, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink-deep); margin: 1.4em 0 .6em; }
h1 { font-size: clamp(28px, 5vw, 44px); margin: .2em 0; }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 19px; }
p { margin: .6em 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-deep); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--ink-deep), var(--brand));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.brand__name { white-space: nowrap; font-size: 17px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--ink-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink-deep); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 70% -10%, #fdeee7 0%, #faf6f1 60%, #fff 100%); padding: 64px 0 56px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink); max-width: 760px; }
.lede2 { color: var(--muted); max-width: 720px; }
.publish-bar { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* hero 双栏（首页）：左文案 + 右封面；封面为 RGBA 透明底，直置于背景之上，无底板 */
.hero-grid { display: flex; align-items: center; gap: 48px; }
.hero-grid .hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-media { flex: 0 0 auto; }
.hero-cover { display: block; width: min(280px, 56vw); height: auto; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }

/* sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head .kicker { display: block; }
.sec-sub { color: var(--muted); }
/* 页面主标题以 h1 语义渲染（SEO/GEO），视觉尺寸与 h2 一致 */
.sec-head h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 0; }
.section-cta { background: var(--ink-deep); color: #fff; }
.section-cta h2, .section-cta .muted { color: #fff; }

/* grid + cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2, .card h3, .card h4 { margin-top: .2em; }
/* SEO/GEO 标题层级修正：页面题 h1 → 节/卡题 h2；.sub 与 .card h2 视觉尺寸与原 h3 保持一致（19px） */
.sub { font-size: 19px; }
.card h2 { font-size: 19px; }
/* 屏幕阅读器专用标题：为纯表单/列表页补足 h1→h2 层级，不改变视觉 */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card .muted { font-size: 14px; }
.link { font-weight: 600; }

/* flow */
.flow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 12px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.flow-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* views */
.view-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.view-list li { background: #fff; border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; box-shadow: var(--shadow); }

/* author */
.author-card { text-align: center; }
/* 作者页「联系作者团队」块（编委会名单下方居中） */
.author-contact { margin-top: 18px; }
.author-contact a { font-weight: 600; }

/* 卡片悬停浮动（全站统一微交互） */
.card, .faq-item { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .faq-item:hover { transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(70, 25, 12, .14); }
/* 减少动效偏好：仅取消过渡动画（悬停态瞬移呈现），保留上浮与阴影反馈；不整体杀死悬停效果 */
@media (prefers-reduced-motion: reduce) {
  .card, .faq-item { transition: none; }
}

/* media：图书封面效果图 / 三位作者合影 */
.book-cover-wrap { margin: 22px auto 8px; text-align: center; }
.book-cover { display: block; width: min(280px, 70vw); height: auto; margin: 0 auto; }

/* 书本图片悬停浮动（首页 hero / 图书页封面） */
.hero-cover, .book-cover { transition: transform .18s ease; }
.hero-cover:hover, .book-cover:hover { transform: translateY(-4px); }
/* 减少动效偏好：仅取消过渡动画，保留上浮反馈 */
@media (prefers-reduced-motion: reduce) {
  .hero-cover, .book-cover { transition: none; }
}
.book-cover-wrap figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.team-photo { margin: 0 auto 26px; text-align: center; }
.team-photo img { width: min(880px, 100%); height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* gates */
.gate-no { display: inline-block; background: var(--ink-deep); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; margin-bottom: 8px; font-size: 14px; }

/* tables */
.compare, table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.compare th, .compare td, table th, table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare thead, thead { background: var(--bg-alt); }
.dot-list, .num-list { padding-left: 22px; }
.dot-list li, .num-list li { margin: .4em 0; }

/* pull quote */
.pull { border-left: 4px solid var(--brand); background: var(--bg-alt); margin: 18px 0; padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 18px; color: var(--ink-deep); }

/* forms */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.lead-form label { display: block; margin: 12px 0; font-weight: 600; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.lead-form .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.lead-form .check input { margin-top: 6px; }
.form-note { min-height: 20px; color: var(--warn); font-size: 14px; margin: 8px 0 0; }

/* faq */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; font: inherit; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink-deep); }
.faq-icon { color: var(--brand); font-size: 20px; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--ink); }
.faq-item.open .faq-a { display: block; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 14px; border-left: 3px solid var(--brand); margin-left: 6px; }
.timeline span { display: inline-block; background: var(--bg-alt); color: var(--brand); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; margin-right: 8px; }

/* footer */
.site-footer { background: var(--ink-deep); color: #d8d1ca; margin-top: 40px; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fg h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.fg ul { list-style: none; padding: 0; margin: 0; }
.fg li { margin: 6px 0; }
.fg a { color: #c9bcb2; }
.decl-wrap { margin-top: 22px; }
.decl { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #cdd8e6; margin: 8px 0; }
.decl-ai { border-left: 3px solid var(--accent); }
.footer-base { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 13px; }
.footer-base p { margin: 4px 0; }
/* 备案号与版权行同字体同色（不使用品牌红） */
.footer-base a { color: inherit; }
.footer-base a:hover { text-decoration: underline; }
.footer-base .muted { color: #a79b91; }

/* 版权行：左版权 + 右「联系作者团队」；≤640 换行堆叠（规则并入下方 640 断点块） */
.foot-line { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin: 4px 0; }
.foot-line .foot-contact strong { color: inherit; }

/* table 横向滚动容器（窄屏宽表格可左右滑动） */
.table-wrap { overflow-x: auto; }

/* responsive —— 断点体系：960 导航折叠 / 900 平板网格 / 860 hero 换段 / 640 手机单列 / 400 窄屏品牌收缩 */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; right: 12px; top: 60px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; flex-direction: column; min-width: 180px; box-shadow: var(--shadow); z-index: 60; }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { flex-direction: column; gap: 28px; }
  .hero-media { width: 100%; }
  .hero-cover { width: min(240px, 60vw); margin: 0 auto; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-line { flex-direction: column; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
  .cta-row .btn { width: 100%; text-align: center; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 14px; }
  .brand__mark { width: 28px; height: 28px; font-size: 12px; }
}
/* 触屏「粘住」悬停态防护已移除（2026-09-25 裁定）：
   触摸屏笔记本 / 内嵌预览 webview 会上报 hover:none + pointer:coarse，
   取消块在这些环境下会误杀悬停上浮（症状：阴影生效、位移失效）；
   纯触屏上点按后短暂保持浮起态属可接受的轻微外观问题。 */
