:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text2: #5c5c5c;
  --text3: #8a8a8a;
  --line: rgba(0, 0, 0, 0.07);
  --accent: #e8433f;
  --accent-hover: #d63031;
  --accent-soft: rgba(232, 67, 63, 0.1);
  --green: #27ae60;
  --radius: 16px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --max: 1000px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --card: #1c1c1e;
    --text: #f5f5f5;
    --text2: #b0b0b0;
    --text3: #888;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    --accent-soft: rgba(232, 67, 63, 0.18);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(250, 249, 247, 0.85);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(17, 17, 17, 0.88); }
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-size: 17px; font-weight: 700; color: var(--text); }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--text3); margin-top: 2px; }
.brand a { color: inherit; text-decoration: none; }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  padding: 6px 12px; border-radius: 980px; text-decoration: none;
}
.topnav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }

.page { max-width: var(--max); margin: 0 auto; padding: 0 20px 48px; }
.page--article { padding-top: 24px; max-width: 760px; }

.hero {
  padding: 32px 0 24px;
  text-align: center;
}
.hero-emoji { font-size: 40px; margin-bottom: 12px; }
.hero-title {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px; color: var(--text2);
  max-width: 600px; margin: 0 auto 20px;
  line-height: 1.65;
}
.platform-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 8px;
}
.platform-badge {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 980px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text2);
}

.timeline-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 16px;
}
.timeline-chip {
  font-size: 12px; padding: 5px 12px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text2); cursor: pointer; font: inherit;
  transition: all .15s;
}
.timeline-chip:hover, .timeline-chip.is-active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.card-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card-sub { font-size: 14px; color: var(--text2); line-height: 1.6; }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 14px; color: var(--text2); margin-top: 8px; }

.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.cat-tab {
  appearance: none; border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 980px;
  color: var(--text2); transition: all .15s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.is-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.hot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.hot-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hot-nav input {
  font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.hot-meta { font-size: 13px; color: var(--text3); padding: 6px 0 14px; }
.hot-loading { text-align: center; color: var(--text3); padding: 36px 0; font-size: 15px; list-style: none; }
.hot-more { text-align: center; color: var(--text3); padding: 18px 0 6px; font-size: 13px; list-style: none; }
.hot-more--end { padding-bottom: 4px; }

.hot-list { list-style: none; }
.hot-item { display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); }
.hot-item:last-child { border-bottom: 0; }
.hot-item-link {
  flex: 1; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; color: inherit; text-decoration: none; min-width: 0;
}
.hot-item-link:hover { text-decoration: none; }
.hot-item-link:hover .hot-title { color: var(--accent); }
.hot-rank {
  flex: 0 0 auto; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  background: rgba(0, 0, 0, 0.05); color: var(--text2);
}
.hot-item:nth-child(-n+3) .hot-rank { background: var(--accent); color: #fff; }
.hot-item--has-thumb .hot-item-link { align-items: center; padding: 14px 0; }
.hot-item--has-thumb .hot-rank { align-self: flex-start; margin-top: 6px; }
.hot-thumb, .img-ph.hot-thumb {
  flex: 0 0 auto; width: 88px; height: 88px;
  border-radius: 10px; object-fit: cover; background: var(--bg);
}
.img-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
}
.hot-body { flex: 1; min-width: 0; text-align: left; }
.hot-title {
  font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-info { font-size: 12px; color: var(--text3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.verify-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(39, 174, 96, 0.12); color: var(--green);
}
.hot-pill {
  flex: 0 0 auto; align-self: center;
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 980px;
  background: var(--accent-soft); color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.hot-pill:hover { background: rgba(232, 67, 63, 0.18); text-decoration: none; color: var(--accent); }

.btn {
  appearance: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 10px;
  transition: background .15s, transform .12s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: rgba(0, 0, 0, 0.05); color: var(--text); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-ghost { background: rgba(255, 255, 255, 0.1); }
  .hot-rank { background: rgba(255, 255, 255, 0.08); }
}

.matrix-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
}
.matrix-cell {
  text-align: center; padding: 16px 10px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg);
}
.matrix-num { font-size: 22px; font-weight: 800; color: var(--accent); }
.matrix-label { font-size: 12px; color: var(--text3); margin-top: 4px; }

.footer { text-align: center; font-size: 12px; color: var(--text3); padding: 24px 0 8px; }

/* 文章页 */
.crumb { font-size: 13px; color: var(--text3); margin-bottom: 16px; line-height: 1.6; }
.article-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 4px 12px; border-radius: 980px; margin-bottom: 12px;
}
.article-title { font-size: clamp(22px, 4vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text3); margin-bottom: 20px;
}
.article-logo { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
.meta-heat { color: var(--accent); font-weight: 600; }
.article-cover { margin: 0 0 24px; border-radius: 14px; background: var(--bg); }
.article-cover-img { display: block; width: 100%; height: auto; border-radius: 14px; }
.article-cover-ph, .img-ph.article-cover-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 200px; font-size: 48px;
  background: var(--accent-soft); border-radius: 14px;
}
.article-lead { font-size: 16px; color: var(--text2); line-height: 1.65; margin-bottom: 24px; padding: 16px; background: var(--accent-soft); border-radius: 12px; }
.article-facts { margin-bottom: 20px; }
.article-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.article-facts dt { color: var(--text3); font-weight: 600; }
.article-facts dd { color: var(--text); word-break: break-all; }
.article-note { font-size: 13px; color: var(--text3); line-height: 1.6; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .card { padding: 20px 16px; }
  .hot-pill { display: none; }
  .hot-thumb, .img-ph.hot-thumb { width: 72px; height: 72px; }
  .article-facts div { grid-template-columns: 72px 1fr; }
}
