/* roulang page: index */
:root {
  --bg: #F4F0E8;
  --paper: #FBF8F3;
  --ink: #1E1A17;
  --strong: #3B2A33;
  --muted: #5C564F;
  --accent: #D06A3A;
  --moss: #4E7A6D;
  --apricot: #E7D7C4;
  --line: #E4DDD2;
  --danger: #8A3E2A;
  --radius: 2px;
  --space: 80px;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--strong);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
h1 { font-size: 40px; margin-bottom: 12px; }
h2 { font-size: 30px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin-bottom: 1.15em; }
a { color: var(--strong); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--space) 0; }
.bg-apricot { background: var(--apricot); }
.lead { max-width: 46em; margin-bottom: 28px; color: var(--ink); }
.sub { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 232, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: var(--serif);
  color: var(--strong);
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.3;
  flex: 0 1 auto;
}
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 18px 14px 16px;
  color: var(--strong);
  font-size: 15px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 10px;
  height: 1px; width: 0;
  background: currentColor;
  transition: width 200ms ease;
}
.primary-nav a:hover::after { width: calc(100% - 28px); }
.primary-nav a.is-active::after {
  width: calc(100% - 28px);
  height: 2px;
  background: var(--moss);
}
.tab-ico { display: none; width: 22px; height: 22px; }
.age-mark {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--strong);
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  padding: 2px 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent); color: #FBF8F3; border-color: var(--accent); }
.btn-secondary { color: var(--moss); border-color: var(--moss); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { border-color: var(--strong); }
.btn-secondary:hover { color: var(--strong); border-color: var(--strong); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  border-color: var(--line);
  background: var(--line);
  color: var(--muted);
  transform: none;
}
.text-link { position: relative; display: inline-block; color: var(--strong); }
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 200ms ease;
}
.text-link:hover::after { width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.board-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric { background: var(--paper); padding: 22px 20px 18px; }
.metric-k { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.num {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric-d { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.band { padding: 26px 0; }
.band-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
.lesson-no {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--strong);
  letter-spacing: -0.04em;
}
.band h2 { font-size: 24px; margin-bottom: 8px; }
.band p { margin-bottom: 0.4em; }
.matrix {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}
.matrix-side { display: grid; gap: 16px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.panel:hover { border-color: var(--moss); }
.tag {
  display: inline-block;
  color: var(--moss);
  border: 1px solid var(--moss);
  border-radius: var(--radius);
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.scene-list { border-bottom: 1px solid var(--line); }
.scene {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.scene h3 { margin: 0; font-size: 18px; }
.scene p { margin: 0; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.compare-table thead th {
  font-family: var(--serif);
  color: var(--strong);
  background: var(--apricot);
}
.compare-table tbody th { color: var(--strong); width: 22%; background: var(--paper); }
.compare-stack { display: none; }
.stack-block {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper);
  padding: 16px 18px 6px;
}
.stack-block:last-child { border-bottom: 1px solid var(--line); }
.stack-block h3 { font-size: 18px; }
.stack-k { display: block; color: var(--moss); font-size: 13px; margin-bottom: 2px; }
.samples { display: grid; gap: 16px; }
.sample {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
}
.sample-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.sample-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.sample-k { color: var(--muted); font-size: 13px; }
.bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--apricot);
  color: var(--strong);
}
.bar.ink { background: var(--strong); color: #F4F0E8; }
.mile-wrap { position: relative; }
.mile-track {
  position: absolute;
  left: 8%; right: 8%; top: 18px;
  height: 2px;
  background: var(--line);
}
.track-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--moss);
  transition: width 400ms ease, height 400ms ease;
}
.mile-wrap.is-on .track-fill { width: 100%; }
.mile-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mile-list li { min-height: 120px; }
.dot {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--moss);
  background: var(--bg);
  color: var(--moss);
  font-family: var(--serif);
  font-size: 13px;
  margin-bottom: 12px;
}
.bg-apricot .dot { background: var(--apricot); }
.date-rail { border-left: 1px solid var(--line); margin: 8px 0 8px 8px; }
.date-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 0 0 26px 22px;
}
.date-rail li::before {
  content: "";
  position: absolute;
  left: -4px; top: 8px;
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--moss);
  border-radius: var(--radius);
}
.bg-apricot .date-rail li::before { background: var(--apricot); }
.date-rail time { color: var(--muted); font-variant-numeric: tabular-nums; }
.date-rail h3 { font-size: 20px; margin-bottom: 4px; }
.date-rail p { margin: 0; color: var(--ink); }
.date-rail.is-empty {
  border: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
  min-height: 88px;
  padding: 28px;
  color: var(--muted);
}
.date-rail.is-empty::before { content: "暂无字幕条目"; }
.more-row { margin: 8px 0 0 30px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entry-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease;
}
.entry-card:hover { transform: translateY(-2px); border-color: var(--moss); }
.entry-no {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.entry-card h3 { font-size: 28px; margin: 18px 0 10px; }
.entry-card p { margin: 0 0 auto; }
.entry-go { margin-top: 22px; color: var(--moss); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.spec-grid article:hover { border-color: var(--moss); }
.spec-grid p { margin: 0; }
.qa-list, .faq-list { display: grid; gap: 8px; }
.qa-item, .faq-item {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qa-item > button, .faq-item > button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  color: var(--strong);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.faq-item > button { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa-a, .faq-a { display: none; padding: 0 18px 16px; color: var(--ink); }
.qa-item.is-open {
  background: var(--paper);
  border-left: 2px solid var(--accent);
}
.qa-item.is-open .qa-a, .faq-item.is-open .faq-a { display: block; }
.faq-item.is-open { background: var(--apricot); }
.mark { font-family: var(--serif); color: var(--moss); }
.faq-item.is-open .mark { color: var(--accent); }
.step-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step-no {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--moss);
  line-height: 1.2;
}
.step p { margin: 0; }
.form-card {
  max-width: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.form-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--strong); }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  line-height: 1.5;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--moss); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field-error { display: block; min-height: 1.4em; margin-top: 4px; color: var(--danger); font-size: 13px; }
.form-success {
  max-width: 640px;
  border: 1px solid var(--moss);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 24px;
}
[hidden] { display: none !important; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr; gap: 32px; }
.footer-logo {
  font-family: var(--serif);
  color: var(--strong);
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.foot-links { display: grid; gap: 8px; }
.foot-links a { color: var(--ink); }
.muted { color: var(--muted); }
.copy { color: var(--muted); font-size: 14px; }
@media (max-width: 1024px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .section { padding: 64px 0; }
  h1 { font-size: 34px; }
  .board-grid { gap: 28px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .section { padding: 44px 0; }
  .header-bar { min-height: 56px; }
  .logo { font-size: 15px; }
  .age-mark { margin-left: auto; }
  .primary-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .primary-nav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 0 10px;
    font-size: 12px;
    color: var(--muted);
  }
  .primary-nav a::after { display: none; }
  .primary-nav a.is-active { color: var(--accent); }
  .tab-ico { display: block; }
  .board-grid, .matrix, .matrix-side, .entry-grid, .spec-grid, .footer-grid, .date-rail li {
    grid-template-columns: 1fr;
  }
  .matrix-side { grid-template-columns: 1fr; }
  .date-rail li { gap: 4px; }
  .mile-list { grid-template-columns: 1fr; gap: 8px; }
  .mile-track { left: 17px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .track-fill { width: 100%; height: 0; }
  .mile-wrap.is-on .track-fill { width: 100%; height: 100%; }
  .mile-list li { position: relative; padding-left: 48px; min-height: 0; }
  .dot { position: absolute; left: 0; top: 0; }
  .band-row { grid-template-columns: 72px 1fr; gap: 12px; }
  .lesson-no { font-size: 36px; }
  .site-footer { padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .metrics, .scene, .sample-row, .step { grid-template-columns: 1fr; }
  .compare-table { display: none; }
  .compare-stack { display: block; }
  .num { font-size: 34px; }
  .entry-card h3 { font-size: 24px; }
  .scene { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .entry-card, .text-link::after, .primary-nav a::after, .track-fill {
    transition: none;
  }
  .btn:hover, .entry-card:hover { transform: none; }
  .track-fill, .mile-wrap.is-on .track-fill { width: 100%; height: 100%; }
}

/* roulang page: category1 */
:root {
  --bg: #F4F0E8;
  --paper: #FBF8F3;
  --ink: #1E1A17;
  --strong: #3B2A33;
  --muted: #5C564F;
  --accent: #D06A3A;
  --moss: #4E7A6D;
  --apricot: #E7D7C4;
  --line: #E4DDD2;
  --danger: #8A3E2A;
  --radius: 2px;
  --space: 80px;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}
/* roulang page: cate-erqu */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--strong); text-decoration: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--space) 0; }
.section-paper { background: var(--paper); }
.section-apricot { background: var(--apricot); }
.lead { max-width: 46em; margin-bottom: 28px; color: var(--ink); }
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--strong);
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 { font-size: 40px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 28px; line-height: 1.35; margin: 0 0 18px; }
h3 { font-size: 20px; line-height: 1.45; margin: 0 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 240, 232, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo, .footer-logo {
  font-family: var(--serif);
  color: var(--strong);
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.logo { flex: 0 1 auto; }
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 18px 14px 16px;
  color: var(--strong);
  font-size: 15px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 200ms ease;
}
.primary-nav a:hover::after { width: calc(100% - 28px); }
.primary-nav a.is-active::after {
  width: calc(100% - 28px);
  height: 2px;
  background: var(--moss);
}
.tab-ico { width: 16px; height: 16px; display: block; flex: 0 0 auto; }
.age-mark {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0 6px;
  line-height: 1.7;
  background: transparent;
}
.header-bar .age-mark { flex: 0 0 auto; }
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
}
.tabbar a.is-active { color: var(--accent); }
.tabbar a:hover { color: var(--strong); }
.tabbar a.is-active:hover { color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent); color: #FBF8F3; border-color: var(--accent); }
.btn-secondary { color: var(--moss); border-color: var(--moss); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { border-color: var(--strong); }
.btn-secondary:hover { color: var(--strong); border-color: var(--strong); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  border-color: var(--line);
  background: var(--line);
  color: var(--muted);
  transform: none;
}
.text-link { position: relative; display: inline-block; color: var(--strong); }
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 200ms ease;
}
.text-link:hover::after { width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}
.tag {
  display: inline-block;
  color: var(--moss);
  border: 1px solid var(--moss);
  border-radius: var(--radius);
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.7;
}
.cat-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
.lesson-no {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.subhead {
  max-width: 28em;
  color: var(--muted);
  margin: 0 0 22px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.filter-label {
  font-size: 13px;
  color: var(--strong);
  margin-right: 4px;
}
.filter-bar + .filter-bar { margin-top: 8px; border-top: 0; padding-top: 0; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 3px 10px;
  line-height: 1.7;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.chip:hover { border-color: var(--moss); color: var(--strong); }
.chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--paper);
}
.entry-list { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.entry-no {
  font-family: var(--serif);
  color: var(--moss);
  font-size: 18px;
  letter-spacing: -0.03em;
  padding-top: 2px;
}
.entry-main h3 { font-size: 22px; margin: 8px 0; }
.entry-main p { color: var(--ink); }
.entry-side {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
  min-width: 112px;
}
.status {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--strong);
  border-bottom: 1px solid var(--apricot);
}
.status-ready { color: var(--moss); }
.status-compare { color: var(--accent); }
.status-catalog { color: var(--muted); }
.empty-state {
  margin-top: 16px;
  padding: 28px 22px;
  border: 1px dashed var(--line);
  background: var(--paper);
  color: var(--muted);
}
.result-strip {
  max-width: 760px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.result-strip p + p { margin-top: 8px; color: var(--muted); }
.point-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.point-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.point-grid article:hover { border-color: var(--moss); }
.narrow-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 15px;
}
.narrow-table th, .narrow-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.narrow-table thead th {
  background: var(--apricot);
  color: var(--strong);
  font-weight: 500;
}
.narrow-table tbody th {
  width: 22%;
  color: var(--strong);
  background: #F7F1E8;
  font-weight: 500;
}
.narrow-dl { display: none; gap: 12px; }
.narrow-dl > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 8px;
}
.narrow-dl dt {
  font-family: var(--serif);
  color: var(--strong);
  margin-bottom: 8px;
}
.narrow-dl dd { margin: 0 0 10px; }
.narrow-dl span {
  display: block;
  color: var(--moss);
  font-size: 13px;
}
.vtrack {
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid var(--moss);
}
.vtrack li {
  position: relative;
  padding: 0 0 28px 28px;
}
.vtrack li:last-child { padding-bottom: 0; }
.vtrack .dot {
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--moss);
  border-radius: 50%;
  background: var(--bg);
}
.vtrack h3 { font-size: 20px; }
.vtrack p { max-width: 40em; color: var(--ink); }
.rel-list { border-top: 1px solid var(--line); }
.rel-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rel-list time { color: var(--muted); font-size: 14px; padding-top: 4px; }
.rel-list h3 { font-size: 20px; }
.rel-list p { color: var(--muted); }
.back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.back-row p { max-width: 36em; margin: 0; }
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 28px;
  padding: 48px 0 56px;
}
.footer-logo { margin-bottom: 10px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.copy { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 1024px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  h1 { font-size: 36px; }
  .cat-head { grid-template-columns: 88px 1fr; gap: 20px; }
  .entry { grid-template-columns: 72px minmax(0, 1fr); }
  .entry-side { grid-column: 2; text-align: left; }
}
@media (max-width: 760px) {
  :root { --space: 44px; }
  .primary-nav { display: none; }
  .header-bar .age-mark { margin-left: auto; }
  .tabbar { display: flex; }
  body { padding-bottom: 74px; }
  .cat-head, .point-grid, .footer-grid, .rel-list li, .back-row {
    grid-template-columns: 1fr;
  }
  .lesson-no { font-size: 36px; }
  .footer-grid { padding: 36px 0 42px; }
}
@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .entry-side { grid-column: auto; }
  .narrow-table { display: none; }
  .narrow-dl { display: grid; }
  .rel-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover { transform: none; }
}

/* roulang page: category2 */
:root {
 --bg: #F4F0E8;
 --paper: #FBF8F3;
 --ink: #1E1A17;
 --strong: #3B2A33;
 --muted: #5C564F;
 --accent: #D06A3A;
 --moss: #4E7A6D;
 --apricot: #E7D7C4;
 --line: #E4DDD2;
 --danger: #8A3E2A;
 --radius: 2px;
 --space: 80px;
 --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
 --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 --max: 1120px;
}
/* roulang page: cate-sanqu */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 background: var(--bg);
 color: var(--ink);
 font-family: var(--sans);
 font-size: 16px;
 line-height: 1.75;
 letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--strong); text-decoration: none; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--space) 0; }
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border: 0;
}
.site-header {
 position: sticky;
 top: 0;
 z-index: 30;
 background: rgba(244, 240, 232, 0.96);
 border-bottom: 1px solid var(--line);
}
.header-bar {
 min-height: 64px;
 display: flex;
 align-items: center;
 gap: 20px;
}
.logo {
 font-family: var(--serif);
 color: var(--strong);
 font-size: 18px;
 letter-spacing: -0.04em;
 line-height: 1.3;
 flex: 1 1 auto;
}
.primary-nav {
 margin-left: auto;
 display: flex;
 align-items: center;
 gap: 4px;
}
.primary-nav a {
 position: relative;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 18px 14px 16px;
 color: var(--strong);
 font-size: 15px;
}
.primary-nav .tab-ico { display: none; }
.primary-nav a::after {
 content: "";
 position: absolute;
 left: 14px;
 right: 14px;
 bottom: 10px;
 height: 1px;
 width: 0;
 background: currentColor;
 transition: width 200ms ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: calc(100% - 28px); }
.primary-nav a.is-active { color: var(--strong); }
.primary-nav a.is-active::after {
 width: calc(100% - 28px);
 height: 2px;
 background: var(--moss);
}
.age-mark {
 flex: 0 0 auto;
 margin: 0;
 color: var(--muted);
 font-size: 12px;
 letter-spacing: 0.06em;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 0 6px;
 line-height: 1.7;
}
.tab-ico { width: 18px; height: 18px; display: block; }
.bottom-tab {
 display: none;
 position: fixed;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 40;
 background: rgba(251, 248, 243, 0.98);
 border-top: 1px solid var(--line);
 padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottom-tab a {
 flex: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 2px;
 min-height: 48px;
 color: var(--strong);
 font-size: 12px;
 letter-spacing: 0.02em;
}
.bottom-tab a.is-active { color: var(--accent); }
.bottom-tab a:active { color: var(--accent); }
h1, h2, h3, .zone-name, .fine-dl dt, .qa-item > button {
 font-family: var(--serif);
 color: var(--strong);
 letter-spacing: -0.04em;
 font-weight: 600;
}
h1 { font-size: 44px; line-height: 1.25; margin: 8px 0 10px; }
.section h2 { font-size: 32px; line-height: 1.3; margin: 0 0 12px; }
.eyebrow, .subhead { color: var(--muted); }
.subhead { font-size: 16px; margin-bottom: 36px; max-width: 28em; }
.note { color: var(--ink); max-width: 40em; margin-bottom: 8px; }
.split-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.split-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 28px;
}
.split-col {
 padding: 22px 22px 8px;
 border-top: 2px solid var(--strong);
 background: transparent;
}
.split-col.alt { border-top-color: var(--moss); }
.zone-name { font-size: 28px; line-height: 1.3; margin-bottom: 10px; }
.split-col p { margin: 0; }
.sum-sec { background: var(--bg); }
.sum-list { border-bottom: 1px solid var(--line); margin-top: 28px; }
.sum-bar {
 display: grid;
 grid-template-columns: 220px 1fr;
 gap: 12px 32px;
 padding: 28px 0;
 border-top: 1px solid var(--line);
 align-items: start;
}
.sum-bar h3 { font-size: 24px; margin: 0; line-height: 1.35; }
.sum-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 8px 22px;
 align-items: baseline;
}
.sum-meta span { color: var(--muted); }
.num {
 font-family: var(--serif);
 color: var(--accent);
 font-size: 32px;
 letter-spacing: -0.04em;
 line-height: 1;
 margin-right: 4px;
}
.sum-copy { grid-column: 2; margin: 0; }
.meter {
 grid-column: 2;
 height: 2px;
 background: var(--apricot);
 margin-top: 4px;
}
.meter > span {
 display: block;
 height: 100%;
 width: 0;
 background: var(--moss);
 transition: width 400ms ease;
}
.detail-sec { background: #EFE6DA; }
.fine-dl { margin-top: 28px; }
.fine-dl > div {
 display: grid;
 grid-template-columns: 180px 1fr;
 gap: 18px;
 padding: 18px 0;
 border-bottom: 1px solid var(--line);
}
.fine-dl dt { font-size: 18px; line-height: 1.5; }
.fine-dl dd { margin: 0; }
.scene-sec { background: var(--paper); }
.scene-rows { margin-top: 8px; border-top: 1px solid var(--line); }
.scene-row {
 display: grid;
 grid-template-columns: 140px 1fr;
 gap: 20px;
 padding: 22px 0;
 border-bottom: 1px solid var(--line);
 align-items: start;
}
.scene-label {
 margin: 0;
 color: var(--moss);
 font-family: var(--serif);
 font-size: 18px;
 letter-spacing: -0.03em;
}
.scene-row p { margin: 0; }
.news-sec { background: var(--bg); }
.news-rail {
 margin-top: 28px;
 border-left: 1px solid var(--moss);
}
.news-rail li {
 position: relative;
 display: grid;
 grid-template-columns: 128px 1fr;
 gap: 16px;
 padding: 18px 0 22px 22px;
}
.news-rail li::before {
 content: "";
 position: absolute;
 left: -4px;
 top: 28px;
 width: 7px;
 height: 7px;
 background: var(--moss);
 border-radius: 50%;
}
.news-rail time {
 color: var(--muted);
 font-variant-numeric: tabular-nums;
}
.news-rail h3 { font-size: 20px; line-height: 1.45; margin: 0 0 6px; font-weight: 600; }
.news-rail p { margin: 0; color: var(--ink); }
.qa-sec { background: var(--paper); }
.qa-list { display: grid; gap: 8px; margin-top: 24px; }
.qa-item {
 background: transparent;
 border: 1px solid var(--line);
 border-radius: var(--radius);
}
.qa-item > button {
 width: 100%;
 text-align: left;
 background: transparent;
 border: 0;
 padding: 16px 18px;
 color: var(--strong);
 font-size: 18px;
 letter-spacing: -0.03em;
 line-height: 1.45;
}
.qa-item > button:hover { color: var(--accent); }
.qa-item > button:active { color: var(--strong); }
.qa-a { display: none; padding: 0 18px 16px; color: var(--ink); }
.qa-item.is-open {
 background: var(--paper);
 border-left: 2px solid var(--accent);
}
.qa-item.is-open .qa-a { display: block; }
.back-sec { background: var(--bg); border-top: 1px solid var(--line); }
.back-line {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 justify-content: space-between;
 gap: 12px 28px;
}
.back-line p { margin: 0; }
.tag {
 display: inline-block;
 color: var(--moss);
 border: 1px solid var(--moss);
 border-radius: var(--radius);
 padding: 0 8px;
 font-size: 13px;
 line-height: 1.7;
}
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 padding: 10px 18px;
 border-radius: var(--radius);
 border: 1px solid transparent;
 background: transparent;
 transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent); color: #FBF8F3; border-color: var(--accent); }
.btn-secondary { color: var(--moss); border-color: var(--moss); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { border-color: var(--strong); }
.btn-secondary:hover { color: var(--strong); border-color: var(--strong); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled {
 opacity: 0.45;
 pointer-events: none;
 border-color: var(--line);
 background: var(--line);
 color: var(--muted);
 transform: none;
}
.text-link, .text-btn {
 position: relative;
 display: inline-block;
 color: var(--moss);
 background: none;
 border: 0;
 padding: 0;
 font-size: 16px;
}
.text-link::after, .text-btn::after {
 content: "";
 position: absolute;
 left: 0;
 bottom: -2px;
 width: 0;
 height: 1px;
 background: currentColor;
 transition: width 200ms ease;
}
.text-link:hover::after, .text-btn:hover::after,
.text-link:focus-visible::after, .text-btn:focus-visible::after { width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
 outline: 2px solid var(--moss);
 outline-offset: 2px;
}
.site-footer {
 border-top: 1px solid var(--line);
 background: var(--paper);
 padding: 48px 0 56px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 1.4fr 0.8fr 1fr;
 gap: 28px;
}
.footer-logo {
 font-family: var(--serif);
 color: var(--strong);
 font-size: 20px;
 letter-spacing: -0.04em;
 margin-bottom: 10px;
}
.footer-grid p { margin: 0 0 10px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.copy { color: var(--muted); font-size: 13px; }
.empty-state {
 margin-top: 16px;
 padding: 22px 24px;
 border: 1px dashed var(--line);
 border-radius: var(--radius);
 color: var(--muted);
 background: transparent;
}
.form-card {
 max-width: 640px;
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 26px 26px 22px;
}
.form-alert {
 margin: 0 0 14px;
 padding: 10px 12px;
 border: 1px solid var(--danger);
 color: var(--danger);
 border-radius: var(--radius);
}
.form-ok {
 margin: 0 0 14px;
 padding: 10px 12px;
 border: 1px solid var(--moss);
 color: var(--moss);
 border-radius: var(--radius);
}
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--strong); }
input, select, textarea {
 width: 100%;
 background: #fff;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 11px 12px;
 line-height: 1.5;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--moss); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 13px; margin-top: 4px; }
.field.is-error .err { display: block; }
@media (max-width: 1024px) {
 :root { --space: 64px; }
 .container { width: min(var(--max), calc(100% - 32px)); }
 h1 { font-size: 38px; }
 .section h2 { font-size: 28px; }
 .sum-bar { grid-template-columns: 180px 1fr; }
}
@media (max-width: 760px) {
 :root { --space: 44px; }
 .primary-nav { display: none; }
 .bottom-tab { display: flex; }
 body { padding-bottom: 64px; }
 .header-bar { min-height: 56px; }
 .split-grid, .sum-bar, .fine-dl > div, .scene-row, .news-rail li, .footer-grid {
 grid-template-columns: 1fr;
 }
 .sum-copy, .meter { grid-column: 1; }
 .news-rail li { gap: 4px; }
 .site-footer { padding-bottom: 88px; }
}
@media (max-width: 480px) {
 h1 { font-size: 30px; }
 .section h2 { font-size: 24px; }
 .zone-name, .sum-bar h3 { font-size: 22px; }
 .logo { font-size: 15px; }
 .num { font-size: 26px; }
 .split-col { padding: 16px 0 0; }
 .qa-item > button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .btn:hover { transform: none; }
 .meter > span, .primary-nav a::after, .text-link::after, .text-btn::after { transition: none; }
}
