/* GreenEyesChina.org — editorial stylesheet (no web fonts, no JS) */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b2420;
  --ink-2: #3a4540;
  --muted: #5f6a65;
  --line: #e3e0d8;
  --green: #2f6b4f;
  --green-dark: #1f4d38;
  --green-soft: #e9f1ec;
  --sand: #f3efe6;
  --focus: #b5651d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.wrap.wide { width: min(1040px, 100% - 32px); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--green-dark); text-decoration: none; font: 600 1.18rem/1 var(--serif); letter-spacing: .005em; }
.logo-light { color: var(--green); }
.logo-tld { color: var(--muted); font-weight: 400; }
.logo-mark { color: var(--green); flex: none; }
.nav-desktop { display: none; gap: 1.35rem; align-items: center; font-size: .95rem; }
.nav-desktop a, .nav-mobile nav a { color: var(--ink-2); text-decoration: none; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; text-underline-offset: .35em; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; }
.nav-mobile summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .8rem; font-size: .95rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--green-soft); }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; padding: .5rem 16px 1rem; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.nav-mobile nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.nav-mobile nav a.lang { border: 0; padding-left: 0; }
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.kicker { font: 600 .78rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin: 0 0 .5rem; }
.kicker a { color: inherit; text-decoration: none; }
.dek { font: 400 1.25rem/1.5 var(--serif); color: var(--ink-2); margin: 0 0 1rem; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.2rem 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: #a3aba6; }
.crumbs a { color: var(--muted); }

/* Article */
.article-head { padding: 1.5rem 0 1.5rem; }
.hero-figure { margin: 0 0 2rem; }
.hero-figure img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sand); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .55rem; line-height: 1.45; }
.credit, .credit a { color: #5f6a65; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--green); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose code { background: var(--sand); padding: .1em .3em; border-radius: 4px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose #references + ol, .prose #references + ul, .prose #参考资料 + ol, .prose #参考资料 + ul { font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--green-soft); }
.notice { background: var(--sand); border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 1rem 1.2rem; border-radius: 6px; margin: 0 0 2rem; font-size: .98rem; }

/* Cards & grids */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: #c9d6ce; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sand); }
.card-noimg { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-soft), var(--sand)); }
.card-noimg span { font: 600 1.1rem var(--serif); color: var(--green); letter-spacing: .04em; }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card-title { font-size: 1.2rem; margin: 0 0 .45rem; line-height: 1.25; }
.card-link:hover .card-title { color: var(--green-dark); text-decoration: underline; text-underline-offset: .2em; }
.card-summary { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }

/* Home */
.home-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hero-text h1 { margin-top: 0; }
.hero-intro p { font-size: 1.12rem; color: var(--ink-2); }
.hero-grid .hero-figure { margin: 0; }
.btn { display: inline-block; background: var(--green); color: #fff; padding: .75rem 1.15rem; border-radius: 8px; text-decoration: none; font-weight: 600; margin: .25rem .4rem .25rem 0; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border: 1px solid #b9cbbf; }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.home-section { padding: 3rem 0 .5rem; }
.section-head { display: grid; gap: .3rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.archive-band { margin-top: 3.5rem; background: var(--green-soft); border-radius: var(--radius); padding: 2rem clamp(1.2rem, 4vw, 3rem); }
.archive-band h2 { margin-top: 0; }
.archive-band p { max-width: 70ch; }

/* Hubs */
.hub-head { padding: 1rem 0 2rem; }
.hub-intro { max-width: 70ch; color: var(--ink-2); }
.related { padding: 2rem 0 1rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.related h2 { margin-top: 1rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.credits td img { width: 160px; border-radius: 6px; }

/* Footer */
.site-footer { margin-top: 4rem; background: #17201c; color: #cfd8d3; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e8f1ec; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .5rem; font: 600 1.1rem var(--serif); color: #fff; }
.footer-brand .logo-mark { color: #8fc2a6; }
.footer-h { font-weight: 600; color: #fff; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-note { border-top: 1px solid #2c3833; margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #a9b5af; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .related { display: none; } body { background: #fff; } }
.pad { padding: 3rem 0; }
