:root {
  --bg: #f7f5f0;
  --bg-card: #fff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --border: #e7e5e4;
  --radius: 12px;
  --font: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0f766e;
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 38em;
  margin: 0 0 1.75rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #0f766e;
  color: #fff;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
}

.section {
  padding: 2rem 0 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section h2 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.more {
  font-size: 0.88rem;
  text-decoration: none;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.post-card time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.post-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #0f766e;
  font-weight: 600;
}

.about-teaser {
  border-top: 1px solid var(--border);
}

.about-teaser h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.article {
  padding: 2.5rem 0 3rem;
}

.article h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.article h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.article p,
.article li {
  color: var(--text-muted);
}

.article ul {
  padding-left: 1.25rem;
}

.article code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f5f5f4;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article pre {
  background: #1c1917;
  color: #e7e5e4;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 1rem 0 1.25rem;
}

.article pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}

.article-table th,
.article-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.article-table td {
  color: var(--text-muted);
}

.article ol {
  padding-left: 1.35rem;
}

.back {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0.25rem 0;
}

.beian {
  font-size: 0.8rem;
}

.post-list-page {
  margin-top: 1.5rem;
}
