/* ==========================================================================
   武川公社 · 用户端样式
   视觉基线参考 template/src/app/soul：主色 #ff475b / 白卡 30rpx 圆角 / 软阴影
   ========================================================================== */

:root {
  --primary: #ff475b;
  --primary-d: #e8354a;
  --primary-l: #fff0f2;
  --primary-g: linear-gradient(135deg, #ff7b8c 0%, #ff475b 55%, #f0344a 100%);
  --text: #191b28;
  --text-2: #000333;
  --muted: #8f9aa8;
  --muted-2: #b3bcc7;
  --line: #eef0f3;
  --bg: #f2f2f2;
  --white: #fff;
  --gold: #c9913f;
  --gold-l: #fdf5e6;
  --green: #17b26a;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 2px 18px rgba(162, 169, 179, 0.2);
  --shadow-up: 0 -6px 24px rgba(162, 169, 179, 0.16);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #e9ebee;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ------------------------------- 外壳 ------------------------------- */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 460px) {
  .app {
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(25, 27, 40, 0.12);
  }
}
.view { flex: 1; padding-bottom: 12px; overflow-x: clip; }
.view.has-tabbar { padding-bottom: calc(72px + var(--safe-b)); }
.view.has-footer { padding-bottom: calc(76px + var(--safe-b)); }

.page { padding: 0 16px 16px; }

/* ------------------------------- 导航 ------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(238, 240, 243, 0.9);
}
.navbar.transparent { background: transparent; border-bottom: 0; backdrop-filter: none; }
.navbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.navbar .nav-side {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.navbar .nav-side:active { background: rgba(0, 0, 0, 0.05); }
.navbar .nav-action {
  font-size: 13px;
  color: var(--primary);
  padding: 0 8px;
}

/* ------------------------------- 底部导航 ------------------------------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(62px + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-up);
  z-index: 40;
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  transition: color 0.2s;
}
.tabbar__item svg { width: 23px; height: 23px; }
.tabbar__item--active { color: var(--primary); font-weight: 600; }
.tabbar__item--active svg { transform: translateY(-1px); }
.tabbar__badge {
  position: absolute;
  transform: translate(14px, -4px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}

/* ------------------------------- 通用组件 ------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--pad0 { padding: 0; overflow: hidden; }

.section { margin-top: 22px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: var(--primary-g);
}
.section-more { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary-g);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(255, 71, 91, 0.28);
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); opacity: 0.92; }
.btn--block { display: flex; width: 100%; }
.btn--ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(255, 71, 91, 0.35);
  box-shadow: none;
}
.btn--dark { background: #191b28; box-shadow: 0 6px 16px rgba(25, 27, 40, 0.2); }
.btn--gray { background: #f1f3f5; color: var(--text); box-shadow: none; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--xs { height: 28px; padding: 0 11px; font-size: 12px; box-shadow: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f6f8;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.chip--active { background: var(--primary-l); color: var(--primary); font-weight: 600; }
.chip--gold { background: var(--gold-l); color: var(--gold); }
.chip--green { background: #e9f9f1; color: var(--green); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-l);
  color: var(--primary);
  font-size: 11px;
  line-height: 17px;
}
.tag--gold { background: linear-gradient(135deg, #f7e2b8, #e9c684); color: #7a5417; }
.tag--gray { background: #f2f4f6; color: var(--muted); }
.tag--dark { background: rgba(25, 27, 40, 0.72); color: #fff; backdrop-filter: blur(4px); }

.price { color: var(--primary); font-weight: 700; font-family: "DIN Alternate", -apple-system, sans-serif; }
.price small { font-size: 0.72em; font-weight: 600; }
.price--old { color: var(--muted-2); font-size: 12px; text-decoration: line-through; font-weight: 400; margin-left: 6px; }

.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  object-fit: cover;
}
.avatar--r { border-radius: 14px; }

.row { display: flex; align-items: center; gap: 10px; }
.row--between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 6px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty__icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }

.loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 2px solid #eceef1; border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- 首页 ------------------------------- */
.hero {
  position: relative;
  height: 232px;
  background: linear-gradient(160deg, #2b1b2e 0%, #4a2436 45%, #7d2f3f 100%);
  overflow: hidden;
  color: #fff;
  padding: 14px 18px 0;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 140, 0.55), transparent 65%);
  filter: blur(6px);
}
.hero__glow {
  position: absolute;
  left: -40px; bottom: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 120, 0.3), transparent 65%);
}
.hero__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.hero__brand { display: flex; align-items: center; gap: 9px; }
.hero__logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, #ffb199, #ff475b);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(255, 71, 91, 0.4);
}
.hero__name { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.hero__slogan { font-size: 10px; color: rgba(255, 255, 255, 0.62); letter-spacing: 1px; margin-top: 1px; }
.hero__icons { display: flex; gap: 8px; }
.hero__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  position: relative;
}
.hero__icon svg { width: 18px; height: 18px; }
.hero__dot {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 2px rgba(255, 71, 91, 0.6);
}
.hero__slogan-big {
  position: relative; z-index: 2;
  margin-top: 22px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 1px;
}
.hero__slogan-big span { color: #ffcf9a; }
.hero__stats {
  position: relative; z-index: 2;
  margin-top: 16px;
  display: flex;
  gap: 22px;
}
.hero__stat b { font-size: 19px; font-family: "DIN Alternate", sans-serif; letter-spacing: 0.5px; }
.hero__stat span { font-size: 10px; color: rgba(255, 255, 255, 0.6); display: block; margin-top: -1px; }

.quick {
  position: relative;
  z-index: 5;
  margin: -26px 16px 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(25, 27, 40, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 6px 14px;
}
.quick__item { text-align: center; }
.quick__icon {
  width: 42px; height: 42px; margin: 0 auto 6px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.quick__label { font-size: 11px; color: var(--text); font-weight: 500; }

.family-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.family {
  position: relative;
  height: 104px;
  border-radius: 16px;
  overflow: hidden;
  padding: 13px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 6px 18px rgba(25, 27, 40, 0.12);
  transition: transform 0.18s;
}
.family:active { transform: scale(0.985); }
.family::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.28), transparent 58%);
}
.family__deco {
  position: absolute;
  right: -16px; top: -22px;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.1);
}
.family__name { position: relative; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.family__label { position: relative; font-size: 11px; opacity: 0.82; margin-top: 2px; }
.family__count {
  position: absolute; top: 11px; right: 12px;
  font-size: 10px; padding: 1px 7px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.family--1 { background: linear-gradient(140deg, #5b3b6e, #8f4f6c); }
.family--2 { background: linear-gradient(140deg, #7a3b45, #b8555c); }
.family--3 { background: linear-gradient(140deg, #2f4858, #41788f); }
.family--4 { background: linear-gradient(140deg, #4a3a2a, #8a6a45); }

/* 会员卡 */
.mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mcard {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}
.mcard:active { transform: scale(0.985); }
.mcard__img { position: relative; height: 168px; background: #f3f4f6; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__img::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 70px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.mcard__badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 7px; border-radius: 7px;
  font-size: 10px;
  background: rgba(25, 27, 40, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 3px;
  z-index: 2;
}
.mcard__badge--online { background: rgba(23, 178, 106, 0.9); }
.mcard__name {
  position: absolute; left: 10px; bottom: 8px;
  z-index: 2; color: #fff;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.mcard__body { padding: 9px 10px 11px; }
.mcard__meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.mcard__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.mcard__tags span {
  font-size: 10px; padding: 1px 6px; border-radius: 5px;
  background: #f6f7f9; color: #7d8896;
}

/* 会员列表行 */
.mrow {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.mrow__img {
  width: 84px; height: 106px;
  border-radius: 12px; overflow: hidden;
  background: #f3f4f6; flex-shrink: 0; position: relative;
}
.mrow__img img { width: 100%; height: 100%; object-fit: cover; }
.mrow__online {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 9px; padding: 1px 5px; border-radius: 5px;
  background: rgba(23, 178, 106, 0.92); color: #fff;
}
.mrow__name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mrow__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mrow__intro { font-size: 12px; color: #6d7783; margin-top: 7px; line-height: 1.45; }
.mrow__tags { margin-top: 7px; display: flex; gap: 4px; flex-wrap: wrap; }

/* 筛选条 */
.filterbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 242, 242, 0.96);
  backdrop-filter: blur(10px);
  padding: 8px 16px 6px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }

/* ------------------------------- 会员详情 ------------------------------- */
.mhero {
  position: relative;
  height: 400px;
  background: #2b1b2e;
  overflow: hidden;
}
.mhero img { width: 100%; height: 100%; object-fit: cover; }
.mhero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(15, 12, 18, 0.88));
}
.mhero__info {
  position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 2; color: #fff;
}
.mhero__name { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mhero__sub { font-size: 12.5px; opacity: 0.85; margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.mhero__tags { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.mhero__tags span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(4px);
}
.mhero .navbar { position: absolute; top: 0; left: 0; right: 0; }
.mhero .nav-title { color: #fff; }
.mhero .nav-side svg { color: #fff; }

.panel { background: #fff; border-radius: 20px; margin-top: -18px; position: relative; z-index: 3; padding: 18px 16px; }
.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--muted); width: 78px; flex-shrink: 0; }
.kv__v { flex: 1; color: var(--text); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: #f3f4f6; }

.actionbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 430px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-up);
  display: flex; gap: 10px; z-index: 40;
}

/* ------------------------------- 红娘 ------------------------------- */
.mmcard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 15px;
  display: flex; gap: 13px;
}
.mmcard__bg {
  position: absolute; right: -20px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 71, 91, 0.1), transparent 70%);
}
.mmcard__avatar {
  width: 74px; height: 88px; border-radius: 14px; overflow: hidden;
  background: #f3f4f6; flex-shrink: 0; position: relative; z-index: 2;
}
.mmcard__name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.mmcard__intro { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.mmcard__foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11px; color: var(--muted); }

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  transition: all 0.16s;
  position: relative;
}
.plan--active {
  border-color: var(--primary);
  background: linear-gradient(180deg, #fff5f6, #fff);
  box-shadow: 0 4px 16px rgba(255, 71, 91, 0.12);
}
.plan__title { font-size: 14px; font-weight: 600; }
.plan__desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.plan__price { text-align: right; }
.plan__price b { color: var(--primary); font-size: 18px; font-family: "DIN Alternate", sans-serif; }

/* ------------------------------- 课程 ------------------------------- */
.course {
  display: flex; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.course__cover {
  width: 108px; height: 74px; border-radius: 11px;
  overflow: hidden; position: relative; flex-shrink: 0; background: #eef0f3;
}
.course__cover img { width: 100%; height: 100%; object-fit: cover; }
.course__type {
  position: absolute; right: 5px; bottom: 5px;
  font-size: 9px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  display: flex; align-items: center; gap: 2px;
}
.course__title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.course__meta { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.course__price { margin-top: 6px; font-size: 13px; }

.player {
  height: 208px;
  background: #17141c;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; gap: 12px; position: relative; overflow: hidden;
}
.player__bg { position: absolute; inset: 0; opacity: 0.5; }
.player__btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}
.player__time { font-size: 11px; opacity: 0.7; z-index: 2; }
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.player__bar i { display: block; height: 100%; background: var(--primary); width: 32%; }

.chapter {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.chapter:last-child { border-bottom: 0; }
.chapter__idx { width: 22px; color: var(--muted-2); font-size: 12px; font-family: "DIN Alternate", sans-serif; }
.chapter--active { color: var(--primary); font-weight: 600; }
.chapter--locked { color: var(--muted-2); }

/* ---------------------- 课程详情：混合内容 ---------------------- */
.chero { position: relative; height: 196px; overflow: hidden; background: #17141c; }
.chero img { width: 100%; height: 100%; object-fit: cover; }
.chero__mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.55) 100%); }
.chero__tag {
  position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12px;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  padding: 4px 11px; border-radius: 20px; letter-spacing: 0.02em;
}

.chapter { align-items: flex-start; }
.chapter__main { flex: 1; min-width: 0; }
.chapter__title { font-size: 13.5px; line-height: 1.45; }
.chapter__meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.chapter__kinds { letter-spacing: 1px; }
.chapter__free {
  color: var(--green); font-size: 10px; padding: 0 4px; border-radius: 4px;
  border: 1px solid rgba(23, 178, 106, 0.3);
}
.chapter__done { color: var(--green); font-size: 10px; }
.chapter--active .chapter__title { color: var(--primary); font-weight: 600; }
.chapter__tail { display: flex; padding-top: 3px; color: var(--muted-2); }
.chapter--active .chapter__tail { color: var(--primary); }

.stage { scroll-margin-top: 54px; }
.lesson { background: #fff; border-radius: var(--radius); padding: 16px 14px 12px; box-shadow: var(--shadow); }
.lesson__head { padding-bottom: 12px; margin-bottom: 13px; border-bottom: 1px dashed var(--line); }
.lesson__no { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: 0.06em; }
.lesson__title { font-size: 16px; font-weight: 700; margin-top: 4px; line-height: 1.4; }
.lesson__meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.lesson__body { display: flex; flex-direction: column; gap: 15px; }
.lesson__foot { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.lesson__foot .btn { flex: 1; }

.mb__title { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.mb__video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; display: block; }
.mb--empty {
  padding: 22px; text-align: center; font-size: 12.5px; color: var(--muted-2);
  background: #f7f8fa; border-radius: 12px;
}
.mb--fig { margin: 0; }
.mb--fig img { width: 100%; border-radius: 12px; cursor: zoom-in; }
.mb--fig figcaption { font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }

.aud {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: linear-gradient(135deg, #fff5f6, #ffe9ec);
  border: 1px solid #ffe0e4; border-radius: 14px;
}
.aud__btn {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  background: var(--primary-g); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(255, 71, 91, 0.28);
}
.aud__main { flex: 1; min-width: 0; }
.aud__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.aud__name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud__time { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); font-family: "DIN Alternate", sans-serif; }
.aud__bar { height: 4px; border-radius: 4px; background: rgba(255, 71, 91, 0.18); cursor: pointer; overflow: hidden; }
.aud__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--primary); transition: width 0.15s linear; }

.rich { font-size: 13.5px; line-height: 1.85; color: #3b4453; }
.rich h3 { font-size: 15.5px; margin: 0 0 8px; color: var(--text); }
.rich h4 { font-size: 14px; margin: 14px 0 6px; color: var(--text); }
.rich h5, .rich h6 { font-size: 13.5px; margin: 12px 0 4px; color: var(--text); }
.rich p { margin: 0 0 10px; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 19px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 5px; }
.rich blockquote {
  margin: 12px 0; padding: 9px 12px; font-size: 12.5px; color: #6b4a4f;
  background: var(--primary-l); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
}
.rich strong { color: var(--text); }
.rich code { padding: 1px 5px; font-size: 12px; background: #f3f5f8; border-radius: 4px; }

.lockcard { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.lockcard__emoji { font-size: 30px; }
.lockcard__title { font-size: 15px; font-weight: 600; margin-top: 10px; }
.lockcard__sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.lockcard .btn { margin-top: 16px; }

.zoom {
  position: fixed; inset: 0; z-index: 200; padding: 12px;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ------------------------------- 活动 ------------------------------- */
.event {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.event__cover { height: 132px; position: relative; overflow: hidden; }
.event__cover img { width: 100%; height: 100%; object-fit: cover; }
.event__type {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; padding: 2px 8px; border-radius: 7px;
  background: rgba(25, 27, 40, 0.6); color: #fff;
  backdrop-filter: blur(6px);
}
.event__body { padding: 12px 13px 13px; }
.event__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.event__meta { font-size: 11.5px; color: var(--muted); margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; }
.event__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }

/* ------------------------------- 表单 ------------------------------- */
.field { margin-bottom: 16px; }
.field__label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.field__label em { color: var(--primary); font-style: normal; font-size: 12px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid #eceef1;
  background: #fafbfc;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); background: #fff; }
.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field__hint { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__item {
  padding: 8px 15px;
  border-radius: 999px;
  background: #f6f7f9;
  color: #5c6672;
  font-size: 13px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.choice__item--active {
  background: var(--primary-l);
  color: var(--primary);
  border-color: rgba(255, 71, 91, 0.4);
  font-weight: 600;
}
.switch {
  width: 46px; height: 26px; border-radius: 999px; background: #e3e6ea;
  position: relative; transition: background 0.2s;
}
.switch i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 0.2s;
}
.switch--on { background: var(--primary); }
.switch--on i { transform: translateX(20px); }

/* ------------------------------- 聊天 ------------------------------- */
.chatlist__item {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 16px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.chatlist__item:active { background: #fafbfc; }
.chat__body {
  padding: 12px 14px calc(76px + var(--safe-b));
  display: flex; flex-direction: column; gap: 12px;
  min-height: calc(100vh - 50px);
  background: #f6f7f9;
}
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row--me { flex-direction: row-reverse; }
.bubble {
  max-width: 72%;
  padding: 10px 13px;
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(25, 27, 40, 0.05);
  word-break: break-word;
}
.bubble--me { background: var(--primary-g); color: #fff; border-bottom-right-radius: 5px; }
.bubble--other { border-bottom-left-radius: 5px; }
.bubble-time { text-align: center; font-size: 10px; color: var(--muted-2); margin: 4px 0 2px; }
.chat__input {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 430px;
  padding: 9px 12px calc(9px + var(--safe-b));
  background: #fff; box-shadow: var(--shadow-up);
  display: flex; gap: 8px; align-items: center; z-index: 40;
}
.chat__input input {
  flex: 1; height: 38px; border-radius: 19px; border: 0;
  background: #f2f4f6; padding: 0 15px; outline: none; font-size: 14px;
}

/* ------------------------------- 我的 ------------------------------- */
.profile-hero {
  background: linear-gradient(150deg, #2b1b2e, #55283a 60%, #8a3a44);
  padding: 16px 18px 62px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "";
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 130, 0.35), transparent 68%);
}
.profile-hero__row { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.profile-hero__avatar {
  width: 66px; height: 66px; border-radius: 20px;
  overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.3);
  background: #3a2229;
}
.profile-hero__name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.profile-hero__meta { font-size: 11.5px; opacity: 0.78; margin-top: 4px; }

.statcard {
  margin: -46px 16px 0;
  position: relative; z-index: 3;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(25, 27, 40, 0.1);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 15px 0;
}
.statcard__item { text-align: center; position: relative; }
.statcard__item + .statcard__item::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line);
}
.statcard__num { font-size: 18px; font-weight: 700; font-family: "DIN Alternate", sans-serif; }
.statcard__label { font-size: 11px; color: var(--muted); margin-top: 1px; }

.menu { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.menu__item:last-child { border-bottom: 0; }
.menu__item:active { background: #fafbfc; }
.menu__icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.vip-banner {
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(120deg, #2f2637, #4a3742 55%, #6b4a3e);
  color: #efd9b4;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.vip-banner h4 { margin: 0; font-size: 15px; letter-spacing: 1px; }
.vip-banner p { margin: 5px 0 0; font-size: 11px; opacity: 0.7; }

/* ------------------------------- 弹层 ------------------------------- */
.mask {
  position: fixed; inset: 0; background: rgba(15, 12, 18, 0.48);
  z-index: 90; display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.18s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b));
  max-height: 84vh; overflow-y: auto;
  animation: up 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet__bar { width: 38px; height: 4px; border-radius: 2px; background: #e6e9ec; margin: 6px auto 14px; }
.sheet__title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.sheet__sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 16px; }
.sheet__actions { display: flex; gap: 10px; margin-top: 8px; }

.center-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 12, 18, 0.48);
  animation: fade 0.18s;
  padding: 30px;
}
.dialog {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 20px;
  padding: 22px 20px 16px; text-align: center;
  animation: pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
.dialog h4 { margin: 0 0 8px; font-size: 16px; }
.dialog p { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(25, 27, 40, 0.88);
  color: #fff; font-size: 13px;
  padding: 11px 20px; border-radius: 12px;
  z-index: 200; max-width: 76vw; text-align: center;
  animation: fade 0.18s;
  backdrop-filter: blur(8px);
}

/* ------------------------------- 收银台 / 订单 ------------------------------- */
.pay-summary {
  background: linear-gradient(140deg, #241a26, #452634 60%, #6d3340);
  color: #fff; border-radius: 20px; padding: 22px 20px;
  position: relative; overflow: hidden;
}
.pay-summary::after {
  content: ""; position: absolute; right: -40px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 120, 0.28), transparent 68%);
}
.pay-summary__label { font-size: 12px; opacity: 0.65; }
.pay-summary__amount { font-size: 34px; font-weight: 700; font-family: "DIN Alternate", sans-serif; margin-top: 4px; letter-spacing: 1px; }
.pay-summary__title { font-size: 13px; opacity: 0.9; margin-top: 10px; }

.pay-method {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); margin-bottom: 10px;
}
.pay-method--active { border-color: var(--primary); background: #fff8f9; }
.pay-method__icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.radio { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #d8dde3; position: relative; }
.radio--on { border-color: var(--primary); }
.radio--on::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary);
}

.order-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 11px; overflow: hidden; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.order-card__body { display: flex; gap: 12px; padding: 13px 14px; }
.order-card__img { width: 74px; height: 74px; border-radius: 11px; overflow: hidden; background: #f3f4f6; flex-shrink: 0; }
.order-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 14px 13px; }

.tabs {
  display: flex; gap: 18px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  padding: 13px 0; font-size: 14px; color: var(--muted);
  position: relative; white-space: nowrap;
}
.tabs__item--active { color: var(--text); font-weight: 700; }
.tabs__item--active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 4px; width: 18px; height: 3px; border-radius: 2px; background: var(--primary);
}

.notice {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff9e8; border: 1px solid #ffe7ae; color: #8a6412;
  border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.5;
}

.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.steps__item { flex: 1; height: 3px; border-radius: 2px; background: #e8ebee; }
.steps__item--on { background: var(--primary); }

.safe-bottom { height: calc(20px + var(--safe-b)); }

/* ------------------------------- 商品网格 ------------------------------- */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.pcard {
  background: #fff; border-radius: 15px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.16s;
}
.pcard:active { transform: scale(0.985); }
.pcard__img { height: 148px; background: #f3f4f6; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 9px 10px 11px; }
.pcard__title { font-size: 13px; font-weight: 600; line-height: 1.42; min-height: 37px; }
.pcard__sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ------------------------------- 微信登录 ------------------------------- */
.login-wrap {
  min-height: 100vh;
  padding: 54px 22px 0;
  background: linear-gradient(172deg, #2b1b2e 0%, #4a2436 39%, #f2f2f2 39.2%, #f2f2f2 100%);
}
.login-hero { color: #fff; margin-bottom: 26px; }
.login-logo {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(135deg, #ffb199, #ff475b);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 600; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(255, 71, 91, 0.35);
}
.login-title { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.login-sub { font-size: 12px; opacity: 0.72; margin-top: 7px; letter-spacing: 0.3px; }
.login-card { padding: 22px 18px 20px; }
.login-tip {
  font-size: 11.5px; color: var(--muted); text-align: center;
  margin-top: 12px; line-height: 1.7; padding: 0 6px;
}
.login-or {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px; color: var(--muted-2); font-size: 11.5px;
}
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn--wechat {
  background: #07c160;
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.26);
}
.btn--wechat:active { background: #06ad56; }

/* 模拟微信授权面板 */
.wx-mock {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: 14px; background: #fafbfc;
  border: 1px solid var(--line); margin-bottom: 10px;
  transition: background 0.15s;
}
.wx-mock:active { background: #f2f4f6; }
.wx-mock__icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 42px;
}

/* 注册：微信授权已通过 */
.wx-verified {
  display: flex; align-items: center; gap: 8px;
  background: #eefaf3; color: #0d8a4f;
  border-radius: 12px; padding: 10px 12px;
  font-size: 12.5px; margin-bottom: 16px; line-height: 1.5;
}

/* ------------------------------- 头像 ------------------------------- */
.avatar-row { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.avatar-pick {
  position: relative;
  width: 88px; height: 88px; flex: 0 0 88px;
  border-radius: 50%; overflow: visible;
  background: #f4f5f7;
}
.avatar-pick img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 3px 12px rgba(160, 168, 178, 0.28);
}
.avatar-pick--empty {
  border: 1.5px dashed #d8dde3; background: #fafbfc;
  display: flex; align-items: center; justify-content: center;
}
.avatar-pick__ph {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 10.5px;
}
.avatar-pick__badge, .avatar-edit__badge {
  position: absolute; right: -2px; bottom: -2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(255, 71, 91, 0.35);
}
.avatar-edit { position: relative; flex: 0 0 auto; }
.avatar-edit__badge { width: 22px; height: 22px; right: -4px; bottom: -4px; border-width: 2px; }

/* ------------------------------- 模拟收银台 ------------------------------- */
.mockpay {
  text-align: center; padding: 18px 0 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.mockpay__amount {
  font-size: 34px; font-weight: 700; color: var(--text);
  letter-spacing: -0.5px;
}
.mockpay__amount span { font-size: 18px; margin-right: 2px; }
.mockpay__title { font-size: 13px; color: #4c5765; margin-top: 8px; }
.mockpay__no { font-size: 11px; color: var(--muted-2); margin-top: 6px; }

/* ------------------------------- 地区级联选择 ------------------------------- */
/* 表单里的地区触发器：外观与 .input 一致 */
.region-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
}
.region-input.is-empty { color: var(--muted-2); }
.region-input__arrow { color: var(--muted-2); font-size: 12px; flex: 0 0 auto; }

.rp { padding-bottom: 2px; }
.rp__loading, .rp__err {
  padding: 26px 0 30px; text-align: center;
  color: var(--muted); font-size: 13px;
}
.rp__err { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rp__title { font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.rp__close {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #f4f5f7; color: #8b95a3; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.rp__close:active { background: #ebedf0; }
.rp__bread {
  font-size: 12px; color: var(--muted); margin: 4px 0 12px;
  min-height: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.rp__bread b { color: var(--text); font-weight: 600; }
.rp__bread i { font-style: normal; color: var(--muted-2); margin: 0 4px; }

.rp__tabs { display: flex; gap: 8px; }
.rp__tab {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 8px; border-radius: 11px; border: 1px solid transparent;
  background: #f6f7f9; color: #5c6672; font-size: 13px;
  transition: all 0.15s;
}
.rp__tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp__tab i { font-style: normal; font-size: 10px; opacity: 0.5; }
.rp__tab.is-on {
  background: var(--primary-l); border-color: rgba(255, 71, 91, 0.42);
  color: var(--primary); font-weight: 600;
}
.rp__tab.is-on i { opacity: 0.8; }
.rp__tab[disabled] { opacity: 0.45; }

.rp__hot { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.rp__hot button {
  border: 0; padding: 6px 12px; border-radius: 8px;
  background: #fff5f6; color: #e8465a; font-size: 12px;
}
.rp__hot button:active { background: #ffe8ec; }

.rp__list {
  max-height: 44vh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 10px -6px 0; padding: 0 4px;
}
.rp__item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 10px; border: 0; background: transparent;
  font-size: 14px; color: var(--text); text-align: left;
  border-bottom: 1px solid #f5f6f8;
}
.rp__item:last-child { border-bottom: 0; }
.rp__item:active { background: #fafbfc; }
.rp__item.is-on { color: var(--primary); font-weight: 600; }
.rp__tick { color: var(--primary); font-size: 13px; opacity: 0; }
.rp__item.is-on .rp__tick { opacity: 1; }
.rp__empty { padding: 30px 0; text-align: center; color: var(--muted-2); font-size: 13px; }

.rp__foot { display: flex; gap: 10px; margin-top: 14px; }
.rp__hint { text-align: center; font-size: 10.5px; color: var(--muted-2); margin-top: 10px; }
