/* SkyID H5 布局层：topbar / hero 渐变 banner / 卡片栈 / tabbar */

/* --- 顶部标题栏（简洁：返回 + 页名；首页不显示返回） --- */
.topbar {
  max-width: 480px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 245, 249, 0.92);
  backdrop-filter: blur(10px);
}
.topbar .back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 20px;
}
.topbar .back:active { background: rgba(0, 0, 0, 0.06); }
.topbar .title { flex: 1; font-weight: 600; font-size: 16px; }

/* --- Hero 渐变 banner（品牌延续邮件 G1：一体渐变 + 星点 + 标语） --- */
.hero {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  color: #fff;
  background:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44% 40%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 18%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 74% 34%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 10%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 42%, rgba(255,255,255,0.65) 50%, transparent 51%),
    linear-gradient(120deg, var(--grad-a), var(--grad-b), var(--grad-c));
  position: relative;
}
.hero .logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero .logo .star { color: var(--gold-soft); }
.hero .slogan {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 1px;
}

/* --- 卡片栈：负 margin 上叠白卡，侧/底 2px 渐变露出（G1 边框零衔接手法） --- */
.card-stack {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  display: grid;
  gap: 14px;
}
.card {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 2px;
}

/* --- 底部 Tab 栏（配置驱动渲染，见 ui.js） --- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 8%;
  max-width: 480px;
  margin: 0 auto;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-3);
  font-size: 11px;
}
.tabbar .tab::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 2px;
  background: transparent;
}
.tabbar .tab.active { color: var(--grad-b); font-weight: 600; }
.tabbar .tab.active::before { background: var(--grad); }
.tabbar .tab.disabled { opacity: 0.4; }

/* --- 通用区块间距 --- */
.section-gap { height: 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
