:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .12);
  --paper: #f7f8fc;
  --panel: #ffffff;
  --accent: #14b8a6;
  --accent-2: #f97316;
  --accent-3: #2563eb;
  --accent-4: #e11d48;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .16), transparent 30%),
    radial-gradient(circle at top right, rgba(249, 115, 22, .16), transparent 28%),
    radial-gradient(circle at 85% 68%, rgba(225, 29, 72, .12), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #eef2ff 48%, #f8fafc 100%);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
}
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 38px clamp(20px, 5vw, 72px) 24px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, .32), transparent 24%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #0f766e 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.eyebrow {
  margin: 0 0 8px;
  color: #fbbf24;
  font: 700 12px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .92;
  letter-spacing: 0;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
nav a {
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
nav a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}
nav a.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}
section {
  margin: 0 0 32px;
}
.lede {
  max-width: 780px;
  color: #334155;
  font-size: 20px;
}
.chart-note {
  margin: 10px 0 0;
  color: #475569;
  font: 14px/1.45 ui-sans-serif, system-ui, sans-serif;
}
.insight {
  padding: 18px 20px;
  border: 1px solid rgba(20, 184, 166, .18);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
.insight h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.insight ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  font-size: 17px;
}
.insight li + li {
  margin-top: 6px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.95) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-4) 100%);
}
.metric span {
  display: block;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}
.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.chart {
  margin: 0;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}
.chart img {
  display: block;
  width: 100%;
  height: auto;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  font-family: ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
th:first-child, td:first-child { text-align: left; }
th {
  color: #0f172a;
  font-size: 13px;
  background: linear-gradient(180deg, #e0f2fe 0%, #ecfeff 100%);
}
footer {
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
@media (max-width: 820px) {
  body {
    line-height: 1.45;
    background: #f8fafc;
  }
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 24px 16px 16px;
  }
  .eyebrow {
    display: none;
  }
  h1 {
    font-size: 32px;
    line-height: 1.08;
  }
  h2 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.15;
  }
  nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: none;
  }
  main {
    width: min(100% - 24px, 1120px);
    padding: 22px 0 44px;
  }
  section {
    margin-bottom: 20px;
  }
  .lede {
    display: -webkit-box;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: #334155;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .chart-note {
    display: none;
  }
  .insight {
    padding: 14px 14px;
    border-radius: 12px;
    box-shadow: none;
  }
  .insight h2 {
    font-size: 18px;
  }
  .insight ul {
    padding-left: 18px;
    font-size: 15px;
  }
  .insight li {
    display: none;
  }
  .insight li:first-child {
    display: list-item;
  }
  .metric-grid, .chart-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    box-shadow: none;
  }
  .metric strong {
    margin-top: 0;
    font-size: 24px;
  }
  .chart {
    padding: 8px;
    border-radius: 12px;
    box-shadow: none;
  }
  .table-scroll,
  section:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 640px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: none;
  }
  th, td {
    padding: 8px 9px;
    white-space: nowrap;
  }
  footer {
    padding: 18px 16px;
    font-size: 13px;
  }
}
