/* 智笔研教官网 · 纸白底 + 墨蓝字 + 印泥红点睛 · 圆角统一 10px */
:root {
  --paper: #fafaf8;
  --ink: #1c2b3a;
  --ink-2: #51637a;
  --line: #e4e7e9;
  --accent: #bf4430;
  --accent-dark: #a53823;
  --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.75 -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
h1, h2 { letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 按钮：主 CTA 印泥红，其余描边 */
.btn {
  display: inline-block; padding: 9px 20px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.lg { padding: 13px 30px; font-size: 16px; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 40; height: 68px;
  background: rgba(250, 250, 248, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.seal {
  width: 34px; height: 34px; border-radius: 4px; background: var(--accent);
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.15;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px; writing-mode: vertical-rl; padding: 2px;
}
.brand-name { font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Hero：左文右图，产品图向右溢出 */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.lede {
  margin: 22px 0 30px; font-size: 18px; color: var(--ink-2); max-width: 30em;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-shot { min-width: 0; }
.browser {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; width: 130%; max-width: none;
  box-shadow: 0 24px 60px -24px rgba(28, 43, 58, .25);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); background: #f3f4f2;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe1; }
.browser-bar span {
  margin-left: 10px; font-size: 12px; color: var(--ink-2);
  background: #fff; border-radius: 6px; padding: 1px 12px;
}

/* 信任条 + 数据 */
.trust { padding: 56px 0 72px; }
.trust-line {
  text-align: center; color: var(--ink-2); font-size: 15px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.trust-line b { color: var(--ink); font-weight: 600; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; padding-top: 44px; max-width: 920px; margin: 0 auto;
}
.stat { display: flex; gap: 18px; align-items: baseline; }
.stat b {
  font-size: 42px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* 通用 section 头 */
section { scroll-margin-top: 80px; }
.section-lede {
  color: var(--ink-2); margin: 14px 0 0; max-width: 40em; font-size: 16.5px;
}

/* 写作流程：横向 7 步 */
.flow { padding: 88px 0; background: #fff; border-block: 1px solid var(--line); }
.steps {
  counter-reset: step; list-style: none; margin-top: 48px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
}
.steps li {
  counter-increment: step; padding: 20px 16px 6px; position: relative;
  border-left: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps li b { display: block; margin: 8px 0 6px; font-size: 16px; }
.steps li span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 智能体矩阵 bento */
.agents { padding: 96px 0; }
.matrix {
  margin-top: 48px; display: grid; gap: 12px;
  grid-template-columns: repeat(20, 1fr); /* 20列：写作格占5，增值格占4，5个正好一行 */
}
.matrix .cell { grid-column: span 5; }
.matrix .cell.x { grid-column: span 4; }
.cell {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cell:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(28,43,58,.28); }
.cell b { font-size: 15.5px; display: block; }
.cell span { font-size: 13px; color: var(--ink-2); }
.matrix .cell.orch {
  grid-column: span 10; grid-row: span 2;
  background: var(--ink); color: #f2f4f6; border-color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.cell.orch b { font-size: 22px; }
.cell.orch b::after {
  content: "1"; margin-left: 10px; font-size: 12px; color: #fff;
  background: var(--accent); border-radius: 4px; padding: 1px 8px; vertical-align: 3px;
}
.cell.orch p { font-size: 14px; color: #b9c4d0; max-width: 26em; }
.cell.x { background: #f4f2ee; border-color: #eae6df; }
.cell.x b { font-size: 14px; font-weight: 600; }

/* 合规体系：全页唯一深色块 */
.compliance { background: var(--ink); color: #eef1f4; padding: 104px 0; }
.comp-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.eyebrow {
  font-size: 13px; letter-spacing: .18em; color: var(--accent);
  font-weight: 600; margin-bottom: 14px;
}
.compliance h2 { color: #fff; }
.comp-lede { margin: 18px 0 30px; color: #aab6c4; font-size: 16.5px; }
.comp-list { list-style: none; display: grid; gap: 18px; }
.comp-list li {
  padding-left: 18px; border-left: 2px solid var(--accent);
  font-size: 14.5px; color: #aab6c4; line-height: 1.7;
}
.comp-list b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.doc-card {
  background: #fdfdfc; color: var(--ink); border-radius: var(--r);
  padding: 34px 36px; font-size: 13.5px; line-height: 1.9;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
  transform: rotate(.6deg);
}
.doc-card p { margin-bottom: 10px; }
.doc-title {
  font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 16px;
}
.doc-card b { color: var(--accent); }
.doc-note { color: var(--ink-2); font-size: 12.5px; margin-top: 14px; }

/* 投稿适配：左图右文 */
.detail { padding: 96px 0; background: #fff; border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.detail-shot img {
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 20px 50px -24px rgba(28, 43, 58, .25);
}
.detail-copy p { color: var(--ink-2); margin-top: 16px; font-size: 15.5px; }

/* 定价 */
.pricing { padding: 96px 0; }
.plans {
  margin-top: 48px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch;
}
.plan {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 26px 24px; position: relative; display: flex; flex-direction: column;
}
.plan.hot { border-color: var(--accent); box-shadow: 0 16px 40px -22px rgba(191, 68, 48, .45); }
.plan-tag {
  position: absolute; top: -12px; left: 22px; background: var(--accent);
  color: #fff; font-size: 12px; padding: 2px 12px; border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 16px; }
.plan-price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px;
  font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.plan-note { font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan ul li { padding-left: 16px; position: relative; }
.plan ul li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* 尾部 CTA + 页脚 */
.final {
  padding: 90px 0; background: #fff; border-top: 1px solid var(--line);
  text-align: center;
}
.final p { color: var(--ink-2); margin: 14px 0 28px; }
.foot { border-top: 1px solid var(--line); padding: 56px 0 0; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 44px;
}
.foot-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 8px; }
.foot-col { display: grid; gap: 8px; font-size: 14px; align-content: start; }
.foot-col b { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.foot-col a:hover { color: var(--accent); }
.foot-col span { color: var(--ink-2); }
.foot-base {
  border-top: 1px solid var(--line); padding: 18px 28px 24px;
  font-size: 13px; color: var(--ink-2);
}

/* 滚动浮现（尊重减少动态偏好） */
/* 仅当 JS 就位(html.js)才隐藏待现元素，JS 失效时内容始终可见 */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* 移动端塌缩 */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .matrix .cell, .matrix .cell.x { grid-column: span 1; }
  .matrix .cell.orch { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 767px) {
  .hero { padding-top: 40px; }
  .hero-grid, .comp-grid, .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .browser { width: 100%; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: none; border-top: 1px solid var(--line); padding: 14px 4px 10px; }
  .matrix { grid-template-columns: 1fr; }
  .matrix .cell, .matrix .cell.x, .matrix .cell.orch { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .detail-grid .detail-shot { order: 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-cta .ghost { display: none; }
}
