/* 全站 token 别名 + 已登录顶栏 + 优惠活动页
 * 尺寸全部映射首页 app.css，禁止在此改断点或壳层宽高 */

:root {
  --page-max-width: 100%;
  --page-padding: 12px;
  --header-height: var(--header-h);
  --sidebar-width: var(--sidebar-w);
  --card-radius: 12px;
  --card-gap: 12px;
  --section-gap: 14px;
  --button-height: 32px;
  --button-height-lg: 44px;
  --input-height: 44px;
  --mobile-nav-height: var(--bottom-h);
  --icon-size: 18px;
}

/* ========== 已登录 Header（高度仍为 --header-h: 56px） ========== */
.header .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #c45a10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
}
.header .user-meta { line-height: 1.2; }
.header .uname { font-size: 12px; color: #ddd; white-space: nowrap; }
.header .bal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.header .refresh { color: var(--muted); font-size: 12px; cursor: pointer; }
.header .ico-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 15px;
  background: #222;
  flex-shrink: 0;
}
.header .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e23;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* 首页 app.css 中 ≥1280 隐藏汉堡写在 .menu-btn 基础规则之前，会被覆盖。此处按 PRD 补齐同一断点。 */
@media (min-width: 1280px) {
  .header .menu-btn { display: none; }
}
@media (max-width: 1023px) {
  .header .uname { display: none; }
}

/* 仅换图：首页 Hero / 活动封面走截图素材，不改壳层尺寸 */
.hero-banner.photo {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero-banner.photo .cap { display: none; }
.hero-dots {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.hero-dots i {
  display: block;
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
}
.hero-dots i.on { width: 28px; background: #fff; }

.hero-promo.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  border: 0;
}
.hero-promo.photo .photo-hit {
  flex: 1;
  width: 100%;
  min-height: 180px;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .hero-promo.photo .photo-hit { min-height: 140px; }
}

/* 侧栏促销：当前页高亮（尺寸沿用 .side-promo a） */
.side-promo a.active {
  background: linear-gradient(90deg, var(--orange), #c45a10);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
}
.side-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ========== 优惠活动列表：PC 2 列 → Tablet/Mobile 1 列 ========== */
.promo-grid {
  display: grid;
  width: 100%;
  gap: var(--card-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1023px) {
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
}

.promo-card {
  position: relative;
  display: block;
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 2.15 / 1;
  border: 1px solid var(--line);
  background: var(--panel) center / cover no-repeat;
  min-width: 0;
}
.promo-card .art {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-card .ttl {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
  line-height: 1.25;
}
.promo-card .sub {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
}
.promo-card.is-photo .art {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.promo-card .tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  font-size: 11px;
  color: #ddd;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}
@media (max-width: 1023px) {
  .promo-card { min-height: 140px; }
}

/* ========== 活动详情：外层壳不变，仅主区内排版 ========== */
.promo-hero {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid #243;
  background: #0b1020 center / cover no-repeat;
}
.promo-hero.is-photo .cap {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  padding: 0;
}
.promo-hero .cap {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  text-shadow: 0 2px 10px #000;
}
.promo-hero .cap h1 {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: 1px;
}
.promo-hero .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.promo-hero .pill-y {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e8c43a;
  color: #1a1200;
  font-size: 12px;
  font-weight: 800;
}
.promo-hero .pill-b {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #5ad0ff;
  color: #9ee7ff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(20, 40, 80, .45);
}
@media (max-width: 1023px) {
  .promo-hero { min-height: 180px; }
}
@media (max-width: 767px) {
  .promo-hero { min-height: 160px; }
  .promo-hero .cap { left: 14px; right: 14px; bottom: 14px; }
}

.promo-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: var(--section-gap) 0;
}
.promo-meta-card {
  background: #16161f;
  border: 1px solid #3a4a8a;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 0 16px rgba(80,120,255,.18);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.promo-meta-card .k {
  font-size: 12px;
  color: var(--muted);
}
.promo-meta-card .v {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  color: #dce7ff;
}
@media (max-width: 767px) {
  .promo-meta { grid-template-columns: 1fr; }
  .promo-meta-card { clip-path: none; }
}

.promo-cta {
  display: flex;
  justify-content: center;
  margin: 8px 0 var(--section-gap);
}
.promo-cta .btn {
  min-width: min(420px, 100%);
  height: var(--button-height-lg);
  border-radius: 22px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #7a4dff, #4a1fb8);
  box-shadow: 0 0 18px rgba(120, 80, 255, .45);
  border: 1px solid #b48cff;
}

.promo-body {
  padding: 8px 4px 24px;
  max-width: 920px;
  margin: 0 auto;
}
.promo-body h2 {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #7ecbff;
  margin: 12px 0 16px;
  letter-spacing: 2px;
}
.promo-body h3 {
  font-size: 14px;
  color: var(--orange);
  margin: 16px 0 8px;
}
.promo-body p,
.promo-body li {
  font-size: 13px;
  color: #c8c8c8;
  line-height: 1.75;
}
.promo-body ol,
.promo-body ul {
  padding-left: 1.2em;
  margin: 0 0 8px;
}
.promo-body li { margin: 4px 0; }
