/* roulang page: index */
:root {
  --amber: #C4842A;
  --amber-hot: #D0923A;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --paper-2: #EFE6DA;
  --panel: #FFFCF8;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --shadow: 0 12px 28px rgba(34, 28, 24, 0.08);
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "Times New Roman", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
  --container: 1120px;
  --wide: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 0.18em;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; line-height: 1.4; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}
.brand:hover { color: var(--amber); }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 15px;
}
.nav-desktop a:hover { color: var(--amber); background: rgba(196, 132, 42, 0.08); }
.nav-desktop a.active {
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}
.tabbar { display: none; }
.hero {
  position: relative;
  color: #F7F2EA;
  background:
    linear-gradient(105deg, rgba(34, 28, 24, 0.92) 0%, rgba(34, 28, 24, 0.78) 48%, rgba(34, 28, 24, 0.42) 100%),
    url("/assets/images/backpic/back-1.jpg") center/cover no-repeat;
}
.hero-grid {
  display: grid;
  gap: 36px;
  padding: 72px 0 80px;
  align-items: center;
}
.hero .kicker { color: #E7D3B4; }
.hero h1 { color: #F7F2EA; margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: #E7DDD2; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-hot); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: #F7F2EA; border-color: rgba(247, 242, 234, 0.55); }
.btn-ghost:hover { border-color: var(--amber); color: #F7F2EA; transform: translateY(-1px); }
.btn:disabled, button:disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
.poster-wrap { justify-self: center; width: min(100%, 340px); }
.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border: 1px solid var(--amber);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(34, 28, 24, 0.28);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.film-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--magenta);
  color: #F7F2EA;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 2px;
}
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid #F7F2EA;
}
.corner-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.steps { background: var(--paper-2); }
.step-track { display: grid; gap: 28px; margin-top: 28px; position: relative; }
.step { position: relative; padding-left: 64px; }
.step-no {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin-bottom: 10px; }
.tag {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}
.tag-amber { border-color: var(--amber); color: #8A5A16; }
.compare {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.compare article {
  background: var(--panel);
  border-radius: var(--radius-panel);
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.compare h3 { font-size: 18px; }
.compare p { margin: 0; color: var(--muted); }
.case-layout { display: grid; gap: 18px; }
.case-main, .proof {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case-visual {
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid var(--amber);
  min-height: 240px;
}
.case-visual img { width: 100%; height: 360px; object-fit: cover; }
.case-copy, .proof { padding: 20px; }
.stat {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--amber);
  margin: 8px 0 4px;
}
.stat span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.case-side { display: grid; gap: 18px; }
.proof { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.proof img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--ink);
  border: 1px solid var(--amber);
}
.proof h3 { font-size: 18px; margin-bottom: 4px; }
.proof p { margin: 0; color: var(--muted); font-size: 15px; }
.meter {
  margin-top: 10px;
  height: 6px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.meter i { display: block; height: 100%; background: var(--teal); }
.meter-a { width: 86%; }
.meter-b { width: 92%; }
.note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-time { color: var(--teal); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-cat { margin: 0 0 4px; }
.news-row h3 { margin: 0 0 6px; font-size: 20px; }
.news-row h3 a { text-decoration-thickness: 1px; }
.news-sum { margin: 0; color: var(--muted); }
.empty-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border: 1px dashed var(--amber);
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.empty-state p { margin: 0 0 8px; }
.faq-list { max-width: 800px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 650;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--amber); font-family: var(--serif); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 4px 18px; color: var(--muted); }
.faq-more { margin-top: 22px; }
.open-band {
  background:
    linear-gradient(180deg, rgba(34, 28, 24, 0.94), rgba(34, 28, 24, 0.94)),
    url("/assets/images/backpic/back-2.jpg") center/cover no-repeat;
  color: #F7F2EA;
}
.open-band h2, .open-band h3 { color: #F7F2EA; }
.open-grid { display: grid; gap: 32px; align-items: start; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  color: #E7DDD2;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border: 1px solid var(--amber);
  border-radius: 2px;
}
.form-card {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-panel);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  line-height: 1.5;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.err { display: none; color: var(--error); font-size: 14px; margin-top: 4px; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--error); }
.field.is-error .err { display: block; }
.form-error, .form-success {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 15px;
}
.form-error { background: #F8E8E8; color: var(--error); }
.form-success { background: #E7F1EF; color: var(--teal); }
.form-success svg, .form-error svg, .empty-ico { flex: 0 0 auto; margin-top: 2px; }
.site-footer { background: var(--ink); color: #E7DDD2; padding: 64px 0 28px; }
.site-footer a { color: #F7F2EA; text-decoration-color: var(--amber); }
.footer-grid { display: grid; gap: 28px; }
.site-footer .brand { color: #F7F2EA; }
.site-footer h2 { font-size: 16px; letter-spacing: 0.08em; margin-bottom: 12px; }
.foot-links { list-style: none; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.copy {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 217, 204, 0.25);
  font-size: 14px;
  color: #C9BDB2;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (min-width: 768px) {
  .news-row { grid-template-columns: 148px 1fr; gap: 22px; align-items: start; }
  .step-track { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step-track::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: var(--amber);
  }
  .step { padding-left: 0; padding-top: 64px; }
  .step-no { top: 0; }
  .compare { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.75fr; }
  .poster-wrap { justify-self: end; }
  .case-layout { grid-template-columns: 1.45fr 0.8fr; align-items: stretch; }
  .open-grid { grid-template-columns: 0.9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.15fr 0.9fr; }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .section { padding: 64px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    font-size: 12px;
    color: var(--muted);
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active, .tabbar a:hover { color: var(--amber); }
  .proof { grid-template-columns: 76px 1fr; }
  .proof img { width: 76px; height: 104px; }
}
@media (max-width: 520px) {
  .container, .container-wide, .header-inner { width: calc(100% - 32px); }
  .hero-grid { padding: 48px 0 56px; }
  .form-card { padding: 16px; }
  .stat { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn-primary:hover, .btn-primary:active, .btn-ghost:hover { transform: none; }
}

/* roulang page: article */
:root {
  --amber: #C4842A;
  --amber-deep: #9A6420;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --paper-2: #FBF7F1;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --ok: #2F6F68;
  --white: #FFFCF8;
  --shadow: 0 10px 28px rgba(34, 28, 24, 0.08);
  --shadow-hover: 0 14px 32px rgba(34, 28, 24, 0.12);
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --radius-badge: 2px;
  --container: 1120px;
  --wide: 1280px;
  --space: 96px;
  --font-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "Songti SC", serif;
  --font-sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { color: var(--amber-deep); border-bottom-color: var(--amber); }
button, input, textarea, select { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.25; font-weight: 650; margin: 0 0 0.5em; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--paper);
  padding: 8px 12px; z-index: 80; border-radius: var(--radius-btn);
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 0;
  white-space: nowrap;
}
.brand:hover { color: var(--amber-deep); border-bottom: 0; }
.nav-desktop { display: flex; align-items: center; gap: 8px; }
.nav-desktop a {
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  border-bottom: 0;
  color: var(--text);
  font-size: 15px;
}
.nav-desktop a:hover { background: rgba(196, 132, 42, 0.12); color: var(--ink); }
.nav-desktop a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.mast {
  position: relative;
  background: var(--ink) url("/assets/images/backpic/back-2.jpg") center/cover no-repeat;
  color: #F7F2EA;
  overflow: hidden;
}
.mast::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(34, 28, 24, 0.92) 0%, rgba(34, 28, 24, 0.78) 48%, rgba(34, 28, 24, 0.55) 100%);
}
.mast-inner { position: relative; width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; padding: 42px 0 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #E4D9CC; margin-bottom: 18px; }
.crumbs a { color: #F7F2EA; border-bottom-color: rgba(196, 132, 42, 0.7); }
.crumbs span[aria-hidden] { color: var(--amber); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #F3D7B0; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 10px;
}
.mast h1 { color: #FFFCF8; max-width: 18em; margin-bottom: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--teal);
  color: #D7EBE8;
  background: rgba(47, 111, 104, 0.25);
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
}
.badge.amber { border-color: var(--amber); color: #F3D7B0; background: rgba(196, 132, 42, 0.16); }
.time-chip { color: #E4D9CC; font-size: 14px; }

.layout {
  width: min(var(--wide), calc(100% - 40px));
  margin: -28px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  padding: 36px 40px 48px;
}
.column-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 8px;
}
.reading { max-width: 68ch; line-height: 1.85; }
.reading > *:first-child { margin-top: 0; }
.reading h2 {
  font-size: 28px;
  margin: 1.4em 0 0.6em;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}
.reading h3 { margin: 1.2em 0 0.4em; }
.reading p { margin: 0 0 1em; }
.reading ul, .reading ol { margin: 0 0 1em 1.2em; }
.reading li { margin: 0.35em 0; }
.reading a { border-bottom-color: var(--amber); }
.reading img { border-radius: var(--radius-card); margin: 1em 0; border: 1px solid var(--line); }
.reading figcaption, .reading .caption { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: -0.4em; }
.reading blockquote {
  margin: 1.2em 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--magenta);
  color: var(--text);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.reading table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.reading th, .reading td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.rail {
  position: sticky; top: 92px;
  background: var(--ink);
  color: #F7F2EA;
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rail-cover {
  aspect-ratio: 9/12;
  object-fit: cover;
  width: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--amber);
}
.rail-body { padding: 18px 18px 20px; }
.rail h2 { color: #FFFCF8; font-size: 22px; }
.rail p { color: #E4D9CC; font-size: 15px; }
.rail ol { counter-reset: step; display: grid; gap: 10px; margin-top: 12px; }
.rail li {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start;
  color: #F7F2EA; font-size: 14px; line-height: 1.55;
}
.rail li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  color: var(--amber); font-family: var(--font-serif);
}

.empty-state {
  min-height: 280px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 12px;
  padding: 28px 8px;
}
.empty-icon {
  width: 52px; height: 52px; border: 1px solid var(--error); border-radius: var(--radius-badge);
  display: grid; place-items: center; color: var(--error); background: #F8EEEE;
}
.empty-state h1, .empty-title { font-size: 32px; margin: 0; }
.empty-state p { color: var(--muted); max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--amber);
  color: #221C18;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: #D1963D; transform: translateY(-1px); color: #221C18; border-bottom-color: transparent; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-ghost { background: transparent; color: #F7F2EA; border-color: #C4842A; }
.btn-ghost:hover { background: rgba(196, 132, 42, 0.16); color: #FFFCF8; }
.btn-ink { background: var(--ink); color: #F7F2EA; }
.btn-ink:hover { background: #3A312B; color: #FFFCF8; }

.after {
  width: min(var(--wide), calc(100% - 40px));
  margin: 48px auto 0;
}
.after-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; flex-wrap: wrap; }
.after-head p { color: var(--muted); margin: 0; max-width: 40em; }
.related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: inherit; border-bottom-color: var(--line); }
.rel-card img { width: 100%; height: 148px; object-fit: cover; background: var(--ink); border-bottom: 1px solid var(--amber); }
.rel-card div { padding: 12px 12px 14px; }
.rel-card h3 { font-size: 18px; margin-bottom: 6px; }
.rel-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }
.tag {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius-badge);
  font-size: 12px;
  padding: 0 6px;
  margin-bottom: 6px;
}

.check {
  margin-top: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 22px 22px 8px;
}
.check h2 { font-size: 24px; }
.check-list { display: grid; gap: 0; }
.check-list li {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.check-list strong { color: var(--amber-deep); font-family: var(--font-serif); }
.check-list span { color: var(--muted); }

.cta {
  margin-top: 56px;
  background: var(--ink) url("/assets/images/backpic/back-1.jpg") center/cover no-repeat;
  position: relative;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(34, 28, 24, 0.88); }
.cta-inner {
  position: relative;
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  color: #F7F2EA;
}
.cta h2 { color: #FFFCF8; font-size: 32px; }
.cta p { color: #E4D9CC; }
.cta ul { display: grid; gap: 8px; margin-top: 12px; }
.cta li { padding-left: 16px; position: relative; }
.cta li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--amber); position: absolute; left: 0; top: 0.65em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.site-footer { background: #1A1613; color: #E4D9CC; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #F7F2EA; border-bottom-color: rgba(196, 132, 42, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1.1fr 1fr; gap: 28px; }
.site-footer h2 { color: #FFFCF8; font-size: 18px; }
.site-footer p { color: #CDBFB2; font-size: 15px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { border-bottom: 0; }
.foot-links a:hover { color: #F3D7B0; }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(228, 217, 204, 0.2); font-size: 13px; color: #CDBFB2; }

.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #FFFCF8;
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.tabbar a {
  border-bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; color: var(--muted); padding: 4px 0;
  border-radius: var(--radius-btn);
}
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tabbar a.active, .tabbar a:hover { color: var(--amber-deep); background: rgba(196, 132, 42, 0.1); }

@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; margin-top: 20px; }
  .rail { position: static; display: grid; grid-template-columns: 140px 1fr; }
  .rail-cover { aspect-ratio: 3/4; height: 100%; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --space: 64px; }
  body { padding-bottom: 78px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .nav-desktop { display: none; }
  .tabbar { display: grid; }
  .header-inner, .mast-inner, .layout, .after, .cta-inner { width: min(100% - 28px, var(--wide)); }
  .sheet { padding: 22px 16px 28px; }
  .mast-inner { padding: 28px 0 36px; }
  .rail { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .check-list li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .rel-card:hover { transform: none; }
}

/* roulang page: category1 */
:root {
  --amber: #C4842A;
  --amber-deep: #A86C1C;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --ok: #2F6F68;
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --shadow: 0 10px 28px rgba(34, 28, 24, 0.08);
  --space: 96px;
  --container: 1120px;
  --header: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, .brand {
  font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
h1 { font-size: 32px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.nav-desktop { display: none; gap: 8px; align-items: center; }
.nav-desktop a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-btn);
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { color: var(--amber-deep); border-bottom-color: var(--amber); }
.nav-desktop a.active {
  color: var(--ink);
  border-bottom-color: var(--amber);
  font-weight: 700;
}
.nav-desktop a:focus-visible,
.tabbar a:focus-visible,
.btn:focus-visible,
.toc-rail a:focus-visible,
.toc-scroll a:focus-visible,
.foot-links a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.banner {
  position: relative;
  background: #221C18 url("/assets/images/backpic/back-1.jpg") center/cover no-repeat;
  color: #F7F2EA;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,28,24,0.92) 0%, rgba(34,28,24,0.78) 52%, rgba(34,28,24,0.45) 100%);
}
.banner-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
  display: grid;
  gap: 28px;
}
.crumb { font-size: 14px; color: #E4D9CC; margin-bottom: 16px; }
.crumb a { color: #F7F2EA; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F7F2EA;
  border: 1px solid var(--amber);
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.banner p { color: #F3EADF; max-width: 42em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #D3963D; color: var(--ink); }
.btn-ghost { background: transparent; color: #F7F2EA; border-color: #E4D9CC; }
.btn-ghost:hover { color: #fff; border-color: var(--amber); }
.btn-ink { background: var(--ink); color: #F7F2EA; }
.btn-ink:hover { background: #342B25; color: #fff; }
.frame {
  width: 210px;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border: 1px solid var(--amber);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.corner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 2px;
}
.section { padding: var(--space) 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.syllabus-layout { display: block; }
.toc-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 8px;
}
.toc-scroll a, .toc-rail a {
  text-decoration: none;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2px;
  padding: 6px 10px;
  background: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.toc-scroll a:hover, .toc-rail a:hover,
.toc-scroll a:focus-visible, .toc-rail a:focus-visible {
  background: var(--teal);
  color: #fff;
}
.toc-rail { display: none; }
.chapter {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.chapter h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}
.num { color: var(--amber); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1.7;
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-weight: 500;
}
.badge-amber { border-color: var(--amber); color: var(--amber-deep); }
.chapter p:last-child { margin-bottom: 0; }
.compare { display: grid; gap: 0; border-top: 1px solid var(--line); }
.compare-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.kicker { font-size: 13px; color: var(--teal); letter-spacing: 0.06em; }
.muted { color: var(--muted); }
.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding-bottom: 22px;
}
.step-no {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--amber);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", "Source Han Serif TC", serif;
}
.quote {
  background: #fff;
  border-left: 3px solid var(--magenta);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  padding: 18px 18px 8px;
  margin: 0 0 24px;
  box-shadow: var(--shadow);
}
.quote p { font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif; }
.specs { display: grid; gap: 12px; }
.spec {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--amber-deep); font-weight: 700; }
.spec dd { margin: 0; }
.cta-band {
  background: var(--ink);
  color: #F7F2EA;
  padding: 64px 0;
}
.cta-band h2 { color: #F7F2EA; }
.cta-band p { color: #E4D9CC; }
.cta-inner { display: grid; gap: 18px; }
.cta-list { margin: 0; padding: 0; list-style: none; }
.cta-list li { padding-left: 16px; position: relative; margin-bottom: 8px; }
.cta-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--amber);
  position: absolute;
  left: 0;
  top: 0.7em;
}
.site-footer { background: #1A1613; color: #E4D9CC; padding: 48px 0 24px; }
.site-footer .brand { color: #F7F2EA; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 { font-size: 16px; color: #F7F2EA; }
.site-footer a { color: #F7F2EA; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { border-bottom-color: var(--amber); }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid #3A322C; font-size: 14px; color: #C9BDB2; }
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px 10px;
  font-size: 12px;
}
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tabbar a.active { color: var(--amber-deep); }
.state { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-card); }
.state-ok { background: #E7F1EF; color: var(--ok); }
.state-error { background: #F8E8E8; color: var(--error); }
.state-empty { background: #F3EEE6; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .banner-inner { padding: 72px 0 80px; align-items: end; }
  .section { padding: 96px 0; }
  .compare-row { grid-template-columns: 140px 1fr 1.2fr; align-items: start; gap: 18px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1fr; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .banner-inner { padding-top: 32px; }
  .frame { width: min(180px, 46vw); }
  .section { padding: 64px 0; }
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .banner-inner { grid-template-columns: 1.4fr 0.6fr; align-items: center; }
  .frame { justify-self: end; width: 240px; }
  .syllabus-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
  .toc-scroll { display: none; }
  .toc-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 96px;
  }
  .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
  .cta-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
@media (max-width: 520px) {
  .header-inner, .container, .banner-inner { width: calc(100% - 24px); }
  h1 { font-size: 30px; }
  .spec { grid-template-columns: 1fr; gap: 0; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover, .btn:active { transform: none; }
}

/* roulang page: category3 */
:root {
  --amber: #C4842A;
  --amber-deep: #A56B1C;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --white: #FFFCF8;
  --shadow: 0 10px 28px rgba(34, 28, 24, 0.08);
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --container: 1120px;
  --wide: 1280px;
  --space: 96px;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "STSong", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber-deep); }
button, input, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; font-weight: 650; margin: 0 0 0.45em; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
  border-radius: var(--radius-btn);
}
.skip:focus { top: 12px; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.brand:hover { color: var(--ink); }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  padding: 8px 12px;
  color: var(--text);
  border-bottom: 2px solid transparent;
  font-size: 16px;
}
.nav-desktop a:hover { border-bottom-color: var(--amber); color: var(--ink); }
.nav-desktop a.active {
  color: var(--ink);
  border-bottom-color: var(--amber);
  font-weight: 650;
}
.nav-desktop a:focus-visible,
.tabbar a:focus-visible,
.btn:focus-visible,
.brand:focus-visible,
.foot-links a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.hero-deliver {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: var(--ink) url("/assets/images/backpic/back-3.jpg") center/cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(34, 28, 24, 0.88) 8%, rgba(34, 28, 24, 0.55) 58%, rgba(34, 28, 24, 0.28) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--wide), calc(100% - 48px));
  padding: 88px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  border-radius: 2px;
  color: #F3D7A8;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.hero-deliver h1 { max-width: 14em; color: #F7F2EA; }
.lead { max-width: 38em; color: #F3E9DC; font-size: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--amber); color: #221C18; }
.btn-primary:hover { background: #D2923A; color: #221C18; }
.btn-ghost { background: transparent; color: #F7F2EA; border-color: #E4D9CC; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #342A24; color: var(--paper); }
.section { padding: var(--space) 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid var(--teal);
  border-radius: 2px;
  padding: 1px 7px;
}
.call-sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--paper);
}
.sheet-bar strong { font-family: var(--serif); font-size: 20px; font-weight: 650; }
.sheet-no { color: var(--amber); letter-spacing: 0.12em; font-size: 13px; }
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.spec-item {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.spec-item:nth-child(2n) { border-right: 0; }
.spec-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.num {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.spec-item dd { margin: 0; }
.spec-item dd strong { font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 4px; }
.spec-item dd span { color: var(--muted); }
.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.status svg { flex: 0 0 auto; margin-top: 4px; }
.status p { margin: 0; font-size: 15px; color: var(--muted); }
.status b { display: block; color: var(--text); font-size: 16px; }
.status-miss { background: #F8EFEA; }
.status-wait { background: #F4F1EA; }
.status-ok { background: #EEF4F2; }
.status-miss svg { color: var(--error); }
.status-wait svg { color: var(--amber); }
.status-ok svg { color: var(--teal); }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  min-height: 460px;
}
.frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--amber);
  min-height: 180px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { grid-row: span 2; min-height: 420px; }
.corner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 2px;
}
.compare { display: grid; gap: 14px; }
.compare article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}
.tag-amber, .tag-teal {
  display: inline-block;
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 13px;
  margin-bottom: 8px;
}
.tag-amber { border: 1px solid var(--amber); color: var(--amber-deep); }
.tag-teal { border: 1px solid var(--teal); color: var(--teal); }
.bars { list-style: none; margin: 8px 0 0; padding: 0; }
.bars li { margin-bottom: 12px; }
.bars span { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.track { height: 6px; background: #EFE6DB; border-radius: 2px; margin-top: 4px; }
.track i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
}
.track.low i { background: var(--error); width: 38%; }
.track.mid i { background: var(--amber); width: 72%; }
.track.high i { width: 92%; }
.quote {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 3px solid var(--magenta);
  color: var(--text);
}
.quote p { margin: 0; }
.quote cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 14px; }
.accept {
  background: #EFE6DB;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: #C9B8A4;
}
.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 12px 14px;
  min-height: 168px;
}
.steps b {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 2px;
  font-size: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.bands { display: grid; gap: 14px; }
.band {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 16px;
  box-shadow: var(--shadow);
}
.band img {
  width: 180px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
}
.band h3 { margin-bottom: 4px; }
.band p { margin: 0; color: var(--muted); }
.check-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.box {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 1.5px solid var(--amber);
  border-radius: 2px;
}
.side-note {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-panel);
  padding: 28px 24px;
  border: 1px solid #3A312B;
}
.side-note h2 { color: #F7F2EA; }
.side-note p { color: #E7DCCD; }
.side-note a { color: #F3D7A8; border-bottom: 1px solid var(--amber); }
.cta-band {
  background: var(--ink) url("/assets/images/backpic/back-1.jpg") center/cover no-repeat;
  color: var(--paper);
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 24, 0.82);
}
.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 56px 0;
}
.cta-inner h2 { color: #F7F2EA; }
.cta-inner p { color: #E7DCCD; margin: 0; max-width: 38em; }
.site-footer {
  background: #1A1613;
  color: #E7DCCD;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 28px;
}
.site-footer .brand { color: #F7F2EA; }
.site-footer h2 { font-size: 18px; color: #F7F2EA; }
.site-footer p { color: #CDBFB2; font-size: 15px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding: 4px 0; border-bottom: 1px solid transparent; }
.foot-links a:hover { border-bottom-color: var(--amber); color: #F7F2EA; }
.site-footer a { color: #F3D7A8; }
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #3A312B;
  color: #B3A497;
  font-size: 14px;
}
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #FFFCF8;
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  min-height: 48px;
  justify-content: center;
}
.tabbar a.active { color: var(--amber-deep); }
.tabbar svg { width: 22px; height: 22px; }
@media (max-width: 1023px) {
  .split, .check-wrap, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .band { grid-template-columns: 140px 1fr; }
  .band .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 767px) {
  body { padding-bottom: 78px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .section { padding: 64px 0; }
  .nav-desktop { display: none; }
  .tabbar { display: flex; }
  .hero-deliver { min-height: 0; align-items: stretch; }
  .hero-copy { padding: 48px 0 40px; }
  .spec-grid, .status-row, .steps, .collage { grid-template-columns: 1fr; }
  .spec-item, .spec-item:nth-child(2n) { border-right: 0; }
  .frame-tall { grid-row: auto; min-height: 320px; }
  .band { grid-template-columns: 1fr; }
  .band img { width: 100%; height: 160px; }
  .band .btn { grid-column: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .sheet-bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover, .btn:active { transform: none; }
}

/* roulang page: category2 */
:root {
  --amber: #C4842A;
  --amber-deep: #A56E20;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --white: #FFFCF8;
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --shadow: 0 10px 28px rgba(34, 28, 24, 0.08);
  --shadow-soft: 0 4px 14px rgba(34, 28, 24, 0.06);
  --space-block: 96px;
  --container: 1120px;
  --wide: 1280px;
  --serif: "Source Han Serif TC", "Noto Serif TC", "Songti TC", "PMingLiU", "Songti SC", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--amber-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.25; letter-spacing: 0.01em; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; line-height: 1.4; }
p + p { margin-top: 1em; }
::selection { background: #E8C48A; color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.wide { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1);
}
.header-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand:hover { color: var(--amber-deep); }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { color: var(--amber-deep); background: rgba(196, 132, 42, 0.08); }
.nav-desktop a.active {
  color: var(--ink);
  border-bottom-color: var(--amber);
  background: rgba(196, 132, 42, 0.12);
}

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -6px 18px rgba(34, 28, 24, 0.05);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  min-height: 52px;
  border-radius: var(--radius-btn);
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--amber-deep); background: rgba(196, 132, 42, 0.12); }
.tabbar a:hover { color: var(--ink); }

.hero {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(34, 28, 24, 0.9) 0%, rgba(34, 28, 24, 0.72) 42%, rgba(34, 28, 24, 0.38) 100%),
    url("/assets/images/backpic/back-2.jpg") center / cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 72px 0 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F3E2CC;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.eyebrow i {
  width: 28px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.hero h1 { color: #FFFCF8; max-width: 14em; }
.hero-lead {
  margin-top: 18px;
  max-width: 38em;
  color: #F3E6D6;
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: #E4D9CC; font-size: 14px; }

.collage { position: relative; min-height: 460px; }
.shot {
  position: absolute;
  width: 210px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--amber);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { right: 72px; top: 0; }
.shot-b { right: 0; bottom: 12px; width: 168px; }
.corner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn-primary { background: var(--amber); color: #221C18; border-color: var(--amber-deep); }
.btn-primary:hover { background: #D0923A; transform: translateY(-1px); color: #221C18; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(247, 242, 234, 0.55); }
.btn-ghost:hover { color: #fff; border-color: var(--amber); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #3A312B; color: var(--paper); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--amber); }
.btn-line:hover { background: rgba(196, 132, 42, 0.12); color: var(--ink); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; transform: none; }

.section { padding: var(--space-block) 0; }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--muted); }
.kicker {
  display: inline-block;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2px;
  padding: 1px 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.track-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 22px;
}
.track-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.track-label strong { color: var(--ink); font-weight: 650; }
.rail {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 28px 8px 8px;
}
.rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 78%;
  background: var(--amber);
  border-radius: 2px;
}
.nodes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: -18px;
  position: relative;
}
.node { text-align: center; }
.node span {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 2px solid var(--amber);
  background: var(--white);
}
.node.done span { background: var(--amber); }
.node.now span { background: var(--ink); border-color: var(--ink); }
.node small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.node.now small { color: var(--ink); font-weight: 650; }

.proc-list { display: flex; flex-direction: column; gap: 56px; }
.proc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}
.proc.flip { grid-template-columns: 1fr 240px; }
.proc.flip .frame { order: 2; }
.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border: 1px solid var(--amber);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.step-no {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.proc h3 { margin-bottom: 10px; }
.proc p { color: var(--text); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
  background: rgba(47, 111, 104, 0.06);
}
.badge.amber {
  border-color: var(--amber);
  color: var(--amber-deep);
  background: rgba(196, 132, 42, 0.08);
}
.hand {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.hand b { color: var(--ink); font-weight: 650; }

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.panel h2, .panel h3 { margin-bottom: 8px; }
.compare { display: grid; gap: 16px; }
.compare article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.compare article:last-child { border-bottom: 0; padding-bottom: 0; }
.tag-side {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 4px;
}
.tag-side em {
  display: block;
  font-style: normal;
  color: var(--amber-deep);
  font-family: var(--serif);
  font-size: 16px;
}
.side-note {
  background: var(--ink);
  color: #F3E6D6;
  border-radius: var(--radius-panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.side-note h2 { color: #fff; }
.side-note p { color: #E7D7C6; margin-top: 12px; }
.side-note .btn { margin-top: 22px; align-self: flex-start; }

.gates { display: grid; gap: 0; border-top: 1px solid var(--line); }
.gate {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.gate dt { font-family: var(--serif); font-size: 20px; }
.gate dd { margin: 0; color: var(--muted); }
.gate .out { color: var(--ink); font-size: 15px; }

.rubric { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
.bar-item { margin-bottom: 16px; }
.bar-item div { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.bar {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--teal); }
.bar i.warm { background: var(--amber); }
.quotes { display: flex; flex-direction: column; gap: 14px; }
.quote {
  background: var(--white);
  border-left: 3px solid var(--magenta);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.quote p { font-size: 16px; }
.quote span { display: block; margin-top: 8px; color: var(--teal); font-size: 13px; }

.fit-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.fit-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}
.mark {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 2px;
  border: 1px solid var(--amber);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
}
.mark svg { width: 14px; height: 14px; }

.cta-band {
  background: var(--ink);
  color: #F7F2EA;
  padding: 72px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: #E7D7C6; margin-top: 12px; max-width: 40em; }
.cta-points { margin: 18px 0 0; padding: 0; list-style: none; }
.cta-points li { padding-left: 16px; position: relative; color: #F3E6D6; }
.cta-points li::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--amber);
  position: absolute;
  left: 0;
  top: 0.85em;
}
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { width: 100%; }

.site-footer {
  background: #1A1613;
  color: #E7D7C6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1fr;
  gap: 28px;
}
.site-footer .brand { color: #FFFCF8; }
.site-footer h2 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.site-footer p { color: #D9CBBE; font-size: 15px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { color: #E7D7C6; text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { color: #fff; border-bottom-color: var(--amber); }
.foot-links li + li { margin-top: 6px; }
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 217, 204, 0.2);
  color: #C9B8A8;
  font-size: 14px;
}
.site-footer a[href^="https"] { color: #F3E2CC; }

@media (max-width: 1023px) {
  .hero-inner, .split, .rubric, .cta-grid, .proc, .proc.flip {
    grid-template-columns: 1fr;
  }
  .proc.flip .frame { order: 0; }
  .frame, .shot { max-width: 280px; }
  .collage { min-height: 0; display: flex; gap: 12px; }
  .shot { position: relative; right: auto; top: auto; bottom: auto; }
  .shot-b { width: 180px; }
  .gate { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --space-block: 64px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .nav-desktop { display: none; }
  .tabbar { display: grid; }
  .header-inner { min-height: 60px; }
  .hero-inner { padding: 48px 0 40px; }
  .nodes { grid-template-columns: repeat(3, 1fr); row-gap: 18px; margin-top: 12px; }
  .rail { display: none; }
  .compare article { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wide, .container, .header-inner { width: min(100% - 28px, var(--wide)); }
  .cta-band h2 { font-size: 26px; }
}
@media (max-width: 520px) {
  .hero-actions, .cta-actions { align-items: stretch; }
  .hero-actions .btn, .btn { width: 100%; }
  .collage { flex-direction: column; }
  .shot, .shot-b, .frame { width: 100%; max-width: 240px; }
  .track-wrap, .panel, .side-note { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* roulang page: category4 */
:root {
  --amber: #C4842A;
  --amber-deep: #A66B1C;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --error: #9C3B3B;
  --white: #FFFCF8;
  --shadow: 0 10px 28px rgba(34, 28, 24, 0.08);
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --space: 96px;
  --container: 1120px;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "Songti SC", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Heiti TC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; font-weight: 650; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.wide { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1);
}
.header-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.brand:hover { color: var(--ink); }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  text-decoration: none;
  padding: 8px 12px;
  color: var(--text);
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
}
.nav-desktop a:hover { background: #EFE6DA; }
.nav-desktop a.active {
  color: var(--ink);
  background: #fff;
  border-color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}
.nav-desktop a:focus-visible,
.tabbar a:focus-visible,
.btn:focus-visible,
.foot-links a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.tabbar { display: none; }
.page-hero {
  position: relative;
  min-height: 460px;
  color: #F7F2EA;
  background:
    linear-gradient(100deg, rgba(34, 28, 24, 0.88) 0%, rgba(34, 28, 24, 0.62) 48%, rgba(34, 28, 24, 0.28) 100%),
    url("/assets/images/backpic/back-2.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.page-hero .wide { padding: 72px 0 56px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F3E2C8;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 12px;
}
.kicker i {
  width: 28px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.page-hero h1 { color: #F7F2EA; max-width: 14em; }
.lede { max-width: 38em; color: #F3EADF; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #221C18; }
.btn-primary:hover { background: #D2933A; color: #221C18; }
.btn-ghost {
  background: transparent;
  color: #F7F2EA;
  border-color: #E4D9CC;
}
.btn-ghost:hover { background: rgba(247, 242, 234, 0.1); color: #fff; }
.btn[disabled], .btn:disabled { opacity: 0.45; pointer-events: none; }
.section { padding: var(--space) 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.badge {
  display: inline-block;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  padding: 1px 8px;
  font-size: 13px;
  line-height: 1.6;
  background: #fff;
}
.badge-amber { border-color: var(--amber); color: var(--amber-deep); }
.compare {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel h2 { font-size: 24px; }
.split-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bar {
  height: 8px;
  background: #EFE6DA;
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0 16px;
}
.bar span { display: block; height: 100%; background: var(--teal); }
.bar.warn span { background: var(--amber); }
.contrast-list { list-style: none; padding: 0; margin: 0; }
.contrast-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contrast-list li:last-child { border-bottom: 0; }
.tag-no, .tag-yes {
  font-size: 13px;
  border-radius: 2px;
  text-align: center;
  height: fit-content;
  padding: 2px 0;
}
.tag-no { color: var(--error); border: 1px solid #E3C4C4; background: #FBF6F4; }
.tag-yes { color: var(--teal); border: 1px solid #C9DDD9; background: #F4FAF8; }
.desk-head {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 0;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.desk-head span { padding: 0 16px; }
.desk-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.desk-row:hover { border-color: #D7C4AE; }
.ask, .reply { padding: 16px 18px; }
.ask {
  background: #FBF7F1;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
}
.ask small {
  display: block;
  font-family: var(--sans);
  color: var(--amber-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.reply { color: var(--text); }
.reply strong { color: var(--ink); font-weight: 650; }
.situations { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; }
.situation {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.num {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 28px;
  line-height: 1;
}
.side-note {
  background: var(--ink);
  color: #F7F2EA;
  border-radius: var(--radius-panel);
  padding: 22px;
}
.side-note h3 { color: #F7F2EA; }
.side-note p { color: #E7DDD2; }
.quotes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.quote figure { margin: 0; aspect-ratio: 4/3; background: var(--ink); border-bottom: 1px solid var(--amber); }
.quote img { width: 100%; height: 100%; object-fit: cover; }
.quote div { padding: 16px; }
.quote p { font-size: 16px; }
.who { color: var(--muted); font-size: 14px; }
.frame-tag {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.check-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 18px;
}
ul.clean { margin: 0; padding: 0; list-style: none; }
ul.clean li {
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
ul.clean li::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--teal);
  position: absolute;
  left: 0;
  top: 18px;
}
.cta-band {
  background: var(--ink);
  color: #F7F2EA;
  border-radius: var(--radius-panel);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
}
.cta-band h2 { color: #F7F2EA; }
.cta-band p { color: #E7DDD2; margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.site-footer {
  background: #1A1613;
  color: #E7DDD2;
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer .brand { color: #F7F2EA; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr;
  gap: 28px;
}
.site-footer h2 { color: #F7F2EA; font-size: 18px; }
.site-footer p, .site-footer a { color: #E7DDD2; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { border-bottom-color: var(--amber); color: #fff; }
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #3A322C;
  color: #B7ADA4;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .compare, .situations, .quotes, .check-wrap, .cta-band, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --space: 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  body { padding-bottom: 76px; }
  .nav-desktop { display: none; }
  .header-inner { min-height: 60px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: #FFFCF8;
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    text-decoration: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    padding: 4px 0;
  }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .tabbar a.active { color: var(--amber-deep); }
  .compare, .situations, .quotes, .check-wrap, .cta-band, .footer-grid, .desk-row, .desk-head {
    grid-template-columns: 1fr;
  }
  .desk-head { display: none; }
  .ask { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-actions { justify-content: flex-start; }
  .page-hero { min-height: 0; }
  .situation { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* roulang page: category5 */
:root {
  --amber: #C4842A;
  --amber-deep: #9A6420;
  --amber-soft: #F3E4CF;
  --magenta: #B83A62;
  --teal: #2F6F68;
  --paper: #F7F2EA;
  --paper-2: #FFFBF6;
  --ink: #221C18;
  --text: #1E1916;
  --muted: #5C534C;
  --line: #E4D9CC;
  --danger: #9C3B3B;
  --ok: #2F6F68;
  --shadow: 0 12px 28px rgba(34, 28, 24, 0.08);
  --shadow-tight: 0 4px 12px rgba(34, 28, 24, 0.06);
  --radius-panel: 12px;
  --radius-card: 10px;
  --radius-btn: 4px;
  --container: 1120px;
  --hero: 1280px;
  --space: 96px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.45em;
  letter-spacing: 0.01em;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff; padding: 6px 10px; z-index: 20;
}
.skip:focus { top: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1);
}
.header-inner {
  width: min(var(--hero), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.nav-desktop { display: none; gap: 6px; align-items: center; }
.nav-desktop a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  font-size: 15px;
}
.nav-desktop a:hover { background: var(--amber-soft); color: var(--ink); }
.nav-desktop a.active {
  background: var(--ink);
  color: #F7F2EA;
}
.nav-desktop a:focus-visible,
.tabbar a:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #FFFBF6;
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 20px rgba(34, 28, 24, 0.06);
}
.tabbar a {
  text-decoration: none;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; line-height: 1.2; padding: 4px 0;
  border-radius: 6px;
}
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tabbar a.active { color: var(--amber-deep); }
.tabbar a.active svg { stroke: var(--amber); }
.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(34, 28, 24, 0.88) 0%, rgba(34, 28, 24, 0.72) 46%, rgba(34, 28, 24, 0.38) 100%),
    url("/assets/images/backpic/back-1.jpg") center / cover no-repeat;
  color: #F7F2EA;
  padding: 48px 0 56px;
}
.hero-inner {
  width: min(var(--hero), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #F3E4CF; font-size: 14px; letter-spacing: 0.08em;
}
.kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--amber);
}
.hero h1 { color: #fff; margin-bottom: 12px; }
.lede { color: #F3EDE6; font-size: 17px; max-width: 36em; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; }
.hero-points li {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 8px; color: #F7F2EA;
}
.num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 2px;
  display: grid; place-items: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.apply-card {
  background: var(--paper-2);
  color: var(--text);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 22px 18px 18px;
}
.apply-card h2 { font-size: 24px; }
.apply-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.form-grid { display: grid; gap: 12px; }
label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.req { color: var(--magenta); margin-left: 4px; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  line-height: 1.5;
}
textarea { min-height: 96px; resize: vertical; }
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: var(--danger); background: #FBF4F2; }
.field-msg { min-height: 1.2em; font-size: 13px; color: var(--danger); margin: 4px 0 0; }
.form-note {
  display: none;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: 15px;
  margin-bottom: 12px;
}
.form-note.show { display: flex; }
.form-note.is-error { background: #F8E8E6; color: var(--danger); border: 1px solid #E3C2C2; }
.form-note.is-success { background: #E7F1EF; color: var(--teal); border: 1px solid #C5DDD9; }
.note-ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--amber);
  color: #221C18;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-weight: 600;
}
.btn:hover { background: #D0923A; transform: translateY(-1px); box-shadow: var(--shadow-tight); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-line {
  background: transparent;
  color: #F7F2EA;
  border-color: #E4D9CC;
}
.hero .btn-line:hover { background: rgba(247, 242, 234, 0.08); color: #fff; }
.btn-ink { background: var(--ink); color: #F7F2EA; }
.btn-ink:hover { background: #3A312B; color: #fff; }
.btn-block { width: 100%; }
.section { padding: var(--space) 0; }
.section-head { margin-bottom: 22px; max-width: 40em; }
.section-head p { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  padding: 1px 7px;
  font-size: 13px;
  line-height: 1.6;
  background: transparent;
}
.badge-amber { border-color: var(--amber); color: var(--amber-deep); }
.plan {
  display: grid;
  gap: 16px;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-tight);
}
.plan h3 { margin-bottom: 4px; }
.plan p { margin: 0; color: var(--muted); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fit { color: var(--text); }
.band-a { border-left: 4px solid var(--amber); }
.band-b { border-left: 4px solid var(--teal); }
.gain {
  display: grid;
  gap: 18px;
}
.gain-visual {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-height: 220px;
  background: var(--ink);
  border: 1px solid var(--amber);
}
.gain-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.corner {
  position: absolute; top: 12px; left: 12px;
  background: var(--magenta); color: #fff;
  font-size: 12px; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 2px;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 15px; }
.steps {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--amber);
  margin-left: 14px;
}
.step {
  position: relative;
  padding: 0 0 22px 22px;
}
.step::before {
  content: attr(data-n);
  position: absolute; left: -15px; top: 0;
  width: 28px; height: 28px;
  background: var(--amber);
  color: #221C18;
  border-radius: 2px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); margin: 0; }
.collage {
  display: grid;
  gap: 12px;
}
.shot {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  min-height: 180px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(34, 28, 24, 0.82));
  color: #F7F2EA;
  font-size: 14px;
}
.quotes { display: grid; gap: 12px; margin-top: 14px; }
.quote {
  background: var(--paper-2);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-tight);
}
.quote p { margin: 0 0 6px; }
.quote small { color: var(--teal); }
.compare {
  display: grid;
  gap: 12px;
}
.compare article {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
}
.compare h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter { height: 8px; background: #EFE6DB; border-radius: 2px; overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: var(--teal); }
.meter.warn span { background: var(--amber); }
.compare li { margin: 0 0 6px; color: var(--muted); }
.compare ul { margin: 8px 0 0; padding-left: 1.1em; }
.prep { margin-top: 18px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; gap: 4px; }
.bar-row header { display: flex; justify-content: space-between; font-size: 15px; }
.dark-cta {
  background:
    linear-gradient(180deg, rgba(34, 28, 24, 0.82), rgba(34, 28, 24, 0.9)),
    url("/assets/images/backpic/back-3.jpg") center / cover no-repeat;
  color: #F7F2EA;
  padding: 56px 0;
}
.dark-cta h2, .dark-cta p { color: #F7F2EA; }
.dark-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.site-footer {
  background: var(--ink);
  color: #E7DFD6;
  padding: 48px 0 28px;
}
.site-footer a { color: #F7F2EA; }
.site-footer h2 { font-size: 18px; color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 217, 204, 0.25);
  color: #CDBFB2;
  font-size: 14px;
}
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 18px; }
  .nav-desktop { display: flex; }
  .tabbar { display: none; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .section { padding: 96px 0; }
  .apply-card { padding: 26px 24px 22px; }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 1.1fr 0.9fr; }
  .collage { grid-template-columns: 1.2fr 0.8fr; }
  .shot.tall { grid-row: span 2; min-height: 380px; }
  .shot.tall img { min-height: 380px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
  .plan {
    grid-template-columns: 1.4fr auto;
    padding: 22px 24px;
  }
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 48px; }
  .gain { grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 36px; }
  .steps { margin-left: 18px; }
}
@media (max-width: 520px) {
  .header-inner, .container, .hero-inner { width: calc(100% - 24px); }
  h1 { font-size: 30px; }
  .brand { font-size: 17px; }
  .btn-line { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
