:root {
  --ink: #18202b;
  --muted: #697386;
  --line: #dce2ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --accent: #c83e3e;
  --teal: #147d72;
  --blue: #2d5f91;
  --content: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 234, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.nav-wrap {
  width: min(calc(100% - 32px), var(--content));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.brand-mark i { display: block; background: var(--accent); }
.brand-mark i:nth-child(2) { background: var(--teal); }
.brand-mark i:nth-child(3) { background: var(--blue); }
.brand-mark i:nth-child(4) { background: #e3a12f; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: #495467; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.hero {
  width: min(calc(100% - 32px), var(--content));
  min-height: 430px;
  margin: 0 auto;
  padding: 72px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.pulse-visual {
  width: 100%;
  height: 92px;
  margin-top: 36px;
  display: flex;
  align-items: end;
  gap: 5px;
  overflow: hidden;
  border-bottom: 1px solid #aeb7c4;
}

.pulse-visual span {
  flex: 1;
  min-width: 4px;
  max-width: 18px;
  height: var(--h);
  background: var(--c, var(--blue));
  opacity: 0.82;
}

.content-wrap {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.section-head {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2, .page-title {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  letter-spacing: 0;
}

.section-head h2 { font-size: 28px; }
.section-head span { color: var(--muted); font-size: 13px; }

.post-list { border-top: 2px solid var(--ink); }

.post-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 88px;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.post-row:hover .post-title { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 13px; }
.post-category { color: var(--teal); font-weight: 700; }
.post-title { margin: 0 0 7px; font-size: 21px; line-height: 1.45; letter-spacing: 0; }
.post-excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.post-read { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }

.page-intro { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.page-title { font-size: 42px; line-height: 1.25; }
.page-intro p { max-width: 680px; margin: 14px 0 0; color: var(--muted); }

.article-shell { width: min(calc(100% - 32px), 760px); margin: 0 auto; padding: 56px 0 80px; }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 14px 0 18px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 42px; line-height: 1.35; letter-spacing: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.article-body { padding-top: 22px; }
.article-body p { margin: 0 0 1.35em; font-size: 18px; line-height: 1.95; }
.article-back { display: inline-block; margin-top: 26px; color: var(--blue); font-size: 14px; }

.prose { max-width: 760px; padding-top: 28px; }
.prose h2 { margin: 38px 0 10px; font-size: 22px; }
.prose p { margin: 0 0 18px; color: #3c4655; }
.contact-line { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-wrap { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding: 28px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.empty { padding: 60px 0; color: var(--muted); text-align: center; }

@media (max-width: 700px) {
  .nav-wrap { min-height: 58px; }
  .main-nav { gap: 14px; }
  .main-nav a:nth-child(2) { display: none; }
  .brand { font-size: 14px; }
  .brand-mark { width: 24px; height: 24px; }
  .hero { min-height: 390px; padding: 54px 0 38px; }
  .hero h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .pulse-visual { height: 72px; margin-top: 28px; }
  .content-wrap { padding-top: 34px; }
  .post-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .post-meta { display: flex; gap: 12px; }
  .post-title { font-size: 19px; }
  .post-read { text-align: left; }
  .page-title, .article-head h1 { font-size: 32px; }
  .article-shell { padding-top: 38px; }
  .article-body p { font-size: 17px; }
  .footer-wrap { flex-direction: column; gap: 10px; }
}

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