:root {
  color-scheme: light;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #edf2f7;
  --text: #152129;
  --muted: #586775;
  --line: #d8e0e8;
  --accent: #16624c;
  --accent-strong: #0f4b3a;
  --accent-soft: #dfece6;
  --accent-blue: #2a5d8f;
  --accent-blue-strong: #1f4b7a;
  --accent-blue-soft: #e7f0fa;
  --accent-amber: #b97a1f;
  --accent-amber-strong: #8a5b16;
  --accent-amber-soft: #f8ebd7;
  --shadow: 0 16px 40px rgba(20, 32, 29, 0.06);
  --radius: 8px;
  --radius-sm: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.post-title a:hover,
.post-title a:focus-visible {
  color: var(--accent-strong);
}

.page-shell {
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.post-card,
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px;
}

.hero-panel {
  padding: 26px;
  align-self: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--accent-blue-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.article h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
}

.hero-lead {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 16px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chips span,
.tag-list a,
.tag-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
}

.hero-chips span:nth-child(3n + 1),
.tag-list a:nth-child(3n + 1),
.tag-empty {
  background: var(--accent-blue-soft);
  color: var(--accent-blue-strong);
}

.hero-chips span:nth-child(3n + 2),
.tag-list a:nth-child(3n + 2) {
  background: var(--accent-amber-soft);
  color: var(--accent-amber-strong);
}

.hero-chips span:nth-child(3n + 3),
.tag-list a:nth-child(3n + 3) {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.focus-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.focus-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e1e8ef;
  border-left: 3px solid var(--accent-blue);
}

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

.section-heading h2 {
  font-size: 20px;
  line-height: 1.2;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  padding: 22px;
}

.post-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dot {
  color: #93a49d;
}

.post-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.post-excerpt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.pager {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  color: var(--muted);
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px;
}

.article-header {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.article h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.article-content {
  font-size: 16px;
  color: #21302b;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
  margin: 0 0 1em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.4em 0 0.6em;
  line-height: 1.25;
}

.article-content blockquote {
  padding: 14px 16px;
  border-left: 4px solid var(--accent-blue);
  background: #f7fafc;
  color: var(--muted);
}

.article-content code {
  padding: 0.15em 0.35em;
  border-radius: 6px;
  background: #eef4f1;
  font-size: 0.95em;
}

.article-content pre {
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #11201b;
  color: #e7f0eb;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.article-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a:hover,
.tag-list a:focus-visible {
  background: #d9e8f4;
}

.site-footer {
  border-top: 1px solid rgba(216, 224, 232, 0.95);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  padding: 22px 0 34px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 20px, 1120px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .page-shell {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero-copy,
  .hero-panel,
  .post-card,
  .article {
    padding: 20px;
  }

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