:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-2: #ffffff;
  --text: #172033;
  --muted: #5b6475;
  --brand: #42BDB2;
  --brand-2: #12A9A2;
  --line: rgba(23, 32, 51, .12);
  --soft: #f6f7fb;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15,23,42,.10);
}
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans TC", "Noto Sans SC", Arial, sans-serif; color:var(--text); background:#fff; line-height:1.6; }
a { color:inherit; text-decoration:none; }
.container { max-width:1160px; margin:0 auto; padding:0 24px; }
.topbar { position:sticky; top:0; z-index:20; backdrop-filter:saturate(180%) blur(18px); background:rgba(255,255,255,.82); border-bottom:1px solid var(--line); }
.nav { height:72px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.02em; }
.logo img { height:38px; width:auto; display:block; }
.logo-text { white-space:nowrap; }
.gateway-logo { display:block; width:min(360px, 76vw); height:auto; margin:0 0 22px; }
.language-switch { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; color:var(--muted); }
.language-switch a { padding:7px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.language-switch a.active { color:#fff; background:var(--text); border-color:var(--text); }
.hero { background: radial-gradient(circle at top left, rgba(66,189,178,.18), transparent 36%), radial-gradient(circle at 85% 25%, rgba(20,184,166,.16), transparent 34%), linear-gradient(180deg,#f8f9ff,#fff); padding:92px 0 74px; }
.eyebrow { display:inline-flex; padding:7px 12px; border-radius:999px; background:rgba(66,189,178,.12); color:var(--brand); font-weight:700; font-size:14px; margin-bottom:22px; }
h1 { margin:0; font-size: clamp(42px, 6vw, 76px); line-height:1.04; letter-spacing:-.055em; max-width:960px; }
.hero h1 span { display:block; font-size: clamp(28px, 3.7vw, 49px); color:var(--muted); margin-top:14px; letter-spacing:-.04em; font-weight:700; }
.subtitle { max-width:880px; color:#384253; font-size:21px; margin:28px 0 0; }
.intro { max-width:900px; color:var(--muted); font-size:17px; margin:16px 0 0; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:999px; font-weight:700; border:1px solid var(--line); background:#fff; }
.btn.primary { color:#fff; background:var(--text); border-color:var(--text); }
.section { padding:70px 0; }
.section.soft { background:var(--soft); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:28px; }
h2 { margin:0; font-size:34px; line-height:1.15; letter-spacing:-.035em; }
.grid { display:grid; gap:18px; }
.grid.categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.card h3 { margin:0 0 10px; font-size:20px; line-height:1.25; letter-spacing:-.02em; }
.card p { margin:0 0 16px; color:var(--muted); font-size:15px; }
.card ul { margin:0; padding-left:18px; color:#344054; font-size:14px; }
.card li { margin:6px 0; }
.item-link { color:var(--brand-2); font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.status { display:inline-block; margin-left:7px; padding:2px 8px; border-radius:999px; background:rgba(66,189,178,.12); color:var(--brand-2); font-size:11px; line-height:1.6; font-weight:800; vertical-align:baseline; white-space:nowrap; }
.status.pending { background:#f2f4f7; color:var(--muted); }

.article-list { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:14px; }
.article-chip { padding:18px; border-radius:18px; background:#fff; border:1px solid var(--line); min-height:92px; display:flex; flex-direction:column; justify-content:space-between; }
.article-chip small { color:var(--muted); font-weight:700; margin-top:10px; }
.problem-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:18px; }
.problem-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.problem-card h3 { margin:0 0 8px; font-size:22px; }
.problem-card p { color:var(--muted); margin:0 0 14px; }
.problem-card ul { margin:0; padding-left:18px; }
.cta { background:linear-gradient(135deg,var(--bg),#20254d); color:#fff; padding:72px 0; }
.cta .container { display:grid; grid-template-columns: 1.5fr .5fr; align-items:center; gap:28px; }
.cta h2 { color:#fff; }
.cta p { color:rgba(255,255,255,.78); font-size:18px; margin:16px 0 0; max-width:760px; }
.cta .btn { background:#fff; color:var(--bg); border-color:#fff; }
.footer { padding:34px 0; color:var(--muted); border-top:1px solid var(--line); font-size:14px; }
.gateway { min-height:100vh; display:flex; align-items:center; background:linear-gradient(180deg,#f8f9ff,#fff); }
.gateway-panel { width:100%; max-width:860px; margin:0 auto; padding:46px; background:#fff; border:1px solid var(--line); border-radius:32px; box-shadow:var(--shadow); }
.gateway-panel h1 { font-size:48px; }
.lang-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:28px; }
.lang-grid a { padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:var(--soft); font-weight:700; }
@media (max-width: 960px){ .grid.categories{grid-template-columns:repeat(2,1fr)} .article-list{grid-template-columns:repeat(2,1fr)} .cta .container{grid-template-columns:1fr} }
@media (max-width: 640px){ .container{padding:0 18px} .nav{height:auto; padding:14px 0; align-items:flex-start; flex-direction:column} .hero{padding:60px 0 52px} .grid.categories,.article-list,.problem-grid,.lang-grid{grid-template-columns:1fr} .gateway-panel{padding:28px} }

/* Article pages */
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.breadcrumb a { color: var(--brand-2); font-weight: 700; }
.article-hero { background: radial-gradient(circle at top left, rgba(66,189,178,.18), transparent 34%), linear-gradient(180deg,#f8f9ff,#fff); padding: 72px 0 48px; }
.article-hero h1 { max-width: 980px; font-size: clamp(38px, 5vw, 64px); }
.article-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; color:var(--muted); font-size:14px; }
.article-meta span { padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.article-shell { display:grid; grid-template-columns: minmax(0, 1fr) 286px; gap:36px; align-items:start; padding:58px 0 74px; }
.article-content { max-width: 820px; }
.article-content h2 { margin: 44px 0 16px; font-size: 31px; line-height: 1.22; }
.article-content h3 { margin: 28px 0 10px; font-size: 22px; line-height: 1.3; letter-spacing:-.015em; }
.article-content p { margin: 0 0 16px; color:#344054; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 22px; color:#344054; }
.article-content li { margin: 6px 0; }
.article-content blockquote { margin: 18px 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: rgba(66,189,178,.08); border-radius: 0 18px 18px 0; color:#243044; font-weight: 700; }
.answer-box { background: var(--soft); border:1px solid var(--line); border-radius: 22px; padding: 24px; margin: 26px 0 10px; }
.answer-box strong { display:block; margin-bottom:8px; color: var(--brand-2); }
.table-wrap { overflow-x:auto; margin:22px 0; border:1px solid var(--line); border-radius:20px; }
table { width:100%; border-collapse: collapse; background:#fff; }
th, td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f8fafc; font-weight:800; }
tr:last-child td { border-bottom:0; }
.toc { position: sticky; top: 94px; border:1px solid var(--line); border-radius: 22px; padding:20px; background:#fff; box-shadow: var(--shadow); }
.toc strong { display:block; margin-bottom:12px; }
.toc a { display:block; color:var(--muted); font-size:14px; padding:7px 0; border-top:1px solid rgba(23,32,51,.08); }
.toc a:first-of-type { border-top:0; }
.note { font-size: 15px; color: var(--muted); }
.related-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.related-card { display:block; padding:16px 18px; border:1px solid var(--line); border-radius:18px; background:#fff; font-weight:700; }
.article-cta { margin-top:46px; padding:28px; border-radius:26px; background:linear-gradient(135deg,var(--bg),#20254d); color:#fff; }
.article-cta h2 { margin-top:0; color:#fff; }
.article-cta p { color:rgba(255,255,255,.78); }
.article-cta .btn { margin-top:10px; color:var(--bg); background:#fff; border-color:#fff; }
@media (max-width: 960px){ .article-shell{grid-template-columns:1fr} .toc{position:static; order:-1} }
@media (max-width: 640px){ .article-hero{padding:52px 0 34px} .article-shell{padding:34px 0 54px} .related-grid{grid-template-columns:1fr} }


/* V7 cache-busting + stronger category article link styles */
.card a.item-link,
.card a.item-link:visited {
  color: var(--brand-2) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.card a.item-link:hover {
  color: #13998f !important;
}
.card .status {
  display: inline-block !important;
  margin-left: 7px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(66,189,178,.12) !important;
  color: var(--brand-2) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  font-weight: 800 !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
}
.card .status.pending {
  background: #f2f4f7 !important;
  color: var(--muted) !important;
}
.article-chip[href] strong,
.article-chip[href] small {
  color: inherit;
}


/* V8 featured article status label is no longer inside the article link */
.article-chip .chip-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.article-chip .chip-title { color:var(--text); font-weight:800; text-decoration:none; }
.article-chip .chip-title:hover { color:var(--brand-2); text-decoration:underline; text-underline-offset:3px; }
.article-chip .status { margin-left:0; flex:0 0 auto; }
.article-chip.is-published { border-color:rgba(66,189,178,.35); }
.article-chip.is-published small { color:var(--muted); }


/* V9 article 03 and flow block */
.flow-block { background: rgba(10,38,51,.04); border: 1px solid rgba(10,38,51,.10); border-radius: 16px; padding: 16px 18px; white-space: pre-line; line-height: 1.75; overflow-x: auto; color: var(--text); }
.related-card.is-published { border-color: rgba(66,189,178,.35); }
