:root {
  color: #211f1b;
  background: #f4f0e8;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
  --paper: #fffefb;
  --cream: #fbfaf7;
  --ink: #211f1b;
  --muted: #716b63;
  --line: #e6dccd;
  --red: #c91d28;
  --red-dark: #a9131c;
  --green: #16844f;
  --blue: #1d70a8;
  --gold: #d88700;
  --shadow: 0 12px 34px rgba(56, 43, 29, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #f9f6ef 0, #f2ede4 100%); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(29, 112, 168, .35); outline-offset: 3px; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 10px; color: white; background: var(--red); font-weight: 800; }
.skip-link:focus { top: 10px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(230, 220, 205, .9); background: rgba(255, 254, 251, .94); backdrop-filter: blur(14px); }
.nav-shell { width: min(1120px, calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, #d9292d, #b70913); box-shadow: inset 0 -7px 14px rgba(93, 0, 0, .18); font-size: 19px; letter-spacing: -.05em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #4f4a44; text-decoration: none; font-size: 15px; font-weight: 750; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--red); }
.home-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: white !important; background: var(--red); }
.home-cta:hover { background: var(--red-dark); }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.blog-hero { padding: 68px 0 48px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: end; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--red); font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: currentColor; }
.blog-hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.blog-hero h1 span { color: var(--red); }
.blog-hero-copy { margin: 22px 0 0; max-width: 680px; color: #554f48; font-size: 18px; line-height: 1.8; }
.hero-note { padding: 24px; border: 1px solid #ead8bd; border-radius: 22px; background: linear-gradient(145deg, #fffdf8, #f7ecd9); box-shadow: var(--shadow); }
.hero-note strong { display: block; margin-bottom: 8px; color: var(--red); font-size: 18px; }
.hero-note p { margin: 0; color: #5d554c; line-height: 1.75; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 20px 0 22px; }
.section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; }
.post-card { min-height: 290px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-4px); border-color: #d4b998; box-shadow: 0 18px 42px rgba(56, 43, 29, .13); }
.post-card.featured { grid-column: 1 / -1; min-height: 330px; background: linear-gradient(135deg, #fffefb 50%, #f8ecda); }
.post-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; border-radius: 999px; color: var(--green); background: #e9f6ef; font-size: 13px; font-weight: 900; }
.category.blue { color: var(--blue); background: #eaf3f9; }
.category.gold { color: #9b6100; background: #fff2d8; }
.post-card time { color: var(--muted); font-size: 13px; }
.post-card h2 { max-width: 760px; margin: 28px 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; letter-spacing: -.035em; }
.post-card:not(.featured) h2 { font-size: 25px; }
.post-card p { margin: 0 0 24px; color: #615a52; font-size: 16px; line-height: 1.75; }
.read-more { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--red); font-weight: 900; }
.read-more::after { content: "→"; transition: transform .18s ease; }
.post-card:hover .read-more::after { transform: translateX(4px); }

.post-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding: 28px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-decoration-color: #bcb0a0; text-underline-offset: 3px; }
.post-hero { padding: 46px 0 36px; border-bottom: 1px solid var(--line); }
.post-hero h1 { margin: 14px 0 20px; font-size: clamp(34px, 6vw, 54px); line-height: 1.15; letter-spacing: -.05em; }
.post-dek { max-width: 760px; margin: 0 0 24px; color: #5b554e; font-size: 19px; line-height: 1.75; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.post-body { padding: 38px 0 70px; font-size: 18px; line-height: 1.9; }
.post-body h2 { margin: 48px 0 14px; scroll-margin-top: 96px; font-size: 29px; line-height: 1.35; letter-spacing: -.025em; }
.post-body h3 { margin: 32px 0 10px; font-size: 22px; }
.post-body p { margin: 0 0 22px; color: #3f3b36; }
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 1.4em; color: #3f3b36; }
.post-body li { margin-bottom: 10px; padding-left: 4px; }
.post-body strong { color: #292621; }
.post-body a { color: var(--red); text-underline-offset: 3px; }
.toc { margin: 0 0 34px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #faf6ef; }
.toc strong { display: block; margin-bottom: 9px; }
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }
.toc a { color: #4d4740; }
.callout { margin: 30px 0; padding: 22px 24px; border-left: 5px solid var(--red); border-radius: 6px 18px 18px 6px; background: #fff5f2; }
.callout.green { border-left-color: var(--green); background: #eff8f3; }
.callout.gold { border-left-color: var(--gold); background: #fff8e9; }
.callout strong { display: block; margin-bottom: 5px; }
.callout p { margin: 0; }
.steps { list-style: none; counter-reset: steps; padding: 0 !important; }
.steps li { position: relative; min-height: 48px; padding: 3px 0 18px 58px; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-weight: 900; }
.data-table { width: 100%; margin: 24px 0 30px; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #f5efe6; }
.article-links { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-links h2 { margin-top: 0; }
.article-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-links a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; font-size: 15px; font-weight: 800; }
.article-links a:hover { border-color: #cba989; }
.faq-list { margin-top: 50px; padding-top: 1px; }
.faq-item { margin: 14px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 7px 20px rgba(56, 43, 29, .06); }
.faq-item h3 { margin: 0 0 8px; color: var(--red-dark); font-size: 20px; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.75; }

.site-footer { border-top: 1px solid var(--line); background: #292621; color: #f8f4ed; }
.footer-shell { width: min(1120px, calc(100% - 32px)); min-height: 150px; margin: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.footer-shell strong { display: block; margin-bottom: 6px; font-size: 19px; }
.footer-shell p { margin: 0; color: #cfc7bb; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-nav a { color: #eee7dd; font-size: 14px; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .nav-shell { width: min(100% - 24px, 1120px); min-height: 64px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 39px; height: 39px; font-size: 17px; }
  .site-nav a:not(.home-cta):not([aria-current="page"]) { display: none; }
  .site-nav { gap: 12px; }
  .home-cta { min-height: 38px; padding-inline: 13px; font-size: 14px !important; }
  .shell, .post-shell { width: min(100% - 28px, 820px); }
  .blog-hero { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 34px; }
  .blog-hero h1 { font-size: 42px; }
  .blog-hero-copy { font-size: 17px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .article-grid { grid-template-columns: 1fr; gap: 15px; padding-bottom: 50px; }
  .post-card.featured { grid-column: auto; min-height: 310px; }
  .post-card { min-height: 275px; padding: 22px; }
  .post-card h2, .post-card:not(.featured) h2 { font-size: 24px; }
  .post-hero { padding-top: 34px; }
  .post-hero h1 { font-size: 36px; }
  .post-dek { font-size: 17px; }
  .post-body { padding-top: 30px; font-size: 17px; line-height: 1.85; }
  .post-body h2 { margin-top: 40px; font-size: 26px; }
  .toc { padding: 19px; }
  .data-table { display: block; overflow-x: auto; white-space: normal; }
  .article-links-grid { grid-template-columns: 1fr; }
  .footer-shell { min-height: 190px; grid-template-columns: 1fr; align-content: center; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
