:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --line: rgba(0, 0, 0, 0.06);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 18px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --max: 980px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --text3: #8e8e93;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); 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(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(0, 0, 0, 0.72); }
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-size: 17px; font-weight: 600; 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; }
.sale-tag {
  font-size: 12px; color: var(--text3); text-align: right; max-width: 240px;
  text-decoration: none;
}
.sale-tag:hover { color: var(--blue); text-decoration: underline; }

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

.hero-video {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-video-stage {
  position: relative;
  background: #000;
}
.hero-video video {
  display: block; width: 100%;
  max-height: min(52vh, 480px);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.video-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; padding: 16px 20px;
  border-top: 1px solid var(--line);
}

/* 全局大屏：视频铺满视口，底部按钮栏保留 */
body.video-stage-open { overflow: hidden; }
.hero-video-placeholder { margin-bottom: 20px; }
.hero-video.hero-video--stage {
  position: fixed;
  inset: 0;
  z-index: 3000;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  background: #000;
}
.hero-video--stage .hero-video-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video--stage video {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}
.hero-video--stage .video-bar {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.hero-video--stage .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}
.hero-video--stage .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.hero-video--stage #stage-toggle {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn {
  appearance: none; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 980px;
  transition: background .2s, transform .15s;
  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(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); text-decoration: none; color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-ghost { background: rgba(255, 255, 255, 0.1); }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.card-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.card-sub { font-size: 15px; color: var(--text2); line-height: 1.6; }
.card-label { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 14px; color: var(--text2); margin-top: 8px; }

.hot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; 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); text-align: center; padding: 8px 0 16px; }
.hot-loading { text-align: center; color: var(--text3); padding: 32px 0; font-size: 15px; list-style: none; }
.hot-more {
  text-align: center; color: var(--text3); padding: 20px 0 8px;
  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: 14px;
  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(--blue); }
.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(--blue); color: #fff; }
.hot-item--has-thumb .hot-item-link { align-items: center; padding: 16px 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: 96px; height: 96px;
  border-radius: 12px; object-fit: cover; background: var(--bg);
}
.img-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}
.hot-body { flex: 1; min-width: 0; text-align: left; }
.hot-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-info { font-size: 12px; color: var(--text3); }
.hot-pill {
  flex: 0 0 auto; align-self: center; margin-left: 4px;
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 980px;
  background: rgba(0, 113, 227, 0.1); color: var(--blue); text-decoration: none; white-space: nowrap;
}
.hot-pill:hover { background: rgba(0, 113, 227, 0.16); text-decoration: none; }

.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(--blue); padding: 4px 12px; border-radius: 980px; margin-bottom: 12px;
}
.article-title { font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; 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(--blue); font-weight: 600; }
.article-cover { margin: 0 0 24px; border-radius: 14px; background: var(--bg); }
.article-cover-img {
  display: block; width: 100%; height: auto; max-width: 100%;
  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: rgba(0, 113, 227, 0.06); border-radius: 14px;
}
.article-lead { font-size: 16px; color: var(--text2); line-height: 1.65; margin-bottom: 24px; padding: 16px; background: rgba(0, 113, 227, 0.06); 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; }
  .sale-tag { text-align: left; max-width: none; }
  .card { padding: 22px 18px; }
  .card-title { font-size: 21px; }
  .hot-pill { display: none; }
  .hot-thumb, .img-ph.hot-thumb { width: 80px; height: 80px; }
  .article-facts div { grid-template-columns: 72px 1fr; }
}
