/* Professional Traditional Chinese Report Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;600;700&display=swap');

:root {
  --ink: #1a1c1e;
  --ink-soft: #3d4248;
  --ink-muted: #6b7178;
  --paper: #f7f5f1;
  --paper-elevated: #ffffff;
  --line: #d8d3cb;
  --accent: #0c4a6e;
  --accent-soft: #e8f1f6;
  --accent-warm: #9a3412;
  --success: #166534;
  --danger: #991b1b;
  --warn: #92400e;
  --max-width: 720px;
  --serif: 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans TC', 'Source Han Sans TC', 'PingFang TC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(12, 74, 110, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 20%, rgba(154, 52, 18, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #f0ece4 0%, var(--paper) 28%, #f4f2ed 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* —— Layout —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.article-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* —— Hero —— */
.report-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.report-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.45rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.report-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.report-meta span::before {
  content: '';
}

.meta-item strong {
  color: var(--ink-soft);
  font-weight: 500;
}

/* —— Typography —— */
.article h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 2.75rem 0 1rem;
  color: var(--ink);
  padding-top: 0.5rem;
}

.article h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.article h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink-soft);
}

.article p {
  margin-bottom: 1.15rem;
  text-align: justify;
  text-justify: inter-ideograph;
}

.article ul, .article ol {
  margin: 0 0 1.25rem 1.35rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.article li::marker {
  color: var(--accent);
}

.article strong {
  font-weight: 700;
  color: var(--ink);
}

.article a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article blockquote {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.article blockquote cite {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--ink-muted);
}

/* —— Callouts & tables —— */
.callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.callout-title {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callout.risk {
  border-color: #f0c4b8;
  background: #fdf6f3;
}

.callout.risk .callout-title { color: var(--accent-warm); }

.callout.insight {
  border-color: #b8d4e3;
  background: #f4f9fc;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 560px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  padding: 1rem 0.9rem;
  text-align: center;
}

.stat-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

.toc {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
}

.toc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.toc ol {
  margin-left: 1.2rem;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

.footnote {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footnote p { margin-bottom: 0.5rem; text-align: left; }

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.article-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.article-footer a:hover { text-decoration: underline; }

/* —— Index page —— */
.index-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.index-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.index-hero p {
  max-width: 34em;
  margin: 0 auto 0.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.category-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
}

.category-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.02em;
}

.category-nav a:hover {
  border-bottom-color: var(--accent);
}

.report-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 5rem;
  display: grid;
  gap: 2.25rem;
}

.category-block {
  display: grid;
  gap: 0.85rem;
}

.category-header {
  padding: 0.25rem 0.15rem 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}

.category-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.category-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.report-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 1.6rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 28, 30, 0.06);
}

.report-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 2rem;
}

.report-card h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.report-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

.report-card .arrow {
  font-size: 1.25rem;
  color: var(--accent);
  align-self: center;
}

@media (max-width: 560px) {
  .report-card {
    grid-template-columns: auto 1fr;
  }
  .report-card .arrow { display: none; }
  html { font-size: 16.5px; }
}

/* print */
@media print {
  body { background: white; }
  .site-header { position: static; }
  .article-wrap { padding: 0; max-width: 100%; }
  .stat-card, .callout, .toc { break-inside: avoid; }
}
