/* ============================================================
 * 音乐会员免费 - 样式
 * 版式参照：粉底 + 顶部黑胶卡叠层 + 白色主卡 + 大数字 + 红黄双按钮
 * ============================================================ */

:root {
  --red: #ff2d55;
  --red-deep: #e51e46;
  --red-soft: #ffe4ea;
  --yellow: #ffd166;
  --yellow-deep: #f2bd45;
  --bg-top: #ffe6ec;
  --bg-bottom: #fff8fa;
  --text: #1b1b1f;
  --text-2: #54505a;
  --dim: #a79aa0;
  --line: #f4e8ec;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(214, 51, 92, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(80% 50% at 50% 0%, #fff2f5 0%, rgba(255, 242, 245, 0) 60%),
    linear-gradient(180deg, var(--bg-top) 0%, #fff0f3 42%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------- 背景装饰 ---------- */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ribbon {
  position: absolute;
  height: 84px;
  width: 160vw;
  left: -30vw;
  background: repeating-linear-gradient(45deg, #ff3b5c 0 10px, #ff6b84 10px 20px);
  opacity: 0.3;
}

.r1 { top: 148px; transform: rotate(-16deg); opacity: 0.34; }
.r2 { top: 560px; transform: rotate(-16deg); opacity: 0.15; }
.r3 { top: 900px; transform: rotate(-16deg); opacity: 0.1; }

.star {
  position: absolute;
  color: #ff4d6d;
  opacity: 0.45;
  font-size: 14px;
}
.s1 { top: 96px; right: 12%; font-size: 18px; }
.s2 { top: 420px; left: 8%; opacity: 0.3; }
.s3 { top: 720px; right: 14%; opacity: 0.24; font-size: 11px; }

/* ---------- 容器 ---------- */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 16px 44px;
}

/* ---------- 顶部卡片叠层 ---------- */

.card-stack {
  position: relative;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.vinyl-card {
  position: relative;
  width: 45%;
  max-width: 272px;
  aspect-ratio: 268 / 168;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(120, 30, 50, 0.18);
}

.vinyl-card.gold {
  transform: rotate(7deg);
  margin-left: -14px;
  background: linear-gradient(140deg, #ffe2a1 0%, #f6cd6c 45%, #e8b34a 100%);
}

.vinyl-card.black {
  z-index: 1;
  transform: rotate(-7deg);
  margin-right: -14px;
  background: linear-gradient(140deg, #31313a 0%, #17171c 60%, #0d0d10 100%);
  color: #fff;
  padding: 16px 18px;
}

.vc-brand {
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}

.vc-title {
  display: block;
  font-size: clamp(18px, 5.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: #fff;
}

.vc-ring {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.04);
}

.vc-ring.big {
  right: -30px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-color: rgba(255, 255, 255, 0.34);
}

.vc-ring::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.vc-ring.big::after { background: rgba(255, 255, 255, 0.42); }

/* ---------- 主卡 ---------- */

.hero {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 22px 24px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(198, 61, 96, 0.14);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }

.brand-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #ff6f88, #e01e46);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(224, 30, 70, 0.28);
}

.brand-text h1 { font-size: 16px; letter-spacing: -0.01em; }

.brand-text p {
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 1px;
}

.chip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--yellow-deep);
  background: var(--yellow);
  color: #6b4a05;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.chip-btn:hover { filter: brightness(1.04); }
.chip-btn:active { transform: scale(0.97); }

.ci { font-size: 11px; opacity: 0.8; }

/* ---------- 大数字 ---------- */

.counter { padding: 22px 0 20px; text-align: center; }

.counter-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.counter-main b {
  font-size: 68px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #2b2b33 0%, #0f0f14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.counter-side { font-size: 12px; color: var(--dim); }

.counter-sub { margin-top: 6px; font-size: 12px; color: var(--dim); }

.counter-sub b {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.heart { color: #ff8098; margin-right: 3px; }

/* ---------- 双按钮 ---------- */

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.16s ease;
}

.big-btn:active { transform: scale(0.98); }

.big-btn.red {
  background: linear-gradient(180deg, #ff4d6f 0%, var(--red) 55%, #ef1c46 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 45, 85, 0.32);
}

.big-btn.red:hover { filter: brightness(1.04); }

.big-btn.yellow {
  background: linear-gradient(180deg, #ffe08a 0%, var(--yellow) 60%, var(--yellow-deep) 100%);
  color: #6b4a05;
  box-shadow: 0 10px 22px rgba(242, 189, 69, 0.3);
}

.big-btn.yellow:hover { filter: brightness(1.03); }

.big-btn.block { width: 100%; margin-top: 4px; }

.ico { font-size: 13px; opacity: 0.92; }

/* ---------- 列表卡 ---------- */

.list-card {
  margin-top: 18px;
  padding: 14px 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ffeef1;
  box-shadow: inset 0 1px 2px rgba(200, 60, 90, 0.05);
}

.tab {
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab:hover { color: var(--red); }

.tab.is-active {
  background: linear-gradient(180deg, #ff4d6f 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 45, 85, 0.28);
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 2px 12px;
}

.list-title { display: flex; align-items: center; gap: 10px; min-width: 0; }

.list-title h2 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sorts { display: flex; gap: 6px; }

.sort {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dim);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sort.is-active {
  background: var(--red-soft);
  border-color: #ffc2d0;
  color: var(--red);
  font-weight: 700;
}

.live { flex: 0 0 auto; font-size: 11.5px; color: var(--dim); }

/* ---------- 其他会员活动：两列活动卡 ---------- */

.act-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}

.act-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f6edf0;
}

.act-list > .act-item:nth-last-child(-n + 2) { border-bottom: 0; }

.ai-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 3px 9px rgba(120, 40, 60, 0.1);
}

.ai-mark.has-img {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.ai-mark.has-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ai-body { min-width: 0; }

.ai-name {
  font-size: 14px;
  font-weight: 700;
  color: #24232a;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 12px;
  color: #a79aa0;
  font-variant-numeric: tabular-nums;
}

.meta-ico { flex: 0 0 auto; opacity: 0.55; }

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff4d6f 0%, #f0204a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 45, 85, 0.26);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.ai-btn:hover { filter: brightness(1.05); }
.ai-btn:active { transform: scale(0.97); }

/* ---------- 列表项 ---------- */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #fdeef1;
  box-shadow: 0 3px 12px rgba(200, 60, 90, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.link-item:hover {
  border-color: #ffd0da;
  box-shadow: 0 8px 20px rgba(200, 60, 90, 0.09);
  transform: translateY(-1px);
}

.link-item.is-mine { border-color: #ffc2d0; background: #fffafb; }

.li-idx {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #ffc2d0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.li-main { min-width: 0; }

.li-name {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-name .u-ico { font-size: 12px; margin-right: 3px; opacity: 0.72; }

/* 赠送人头像：解析到网易云用户才有 */
.li-name .u-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: -5px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-style: normal;
}
.li-name .u-face i { font-style: normal; line-height: 1; }
/* QQ 音乐没有头像可采集，用昵称首字色块顶上 */
.li-name .u-face-txt {
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.li-name .u-face-txt i { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); }
.li-name .u-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.li-days {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.li-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-meta span + span::before {
  content: "·";
  margin: 0 6px;
  color: #e3d4d8;
}

.mini-solid {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4d6f 0%, var(--red) 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(255, 45, 85, 0.26);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.mini-solid:active { transform: scale(0.97); }
.mini-solid:hover { filter: brightness(1.04); }

/* ---------- 空状态 ---------- */

.empty {
  padding: 34px 16px 30px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed #ffd6df;
  background: #fffafb;
}

.empty-main { font-size: 14px; font-weight: 600; color: var(--text-2); }

.empty-sub { margin-top: 6px; font-size: 12px; color: var(--dim); }

/* ---------- 普通卡片 ---------- */

.plain-card {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(198, 61, 96, 0.07);
}

.plain-card h2 { font-size: 15px; margin-bottom: 10px; }

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-list li {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 12px;
  position: relative;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb3c4;
}

.rule-list b { color: var(--text); margin-right: 6px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps li { display: flex; gap: 10px; align-items: flex-start; }

.step-no {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steps b { font-size: 13px; display: block; margin-bottom: 2px; }
.steps p { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ---------- 声明 / 页脚 ---------- */

.notice {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 0 6px;
  text-align: center;
  font-size: 11.5px;
  color: #b2a3a9;
  line-height: 2;
  letter-spacing: 0.01em;
}

.card-more {
  margin-top: 12px;
  font-size: 12px;
}

.card-more a {
  color: var(--red);
  text-decoration: none;
  margin-right: 14px;
}

.card-more a:hover { text-decoration: underline; }

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.footer .dim { margin-top: 6px; font-size: 11px; color: #c9bbc0; }

/* 页脚导航：领取教程 · 活动规则 · … */

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  font-size: 11.5px;
  line-height: 2;
}

.fl-g {
  display: inline-flex;
  align-items: center;
  gap: 0 4px;
  white-space: nowrap;
}

.foot-links .sep { margin: 0 2px; }

.foot-links a {
  color: #a8969d;
  text-decoration: none;
  transition: color 0.16s ease;
}

.foot-links a:hover { color: var(--red); }

.foot-links i {
  font-style: normal;
  color: #d6c8cd;
  margin: 0 2px;
}

/* ---------- 弹窗 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(40, 12, 22, 0.4);
  backdrop-filter: blur(2px);
}

.modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  animation: pop 0.22s ease;
}

.modal-body.wide { max-width: 442px; }

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fbf5f6;
  color: #b6a4aa;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.modal-close:hover { background: #f3e6e9; color: #8d757c; }

/* 弹窗头部：淡粉渐变 + 分隔线 */

.modal-head {
  flex: 0 0 auto;
  padding: 20px 22px 15px;
  background: linear-gradient(180deg, #fff7f8 0%, #fffbfc 72%, #ffffff 100%);
  border-bottom: 1px solid #fdeff2;
}

.modal-head h2 {
  font-size: 19px;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #24232a;
  padding-right: 30px;
}

.modal-head p {
  margin-top: 7px;
  font-size: 12.5px;
  color: #a496a0;
  line-height: 1.55;
  padding-right: 24px;
}

.eyebrow {
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0919f !important;
  margin: 0 0 6px !important;
}

.modal-body.wide .modal-head h2 { font-size: 18px; }

.modal-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px 18px;
  -webkit-overflow-scrolling: touch;
}

/* 平台选择胶囊 */

.plat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #ffd3dc;
  background: #fff2f5;
  color: #e01c43;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.plat i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2d55;
}

.plat.is-active {
  border-color: #ff9db1;
  background: #ffe4ea;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.12);
}

.plat.qq { border-color: #c6ebd6; background: #f1fbf5; color: #2f9a5d; }
.plat.qq i { background: #35c46f; }
.plat.qq.is-active { border-color: #8ad9ad; background: #e3f8ec; box-shadow: 0 2px 8px rgba(53, 196, 111, 0.14); }

.plat.other { border-color: #ffe2b0; background: #fff8ea; color: #9a6a12; }
.plat.other i { background: #f2bd45; }
.plat.other.is-active { border-color: #f6cd6c; background: #fff1d4; box-shadow: 0 2px 8px rgba(242, 189, 69, 0.16); }

.plat:active { transform: scale(0.97); }

/* 分享输入框 */

.share-area {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ffc9d4;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.65;
  outline: none;
  resize: vertical;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.share-area::placeholder { color: #c3b3ba; }

.share-area:focus {
  border-color: #ff9db1;
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.09);
}

.auto-tip {
  margin-top: 8px;
  font-size: 11.5px;
  color: #2f9a5d;
  /* 提示里偶尔会带长链接，别让它把弹窗撑破 */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auto-tip.is-warn { color: #d98a2b; }

.mini-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mf { display: block; }

.mf > span {
  display: block;
  font-size: 11.5px;
  color: #a496a0;
  margin-bottom: 5px;
}

.mf input,
.mf select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid #f2e6ea;
  background: #fffafb;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease;
}

.mf input:focus,
.mf select:focus { border-color: #ffb3c4; background: #fff; }

.modal-scroll .big-btn.block { margin-top: 16px; }

.modal-foot {
  margin-top: 10px;
  font-size: 11px;
  color: #b9a9b0;
  text-align: center;
  line-height: 1.6;
}

/* ---------- 分享方法弹窗 ---------- */

.appshot {
  border-radius: 14px;
  padding: 14px 12px 12px;
  background: linear-gradient(160deg, #3d2825 0%, #2a1715 48%, #1b0e0d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.as-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-back { color: #e9ded8; font-size: 20px; line-height: 1; }
.as-list { color: #e9ded8; font-size: 14px; line-height: 1; }

.as-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #4b3532;
  color: #cbb9b3;
  font-size: 12.5px;
  min-width: 0;
}

.as-ico { font-size: 12px; opacity: 0.8; }
.as-x { margin-left: auto; font-size: 11px; opacity: 0.55; }
.as-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.as-tabs {
  display: flex;
  gap: 16px;
  margin: 12px 2px 11px;
  font-size: 12.5px;
  color: #bfada7;
  white-space: nowrap;
  overflow: hidden;
}

.as-tabs .is-on {
  position: relative;
  color: #fff;
  font-weight: 600;
}

.as-tabs .is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.as-body {
  margin-top: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.as-card { display: flex; gap: 10px; }

.as-cover {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  padding: 5px 6px;
  background: linear-gradient(160deg, #2b2b32 0%, #101014 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.as-logo {
  font-size: 6px;
  color: #ff6a7f;
  white-space: nowrap;
  transform: scale(0.95);
  transform-origin: left center;
}

.as-big {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.as-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.as-info b {
  font-size: 13px;
  font-weight: 700;
  color: #22212a;
  line-height: 1.35;
}

.as-info p {
  font-size: 11.5px;
  color: #8d8791;
  line-height: 1.4;
}

.as-detail {
  margin-top: 2px;
  font-size: 11px;
  color: #6d8f99;
}

/* 说明段落与步骤 */

.howto-lead {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: #4a454f;
}

.howto-h {
  margin: 18px 0 2px;
  font-size: 13.5px;
  font-weight: 800;
  color: #24232a;
}

.stepx {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepx li {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.75;
  color: #3d3843;
}

.stepx .no {
  flex: 0 0 auto;
  color: #ff2d55;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stepx b { color: #24232a; font-weight: 700; }

.earn {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaea 0%, #ffefc9 100%);
  border: 1px solid #ffe0a6;
  font-size: 12.5px;
  line-height: 1.85;
  color: #8a6420;
}

.earn b { color: #c0741a; font-weight: 700; }

.earn-note {
  margin-top: 8px;
  font-size: 11px;
  color: #b9a9b0;
  line-height: 1.6;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 480px) {
  .stage { padding: 22px 12px 36px; }

  .card-stack { height: 112px; }
  .vinyl-card { width: 47%; }
  .vinyl-card.black { padding: 12px 14px; }
  .vc-brand { font-size: 8px; }
  .vc-title { margin-top: 5px; }

  .hero { margin-top: -38px; padding: 18px 16px 20px; border-radius: 22px; }
  .brand-text h1 { font-size: 15px; }
  .brand-text p { font-size: 11px; }

  .counter { padding: 18px 0 16px; }
  .counter-main b { font-size: 54px; }
  .counter-sub { font-size: 11.5px; }

  .big-btn { height: 48px; font-size: 14px; padding: 0 12px; }

  .list-card { padding: 12px 12px 14px; }
  .tab { height: 33px; font-size: 12.5px; }
  .list-title h2 { font-size: 14px; }

  .link-item {
    grid-template-columns: 26px 1fr;
    grid-template-areas: "idx main" "acts acts";
    row-gap: 8px;
  }
  .li-idx { grid-area: idx; align-self: start; width: 26px; height: 26px; }
  .li-main { grid-area: main; }
  .li-actions { grid-area: acts; display: flex; justify-content: flex-end; }
  .mini-solid { padding: 7px 16px; font-size: 12px; }

  .modal { padding: 12px; }
  .modal-head { padding: 17px 18px 13px; }
  .modal-head h2 { font-size: 17.5px; padding-right: 26px; }
  .modal-body.wide .modal-head h2 { font-size: 16.5px; }
  .modal-scroll { padding: 14px 15px 16px; }
  .as-tabs { gap: 12px; font-size: 12px; }

  .foot-links { font-size: 11px; gap: 0 3px; }
  .foot-links .sep { display: none; }
  .fl-g { gap: 0 3px; }
}

@media (max-width: 560px) {
  .r2, .r3 { display: none; }
  .r1 { opacity: 0.22; }
  .star { display: none; }

  .act-list { grid-template-columns: 1fr; column-gap: 0; }
  .act-list > .act-item:nth-last-child(2) { border-bottom: 1px solid #f6edf0; }
  .act-list > .act-item:last-child { border-bottom: 0; }
  .act-item { padding: 13px 0; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .ai-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
  .ai-name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 分享弹窗：只填天数 ---------- */

.mini-fields.one {
  grid-template-columns: 1fr;
}

/* ---------- 规则弹窗 ---------- */

.rule-more {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #f3e7ec;
  line-height: 2;
}

.rule-more a {
  margin-right: 16px;
  font-size: 12.5px;
}

/* ---------- 右侧浮动：QQ 群 ---------- */

.float-qq {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2fb6f5, #0e8ed6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(14, 118, 184, 0.32), 0 2px 6px rgba(14, 118, 184, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.float-qq:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(14, 118, 184, 0.38), 0 3px 8px rgba(14, 118, 184, 0.24);
}

.float-qq:active {
  transform: scale(0.96);
}

.float-qq[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .float-qq {
    right: 12px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    font-size: 10.5px;
  }

  /* 给右下角浮层留出位置，滚到底时不压页脚文字 */
  .footer { padding-bottom: 62px; }
}

/* ---------- 选择领取方式弹窗 ---------- */

.modal-body.take-body {
  max-width: 350px;
  overflow: visible;
}

.take-pad {
  padding: 24px 20px 20px;
  text-align: center;
}

.take-gift {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 2px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, #ff6a7d 0%, #ef3b57 100%);
  box-shadow: 0 0 0 8px rgba(239, 59, 87, 0.09), 0 8px 20px rgba(239, 59, 87, 0.3);
}

.take-title {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #24232a;
}

.take-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf3f5;
  font-size: 12px;
  line-height: 1.85;
  color: #a8798a;
  text-align: left;
  overflow-wrap: anywhere;
}

.take-note.is-warn {
  background: #fff7ea;
  color: #b57b2c;
}

.take-link {
  margin: 9px 0 0;
  padding: 8px 10px;
  border: 1px dashed #f0cdd7;
  border-radius: 9px;
  background: #fffafc;
  font-size: 11px;
  line-height: 1.7;
  color: #8b6a76;
  text-align: left;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

.take-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.take-btns button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.take-copy {
  border: 1px solid #f3d5de;
  background: #fff;
  color: #f0405e;
}

.take-copy:hover { background: #fff5f8; }
.take-copy:active { transform: translateY(1px); }

.take-open {
  border: 0;
  background: linear-gradient(135deg, #ff5a72, #e5334c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 51, 76, 0.28);
}

.take-open:active { transform: translateY(1px); }

.take-btns button:disabled { opacity: 0.7; cursor: default; }
