/* ============================================================
   基础层：reset + 排版 + 布局骨架
   Mobile First：默认单列，≥900px 展开多列
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 顶部极淡的品牌光晕，营造「雷达」氛围但不喧宾夺主 */
  background-image:
    radial-gradient(720px 320px at 50% -140px, rgba(123,107,242,.10), transparent 70%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; color: inherit; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-100); color: var(--brand-700); }

/* 数字统一等宽，倒计时/人数对齐不跳动 */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 页面容器 ---------- */
.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad) calc(var(--tabbar-h) + 28px);
}

@media (min-width: 900px) {
  .page { padding-bottom: var(--sp-12); }
}

/* ---------- 区块 ---------- */
.section { margin-top: var(--sp-6); }

@media (min-width: 900px) {
  .section { margin-top: var(--sp-8); }
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.section__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-1);
}

.section__title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.section__more {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}

.section__more:hover { color: var(--brand-600); }

/* ---------- 辅助 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  background: var(--bg-surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
