:root {
  --bg: #fffefa; --bg2: #f5f1ea; --bg3: #ebe4d9;
  --text: #252a27; --text2: #505b55; --muted: #626d68;
  --accent: #315448; --accent-d: #243f36; --warm: #895d35;
  --line: #e7e0d6; --line2: #d5cbbd; --sage: #eef1e9;
  --sans: 'Noto Sans TC', system-ui, sans-serif;
  --disp: 'Space Grotesk', 'Noto Sans TC', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { flex-shrink: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 3px; }
h2:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--warm); font: 600 11px/1 var(--disp); letter-spacing: .15em; text-transform: uppercase; }

/* nav */
.nav { align-items: center; background: rgba(255,254,250,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; height: 72px; justify-content: space-between; padding: 0 max(20px, calc((100% - 1180px)/2)); position: sticky; top: 0; z-index: 40; }
.brand { align-items: center; display: inline-flex; gap: 11px; }
.brand-mark { border-radius: 50%; display: block; height: 44px; object-fit: cover; width: 44px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { font-size: 18px; letter-spacing: .12em; }
.brand-copy span { color: var(--muted); font-size: 10px; letter-spacing: .06em; margin-top: 5px; }
.nav-links { align-items: center; display: flex; gap: 26px; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; padding: 8px 0; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { align-items: center; background: var(--accent); border-radius: 4px; color: #fff; display: inline-flex; font-weight: 600; gap: 8px; padding: 10px 18px; transition: background .2s, transform .2s; }
.nav-links .nav-cta:hover { background: var(--accent-d); color: #fff; transform: translateY(-2px); }

/* hero */
.hero { background: linear-gradient(125deg, #fffefa 40%, #f7f1e8 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero:before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.02) 0, rgba(0,0,0,.02) 1px, transparent 1px, transparent 84px); content: ""; inset: 0; pointer-events: none; position: absolute; }
.hero .wrap { padding: 36px 0 64px; position: relative; }
.crumbs ol { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li:before { color: var(--line2); content: "/"; margin: 0 10px; }
.crumbs a { padding: 6px 0; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.crumbs [aria-current] { color: var(--text2); }
.kicker { align-items: center; color: var(--warm); display: flex; font-size: 12px; font-weight: 600; gap: 12px; letter-spacing: .16em; margin-top: 44px; }
.kicker:before { background: #b99a63; content: ""; height: 1px; width: 38px; }
h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; margin: 18px 0 0; max-width: 22ch; text-wrap: balance; }
.lede { color: var(--text2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.85; margin: 22px 0 0; max-width: 40em; }

/* layout */
.layout { align-items: start; display: grid; gap: 72px; grid-template-columns: 250px minmax(0, 1fr); padding: 64px 0 96px; }
.toc { position: sticky; top: 96px; }
.toc-box { border-top: 2px solid var(--text); padding-top: 18px; }
.toc-title { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .14em; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { align-items: baseline; border-bottom: 1px solid var(--line); color: var(--text2); display: flex; font-size: 14px; gap: 12px; line-height: 1.55; padding: 11px 0; transition: color .2s, padding .2s; }
.toc li a:hover { color: var(--accent); padding-left: 6px; }
.toc-n { color: var(--warm); font: 600 11px var(--disp); letter-spacing: .1em; }
.toc-line { align-items: center; background: var(--accent); border-radius: 30px; color: #fff; display: flex; font-size: 14px; font-weight: 600; gap: 10px; justify-content: center; margin-top: 24px; padding: 12px 18px; transition: background .2s; }
.toc-line:hover { background: var(--accent-d); }

/* body */
.body { max-width: 720px; }
.intro { border-left: 3px solid var(--accent); background: var(--sage); padding: 22px 28px; }
.intro p { color: var(--text); font-size: 17px; margin: 0; }
.intro p + p { margin-top: 14px; }
.a-section { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }
.sec-no { color: var(--warm); font: 600 12px var(--disp); letter-spacing: .15em; }
.a-section h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.4; margin: 10px 0 18px; text-wrap: balance; }
.a-section p { color: var(--text2); font-size: 16.5px; line-height: 1.95; margin: 0 0 18px; }
.a-bullets { list-style: none; margin: 22px 0; padding: 0; }
.a-bullets li { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 16px; line-height: 1.8; margin: 10px 0; padding: 14px 18px 14px 46px; position: relative; }
.a-bullets li:before { background: var(--accent); border-radius: 50%; content: ""; height: 8px; left: 20px; position: absolute; top: 26px; width: 8px; }

.a-faq { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 32px 32px 12px; }
.faq-list { margin: 0; }
.faq-item { border-top: 1px solid var(--line2); padding: 22px 0; }
.faq-item:first-child { border-top: 0; padding-top: 6px; }
.faq-list dt { color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.6; }
.faq-list dd { color: var(--text2); font-size: 16px; line-height: 1.9; margin: 10px 0 0; }

.cta { background: var(--accent); border-radius: 8px; color: #f4f1e8; margin-top: 64px; padding: 40px; }
.cta .eyebrow { color: #e9d6ab; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.4; margin: 14px 0 12px; }
.cta p { color: #dfe8e2; font-size: 16px; margin: 0; }
.cta-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.btn { align-items: center; background: #fffefa; border-radius: 30px; color: var(--accent); display: inline-flex; font-weight: 700; gap: 10px; padding: 14px 24px; transition: transform .2s, background .2s; }
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { align-items: center; color: #fff; display: inline-flex; font-weight: 500; gap: 8px; padding: 12px 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 5px; }
.btn-ghost:hover { text-decoration-color: #fff; }
.cta :focus-visible { outline-color: #e9d6ab; }

/* related */
.related { background: var(--bg2); border-top: 1px solid var(--line); padding: 80px 0 90px; }
.related h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 32px; }
.related-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.rel-card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rel-card:hover { border-color: var(--line2); box-shadow: 0 12px 24px rgba(0,0,0,.06); transform: translateY(-4px); }
.rel-card strong { font-size: 18px; letter-spacing: -.01em; line-height: 1.5; }
.rel-desc { color: var(--text2); font-size: 14px; line-height: 1.75; }
.rel-go { align-items: center; color: var(--accent); display: inline-flex; font-size: 14px; font-weight: 600; gap: 8px; margin-top: auto; padding-top: 8px; }

/* footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot { align-items: center; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot-links a { color: var(--text2); font-size: 14px; font-weight: 500; padding: 8px 0; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); color: var(--muted); font: 500 11px var(--disp); letter-spacing: .05em; margin-top: 36px; padding-top: 22px; text-transform: uppercase; }

.line-float { align-items: center; background: #06c755; border: 4px solid var(--bg); border-radius: 50%; bottom: 24px; box-shadow: 0 8px 24px rgba(6,199,85,.25); color: #fff; display: flex; flex-direction: column; font: 700 10px/1 var(--sans); gap: 2px; height: 64px; justify-content: center; position: fixed; right: 24px; transition: transform .3s, box-shadow .3s; width: 64px; z-index: 50; }
.line-float:hover { box-shadow: 0 12px 32px rgba(6,199,85,.35); transform: translateY(-4px) scale(1.05); }
.line-float:focus-visible { outline-color: var(--text); outline-offset: 4px; }

@media (max-width: 960px) {
  .layout { gap: 40px; grid-template-columns: 1fr; padding: 40px 0 72px; }
  .toc { position: static; }
  .toc-line { display: none; }
  .body { max-width: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  .wrap { width: calc(100% - 32px); }
  .nav { height: 64px; padding: 0 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { font-size: 13px; padding: 9px 14px; }
  .brand-copy span { display: none; }
  .hero .wrap { padding: 24px 0 44px; }
  .kicker { margin-top: 32px; }
  .intro { padding: 18px 20px; }
  .intro p { font-size: 16px; }
  .a-section { margin-top: 44px; }
  .a-section p { font-size: 16px; }
  .a-bullets li { padding: 12px 14px 12px 38px; }
  .a-bullets li:before { left: 16px; top: 23px; }
  .a-faq { padding: 24px 20px 6px; }
  .cta { padding: 28px 22px; }
  .related { padding: 60px 0 70px; }
  .line-float { bottom: 18px; height: 56px; right: 16px; width: 56px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .nav, .toc, .line-float, .related { display: none; }
  .layout { display: block; }
}
