:root {
  --ink: #14213d;
  --muted: #64748b;
  --blue: #123e91;
  --blue-light: #eaf0ff;
  --paper: #f7f8f4;
  --line: #dfe3dc;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
.site-header {
  width: min(1160px, calc(100% - 48px));
  height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; letter-spacing: .03em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
nav { display: flex; gap: 28px; }
nav a { color: #475569; font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--blue); }
main { width: min(1160px, calc(100% - 48px)); margin: auto; }
.hero { min-height: 600px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; padding: 76px 0; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.12; letter-spacing: -.045em; }
h1 span { color: var(--blue); }
.intro { max-width: 650px; margin: 28px 0 30px; color: #526079; font-size: 17px; }
.primary-link { display: inline-flex; gap: 18px; align-items: center; color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 5px; }
.note-card { padding: 26px; background: var(--ink); color: #e2e8f0; border-radius: 8px; box-shadow: 20px 20px 0 var(--blue-light); font: 14px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; transform: rotate(1.2deg); }
.note-card p { margin: 8px 0; }
.note-card b { color: #93c5fd; font-weight: 400; }
.note-card em { color: #86efac; font-style: normal; }
.note-card strong { color: #fda4af; }
.comment { color: #8190a6; }
.code-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: #fb7185; }
.code-dots i:nth-child(2) { background: #fbbf24; }
.code-dots i:nth-child(3) { background: #4ade80; }
.articles-section { padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.section-heading h2, .about h2 { margin: 0; font-size: 36px; letter-spacing: -.03em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card { min-height: 295px; padding: 30px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(20,33,61,.07); }
.article-card.featured { background: var(--blue); color: white; border-color: var(--blue); }
.article-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.featured .article-meta { color: #c8d7ff; }
.article-meta span { text-transform: uppercase; font-weight: 700; }
.article-card h3 { max-width: 530px; margin: 24px 0 12px; font-size: 24px; line-height: 1.45; }
.article-card h3 a { text-decoration: none; }
.article-card p { margin: 0; color: var(--muted); }
.featured p { color: #dbe5ff; }
.read-more { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 700; text-decoration: none; }
.about { padding: 70px 0; border-top: 1px solid var(--line); }
.about > p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 17px; text-align: center; }
footer { width: min(1160px, calc(100% - 48px)); margin: auto; padding: 28px 0 36px; display: flex; justify-content: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer a { text-decoration: none; }

.article-main { width: min(760px, calc(100% - 48px)); padding: 74px 0 100px; }
.article-header { margin-bottom: 54px; }
.article-header .article-meta { justify-content: flex-start; gap: 18px; margin-bottom: 20px; }
.article-header h1 { font-size: clamp(36px, 6vw, 58px); }
.article-header .lead { color: var(--muted); font-size: 19px; margin-top: 22px; }
.article-body h2 { margin: 52px 0 14px; font-size: 28px; line-height: 1.35; }
.article-body h3 { margin: 34px 0 10px; font-size: 20px; }
.article-body p, .article-body li { color: #3f4c63; font-size: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body pre { overflow-x: auto; margin: 24px 0; padding: 22px; border-radius: 6px; background: var(--ink); color: #e2e8f0; font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body code:not(pre code) { padding: 2px 6px; background: var(--blue-light); border-radius: 3px; color: var(--blue); }
.article-body blockquote { margin: 30px 0; padding: 1px 22px; border-left: 3px solid var(--blue); background: #eef2f8; }
.article-end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-end a { color: var(--blue); font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 32px, 1160px); }
  .site-header { height: 70px; }
  nav { gap: 16px; }
  nav a { font-size: 13px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 64px 0 76px; }
  .note-card { transform: none; box-shadow: 10px 10px 0 var(--blue-light); }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 270px; }
  .article-main { width: min(100% - 32px, 760px); padding-top: 55px; }
}
