:root {
  --bg: #0f1419;
  --bg-soft: #161d26;
  --card: #1a232e;
  --border: #2a3542;
  --text: #e6edf3;
  --text-dim: #8b98a5;
  --accent: #4cc2ff;
  --accent-soft: rgba(76, 194, 255, 0.12);
  --mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* 顶部 */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap { display: flex; align-items: center; height: 60px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.brand a { color: var(--text); }
.topbar nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.topbar nav a { color: var(--text-dim); }
.topbar nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: 34px; line-height: 1.3; margin-bottom: 14px; font-weight: 800; }
.hero .desc { color: var(--text-dim); font-size: 16px; max-width: 560px; }

/* 订阅条 */
.cta-bar {
  background: var(--accent-soft);
  border: 1px solid rgba(76, 194, 255, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-bar p { font-size: 14px; color: var(--text); }
.cta-bar .highlight { color: var(--accent); font-weight: 700; }

/* 报告列表 */
.section-title {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.report-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 14px;
  transition: border-color .15s, transform .15s;
}
.report-item:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.report-item .date { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.report-item .title { font-size: 17px; font-weight: 700; color: var(--text); }
.report-item .lead { font-size: 14px; color: var(--text-dim); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 文章正文 */
.article { padding: 40px 0 64px; }
.article .back { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; display: inline-block; }
.article .back:hover { color: var(--accent); text-decoration: none; }
.article h1.title { font-size: 30px; line-height: 1.35; margin-bottom: 14px; font-weight: 800; }
.article .meta { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article .body { font-size: 16px; }
.article .body h1, .article .body h2, .article .body h3 { margin: 32px 0 14px; line-height: 1.4; }
.article .body h2 { font-size: 22px; border-left: 3px solid var(--accent); padding-left: 12px; }
.article .body h3 { font-size: 18px; }
.article .body p { margin-bottom: 16px; }
.article .body ul, .article .body ol { margin: 0 0 16px 24px; }
.article .body li { margin-bottom: 8px; }
.article .body blockquote {
  border-left: 3px solid var(--border);
  padding: 10px 16px;
  margin: 0 0 16px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border-radius: 0 8px 8px 0;
}
.article .body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.article .body code {
  font-family: var(--mono);
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}
.article .body table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
.article .body th, .article .body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article .body th { background: var(--bg-soft); }
.article .body strong { color: #fff; }

/* 页脚 */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--text-dim); font-size: 13px; }
.footer .cta { color: var(--text); font-size: 15px; margin-bottom: 8px; }
.footer .wx { margin-top: 16px; padding: 14px 16px; background: var(--bg-soft); border-radius: 10px; border: 1px dashed var(--border); }
.footer .wx p { margin-bottom: 4px; }

/* 收款码 */
.donate {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.donate-title { font-size: 16px; font-weight: 700; color: var(--text); }
.donate-desc { font-size: 13px; color: var(--text-dim); margin: 6px 0 18px; }
.donate-desc strong { color: var(--accent); font-weight: 600; }
.donate-codes { display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.donate-codes figure { text-align: center; }
.donate-codes img { width: auto; height: 220px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); display: block; }
.donate-codes figcaption { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.footer .donate-codes { margin-top: 16px; }

/* 站点标语（收藏提示） */
.site-tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.site-tagline strong { color: var(--accent); }

/* 页脚操作 */
.footer-actions { margin-top: 18px; text-align: center; }
.share-btn {
  background: var(--accent);
  color: #0f1419;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity .15s;
}
.share-btn:hover { opacity: 0.85; }
.icp { margin-top: 8px; font-size: 12px; text-align: center; }
.icp a { color: var(--text-dim); }
.icp a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 52px; }
  .brand { font-size: 15px; }
  .topbar nav { gap: 12px; font-size: 13px; }
  .hero h1 { font-size: 26px; }
  .article { padding: 24px 0 48px; }
  .article h1.title { font-size: 22px; line-height: 1.4; }
  .article .meta { font-size: 12px; margin-bottom: 24px; padding-bottom: 16px; }
  .article .body { font-size: 16px; line-height: 1.8; }
  .article .body h2 { font-size: 19px; }
  .article .body h3 { font-size: 17px; }
  .article .body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article .body pre, .article .body code { word-break: break-all; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .donate { padding: 20px 16px; }
  .donate-codes { flex-direction: column; gap: 20px; align-items: center; }
  .donate-codes img { height: auto; width: 220px; max-width: 100%; }
  .share-btn { display: block; width: 100%; padding: 12px 24px; }
  .site-tagline { font-size: 12px; }
}
