/* TW Business — Taiwan Business Directory */
:root {
  --navy-950: #071330;
  --navy-900: #0b1b3a;
  --navy-800: #13285a;
  --blue-600: #2453e6;
  --blue-500: #3b6cf6;
  --blue-50: #eef3ff;
  --rose-500: #e5394f;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .05);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -8px rgb(15 23 42 / .12);
  --shadow-lg: 0 24px 60px -20px rgb(11 27 58 / .35);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.075rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-500) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.zh { font-weight: 500; color: var(--muted); font-size: .8em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon.xs { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgb(36 83 230 / .3), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn-primary:hover { background: #1d45c9; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #cbd5e1; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #eef3ff; }
.btn-ghost-light { color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .1); }
.btn-sm { padding: 9px 14px; font-size: .875rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; text-decoration: none !important; }
.logo-mark { color: var(--navy-900); width: 32px; height: 32px; }
.logo-mark svg { width: 32px; height: 32px; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: var(--blue-600); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:not(.btn):hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue-600); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s ease;
  }
  .main-nav a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #cbd5e1; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgb(229 57 79 / .10), transparent 60%),
    radial-gradient(55% 70% at 10% 10%, rgb(59 108 246 / .16), transparent 60%),
    linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(15 23 42 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(15 23 42 / .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; max-width: 900px; }
.hero h1 { margin-bottom: 20px; }
.grad { background: linear-gradient(92deg, var(--blue-600) 10%, #6d4ce6 55%, var(--rose-500) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: .82rem; font-weight: 600; color: var(--blue-600);
  background: #fff; border: 1px solid #dbe4ff; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 680px; margin: 0 auto 1.5em; }
.page-hero .lead { margin-left: 0; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 32px auto 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-lg);
}
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 10px 0; background: transparent; color: var(--ink); }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: .88rem; color: var(--muted); }
.hero-tags a { color: var(--ink-2); font-weight: 500; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px auto 0; max-width: 920px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats div { padding: 20px 22px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line-2); }
.stats dt { font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; color: var(--navy-900); }
@media (max-width: 680px) {
  .hero { padding-top: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 12px 14px; }
}

.page-hero { padding: 40px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 860px; }
.page-hero .meta, .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.pt-0 { padding-top: 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.kicker { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-600); margin-bottom: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: start; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 540px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--blue-50); color: var(--blue-600); border: 1px solid #dfe7ff;
}
.card-icon.sm { width: 34px; height: 34px; border-radius: 9px; }
.card-icon.sm .icon { width: 18px; height: 18px; }
.industry-card { display: flex; flex-direction: column; gap: 14px; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; scroll-margin-top: 100px; }
.industry-card:hover { text-decoration: none; border-color: #c7d4fb; box-shadow: var(--shadow); transform: translateY(-2px); }
.industry-card:target { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgb(59 108 246 / .15); }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.card-zh { font-size: .82rem; color: var(--muted); }
.card-text { font-size: .9rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* Region tiles (home) */
.region-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.region-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 190px;
  border-radius: var(--radius); color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  transition: transform .15s, box-shadow .15s;
}
.region-tile::before { content: ''; position: absolute; inset: auto -30% -50% auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgb(59 108 246 / .55), transparent 70%); z-index: -1; }
.region-tile:nth-child(2)::before { background: radial-gradient(circle, rgb(109 76 230 / .55), transparent 70%); }
.region-tile:nth-child(3)::before { background: radial-gradient(circle, rgb(229 57 79 / .5), transparent 70%); }
.region-tile:nth-child(4)::before { background: radial-gradient(circle, rgb(20 184 166 / .5), transparent 70%); }
.region-tile:nth-child(5)::before { background: radial-gradient(circle, rgb(245 158 11 / .45), transparent 70%); }
.region-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.region-tile-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.region-tile-name .zh { color: rgb(255 255 255 / .6); }
.region-tile-cities { font-size: .85rem; color: rgb(255 255 255 / .72); line-height: 1.5; }
.region-tile-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #c7d4ff; }
@media (max-width: 1024px) { .region-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .region-tiles { grid-template-columns: 1fr; } .region-tile { min-height: 0; } }

/* Regions page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .9rem; box-shadow: var(--shadow-sm); }
.chips a:hover { border-color: #c7d4fb; color: var(--blue-600); text-decoration: none; }
.regions-list { padding-bottom: 24px; }
.region { padding: 40px 0; border-top: 1px solid var(--line-2); }
.region:first-child { border-top: 0; padding-top: 8px; }
.region-head { max-width: 720px; margin-bottom: 22px; }
.region-head h2 { margin-bottom: 8px; }
.region-head p { color: var(--muted); margin: 0; }
.city-card { scroll-margin-top: 100px; transition: border-color .15s, box-shadow .15s; }
.city-card:target { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgb(59 108 246 / .15); }
.city-card h3 { margin: 14px 0 6px; }
.city-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.city-top { display: flex; align-items: center; justify-content: space-between; }
.pill { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }

/* Features / split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.features li { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.features h3 { margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 14px; height: 14px; flex: none; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform .2s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq details[open] .faq-toggle::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px;
  border-radius: 20px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800) 60%, #2a3f9a);
}
.cta::after { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgb(229 57 79 / .35), transparent 70%); z-index: -1; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgb(255 255 255 / .78); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-section { padding-top: 0; }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: start; padding: 32px 24px; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form { padding: 32px; }
.form fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.req { color: var(--rose-500); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid #d5dce7; border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgb(59 108 246 / .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose-500); }
.field-error { font-size: .8rem; color: #c81e3a; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); margin-bottom: 20px; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue-600); flex: none; }
.check.invalid { color: #c81e3a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 20px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status { margin: 0; font-size: .92rem; font-weight: 500; }
.form-status.error { color: #c81e3a; }
.form-status.success { color: #0f8a4f; }
.form-success { text-align: center; padding: 48px 24px; }
.form-success .status-icon { margin: 0 auto 16px; }
@media (max-width: 640px) { .form { padding: 22px; } .form-grid { grid-template-columns: 1fr; } }

.form-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.aside-card h2 { font-size: 1.05rem; margin: 12px 0 10px; }
.aside-card > h2:first-child { margin-top: 0; }
.aside-card p { margin: 0 0 .5em; color: var(--ink-2); }
.checklist { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.checklist .icon { width: 18px; height: 18px; color: #0f9d58; margin-top: 3px; }

/* ---------- Prose / article ---------- */
.prose { font-size: 1.04rem; color: var(--ink-2); padding-bottom: 72px; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose .checklist { padding: 0; }
.prose-wide h3 { margin-top: 1.2em; }
.prose-wide p { color: var(--ink-2); }
.prose-cols > div > h3:first-child { margin-top: 0; }
.toc { margin: 8px 0 8px; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1em 0 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 650; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.callout { margin-top: 2.5em; padding: 28px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid #dbe4ff; }
.callout h2 { margin-top: 0; font-size: 1.3rem; }
.callout p { margin: 0; }
.values { margin: 1em 0; }
.values .card h3 { margin: 14px 0 6px; }
.values .card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Status pages */
.status-page { padding: 96px 0; }
.status-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e7f7ee; color: #0f9d58; margin-bottom: 20px; }
.status-icon .icon { width: 32px; height: 32px; }
.status-page .lead { margin-left: auto; margin-right: auto; }
.big-code { font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; margin: 0; line-height: 1; }
.big-code { background: linear-gradient(92deg, var(--blue-600), var(--rose-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Filter */
.filter { display: flex; align-items: center; gap: 10px; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; box-shadow: var(--shadow-sm); }
.filter:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgb(59 108 246 / .15); }
.filter .icon { color: var(--muted); width: 18px; height: 18px; }
.filter input { flex: 1; border: 0; outline: 0; font: inherit; padding: 10px 0; background: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgb(255 255 255 / .7); padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; }
.footer-brand .zh { color: rgb(255 255 255 / .5); font-size: .9rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 500; }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 6px 0 16px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:not(.logo) { color: rgb(255 255 255 / .72); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: rgb(255 255 255 / .5); }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

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

h1, h2, .lead { text-wrap: balance; }
.region-tile-name .zh { display: block; margin-top: 2px; }
