:root {
  --bg: #f6f1e8;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --text: #171512;
  --body: #2a261f;
  --muted: #6f675d;
  --line: rgba(23, 21, 18, 0.12);
  --gold: #9a7a4a;
  --gold-2: #c6a77b;
  --green: #215c3c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(198, 167, 123, 0.15), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154,122,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,122,74,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 70%);
}

.orb { display: none; }
.hero, main, footer { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 42px 0 28px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
  opacity: 0;
  animation: rise .7s ease forwards;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154,122,74,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 500;
}
.brand strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  color: var(--text);
  letter-spacing: .18em;
  font-weight: 500;
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; letter-spacing: .08em; }
.nav-actions {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(154,122,74,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 35px rgba(0,0,0,.04);
}
.lang, .ghost { border: 0; cursor: pointer; font-family: inherit; }
.lang {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition: .2s ease;
}
.lang.active { background: var(--text); color: #fffaf0; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero-copy, .signal-panel, .toolbar, .featured, .cards, footer {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .8s ease forwards;
}
.hero-copy { animation-delay: .08s; }
.signal-panel { animation-delay: .16s; }
.toolbar { animation-delay: .22s; }
.featured { animation-delay: .28s; }
.cards { animation-delay: .34s; }

.eyebrow, .section-kicker, .panel-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 500;
}
.eyebrow::after, .section-kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(154,122,74,.45), transparent);
}
h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: .02em;
  margin: 18px 0 20px;
  max-width: 780px;
}
.hero-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}
.en-copy { color: #82786c; }
.search-wrap { margin-top: 30px; max-width: 680px; }
#search {
  width: 100%;
  border: 1px solid rgba(154,122,74,.18);
  background: rgba(255,255,255,.66);
  color: var(--text);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 10px 35px rgba(0,0,0,.05);
}
#search:focus { border-color: rgba(154,122,74,.5); box-shadow: 0 0 0 4px rgba(198,167,123,.16); }
#search::placeholder { color: #958b7e; }

.signal-panel {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.signal-panel h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.42;
  font-weight: 500;
  margin: 16px 0 10px;
}
.signal-panel p { color: var(--muted); line-height: 1.8; max-width: 680px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stats div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(154,122,74,.12);
}
.stats strong { display: block; font-family: "Noto Serif SC", serif; font-size: 28px; color: var(--gold); font-weight: 500; }
.stats span { color: var(--muted); font-size: 12px; letter-spacing: .06em; }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 34px 0 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.categories { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  border: 1px solid rgba(154,122,74,.18);
  background: rgba(255,255,255,.48);
  color: #5e554c;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: .2s ease;
}
.cat:hover { border-color: rgba(154,122,74,.4); transform: translateY(-1px); }
.cat.active { border-color: rgba(154,122,74,.52); background: #171512; color: #fffaf0; }
.meta { color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 8px; }
.featured { display: flex; justify-content: space-between; align-items: end; margin: 20px 0 18px; }
.featured h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  margin: 8px 0 0;
  letter-spacing: .03em;
}
.ghost {
  border: 1px solid rgba(154,122,74,.22);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255,255,255,.55);
  color: #5e554c;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 24px;
  padding: 22px 22px 20px;
  background: var(--paper);
  box-shadow: 0 14px 45px rgba(20,20,20,.06);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 55px rgba(20,20,20,.09); border-color: rgba(154,122,74,.22); }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.badge {
  color: var(--gold);
  background: rgba(154,122,74,.08);
  border: 1px solid rgba(154,122,74,.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: .04em;
}
.score { color: var(--green); font-size: 13px; font-weight: 700; }
.card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.45;
  letter-spacing: .02em;
  font-weight: 500;
}
.en-title { color: var(--muted); font-size: 14px; line-height: 1.65; font-family: inherit; }
.summary { color: var(--body); line-height: 1.85; margin: 0; }
.summary-en { color: #6f675d; }
.take {
  border-left: 2px solid var(--gold-2);
  padding: 10px 0 10px 14px;
  color: #5d4b31;
  line-height: 1.8;
  background: linear-gradient(90deg, rgba(198,167,123,.10), transparent);
}
.take-en { color: #7a7064; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.tag {
  color: #6a5e51;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(154,122,74,.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}
.card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.source { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 1px solid rgba(154,122,74,.45); }

.empty { text-align: center; color: var(--muted); padding: 56px 0; border: 1px dashed rgba(154,122,74,.22); border-radius: 24px; background: rgba(255,255,255,.35); }
.hidden { display: none !important; }
body.lang-zh .en-title, body.lang-zh .summary-en, body.lang-zh .take-en, body.lang-zh .en-copy { display: none; }
body.lang-en .zh-title, body.lang-en .summary-zh, body.lang-en .take-zh { display: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  padding: 48px 0 38px;
  font-size: 13px;
  animation-delay: .42s;
}
footer strong { color: var(--text); font-family: "Noto Serif SC", serif; font-weight: 500; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .hero-copy, .signal-panel, .toolbar, .featured, .cards, footer, .nav { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero, main, footer { width: min(100% - 28px, 920px); }
  .nav, .toolbar, .featured, footer { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .meta { white-space: normal; }
  .card-footer { align-items: flex-start; flex-direction: column; }
}
