:root {
  --bg: #f6f4ef;
  --bg-elevated: #fffcf7;
  --header-bg: rgba(255, 252, 247, 0.92);
  --border: rgba(70, 90, 120, 0.12);
  --text: #1c2430;
  --muted: #5c6575;
  --accent: #4a7ac9;
  --accent-soft: rgba(74, 122, 201, 0.1);
  --nav-hover: rgba(74, 122, 201, 0.08);
  --orb: rgba(116, 154, 227, 0.18);
  --header-h: 64px;
  --content-max: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-width: 880px;
}

.gradient-orb {
  position: fixed;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  top: 4%;
  right: -4%;
  background: radial-gradient(circle, var(--orb) 0%, transparent 68%);
}

.orb-b {
  bottom: 18%;
  left: -8%;
  background: radial-gradient(circle, rgba(180, 200, 240, 0.32) 0%, transparent 68%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-soft), rgba(116, 154, 227, 0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--nav-hover);
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.page-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  padding: 36px 36px 48px;
}

.page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 14px;
}

.intro-pill .mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  opacity: 0.85;
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.page-head .lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52em;
}

.article-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
  padding-top: 4px;
}

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

.article-body p,
.article-body ul {
  font-size: 0.9375rem;
  color: var(--muted);
}

.article-body ul {
  margin-top: 8px;
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

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

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

strong.hl {
  color: var(--text);
  font-weight: 600;
}

/* 首页：入口卡片 */
.home-lead {
  margin-bottom: 32px;
}

.home-lead h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.home-lead .lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52em;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-card:hover {
  border-color: rgba(74, 122, 201, 0.35);
  box-shadow: 0 12px 28px -18px rgba(74, 122, 201, 0.35);
  transform: translateY(-2px);
}

.home-card .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.home-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.home-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-card .more {
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

footer.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.88);
}

footer.site-footer .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
}

footer.site-footer .inner > span {
  display: inline-flex;
  align-items: center;
  min-height: 1.5em;
}

a.beian-mps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(116, 154, 227) !important;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
}

a.beian-mps:hover {
  text-decoration: underline;
}

a.beian-mps .beian-mps-icon {
  height: 1.125rem;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

a.jicpb {
  display: inline-flex;
  align-items: center;
  color: rgb(116, 154, 227) !important;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
}

a.jicpb:hover {
  text-decoration: underline;
}
