:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-alt: #eef4f8;
  --line: #d8e3ec;
  --text: #163042;
  --muted: #587286;
  --brand: #1f6b93;
  --brand-deep: #0f4d6d;
  --accent: #d7ebf5;
  --shadow: 0 18px 40px rgba(18, 52, 74, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
p, ul { margin: 0; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 248, 251, 0.94);
  border-bottom: 1px solid rgba(216, 227, 236, 0.9);
  backdrop-filter: blur(12px);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; font-weight: 700; letter-spacing: 1px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.site-nav a:hover, .text-link:hover { color: var(--brand-deep); }
.site-nav a[aria-current="page"] {
  color: var(--brand-deep);
  font-weight: 700;
}

.hero-section, .page-hero {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef5f9 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 34px; padding: 72px 0 64px;
}
.page-hero .container { padding: 68px 0 56px; }
.eyebrow, .kicker, .panel-title, .article-card span:first-child {
  color: var(--brand-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: clamp(34px, 5vw, 54px); max-width: 12ch; margin: 12px 0 20px; }
.page-hero h1 { max-width: 16ch; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 14px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.hero-summary, .section-intro { color: var(--muted); max-width: 780px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; transition: 0.2s ease;
}
.button-primary { background: var(--brand-deep); color: #fff; }
.button-primary:hover { background: #0c3f59; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--brand-deep); }
.button-secondary:hover { background: rgba(215, 235, 245, 0.55); }
.button.wide { width: 100%; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-list span {
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--brand-deep); font-size: 13px;
}
.tag-list.compact { margin-top: 18px; }

.hero-panel, .panel, .card, .metric-card, .cta-panel, .article-card, .stack-list article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-panel { padding: 24px; display: grid; gap: 16px; align-content: start; }
.hero-panel-block { padding: 18px; background: var(--surface-alt); border-radius: 16px; }
.hero-panel-block strong { display: block; margin-bottom: 8px; }
.hero-panel-block p { color: var(--muted); }

.section { padding: 72px 0; }
.section-compact { padding: 26px 0 0; }
.section-slate { background: #edf4f8; border-top: 1px solid rgba(216, 227, 236, 0.9); border-bottom: 1px solid rgba(216, 227, 236, 0.9); }
.section-head, .with-link { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.text-link { color: var(--brand-deep); font-weight: 700; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-1 { grid-template-columns: 1fr; }
.split-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }

.metric-card, .card, .panel, .article-card, .cta-panel, .stack-list article { padding: 24px; }
.panel-muted { background: #f9fcfe; }
.metric-card strong { display: block; font-size: 28px; color: var(--brand-deep); margin-bottom: 4px; }
.metric-card span { display: block; font-weight: 700; margin-bottom: 8px; }
.metric-card p, .card p, .panel p, .article-card p, .stack-list p, .plain-list { color: var(--muted); }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.card ul li + li { margin-top: 8px; }
.card-action { display: inline-flex; margin-top: 16px; color: var(--brand-deep); font-weight: 700; }
.card-action::after { content: " →"; }
.detail-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; }
.detail-meta { display: grid; gap: 14px; }
.detail-meta .panel { padding: 20px; }
.timeline { counter-reset: step; display: grid; gap: 16px; margin-top: 22px; }
.timeline article { position: relative; padding-left: 58px; }
.timeline article::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 22px; color: var(--brand-deep); font-weight: 800; }
.stack-list { display: grid; gap: 14px; margin-top: 20px; }
.plain-list { padding-left: 18px; }
.plain-list li + li { margin-top: 10px; }
.article-list { display: grid; gap: 18px; margin-top: 24px; }
.article-card h3 { font-size: 22px; margin: 10px 0 8px; }
.cta-section { padding-top: 0; }
.cta-panel { display: flex; justify-content: space-between; gap: 26px; align-items: center; background: linear-gradient(135deg, #fff, #eef6fa); }

.site-footer { background: #123246; color: rgba(255,255,255,0.86); margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 34px 0 24px; }
.footer-grid strong, .footer-bottom { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; gap: 20px; padding: 16px 0 26px; font-size: 13px; }

@media (max-width: 960px) {
  .hero-grid, .split-grid, .detail-layout, .grid-4, .grid-3, .grid-2, .footer-grid, .cta-panel { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 56px; }
  .topbar, .section-head, .with-link, .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { max-width: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-nav { gap: 12px; }
  .section, .page-hero .container { padding: 52px 0; }
  .metric-card, .card, .panel, .article-card, .cta-panel, .stack-list article { padding: 20px; }
}

/* Footer consistency polish */
.footer-grid { grid-template-columns: 1.25fr 0.8fr 0.95fr 1.15fr !important; gap: 28px !important; padding: 38px 0 26px !important; }
.footer-grid p { color: rgba(255,255,255,0.72); margin-top: 10px; }
.footer-links { display: grid; gap: 8px; margin-top: 12px; }
.footer-links a { color: rgba(255,255,255,0.82); }
.footer-links a:hover { color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr !important; } }
