:root {
  --bg: #f7f1e8;
  --bg-deep: #efe4d3;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #162030;
  --ink-soft: #5e6978;
  --line: rgba(22, 32, 48, 0.1);
  --primary: #0f3c87;
  --primary-strong: #0b2d67;
  --accent: #c1272d;
  --gold: #c6a15b;
  --gold-soft: #f7ead0;
  --chip: rgba(239, 243, 250, 0.94);
  --shadow: 0 24px 60px rgba(18, 39, 72, 0.12);
  --shadow-soft: 0 10px 30px rgba(18, 39, 72, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(193, 39, 45, 0.12), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(15, 60, 135, 0.14), transparent 30%),
    linear-gradient(180deg, #f9f3ea 0%, #f4ecdf 100%);
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 75%);
  opacity: 0.18;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 232, 0.84);
  border-bottom: 1px solid rgba(15, 60, 135, 0.08);
}

.site-header .container {
  display: grid;
  gap: 14px;
  padding: 16px 0 14px;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), #1b5db8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.header-note {
  margin: 0;
  max-width: 320px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.top-nav::-webkit-scrollbar {
  height: 6px;
}

.top-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 60, 135, 0.18);
  border-radius: 999px;
}

.top-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(15, 60, 135, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--chip);
  color: var(--primary-strong);
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.top-nav a:hover {
  transform: translateY(-1px);
  background: #e4ecfb;
  border-color: rgba(15, 60, 135, 0.2);
}

.top-nav strong {
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 60, 135, 0.1);
}

.main-content {
  padding: 28px 0 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 95% 90%, rgba(198, 161, 91, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(12, 45, 100, 0.98), rgba(15, 60, 135, 0.95) 48%, rgba(193, 39, 45, 0.88));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 12px, transparent 12px, transparent 24px);
  opacity: 0.6;
}

.hero.small {
  padding: 24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-grid.compact {
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-symbol {
  display: inline-flex;
  align-self: start;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 234, 208, 0.34);
  background: rgba(247, 234, 208, 0.08);
  color: var(--gold-soft);
  font-size: 12px;
}

.hero h1 {
  margin: 2px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero-text,
.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-action.primary {
  background: linear-gradient(180deg, var(--gold), #b78836);
  border-color: rgba(255, 255, 255, 0.12);
  color: #1e1a12;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel.single {
  align-self: center;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-stat strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.section-block {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-family: "Noto Serif SC", serif;
  font-size: 26px;
  line-height: 1.2;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}

.section-lead {
  margin: 0;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: right;
}

.breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  grid-column: span 4;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(22, 32, 48, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(18, 39, 72, 0.11);
  border-color: rgba(15, 60, 135, 0.18);
}

.story-card {
  min-height: 260px;
}

.section-grid .card {
  grid-column: span 3;
}

.section-card {
  border-top: 3px solid var(--gold);
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 60, 135, 0.08);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.card h2,
.card h3 {
  margin: 0;
  line-height: 1.42;
  font-size: 22px;
}

.card h3 {
  font-size: 20px;
}

.card h2 a,
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--primary);
}

.excerpt {
  color: var(--ink-soft);
  font-size: 14px;
}

.excerpt p {
  margin: 0;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.btn-link:hover {
  color: #9f1f25;
}

.article {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 32, 48, 0.08);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.article-head {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.article-title {
  display: grid;
  gap: 10px;
}

.article h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3;
}

.source-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 246, 231, 0.95), rgba(248, 251, 255, 0.95));
  border: 1px solid rgba(198, 161, 91, 0.3);
  font-size: 13px;
}

.source-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 60, 135, 0.08);
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.source-link:hover {
  background: rgba(15, 60, 135, 0.14);
}

.prose {
  font-size: 17px;
}

.prose p,
.prose li,
.prose td,
.prose th {
  color: #1b2530;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.35;
}

.prose img {
  border-radius: 12px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  background: #fff;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

details {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 60, 135, 0.22);
  background: rgba(248, 251, 255, 0.88);
}

summary {
  cursor: pointer;
  color: var(--primary-strong);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(15, 60, 135, 0.1);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
}

.site-footer .container {
  padding: 18px 0 22px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .cards .card {
    grid-column: span 6;
  }

  .section-grid .card {
    grid-column: span 4;
  }

  .hero-grid,
  .hero-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel.single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100vw - 20px, 1200px);
  }

  .site-header .container {
    gap: 12px;
    padding: 14px 0 12px;
  }

  .header-shell {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    width: 100%;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .header-note {
    max-width: none;
    text-align: left;
  }

  .top-nav {
    margin-right: -4px;
    padding-right: 4px;
  }

  .main-content {
    padding: 18px 0 44px;
  }

  .hero,
  .article {
    padding: 18px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-action {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 0;
    background: none;
    border: 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-lead {
    text-align: left;
  }

  .cards {
    gap: 14px;
  }

  .cards .card,
  .section-grid .card {
    grid-column: 1 / -1;
  }

  .card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .story-card {
    min-height: unset;
  }

  .story-meta {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .card h2,
  .card h3 {
    font-size: 18px;
  }

  .article h1 {
    font-size: 28px;
  }

  .prose {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    width: 44px;
    height: 32px;
  }

  .top-nav a {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-symbol,
  .hero-kicker {
    font-size: 11px;
  }

  .article {
    padding: 18px 16px;
  }

  .article h1 {
    font-size: 25px;
  }

  .source-line {
    width: 100%;
    align-items: start;
    flex-direction: column;
  }

  .source-link {
    width: 100%;
    justify-content: center;
  }
}
