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

:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --border: #e6e8ee;
  --text: #1c1c1e;
  --text-2: #838592;
  --red: #f04a45;
  --red-deep: #d83e40;
  --green: #16a34a;
  --orange: #f57a14;
  --tab-active: #d13d3a;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(35, 37, 47, 0.06);
  --bg-soft: #f1f2f6;
  --soft-pink: #fff0f1;
  --soft-blue: #eef3ff;
  --soft-gold: #fdf6e8;
  --soft-green: #eef9f1;
  --text-gold: #5c4a2e;
}

body[data-theme="dark"] {
  --bg: #14161b;
  --card: #1e2127;
  --border: #2c3038;
  --text: #e8eaee;
  --text-2: #9aa0ac;
  --bg-soft: #262a31;
  --soft-pink: #3a2426;
  --soft-blue: #1f2a3d;
  --soft-gold: #342e1f;
  --soft-green: #1c2d22;
  --text-gold: #d8b45a;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
body[data-theme="dark"] {
  --bg: #14161b;
  --card: #1e2127;
  --border: #2c3038;
  --text: #e8eaee;
  --text-2: #9aa0ac;
  --bg-soft: #262a31;
  --soft-pink: #3a2426;
  --soft-blue: #1f2a3d;
  --soft-gold: #342e1f;
  --text-gold: #d8b45a;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ============ 顶部导航（网站版） ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* ============ 底部导航（网站版） ============ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 14px rgba(20, 24, 40, 0.07);
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav .tab-item {
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 7px 0 9px;
  border-radius: 12px;
  font-size: 12px;
}

.bottom-nav .tab-item svg {
  display: block;
}

.bottom-nav .tab-item.active {
  background: rgba(216, 62, 64, 0.08);
  color: var(--red-deep);
  box-shadow: none;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a5c 0%, #e63b2e 55%, #c2281e 100%);
  border: 2px solid #f6c64b;
  color: #ffe9a8;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.version {
  font-size: 11px;
  color: #8b919b;
  transform: translateY(1px);
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s;
}

.tab-item:hover {
  background: rgba(91, 108, 255, 0.08);
  color: #4a50b8;
}

.tab-item.active {
  background: var(--red-deep);
  color: #fff;
  box-shadow: 0 3px 10px rgba(216, 62, 64, 0.3);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.share-btn {
  background: #151a2b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.9;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  color: #1c1c1c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--bg-soft);
}

/* ============ 内容区 ============ */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 100px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ============ Hero 横幅 ============ */
.hero {
  position: relative;
  border-radius: 22px;
  padding: 34px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  min-height: 150px;
}

.hero-dark {
  background: linear-gradient(115deg, #1e1d2a 0%, #2e2d3e 70%, #3a394e 100%);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(35, 37, 47, 0.04);
}

.hero-card .hero {
  border-radius: 12px;
  min-height: 96px;
  padding: 12px 16px;
}

.hero-card .hero-title {
  font-size: 17px;
}

.hero-card .hero-sub {
  font-size: 10px;
}

.hero-card .quick-links {
  margin: 8px 0 0;
  gap: 8px;
}

.hero-card .quick-btn {
  height: 32px;
  font-size: 12px;
  border-radius: 10px;
}

.hero-card .id-badge {
  font-size: 12px;
}

.notice-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  background: var(--soft-gold);
  border: 1px solid #e5cf9d;
  border-radius: 12px;
  padding: 12px 16px;
  overflow: hidden;
}

.notice-stat {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.notice-crown {
  font-size: 22px;
  line-height: 1.1;
}

.notice-num {
  font-size: 26px;
  font-weight: 800;
  color: #d4a13c;
  letter-spacing: 1px;
  line-height: 1.15;
}

.notice-stat-label {
  font-size: 11px;
  color: var(--text-gold);
  line-height: 1.4;
}

.notice-divider {
  width: 1px;
  background: #e5cf9d;
  margin: 4px 0;
  flex-shrink: 0;
}

.notice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  gap: 7px;
}

.notice-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-gold);
}

.notice-bulb {
  font-size: 15px;
}

.notice-line {
  font-size: 12px;
  color: var(--text-gold);
  line-height: 1.6;
}

.notice-strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1.6;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  background: var(--soft-gold);
  border: 1px solid #e5cf9d;
  border-radius: 12px;
  padding: 4px 10px;
}

.contact-channels {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid #e5cf9d;
  border-radius: 8px;
  padding: 3px 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.channel-btn:hover {
  box-shadow: 0 3px 12px rgba(212, 161, 60, 0.18);
  transform: translateY(-1px);
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.channel-qq {
  background: linear-gradient(135deg, #3b8cff 0%, #1e6fe8 100%);
}

.channel-wx {
  background: linear-gradient(135deg, #4ed06a 0%, #22a947 100%);
}

.channel-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gold);
  white-space: nowrap;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gold);
  text-align: center;
}

.contact-act {
  white-space: nowrap;
}

.contact-wx {
  font-size: 11px;
  color: #d4a13c;
  font-weight: 600;
  text-align: right;
}

.copy-wx-btn {
  margin-left: 8px;
  border: 1px solid #e5cf9d;
  background: var(--card);
  color: var(--text-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.2s;
}

.copy-wx-btn:active {
  background: var(--soft-gold);
}

.wx-id {
  color: var(--text-gold);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.qr-panel {
  width: 300px;
}

.qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 22px;
}

.qr-box {
  width: 220px;
  height: 220px;
  border: 1px dashed #e5cf9d;
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-empty {
  font-size: 13px;
  color: #a0a3ae;
  padding: 10px;
  text-align: center;
  line-height: 1.6;
}

.qr-tip {
  font-size: 12px;
  color: var(--text-gold);
  text-align: center;
}

.hero-green {
  background: linear-gradient(115deg, #143d2c 0%, #0f2f22 70%, #0b2218 100%);
}

.hero-lobby {
  background: linear-gradient(115deg, #33215c 0%, #241650 70%, #190f3c 100%);
}

.hero-invite {
  background: linear-gradient(115deg, #8a5a00 0%, #b8860b 60%, #d4a017 100%);
}

.hero-user {
  background: linear-gradient(115deg, #14406e 0%, #0f2f52 70%, #0b1f38 100%);
}
.hero-user-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-user-main .hero-text {
  padding: 0;
}
.user-avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 30px;
  background: linear-gradient(135deg, #5aa7ff, #5b5ae8);
}
.hero-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-user-meta .user-name {
  margin: 0;
  font-size: 22px;
}
.hero-user-meta .user-since.light {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}
.user-card {
  padding: 18px;
}
.user-card .user-tip {
  margin-top: 0;
}

.online-pill {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e9e6f7;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.online-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: online-blink 1.8s infinite;
}
@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-deco {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

.hero-deco::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, 0.04);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: 15px;
  color: #c9cbd3;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.id-badge {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f4f6;
  font-size: 13px;
  white-space: nowrap;
}

/* ============ 快捷入口 ============ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}

.quick-btn {
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: filter 0.2s, transform 0.2s;
}

.quick-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.quick-blue {
  background: var(--soft-blue);
  border-color: #dce6ff;
  color: #5b87e8;
}

.quick-pink {
  background: var(--soft-pink);
  border-color: #f4d5d7;
  color: #e0534b;
}

.quick-gray {
  background: var(--bg-soft);
  border-color: #e7e8ed;
  color: var(--text-2);
}

.quick-green {
  background: var(--soft-green);
  border-color: #d7f0df;
  color: #2aa85a;
}

.quick-red {
  background: var(--soft-pink);
  border-color: #f4d5d7;
  color: #e0534b;
}

/* ============ 网格 ============ */
.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.list-card {
  margin-bottom: 16px;
}

.view .card {
  margin-bottom: 16px;
}

/* ============ 卡片头 ============ */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title.plain {
  font-size: 15px;
}

.gift-icon {
  font-size: 18px;
}

.pill-status {
  background: var(--soft-pink);
  border: 1px solid #f4d5d8;
  color: #d86b72;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ============ 发布行 ============ */
.publish-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.code-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.code-input::placeholder {
  color: var(--text-2);
}

.code-input:focus {
  border-color: #c9cbe0;
  background: var(--card);
}

.btn-recognize {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fdf3f4;
  border: 1px solid #f1d0d2;
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-recognize:hover {
  background: #fbe6e8;
}

.btn {
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: filter 0.2s, transform 0.1s;
}

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

.btn-red {
  height: 48px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(240, 74, 69, 0.35);
}

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

.btn-green {
  height: 50px;
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(180deg, #1fa64d 0%, #128a3d 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
}

.btn-green:hover {
  filter: brightness(0.94);
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--soft-gold);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: #8b6a57;
}

/* ============ 列表卡 ============ */
.list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-deep);
  display: flex;
  align-items: center;
  gap: 7px;
}

.list-title.plain {
  color: var(--text-2);
  font-size: 14px;
}

.dot-red,
.dot-green,
.dot-orange {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: #e84b4b;
}

.dot-green {
  background: #5ccb8a;
}

.dot-orange {
  background: #f6b98b;
}

.fudai-tip-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff6ea 0%, #ffefd8 70%, #ffe9cf 100%);
  border: 1px solid #f0d9ae;
}

.tip-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.tip-banner-text {
  font-size: 12.5px;
  color: #8a6a35;
  line-height: 1.6;
  font-weight: 600;
}

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

.fudai-rain span {
  position: absolute;
  top: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 46% 46% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ff7a84 0%, #ff3355 60%, #e0143a 100%);
  color: #ffd700;
  font-weight: 900;
  border: 2px solid rgba(255, 215, 0, 0.95);
  box-shadow: 0 3px 8px rgba(180, 20, 50, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(160, 20, 40, 0.35);
  line-height: 1;
  will-change: transform, opacity;
  animation-name: fudai-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fudai-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(0, calc(100vh + 100px), 0) rotate(360deg);
  }
}

.refresh-link {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #6c7480;
  font-size: 13px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
}

.refresh-link:hover {
  background: var(--bg-soft);
  color: #4a5058;
}

.countdown {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8e8f98;
}

.countdown b {
  color: #6c6e78;
}

/* ============ 福袋码列表项 ============ */
.fudai-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px 13px 22px;
  margin: 0 auto 10px;
  max-width: 92%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.fudai-item:hover {
  box-shadow: 0 3px 12px rgba(35, 37, 47, 0.07);
}

.fudai-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 4px;
  background: var(--red-deep);
}

.fudai-code {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.fudai-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.owner-pill {
  background: #eef2ff;
  border: 1px solid #dde4f7;
  color: #5b7bc4;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.fudai-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
}

.fudai-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.status-pill {
  background: var(--soft-pink);
  border: 1px solid #f0cad0;
  color: #d46a73;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.status-done {
  background: var(--soft-green);
  border-color: #d7f0df;
  color: #2e9b52;
}

.status-pill.status-expired {
  background: var(--bg-soft);
  border-color: #e3e4ea;
  color: #b0b3bf;
}

.valid-pill {
  background: var(--soft-pink);
  border: 1px solid #f0cad0;
  color: #d46a73;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ 优惠券列表项 ============ */
.coupon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}

.coupon-item:last-child {
  border-bottom: none;
}

.coupon-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f4b01e;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coupon-info {
  flex: 1;
  min-width: 0;
}

.coupon-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-claim {
  border: none;
  background: #e9f8ec;
  color: #2e9b52;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.fudai-item .btn-claim {
  font-size: 10px;
  padding: 3px 15px;
}

.fudai-item .btn-report {
  font-size: 10px;
  padding: 3px 15px;
}

.fudai-item .status-pill {
  font-size: 9px;
  padding: 3px 8px;
}

.fudai-item .btn-claim {
  font-size: 10px;
  padding: 3px 15px;
  border: 1px solid #b9e3c3;
}

.fudai-item .valid-pill {
  font-size: 10px;
  padding: 4px 9px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: var(--card);
}

.coupon-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
}
.coupon-right .btn-claim {
  text-align: center;
}

.btn-jump {
  border: 1px solid var(--border);
  background: var(--soft-pink);
  color: var(--red-deep);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-jump:active {
  background: var(--soft-pink);
}

.btn-claim:hover {
  background: #daf0df;
}

.btn-report {
  border: 1px solid var(--border);
  background: var(--soft-pink);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-report:active {
  background: var(--soft-pink);
}

.empty-state {
  text-align: center;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 22px 0;
}

.tip-line {
  text-align: center;
  color: #e08a1f;
  font-size: 12.5px;
  padding: 8px 0 4px;
}

/* ============ 优惠券列表容器 ============ */
.coupon-list {
  display: flex;
  flex-direction: column;
}

.coupon-list.plain {
  padding: 0 2px;
}

/* ============ 快捷跳转 ============ */
.site-empty {
  text-align: center;
  color: var(--text-2);
  padding: 48px 20px;
  font-size: 15px;
}

.site-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.site-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.site-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 24, 40, 0.1);
}

.site-link-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.site-link::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2bb8c2, #1278a0);
  margin-top: 2px;
}

.site-jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 56px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.site-jump-ico {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2bb8c2 0%, #1278a0 100%);
  box-shadow: 0 8px 20px rgba(18, 120, 160, 0.28);
}

.site-jump-tip {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.site-jump-btn {
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2bb8c2 0%, #1278a0 100%);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 120, 160, 0.24);
}

/* ============ 通栏按钮 ============ */
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

/* ============ 分段切换 ============ */
.segmented {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.seg-btn {
  flex: 1;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #e5e8ee;
  background: var(--card);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
}

.seg-btn.active {
  background: linear-gradient(180deg, #ff8a1a 0%, #f57a14 55%, #f06d00 100%);
  border-color: #f57a14;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 122, 20, 0.35);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* ============ 平台选择 ============ */
.platform-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.platform-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #e7eaf0;
  background: var(--bg-soft);
  color: #444;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.platform-item.active {
  background: var(--card);
  border-color: #d6dae4;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pl-icon {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex-shrink: 0;
}

.pl-jd {
  background: #e63b2e;
}

.pl-mt {
  background: #f6c64b;
  color: #7a5400;
}

.pl-tb {
  background: #f7941d;
}

.team-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.btn-paste {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--soft-gold);
  border: 1px solid #f2d27b;
  color: #6a5a2c;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-paste:hover {
  background: var(--soft-gold);
}

/* ============ 悬浮按钮（全局显示，自适应堆叠） ============ */
.float-btn {
  position: fixed;
  bottom: calc(96px + var(--fb-i, 0) * 76px);
  right: 30px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1e2034;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  z-index: 90;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  -webkit-user-drag: none;
  user-drag: none;
}

.float-btn.dragging {
  transition: none;
  cursor: grabbing;
  opacity: 0.92;
}

.float-btn:hover {
  transform: scale(1.06);
}

.float-icon {
  font-size: 22px;
  line-height: 1;
}

.float-text {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.float-activity {
  background: linear-gradient(135deg, #ff8a5c 0%, #f04a45 100%);
}

.float-invite {
  background: linear-gradient(135deg, #ff6b9d 0%, #d83e40 100%);
}

/* ============ 底部 ============ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  padding: 22px 20px 90px;
  color: var(--text-2);
  font-size: 13px;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 300;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.25s ease;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============ 分享面板 ============ */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.42);
}

.share-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 20px 22px 26px;
  z-index: 200;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
  animation: sheet-in 0.25s ease;
}

@keyframes sheet-in {
  from {
    transform: translateX(-50%) translateY(100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

.share-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: center;
}

.share-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-grid-item:hover {
  opacity: 0.8;
}

.share-ic {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.share-wx {
  background: #07c160;
}

.share-qq {
  background: #12b7f5;
}

.share-copy {
  background: #5b87e8;
}

.share-poster {
  background: #1e2034;
}

/* ============ 记录弹窗 ============ */
.records-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.records-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.records-panel {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}

.records-close {
  border: none;
  background: var(--bg-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-2);
}

.records-body {
  overflow-y: auto;
  padding: 8px 20px 16px;
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.record-row:last-child {
  border-bottom: none;
}

.record-time {
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.record-action {
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}

.record-detail {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 用户中心 ============ */
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: var(--bg-soft);
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.user-btn svg {
  display: block;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 2px 14px;
}
.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a76, #ff4d6a);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-id {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.user-type {
  font-size: 12px;
  color: #ff4d6a;
  font-weight: 600;
}
.user-since {
  font-size: 12px;
  color: var(--text-2);
}
.user-tip {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.user-done {
  text-align: center;
  padding: 16px 0;
}

.invite-box {
  margin-top: 14px;
}
.invite-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.invite-link-row {
  display: flex;
  gap: 8px;
}
.invite-link-row .report-input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.btn-invite-copy {
  flex-shrink: 0;
  border: none;
  background: #ff4d6a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-invite-copy:active {
  background: #e53e58;
}
.invite-count {
  margin-top: 8px;
  font-size: 12.5px;
  color: #ff6b81;
  font-weight: 600;
}
.invite-guest-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}
.invite-rank {
  margin-top: 16px;
  border-top: 1px solid #f0f0f4;
  padding-top: 12px;
}

/* ============ 账号登录 / 找回密码 ============ */
.auth-body {
  background: #f5f6f8;
  min-height: 100vh;
}
.auth-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px;
}
.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 18px;
}
.auth-brand {
  font-size: 18px;
  font-weight: 800;
  color: #ff4d6a;
  letter-spacing: 1px;
}
.auth-back {
  font-size: 13px;
  color: #5b87e8;
  text-decoration: none;
}
.auth-card {
  padding: 26px 22px;
}
.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}
.auth-form .report-label {
  margin-top: 4px;
}
.auth-code-row {
  display: flex;
  gap: 8px;
}
.auth-code-row .report-input {
  flex: 1;
  min-width: 0;
}
.btn-code-send {
  flex-shrink: 0;
  border: none;
  background: #ff4d6a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-code-send:disabled {
  background: #f0b3bf;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
}
.auth-links.center {
  justify-content: center;
}
.auth-links a {
  color: #5b87e8;
  text-decoration: none;
}
.auth-links .auth-register {
  color: #ff4d6a;
  font-weight: 600;
}
.auth-login-link {
  color: #5b87e8;
}
.user-email-line {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.user-balance-line {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ff8f1f;
}
.ban-banner {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--soft-pink);
  border: 1px solid #ffd6d6;
  color: #e0534b;
  font-size: 13px;
  line-height: 1.5;
}
.appeal-content {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
.invite-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.invite-rank-meta {
  font-size: 11.5px;
  color: var(--text-2);
}
.invite-rank-list .rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #f4f4f7;
}
.invite-rank-list .rank-item:last-child {
  border-bottom: none;
}
.invite-rank-list .rank-item.rank-me {
  background: var(--soft-pink);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.rank-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f1f5;
  color: #8b9099;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-no-1 {
  background: #ffdf6b;
  color: #7a5200;
}
.rank-no-2 {
  background: #e2e6ec;
  color: #4b5563;
}
.rank-no-3 {
  background: #f3c19a;
  color: #6b3a12;
}
.rank-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-count {
  font-size: 12.5px;
  color: #ff4d6a;
  font-weight: 700;
  flex-shrink: 0;
}
.user-done-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #16a34a;
  font-size: 24px;
  line-height: 46px;
  font-weight: 700;
}
.user-done-text {
  font-size: 14px;
  color: #16a34a;
  font-weight: 600;
}

/* ============ 广告横幅 ============ */
.banner-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.banner[data-banner-page] {
  display: none;
}

.banner-img-wrap {
  display: block;
  padding: 0;
  overflow: hidden;
  background: none;
  border: none;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 15 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.page + .banner-stack {
  margin-top: 20px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, #ffedd5 0%, #fff7ed 100%);
  border: 1px solid #fde3c2;
  border-radius: 16px;
  padding: 14px 20px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.banner:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

.banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
}

.banner-sub {
  font-size: 13px;
  color: #b45309;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 精彩活动页 ============ */
.act-hero {
  position: relative;
  border-radius: 22px;
  padding: 34px 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 150px;
  background: linear-gradient(115deg, #5a1036 0%, #8a1a4e 60%, #b8306b 100%);
}

.act-hero-deco {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

.act-hero-text {
  position: relative;
  z-index: 1;
}

.activity-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.act-empty {
  margin-top: 18px;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-2);
  font-size: 15px;
}

.act-empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.act-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.act-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.act-col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.act-col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.act-card {
  position: relative;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(35, 37, 47, 0.07);
}

.act-no {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 0 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.act-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.act-title {
  font-size: 17px;
  font-weight: 800;
}

.act-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.act-num {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.act-join {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.act-join:hover {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .act-grid:not(.act-col-1) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .act-card {
    min-height: 150px;
    padding: 15px;
  }
}

/* ============ 举报表单 ============ */
.report-form {
  padding-top: 8px;
}

.report-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin: 12px 0 6px;
}

.report-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.report-input:focus {
  border-color: #c9cbe0;
}

.report-submit {
  width: 100%;
  margin-top: 16px;
}

/* 举报图片证据选择 */
.report-image-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.report-file {
  display: none;
}
.report-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed #c9cbe0;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  background: #fafbfc;
  max-width: 100%;
}
.report-file-plus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}
.report-file-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-image-hint {
  font-size: 12px;
  color: var(--text-2);
}

/* 联系弹窗内容 */
.contact-content {
  font-size: 14.5px;
  color: #333;
  line-height: 1.8;
  padding: 6px 2px 10px;
  white-space: pre-line;
}

/* 记录分组 */
.records-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff4d6a;
  padding: 12px 2px 4px;
  border-bottom: 1px solid var(--border);
}
.records-group-title:first-child {
  padding-top: 6px;
}
.record-row.muted {
  color: var(--text-2);
  font-size: 13px;
}

/* ============ 管理后台入口 ============ */
.admin-link {
  color: var(--text-2);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.admin-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* ============ 响应式：手机 ============ */
@media (max-width: 767px) {
  .header-inner {
    height: 56px;
    padding: 0 14px;
  }

  .brand-title {
    font-size: 17px;
  }

  .bottom-nav .tab-item span {
    font-size: 12px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px 14px 96px;
  }

  .hero {
    padding: 26px 22px;
    min-height: 120px;
    border-radius: 18px;
  }

  .hero-card .hero {
    min-height: 96px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .contact-channels {
    gap: 8px;
  }

  .channel-btn {
    padding: 3px 10px;
  }

  .channel-icon {
    width: 20px;
    height: 20px;
  }

  .qr-panel {
    width: 86vw;
    max-width: 300px;
  }

  .fudai-item {
    max-width: 100%;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .quick-links {
    gap: 8px;
    margin: 12px 0 18px;
  }

  .quick-btn {
    height: 38px;
    font-size: 13px;
  }

  .publish-row {
    flex-wrap: wrap;
  }

  .publish-row .code-input {
    flex-basis: 100%;
  }

  .btn-recognize {
    flex: 1;
    justify-content: center;
  }

  .btn-red {
    flex: 1.4;
  }

  .float-btn {
    right: 18px;
    bottom: calc(86px + var(--fb-i, 0) * 68px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }

  .fudai-right {
    align-items: flex-end;
  }
}

/* ============ 互助大厅 ============ */
.lobby-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
}
.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.lobby-refresh-tip {
  font-size: 12px;
  color: var(--text-2);
}
.chat-list {
  height: 380px;
  overflow-y: auto;
  padding: 6px 16px;
  background: #fbfbfd;
}
.chat-item {
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}
.chat-item:last-child {
  border-bottom: none;
}
.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.chat-name {
  font-size: 13px;
  font-weight: 700;
  color: #ff4d6a;
}
.chat-time {
  font-size: 11.5px;
  color: var(--text-2);
}
.chat-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-all;
  margin-bottom: 6px;
}
.chat-copy {
  border: 1px solid var(--border);
  background: var(--soft-pink);
  color: var(--red-deep);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chat-copy:active {
  background: var(--soft-pink);
}
.chat-empty {
  text-align: center;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 60px 0;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--card);
  position: relative;
}
.chat-input-row .code-input {
  flex: 1;
  min-width: 0;
}
.chat-send-btn {
  flex-shrink: 0;
  padding: 0 18px;
}
.chat-input-row.locked .code-input,
.chat-input-row.locked .chat-send-btn {
  opacity: 0.45;
  pointer-events: none;
}
.chat-lock-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #b08968;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  border-radius: 0 0 16px 16px;
}
.chat-lock-tip svg {
  flex-shrink: 0;
}
.lobby-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lobby-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e3e5ea;
  background: #f8f8fa;
  color: #5b616b;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lobby-refresh-btn:active {
  background: #eeeff2;
}
.lobby-refresh-btn.spinning svg {
  animation: refresh-spin 0.8s linear infinite;
}
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

/* ============ 响应式：窄屏适配 ============ */
@media (max-width: 560px) {
  .version {
    display: none;
  }
}

/* ===== 通知列表（用户中心） ===== */
.notify-card {
  margin-top: 14px;
}
.notify-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notify-unread-count {
  font-size: 12px;
  color: #e0534b;
  font-weight: 600;
}
.notify-mark-all {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--primary, #3f7dff);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}
.notify-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.notify-empty {
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
  padding: 18px 0;
}
.notify-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7fa;
  border: 1px solid #eceef3;
}
.notify-item.notify-unread {
  background: var(--soft-blue);
  border-color: #d5e1ff;
}
.notify-type {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  height: fit-content;
  margin-top: 1px;
}
.notify-type-ban {
  color: #e0534b;
  background: var(--soft-pink);
}
.notify-type-unban {
  color: #2f9e63;
  background: #e6f7ee;
}
.notify-type-notice {
  color: #3b62c9;
  background: var(--soft-blue);
}
.notify-body {
  min-width: 0;
  flex: 1;
}
.notify-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.notify-content {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 3px;
  word-break: break-all;
}
.notify-time {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ===== 右上角通知铃铛 ===== */
.bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border: 1px solid #e4e8ef;
  background: var(--card);
  border-radius: 18px;
  color: #555;
  cursor: pointer;
}
.bell-btn:hover {
  border-color: #cdd5e2;
  color: var(--text);
}
.bell-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0534b;
  border: 1.5px solid #fff;
}

/* ===== 通知下拉面板 ===== */
.notify-pop {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 330px;
  max-width: calc(100vw - 24px);
  background: var(--card);
  border: 1px solid #eceef3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 30, 60, 0.16);
  z-index: 120;
  overflow: hidden;
}
.notify-pop-head {
  display: flex;
  align-items: center;
  padding: 12px 14px 8px;
}
.notify-pop-markall {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--primary, #3f7dff);
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 4px;
}
.notify-pop-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 通知条目操作按钮 ===== */
.notify-ops {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.notify-op {
  width: 24px;
  height: 22px;
  border: 1px solid #e4e8ef;
  background: var(--card);
  border-radius: 8px;
  color: #8b93a1;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.notify-op:hover {
  border-color: var(--primary, #3f7dff);
  color: var(--primary, #3f7dff);
}
.notify-op-del:hover {
  border-color: #e0534b;
  color: #e0534b;
}

/* ===== 福袋列表上方中间横幅（同步所有导航页） ===== */
.mid-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.mid-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft-gold);
  border: 1px solid #f0e4c8;
  border-radius: 16px;
  padding: 10px 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(214, 166, 74, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.mid-banner:hover {
  box-shadow: 0 4px 14px rgba(214, 166, 74, 0.18);
  transform: translateY(-1px);
}
.mid-banner-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: #fbf3e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mid-banner-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.mid-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mid-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mid-banner-desc {
  font-size: 11px;
  color: #9a9aa3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mid-banner-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #34c759;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.mid-banner:hover .mid-banner-btn {
  filter: brightness(0.94);
}
@media (max-width: 560px) {
  .mid-banners {
    grid-template-columns: 1fr;
  }
}


/* ===== 深色主题组件适配 ===== */
body[data-theme="dark"] .site-header {
  background: rgba(20, 22, 27, 0.92);
}
body[data-theme="dark"] .bottom-nav {
  background: rgba(30, 33, 39, 0.96);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.3);
}
body[data-theme="dark"] .tab-item.active {
  background: rgba(224, 83, 75, 0.18);
}
body[data-theme="dark"] .banner {
  background: linear-gradient(120deg, #2e2618 0%, #33291a 100%);
  border-color: #4a3a20;
}
body[data-theme="dark"] .banner-title {
  color: #f5c26b;
}
body[data-theme="dark"] .banner-sub {
  color: #d9a95a;
}
body[data-theme="dark"] .fudai-tip-banner {
  background: linear-gradient(115deg, #33291c 0%, #382c1d 70%, #3d2e1e 100%);
  border-color: #4a3a22;
}
body[data-theme="dark"] .tip-banner-text {
  color: #e5c07b;
}
body[data-theme="dark"] .mid-banner {
  border-color: #4a4030;
}
body[data-theme="dark"] .mid-banner-logo {
  background: #3a3428;
}
body[data-theme="dark"] .mid-banner-title {
  color: var(--text);
}
body[data-theme="dark"] .mid-banner-desc {
  color: var(--text-2);
}
body[data-theme="dark"] .chat-lock-tip {
  background: rgba(20, 22, 27, 0.85);
  color: #c9a06a;
}
body[data-theme="dark"] .channel-btn,
body[data-theme="dark"] .copy-wx-btn {
  border-color: #4a4030;
}
body[data-theme="dark"] .quick-pink,
body[data-theme="dark"] .quick-red {
  border-color: #4a3033;
}
body[data-theme="dark"] .quick-blue {
  border-color: #2c3a55;
}
body[data-theme="dark"] .quick-green {
  border-color: #24523a;
}
body[data-theme="dark"] .quick-gray {
  border-color: #383c44;
}
body[data-theme="dark"] .status-pill,
body[data-theme="dark"] .valid-pill {
  border-color: #4a3033;
}
body[data-theme="dark"] .status-pill.status-done {
  border-color: #24523a;
}
body[data-theme="dark"] .status-pill.status-expired {
  border-color: #383c44;
}
body[data-theme="dark"] .coupon-item {
  border-bottom-color: var(--border);
}
body[data-theme="dark"] .chat-item {
  border-bottom-color: var(--border);
}
body[data-theme="dark"] .platform-item {
  background: var(--bg-soft);
  border-color: var(--border);
}
body[data-theme="dark"] .platform-item.active {
  background: var(--card);
  border-color: var(--border);
}
body[data-theme="dark"] .site-link {
  border-color: var(--border);
}
body[data-theme="dark"] .records-panel,
body[data-theme="dark"] .share-sheet,
body[data-theme="dark"] .notify-pop,
body[data-theme="dark"] .qr-box {
  background: var(--card);
  color: var(--text);
}
body[data-theme="dark"] .user-btn,
body[data-theme="dark"] .bell-btn {
  background: var(--bg-soft);
  color: var(--text);
}
body[data-theme="dark"] .chat-empty {
  color: var(--text-2);
}
body[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3a3e46;
}

/* ===== 日/夜主题切换按钮 ===== */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg-soft);
  color: var(--text-2);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.theme-btn:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.theme-btn .theme-ico {
  display: block;
}
body[data-theme="dark"] .theme-btn .theme-ico-moon {
  color: #ffd76e;
}
body:not([data-theme="dark"]) .theme-btn .theme-ico-sun {
  color: #f5a623;
}
.theme-btn.theme-auto::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--card);
}
body[data-theme="dark"] .notify-item {
  background: var(--bg-soft);
  border-color: var(--border);
}
body[data-theme="dark"] .notify-item.notify-unread {
  background: var(--soft-blue);
  border-color: #2c3a55;
}
body[data-theme="dark"] .invite-rank-list .rank-item.rank-me {
  background: var(--soft-pink);
}
body[data-theme="dark"] .records-panel {
  background: var(--card);
}
body[data-theme="dark"] .records-close {
  background: var(--bg-soft);
  color: var(--text-2);
}

/* ===== 举报/公示弹窗 ===== */
.report-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.report-tab {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.report-tab.active {
  background: linear-gradient(180deg, #ff8a1a 0%, #f57a14 55%, #f06d00 100%);
  border-color: #f57a14;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 122, 20, 0.35);
}
.report-tab-pane {
  display: none;
}
.report-tab-pane.active {
  display: block;
}
.report-public-tip {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft-gold);
  color: var(--text-gold);
  line-height: 1.5;
}
.report-public-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.public-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
}
.public-reason {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-all;
}
.public-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.public-code {
  display: inline-block;
  margin-left: 4px;
  font-weight: 700;
  color: var(--red-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.public-code-empty {
  color: var(--text-2);
}

/* ===== 被举报福袋项背景提醒 ===== */
.fudai-item-report {
  background: var(--soft-gold);
  border-color: #e9d9a8;
}
body[data-theme="dark"] .fudai-item-report {
  background: #37301d;
  border-color: #4d4226;
}

/* ===== 福袋被举报警告图标 ===== */
.report-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: -7px;
  margin-right: 3px;
}
.report-warn svg {
  display: block;
}
