/* roulang page: index */
:root {
  --lilac: #5c3d78;
  --lilac-deep: #3e2956;
  --lilac-soft: #f3eaf8;
  --ink: #24182f;
  --text: #2c2636;
  --muted: #655d72;
  --calyx: #2f8f86;
  --calyx-soft: #e7f5f2;
  --apricot: #c98445;
  --apricot-soft: #fbf1e6;
  --bg: #f5f2f8;
  --bg-alt: #ebe4f2;
  --paper: #fffcff;
  --line: #ddd4e8;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(36, 24, 47, .07);
  --header: 74px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "思源黑体", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lilac-deep); text-decoration: none; }
a:hover { color: var(--lilac); }
p { margin: 0 0 .75em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; line-height: 1.35; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #e4d4f2; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(92, 61, 120, .45); outline-offset: 2px; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 8px; z-index: 80;
}
.skip:focus { top: 8px; color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(36, 24, 47, .04);
}
.bar {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--lilac); }
.mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { font-size: 15px; line-height: 1.3; font-weight: 700; }
.brand-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.top-search { display: flex; gap: 8px; }
.top-search input, .find-form input[type="search"] {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0 14px; box-shadow: none;
}
.top-search input:focus, .find-form input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(92, 61, 120, .18); outline: none;
}
.head-tools { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.head-nav { display: flex; gap: 6px; }
.nav-a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--radius); color: var(--text); border: 1px solid transparent;
}
.nav-a:hover { background: var(--lilac-soft); color: var(--lilac); }
.nav-a.is-active { background: var(--lilac-soft); color: var(--lilac); box-shadow: inset 0 -2px 0 var(--lilac); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 8px 12px; color: var(--text); }
.seg button:hover { background: var(--lilac-soft); }
.seg button.is-on, .seg button[aria-pressed="true"] { background: var(--lilac); color: #fff; }
.seg button.is-on:hover { background: var(--lilac-deep); color: #fff; }
.seg button:disabled { opacity: .45; cursor: not-allowed; background: #f6f4f8; }
.icon-btn {
  display: none; width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--lilac); color: var(--lilac); }
.icon-btn:active { transform: translateY(1px); }
.doc-layout { display: flex; align-items: flex-start; }
.doc-nav {
  width: 248px; flex: 0 0 248px; position: sticky; top: var(--header);
  height: calc(100vh - var(--header)); overflow: auto;
  background: #f8f5fb; border-right: 1px solid var(--line); padding: 22px 14px 40px;
}
.side-title { font-size: 13px; color: var(--muted); margin: 0 10px 10px; }
.doc-link {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--text);
  border-left: 3px solid transparent; margin-bottom: 4px;
}
.doc-link:hover { background: #fff; color: var(--lilac); }
.doc-link.is-current { background: var(--lilac-soft); color: var(--lilac); border-left-color: var(--lilac); font-weight: 700; }
.doc-body { flex: 1; min-width: 0; }
.wrap { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.block { padding: 72px 0; }
#board { background: #f7f4fa; padding: 28px 0 36px; }
#retrieve, #compare, #scenes, #assure, #faq { background: var(--paper); }
#matrix, #specs, #channel, #check, #demand { background: var(--bg-alt); }
#chapters, #miles, #news, #quick { background: #f7f4fa; }
.section-head { margin-bottom: 22px; text-align: left; }
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.lead { max-width: 68ch; color: var(--text); font-size: 16px; }
.board-panel {
  position: relative; overflow: hidden; color: #f6f1fb;
  background-color: #22182e;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid #3c2d50; border-radius: 16px; padding: 36px 34px 28px;
  box-shadow: var(--shadow);
}
.board-copy { position: relative; z-index: 1; min-height: 230px; padding-right: 210px; }
.board-panel h1 { font-size: 36px; color: #fff; max-width: 16em; }
.sub { margin: 12px 0; color: #f0c39a; font-size: 18px; line-height: 1.6; }
.board-lead { color: #e6dced; max-width: 62ch; }
.board-watermark { position: absolute; right: 8px; top: 18px; width: 190px; opacity: .28; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lilac); color: #fff; box-shadow: 0 8px 16px rgba(92, 61, 120, .22); }
.btn-primary:hover { background: var(--lilac-deep); color: #fff; }
.btn-line-light { background: transparent; color: #f7f2fb; border-color: rgba(247,242,251,.45); }
.btn-line-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-line { background: #fff; color: var(--lilac); border-color: #cbb6de; }
.btn-line:hover { background: var(--lilac-soft); color: var(--lilac-deep); }
.chips { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.chip {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 14px 14px 12px;
}
.chip-k { display: block; color: #cbbfdb; font-size: 13px; }
.chip-v { display: block; color: #fff; font-size: 24px; line-height: 1.3; margin: 4px 0; }
.chip span:last-child { color: #ddd2ea; font-size: 13px; line-height: 1.55; }
.metric-note { position: relative; z-index: 1; margin: 14px 0 0; color: #cbbfdb; font-size: 13px; }
.find-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: var(--radius); padding: 8px 14px;
}
.chip-btn:hover { border-color: var(--lilac); color: var(--lilac); }
.chip-btn.is-on { background: var(--lilac-soft); border-color: var(--lilac); color: var(--lilac); box-shadow: inset 3px 0 0 var(--lilac); }
.find-status { min-height: 1.5em; color: var(--calyx); margin: 10px 0 0; }
.matrix { display: grid; grid-template-columns: 1.35fr 1fr .9fr; grid-template-areas: "full zh sub" "full chapter clear" "watch watch clear"; gap: 14px; }
.t-full { grid-area: full; }
.t-zh { grid-area: zh; }
.t-sub { grid-area: sub; }
.t-chapter { grid-area: chapter; }
.t-clear { grid-area: clear; }
.t-watch { grid-area: watch; }
.tile, .scene, .spec-item, .channel-card, .step, .assure-item, .node, .news-item, .mile-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tile { padding: 18px 18px 16px; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(36, 24, 47, .1); }
.t-full { background: #2a2038; color: #f6f1fb; border-color: #3d3150; }
.t-full h3, .t-full p { color: #f6f1fb; }
.tile h3 { font-size: 22px; margin: 8px 0; }
.tile p, .scene p, .spec-item p, .step p, .assure-item p, .node p { margin: 0; color: var(--text); }
.t-full p { color: #e5dced; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px;
  border-radius: var(--radius); border: 1px solid #ddcfee; background: var(--lilac-soft);
  color: var(--lilac); font-size: 12px;
}
.tag-calyx { color: #1d6d66; background: var(--calyx-soft); border-color: #b7e0d8; }
.tag-apricot { color: #8a5a2a; background: var(--apricot-soft); border-color: #f0d2b0; }
.tag-ink { color: #f0c39a; background: transparent; border-color: rgba(240,195,154,.45); }
.chapter-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.node { padding: 16px; scroll-snap-align: start; min-height: 168px; }
.node-no { font-size: 13px; color: var(--calyx); font-weight: 700; }
.node h3 { font-size: 20px; margin: 6px 0 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.col-full { border-top: 4px solid var(--lilac); }
.col-clip { border-top: 4px solid var(--apricot); }
.compare.is-full .col-clip, .compare.is-clip .col-full { opacity: .48; }
.col h3 { font-size: 24px; margin-bottom: 8px; }
.kv { display: grid; gap: 10px; margin: 14px 0; }
.kv div { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.kv strong { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.meter { height: 8px; background: #efeaf4; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--lilac); }
.col-clip .meter span { background: var(--apricot); }
.path { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.path li { background: var(--lilac-soft); color: var(--lilac-deep); border-radius: 8px; padding: 2px 8px; }
.col-clip .path li { background: var(--apricot-soft); color: #8a5a2a; }
.spec-item, .assure-item, .step { padding: 18px; height: 100%; }
.spec-item h3, .assure-item h3, .step h3 { font-size: 20px; margin: 8px 0; }
.timeline { margin-left: 10px; border-left: 2px solid #d9cce8; }
.mile { position: relative; padding: 0 0 26px 28px; }
.mile::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 4px #efe8f6;
}
.mile time { color: var(--calyx); font-size: 14px; font-weight: 700; }
.mile h3 { font-size: 20px; margin: 4px 0 6px; }
.scene-grid { display: grid; grid-template-columns: 1.45fr 1fr .82fr; gap: 14px; }
.scene { padding: 18px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.scene:nth-child(2) { background: #2a2038; border-color: #3d3150; }
.scene:nth-child(2) h3, .scene:nth-child(2) p { color: #f6f1fb; }
.scene:nth-child(3) { background: #fbf7f2; }
.scene-img { width: 92px; height: 92px; margin-bottom: 12px; }
.channel-card { display: grid; grid-template-columns: 148px 1fr auto; gap: 18px; align-items: center; padding: 22px; }
.channel-index { font-size: 42px; color: var(--lilac); font-weight: 700; line-height: 1; }
.news-list { border-top: 1px solid var(--line); }
.news-item { padding: 18px 12px; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.news-item.is-hit { background: #fbf1e6; border-radius: var(--radius); }
.news-item time { color: var(--muted); font-size: 13px; }
.news-item h3 { font-size: 20px; margin: 4px 0; }
.news-item a:hover { color: var(--lilac); }
.step-no { width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: var(--lilac); color: #fff; font-weight: 700; }
.steps .cell:nth-child(3) .step-no { background: var(--calyx); }
.steps .cell:nth-child(4) .step-no { background: var(--apricot); }
.qa { border-top: 1px solid var(--line); padding: 16px 0; }
.qa dt { font-weight: 700; color: var(--ink); }
.qa dd { margin: 4px 0 0; }
.faq-acc.accordion { background: transparent; border: 0; margin: 0; }
.faq-acc .accordion-item { margin-bottom: 10px; border: 0; }
.faq-acc .accordion-title {
  font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 42px 14px 16px;
}
.faq-acc .accordion-title:hover, .faq-acc .accordion-title:focus { background: var(--lilac-soft); color: var(--lilac-deep); }
.faq-acc .accordion-item.is-active .accordion-title { border-color: var(--lilac); box-shadow: inset 3px 0 0 var(--lilac); }
.faq-acc .accordion-content { border: 1px solid var(--line); border-top: 0; background: #fff; color: var(--text); padding: 4px 16px 14px; border-radius: 0 0 var(--radius) var(--radius); }
.faq-acc .accordion-content p { margin: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 14px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.form-note { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); }
.form-note.is-show { display: block; }
.note-ok { background: var(--calyx-soft); color: #145e58; }
.note-err { background: var(--apricot-soft); color: #7a4a1e; }
.site-footer { background: #24182f; color: #e6dced; padding: 42px 0 28px; }
.site-footer h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.site-footer p, .site-footer li { color: #cbbfdb; }
.site-footer a { color: #f4ecfb; }
.site-footer a:hover { color: #f0c39a; }
.foot-links a { display: inline-flex; padding: 4px 0; border-bottom: 1px solid transparent; }
.foot-links a:hover { border-bottom-color: #f0c39a; }
.legal { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.lilac-canvas { background: #f7f4fa; width: min(320px, 88vw); padding: 18px 14px 32px; }
.canvas-title { margin: 28px 8px 10px; color: var(--muted); font-size: 13px; }
.close-button { color: var(--ink); font-size: 28px; }
.is-hit { outline: 2px solid var(--apricot); }
@media (max-width: 1024px) {
  .doc-nav { display: none; }
  .icon-btn { display: inline-flex; }
  .bar { grid-template-columns: 1fr auto; }
  .head-nav, .ver-switch, .lang-switch, .top-search { display: none; }
  body.search-open .tool-cluster {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; gap: 10px; box-shadow: var(--shadow);
  }
  body.search-open .top-search, body.search-open .ver-switch, body.search-open .lang-switch { display: flex; }
  .site-header { position: sticky; }
  .tool-cluster { position: static; }
  .section-head h2 { font-size: 26px; }
  .board-panel h1 { font-size: 30px; }
}
@media (max-width: 768px) {
  .chips, .steps .grid-x { }
  .chips { grid-template-columns: 1fr 1fr; }
  .matrix { grid-template-columns: 1fr 1fr; grid-template-areas: "full full" "zh chapter" "sub clear" "watch watch"; }
  .compare, .scene-grid, .channel-card { grid-template-columns: 1fr; }
  .board-copy { padding-right: 0; min-height: 0; }
  .board-watermark { position: static; width: 120px; opacity: .9; margin-bottom: 8px; }
  .chapter-rail { grid-auto-flow: row; grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  .block { padding: 52px 0; }
  .find-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bar { width: calc(100% - 20px); gap: 8px; }
  .brand-name { font-size: 13px; }
  .chips, .matrix, .scene-grid, .compare { grid-template-columns: 1fr; }
  .matrix { grid-template-areas: "full" "zh" "chapter" "sub" "clear" "watch"; }
  .board-panel { padding: 20px 14px; }
  .board-panel h1 { font-size: 26px; }
  .btn, .chip-btn, .seg { width: 100%; }
  .board-actions, .head-tools { width: 100%; }
  .seg button { flex: 1; }
  .wrap { width: calc(100% - 24px); }
  .section-head h2 { font-size: 23px; }
  .channel-index { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* roulang page: category1 */
:root {
 --lilac: #5c3d78;
 --lilac-deep: #3e2956;
 --lilac-soft: #f3eaf8;
 --ink: #24182f;
 --text: #2c2636;
 --muted: #655d72;
 --calyx: #2f8f86;
 --calyx-soft: #e7f5f2;
 --apricot: #c98445;
 --apricot-soft: #fbf1e6;
 --bg: #f5f2f8;
 --bg-alt: #ebe4f2;
 --paper: #fffcff;
 --line: #ddd4e8;
 --radius: 12px;
 --shadow: 0 10px 28px rgba(36, 24, 47, .07);
 --header: 74px;
 --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "思源黑体", sans-serif;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 font-family: var(--font);
 font-size: 16px;
 line-height: 1.85;
 color: var(--text);
 background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button {
 cursor: pointer;
 background: transparent;
 color: var(--text);
 border: 0;
 border-radius: var(--radius);
 box-shadow: none;
 margin: 0;
 padding: 0;
 line-height: inherit;
 text-transform: none;
 letter-spacing: 0;
}
button:hover, button:focus, .button:hover, .button:focus { background: transparent; color: inherit; }
a { color: var(--lilac-deep); text-decoration: none; }
a:hover { color: var(--lilac); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); line-height: 1.35; font-weight: 700; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #e4d4f2; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(92, 61, 120, .45); outline-offset: 2px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
 position: sticky; top: 0; z-index: 40;
 background: var(--paper);
 border-bottom: 1px solid var(--line);
 box-shadow: 0 8px 20px rgba(36, 24, 47, .04);
}
.header-bar { min-height: var(--header); display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); flex: 0 1 auto; }
.brand:hover { color: var(--lilac); }
.logo-mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand-name { font-size: 15px; line-height: 1.3; font-weight: 700; }
.brand-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.top-search { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
.top-search input {
 width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
 background: #fff; padding: 0 14px; box-shadow: none; margin: 0;
}
.top-search input:focus, .field input:focus, .field select:focus, .field textarea:focus {
 border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(92, 61, 120, .18); outline: none;
}
.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 8px 12px; color: var(--text); min-height: 40px; }
.seg button:hover { background: var(--lilac-soft); color: var(--lilac); }
.seg button.is-on, .seg button[aria-pressed="true"] { background: var(--lilac); color: #fff; }
.seg button.is-on:hover { background: var(--lilac-deep); color: #fff; }
.icon-btn {
 display: none; width: 42px; height: 42px; border-radius: var(--radius);
 border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; flex: 0 0 42px;
}
.icon-btn:hover { border-color: var(--lilac); color: var(--lilac); background: var(--lilac-soft); }
.icon-btn:active { transform: translateY(1px); }
.doc-drawer .icon-btn, .drawer-close { display: inline-flex; }
.doc-shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--header)); }
.doc-nav {
 width: 248px; flex: 0 0 248px; position: sticky; top: var(--header);
 height: calc(100vh - var(--header)); overflow: auto;
 background: #f8f5fb; border-right: 1px solid var(--line); padding: 22px 14px 40px;
}
.side-title { font-size: 13px; color: var(--muted); margin: 14px 10px 10px; }
.side-title:first-child { margin-top: 0; }
.doc-link {
 display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--text);
 border: 1px solid transparent; margin-bottom: 4px; line-height: 1.45;
}
.doc-link:hover { background: var(--lilac-soft); color: var(--lilac); }
.doc-link:active { transform: translateY(1px); }
.doc-link.is-active, .doc-link.is-current {
 background: var(--lilac-soft); color: var(--lilac); box-shadow: inset 3px 0 0 var(--lilac);
}
.doc-body { flex: 1; min-width: 0; background: var(--bg); }
.doc-drawer { background: #f8f5fb; padding: 18px 14px 28px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.drawer-head strong { color: var(--ink); font-size: 14px; }
section { scroll-margin-top: 92px; }
.band { background: var(--paper); padding: 64px 0; }
.band-alt { background: var(--bg-alt); padding: 64px 0; }
.section-head { margin-bottom: 22px; text-align: left; max-width: 68ch; }
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.lead { max-width: 68ch; color: var(--text); font-size: 16px; }
.eyebrow { color: var(--lilac); font-size: 13px; letter-spacing: .04em; margin-bottom: 8px; }
.mast h1 { font-size: 40px; margin-bottom: 14px; }
.mast-grid { align-items: center; }
.count-line { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; color: var(--muted); }
.count-num { font-size: 40px; line-height: 1; color: var(--lilac); font-weight: 700; }
.petal-card {
 background:
  linear-gradient(#e7deef 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, #e7deef 1px, transparent 1px) 0 0 / 22px 22px,
  var(--paper);
 border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.petal-card svg { width: 100%; height: auto; }
.btn {
 display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
 padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
 transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
 text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lilac); color: #fff; box-shadow: 0 8px 16px rgba(92, 61, 120, .22); }
.btn-primary:hover, .btn-primary:focus { background: var(--lilac-deep); color: #fff; }
.btn-line { background: #fff; color: var(--lilac); border-color: #cbb6de; }
.btn-line:hover, .btn-line:focus { background: var(--lilac-soft); color: var(--lilac-deep); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-grid { display: grid; grid-template-columns: 180px 1fr; gap: 14px 18px; align-items: start; }
.filter-name { color: var(--ink); font-weight: 700; padding-top: 6px; }
.chip-btn {
 border: 1px solid var(--line); background: #fff; color: var(--text);
 border-radius: var(--radius); padding: 8px 14px; min-height: 40px;
}
.chip-btn:hover { border-color: var(--lilac); color: var(--lilac); background: #fff; }
.chip-btn.is-on { background: var(--lilac-soft); border-color: var(--lilac); color: var(--lilac); box-shadow: inset 3px 0 0 var(--lilac); }
.doc-entry, .diff-board, .pick-card, .check-list, .more-panel, .update-card, .qa-acc {
 background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.doc-entry { padding: 18px 18px 16px; margin-bottom: 14px; }
.doc-entry:target { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(92, 61, 120, .15); }
.entry-side { border-right: 1px solid var(--line); padding-right: 14px; }
.meta-k { color: var(--muted); font-size: 13px; margin-top: 10px; }
.meta-v { color: var(--ink); font-weight: 700; }
.entry-main h3 { font-size: 22px; margin: 8px 0; }
.entry-main p { color: var(--text); margin-bottom: 12px; }
.tag {
 display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; margin: 0 6px 6px 0;
 border-radius: var(--radius); border: 1px solid #ddcfee; background: var(--lilac-soft);
 color: var(--lilac); font-size: 12px;
}
.tag-calyx { color: #1d6d66; background: var(--calyx-soft); border-color: #b7e0d8; }
.tag-apricot { color: #8a5a2a; background: var(--apricot-soft); border-color: #f0d2b0; }
.text-link { color: var(--lilac); font-weight: 700; border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: var(--lilac); color: var(--lilac-deep); }
.diff-board { padding: 8px 8px 4px; }
.diff-line { padding: 16px 18px 18px; border-bottom: 1px solid var(--line); }
.diff-line:last-child { border-bottom: 0; }
.diff-name { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.diff-track { height: 36px; background: #f6f2f8; border-radius: var(--radius); overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.diff-track span { display: flex; align-items: center; height: 100%; padding: 0 12px; color: #fff; font-size: 13px; white-space: nowrap; }
.bar-full { width: 100%; background: var(--lilac); }
.bar-long { width: 84%; background: var(--lilac-deep); }
.bar-mid { width: 56%; background: var(--calyx); }
.bar-short { width: 34%; background: var(--apricot); }
.pick-card { padding: 22px; height: 100%; position: relative; overflow: hidden; }
.pick-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lilac); }
.pick-card.calyx-edge::before { background: var(--calyx); }
.pick-card h3 { font-size: 26px; margin: 10px 0 12px; }
.pick-card p { color: var(--text); }
.pick-card .btn { margin-top: 16px; }
.check-list { padding: 8px 0; }
.check-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.check-list li:last-child { border-bottom: 0; }
.check-list li span.num {
 width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
 background: var(--lilac-soft); color: var(--lilac); font-weight: 700;
}
.check-list strong { display: block; color: var(--ink); }
.check-list p { color: var(--text); }
.more-panel { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.more-panel h2 { font-size: 26px; margin-bottom: 6px; }
.update-card { padding: 20px 22px; margin-bottom: 14px; }
.update-card h3 { font-size: 18px; margin-bottom: 6px; }
.time-flag { display: inline-flex; min-height: 26px; align-items: center; padding: 0 8px; border-radius: var(--radius); background: var(--apricot-soft); color: #8a5a2a; border: 1px solid #f0d2b0; font-size: 12px; margin-bottom: 8px; }
.qa-acc { margin-top: 8px; overflow: hidden; }
.qa-acc .accordion-item { border-bottom: 1px solid var(--line); }
.qa-acc .accordion-item:last-child { border-bottom: 0; }
.qa-acc .accordion-title {
 color: var(--ink); font-weight: 700; font-size: 18px; padding: 16px 46px 16px 20px; border: 0; line-height: 1.5;
}
.qa-acc .accordion-title:hover, .qa-acc .accordion-title:focus { background: var(--lilac-soft); color: var(--lilac); }
.qa-acc .accordion-title::before { color: var(--lilac); }
.qa-acc .accordion-content { border: 0; background: transparent; color: var(--text); padding: 0 20px 16px; }
.qa-acc .is-active > .accordion-title { background: var(--lilac-soft); color: var(--lilac); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-footer { background: var(--lilac-deep); color: #e6dced; padding: 48px 0 28px; }
.site-footer h2 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.site-footer p { color: #e6dced; }
.foot-links li { margin: 6px 0; }
.site-footer a { color: #f7f2fb; }
.site-footer a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 22px; padding-top: 16px; color: #cbbfdb; font-size: 14px; }
.empty-note { display: none; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); margin-bottom: 12px; }
.empty-note.is-show { display: block; }
@media (max-width: 1024px) {
 .doc-nav { display: none; }
 .menu-btn { display: inline-flex; }
 .mast h1 { font-size: 34px; }
 .section-head h2, .more-panel h2 { font-size: 26px; }
 .filter-grid { grid-template-columns: 1fr; gap: 8px; }
 .filter-name { padding-top: 0; }
}
@media (max-width: 768px) {
 .header-bar { flex-wrap: wrap; align-items: center; }
 .brand { max-width: calc(100% - 110px); }
 .top-search { display: none; order: 4; width: 100%; flex: 1 0 100%; }
 .site-header.is-search .top-search { display: flex; }
 .search-toggle { display: inline-flex; }
 .header-tools { margin-left: auto; }
 .band, .band-alt { padding: 42px 0; }
 .entry-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 12px; }
 .more-panel { flex-direction: column; align-items: flex-start; }
 .diff-track span { font-size: 12px; }
}
@media (max-width: 520px) {
 .wrap { width: min(1080px, calc(100% - 28px)); }
 .brand-name { font-size: 13px; }
 .mast h1 { font-size: 28px; }
 .header-tools { width: 100%; margin-left: 0; justify-content: space-between; }
 .seg { flex: 1; }
 .seg button { flex: 1; padding-left: 6px; padding-right: 6px; }
 .btn, .top-search .btn { width: 100%; }
 .count-num { font-size: 32px; }
 .pick-card h3, .entry-main h3 { font-size: 20px; }
 .check-list li { grid-template-columns: 36px 1fr; padding: 14px; }
 .bar-full, .bar-long, .bar-mid, .bar-short { width: 100%; }
}
