:root {
  color-scheme: light dark;
  --page: #f3f6fa;
  --surface: #ffffff;
  --soft: #f7f9fc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --cyan: #0891b2;
  --hero: #07101f;
  --hero-2: #0d1b34;
  --shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--page); }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, .08), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(6, 182, 212, .06), transparent 28rem),
    var(--page);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(22px) saturate(1.2);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  object-fit: cover;
  color: white;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 9px 22px rgba(37, 99, 235, .22);
}

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--blue-strong);
  background: #eff6ff;
}

.hero {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: clamp(48px, 7vw, 76px);
  color: white;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, .25), transparent 28rem),
    linear-gradient(135deg, var(--hero), var(--hero-2));
  box-shadow: 0 30px 78px rgba(15, 23, 42, .18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #a5f3fc;
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 999px;
  background: rgba(8, 47, 73, .34);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }

h1 {
  max-width: 870px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #b7c5d8;
  font-size: clamp(15px, 2vw, 18px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-meta span {
  padding: 8px 12px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: rgba(15, 23, 42, .44);
  font-size: 12px;
  font-weight: 700;
}

.layout {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.content, .sidebar-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content { padding: clamp(24px, 4vw, 44px); }

.content h2 {
  margin: 44px 0 14px;
  font-size: clamp(25px, 3vw, 34px);
}

.content h2:first-child { margin-top: 0; }

.content h3 { margin: 27px 0 8px; font-size: 20px; }

.content p, .content li { color: #475569; }

.content ul, .content ol { padding-left: 22px; }

.content li + li { margin-top: 7px; }

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  color: #475569;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
  font-size: 13px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}

.item-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.item-card h3 { margin: 0 0 8px; }
.item-card p { margin: 0 0 14px; font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.tags span {
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 10px;
  font-weight: 750;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  color: white;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.button.secondary {
  color: var(--blue-strong);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  box-shadow: none;
}

.table-wrap { margin: 22px 0; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--text); background: var(--soft); }
td { color: #475569; }

.sidebar { position: sticky; top: 92px; display: grid; gap: 14px; }
.sidebar-card { padding: 20px; }
.sidebar-card strong { display: block; margin-bottom: 9px; }
.sidebar-card a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.sidebar-card a:hover { color: var(--blue-strong); }

.breadcrumbs {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a { color: var(--blue-strong); text-decoration: none; }

.site-footer {
  padding: 30px 16px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .header-inner, .hero, .breadcrumbs, .layout { width: min(100% - 24px, 1160px); }
  .hero { margin-top: 14px; padding: 36px 22px; border-radius: 22px; }
  h1 { font-size: 39px; }
  .content { padding: 22px; border-radius: 18px; }
  .card-grid, .sidebar { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #070b12;
    --surface: #101722;
    --soft: #151e2b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, .16);
  }
  .site-header { background: rgba(7, 11, 18, .9); border-color: var(--line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: #93c5fd; background: rgba(37, 99, 235, .14); }
  .content p, .content li, td, .notice { color: #b7c2d0; }
  .notice { border-color: rgba(56, 189, 248, .22); background: rgba(14, 116, 144, .12); }
  .tags span { background: var(--surface); }
  .button.secondary { color: #93c5fd; border-color: rgba(96, 165, 250, .22); background: rgba(37, 99, 235, .12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
