/* 福州亲子优选卡 · 效果图一比一复刻 */
:root {
  --coral: #fe3d12;
  --coral-dark: #d92a00;
  --coral-light: #ff6848;
  --coral-grad: linear-gradient(135deg, #ff5530 0%, #fe3d12 55%, #d92a00 100%);
  --gold: #ff9500;
  --gold-light: #ffb340;
  --gold-soft: #fff9e6;
  --ink: #1a1a1a;
  --ink-muted: #333333;
  --ink-faint: #999999;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --line: rgba(254, 61, 18, 0.1);
  --shadow-sm: 0 2px 8px rgba(254, 61, 18, 0.06);
  --shadow-md: 0 6px 18px rgba(254, 61, 18, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 30px rgba(254, 61, 18, 0.16);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --page-pad: 16px;
  --section-gap: 18px;
  --page-bg: #fff3ee;
  --surface: #eceef2;
  --price-red: #fe3d12;
  --rose-mist: #fff0eb;
  --orange: #ff9500;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.55;
  margin: 0 auto;
  font-size: 15px;
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fab-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes digit-pop {
  0% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -12px) scale(1.05); }
}
@keyframes shine-sweep {
  0% { transform: translateX(-120%) skewX(-18deg); }
  60%, 100% { transform: translateX(260%) skewX(-18deg); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(254, 61, 18, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(254, 61, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 61, 18, 0); }
}
@keyframes entry-action-ring {
  0% { box-shadow: 0 0 0 0 rgba(217, 42, 0, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(217, 42, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 42, 0, 0); }
}

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: calc(58px + var(--safe-b));
  background: var(--page-bg);
}

.page { display: none; }
.page--active { display: block; }
.page[hidden] { display: none !important; }

/* 本地头像：不用外链图，避免缩小后发糊 */
.avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-letter--sm { width: 28px; height: 28px; font-size: 13px; }
.avatar-letter--lg { width: 48px; height: 48px; font-size: 20px; }

/* —— Hero —— */
.hero {
  position: relative;
  padding: max(14px, env(safe-area-inset-top)) 20px 44px;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 85% -10%, #ff7a4d 0%, rgba(255, 122, 77, 0) 55%),
    radial-gradient(70% 60% at 0% 100%, #ff3d5e 0%, rgba(255, 61, 94, 0) 60%),
    linear-gradient(150deg, #ff5536 0%, #ff7144 100%);
  z-index: 0;
}
/* 漂浮光斑，增加层次 */
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero__bg::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(255, 222, 150, 0.55), rgba(255, 222, 150, 0));
  animation: float-blob 9s ease-in-out infinite;
}
.hero__bg::after {
  width: 140px;
  height: 140px;
  bottom: 10px;
  left: -30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  animation: float-blob 11s ease-in-out infinite reverse;
}
/* 底部柔和过渡曲线，衔接统计卡片 */
.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -26px;
  height: 52px;
  background: var(--page-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.hero > *:not(.hero__bg) { position: relative; z-index: 2; }

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero__region {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.hero__badge {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  color: #cc391f;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(180, 40, 20, 0.25);
  overflow: hidden;
}
.hero__badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: shine-sweep 3.4s ease-in-out infinite;
}

.hero__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 14px rgba(150, 30, 10, 0.28);
}
.hero__title span {
  display: inline-block;
  background: linear-gradient(180deg, #fff7e0 0%, #ffd98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.countdown {
  margin-top: 20px;
  background: rgba(20, 18, 40, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px 13px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 22px rgba(120, 25, 10, 0.22);
}

.countdown__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 9px;
}
.countdown__label::before {
  content: "⏰";
  font-size: 14px;
}

.countdown__digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.countdown__digits:has(#cd-day-wrap:not([hidden])) .digit {
  min-width: 48px;
  padding: 10px 10px;
}
.countdown__digits:has(#cd-day-wrap:not([hidden])) .digit b {
  font-size: 24px;
}

.digit {
  background: linear-gradient(160deg, #2b3046 0%, #1a1f33 100%);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 56px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.22);
}
.digit b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}
.digit b.is-tick {
  animation: digit-pop 0.35s var(--ease-out);
}
.digit small {
  font-size: 12px;
  color: #ffffff;
  margin-top: 4px;
  display: block;
}
.digit-sep {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

/* —— Home fold（活动统计 + 最近报名） —— */
.home-fold {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding: 0 var(--page-pad) 20px;
  animation: fade-up 0.5s var(--ease-out) 0.05s both;
}

.activity-stats {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.my-group-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--coral-light);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff5f0 0%, #ffefe8 100%);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.my-group-entry:not([hidden]) {
  animation: fade-up 0.45s var(--ease-out) both;
}

.my-group-entry:active:not(.is-entering) {
  transform: scale(0.985);
}

.my-group-entry.is-entering {
  pointer-events: none;
  transform: scale(0.98);
  opacity: 0.88;
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
}

.my-group-entry__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coral-grad);
  font-size: 19px;
  box-shadow: 0 4px 10px -2px rgba(217, 42, 0, 0.4);
}

.my-group-entry__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.my-group-entry__text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1.2;
}

.my-group-entry__text span {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-group-entry__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(254, 61, 18, 0.14);
  border: 1.5px solid rgba(217, 42, 0, 0.28);
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1;
  letter-spacing: 0.04em;
  animation: entry-action-ring 1.4s ease-out infinite;
}

.my-group-entry.is-entering .my-group-entry__action {
  animation: none;
  opacity: 0.65;
  transition: opacity 0.28s var(--ease-out);
}

.activity-stats__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.activity-stat {
  text-align: center;
}

.activity-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--price-red);
  font-variant-numeric: tabular-nums;
}

.activity-stat span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink-faint);
  font-weight: 400;
}

.activity-stats__divider {
  height: 1px;
  margin: 10px 4px 10px;
  background: #edf2f7;
}

.activity-stats__users {
  overflow: hidden;
}

/* JS 初始化前：只显示第 1 页的前 2 排，避免刷新时露出全部用户 */
.activity-stats__users:not(.is-ready) {
  max-height: 140px;
}

.activity-stats__users:not(.is-ready) .activity-stats__users-scroll > .activity-stats__users-page ~ .activity-stats__users-page {
  display: none;
}

.activity-stats__users:not(.is-ready) .activity-stats__users-page:first-child .activity-stats__row:nth-child(n+3) {
  display: none;
}

.activity-stats__users-scroll {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.activity-stats__users-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.activity-stats__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 6px;
}

.activity-stats__user {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.activity-stats__avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.activity-stats__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-stats__avatar .avatar-letter {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.activity-stats__name {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.stat {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 6px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s var(--ease-out);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(26, 31, 54, 0.12), transparent);
}
.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 14px;
  color: #283149;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}
.stat--highlight {
  border: 1px solid rgba(254, 61, 18, 0.28);
  box-shadow: 0 10px 24px -8px rgba(254, 61, 18, 0.4);
  transform: translateY(-3px);
  background: linear-gradient(180deg, #fff6f3 0%, #ffffff 60%);
}
.stat--highlight::before {
  background: var(--coral-grad);
  left: 12%;
  right: 12%;
  height: 4px;
}
.stat--highlight strong { color: var(--coral); font-size: 25px; }

/* —— Marquee —— */
.marquee-wrap {
  margin-bottom: 8px;
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  height: 52px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee__inner:hover {
  animation-play-state: paused;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 10px;
  height: 52px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 14px 6px 6px;
  background: linear-gradient(135deg, #ffffff, #fff6f3);
  border: 1px solid rgba(254, 61, 18, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(26, 31, 54, 0.06);
}
.marquee__item .avatar-letter {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

/* —— Sections —— */
.section {
  margin: 0 var(--page-pad) var(--section-gap);
}

.section-head { margin-bottom: 14px; }
.section-head h2 {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  padding-left: 13px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 19px;
  border-radius: 3px;
  background: var(--coral-grad);
}
.section-head p {
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 5px;
  padding-left: 13px;
}
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

/* 内容卡片：标题在外、内容在内（与限时福利一致） */
.section-body {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.section-body--pad {
  padding: 16px;
  overflow: visible;
}

.section--tier .section-body {
  animation: fade-up 0.55s var(--ease-out) 0.12s both;
}
.section--witness {
  animation: fade-up 0.55s var(--ease-out) 0.06s both;
  overflow: hidden;
}

.tier-tabs {
  display: flex;
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.tier-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}
.tier-tabs[data-active-door="3"] .tier-tabs__indicator {
  transform: translateX(calc(100% + 4px));
}

.tier-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.tier-tab--active {
  color: var(--coral);
  background: transparent;
  box-shadow: none;
}

.tier-ladder-wrap {
  position: relative;
  padding-top: 10px;
}

.tier-ladder__rail {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 38px;
  height: 4px;
  z-index: 0;
  pointer-events: none;
}

.tier-ladder__line {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(26, 31, 54, 0.12) 0,
    rgba(26, 31, 54, 0.12) 6px,
    transparent 6px,
    transparent 12px
  );
}

.tier-ladder {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.tier-ladder.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.tier-step {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 18px 4px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
  position: relative;
}

.tier-step--best {
  background: linear-gradient(165deg, var(--gold-soft) 0%, #fffdf8 60%);
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 10px 26px -6px rgba(255, 149, 0, 0.35);
  transform: scale(1.05);
  z-index: 2;
}
.tier-step--best::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 206, 92, 0.6), rgba(255, 176, 32, 0));
  z-index: -1;
  filter: blur(6px);
}

.tier-step__size {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}
.tier-step__price {
  font-size: 28px;
  font-weight: 900;
  color: var(--coral);
  line-height: 1.1;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.tier-step--best .tier-step__price { color: var(--orange); }
.tier-step__unit { font-size: 14px; font-weight: 700; }
.tier-step__save {
  font-size: 10px;
  color: var(--coral);
  background: rgba(254, 61, 18, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}
.tier-step__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  background: var(--gold);
  color: #7a5200;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 176, 32, 0.45);
  animation: badge-pulse 2.2s ease-in-out infinite;
}

.tier-note {
  font-size: 13px;
  color: #4b5570;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
}

.tier-signup {
  margin-top: 14px;
  overflow: hidden;
}

.tier-signup__viewport {
  overflow: hidden;
  border-radius: 12px;
}

.tier-signup__track {
  will-change: transform;
}

.tier-signup__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--rose-mist);
  border-radius: 12px;
  min-height: 52px;
}

.tier-signup__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffd24d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-signup__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tier-signup__avatar .avatar-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.tier-signup__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-signup__name {
  font-size: 14px;
  font-weight: 600;
  color: #5c4a42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-signup__time {
  font-size: 11px;
  color: #8a7a72;
  font-variant-numeric: tabular-nums;
}

.tier-signup__status {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-dark);
}

.section--tier .btn-cta {
  width: 84%;
  max-width: 84%;
  margin: 12px auto 0;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 40px;
}

/* —— 限时福利（效果图02） —— */
.welfare-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welfare-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.welfare-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.welfare-card__icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.welfare-card__head-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.welfare-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.welfare-card__title em {
  font-style: normal;
  color: var(--coral-dark);
}

.welfare-card__value {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--coral-dark);
  background: linear-gradient(135deg, #ffe0a0, var(--gold));
  padding: 3px 8px;
  border-radius: 999px;
}

.welfare-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.55;
}

.welfare-card__pickup {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--rose-mist);
  padding: 4px 10px;
  border-radius: 999px;
}

.welfare-card__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.welfare-card__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

@keyframes welfare-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.welfare-marquee-wrap {
  overflow: hidden;
  border-radius: 8px;
}

.welfare-marquee {
  overflow: hidden;
  height: 36px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.welfare-marquee__inner {
  display: flex;
  width: max-content;
  animation: welfare-marquee-scroll 120s linear infinite;
}

.welfare-marquee__inner:hover {
  animation-play-state: paused;
}

.welfare-marquee__track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 6px;
  height: 36px;
}

.welfare-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 10px 3px 3px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(254, 61, 18, 0.12), 0 1px 2px rgba(26, 31, 54, 0.06);
}

.welfare-marquee__item--gift {
  border: 1px solid rgba(254, 61, 18, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #fff0f3 100%);
}

.welfare-marquee__item--lottery {
  border: 1px solid rgba(255, 149, 0, 0.55);
  background: linear-gradient(135deg, #ffffff 0%, #fff8e6 100%);
}

.welfare-marquee__item b {
  color: var(--ink);
  font-weight: 900;
}

.welfare-marquee__item em {
  font-style: normal;
  color: #fff;
  font-weight: 900;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral-grad);
  box-shadow: 0 1px 4px rgba(217, 42, 0, 0.24);
}

.welfare-marquee__item--lottery em {
  background: linear-gradient(135deg, #ffb340 0%, #ff9500 100%);
  box-shadow: 0 2px 6px rgba(255, 149, 0, 0.35);
}

.welfare-marquee__item--lottery .welfare-marquee__text {
  color: var(--ink);
}

.welfare-marquee__avatar {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2px rgba(254, 61, 18, 0.25);
}

.welfare-marquee__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welfare-marquee__avatar .avatar-letter {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.welfare-card__banner {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9e6, #fff3d0);
  border: 1px solid rgba(255, 210, 77, 0.45);
  font-size: 12px;
  font-weight: 700;
  color: #8a5a00;
  line-height: 1.55;
}

.welfare-card--lottery .welfare-card__title em {
  font-size: 17px;
}

.welfare-table-wrap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 77, 0.35);
  background: #fffdf5;
}

.welfare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.welfare-table thead {
  background: #fff2cc;
}

.welfare-table th,
.welfare-table td {
  padding: 9px 5px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 210, 77, 0.22);
}

.welfare-table th {
  font-weight: 800;
  color: var(--ink);
}

.welfare-table td {
  color: var(--ink-muted);
  font-weight: 600;
}

.welfare-table tbody tr:nth-child(odd) {
  background: #fff;
}

.welfare-table tbody tr:nth-child(even) {
  background: #fff9f0;
}

.welfare-table tbody tr:last-child td {
  border-bottom: none;
}

.welfare-card__notice {
  margin-top: 12px;
}

.welfare-card__notice-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.welfare-card__notice ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: welfare-notice;
}

.welfare-card__notice li {
  position: relative;
  padding-left: 16px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  counter-increment: welfare-notice;
}

.welfare-card__notice li::before {
  content: counter(welfare-notice) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink-faint);
}

/* —— Groups —— */
.door-switch {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.door-switch__btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.door-switch__btn--active {
  background: var(--coral);
  color: #fff;
}

.group-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.empty-hint {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.group-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(26, 31, 54, 0.08);
}
.group-row:last-child {
  border-bottom: none;
}

.group-row__user {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.group-row__avatars {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
}
.group-row__avatars .avatar-letter {
  width: 32px;
  height: 32px;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 1px 3px rgba(26, 31, 54, 0.12);
}
.group-row__avatars .avatar-letter:first-child {
  margin-left: 0;
}
.group-row__avatars .avatar-letter--more {
  background: var(--ink-muted, #8b92a8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.group-row__status {
  flex-shrink: 0;
  text-align: right;
  cursor: pointer;
  padding: 0 4px;
}
.group-row__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.3;
  white-space: nowrap;
}
.group-row__hint .group-row__num {
  font-weight: 800;
}
.group-row__timer {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.2;
}
.group-row__timer-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.group-row__btn {
  flex-shrink: 0;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 12px -3px rgba(254, 61, 18, 0.5);
  transition: filter 0.15s, transform 0.15s;
}
.group-row__btn:active {
  filter: brightness(0.94);
  transform: scale(0.97);
}

/* —— Institutions —— */
.inst-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  background: rgba(254, 61, 18, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.inst-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.inst-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  background: linear-gradient(145deg, #fafbfe 0%, var(--surface) 100%);
  border-radius: 12px;
  border: 1px solid rgba(26, 31, 54, 0.06);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.inst-chip:active {
  transform: scale(0.98);
}
.inst-chip__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: hsl(var(--chip-hue), 48%, 38%);
  background: hsl(var(--chip-hue), 62%, 93%);
  box-shadow: inset 0 -2px 0 rgba(26, 31, 54, 0.06);
}
.inst-chip__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inst-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.inst-gallery__item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ffd9c9, #ffe9c2);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.inst-gallery__item:nth-child(3n+2) { background: linear-gradient(135deg, #cfe6ff, #d9f0e6); }
.inst-gallery__item:nth-child(3n) { background: linear-gradient(135deg, #e6dcff, #ffe0ef); }
.inst-gallery__item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

/* —— Notice —— */
.warn-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff1ea, #fff7f4);
  border: 1px solid rgba(254, 61, 18, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-dark);
  margin-bottom: 12px;
}

.notice-details {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.notice-details summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.notice-details summary::-webkit-details-marker { display: none; }
.notice-body {
  padding: 0 16px 16px;
  font-size: 14px;
  color: #3f465d;
  line-height: 1.7;
}
.notice-body ol { padding-left: 18px; }
.notice-body li { margin-bottom: 6px; }

/* —— Table —— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.course-table th {
  background: #fff2cc;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}
.course-table tbody tr:nth-child(even) td { background: rgba(244, 245, 249, 0.55); }
.course-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.cs-qr img,
.cs-qr__img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

/* —— 客服弹窗 —— */
.cs-sheet {
  position: relative;
  max-width: 300px;
  padding: 24px 20px 28px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: visible;
}
.cs-sheet::before,
.cs-sheet::after {
  content: "";
  position: absolute;
  top: 38%;
  width: 12px;
  height: 24px;
  background: rgba(26, 31, 54, 0.5);
  border-radius: 50%;
  z-index: 1;
}
.cs-sheet::before { left: -6px; }
.cs-sheet::after { right: -6px; }

.cs-sheet__head {
  text-align: left;
  margin-bottom: 16px;
  padding-right: 28px;
}
.cs-sheet__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.cs-sheet__intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #c8864a;
}
.cs-sheet__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cs-qr--modal {
  position: relative;
  padding: 8px;
}
.cs-qr--modal .cs-qr__img {
  width: 200px;
  height: 200px;
  border-radius: 4px;
}
.cs-qr__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #d9a066;
  border-style: solid;
  pointer-events: none;
}
.cs-qr__corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.cs-qr__corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.cs-qr__corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.cs-qr__corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.cs-sheet__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #c8864a;
  text-align: center;
}

.page-spacer { height: calc(94px + var(--safe-b)); }

/* —— Dock —— */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(26, 31, 54, 0.08);
  box-shadow: 0 -6px 24px rgba(26, 31, 54, 0.1);
  z-index: 50;
}

.dock__side {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding-right: 4px;
  border-right: 1px solid rgba(26, 31, 54, 0.08);
}

.dock__side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 38px;
  padding: 2px 1px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, transform 0.15s;
}

.dock__side-btn:active {
  transform: scale(0.94);
  color: var(--coral);
}

.dock__main {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.dock__solo {
  flex: 0 0 38%;
  border: 1.5px solid var(--coral);
  background: transparent;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.dock__group {
  position: relative;
  flex: 1;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(254, 61, 18, 0.35);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}
.dock__group::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine-sweep 3.2s ease-in-out infinite;
}
.dock__group:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(254, 61, 18, 0.3);
}
.dock__solo:active {
  transform: scale(0.98);
}

/* —— FAB —— */
.fab {
  position: fixed;
  bottom: calc(102px + var(--safe-b));
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
@media (min-width: 481px) {
  .fab { right: calc(50% - 240px + 8px); }
}
.fab__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(26, 31, 54, 0.12);
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease-out);
  animation: fab-in 0.45s var(--ease-out) both;
}
.fab__btn svg {
  display: block;
  flex-shrink: 0;
}
.fab__btn span {
  display: block;
  line-height: 1.2;
  text-align: center;
}
.fab__btn:nth-child(1) { animation-delay: 0.08s; }
.fab__btn:nth-child(2) { animation-delay: 0.15s; }
.fab__btn:nth-child(3) { animation-delay: 0.22s; }
.fab__btn:nth-child(4) { animation-delay: 0.29s; }
.fab__btn:active { transform: scale(0.94); }
.fab__btn--accent {
  background: var(--coral-grad);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(254, 61, 18, 0.55);
  animation: fab-in 0.45s var(--ease-out) both, pulse-ring 2.6s ease-out 1s infinite;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn--primary {
  background: var(--coral-grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(254, 61, 18, 0.55);
}
.btn--primary:active { transform: scale(0.985); filter: brightness(0.96); }
.btn--ghost {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  box-shadow: none;
}
.btn--ghost:active { background: var(--bg); transform: scale(0.985); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; padding: 16px; font-size: 16px; }

/* —— Overlay / Sheet —— */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 31, 54, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.overlay .sheet {
  max-width: 480px;
}
.overlay[hidden] { display: none !important; }
.overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  animation: overlay-in 0.25s var(--ease-out);
}
@keyframes overlay-in {
  from { background: rgba(26, 31, 54, 0); }
  to { background: rgba(26, 31, 54, 0.5); }
}
.overlay.is-open .sheet {
  animation: sheet-up 0.32s var(--ease-out);
}
.overlay--center {
  align-items: center;
  padding: 24px;
}
.overlay--center.is-open .sheet {
  animation: sheet-modal-in 0.28s var(--ease-out);
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes sheet-modal-in {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sheet {
  width: 100%;
  max-height: 88%;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet--tall { max-height: 92%; }
.sheet--modal {
  width: 100%;
  max-width: 340px;
  max-height: none;
  border-radius: var(--radius);
}
.sheet--center {
  margin: auto 24px;
  border-radius: var(--radius);
  max-height: none;
  padding: 24px;
  text-align: center;
}

.sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 10px auto 0;
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.sheet__head h2 { font-size: 17px; font-weight: 800; }
.sheet__close {
  border: none;
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}
.sheet__close--abs { position: absolute; top: 12px; right: 12px; }
.sheet__foot {
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* —— 机构详情弹框 —— */
.inst-sheet__body {
  padding: 0 16px calc(20px + var(--safe-b));
}
.inst-sheet__section + .inst-sheet__section {
  margin-top: 18px;
}
.inst-sheet__section h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inst-sheet__section h3::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--rose, #f5418c);
  flex-shrink: 0;
}
.inst-sheet__intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted, #5c5470);
}
.inst-sheet__gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-right: -16px;
  padding-right: 16px;
}
.inst-sheet__gallery::-webkit-scrollbar { display: none; }
.inst-sheet__gallery img {
  flex: 0 0 132px;
  width: 132px;
  height: 99px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  background: var(--rose-mist);
}
.inst-sheet__reviews {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inst-review {
  padding: 12px;
  border-radius: 12px;
  background: var(--rose-mist, #fff5f9);
  border: 1px solid rgba(254, 61, 18, 0.1);
}
.inst-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.inst-review__user {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.inst-review__stars {
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffb020;
  flex-shrink: 0;
}
.inst-review__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted, #5c5470);
}

.package-tabs {
  display: flex;
  position: relative;
  margin: 0 16px;
  background: var(--surface);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.package-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}
.package-tabs[data-active-tab="custom"] .package-tabs__indicator {
  transform: translateX(calc(100% + 4px));
}
.package-tab {
  flex: 1;
  border: none;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border-radius: 10px;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s var(--ease-out);
  position: relative;
  z-index: 1;
}
.package-tab--active {
  color: var(--coral);
  background: transparent;
  box-shadow: none;
}

.package-panel {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: none;
}
.package-panel--active { display: block; }

.ai-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
}

.age-group { margin-bottom: 16px; }
.age-group__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.age-group__label::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--coral);
  border-radius: 2px;
}

.pkg-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.pkg-card--selected {
  border-color: var(--coral);
  background: linear-gradient(160deg, #fff4f1, #ffffff 70%);
  box-shadow: 0 8px 22px -10px rgba(254, 61, 18, 0.45);
}
.pkg-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.pkg-card--selected .pkg-card__check { display: flex; }
.pkg-card h3 { font-size: 15px; font-weight: 800; }
.pkg-card__doors {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 4px;
}
.pkg-card__courses {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 6px 0;
}
.pkg-card__point {
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
}
.pkg-card__price {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--coral);
}
.pkg-card__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-left: 6px;
}

/* —— Custom picker —— */
.custom-picker {
  display: flex;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.custom-nav {
  width: 88px;
  flex-shrink: 0;
  background: var(--bg);
  overflow-y: auto;
}
.custom-nav__item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 8px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color 0.2s;
}
.custom-nav__item--active {
  color: var(--coral);
  font-weight: 700;
  background: var(--bg-card);
}
.custom-nav__item--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--coral);
  border-radius: 0 2px 2px 0;
}

.custom-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f0eeeb;
}

.course-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.course-item--selected {
  border-color: var(--coral);
  box-shadow: 0 2px 12px rgba(254, 61, 18, 0.15);
}
.course-item__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
}
.course-item--selected .course-item__check { display: flex; }
.course-item h4 { font-size: 13px; font-weight: 700; line-height: 1.4; padding-right: 24px; }
.course-item__row {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.course-item__badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  padding: 2px 8px;
  background: #ffe8e4;
  color: var(--coral);
  border-radius: 6px;
}
.course-item__store {
  color: var(--coral);
  text-decoration: underline;
  cursor: pointer;
}

.custom-counter {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  margin-top: 10px;
}

/* —— Register —— */
.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.sub-header--transparent {
  background: transparent;
  border: none;
  color: #fff;
}
.sub-header__back {
  border: none;
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.sub-header--transparent .sub-header__back {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.sub-header h1 { font-size: 17px; font-weight: 800; }

.register-form { padding: 16px 16px 100px; }
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.form-card h2 { font-size: 15px; margin-bottom: 14px; }
.form-card h2 em { font-size: 12px; color: var(--coral); font-style: normal; font-weight: 600; }

.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gift-options { display: flex; flex-direction: column; gap: 8px; }
.gift-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}
.gift-opt:has(input:checked) { border-color: var(--coral); background: rgba(255,90,60,0.04); }
.gift-opt input { accent-color: var(--coral); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  cursor: pointer;
}
.checkbox-row input { margin-top: 2px; accent-color: var(--coral); flex-shrink: 0; }
.checkbox-row--emph { color: var(--ink); font-weight: 600; }
.checkbox-row a { color: var(--coral); }

.order-summary {
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* —— Group page —— */
#page-group {
  position: relative;
  background: var(--page-bg);
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-b));
}

.group-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding-top: max(12px, env(safe-area-inset-top));
}

.group-topbar h1 {
  flex: 1;
  text-align: center;
  margin-right: 36px;
}

.group-hero {
  position: relative;
  margin: 0;
  padding: calc(max(12px, env(safe-area-inset-top)) + 52px) 16px 32px;
  background:
    radial-gradient(80% 70% at 90% 0%, #ff7a4d 0%, rgba(255, 122, 77, 0) 55%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 61, 94, 0.35) 0%, rgba(255, 61, 94, 0) 60%),
    linear-gradient(165deg, #ff5536 0%, #ff7144 45%, #ff8a6b 100%);
  color: #fff;
  overflow: hidden;
}

.group-hero__glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 150, 0.45), rgba(255, 222, 150, 0));
  pointer-events: none;
}

.group-timer { text-align: center; position: relative; z-index: 1; }
.group-timer__label {
  display: block;
  font-size: 13px;
  opacity: 0.92;
  letter-spacing: 0.04em;
}
.group-timer__digits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.group-timer__digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 50px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.group-timer__sep {
  font-size: 22px;
  font-weight: 800;
  opacity: 0.88;
  line-height: 1;
  padding-bottom: 2px;
}

.group-body {
  position: relative;
  z-index: 2;
  padding: 0 0 8px;
}

.tier-progress {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px 14px 16px;
  box-shadow: 0 6px 24px rgba(160, 40, 20, 0.18);
}

.tier-progress__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 4px;
  padding: 0 2px;
}

.tier-progress__track {
  position: absolute;
  top: 15px;
  left: 8%;
  right: 8%;
  height: 8px;
  background: #ffe8e2;
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}

.tier-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff5536 0%, #ff7144 100%);
  border-radius: 999px;
  transition: width 0.6s var(--ease-out);
  box-shadow: 0 0 10px rgba(255, 85, 54, 0.45);
}

.tier-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.tier-progress__rebate {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.2;
  color: #aaa;
  background: #f4f4f4;
  padding: 3px 10px;
  border-radius: 999px;
}

.tier-progress__item--done .tier-progress__rebate {
  color: #ff5536;
  background: #fff0eb;
}

.tier-progress__item--active .tier-progress__rebate {
  color: #fff;
  background: linear-gradient(135deg, #ff5536, #ff7144);
  box-shadow: 0 2px 8px rgba(255, 85, 54, 0.3);
}

.tier-progress__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ffd4ca;
  position: relative;
  z-index: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ccc;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.tier-progress__dot--done {
  background: linear-gradient(145deg, #ff5536, #ff7144);
  color: #fff;
  border-color: #ff5536;
  box-shadow: 0 4px 12px rgba(255, 85, 54, 0.4);
}

.tier-progress__dot--active {
  background: #fff;
  border: 3px solid #ff5536;
  color: #ff5536;
  box-shadow: 0 0 0 5px rgba(255, 85, 54, 0.15);
  animation: tier-dot-pulse 2s ease-in-out infinite;
}

@keyframes tier-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 85, 54, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(255, 85, 54, 0.08); }
}

.tier-progress__text {
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  color: #444;
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff8f6;
  border-radius: 10px;
  border-left: 3px solid #ff5536;
}

.tier-progress__text strong {
  color: #ff5536;
  font-weight: 900;
}

.tier-progress__text .tier-progress__keep {
  white-space: nowrap;
}

.tier-progress__cta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  color: #ff3d61;
  letter-spacing: 0.02em;
}

.member-wall {
  margin: -20px 16px 12px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 28px rgba(254, 61, 18, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.member-wall h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 14px;
}
.avatar-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.avatar-grid__item .avatar-letter--lg,
.avatar-grid__item .member-avatar--lg {
  border: 2px solid rgba(254, 61, 18, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.avatar-grid__item span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.avatar-grid__slot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed rgba(254, 61, 18, 0.22);
  background: rgba(255, 245, 245, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(254, 61, 18, 0.45);
  font-weight: 300;
}

.btn--invite {
  background: linear-gradient(135deg, #ff3d61 0%, #ff5f43 55%, #ff7144 100%);
  box-shadow: 0 8px 22px -4px rgba(255, 61, 97, 0.45);
}

.member-wall__invite {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.rebate-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
  text-align: center;
  padding: 10px;
  background: rgba(254, 61, 18, 0.08);
  border-radius: var(--radius-sm);
}

.rebate-card {
  margin: 0 var(--page-pad) 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 77, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.rebate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd24d, #ffb347, #ffd24d);
}
.rebate-card[hidden] { display: none !important; }

.rebate-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rebate-card__icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.rebate-card__title {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.rebate-card__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 210, 77, 0.35);
  color: #8a5a00;
}
.rebate-card--pending .rebate-card__badge {
  background: rgba(255, 149, 0, 0.18);
  color: #b36b00;
}
.rebate-card--wait .rebate-card__badge {
  background: rgba(255, 61, 97, 0.1);
  color: #ff3d61;
}
.rebate-card--done .rebate-card__badge {
  background: rgba(82, 196, 26, 0.15);
  color: #389e0d;
}
.rebate-card--failed .rebate-card__badge {
  background: rgba(255, 77, 79, 0.12);
  color: #cf1322;
}

.rebate-card__amount {
  font-size: 32px;
  font-weight: 900;
  color: #8a5a00;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 4px 0 8px;
}
.rebate-card--wait .rebate-card__amount { color: #ff3d61; }
.rebate-card--done .rebate-card__amount { color: #389e0d; }
.rebate-card--failed .rebate-card__amount { font-size: 16px; color: #cf1322; }

.rebate-card__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}
.rebate-card__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.rebate-card__btn {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
}
.rebate-card__actions .btn--ghost {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  box-shadow: none;
}
.rebate-card__actions .btn--ghost:active {
  background: var(--bg);
  transform: scale(0.985);
}

.group-rules-card {
  margin: 0 var(--page-pad) 16px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.group-rules-card__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.rule-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.85;
}
.rule-list li + li { margin-top: 2px; }

.group-qr-card {
  margin: 0 var(--page-pad) 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.follow-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-sm { font-size: 14px; margin: 0 16px 10px; }

.group-cta {
  padding: 0 var(--page-pad) 16px;
}
.group-cta .btn--invite {
  display: flex;
  width: 100%;
  margin: 0;
}

.qr-section { text-align: center; }
.group-qr-card.qr-section { padding: 16px 12px; }
.group-qr-card .qr-item h2 { font-size: 13px; }
.group-qr-card .qr-placeholder {
  width: 120px;
  height: 120px;
}
.qr-grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.qr-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.qr-item h2 { font-size: 14px; margin-bottom: 12px; line-height: 1.35; }
.qr-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-faint);
}
.qr-item .qr-placeholder {
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 1;
}
.qr-placeholder--lg { width: 180px; height: 180px; }
.qr-tip { font-size: 11px; color: var(--ink-faint); margin-top: 10px; line-height: 1.45; }

.join-preview {
  padding: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* —— Toast —— */
.toast {
  position: fixed;
  top: 45%;
  left: 50%;
  margin-left: -120px;
  width: 240px;
  text-align: center;
  background: rgba(26, 31, 54, 0.92);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.toast.is-show {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__inner { animation: none; }
}

/* ===== 效果图覆写 ===== */

.page { display: block; }

.hero {
  position: relative;
  padding: 0 !important;
  background: var(--page-bg) !important;
  color: inherit;
  overflow: visible;
}
.hero::after,
.hero__bg { display: none !important; }
.hero__countdown {
  position: relative;
  z-index: 3;
  padding: 10px var(--page-pad) 12px;
}

/* —— 顶部限时抢购条 —— */
.flash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 3px var(--page-pad);
  background: #fff5f0;
  box-sizing: border-box;
}
.flash-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: #1a1a1a;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.flash-bar__label::before { content: none !important; }
.flash-bar__digits {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.flash-bar .digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 2px;
  border-radius: 4px;
  background: #e8342a;
  border: none;
  box-shadow: none;
}
.flash-bar .digit-box b {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.flash-bar .digit-unit,
.flash-bar .digit-sep {
  font-size: 11px;
  font-weight: 700;
  color: #b85450;
  line-height: 1;
}

.section--countdown {
  display: none;
}
.section--countdown .countdown {
  margin-top: 0;
}
.hero:has(.hero__banner) {
  padding: 0;
  color: inherit;
}
.hero:has(.hero__banner)::after {
  display: none;
}
.hero__banner {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__banner-copy {
  padding: 8px 14px;
  background: #fff;
  text-align: left;
}
.hero__banner-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #333;
  letter-spacing: 0;
}
.hero__banner-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #666;
}

/* —— 抽奖进度条 —— */
.hero__lottery-bar {
  position: absolute;
  top: 18px;
  left: var(--page-pad);
  right: var(--page-pad);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
  padding: 3px 4px 3px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff9500 0%, #ffd24d 48%, #ff9500 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(255, 110, 60, 0.32);
  box-sizing: border-box;
}
.hero__lottery-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.hero__lottery-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
}
.hero__lottery-main strong {
  font-size: 14px;
  font-weight: 900;
  color: #e02818;
  margin: 0 1px;
  font-variant-numeric: tabular-nums;
}
.hero__lottery-prize {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  color: #e22d1c;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(190, 60, 30, 0.2);
}
.hero__lottery-prize > span[aria-hidden="true"] {
  font-size: 12px;
  line-height: 1;
}

/* —— 左侧分享动态（左右切换） —— */
.hero__share-feed {
  position: absolute;
  left: var(--page-pad);
  top: 62px;
  z-index: 3;
  width: calc(100% - var(--page-pad) * 2);
  max-width: 220px;
  height: 32px;
  pointer-events: none;
  overflow: hidden;
}
@keyframes share-feed-in {
  0% { opacity: 0; transform: translateX(100%); }
  10% { opacity: 1; transform: translateX(0); }
  85% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-100%); }
}
.share-feed-item {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: 28px;
  padding: 2px 10px 2px 2px;
  border-radius: 999px;
  background: #ffd54f;
  color: #3d2a00;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  animation: share-feed-in 3.2s ease forwards;
  will-change: transform, opacity;
}
.share-feed-item__avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.share-feed-item__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-feed-item__avatar .avatar-letter {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.share-feed-item__name {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.share-feed-item__action {
  font-weight: 500;
  opacity: 0.88;
}

.hero__panel {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 0 var(--page-pad);
}

.price-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}
.price-card__region {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-card__pin { color: var(--coral); flex-shrink: 0; }
.price-card__main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}
.price-card__num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--price-red);
  font-variant-numeric: tabular-nums;
}
.price-card__unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--price-red);
  margin: 0 2px 0 1px;
}
.price-card__grab {
  font-size: 30px;
  font-weight: 900;
  color: var(--price-red);
  margin: 0 4px;
}
.price-card__main .price-card__num:last-of-type {
  font-size: 48px;
}
.price-card__main .price-card__unit:last-of-type {
  font-size: 16px;
  color: var(--price-red);
}
.price-card__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.price-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  background: var(--rose-mist);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
}
.price-tag--fill {
  color: #fff;
  background: var(--coral-grad);
  border: none;
}
.price-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.price-card__orig {
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.price-card__slogan {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  background: var(--rose-mist);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero .countdown,
.section--countdown .countdown {
  margin-top: 0;
  width: 100%;
  background: #fff5f0;
  border: none;
  border-radius: 0;
  padding: 6px var(--page-pad);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}
.flash-bar.countdown {
  margin-top: 0;
  width: 100%;
  background: #fff5f0;
  border: none;
  border-radius: 0;
  padding: 3px var(--page-pad);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}
.flash-bar .countdown__label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0;
  flex-shrink: 0;
}
.hero .countdown__label:not(.flash-bar__label),
.section--countdown .countdown__label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0;
  flex-shrink: 0;
}
.hero .countdown__label::before,
.section--countdown .countdown__label::before,
.flash-bar .countdown__label::before { content: none; }
.hero .countdown__label:not(.flash-bar__label)::after,
.section--countdown .countdown__label::after {
  content: "⚡" !important;
  font-size: 12px;
  font-style: normal;
  color: #f0a090;
  line-height: 1;
}
.hero .countdown__digits,
.section--countdown .countdown__digits,
.flash-bar .countdown__digits {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hero .digit-box,
.section--countdown .digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 3px;
  border-radius: 5px;
  background: #e8342a;
  border: none;
  box-shadow: none;
}
.flash-bar .countdown__digits {
  gap: 3px;
}
.flash-bar .digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 2px;
  border-radius: 4px;
  background: #e8342a;
  border: none;
  box-shadow: none;
}
.hero .digit-box b,
.section--countdown .digit-box b {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}
.flash-bar .digit-box b {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}
.hero .digit-unit,
.section--countdown .digit-unit {
  font-size: 12px;
  font-weight: 600;
  color: #b85450;
  line-height: 1;
}
.flash-bar .digit-unit {
  font-size: 11px;
  font-weight: 600;
  color: #b85450;
  line-height: 1;
}
.hero .digit-sep,
.section--countdown .digit-sep {
  font-size: 12px;
  font-weight: 600;
  color: #b85450;
  line-height: 1;
}
.flash-bar .digit-sep {
  font-size: 11px;
  font-weight: 600;
  color: #b85450;
  line-height: 1;
}

.stat__emoji {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.stat::before { background: linear-gradient(90deg, transparent, rgba(254, 61, 18, 0.12), transparent); }
.stat--highlight {
  border-color: rgba(254, 61, 18, 0.22);
  background: linear-gradient(180deg, var(--rose-mist), #fff);
}
.stat--highlight::before { background: var(--coral-grad); }
.stat--highlight strong { color: var(--coral-dark); }

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url("assets/section-heart.svg") center / contain no-repeat;
  border-radius: 0;
}
.section-head h2 {
  font-size: 17px;
  padding-left: 30px;
}
.section-head p { padding-left: 30px; font-size: 13px; }

.text-pill {
  display: inline-block;
  background: var(--rose-mist);
  color: var(--coral-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: inherit;
}


.notice-card {
  background: #fff;
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.notice-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}
.notice-items {
  display: flex;
  flex-direction: column;
}
.notice-item {
  padding: 8px 0;
  border-bottom: 1px dotted #e0e0e0;
}
.notice-item:first-child { padding-top: 0; }
.notice-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.notice-item__label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ff5536;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.notice-item__text {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}
.notice-item--warn .notice-item__text {
  color: #e64340;
  font-weight: 500;
}

.inst-gallery--10 .inst-gallery__item {
  background: #fff;
  border: 1px solid rgba(254, 61, 18, 0.1);
  box-shadow: none;
}
.inst-gallery--10 .inst-gallery__item:nth-child(n) { background: #fff; }

/* —— 学员见证 —— */
.witness-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  margin-right: calc(-1 * var(--page-pad));
  padding-right: var(--page-pad);
  scroll-padding-right: var(--page-pad);
}
.witness-scroll::-webkit-scrollbar { display: none; }
.witness-gallery {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 2px;
}
.witness-card {
  width: 160px;
  scroll-snap-align: start;
  touch-action: manipulation;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(254, 61, 18, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.witness-card:active {
  transform: scale(0.98);
}
.witness-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--rose-mist);
}
.witness-card__video,
.witness-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.witness-card__img--cover {
  position: absolute;
  inset: 0;
}
.witness-card__video[controls] { pointer-events: auto; }
.witness-card__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--hue, 320) 72% 94%), hsl(var(--hue, 320) 58% 88%));
}
.witness-card__placeholder span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: hsl(var(--hue, 320) 58% 58%);
}
.witness-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.witness-card__play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 0 0 12px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.witness-card__play:active { transform: translate(-50%, -50%) scale(0.94); }
.witness-card__play[hidden],
.witness-card__video[hidden],
.witness-card__img[hidden],
.witness-card__placeholder[hidden] { display: none; }
.witness-card__name {
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  border-top: 1px solid rgba(254, 61, 18, 0.08);
}

.course-table th {
  background: #fff2cc;
  text-align: center;
}
.course-table td { text-align: center; }

.qr-placeholder {
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  background: #fafafa;
}
.qr-placeholder--lg { width: 200px; height: 200px; }

.brand-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-card);
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-head__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.brand-head__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-head__text {
  min-width: 0;
}

.brand-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.brand-head p {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 3px;
  line-height: 1.4;
}

.brand-card__desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.brand-stat {
  background: var(--rose-mist);
  border-radius: 10px;
  padding: 12px 4px;
  text-align: center;
}

.brand-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1.2;
}

.brand-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-faint);
}

.brand-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.brand-feature__icon svg {
  width: 52px;
  height: 52px;
}

.brand-feature__icon--1 { background: #ffe4e1; }
.brand-feature__icon--2 { background: #f0fff0; }
.brand-feature__icon--3 { background: #e6e6fa; }

.brand-feature__label {
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
}

.brand-follow-card {
  border: 3px solid #fde2e7;
  border-radius: 14px;
  background: #fff;
}

.brand-card .brand-follow-card {
  margin-top: 16px;
}

.brand-follow-card__inner {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.brand-follow-card__info {
  flex: 1;
  min-width: 0;
  padding: 16px 10px 16px 16px;
}

.brand-follow-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.brand-follow-card__tag {
  display: inline-block;
  padding: 5px 12px;
  background: #ff4d20;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-follow-card__tear {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  width: 0;
  margin: 10px 0;
  border-left: 1px dashed #d5d5d5;
}

.brand-follow-card__tear::before,
.brand-follow-card__tear::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.brand-follow-card__tear::before { top: -12px; }
.brand-follow-card__tear::after { bottom: -12px; }

.brand-follow-card__qr {
  flex-shrink: 0;
  padding: 10px 14px 10px 8px;
}

.brand-follow-card__qr-box {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 10px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.35;
}

.brand-follow-card__qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.coop-panel {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 0 14px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.coop-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: -14px auto 16px;
  padding: 11px 24px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff0eb 0%, #ffe8df 50%, #fff5f0 100%);
  box-shadow: 0 2px 10px rgba(254, 61, 18, 0.1);
}

.section--coop {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.coop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 14px 12px 14px 14px;
}

.coop-item__text {
  flex: 1;
  min-width: 0;
}

.coop-item h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 6px;
  line-height: 1.45;
}

.coop-item__mark {
  background: linear-gradient(transparent 55%, #fff59d 55%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 1px;
}

.coop-item p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.coop-item__illus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.coop-item__illus svg {
  width: 68px;
  height: 68px;
}

.dock__solo {
  border-color: var(--coral-light);
  color: var(--coral-dark);
  border-radius: 999px;
}
.dock__group {
  border-radius: 999px;
  background: var(--coral-grad);
}
.dock__group::after { display: none; }

.warn-banner {
  background: #fff6e0;
  border-color: rgba(255, 210, 77, 0.45);
  color: #b97400;
}

.home-fold { margin-top: 20px; padding-top: 0; }
.stat strong { font-size: 20px; }
.stat span { font-size: 12px; color: var(--ink-faint); }
.tier-step__price { color: var(--coral-dark); }
.tier-step--best .tier-step__price { color: var(--orange); }
.inst-count {
  background: var(--rose-mist);
  color: var(--coral-dark);
}

/* —— AI 智能选课 —— */
.section--ai .section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-pick__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, #6aa3ff 0%, #4f7dff 100%);
  box-shadow: 0 3px 8px rgba(79, 125, 255, 0.35);
}
.ai-pick {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.ai-pick__tabs {
  display: flex;
  gap: 8px;
}
.ai-pick__tab {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(254, 61, 18, 0.2);
  background: var(--rose-mist);
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.ai-pick__tab:active { transform: scale(0.96); }
.ai-pick__tab--active {
  color: #fff;
  background: var(--coral-grad);
  border-color: transparent;
  box-shadow: 0 4px 12px -3px rgba(254, 61, 18, 0.4);
}
.ai-pick__tab--ghost {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--ink-muted);
}
.ai-pick__tab--ghost.ai-pick__tab--active {
  color: #fff;
  background: var(--coral-grad);
  border-color: transparent;
}

.ai-pick__result { margin-top: 14px; }
.ai-card__stage {
  font-size: 14px;
  font-weight: 800;
  color: var(--coral-dark);
  margin-bottom: 8px;
}
.ai-card {
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffefe8 100%);
  border: 1px solid rgba(254, 61, 18, 0.12);
  overflow: hidden;
  animation: fade-up 0.4s var(--ease-out);
}
.ai-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral-grad);
}
.ai-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.ai-card__emoji { font-size: 18px; line-height: 1; }
.ai-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(254, 61, 18, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}
.ai-card__reason {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.45;
}
.ai-card__reason strong { color: var(--ink); }
.ai-card__spark { margin-right: 2px; }
.ai-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.ai-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ai-card__price del {
  font-size: 13px;
  color: var(--ink-faint);
}
.ai-card__price b {
  font-size: 24px;
  font-weight: 900;
  color: var(--price-red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ai-card__btn {
  flex-shrink: 0;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px -3px rgba(254, 61, 18, 0.5);
  transition: filter 0.15s, transform 0.15s;
}
.ai-card__btn:active { filter: brightness(0.95); transform: scale(0.97); }

/* —— 我的订单 —— */
.orders-list {
  padding: 16px 16px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.order-card--new {
  border-color: var(--coral-light);
  box-shadow: 0 8px 22px -8px rgba(245, 88, 155, 0.35);
}

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.order-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
}

.order-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.order-status--none {
  color: var(--ink-faint);
  background: #f3f0f2;
}
.order-status--wait {
  color: #b97400;
  background: #fff6e0;
}
.order-status--done {
  color: #1f9d6b;
  background: #e6f7ef;
}
.order-status--failed {
  color: var(--coral-dark);
  background: var(--rose-mist);
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.order-meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.order-meta__row span {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.order-meta__row b {
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
  min-width: 0;
}
.order-meta__price {
  color: var(--price-red) !important;
  font-weight: 800 !important;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.order-meta__no {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.order-rebate {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff9e6, #fff3d0);
  border: 1px solid rgba(255, 210, 77, 0.45);
  font-size: 12px;
  font-weight: 600;
  color: #8a5a00;
  line-height: 1.5;
}
.order-rebate__icon { flex-shrink: 0; }

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.order-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.order-card__pay {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.order-card__btn {
  flex-shrink: 0;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 12px -3px rgba(254, 61, 18, 0.5);
  transition: filter 0.15s, transform 0.15s;
}
.order-card__btn:active { filter: brightness(0.95); transform: scale(0.97); }
.order-card__btn--ghost {
  background: #fff;
  color: var(--coral-dark);
  border: 1px solid var(--coral-light);
  box-shadow: none;
}

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  gap: 6px;
}
.orders-empty__icon { font-size: 48px; line-height: 1; margin-bottom: 6px; }
.orders-empty__title { font-size: 16px; font-weight: 800; color: var(--ink); }
.orders-empty__sub { font-size: 13px; color: var(--ink-faint); }
/* —— 员工推广数据 —— */
.promo-stats {
  padding: 16px 16px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-summary {
  background: var(--coral-grad);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(254, 61, 18, 0.45);
}
.promo-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.promo-summary__staff {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.promo-summary__tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.promo-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.promo-metric {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}
.promo-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.promo-metric span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.92;
}
.promo-metric--highlight strong {
  font-size: 22px;
}

.promo-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.promo-total {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 12px 6px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.promo-total strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.promo-total span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-faint);
}

@keyframes notify-switch-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(254, 61, 18, 0.28), 0 0 10px rgba(254, 61, 18, 0.22);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(254, 61, 18, 0.12), 0 0 18px rgba(254, 61, 18, 0.42);
  }
}
@keyframes notify-hint-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.promo-notify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.promo-notify--off {
  border-color: rgba(254, 61, 18, 0.35);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(254, 61, 18, 0.08),
    0 0 20px rgba(254, 61, 18, 0.14);
}
.promo-notify--off .promo-notify__icon {
  color: var(--coral);
}
.promo-notify__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.promo-notify__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rose-mist);
  color: var(--coral);
}
.promo-notify__text {
  min-width: 0;
}
.promo-notify__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.promo-notify__desc {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-faint);
}
.promo-notify__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.promo-notify__hint {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--coral);
  white-space: nowrap;
  transform-origin: center bottom;
  animation: notify-hint-pulse 1.6s ease-in-out infinite;
}
.promo-notify__switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 28px;
  cursor: pointer;
}
.promo-notify__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.promo-notify__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e8e4e7;
  transition: background 0.25s var(--ease-out);
}
.promo-notify__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 31, 54, 0.18);
  transition: transform 0.25s var(--ease-spring);
}
.promo-notify__switch input:checked + .promo-notify__track {
  background: var(--coral-grad);
}
.promo-notify__switch input:checked + .promo-notify__track::after {
  transform: translateX(18px);
}
.promo-notify--off .promo-notify__track {
  animation: notify-switch-glow 2.2s ease-in-out infinite;
}
.promo-notify--off .promo-notify__track::after {
  box-shadow: 0 1px 6px rgba(254, 61, 18, 0.35);
}

.promo-records__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.promo-records__head h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.promo-records__head span {
  font-size: 12px;
  color: var(--ink-faint);
}

.promo-tabs {
  display: flex;
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.promo-tabs__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  background: var(--rose-mist);
  border-radius: 10px;
  transition: transform 0.3s var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}
.promo-tabs[data-active-tab="view"] .promo-tabs__indicator {
  transform: translateX(calc(100% + 4px));
}
.promo-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border-radius: 10px;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s var(--ease-out);
  position: relative;
  z-index: 1;
}
.promo-tab--active {
  color: var(--coral-dark);
}

.promo-records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  gap: 6px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}
.promo-records-empty__icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}
.promo-records-empty__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.promo-records-empty__sub {
  font-size: 12px;
  color: var(--ink-faint);
}

.promo-record {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
}
.promo-record__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.promo-record__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.promo-record__avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rose-mist);
}
.promo-record__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-record__avatar .avatar-letter {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.promo-record__user {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-record__action {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: #1f9d6b;
  background: #e6f7ef;
}
.promo-record__action--claimed {
  color: var(--ink-faint);
  background: #f3f0f2;
}
.promo-record__claim {
  flex-shrink: 0;
  border: none;
  background: var(--coral-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 3px 10px -2px rgba(254, 61, 18, 0.45);
  transition: filter 0.15s, transform 0.15s;
}
.promo-record__claim:active {
  filter: brightness(0.95);
  transform: scale(0.97);
}
.promo-record--claimed {
  opacity: 0.92;
}
.promo-record__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.promo-record__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.promo-record__row span {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.promo-record__row b {
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
  min-width: 0;
}
.promo-record__commission {
  color: var(--price-red) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.orders-empty__btn {
  margin-top: 16px;
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 14px;
}

/* 多页切换：覆盖效果图单页 display:block */
.page:not(.page--active) { display: none !important; }
.page--active { display: block !important; }
.page[hidden] { display: none !important; }

/* —— 用户资料授权弹层（H5 模拟小程序 chooseAvatar + nickname） —— */
.overlay--auth {
  z-index: 200;
  background: rgba(26, 31, 54, 0.62);
}
.auth-sheet {
  position: relative;
  max-width: 320px;
  padding: 0 0 8px;
}
.auth-sheet__head {
  padding: 28px 24px 8px;
  text-align: center;
}
.auth-sheet__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #07C160;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-sheet__head h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.auth-sheet__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.auth-sheet__body {
  padding: 16px 24px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.auth-avatar-btn {
  position: relative;
  width: 96px;
  height: 96px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f5f0f2;
  box-shadow: inset 0 0 0 2px rgba(232, 72, 122, 0.18);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-avatar-btn:active {
  transform: scale(0.96);
}
.auth-avatar-btn__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-avatar-btn__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  padding: 8px;
}
.auth-avatar-btn__cam {
  font-size: 22px;
  line-height: 1;
}
.auth-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field__input:focus {
  border-color: rgba(232, 72, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 72, 122, 0.12);
}
.auth-field__input::placeholder {
  color: #b8b0b4;
}
.auth-sheet__foot {
  padding: 8px 24px 16px;
}
.auth-sheet__foot .btn[disabled] {
  opacity: 0.45;
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.member-avatar--lg {
  width: 48px;
  height: 48px;
}
