:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --panel: #fffefa;
  --ink: #1c2921;
  --muted: #4d5d52;
  --line: #d9ded4;
  --green: #284b3a;
  --sage: #e5ece1;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
p { line-height: 1.8; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: -4rem; background: var(--panel); padding: .7rem; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; color: var(--ink); }
.header-inner nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.header-inner nav a { text-decoration: none; font-size: .92rem; }
.header-inner nav a:hover { text-decoration: underline; }
.nav-store { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(52px, 9vw, 105px) 0 clamp(48px, 7vw, 85px);
}
.eyebrow, .tag { color: var(--green); font-size: .83rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 .85rem; }
h1, h2, h3 { line-height: 1.3; }
.hero h1 { margin: 0; font-size: clamp(2.45rem, 6vw, 5rem); letter-spacing: -.05em; }
.intro { max-width: 36rem; color: var(--muted); font-size: 1.12rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  width: fit-content;
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  background: var(--green);
  color: white;
  font-weight: 650;
  line-height: 1.4;
}
.button:hover { background: #1e3a2d; }
.feature, .card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 34px); }
.feature { background: var(--sage); }
.feature h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); margin: 0; }
.feature h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.read { font-size: .9rem; font-weight: 700; }
.article-list { padding-bottom: 65px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-head h2 { margin: 0 0 .8rem; font-size: 1.7rem; }
.section-head span { color: var(--muted); font-size: .9rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); display: flex; flex-direction: column; }
.card h3 { font-size: 1.16rem; margin: 0; }
.card p:not(.tag) { font-size: .91rem; color: var(--muted); }
.card .read { margin-top: auto; }
.article-shell { display: grid; grid-template-columns: minmax(0, 720px) minmax(175px, 250px); justify-content: space-between; gap: clamp(24px, 5vw, 60px); }
.prose { max-width: 720px; padding-block: clamp(40px, 6vw, 72px); overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; margin: 1rem 0; }
.prose h2 { font-size: 1.35rem; margin-top: 2.05rem; }
.breadcrumb { display: flex; gap: .55rem; font-size: .9rem; }
.byline { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding-bottom: 1.2rem; }
.toc { position: sticky; top: 24px; align-self: start; margin-top: clamp(44px, 8vw, 92px); border-left: 1px solid var(--line); padding-left: 18px; }
.toc ol, .sources ul, .related ul { padding-inline-start: 1.3rem; line-height: 1.9; }
.toc li { margin: .5rem 0; }
.store-note { border: 1px solid var(--line); padding: 1rem 1.2rem; background: var(--sage); border-radius: 12px; margin-top: 2rem; }
.store-note p { margin: 0 0 .65rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { display: block; }
  .toc { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 8px; }
  .header-inner nav { gap: 14px; }
  .hero, .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .footer-inner { flex-wrap: wrap; padding: .8rem 0; }
}
