/* ===== memberclub 会员俱乐部样式 ===== */
/* 字体：英文 / 数字 / 马来文用 Inter，中文用思源黑体（Noto Sans SC）。@import 要放在最上面 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..800&family=Noto+Sans+SC:wght@400..800&display=swap");
:root {
  color-scheme: dark;   /* 俱乐部本来就是深色主题：手机浏览器的「网页强制深色」不要再帮忙调色 */
  --bg: #0b1020;
  --card: #131a2e;
  --card2: #1a2340;
  --line: #26304d;
  --text: #e8ecf8;
  --muted: #8b95b2;
  --accent: #ff6fae;   /* Mochii 粉 */
  --accent2: #7c5cff;  /* 紫 */
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; }   /* 按钮、输入框也用同一套字体 */

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: "cv11", "ss01";   /* Inter：比较清楚的 a、1，数字更好认 */
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, rgba(255,111,174,.12), transparent 40%),
                    radial-gradient(circle at 85% 10%, rgba(124,92,255,.12), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  font-size: .9375rem;   /* = 15px（标准字体）；跟着下面的 🔠 字体大小一起放大缩小 */
}
/* 🔠 全局字体大小（右上角 ⚙️ 设定，记在这台设备；js/theme-init.js 先套用）：所有用 rem 的字一起变 */
:root[data-fs="s"]  { font-size: 87.5%; }
:root[data-fs="l"]  { font-size: 110%; }
:root[data-fs="xl"] { font-size: 120%; }
/* 字体选「小」时，手机输入框保持 16px，iPhone 点输入框才不会自动放大画面 */
@media (max-width: 760px) { :root[data-fs="s"] :is(input, textarea, select) { font-size: 16px; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,16,32,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 820px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative;
}
.topbar .brand { font-weight: 800; color: var(--text); white-space: nowrap; }
.topbar .brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; }
.topbar nav a {
  color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: .88rem; white-space: nowrap;
}
.topbar nav a:hover { color: var(--text); background: var(--card2); text-decoration: none; }
.topbar nav a.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.topbar-inner.topbar-nav { padding-top: 0; padding-bottom: 10px; }
.topbar-nav nav { width: 100%; }

/* ---------- 语言切换 ---------- */
.lang-switch { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: .78rem;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.auth-lang { position: fixed; top: 12px; right: 12px; z-index: 40; }
/* ---------- 版面 ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 10px 16px 60px; }
.page h1 { font-size: 1.2rem; margin-bottom: 4px; }   /* 各页主标题（原本 1.5rem，缩小一号半） */
.page > .muted { margin-bottom: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.card h2 { font-size: 1.1rem; margin-bottom: 12px; }

/* ---------- 登录页 ---------- */
.auth-wrap { max-width: 400px; margin: 0 auto; padding: 20px 16px 40px; }
.brand-hero { text-align: center; margin-bottom: 24px; }
.brand-hero .logo { font-size: 3rem; }
.brand-hero .logo-img {
  width: 120px; height: 120px; border-radius: 28px; object-fit: cover;
  box-shadow: 0 10px 30px rgba(255,111,174,.35); margin-bottom: 8px;
}
.tier-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: block; }
.tier-table .tier-logo { display: inline-block; width: 20px; height: 20px; border-radius: 5px; vertical-align: -5px; }
.brand-hero h1 {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-hero p { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: .88rem; }
.small-link { display: block; text-align: center; margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- 表单 ---------- */
label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=tel], input:not([type]) {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 12px; font-size: 1rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,111,174,.2); }
textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font-size: 1rem; font-family: inherit; line-height: 1.5;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; outline: none; resize: vertical; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,111,174,.2); }
input[readonly] { opacity: .7; }
input[type=date] { color-scheme: dark; }
label small { display: block; margin-top: 6px; font-size: .78rem; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; }
label.check input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; font-size: .95rem; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-google { background: #fff; color: #1f2937; }
.btn-ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn-inline { width: auto; display: inline-flex; padding: 8px 14px; font-size: .85rem; }

.msg { margin-top: 12px; font-size: .88rem; min-height: 1em; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

/* ---------- 积分摘要 ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.stat.main { background: linear-gradient(135deg, rgba(255,111,174,.18), rgba(124,92,255,.18)); border-color: rgba(255,111,174,.4); }
.stat .label { color: var(--muted); font-size: .82rem; }
.stat .value { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.stat .sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }

/* ---------- 标签 / 账号 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card2); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; font-size: .85rem;
}
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-shopee { background: rgba(238,77,45,.18); color: #ff7a5c; }
.tag-tiktok { background: rgba(37,244,238,.15); color: #4ff5ef; }
.tag-pending { background: rgba(245,158,11,.18); color: var(--warn); }
.tag-ok { background: rgba(34,197,94,.18); color: var(--ok); }
.tag-bad { background: rgba(239,68,68,.18); color: var(--bad); }

/* ---------- 分页标签 ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-weight: 700; cursor: pointer; font-size: .9rem;
}
.tabs button.active { background: var(--card2); color: var(--text); border-color: var(--accent); }

/* ---------- 列表 ---------- */
.list { list-style: none; }
.list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: none; }
.list .main { min-width: 0; }
.list .title { font-weight: 600; }
.list .meta { color: var(--muted); font-size: .78rem; word-break: break-all; }
.list .right { text-align: right; white-space: nowrap; }
.pts { font-weight: 800; font-size: 1.05rem; }
.pts.plus { color: var(--ok); }
.pts.minus { color: var(--bad); }
.empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: .9rem; }

.callout {
  background: linear-gradient(135deg, rgba(255,111,174,.12), rgba(124,92,255,.12));
  border: 1px dashed rgba(255,111,174,.5);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.callout p { margin-bottom: 12px; }

.platform-hint { font-size: .8rem; margin-top: 6px; min-height: 1.2em; }

/* ---------- 积分兑换 ---------- */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.reward {
  background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.reward-icon { font-size: 2rem; }
.reward-type { font-size: .75rem; }
.reward-name { font-weight: 700; font-size: 1.02rem; }
.reward-desc { font-size: .82rem; flex: 1; }
.reward-cost {
  font-weight: 800; font-size: 1.2rem; margin: 8px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.code {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg); border: 1px dashed var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: .88rem;
}
.code b { letter-spacing: .05em; color: var(--accent); }
.tag:not([class*="tag-"]) { background: var(--card2); color: var(--muted); }

/* ---------- 会员等级 ---------- */
.tier-card { display: flex; flex-direction: column; gap: 10px; }
.tier-head { display: flex; align-items: center; gap: 12px; }
.tier-icon { font-size: 2.2rem; }
.tier-name { font-size: 1.25rem; font-weight: 800; }
.tier-perk { font-size: .82rem; color: var(--muted); }
.tier-mochii .tier-name { color: var(--accent); }
.tier-silver .tier-name { color: #cbd5e1; }
.tier-gold .tier-name { color: #fbbf24; }
.tier-diamond .tier-name { color: #67e8f9; }
.bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width .6s; }
.tier-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 10px; }
.tier-table th, .tier-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tier-table th { color: var(--muted); font-weight: 600; }
.tier-table tr.current td { color: var(--accent); font-weight: 700; }
details summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.reward-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; margin-bottom: 6px; background: var(--bg);
}
@media (max-width: 480px) {
  .stat .value { font-size: 1.6rem; }
  .topbar nav a { padding: 6px 8px; font-size: .84rem; }
}

/* ---------- 🔔 通知铃铛 ---------- */
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.bell {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); font-size: 1rem; cursor: pointer;
}
.bell.has-new { animation: bellShake 2.4s ease-in-out infinite; border-color: var(--accent); }
@keyframes bellShake {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(14deg); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .bell.has-new { animation: none; } }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.bell-badge[hidden] { display: none; }
.bell-panel {
  position: absolute; top: calc(100% + 6px); right: 16px; z-index: 20;
  width: min(380px, calc(100vw - 32px)); max-height: 72vh; overflow-y: auto;
  background: var(--card); border: 1px solid rgba(255,111,174,.35); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
}
.bell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 800; font-size: 1rem;
  position: sticky; top: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(255,111,174,.16), rgba(124,92,255,.16)), var(--card);
  border-bottom: 1px solid var(--line);
}
.bell-readall {
  border: 1px solid var(--line); background: var(--card2); color: var(--muted);
  font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.bell-readall:hover { color: var(--text); border-color: var(--accent); }
.bell-list { list-style: none; padding: 4px 0 8px; }
.bell-group {
  padding: 10px 16px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.bell-item {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  margin: 4px 8px; padding: 10px 12px; border-radius: 12px; transition: background .15s;
}
.bell-item:hover { background: var(--card2); }
.bell-item.unread { background: rgba(255,111,174,.07); }
.bell-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.tone-green  { background: rgba(34,197,94,.16); }
.tone-red    { background: rgba(239,68,68,.16); }
.tone-orange { background: rgba(245,158,11,.18); }
.tone-pink   { background: rgba(255,111,174,.18); }
.tone-purple { background: rgba(124,92,255,.22); }
.tone-blue   { background: rgba(56,189,248,.18); }
.bell-body { flex: 1; min-width: 0; }
.bell-title { font-weight: 700; font-size: .9rem; line-height: 1.35; }
.bell-detail { color: var(--text); font-size: .82rem; opacity: .8; margin-top: 2px; word-break: break-word; }
.bell-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.bell-time { color: var(--muted); font-size: .72rem; }
.bell-dot {
  position: absolute; top: 14px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255,111,174,.2);
}
.bell-item.unread .bell-body { padding-right: 10px; }
.bell-empty { list-style: none; text-align: center; color: var(--muted); font-size: .88rem; padding: 34px 16px; line-height: 2; }

/* ---------- 品牌：会员俱乐部 logo + Mochii Club ---------- */
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.topbar .brand span { color: var(--text); font-size: 1.05rem; }
.topbar .brand b { color: var(--accent); }

/* ---------- 主分类（商城 / 积分 / 我的） ---------- */
.main-nav { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.main-nav a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px !important; border-radius: 12px !important; font-weight: 700; font-size: .9rem !important;
  background: var(--card); border: 1px solid var(--line);
}
.main-nav a.active { border-color: transparent; }

/* ---------- 子分页（我的积分 / 积分兑换、个人资料 / 绑定账号） ---------- */
.sub-nav-row { padding-top: 0 !important; padding-bottom: 10px !important; }
.sub-nav { display: flex; gap: 4px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sub-nav a {
  flex: 1; text-align: center; padding: 6px 8px !important; border-radius: 999px !important;
  font-size: .85rem !important; color: var(--muted);
}
.sub-nav a.active { background: var(--card2) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- 语言下拉 ---------- */
.lang-dd { position: relative; }
.lang-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lang-btn .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.lang-menu .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; margin-right: 10px; flex-shrink: 0; }
.lang-btn .caret { color: var(--muted); font-size: .7rem; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 180px; width: max-content;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.lang-menu button {
  display: flex; align-items: center; white-space: nowrap; width: 100%; text-align: left; padding: 9px 12px; border: none; border-radius: 8px;
  background: transparent; color: var(--text); font-size: .9rem; cursor: pointer;
}
.lang-menu button:hover { background: var(--card2); }
.lang-menu button.active { color: var(--accent); font-weight: 700; }

/* ---------- 兑换商城 ---------- */
.shop-hero {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(255,111,174,.22), rgba(124,92,255,.22));
  border: 1px solid rgba(255,111,174,.4); border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.shop-hero img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.shop-hero .pts-big { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.shop-hero .sub { color: var(--muted); font-size: .82rem; }
.shop-hero a { font-size: .85rem; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.cat-chips button {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-weight: 700; font-size: .85rem; cursor: pointer;
}
.cat-chips button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shop-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shop-item .ph {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--card2), var(--bg));
}
.shop-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.shop-item .info { padding: 10px 12px 12px; }
.shop-item .name { font-weight: 700; font-size: .9rem; }
.shop-item .cost { font-weight: 800; color: var(--accent); font-size: .9rem; margin-top: 4px; }
.shop-item.soon { opacity: .6; }

/* ---------- 俱乐部维修中：登录框模糊在背后，卡片盖在上面 ---------- */
.auth-area { position: relative; }
.auth-area.is-closed #loginBox {
   filter: blur(2.5px); opacity: .8;
  pointer-events: none; user-select: none;
}
.closed-card {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 22px;
    background: rgba(11, 16, 32, .45);
  border: 1px solid rgba(251, 191, 36, .55);
  border-radius: var(--radius);
  backdrop-filter: blur(1px);
}
.closed-card.hidden { display: none; }
.closed-card h2 { color: #fbbf24; font-size: 1.3rem; font-weight: 800; margin: 8px 0 10px; }
.closed-card p { color: #cbd5e1; font-size: .92rem; line-height: 1.7; max-width: 320px; }
.closed-emoji { font-size: 3rem; display: inline-block; animation: closedWiggle 2.4s ease-in-out infinite; }
@keyframes closedWiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .closed-emoji { animation: none; } }

/* ---------- 🎁 赚更多积分（欢迎礼 / 完善资料） ---------- */
.welcome-line { font-weight: 800; color: var(--accent); }
.task-sub { font-size: .85rem; margin: -6px 0 10px; }
.task-list { list-style: none; }
.task-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.task-list li:last-child { border-bottom: none; }
.task-check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
}
.task-list li.done .task-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-list li.done .task-text { color: var(--muted); text-decoration: line-through; }
.task-text { flex: 1; min-width: 0; }
.task-pts { font-weight: 800; white-space: nowrap; font-size: .88rem; }
.bonus-hint { font-size: .8rem; color: var(--accent); margin: -6px 0 12px; }

/* ---------- ⏳ 积分有效期 ---------- */
.expiry-note { font-size: .8rem; color: var(--muted); margin: -6px 0 16px; }
.expiry-soon { display: inline-block; color: var(--warn); font-weight: 700; margin-right: 8px; }

/* ---------- 📢 公告 / 铃铛链接 ---------- */

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 700; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 🔗 绑定账号明细 ---------- */
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-head h2 { margin-bottom: 12px; }
.card-head .small { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.bind-summary { font-size: .85rem; margin: -6px 0 6px; }
.acct-stats { font-size: .8rem; color: var(--text); opacity: .85; margin-top: 3px; }
.removed-title { font-size: .9rem; color: var(--muted); margin: 16px 0 4px; }
.acct-list.removed .title { opacity: .6; }

/* ---------- 💎 会员等级 / 积分明细 ---------- */
.detail-link { display: block; text-align: right; font-size: .85rem; font-weight: 700; margin: -8px 0 16px; }
.mini-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px;
}
.mini-stats > div {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0;
}
.mini-stats > div:first-child { background: linear-gradient(135deg, rgba(255,111,174,.18), rgba(124,92,255,.18)); border-color: rgba(255,111,174,.4); }
.mini-stats .label { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stats b { font-size: 1.2rem; font-weight: 800; }
@media (max-width: 480px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }

.filter-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.filter-chips button {
  flex-shrink: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card2); color: var(--muted); font-size: .8rem; font-weight: 700; cursor: pointer;
}
.filter-chips button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); }

.list li.month-head {
  display: block; padding: 14px 0 4px; border-bottom: none;
  color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .03em;
}
.ledger-row.expandable { cursor: pointer; }
.more-link { font-size: .78rem; color: var(--accent); font-weight: 700; margin-top: 3px; }
.ledger-row .chev { display: inline-block; transition: transform .2s; }
.ledger-row.open .chev { transform: rotate(180deg); }
.sub-ledger {
  list-style: none; margin-top: 8px; padding: 6px 10px; border-left: 2px solid var(--line);
  background: rgba(255,255,255,.02); border-radius: 0 8px 8px 0;
}
.sub-ledger li {
  display: flex; justify-content: space-between; gap: 12px; padding: 5px 0;
  border-bottom: 1px dashed var(--line); font-size: .82rem;
}
.sub-ledger li:last-child { border-bottom: none; }
.sub-ledger small { display: block; color: var(--muted); font-size: .72rem; }
.sub-ledger b.plus { color: var(--ok); } .sub-ledger b.minus { color: var(--bad); }

.bell-item.announce .bell-detail { white-space: pre-line; }
.bell-link { font-size: .76rem; font-weight: 800; white-space: nowrap; }

/* ---------- 📱 手机端 ---------- */
@media (max-width: 480px) {
  /* 铃铛窗口缩小 15% */
  .bell-panel { zoom: .85; }
  /* 主分类卡、子分页缩小一号（四个主分类：图标在上、文字在下） */
  .main-nav { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .main-nav a {
    flex-direction: column; gap: 1px; padding: 6px 2px !important;
    font-size: .74rem !important; border-radius: 10px !important; line-height: 1.2; text-align: center;
  }
  .main-nav a .ni { font-size: 1rem; }
  /* 往下捲时：只留图标，整条变矮 */
  .main-nav a { transition: padding .2s ease; }
  .main-nav a .nl { display: block; max-height: 1.3em; overflow: hidden; transition: max-height .2s ease, opacity .2s ease; }
  body.nav-compact .main-nav a { padding: 4px 2px !important; }
  body.nav-compact .main-nav a .nl { max-height: 0; opacity: 0; }
  body.nav-compact .topbar-inner.topbar-nav { padding-bottom: 6px; }
  .sub-nav a { padding: 5px 6px !important; font-size: .76rem !important; }
  /* 图片：手机端缩小 50% */
  .reward-img { width: 50%; margin: 0 auto 6px; display: block; }
  .reward-icon { text-align: center; }
  /* 会员等级：图标在上、文字在下 */
  .tier-head { flex-direction: column; text-align: center; gap: 6px; }
  .tier-head .tier-logo { margin: 0 auto; }
  .tier-cell { flex-direction: column; gap: 2px; text-align: center; }
}
.main-nav { grid-template-columns: repeat(4, 1fr); }

/* 等级表：图标 + 名称 */
.tier-cell { display: inline-flex; align-items: center; gap: 6px; }
.tier-cell .ti { font-size: 1.05rem; line-height: 1; }

/* ---------- 🧾 兑换记录：商品图片 ---------- */
.redeem-row { display: flex; gap: 12px; align-items: flex-start; }
.redeem-thumb {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; object-fit: cover;
  background: var(--card2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
@media (max-width: 480px) {
  .redeem-thumb { width: 32px; height: 32px; font-size: .8rem; border-radius: 6px; }
}

/* 后台自订的额外福利 */
.task-check.star { border-color: var(--accent2); color: var(--accent2); font-size: .7rem; }
.perk-desc { display: block; color: var(--text); opacity: .75; font-size: .78rem; margin-top: 2px; }
.custom-perk .task-text small.muted { display: block; font-size: .72rem; }

/* 兑换商城标题列：右边显示可用积分 */
.shop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.shop-head p { margin: 0; font-size: .85rem; }
.shop-mypts {
  flex-shrink: 0; text-align: right; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,111,174,.18), rgba(124,92,255,.18)); border: 1px solid rgba(255,111,174,.4);
}
.shop-mypts span { display: block; font-size: .72rem; color: var(--muted); }
.shop-mypts b { font-size: 1.3rem; font-weight: 800; }

/* ---------- 🏠 首页 ---------- */
.home-hero { color: var(--text); text-decoration: none; }
.home-hero:hover { text-decoration: none; border-color: var(--accent); }
.home-hero-go { color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.home-banners {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-bottom: 16px; padding-bottom: 4px;
}
.home-banner { flex: 0 0 100%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; text-align: center; }
.home-banner img { width: 100%; display: block; border-radius: var(--radius); }
.home-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-order .title { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.home-order .meta { color: var(--muted); font-size: .78rem; margin-top: 3px; word-break: break-all; }
.home-order-pts { text-align: right; font-size: 1.5rem; font-weight: 800; color: var(--ok); line-height: 1.1; white-space: nowrap; }
.home-order-pts small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.home-news { list-style: none; }
.home-news li + li { border-top: 1px solid var(--line); }
.news-item { display: flex; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; align-items: flex-start; }
a.news-item:hover { text-decoration: none; }
a.news-item:hover .title { color: var(--accent); }
.news-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--card2); }
.news-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.news-body { flex: 1; min-width: 0; }
.news-body .title { font-weight: 700; }
.news-text { font-size: .85rem; opacity: .85; white-space: pre-line; margin-top: 2px; }
.news-reward { font-size: .82rem; margin-top: 4px; color: var(--accent); }
.news-body .meta { color: var(--muted); font-size: .74rem; margin-top: 4px; }
.news-more { color: var(--accent); font-weight: 700; }

@media (max-width: 480px) {
  /* 图片：手机端缩小 50% */
  .home-banner img { width: 50%; margin: 0 auto; }
  .news-img { width: 48px; height: 48px; border-radius: 8px; }
  .news-icon { font-size: 1.2rem; }
  .shop-item .ph img { width: 50%; height: 50%; }
  .home-order-pts { font-size: 1.25rem; }
}

/* ---------- ❓ 常见问题 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--card2); border: 1px solid var(--line); border-radius: 3px; padding: 0 14px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 12px 22px 12px 0; position: relative;
  color: var(--text); font-weight: 700; font-size: .9rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 10px; color: var(--accent); font-size: 1.1rem; font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 14px; font-size: .86rem; line-height: 1.6; color: var(--text); opacity: .9; }
.faq-a ul { margin: 6px 0 0 18px; }
.faq-a li { margin-bottom: 4px; }

/* ---------- 🏠 首页第一行：你好框 70% + Feed 30% ---------- */
.home-top { display: grid; grid-template-columns: 7fr 3fr; gap: 10px; margin-bottom: 16px; align-items: stretch; }
.home-top.solo { grid-template-columns: 1fr; }
.home-top .home-hero { margin-bottom: 0; min-width: 0; }
.home-feed {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 12px 8px; border-radius: var(--radius); min-width: 0;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
a.home-feed:hover { text-decoration: none; border-color: var(--accent); }
.feed-title { font-size: .78rem; font-weight: 800; color: var(--accent); }
.feed-text { font-size: .74rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.feed-go {
  margin-top: 4px; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.home-feed.no-link .feed-go { opacity: .4; }

/* ---------- 🛍️ 商城 / 首页商品卡：图片填满方框 ---------- */
.shop-item .ph { overflow: hidden; }
.shop-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-item { display: flex; flex-direction: column; }
.mall-item .info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mall-item .desc { font-size: .76rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mall-item .sub { font-size: .72rem; color: var(--muted); }
.mall-item .btn { margin-top: auto; padding: 8px 10px; font-size: .82rem; }
.mall-item .cost { margin-bottom: 6px; }
.mall-item.sold-out .ph > img, .mall-item.sold-out .ph .vslide > img, .mall-item.sold-out .ph > .vslider { opacity: .5; }   /* 只把图片调淡，印章保持清楚 */

/* ---------- 🧾 券码框 ---------- */
.code-hint { font-size: .74rem; color: var(--muted); margin: 4px 0 0 2px; line-height: 1.4; }
.code-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  /* 首页第一行 */
  .home-top { gap: 8px; }
  .home-top .home-hero { padding: 12px; gap: 10px; }
  .home-top .home-hero img { width: 40px; height: 40px; border-radius: 10px; }
  .home-top .home-hero .pts-big { font-size: 1.3rem; }
  .home-top .home-hero .sub { font-size: .72rem; }
  .home-top .home-hero-go { display: none; }
  .feed-title { font-size: .72rem; }
  .feed-text { font-size: .68rem; }
  .feed-go { width: 24px; height: 24px; font-size: .72rem; }

  /* 商品卡：一行两个，图片填满方框（不套用手机图片缩小 50% 的规则） */
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shop-item .ph img { width: 100%; height: 100%; }
  .shop-item .info { padding: 8px 9px 10px; }
  .shop-item .name { font-size: .8rem; }
  .shop-item .cost { font-size: .82rem; }
  .shop-item .ph { font-size: 1.8rem; }
  .mall-item .desc { font-size: .7rem; }
  .mall-item .btn { padding: 6px 6px; font-size: .74rem; }

  /* 券码和复制按钮一行 */
  .code { flex-wrap: nowrap; font-size: .78rem; padding: 6px 8px; gap: 6px; }
  .code .btn { flex-shrink: 0; padding: 5px 9px; font-size: .74rem; }

  /* 会员等级表：等级一列对齐 */
  .tier-table td:first-child, .tier-table th:first-child { width: 72px; text-align: center; }
  .tier-cell { display: flex; width: 100%; align-items: center; }
  .tier-cell .ti { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
  .tier-cell .ti .tier-logo { width: 20px; height: 20px; }
  .tier-cell > span:last-child { white-space: nowrap; font-size: .74rem; }
  .tier-table td { vertical-align: middle; }

  /* 积分明细的常见问题：答案文字小一号 */
  #faqPoints .faq-a { font-size: .78rem; }
}

/* 首页：你好框内容往右缩进；区块标题右边的箭头（和 Feed 一样） */
.home-top .home-hero > div { padding-left: 10px; }
.head-go {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.head-go:hover { text-decoration: none; filter: brightness(1.1); }
.card-head { align-items: center; }
@media (max-width: 480px) {
  .home-top .home-hero > div { padding-left: 6px; }
  .head-go { width: 24px; height: 24px; font-size: .72rem; }
  /* 会员等级的常见问题：答案文字小一号（和积分明细一样） */
  #faqTier .faq-a { font-size: .78rem; }
}

/* ---------- ⏰ 即将下架 ---------- */
.shop-item .ph { position: relative; }
.ending-badge {
  position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 999px;
  background: rgba(245,158,11,.92); color: #1f1300; font-size: .7rem; font-weight: 800; white-space: nowrap;
}
.ending-line { font-size: .72rem; color: var(--warn); font-weight: 700; }

/* ---------- 🔒 未开放：图片盖一层灰色 ---------- */
.lock-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px;
  background: rgba(11,16,32,.42);
}
.lock-overlay .lock-label {
  background: rgba(19,26,46,.92); border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 5px 12px; font-size: .78rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums;
}
.shop-item.locked .ph img { filter: grayscale(.85); }
.shop-item.locked .btn:disabled { background: var(--card2); color: var(--muted); border: 1px solid var(--line); opacity: 1; }   /* 未开放：兑换按钮变灰 */

/* 首页你好框：手机上也往右缩进（和电脑端一样） */
@media (max-width: 480px) {
  .home-top .home-hero > div { padding-left: 10px; }
  .ending-badge { font-size: .62rem; padding: 2px 6px; top: 4px; left: 4px; }
  .ending-line { font-size: .66rem; }
  .lock-overlay .lock-label { font-size: .66rem; padding: 4px 8px; }
}

/* ---------- 弹出框 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5,8,18,.72); backdrop-filter: blur(3px); padding: 16px;
}
.modal-card {
  position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.modal-card h2 { font-size: 1.1rem; margin-bottom: 6px; padding-right: 30px; }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card2); color: var(--muted); cursor: pointer;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 0 10px; }
@media (max-width: 480px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 label:last-child { grid-column: 1 / -1; } }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-xs { padding: 4px 10px !important; font-size: .74rem !important; }
select {
  width: 100%; padding: 11px 12px; margin-top: 6px; font-size: .95rem;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
}

/* ---------- 📦 收货地址 ---------- */
.addr-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.addr-item {
  display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); cursor: pointer;
}
.addr-item.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,111,174,.2); }
.addr-item input[type=radio] { margin-top: 3px; accent-color: var(--accent); }
.addr-text { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.5; word-break: break-word; }
.addr-actions { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.addr-country { font-size: .8rem; margin: -6px 0 10px; }
.addr-list li.empty { list-style: none; }

/* ---------- 🎁 实体奖品进度 ---------- */
.gift-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 8px; position: relative; }
.gstep { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; gap: 3px; }
.gstep::before {
  content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0;
}
.gstep:first-child::before { display: none; }
.gstep.done::before { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.gstep .dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); position: relative; z-index: 1;
}
.gstep.done .dot { background: var(--accent); border-color: var(--accent); }
.gstep.now .dot { box-shadow: 0 0 0 4px rgba(255,111,174,.25); }
.gstep .lbl { font-size: .7rem; color: var(--muted); font-weight: 700; }
.gstep.done .lbl { color: var(--text); }
/* 📍 单独寄出：多一步「填写地址」；等会员填时那一点闪烁 */
.gift-steps.six { grid-template-columns: repeat(6, 1fr); }
.gift-steps.six .gstep .lbl { font-size: .64rem; }
.gstep.ask .dot { background: var(--accent); border-color: var(--accent); animation: askPulse 1.2s ease-in-out infinite; }
.gstep.ask .lbl { color: var(--accent); }
@keyframes askPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,174,.6); } 50% { box-shadow: 0 0 0 7px rgba(255,111,174,0); } }
@media (prefers-reduced-motion: reduce) { .gstep.ask .dot { animation: none; } }
.dlv-line { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 2px 0 6px; }
.gift-ask { border: 1px solid var(--accent); background: rgba(255,111,174,.08); border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px; font-size: .86rem; margin: 6px 0; }
.gift-ask .btn { width: 100%; }
.ea-opt-h { font-size: .84rem; font-weight: 700; margin: 4px 0 6px; }
.ea-sub { list-style: none; font-size: .76rem; color: var(--muted); margin: 6px 0 2px; }
.ea-new { width: 100%; margin: 8px 0; text-align: left; }
.ea-new.on { border-color: var(--accent); }
/* 首页：等填地址的提醒 */
.home-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--text);
  border: 1px solid var(--accent); background: rgba(255,111,174,.08); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-weight: 700; font-size: .9rem; }
.home-addr:hover { text-decoration: none; }
.home-addr .go { color: var(--accent); white-space: nowrap; }
.gstep .dt { font-size: .64rem; color: var(--muted); min-height: .8em; }
.gift-ship, .gift-addr, .gift-receipt, .gift-problem {
  font-size: .82rem; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card2); line-height: 1.6;
  word-break: break-word;
}
.gift-problem { background: rgba(245,158,11,.12); color: var(--warn); font-weight: 700; }
.gift-ship .mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.gift-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gift-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gift-auto { font-size: .74rem; margin-top: 6px; }
.gift-confirm { margin-top: 10px; }
.tag-ship { background: rgba(56,189,248,.18); color: #7dd3fc; }
.rcv-prev { width: 160px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 480px) {
  .gstep .lbl { font-size: .62rem; }
  .gift-photos img { width: 48px; height: 48px; }
  .rcv-prev { width: 80px; }
}

/* ---------- 🧾 兑换记录 v2 ---------- */
.dash-head { padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.list li.redeem-li { display: block; padding: 14px 0; }
.redeem-body { flex: 1; min-width: 0; }
.redeem-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.redeem-top .title { min-width: 0; }
.redeem-no {
  flex-shrink: 0; font-size: .68rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace;
  background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; letter-spacing: .04em;
}
.redeem-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.gift-item .gift-steps, .gift-item .gift-ship, .gift-item .gift-addr, .gift-item .gift-receipt,
.gift-item .gift-problem, .gift-item .gift-more { margin-left: 0; }
.ship-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.small-break { font-size: .74rem; overflow-wrap: anywhere; word-break: break-all; }
.small { font-size: .76rem; }
.track-link {
  display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.track-link .url { font-weight: 400; color: var(--muted); margin-left: 4px; }
.track-link.disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
.gift-addr { overflow-wrap: anywhere; }
.gift-addr .btn { margin-top: 6px; }
.gift-more { margin-top: 6px; }
.gift-more summary { font-size: .8rem; color: var(--accent); font-weight: 700; padding: 4px 0; }
.redeem-li.flash { animation: flashBg 2.4s ease-out; border-radius: 12px; }
@keyframes flashBg { 0%, 40% { background: rgba(255,111,174,.18); } 100% { background: transparent; } }
.bell-detail { overflow-wrap: anywhere; word-break: break-word; font-size: .78rem; }
@media (max-width: 480px) {
  .gift-steps { margin-left: -4px; margin-right: -4px; }
  .gift-ship, .gift-addr, .gift-receipt, .gift-problem { font-size: .78rem; padding: 8px 10px; }
  .redeem-no { font-size: .62rem; }
}

/* 🏷️ 内部会员标签 */
.tag-internal { background: rgba(124,92,255,.22); color: #c4b5fd; font-size: .72rem; vertical-align: middle; }

/* ---------- ⚡ 换页更顺 ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .15s; }
body.navigating::before {
  content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left; animation: navBar 1.2s ease-out forwards;
}
@keyframes navBar { from { transform: scaleX(.05); } to { transform: scaleX(.85); } }
body.navigating main { opacity: .55; transition: opacity .15s; }
.main-nav a, .sub-nav a, .btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---------- 横向滑动：隐藏滚动条（照样可以左右滑） ---------- */
.cat-chips, .filter-chips, .home-banners, .main-nav, .sub-nav {
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-chips::-webkit-scrollbar, .filter-chips::-webkit-scrollbar, .home-banners::-webkit-scrollbar,
.main-nav::-webkit-scrollbar, .sub-nav::-webkit-scrollbar { display: none; }

/* 昵称锁定中 */
input.locked { opacity: .6; cursor: not-allowed; }

/* ---------- ❓ 帮助中心 ---------- */
.help-link { display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin: 4px 0 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .86rem; }
.help-link:hover { color: var(--text); border-color: var(--accent); }
.help-link .go { margin-left: auto; color: var(--accent); }
.help-search { width: 100%; margin: 6px 0 12px; }
.help-where { display: inline-block; font-size: .7rem; padding: 1px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); color: var(--muted); margin-right: 4px; vertical-align: middle; }
.faq-a .pre { white-space: pre-wrap; }
/* 💬 还有问题？联系卡片 */
.contact-card { background: linear-gradient(135deg, rgba(255,111,174,.10), rgba(124,92,255,.10)), var(--card); border-color: rgba(255,111,174,.35); }
.contact-head { margin-bottom: 14px; padding-left: 15px; }   /* 和下面按钮的图标左边对齐（按钮 padding 14 + 边框 1） */
.contact-head h2 { margin: 0 0 2px; font-size: 1.05rem; }
.contact-head p { margin: 0; font-size: .84rem; }
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.contact-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card2);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.contact-tile:hover { transform: translateY(-1px); border-color: var(--accent); text-decoration: none; }
.contact-tile .ci { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.contact-tile .ct { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-tile .ct b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-tile .ct small { color: var(--muted); font-size: .76rem; }
.contact-tile .ct .cn { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.contact-tile .ct .cn-tag { font-size: .62rem; line-height: 1.3; padding: 2px 8px; border-radius: 3px; max-width: 100%;
  background: rgba(120,120,120,.12); border: 1px solid rgba(255,111,174,.3); color: var(--text); }
.contact-tile .go { color: var(--accent); }
/* 有标签的联系框：空白处打开对话，标签各自带开头文字 */
.contact-tile.has-tags { position: relative; }
.contact-tile.has-tags .tile-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.contact-tile a.cn-tag { position: relative; z-index: 2; text-decoration: none; cursor: pointer; }
.contact-tile a.cn-tag:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .contact-tiles { grid-template-columns: 1fr; gap: 8px; }
  .contact-tile { padding: 10px 12px; }
  .contact-head { padding-left: 13px; }
}

/* 📄 分页 */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pager button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--card2);
  color: var(--text); font-weight: 700; cursor: pointer; }
.pager button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager-info { width: 100%; text-align: center; font-size: .76rem; color: var(--muted); }
@media (max-width: 640px) { .faq-item summary { font-size: .86rem; } .faq-a { font-size: .8rem; } }

/* ---------- 📅 记录按月收起 / 载入更多 ---------- */
.list li.month-head.toggle { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.list li.month-head.toggle small { font-weight: 400; color: var(--muted); }
.month-sum { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.month-sum .plus { color: var(--ok, #4ade80); }
.month-sum .minus { color: var(--bad, #f87171); }
.month-head .chev { display: inline-block; transition: transform .2s; color: var(--muted); }
.month-head:not(.open) .chev { transform: rotate(-90deg); }
.list li.load-more { justify-content: center; border: 0; padding-top: 12px; }

/* 🔍 看大图 */
.gift-photos img[data-zoom] { cursor: zoom-in; }
.zoom-box { position: fixed; inset: 0; z-index: 1000; background: rgba(5,8,18,.92); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.zoom-box img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.zoom-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer; }
.zoom-box.hidden { display: none; }

/* 📣 关注我们 */
.follow-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.follow-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.follow-row.done { opacity: .6; }
.follow-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; }
.follow-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.follow-name b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-name small { color: var(--accent); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.follow-act { flex: none; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.follow-act .btn { white-space: nowrap; }
.follow-act .btn:disabled { opacity: .4; }
.follow-hint { font-size: .78rem; margin-top: 10px; }
@media (max-width: 640px) {
  .follow-row { padding: 9px 10px; gap: 10px; }
  .follow-ico { width: 34px; height: 34px; }
  .follow-ico svg { width: 18px; height: 18px; }
  .follow-name b { font-size: .86rem; }
  .follow-act { gap: 5px; }
  .follow-act .btn { padding: 6px 10px !important; font-size: .76rem !important; }
  .follow-act small { max-width: 110px; text-align: right; line-height: 1.3; }
}

/* 平台图标：和主页 Stay Connected 一样的线条风格（白线 + 细框，滑过变粉红） */
.follow-ico, .contact-tile .ci { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .2s, border-color .2s; }
.follow-ico svg, .contact-tile .ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.follow-row:hover .follow-ico, .contact-tile:hover .ci { background: var(--accent); border-color: var(--accent); }

/* ---------- 🏆 中奖领取（我的兑换上方） ---------- */
.prize-card { position: relative; border: 1px solid rgba(255,111,174,.45);
  background: linear-gradient(160deg, rgba(255,111,174,.12), rgba(124,92,255,.08) 55%, var(--card)); }
.prize-card.has-todo { box-shadow: 0 0 0 3px rgba(255,111,174,.15); }
.prize-card .pz-sub { font-size: .85rem; margin: -4px 0 6px; }
.pz-dlv { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px;
  border-radius: 10px; background: var(--card2); font-size: .85rem; line-height: 1.45; }
.pz-dlv-ico { font-size: 1.25rem; line-height: 1; }
.pz-dlv .muted { font-size: .78rem; }
.pz-claim { width: 100%; animation: pzPulse 2s ease-in-out infinite; }
@keyframes pzPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,174,.45); } 50% { box-shadow: 0 0 0 8px rgba(255,111,174,0); } }
.pz-past { margin-top: 8px; }
.pz-past summary { font-size: .82rem; color: var(--accent); font-weight: 700; padding: 6px 0; cursor: pointer; }
.pz-past .pz-item { opacity: .8; }
.prize-card .redeem-thumb[data-zoom] { cursor: zoom-in; }
#pzModal .addr-list { margin-bottom: 10px; }
@media (max-width: 480px) {
  .pz-dlv { font-size: .8rem; padding: 8px 10px; }
}

/* 首页的中奖领取框 */
.home-pz { list-style: none; }
.home-pz li + li { border-top: 1px solid var(--line); }
.home-pz-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; }
.home-pz-item .meta { font-size: .78rem; color: var(--muted); }
.home-pz-go { flex-shrink: 0; color: var(--accent); font-weight: 700; }
.home-pz-go.btn { color: #fff; animation: pzPulse 2s ease-in-out infinite; }
.home-prize { margin-bottom: 16px; }
.pz-deadline { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.pz-deadline.soon { color: var(--warn); font-weight: 700; }

/* ---------- 🏆 中奖记录页 ---------- */
.pz-empty { text-align: center; padding: 28px 20px; }
.pz-empty-ico { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.pz-empty h2 { font-size: 1.1rem; margin-bottom: 6px; }
.pz-empty .small { font-size: .82rem; margin-top: 4px; }
.pz-empty-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
#drawCard .shop-grid { margin-top: 10px; }
#drawCard .shop-item .ph img[data-zoom] { cursor: zoom-in; }
.pz-draw-btn { margin-top: 14px; }
/* 兑换记录：有奖品待领取的小提示 */
.pz-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid rgba(255,111,174,.5); color: var(--text); text-decoration: none; font-size: .9rem;
  background: linear-gradient(90deg, rgba(255,111,174,.18), rgba(124,92,255,.12)); }
.pz-banner b { color: var(--accent); white-space: nowrap; }
/* 导航红点：有待领取的中奖奖品 */
.main-nav a.has-dot, .sub-nav a.has-dot { position: relative; }
.main-nav a.has-dot::after, .sub-nav a.has-dot::after { content: ""; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--card); }
.pz-pending { border: 1px solid rgba(34,197,94,.45); background: linear-gradient(160deg, rgba(34,197,94,.12), var(--card) 60%); }
.pz-pending h2 { font-size: 1.1rem; margin-bottom: 8px; }
.pz-pending-list { list-style: none; margin-bottom: 10px; }
.pz-pending-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pz-pending-list li:first-child { border-top: none; }
.pz-pending-ico { font-size: 1.4rem; }
.pz-more-help { display: inline-block; margin-top: 12px; font-size: .82rem; color: var(--accent); font-weight: 700; text-decoration: none; }
/* 💬 WhatsApp 标签小视窗 */
.wa-ask .wa-ask-note { font-size: .78rem; margin: 2px 0 14px; }

/* ---------- ✨ Feed 按钮（铃铛旁边） ---------- */
a.feed-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.feed-btn:hover { text-decoration: none; }
.feed-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -1px; right: -1px; border: 2px solid var(--bg); }

/* ---------- 🖤 Black Elite + 保级 ---------- */
.crown-bk { display: inline-block; vertical-align: -.18em; filter: drop-shadow(0 0 3px rgba(212,175,55,.45)); }
.tier-black .tier-name { color: #d4af37; }
.tier-black .tier-icon { filter: drop-shadow(0 0 6px rgba(212,175,55,.5)); }
.tier-keep { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tier-keep .tk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; font-weight: 700; }
.tier-keep .tk-best { font-size: .74rem; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(212,175,55,.6); color: #f3d27a; }
.tier-keep .tk-text { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.bar.thin { height: 6px; margin-top: 8px; }
/* ---------- 🛍️ 商城商品卡 v4：图片照原比例、短说明、点开看详情 ---------- */
/* 有图片：照图片原本的比例显示（券图扁的、正方形照片就是正方形），完整不裁切 */
.shop-item .ph { background: radial-gradient(circle at 50% 40%, var(--card2), var(--bg)); }
.shop-item .ph:has(img) { aspect-ratio: auto; }
.shop-item .ph img { width: 100%; height: auto; object-fit: initial; }
/* 可以点开的地方 */
.mall-item [data-detail] { cursor: pointer; }
.mall-item .name::after { content: " ›"; color: var(--accent); }

/* 商品详情弹出框：点哪里都能关 */
.dt-card { padding: 0; overflow-x: hidden; cursor: pointer; }
.dt-card .modal-x { z-index: 3; background: rgba(11,16,32,.7); }
.dt-ph {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: radial-gradient(circle at 50% 40%, var(--card2), var(--bg));
}
.dt-ph:has(img) { aspect-ratio: auto; }
.dt-ph img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; display: block; }
.dt-ph.locked img { filter: grayscale(.85); }
.dt-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.dt-info h2 { font-size: 1.1rem; margin: 0; }
.dt-short { font-weight: 600; font-size: .9rem; }
.dt-long {
  color: var(--muted); font-size: .85rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere;
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px;
}
.dt-info .sub { font-size: .78rem; color: var(--muted); }
.dt-info .cost { font-weight: 800; color: var(--accent); font-size: 1.15rem; margin: 6px 0 4px; }
body.modal-open { overflow: hidden; }

/* 📱 手机：从底部滑上来，上面有一条小横杠 */
@media (max-width: 480px) {
    .dt-card .modal-x { display: none; }
  #dtModal { align-items: flex-end; padding: 0; }
  .dt-card { max-width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; animation: dtUp .22s ease-out; }
  .dt-card::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 40px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.55);
  }
}
@keyframes dtUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dt-card { animation: none; } }

/* ---------- 🏠 首页「最新上架」：图片统一正方形框，卡片等高、积分对齐 ---------- */
/* 照片照样填满；扁的优惠券图完整显示，上下用深色渐层补满 */
.home-new .shop-item { display: flex; flex-direction: column; }
.home-new .shop-item .ph, .home-new .shop-item .ph:has(img) { aspect-ratio: 1 / 1; }
.home-new .shop-item .ph img { width: 100%; height: 100%; object-fit: contain; }
.home-new .shop-item .info { flex: 1; display: flex; flex-direction: column; }
.home-new .shop-item .cost { margin-top: auto; padding-top: 4px; }

/* ---------- 👁 会员视角（管理员预览，只读） ---------- */
.preview-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  background: #fbbf24; color: #1f1300; border-radius: 999px; padding: 8px 8px 8px 16px;
  font-size: .84rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.preview-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-bar button { border: 0; border-radius: 999px; background: #1f1300; color: #fbbf24; font-weight: 800; padding: 6px 14px; cursor: pointer; flex-shrink: 0; }
body.preview-mode { padding-bottom: 70px; }
body.preview-mode .topbar { box-shadow: inset 0 -3px 0 #fbbf24; }
body.preview-mode .toast { bottom: 72px; }

/* ---------- ⚙️ 右上角设定（一半国旗、一半齿轮）---------- */
.set-dd { position: relative; }
.set-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.set-btn { position: relative; overflow: visible; }
.set-ico { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.set-flag { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 方案 B：国旗 + 右下角小齿轮 */
.set-gear {
  position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--card2); border: 1.5px solid var(--card); color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.set-gear svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .set-ico { box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.set-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: min(320px, calc(100vw - 32px));
  background: var(--card); border: 1px solid rgba(255,111,174,.35); border-radius: 18px; padding: 6px 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.set-sec { padding: 10px 14px; }
.set-sec + .set-sec { border-top: 1px solid var(--line); }
.set-h { font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin-bottom: 8px; }
.set-row { display: flex; gap: 8px; }
.set-row > * { flex: 1 1 0; min-width: 0; }
.set-row button, .set-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: .84rem; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.set-row button:hover, .set-wa:hover { border-color: var(--accent); text-decoration: none; }
.set-row button.on { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
/* 标题和选项同一排（联系区除外）；按钮放不下文字时只显示图示（i18n.js 的 fitSetRows 判断） */
.set-sec:not(.set-contact) { display: flex; align-items: center; gap: 10px; }
.set-sec:not(.set-contact) .set-h { flex: 0 0 var(--set-h-w, auto); width: var(--set-h-w, auto); margin: 0; line-height: 1.3; white-space: nowrap; }
.set-panel.h-wrap .set-sec:not(.set-contact) .set-h { white-space: normal; }   /* 标题太长：允许折成两行 */
.set-sec:not(.set-contact) .set-row { flex: 1; min-width: 0; }
.set-row.ico-only button > span { display: none; }
.set-row button .fs-a { font-style: normal; font-weight: 800; line-height: 1; }
.set-row button .fs-s  { font-size: .72rem; }
.set-row button .fs-m  { font-size: .86rem; }
.set-row button .fs-l  { font-size: 1rem; }
.set-row button .fs-xl { font-size: 1.15rem; }
.set-row .flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
/* 联系：上下两排，名称不会被截断 */
.set-col { display: flex; flex-direction: column; gap: 8px; }
.set-col .set-wa { justify-content: flex-start; gap: 10px; padding: 9px 12px; white-space: normal; text-align: left; }
.set-wa .ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(37,211,102,.15); font-size: .95rem; }
.set-wa .tx { min-width: 0; }
.set-wa .tx b { display: block; font-size: .86rem; }
.set-wa .tx small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; margin-top: 1px; }
@media (max-width: 480px) { .set-panel { zoom: .92; } }

/* ---------- ☀️ 浅色模式（:root[data-theme="light"]，预设是深色）---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --card: #ffffff;
  --card2: #f0f2f8;
  --line: #e1e5ef;
  --text: #1b2033;
  --muted: #687089;
}
:root[data-theme="light"] body {
  background-image: radial-gradient(circle at 15% 0%, rgba(255,111,174,.10), transparent 40%),
                    radial-gradient(circle at 85% 10%, rgba(124,92,255,.08), transparent 40%);
}
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.88); }
:root[data-theme="light"] .bell-panel,
:root[data-theme="light"] .set-panel { box-shadow: 0 18px 40px rgba(27,32,51,.16); }
:root[data-theme="light"] .lang-menu { box-shadow: 0 12px 30px rgba(27,32,51,.14); }
:root[data-theme="light"] .lang-btn .flag { box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
:root[data-theme="light"] .follow-ico,
:root[data-theme="light"] .contact-tile .ci { border-color: var(--line); color: var(--text); }
:root[data-theme="light"] .bell-item.unread { background: rgba(255,111,174,.09); }
:root[data-theme="light"] .btn-google { border: 1px solid var(--line); }

/* ---------- 🔔 通知分类标签 + 🔴 正在直播 ---------- */
.bell-tabs {
  display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 49px; z-index: 1; background: var(--card); border-bottom: 1px solid var(--line);
}
.bell-tabs::-webkit-scrollbar { display: none; }
.bell-tabs button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card2); color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer;
}
.bell-tabs button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.bell-tabs .n { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .62rem; display: inline-flex; align-items: center; justify-content: center; }
.bell-live {
  list-style: none; display: flex; gap: 12px; align-items: flex-start; margin: 8px 8px 4px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(255,111,174,.12)); border: 1px solid rgba(239,68,68,.45);
}
.live-dot { width: 12px; height: 12px; margin: 4px 2px 0; flex-shrink: 0; border-radius: 50%; background: #ef4444; animation: liveDot 1.4s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.live-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.live-links .btn { text-decoration: none; }
.bell.is-live::after {
  content: ""; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; border: 2px solid var(--card); animation: liveDot 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .live-dot, .bell.is-live::after { animation: none; } }

/* 🔗 中奖奖品合并寄出 */
.pz-bundle { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; font-size: .82rem; background: rgba(124,92,255,.12); border: 1px dashed rgba(124,92,255,.45); }

/* ---------- 🎨 商品款式：左右滑动 + 1/5 ---------- */
.vslider { position: relative; width: 100%; height: 100%; }
.vtrack { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vtrack::-webkit-scrollbar { display: none; }
.vslide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.shop-item .vslide img, .dt-ph .vslide img { width: 100% !important; height: 100% !important; object-fit: cover; }
.dt-ph .vslider { aspect-ratio: 1 / 1; }
.dt-ph:has(.vslider) { aspect-ratio: 1 / 1; }
.vname { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; max-width: calc(100% - 16px); padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcount { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; font-weight: 800; pointer-events: none; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.vnav.prev { left: 4px; } .vnav.next { right: 4px; }
.vslider:hover .vnav { opacity: 1; }
@media (hover: none) { .vnav { display: none; } }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.vp-item { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; font-size: .82rem; font-weight: 700; }
.vp-item:hover:not(:disabled) { border-color: var(--accent); }
.vp-item:disabled { opacity: .45; cursor: not-allowed; }
.vp-item img, .vp-item .vp-ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.vp-item small { display: block; color: var(--bad); font-weight: 600; }

/* 🔴 「🔔 通知」标题后面的 LIVE 小标签：● LIVE + 平台小图标；标题列一定一行 */
.bell-head { flex-wrap: nowrap; }
.bell-h-l { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
.bell-live-pills { display: inline-flex; flex-shrink: 0; }
.bell-live-pills:empty { display: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.5); color: #f87171; font-size: .68rem; font-weight: 800; letter-spacing: .03em;
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: liveDot 1.4s ease-in-out infinite; }
.live-pill a { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid rgba(239,68,68,.35); }
.live-pill a img { width: 100%; height: 100%; object-fit: contain; }
.live-pill a:hover { transform: scale(1.08); }
:root[data-theme="light"] .live-pill { color: #dc2626; }
@media (prefers-reduced-motion: reduce) { .live-pill i { animation: none; } }
@media (max-width: 380px) { .bell-head { font-size: .92rem; } }

/* 🎨 选款式：点选（粉色框）→ 下面按确认兑换 */
.vp-item.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,111,174,.35); background: rgba(255,111,174,.08); }
.vp-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
/* 款式多的时候：「确认兑换」固定在视窗下面，不用滑到最底 */
#vpModal .vp-foot { position: sticky; bottom: -20px; margin: 14px -20px -20px; padding: 12px 20px 16px; background: var(--card); border-top: 1px solid var(--line); }
.vp-foot .muted { font-size: .8rem; }
.bell-head .bell-readall { white-space: nowrap; flex-shrink: 0; }
.bh-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 💬 设定面板「联系我们」：下拉选单，展开后是问题标签（和帮助中心一样） */
.set-wa-item { display: flex; flex-direction: column; }
.set-wa-item > button.set-wa { width: 100%; cursor: pointer; font: inherit; }
.set-wa .chev { margin-left: auto; color: var(--muted); font-size: .8rem; transition: transform .15s; }
.set-wa-item.open .chev { transform: rotate(180deg); }
.set-wa-item.open > .set-wa { border-color: var(--accent); }
.set-wa-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 2px; }
.set-wa-tags .cn-tag { font-size: .74rem; line-height: 1.3; padding: 4px 9px; border-radius: 999px; background: rgba(120,120,120,.12);
  border: 1px solid rgba(255,111,174,.35); color: var(--text); text-decoration: none; cursor: pointer; }
.set-wa-tags .cn-tag:hover { border-color: var(--accent); text-decoration: none; }
.set-wa-tags .set-wa-direct { font-size: .74rem; padding: 4px 9px; border-radius: 999px; color: #25d366; border: 1px solid rgba(37,211,102,.4); text-decoration: none; }

/* ---------- 🎉 新会员奖励（New Member Special） ---------- */
.nm-modal .nm-pop { text-align: center; max-width: 400px; padding: 22px 20px 16px;
  background: linear-gradient(180deg, rgba(255,111,174,.16), transparent 45%), var(--card); border-color: rgba(255,111,174,.45); }
.nm-pop-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.nm-pop-img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; margin: 0 auto 12px; display: block; border: 1px solid var(--line); }
.nm-pop-ico { display: flex; align-items: center; justify-content: center; font-size: 3.2rem; background: var(--card2); }
.nm-pop h2 { padding-right: 0; font-size: 1.1rem; margin-bottom: 8px; }
.nm-pop-text { font-size: .92rem; line-height: 1.55; color: var(--text); margin-bottom: 14px; }
.nm-pop-list { list-style: none; text-align: left; display: grid; gap: 8px; margin: 4px 0 16px; font-size: .9rem; line-height: 1.45; }
.nm-pop-list li { display: flex; gap: 8px; align-items: flex-start; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.nm-pop-list b { color: var(--accent); flex-shrink: 0; }
.nm-pop-cta { display: block; width: 100%; padding: 12px; font-weight: 800; font-size: .98rem; text-decoration: none; text-align: center; }
.nm-pop-later { background: none; border: 0; color: var(--muted); font-size: .84rem; margin-top: 10px; padding: 6px; cursor: pointer; }

.nm-card { border: 1px solid rgba(255,111,174,.45); background: linear-gradient(135deg, rgba(255,111,174,.10), rgba(124,92,255,.08)), var(--card); }
.nm-offer { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nm-offer:hover { text-decoration: none; border-color: var(--accent); }
.nm-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--card2); overflow: hidden; }
.nm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-tx { flex: 1; min-width: 0; }
.nm-tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--accent); margin-bottom: 2px; }
.nm-title { font-weight: 800; font-size: .98rem; }
.nm-body { font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.nm-status.has-todo { box-shadow: 0 0 0 3px rgba(255,111,174,.15); }
.nm-head { display: flex; align-items: center; gap: 12px; }
.nm-msg { font-size: .9rem; line-height: 1.5; margin: 10px 0 8px; }
.nm-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .84rem; }
.nm-kv dt { color: var(--muted); }
.nm-kv dd { margin: 0; }
.nm-days.soon { color: var(--warn); }
.nm-hint { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.nm-shop { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nm-shop .nm-thumb { width: 72px; height: 72px; }
.nm-shop.done { text-decoration: none; color: var(--text); }
.nm-shop .msg:empty { display: none; }
.nm-act { flex-shrink: 0; }
@media (max-width: 560px) {
  .nm-shop { flex-wrap: wrap; }
  .nm-shop .nm-thumb { width: 60px; height: 60px; }
  .nm-shop .nm-act { width: 100%; }
  .nm-shop .nm-act .btn { width: 100%; justify-content: center; text-align: center; }
  .nm-offer .btn { display: none; }
}
.nm-rw { font-size: .8rem; margin: 6px 0 0; color: var(--accent); }
.nm-bind-go { display: inline-block; margin-top: 6px; font-weight: 700; }

/* ---------- 📅 我的兑换：进行中 / 最近一次在上面，下面按月份收起；每一笔一个小框 ---------- */
.rw-cards .list li.redeem-li { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rw-cards .list li.redeem-li:last-child { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.rw-cards .gift-ship, .rw-cards .gift-addr, .rw-cards .gift-receipt, .rw-cards .gift-problem { background: var(--card); }
.rw-sec-h { font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin: 4px 0 8px; }
.rw-top { margin-bottom: 18px; }
.rw-month { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--card); overflow: hidden; }
.rw-month > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 800; }
.rw-month > summary::-webkit-details-marker { display: none; }
.rw-month > summary .chev { color: var(--muted); transition: transform .2s; font-size: .8rem; }
.rw-month[open] > summary .chev { transform: rotate(90deg); }
.rw-month > summary .m { flex: 1; }
.rw-month > summary .n { color: var(--muted); font-weight: 600; font-size: .8rem; }
.rw-month > summary .live { font-size: .68rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.rw-month[open] > summary { border-bottom: 1px solid var(--line); }
.rw-month > ul { padding: 12px; }

.nm-go { display: block; color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- 📅 每日签到（首页卡片，js/checkin.js）---------- */
.ci-card .card-head { align-items: center; }
.ci-streak { font-size: .78rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ci-cells { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ci-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 9px 2px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); text-align: center; min-width: 0;
}
.ci-day { font-size: .66rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ci-pts { font-size: .92rem; font-weight: 800; white-space: nowrap; }
.ci-cell.big .ci-pts { font-size: 1rem; }
.ci-cell.big { border-color: rgba(255,111,174,.45); }
.ci-gift { position: absolute; top: -9px; left: -4px; font-size: .95rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.ci-cell.on { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.ci-cell.on .ci-day { color: rgba(255,255,255,.85); }
.ci-cell.on::after {
  content: "✓"; position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card);
}
.ci-cell.next { border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(255,111,174,.18); animation: ciPulse 1.8s ease-in-out infinite; }
@keyframes ciPulse { 50% { box-shadow: 0 0 0 6px rgba(255,111,174,.08); } }
@media (prefers-reduced-motion: reduce) { .ci-cell.next { animation: none; } }
.ci-locked .ci-cells { opacity: .5; filter: grayscale(.4); }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.ci-ok { font-weight: 700; }
.ci-btn { min-width: 128px; }
.ci-rule { margin: 10px 0 0; font-size: .72rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 480px) {
  .ci-cells { gap: 4px; }
  .ci-cell { padding: 7px 1px 6px; border-radius: 10px; }
  .ci-day { font-size: .6rem; }
  .ci-pts { font-size: .82rem; }
  .ci-foot .ci-btn { flex: 1 1 100%; }
}

/* 📱 手机版：平常是一行签到条，点一下展开完整卡片（电脑版一直显示完整卡片） */
.ci-bar, .ci-fold { display: none; }
@media (max-width: 760px) {
  .ci-wrap:not(.open) .ci-card { display: none; }
  .ci-wrap.open .ci-bar { display: none; }
  .ci-fold { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card2); color: var(--muted); font-size: .95rem; cursor: pointer; padding: 0; }
  .ci-card .card-head { gap: 8px; }
  .ci-card .ci-streak + .ci-fold { margin-left: 4px; }
  .ci-bar {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .ci-bar.gift { border-color: rgba(255,111,174,.5); background: linear-gradient(135deg, rgba(255,111,174,.12), rgba(124,92,255,.1)), var(--card); }
  .ci-bt { font-weight: 800; font-size: .9rem; white-space: nowrap; }
  .ci-bm { flex: 1; min-width: 0; font-size: .78rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ci-dots { display: flex; gap: 4px; align-items: center; flex: 1; min-width: 0; }
  .ci-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; flex: none; }
  .ci-dots i.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
  .ci-dots i.nx { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: ciDot 1.4s ease-in-out infinite; }
  @keyframes ciDot { 50% { transform: scale(1.35); } }
  .ci-dots b { font-size: .85rem; line-height: 1; margin-left: 1px; }
  .ci-fire { font-size: .75rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
  .ci-chev { color: var(--muted); font-size: .9rem; }
  .ci-bar .ci-bbtn { width: auto; flex: none; margin: 0; padding: 7px 14px; font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .ci-dots i.nx { animation: none; } }

/* 🏅 签到达人：分享按钮、还差几天、达标弹窗（js/checkin.js） */
.ci-card .ci-share { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.ci-star { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .8rem; font-weight: 700; color: var(--accent); }
.ci-star img { width: 20px; height: 20px; flex: none; }
.ci-bar a.ci-bbtn { text-decoration: none; }
.ci-modal { position: fixed; inset: 0; z-index: 200; background: rgba(8,10,20,.6); display: flex; align-items: center; justify-content: center; padding: 20px; animation: ciFade .2s ease; }
@keyframes ciFade { from { opacity: 0; } }
.ci-modal-card { width: min(360px, 100%); background: var(--card); border: 1px solid rgba(255,111,174,.45); border-radius: 22px; padding: 24px 20px 18px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 8px; animation: ciPop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes ciPop { from { transform: scale(.85); opacity: 0; } }
.ci-modal-badge { width: 92px; height: 92px; margin: -6px auto 4px; filter: drop-shadow(0 6px 16px rgba(255,111,174,.45)); }
.ci-modal-card h3 { margin: 0; font-size: 1.15rem; }
.ci-modal-card .muted { margin: 0 0 4px; font-size: .86rem; }
.ci-modal-card ul { list-style: none; margin: 4px 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.ci-modal-card li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.ci-modal-card li img { width: 20px; height: 20px; flex: none; }
.ci-modal-share { margin: 4px 0 2px; font-size: .84rem; font-weight: 700; color: var(--accent); }
.ci-modal-card .btn { width: 100%; justify-content: center; margin: 0; }
@media (prefers-reduced-motion: reduce) { .ci-modal, .ci-modal-card { animation: none; } }

/* 🏅 签到达人专属奖品（商城看得到、不能兑换） */
.ci-only-tag { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px;
  border-radius: 999px; background: rgba(255,255,255,.92); color: #be185d; font-size: .7rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.shop-item .ph .ci-only-tag img, .dt-ph .ci-only-tag img, .ci-only-tag img { width: 18px; height: 18px; max-height: none; object-fit: contain; flex: none; }
.ci-only-tag { white-space: nowrap; width: auto; height: auto; }
.ci-only-cost { color: var(--accent); }
.ci-only-btn { opacity: 1 !important; border-color: rgba(255,111,174,.4); color: var(--accent); }
.ci-only-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,111,174,.1); border: 1px solid rgba(255,111,174,.3); font-size: .84rem; line-height: 1.45; }
.ci-only-note img { width: 26px; height: 26px; flex: none; }
.ci-only-go { margin-top: 8px; width: 100%; justify-content: center; }

/* 📅 从「去签到」进来：签到框高亮闪 3 下（手机签到条、电脑完整卡片都会闪） */
.ci-wrap.ci-flash .ci-bar, .ci-wrap.ci-flash .ci-card { animation: ciFlash 1s ease-in-out 3; border-color: var(--accent); }
@keyframes ciFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,174,0); } 50% { box-shadow: 0 0 0 6px rgba(255,111,174,.45); } }
@media (prefers-reduced-motion: reduce) { .ci-wrap.ci-flash .ci-bar, .ci-wrap.ci-flash .ci-card { animation: none; box-shadow: 0 0 0 3px rgba(255,111,174,.45); } }
.ci-wrap { scroll-margin-top: 80px; }   /* 捲过去时不被顶部导航挡住 */

/* ---------- 📦 已兑完印章、✨ 实时库存效果（shop.html；只用 transform / opacity，低端手机也顺）---------- */
.so-stamp {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-14deg);
  display: flex; flex-direction: column; align-items: center; line-height: 1.05; pointer-events: none;
  padding: 6px 14px; border: 3px solid #e11d48; border-radius: 10px; color: #e11d48; background: rgba(255,255,255,.88);
  font-weight: 900; font-size: 1rem; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.so-stamp small { font-size: .56rem; letter-spacing: .18em; font-weight: 800; }
.dt-ph .so-stamp { font-size: 1.5rem; padding: 8px 20px; }
.vslide .so-stamp { font-size: .85rem; }
.vslide:has(.so-stamp) > img { opacity: .5; }
/* 刚卖完：印章从大缩小盖下去 + 卡片轻晃 */
.so-stamp.fx-stamp { animation: soStamp .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes soStamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.fx-shake { animation: soShake .45s ease .15s; }
@keyframes soShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
/* 补货：闪一下 + ✨ + 「有货了」 */
.fx-restock { animation: soGlow 1.2s ease; }
@keyframes soGlow { 0%, 100% { opacity: 1; } 30% { opacity: .55; } 60% { opacity: 1; } }
.fx-restock-tag {
  position: absolute; left: 50%; top: 12px; z-index: 4; transform: translateX(-50%); pointer-events: none;
  padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-size: .76rem; font-weight: 800; white-space: nowrap; animation: soTag 2.2s ease both;
}
@keyframes soTag { 0% { opacity: 0; transform: translate(-50%, -8px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.fx-spark { position: absolute; bottom: 20%; z-index: 4; font-size: 1rem; pointer-events: none; animation: soSpark 1.1s ease-out both; }
@keyframes soSpark { 0% { opacity: 0; transform: translateY(0) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .so-stamp.fx-stamp, .fx-shake, .fx-restock, .fx-restock-tag, .fx-spark { animation: none; }
  .fx-spark { display: none; }
}

/* 📅 会员等级页「每日签到」精简两行（js/checkin.js perksRowsHTML） */
.ckl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ckl li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.ckl .ic { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: rgba(255,111,174,.12); }
.ckl .ic img { width: 34px; height: 34px; }
.ckl .tx { flex: 1; min-width: 0; }
.ckl .tx b { display: block; font-size: .88rem; }
.ckl .tx small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; line-height: 1.35; }
.ckl .act { flex: none; }
.ckl .act .btn { width: auto; padding: 6px 12px; font-size: .78rem; margin: 0; }
.ckl .act .pill { font-size: .72rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
