:root {
  --ink: #123f36;
  --ink-2: #1f584b;
  --paper: #f4efe4;
  --card: #fffdf8;
  --terracotta: #b9653e;
  --gold: #c99d49;
  --muted: #68756f;
  --line: rgba(18, 63, 54, 0.16);
  --shadow: 0 24px 60px rgba(13, 49, 41, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 16px;
}

button, input { font: inherit; }
a { color: inherit; }
.masthead { max-width: 1240px; margin: 0 auto; padding: 22px 28px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: .06em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--paper); background: var(--ink); border-radius: 50% 50% 50% 12%; }

.hero { position: relative; min-height: 310px; margin-top: 20px; border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,34,28,.92) 0%, rgba(6,34,28,.72) 42%, rgba(6,34,28,.08) 76%); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 1; width: min(860px, 86%); padding: 52px 58px; color: white; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .22em; }
.hero .eyebrow { color: #e6bf82; }
h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 4.15rem); line-height: 1.14; letter-spacing: -.035em; }
.headline-line { display: block; white-space: nowrap; }
.intro { max-width: 520px; margin: 18px 0 0; color: rgba(255,255,255,.79); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.8; }

.search { position: relative; z-index: 3; max-width: 980px; margin: -34px auto 0; padding: 20px; background: rgba(255,253,248,.98); border: 1px solid rgba(255,255,255,.65); border-radius: 20px; box-shadow: var(--shadow); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.search label { display: block; margin: 0 0 10px 2px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.search-row { display: flex; gap: 10px; }
.search input { flex: 1; min-width: 0; padding: 16px 18px; color: var(--ink); background: #f7f3ea; border: 1px solid transparent; border-radius: 12px; outline: none; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,157,73,.18); }
.search-row button { padding: 0 22px; color: white; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; }
.search-row button:hover { background: var(--ink-2); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topic-chips button { padding: 7px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .82rem; }
.topic-chips button:hover { color: var(--ink); border-color: var(--ink); }

main { max-width: 1184px; margin: 0 auto; padding: 86px 28px 100px; }
.verification { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: center; margin: -34px 0 64px; padding: 18px 22px; color: #304e46; background: rgba(255,253,248,.72); border: 1px solid var(--line); border-radius: 16px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.verification-icon { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--terracotta); border-radius: 50%; font-weight: 900; }
.verification strong { color: var(--ink); }
.verification p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.edition-note { margin: 0 0 6px; color: var(--muted); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .9rem; }
.lead-card { display: grid; grid-template-columns: 94px 1fr; background: var(--ink); color: white; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.rank { padding: 28px 0; color: #e5bd7b; border-right: 1px solid rgba(255,255,255,.15); text-align: center; font-family: ui-sans-serif, sans-serif; font-size: 2.1rem; font-weight: 300; }
.lead-content { padding: 38px 42px 40px; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 9px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .78rem; }
.paper-meta span { padding: 5px 9px; color: var(--terracotta); background: rgba(185,101,62,.1); border-radius: 999px; font-weight: 700; }
.lead-card .paper-meta span { color: #f0cca0; background: rgba(255,255,255,.09); }
h3 { margin: 18px 0 8px; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.42; }
.original { margin: 0; color: var(--muted); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .82rem; line-height: 1.6; }
.lead-card .original { color: rgba(255,255,255,.52); }
.citation-line { margin: 9px 0 0; color: var(--muted); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .82rem; line-height: 1.6; }
.citation-line cite { font-style: normal; }
.lead-card .citation-line { color: rgba(255,255,255,.66); }
.paper-intro { display: grid; gap: 7px; max-width: 900px; margin: 20px 0 14px; color: #304e46; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.76; }
.paper-intro strong { color: var(--terracotta); font-size: .78rem; letter-spacing: .08em; }
.lead-card .paper-intro { color: rgba(255,255,255,.86); font-size: 1.02rem; }
.lead-card .paper-intro strong { color: #e5bd7b; }
.value-line { display: grid; gap: 7px; margin: 18px 0 0; color: #304e46; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.72; }
.value-line strong { color: var(--terracotta); font-size: .78rem; letter-spacing: .08em; }
.lead-card .value-line { color: rgba(255,255,255,.86); }
.lead-card .value-line strong { color: #e5bd7b; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; padding: 0; list-style: none; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.keyword-list::before { content: "关键词"; align-self: center; margin-right: 2px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.keyword-list li { padding: 5px 9px; color: var(--ink-2); background: rgba(18,63,54,.07); border: 1px solid rgba(18,63,54,.1); border-radius: 999px; font-size: .76rem; }
.lead-card .keyword-list::before { color: rgba(255,255,255,.58); }
.lead-card .keyword-list li { color: #f0cca0; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.paper-details { margin: 0 0 18px; padding: 12px 14px; background: rgba(18,63,54,.045); border: 1px solid var(--line); border-radius: 11px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.paper-details summary { color: var(--terracotta); cursor: pointer; font-size: .86rem; font-weight: 750; }
.paper-details p { margin: 12px 0 1px; color: #405c54; font-size: .88rem; line-height: 1.8; }
.lead-details { background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.12); }
.lead-details summary { color: #e5bd7b; }
.lead-details p { color: rgba(255,255,255,.8); }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.analysis-grid div { padding: 17px; background: rgba(255,255,255,.07); border-radius: 13px; }
dt { color: #e5bd7b; font-family: ui-sans-serif, sans-serif; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
dd { margin: 8px 0 0; color: rgba(255,255,255,.78); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .9rem; line-height: 1.7; }
.paper-link { display: inline-flex; gap: 8px; color: #f0cca0; text-decoration: none; font-family: ui-sans-serif, sans-serif; font-weight: 700; }
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.daily-grid { grid-template-columns: repeat(2, 1fr); }
.legacy-daily > .section-head:first-child,
.legacy-daily > .lead-card,
.legacy-daily > .paper-grid:not(.supplement-grid) { display: none; }
.legacy-hidden { display: none; }
.supplement-head { margin-top: 58px; }
.supplement-head h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.supplement-grid { grid-template-columns: repeat(2, 1fr); }
.paper-card { display: flex; flex-direction: column; min-height: 470px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.paper-card h3 { font-size: 1.3rem; }
.paper-card > p:not(.original):not(.boundary) { color: #304e46; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.75; }
.paper-card .boundary { color: var(--muted); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .86rem; line-height: 1.7; }
.card-analysis { display: grid; gap: 10px; margin: 0 0 22px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.card-analysis div { padding: 12px 13px; background: rgba(18,63,54,.045); border: 1px solid rgba(18,63,54,.08); border-radius: 10px; }
.card-analysis dt { color: var(--terracotta); }
.card-analysis dd { color: #405c54; font-size: .86rem; line-height: 1.65; }
.paper-card > a { margin-top: auto; color: var(--terracotta); text-decoration: none; font-family: ui-sans-serif, sans-serif; font-weight: 750; }

.results-panel { padding-top: 0; }
.text-button { color: var(--terracotta); background: transparent; border: 0; cursor: pointer; font-weight: 700; }
.result-list { display: grid; gap: 12px; }
.search-result { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.search-result h3 { margin-top: 10px; font-size: 1.2rem; }
.search-result p { color: var(--muted); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.7; }
.search-result .source-line { margin: 4px 0 0; color: var(--ink-2); font-size: .86rem; font-weight: 650; }
.search-result .search-intro { color: #304e46; }
.search-result .keyword-list { margin-top: 12px; }
.search-result .paper-details { margin-top: 12px; }
.search-result a { color: var(--terracotta); font-family: ui-sans-serif, sans-serif; font-weight: 700; text-decoration: none; }
.loading, .empty { padding: 42px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 15px; text-align: center; }
.search-fallback-note { margin: 0; padding: 14px 16px; color: var(--ink-2); background: rgba(201,157,73,.14); border: 1px solid rgba(201,157,73,.32); border-radius: 12px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .86rem; line-height: 1.65; }

.archive { margin-top: 88px; padding-top: 14px; }
.archive-intro { padding: 22px; background: rgba(255,253,248,.72); border: 1px solid var(--line); border-radius: 16px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.archive-intro > p { margin: 0 0 17px; color: #405c54; line-height: 1.75; }
.archive-intro label { display: block; margin: 0 0 9px; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.archive-search-row { display: flex; gap: 10px; }
.archive-search-row input { flex: 1; min-width: 0; padding: 14px 16px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.archive-search-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,157,73,.18); }
.archive-search-row button, .archive-more { padding: 0 18px; color: white; background: var(--ink); border: 0; border-radius: 11px; cursor: pointer; font-weight: 750; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.archive-card { display: flex; flex-direction: column; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.archive-card h3 { margin: 12px 0 7px; font-size: 1.12rem; }
.archive-card .original { margin-bottom: 10px; }
.archive-card p { margin: 7px 0; color: #405c54; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .86rem; line-height: 1.7; }
.archive-card .archive-meta { color: var(--muted); font-size: .78rem; }
.archive-card a { margin-top: auto; padding-top: 12px; color: var(--terracotta); font-family: ui-sans-serif, sans-serif; font-weight: 750; text-decoration: none; }
.archive-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.archive-badges span { padding: 5px 8px; color: var(--terracotta); background: rgba(185,101,62,.1); border-radius: 999px; font-family: ui-sans-serif, sans-serif; font-size: .72rem; font-weight: 750; }
.archive-badges .publication-date { color: var(--ink); background: rgba(201,157,73,.22); }
.archive-more { display: block; min-height: 44px; margin: 20px auto 0; }
.archive-more[hidden] { display: none; }
.archive-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 38px; align-items: center; margin-top: 88px; padding: 34px 38px; color: white; background: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.archive-entry h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.archive-entry > a { display: inline-flex; align-items: center; gap: 18px; min-height: 54px; padding: 0 20px; color: var(--ink); background: #e5bd7b; border-radius: 12px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-weight: 800; text-decoration: none; white-space: nowrap; }
.archive-entry > a:hover { background: #f0cca0; }
.archive-masthead { max-width: 1240px; margin: 0 auto; padding: 22px 28px 0; }
.nav-current { color: var(--ink) !important; font-weight: 750; }
.archive-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 36px; align-items: end; margin-top: 20px; padding: 54px 58px; color: white; background: var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.archive-hero h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.archive-hero p:not(.eyebrow) { max-width: 790px; margin: 20px 0 0; color: rgba(255,255,255,.75); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.85; }
.archive-hero > a { color: #f0cca0; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-weight: 750; text-decoration: none; white-space: nowrap; }
.archive-page { padding-top: 48px; }
.archive-toolbar { padding: 24px; background: rgba(255,253,248,.78); border: 1px solid var(--line); border-radius: 18px; }
.archive-toolbar-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 14px; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
.archive-toolbar label { color: var(--ink); font-size: .88rem; font-weight: 800; letter-spacing: .08em; }
.archive-toolbar-head p { margin: 7px 0 0; color: var(--muted); font-size: .84rem; }
.archive-categories { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.archive-categories button { padding: 8px 12px; color: var(--muted); background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .82rem; }
.archive-categories button:hover { color: var(--ink); border-color: var(--ink); }
.archive-categories button.is-active { color: white; background: var(--terracotta); border-color: var(--terracotta); }
.archive-groups { display: grid; gap: 58px; margin-top: 52px; }
.archive-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.archive-category-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.55rem); letter-spacing: -.035em; }
.archive-category-head span { color: var(--terracotta); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.archive-category .archive-grid { margin-top: 18px; }
.archive-summary { flex-grow: 1; }
.submission { display: grid; grid-template-columns: minmax(220px,.7fr) 1.3fr; gap: 36px; align-items: center; margin-top: 70px; padding: 30px 34px; color: white; background: var(--ink); border-radius: 20px; }
.submission h2 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.4rem); }
.submission p:last-child { margin: 0; color: rgba(255,255,255,.78); font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; line-height: 1.8; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px max(28px, calc((100% - 1184px) / 2)); color: rgba(255,255,255,.65); background: #0c312a; font-family: ui-sans-serif, -apple-system, "PingFang SC", sans-serif; }
footer strong { color: white; }
footer p { margin: 7px 0 0; font-size: .84rem; }

@media (max-width: 850px) {
  .hero-copy { width: 85%; padding: 42px 34px 78px; }
  .hero::after { background: linear-gradient(90deg, rgba(6,34,28,.92), rgba(6,34,28,.62)); }
  .paper-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-entry, .archive-hero { grid-template-columns: 1fr; align-items: start; }
  .paper-card { min-height: 0; }
}

@media (max-width: 640px) {
  .masthead { padding: 16px 14px 0; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .8rem; }
  .nav-links a:first-child { display: none; }
  .hero { min-height: 350px; border-radius: 20px; }
  .hero-copy { width: 100%; padding: 38px 24px 100px; }
  h1 { font-size: clamp(1.66rem, 7.7vw, 2.25rem); }
  .search { margin: -62px 12px 0; padding: 14px; }
  .search-row { flex-direction: column; }
  .search-row button { min-height: 50px; }
  main { padding: 70px 16px 72px; }
  .section-head { align-items: start; flex-direction: column; }
  .lead-card { grid-template-columns: 1fr; }
  .rank { padding: 14px 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); text-align: left; font-size: 1.2rem; }
  .lead-content { padding: 26px 22px 30px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .archive-search-row { flex-direction: column; }
  .archive-search-row button { min-height: 46px; }
  .archive-entry { gap: 24px; padding: 28px 24px; }
  .archive-entry > a { justify-content: space-between; }
  .archive-hero { padding: 38px 24px; border-radius: 20px; }
  .archive-hero h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .archive-page { padding-top: 28px; }
  .archive-toolbar { padding: 18px; }
  .submission { grid-template-columns: 1fr; gap: 16px; padding: 26px 22px; }
  footer { flex-direction: column; padding: 32px 22px; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.58rem; }
}

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