:root {
  --plum-950: #2d1832;
  --plum-800: #4b2a55;
  --plum-650: #6d3e77;
  --mint-50: #f1fff8;
  --mint-150: #d5f6e6;
  --mint-350: #9ed9bd;
  --ink: #211c24;
  --muted: #665d69;
  --paper: #fffdf9;
  --line: #d9cedb;
  --radius: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; line-height: 1.72; }
a { color: var(--plum-800); text-underline-offset: 0.18em; }
a:hover { color: var(--plum-650); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; min-width: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 249, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--plum-950); font-weight: 800; text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.wordmark span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--plum-950); color: var(--mint-150); font-size: 0.76rem; }
.compact-nav ul, .site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.compact-nav a { display: block; padding: 8px 0; font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--plum-800); border-radius: 999px; padding: 8px 14px; background: var(--paper); color: var(--plum-800); cursor: pointer; }
.page-hero { background: linear-gradient(135deg, var(--plum-950), #5d3565 64%, #3a745f); color: #fff; }
.hero-copy { padding-block: clamp(54px, 8vw, 104px); }
.eyebrow, .section-heading > span { display: block; margin-bottom: 12px; color: var(--mint-350); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.page-hero h1 { max-width: 920px; margin: 0; font-size: clamp(2.2rem, 7vw, 5.9rem); line-height: 1.03; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.page-hero p { max-width: 760px; margin: 24px 0 0; color: #f2eaf4; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta span, .status-chip { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 10px; font-size: .78rem; }
.section-block { padding-block: clamp(62px, 8vw, 108px); }
.section-block.tint { background: var(--mint-50); }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading > span { color: var(--plum-650); }
.section-heading h2 { margin: 0; color: var(--plum-950); font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.13; letter-spacing: -0.03em; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.signal-board { background: #f3edf5; border-bottom: 1px solid var(--line); }
.signal-grid, .split-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.signal-grid { padding-block: clamp(44px, 6vw, 78px); }
.signal-copy h2 { margin: 0; color: var(--plum-950); font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.12; }
.signal-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0; color: var(--muted); font-size: .9rem; }
.signal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-plum { background: var(--plum-650); }
.dot-mint { background: var(--mint-350); }
.dot-line { background: #9f94a2; }
.signal-figure { margin: 0; border: 1px solid #cbbbcf; border-radius: 24px; background: #fff; box-shadow: 0 18px 48px rgba(45,24,50,.12); }
.signal-figure img { width: 100%; border-radius: 23px 23px 0 0; aspect-ratio: 1200 / 630; object-fit: cover; }
.signal-figure figcaption { padding: 12px 16px 16px; color: var(--muted); font-size: .78rem; }
.action-button, .secondary-button { border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; font-weight: 750; }
.action-button { background: var(--plum-950); color: #fff; }
.secondary-button { border: 1px solid var(--plum-800); background: transparent; color: var(--plum-800); }
.demo-note { margin-top: 14px; border-left: 4px solid var(--mint-350); padding: 12px 16px; background: #fff; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 3%; right: 3%; height: 2px; background: linear-gradient(90deg, var(--plum-650), var(--mint-350)); }
.timeline li { position: relative; min-width: 0; padding: 58px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); counter-increment: steps; }
.timeline li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 4px; left: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum-950); color: var(--mint-150); font-size: .78rem; font-weight: 800; }
.timeline p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.file-grid.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: 0 8px 22px rgba(45,24,50,.05); }
.file-number { color: var(--plum-650); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.file-card h3 { margin: 10px 0 8px; color: var(--plum-950); font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.file-card h3 a { text-decoration: none; }
.file-card p { color: var(--muted); font-size: .9rem; }
.text-link { font-size: .86rem; font-weight: 750; }
.note-panel, .article-meta, .inline-callout, .tool-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; min-width: 0; }
.note-panel h2, .article-meta strong { color: var(--plum-950); font-size: 1.18rem; }
.note-panel ul { padding-left: 1.25rem; }
.tag-cloud, .link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a, .link-row a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: #fff; text-decoration: none; font-size: .88rem; overflow-wrap: anywhere; }
.source-note { background: #f4edf4; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-grid article { border-left: 3px solid var(--mint-350); padding: 8px 18px; }
.faq-grid h3 { color: var(--plum-950); }
.article-layout { align-items: start; }
.article-meta { position: sticky; top: 96px; display: grid; gap: 9px; }
.article-meta p { margin: 0; color: var(--muted); font-size: .88rem; }
.inline-callout { margin-top: 24px; border-color: var(--mint-350); }
.inline-callout span { display: block; margin-top: 5px; color: var(--plum-800); font-weight: 800; }
.tool-panel { max-width: 860px; margin-inline: auto; }
.check-list { display: grid; gap: 10px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.check-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum-650); flex: 0 0 auto; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tool-actions output { color: var(--plum-800); font-weight: 750; }
.narrow { max-width: 820px; }
.site-footer { padding-block: 48px; border-top: 1px solid var(--line); background: var(--plum-950); color: #eee5f0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 32px; }
.site-footer p { max-width: 480px; color: #cfc4d1; }
.site-footer a { color: var(--mint-150); }
.site-footer .status-chip { border-color: #75627a; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .file-grid, .file-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-grid, .split-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-meta { position: static; }
}
@media (max-width: 720px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .header-row { min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .compact-nav { position: absolute; top: 60px; left: 12px; right: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--paper); box-shadow: 0 16px 36px rgba(45,24,50,.15); }
  .compact-nav[data-open="false"] { display: none; }
  .compact-nav ul { display: grid; gap: 0; }
  .compact-nav a { padding: 10px 8px; }
  .page-hero h1 { font-size: clamp(2.1rem, 13vw, 4.2rem); }
  .hero-copy { padding-block: 50px; }
  .section-block { padding-block: 58px; }
  .file-grid, .file-grid.dense, .faq-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .file-card, .note-panel, .article-meta, .tool-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
