/* PaperScope 专题深度 — 共享样式 */
:root {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --card: #ffffff;
  --border: #e7e5e4;
  --border-dark: #d6d3d1;
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  --accent: #c4956a;
  --accent-soft: #d4a574;
  --accent-bg: #fef3e2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'PingFang SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

/* Header */
.site-header {
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.logo-mark { width: 24px; height: 24px; background: var(--accent); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 700; }
.back-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.back-link:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #1c1917 100%);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,149,106,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,149,106,0.2);
  border: 1px solid rgba(196,149,106,0.4);
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
}
.hero-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: #fafaf9;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 14px;
  position: relative;
}
.hero-subtitle {
  font-size: 14px;
  color: #a8a29e;
  max-width: 640px;
  margin: 0 auto 24px;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.hero-meta-item {
  font-size: 13px;
  color: #78716c;
}
.hero-meta-item span { color: var(--accent-soft); font-weight: 600; }

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-soft);
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 11px;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main layout */
.main { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }

/* Intro / Editorial box */
.intro-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.8;
}
p { color: var(--text-secondary); margin-bottom: 14px; }
strong { color: var(--text); }

/* Insight box */
.insight-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14px;
}
.insight-box strong { color: #92400e; }

/* Quick-view / Glance table */
.quick-view {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
}
.quick-view h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.glance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.glance-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-dark);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.glance-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.glance-table tr:last-child td { border-bottom: none; }
.glance-table a { color: var(--accent); text-decoration: none; }
.glance-table a:hover { text-decoration: underline; }

/* Section */
.section { margin-bottom: 48px; }
.section-header { margin-bottom: 24px; }
.section-num {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

/* Paper meta */
.paper-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.upvote-badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

/* Data grid (metrics card) */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.data-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.data-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.data-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Quote block / Editorial */
.quote-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}
.quote-block .editorial-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Paper figure */
.paper-figure {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.paper-figure img {
  width: 100%;
  display: block;
}
.paper-figure figcaption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* Paper links */
.paper-link {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
}
.paper-link a {
  color: var(--accent);
  text-decoration: none;
}
.paper-link a:hover { text-decoration: underline; }

/* Trend section */
.trend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trend-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}
.trend-item strong { color: var(--accent); }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 20px 0;
}
.comparison-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border-dark);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table a { color: var(--accent); text-decoration: none; }
.comparison-table a:hover { text-decoration: underline; }

/* Source section */
.source-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 48px;
}
.source-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.source-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.source-list a {
  color: var(--accent);
  text-decoration: none;
}
.source-list a:hover { text-decoration: underline; }

/* Caveat — 未经充分证实的信息标识 */
.caveat {
  background: rgba(251, 191, 36, 0.08);
  border-bottom: 1.5px dashed rgba(196, 149, 106, 0.5);
  padding: 1px 5px;
  border-radius: 2px;
  font-style: normal;
}
.caveat::before {
  content: '\25B3 ';  /* △ 小三角 */
  font-size: 0.8em;
  color: var(--accent);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Topic preview cards (for series intro) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topic-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(196,149,106,0.1);
}
.topic-card-num {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.topic-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.topic-card-stats {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.topic-card-stats span { color: var(--accent); font-weight: 600; }
.topic-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Series badge */
.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,149,106,0.15);
  border: 1px solid rgba(196,149,106,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Paywall wrap */
.paywall-wrap { position: relative; }
.paywall-blur {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}
.paywall-blur::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #78716c;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  line-height: 1.8;
}
.site-footer a { color: #a8a29e; text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .main { padding: 20px 16px; }
  .hero { padding: 48px 16px 32px; }
  .hero-title { font-size: 22px; }
  .hero-meta { flex-wrap: wrap; gap: 8px; }
  .stats-bar { gap: 20px; }
  .stat-value { font-size: 22px; }
  .section { padding: 0; }
  .section-header { margin-bottom: 16px; }
  .section-title { font-size: 17px; }
  .data-grid { grid-template-columns: 1fr; gap: 10px; }
  .data-item { padding: 12px; }
  .data-value { font-size: 20px; }
  .quick-view { padding: 20px 14px; }
  .quick-view, .glance-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .glance-table { min-width: 500px; font-size: 13px; }
  .glance-table th, .glance-table td { padding: 8px 8px; }
  .intro-box { padding: 16px; font-size: 14px; }
  .quote-block { padding: 14px 16px; font-size: 14px; }
  .insight-box { padding: 14px 16px; font-size: 13px; }
  .paper-link { font-size: 12px; word-break: break-all; }
  .source-section { padding: 20px 14px; }
  .site-footer { padding: 24px 16px; }
  .topic-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .hero-meta { flex-direction: column; align-items: center; }
  .section-title { font-size: 16px; }
  .glance-table { min-width: 420px; }
  .paper-figure figcaption { font-size: 11px; padding: 6px 10px; }
  .stats-bar { gap: 16px; }
  .stat-value { font-size: 20px; }
}
