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

:root {
  --bg: #120810;
  --card: rgba(0, 0, 0, 0.55);
  --card-solid: #1a1020;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.55);
  --yellow: #ffd700;
  --pink: #ff2d7a;
  --pink-dark: #d91a62;
  --primary: #ff2d7a;
  --primary-hover: #d91a62;
  --accent: #ffd700;
  --danger: #ff6b6b;
  --radius: 14px;
  --tabbar-h: 62px;
  --topbar-h: 46px;
}

/* ── App shell / background ── */
.app-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--bg-image, url("/static/uploads/home/bg_person.jpg"));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.app-main {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 6px calc(var(--tabbar-h) + 16px);
  min-height: 100vh;
}

/* ── 首页仅底部导航 + 全屏背景 ── */
.nav-only-home {
  background: #0e0a10;
}

.nav-only-home::before {
  background-size: cover;
  background-position: center top;
}

.nav-only-home .bg-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.nav-only-home .app-topbar,
.nav-only-home .drawer-nav,
.nav-only-home .switch-line-btn {
  display: none !important;
}

.nav-only-home .tabbar {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-only-home .app-main.nav-only-main {
  min-height: 100dvh;
  padding: 0;
}

.home-blank {
  background: #0a0a0a;
}

.home-blank::before {
  display: none;
}

.home-blank-main {
  min-height: 100vh;
  padding: 0;
}

.admin-page::before { display: none; }
.admin-page .bg-overlay { display: none; }
.admin-page { background: #f5f6f8; }
.admin-page .app-main { max-width: 960px; padding-bottom: 40px; }

/* 后台白底 + 左侧菜单 */
.admin-layout-body {
  margin: 0;
  background: #f5f6f8;
  color: #222;
  font-family: system-ui, -apple-system, sans-serif;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.admin-sidebar-brand {
  font-weight: 700;
  font-size: 1rem;
  padding: 0 16px 16px;
  border-bottom: 1px solid #eee;
  color: #111;
}
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 4px;
  flex: 1;
}
.admin-sidebar-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
}
.admin-sidebar-nav a:hover { background: #f0f2f5; }
.admin-sidebar-nav a.active {
  background: #ff4d9d;
  color: #fff;
}
.admin-sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}
.admin-sidebar-foot a { color: #666; text-decoration: none; }
.admin-main {
  flex: 1;
  padding: 20px 24px 40px;
  overflow-x: auto;
}
.admin-page-head {
  margin-bottom: 16px;
}
.admin-page-head h1 {
  margin: 0;
  font-size: 1.35rem;
  color: #111;
}
.admin-flashes { margin-bottom: 12px; }
.admin-layout-body .admin-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.admin-layout-body .admin-section h2 {
  color: #111;
  font-size: 1rem;
  margin-bottom: 12px;
}
.admin-layout-body .stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
}
.admin-layout-body .stat-num { color: #ff4d9d; }
.admin-layout-body .stat-label,
.admin-layout-body .muted { color: #888; }
.admin-layout-body .admin-form label { color: #555; }
.admin-layout-body .admin-form input,
.admin-layout-body .admin-form textarea,
.admin-layout-body .admin-form select,
.admin-layout-body .video-edit-form input {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #222;
}
.admin-layout-body .admin-table th {
  background: #f9fafb;
  color: #666;
}
.admin-layout-body .admin-table th,
.admin-layout-body .admin-table td {
  border-color: #e5e7eb;
}
.admin-layout-body .inline-form h3 { color: #ff4d9d; }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-user-edit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-users-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.admin-users-search-label {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.admin-users-search-label input {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
}
.admin-users-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f9;
  border: 1px solid #ffcce3;
  color: #555;
  font-size: 0.88rem;
}
.admin-users-section .admin-table-wrap {
  overflow-x: auto;
}
.admin-users-scroll {
  border: 1px solid #eceff3;
  border-radius: 10px;
}
.admin-users-table {
  min-width: 1100px;
  font-size: 0.82rem;
}
.admin-users-table .sticky-col {
  position: sticky;
  z-index: 3;
  background: #fff;
}
.admin-users-table .sticky-col-1 {
  left: 0;
  min-width: 68px;
}
.admin-users-table .sticky-col-2 {
  left: 68px;
  min-width: 148px;
  box-shadow: 6px 0 10px -8px rgba(0, 0, 0, 0.18);
}
.admin-users-table thead .sticky-col {
  z-index: 4;
  background: #f9fafb;
}
.admin-user-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.admin-login-name {
  font-size: 0.72rem;
}
.admin-users-table .name-cell .admin-user-toggle {
  display: block;
  width: 100%;
  max-width: 108px;
  padding: 5px 10px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.admin-users-table .name-cell .admin-user-toggle.is-open {
  background: #555;
  box-shadow: none;
}
.admin-pay-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe8f3;
  color: #e8247f;
  font-size: 0.68rem;
  font-weight: 700;
}
.admin-user-row.has-payments {
  background: #fffbfd;
}
.admin-user-row.has-withdraw-pending {
  background: #fffaf3;
}
.admin-withdraw-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3d6;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 700;
}
.admin-user-detail-title {
  margin: 14px 0 8px;
  font-size: 0.88rem;
  color: #222;
}
.admin-user-detail-title:first-of-type {
  margin-top: 0;
}
.admin-user-detail-title-pending {
  color: #b45309;
}
.admin-withdraw-pending-row {
  background: #fffaf0;
}
.admin-points-log-table {
  min-width: 520px;
  font-size: 0.8rem;
}
.admin-cert-log-table {
  min-width: 680px;
  font-size: 0.8rem;
}
.admin-cert-log-table .mono {
  font-family: monospace;
  font-size: 0.76rem;
}
.admin-withdraw-table {
  min-width: 720px;
  font-size: 0.8rem;
}
.admin-withdraw-table .points-cell strong {
  color: #ff4d9d;
}
.admin-status-pending {
  color: #b45309;
  font-weight: 700;
}
.admin-status-ok {
  color: #15803d;
  font-weight: 700;
}
.admin-status-fail {
  color: #b91c1c;
  font-weight: 700;
}
.withdraw-action-cell {
  min-width: 130px;
  white-space: nowrap;
}
.admin-inline-form {
  display: inline-block;
  margin-right: 4px;
}
.admin-users-table th {
  white-space: nowrap;
  font-size: 0.78rem;
}
.admin-users-table td {
  vertical-align: middle;
  padding: 10px 8px;
}
.admin-users-table .uid-cell { color: #666; font-family: monospace; }
.admin-users-table .name-cell strong { color: #111; }
.admin-users-table .region-cell { color: #555; min-width: 90px; }
.admin-users-table .points-cell { min-width: 88px; }
.admin-users-table .points-cell .admin-points-input {
  font-weight: 700;
  color: #ff4d9d;
  font-size: 0.95rem;
}
.admin-users-table .num-cell { text-align: center; font-weight: 600; }
.admin-users-table .muted-cell { color: #888; }
.admin-users-table .time-cell { color: #888; font-size: 0.75rem; white-space: nowrap; }
.admin-users-table .action-cell { min-width: 140px; }
.admin-cell-input {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 0.82rem;
}
.admin-num-input { max-width: 56px; text-align: center; }
.admin-points-input { max-width: 80px; }
.admin-users-table .add-points-cell {
  min-width: 108px;
  white-space: nowrap;
}
.admin-add-points-input {
  max-width: 72px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.admin-users-table .add-points-cell .btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  vertical-align: middle;
}
.admin-users-table .action-cell .admin-cell-input {
  max-width: 100px;
  margin-bottom: 4px;
  display: block;
}

.admin-payments-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.admin-payments-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-pay-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #555;
  font-size: 0.82rem;
  text-decoration: none;
}
.admin-pay-tab.active {
  background: #ff4d9d;
  border-color: #ff4d9d;
  color: #fff;
}
.admin-payments-search input {
  min-width: 220px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
.admin-payments-table {
  min-width: 1080px;
  font-size: 0.82rem;
}
.admin-payments-table .account-cell {
  font-family: monospace;
  font-size: 0.78rem;
  word-break: break-all;
}
.admin-payments-table .qr-cell {
  min-width: 88px;
}
.admin-payment-qr {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.admin-users-table .detail-cell {
  min-width: 72px;
  text-align: center;
}
.admin-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d9d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.admin-user-detail-row > td {
  padding: 0 8px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.admin-user-detail {
  padding: 12px 14px;
  border: 2px solid #ffb8d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 157, 0.08);
}
.admin-user-detail-head {
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.admin-user-detail-empty {
  margin: 0;
  font-size: 0.84rem;
}
.admin-user-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.admin-user-pay-card {
  border: 1px solid #eceff3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fcfcfd;
}
.admin-user-pay-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #222;
  font-size: 0.84rem;
}
.admin-user-pay-fields {
  margin: 0;
  display: grid;
  gap: 6px;
}
.admin-user-pay-fields > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 0.8rem;
}
.admin-user-pay-fields dt {
  margin: 0;
  color: #888;
}
.admin-user-pay-fields dd {
  margin: 0;
  color: #222;
  word-break: break-all;
}
.admin-user-pay-fields .mono {
  font-family: monospace;
}
.admin-user-pay-qr-row {
  grid-template-columns: 72px auto !important;
  align-items: start;
}
.admin-ip-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.admin-ip-box a { color: #ff4d9d; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── Top bar ── */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px 6px;
  max-width: 480px;
  margin: 0 auto;
}

.topbar-tag {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.app-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.topbar-pill-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 2px 8px;
  gap: 4px;
}

.topbar-pill {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 4px;
  cursor: pointer;
}

.topbar-pill-sep { color: rgba(255,255,255,0.35); font-size: 0.7rem; }

.topbar-menu {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.drawer-nav {
  display: none;
  position: fixed;
  top: 52px;
  right: 12px;
  z-index: 150;
  background: rgba(20, 10, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  backdrop-filter: blur(12px);
}
.drawer-nav.open { display: block; }
.drawer-nav a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
}
.drawer-nav a:hover { background: rgba(255,45,122,0.2); }

/* ── 社区页三个模块（比例对齐参考图 471px） ── */
.community-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 78px 14px 0;
  min-height: 52vh;
  max-width: 480px;
  margin: 0 auto;
}

.cm-vip-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(48, 22, 52, 0.32), rgba(20, 10, 28, 0.28));
  border: 1px solid rgba(255, 77, 157, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.cm-vip-text {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #f0dcc0;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 0 #7a5630, 0 3px 10px rgba(0, 0, 0, 0.35);
}

.cm-vip-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 64px;
  height: 64px;
}

.cm-vip-badge svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 8px rgba(255, 45, 122, 0.4));
}

.cm-official {
  position: relative;
  padding-top: 20px;
}

.cm-official-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4d9d, #e8247f);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(255, 45, 122, 0.4);
}

.cm-official-tab-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.cm-official-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-height: 200px;
  padding: 32px 6px 16px;
  border-radius: 14px;
  background: rgba(10, 8, 14, 0.52);
  border: 1px solid rgba(255, 77, 157, 0.55);
  box-shadow: 0 0 12px rgba(255, 45, 122, 0.12);
}

.cm-cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 2px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: #e8d4b0;
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s;
}

.cm-cert-item:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.06);
}

.cm-cert-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-cert-icon svg {
  width: 100%;
  height: 100%;
}

.cm-cert-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: #dbc59a;
}

.cm-match-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 4px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  text-decoration: none;
  background:
    repeating-linear-gradient(
      -58deg,
      transparent,
      transparent 3px,
      rgba(255, 77, 157, 0.06) 3px,
      rgba(255, 77, 157, 0.06) 5px
    ),
    linear-gradient(90deg, rgba(8, 6, 12, 0.82) 0%, rgba(8, 6, 12, 0.82) 42%, rgba(120, 30, 80, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s;
}

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

.cm-match-icon {
  width: 20px;
  height: 20px;
  color: #b86bff;
  flex: 0 0 auto;
}

.cm-match-icon svg {
  width: 100%;
  height: 100%;
}

.cm-match-text {
  font-size: 1rem;
  font-weight: 800;
  color: #f0c830;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ── Telegram 跳转（仿系统确认） ── */
body.tg-jump-open {
  overflow: hidden;
}

body.tg-jump-open .app-topbar,
body.tg-jump-open .tabbar,
body.tg-jump-open .line-switch-wrap {
  display: none !important;
}

.tg-jump-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: #1c1c1e;
}

.tg-jump-overlay[hidden] {
  display: none !important;
}

.tg-jump-page {
  width: 100%;
  max-width: 420px;
  margin-bottom: 28px;
  text-align: center;
  color: #fff;
  animation: tg-jump-fade-in 0.25s ease;
}

.tg-jump-avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #34c759;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
}

.tg-jump-name {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.tg-jump-meta {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #8e8e93;
}

.tg-jump-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d1d1d6;
}

.tg-jump-dialog {
  position: relative;
  width: calc(100% - 36px);
  max-width: 360px;
  padding: 20px 18px 16px;
  border-radius: 14px;
  background: #2c2c2e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: tg-jump-scale-in 0.28s ease;
}

.tg-jump-dialog-text {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #fff;
  text-align: center;
}

.tg-jump-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.tg-jump-cancel,
.tg-jump-open {
  border: none;
  background: transparent;
  color: #0a84ff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

@keyframes tg-jump-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tg-jump-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ── 车辆认证弹窗 ── */
body.cert-modal-open {
  overflow: hidden;
}

body.cert-modal-open .community-page-wrap {
  display: none;
}

.cert-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 4, 12, 0.28);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.cert-overlay[hidden] {
  display: none !important;
}

.cert-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 58px 10px calc(88px + env(safe-area-inset-bottom, 0px));
}

.cert-header {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cert-header-back,
.cert-header-record,
.cert-close-floating,
.cert-eye-btn,
.cert-history-head button {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cert-header-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-header-back svg {
  width: 22px;
  height: 22px;
}

.cert-header-title {
  text-align: center;
  color: #fff;
  line-height: 1.2;
}

.cert-header-label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}

.cert-header-no {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cert-header-record {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  white-space: nowrap;
}

.cert-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  margin: 8px 0 14px;
}

.cert-hex {
  position: absolute;
  width: 118px;
  height: 132px;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background:
    linear-gradient(180deg, rgba(255, 77, 157, 0.1), rgba(120, 30, 90, 0.16)),
    rgba(12, 8, 18, 0.42);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 120, 190, 0.22),
    0 0 14px rgba(255, 45, 122, 0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cert-hex:active {
  transform: scale(0.96);
}

.cert-hex.certified {
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 22px rgba(255, 77, 157, 0.55);
}

.cert-hex-tl { top: 4%; left: 2%; }
.cert-hex-tr { top: 4%; right: 2%; }
.cert-hex-bl { bottom: 8%; left: 2%; }
.cert-hex-br { bottom: 8%; right: 2%; }

.cert-hex-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.cert-hex-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.cert-hex-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.cert-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  color: #fff;
  background: radial-gradient(circle at 50% 35%, rgba(255, 120, 190, 0.28), rgba(255, 45, 122, 0.12) 55%, rgba(20, 8, 18, 0.32) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 140, 200, 0.24),
    0 0 20px rgba(255, 45, 122, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cert-center:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.cert-center.certified {
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 30px rgba(255, 77, 157, 0.6);
}

.cert-center-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.cert-center-title small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.cert-center-sub {
  font-size: 0.62rem;
  opacity: 0.9;
  text-align: center;
}

.cert-center-timer {
  margin-top: 4px;
  min-width: 92px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a0a14;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.cert-footer {
  margin-top: auto;
  padding: 0 4px;
}

.cert-stats-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.cert-stats {
  margin: 0;
  font-size: 0.68rem;
  color: #f2e6ff;
  line-height: 1.35;
}

.cert-stats strong {
  color: #ff8ec8;
}

.cert-points-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 77, 157, 0.65);
  background: rgba(10, 6, 14, 0.75);
  color: #fff;
  font-size: 0.82rem;
}

.cert-points-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cert-balance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: #fff;
  white-space: nowrap;
}

.cert-eye-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.cert-eye-btn svg {
  width: 16px;
  height: 16px;
}

.cert-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 6, 12, 0.72);
  border: 1px solid rgba(255, 77, 157, 0.45);
}

.cert-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
}

.cert-ticker-icon {
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.cert-ticker-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.cert-ticker {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: cert-ticker 18s linear infinite;
  font-size: 0.72rem;
  color: #f6d9ff;
}

.cert-ticker span {
  flex: 0 0 auto;
}

@keyframes cert-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cert-submit-btn {
  flex: 0 0 auto;
  min-width: 72px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff5aa8, #e8247f);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 45, 122, 0.4);
}

.cert-submit-btn:active {
  transform: scale(0.97);
}

.cert-close-floating {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  opacity: 0.85;
  padding: 4px 8px;
}

.cert-toast {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) translateY(12px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 10, 24, 0.92);
  border: 1px solid rgba(255, 77, 157, 0.5);
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cert-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cert-history-panel {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-history-panel[hidden] {
  display: none !important;
}

.cert-history-card {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(18, 10, 22, 0.95);
  border: 1px solid rgba(255, 77, 157, 0.45);
}

.cert-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cert-history-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.cert-history-list {
  margin: 0;
  padding: 10px 14px 14px;
  list-style: none;
  max-height: 52vh;
  overflow-y: auto;
}

.cert-history-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #f2e0ff;
}

.cert-history-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Home zones ── */
.home-zones {
  padding: 4px 4px 0;
}

.zone-panel {
  margin-bottom: 6px;
  line-height: 0;
}

.zone-panel:last-child {
  margin-bottom: 0;
}

.zone-panel-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.zone-panel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.pool-banner {
  margin: 4px 0 14px;
  background: var(--card);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.pool-banner-inner { padding: 14px 16px; text-align: center; }
.pool-banner-label { font-size: 0.8rem; color: var(--muted); }
.pool-banner-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.pool-banner-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.zone-block {
  margin-bottom: 10px;
  background: rgba(20, 20, 20, 0.28);
  border-radius: 16px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ── 首页/社区：底图清晰，遮罩尽量轻 ── */
.home-page .bg-overlay,
.community-page .bg-overlay,
.info-page .bg-overlay {
  background: rgba(0, 0, 0, 0.06);
}

.home-page::before,
.community-page::before,
.info-page::before {
  filter: none;
}

.home-page .zone-block {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .zone-block:nth-child(2) {
  background: rgba(0, 0, 0, 0.08);
}

.home-page .zone-block:nth-child(3) {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-page .tabbar {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.home-page .line-switch-wrap {
  bottom: calc(var(--tabbar-h) - 6px);
}

/* ── 约炮反馈页 ── */
.feedback-page-wrap {
  padding: 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-top-panel,
.feedback-scroll-panel {
  background: rgba(35, 35, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.feedback-top-panel {
  padding: 10px 8px 8px;
}

.feedback-scroll-panel {
  padding: 10px 8px 8px;
}

.feedback-notice {
  text-align: center;
  margin-bottom: 8px;
}

.feedback-notice p {
  color: #ffd700;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.feedback-banners {
  --av-card-ratio: 228 / 259;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.feedback-banners.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feedback-banner-card {
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(0, 0, 0, 0.9);
  aspect-ratio: var(--av-card-ratio);
  line-height: 0;
}

.feedback-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.feedback-scroll-viewport {
  height: 46vh;
  max-height: 400px;
  min-height: 280px;
  overflow: hidden;
  padding: 0 2px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.feedback-scroll-track {
  animation: feedback-scroll 100s linear infinite;
}

.feedback-scroll-track:hover {
  animation-play-state: paused;
}

.feedback-item {
  margin: 0;
  padding: 0;
}

.feedback-author {
  color: #ff4d9e;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.feedback-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  line-height: 1.3;
  margin: 0;
}

@keyframes feedback-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feedback-page .tab-item.active {
  color: var(--pink);
}

.zone-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.6);
}

.zone-grid {
  --av-card-ratio: 228 / 259;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

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

.zone-grid-img {
  gap: 4px;
}

.zone-card-pure {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: var(--av-card-ratio);
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zone-card-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--av-card-ratio);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.zone-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px;
  font-size: 0.9rem;
}

.zone-card {
  text-decoration: none;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.15s;
}
.zone-card:active { transform: scale(0.97); }

.zone-card-img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-color: rgba(0,0,0,0.4);
}

.zone-card-game { font-size: 2.2rem; background: linear-gradient(135deg, #2a1030, #1a2040); }
.zone-card-video { font-size: 2rem; background: linear-gradient(135deg, #301020, #201030); color: var(--pink); }
.zone-card-service { font-size: 2rem; background: linear-gradient(135deg, #2a1830, #182030); }

.zone-card-title {
  font-size: 0.72rem;
  padding: 6px 4px 2px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zone-card-sub {
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0 4px 8px;
}
.zone-card-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}
.zone-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--pink);
  font-size: 0.8rem;
  text-decoration: none;
}

/* ── Switch line + tabbar ── */
.line-switch-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) - 8px);
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 110;
  display: flex;
  justify-content: flex-end;
  padding-right: 12px;
  pointer-events: none;
}

.switch-line-btn {
  display: block;
  pointer-events: auto;
  background: linear-gradient(135deg, #ff3d8a, #e91e63);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 45, 122, 0.65);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.line-switch-panel {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  min-width: 132px;
  pointer-events: auto;
  background: rgba(18, 10, 16, 0.92);
  border: 1px solid rgba(255, 45, 122, 0.45);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.line-switch-panel[hidden] {
  display: none;
}

.line-switch-item {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

.line-switch-item:hover,
.line-switch-item:active {
  background: rgba(255, 45, 122, 0.25);
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--tabbar-h);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: rgba(15, 8, 14, 0.88);
  border-top: 2px solid var(--pink);
  backdrop-filter: blur(16px);
  padding: 0 2px 8px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.58rem;
  padding-bottom: 2px;
  min-width: 0;
}
.tab-item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tab-item.active { color: #fff; }
.tab-icon { font-size: 1.15rem; line-height: 1; }
.tab-icon-svg {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-icon-svg svg { width: 22px; height: 22px; }

.tab-center { position: relative; flex: 1.1; }
.tab-center-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b9d, #ff2d7a 55%, #c9185a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  box-shadow: 0 0 18px rgba(255,45,122,0.65), 0 4px 12px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,255,255,0.25);
  position: relative;
}
.tab-heart-text { z-index: 1; letter-spacing: 1px; }
.tab-wing {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.85);
  opacity: 0.9;
}
.tab-wing-l { left: 2px; }
.tab-wing-r { right: 2px; }
.tab-center.active .tab-center-btn {
  box-shadow: 0 0 24px rgba(255,45,122,0.85), 0 4px 14px rgba(0,0,0,0.4);
}

/* ── Inner pages ── */
.page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
  padding-top: 4px;
}
.muted { color: var(--muted); font-size: 0.85rem; }

.glass-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: rgba(255,255,255,0.12); color: var(--text); }
.btn-outline { background: transparent; color: var(--pink); border: 1px solid var(--pink); }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }

.tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: rgba(255,215,0,0.15);
  color: var(--yellow);
  border-radius: 4px;
  font-size: 0.75rem;
}

.flashes-wrap { position: relative; z-index: 200; padding: 8px 12px; max-width: 480px; margin: 0 auto; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 0.85rem; }
.flash-ok { background: rgba(0,212,170,0.2); color: #00d4aa; }
.flash-error { background: rgba(255,107,107,0.2); color: var(--danger); }

/* Games */
.player-bar { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.player-bar label { font-size: 0.85rem; color: var(--muted); }
.player-bar input {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 20px;
  width: 180px;
}
.game-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}
.game-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.game-icon { font-size: 1.8rem; }
.game-ui { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.game-ui input[type=number] {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  width: 120px;
}
.dice {
  width: 64px; height: 64px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--pink);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}
.wheel-ui { flex-direction: column; align-items: flex-start; }
.wheel-wrap { position: relative; width: 140px; height: 140px; }
.wheel-pointer {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  color: var(--yellow); font-size: 1.2rem; z-index: 2;
}
.wheel {
  width: 140px; height: 140px; border-radius: 50%;
  background: conic-gradient(
    #ff2d7a 0deg 45deg, #ffd700 45deg 90deg,
    #ff6b6b 90deg 135deg, #a855f7 135deg 180deg,
    #4f8cff 180deg 225deg, #00d4aa 225deg 270deg,
    #ff2d7a 270deg 315deg, #ffd700 315deg 360deg
  );
  border: 4px solid rgba(255,255,255,0.15);
  transition: transform 2.5s cubic-bezier(0.15, 0.85, 0.2, 1);
}
.dice.shake { animation: shake 0.5s; }
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}
.game-result { margin-top: 10px; min-height: 1.4em; font-size: 0.9rem; }
.game-result.win { color: var(--yellow); font-weight: 600; }
.game-result.lose { color: var(--muted); }

.scratch-ui { flex-direction: column; align-items: flex-start; }
.scratch-card {
  position: relative; width: 260px; height: 120px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, #2a1a4a, #1a2a4a);
}
.scratch-result {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
#scratchCanvas { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }

/* Videos */
.video-layout { display: flex; flex-direction: column; gap: 12px; }

/* ── 会员视频（站内视频列表） ── */
.member-videos-page .app-topbar.av-topbar {
  position: relative;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.member-videos-page .topbar-page-title {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

.av-page {
  padding: 0;
  overflow: visible;
}

.member-videos-page .app-main {
  overflow: visible;
}

.av-cat-nav {
  display: block;
  width: calc(100% + 12px);
  max-width: 100vw;
  margin: 0 -6px 8px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 90;
}

.av-cat-nav::-webkit-scrollbar {
  display: none;
}

.av-cat-nav-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: max-content;
  width: max-content;
}

.av-cat-item {
  flex: 0 0 auto;
  padding: 11px 14px 9px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}

.av-cat-item.active {
  border-bottom-color: #fff;
}

/* 参考图卡片约 228×259 */
.av-grid {
  --av-card-ratio: 228 / 259;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0 4px;
}

.av-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.av-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.av-card {
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.av-thumb-wrap {
  position: relative;
  aspect-ratio: var(--av-card-ratio);
  background: #111;
  overflow: hidden;
  border-radius: 6px;
}

.av-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.av-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 4px 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.av-card-name {
  flex: 1;
  min-width: 0;
  font-size: 0.62rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-card-views {
  flex: 0 0 auto;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.av-grid.cols-3 .av-card-name,
.av-grid.cols-4 .av-card-name {
  font-size: 0.54rem;
}

.av-grid.cols-3 .av-card-views,
.av-grid.cols-4 .av-card-views {
  font-size: 0.5rem;
}

.av-load-more {
  margin: 10px 4px 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.av-error {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.av-play-page {
  padding: 0 4px 12px;
}

.av-play-title {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 10px 4px 4px;
  font-weight: 700;
  color: #fff;
}

.av-play-views {
  margin: 0 4px 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.av-player-wrap {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.av-player {
  width: 100%;
  display: block;
  max-height: 42vh;
  background: #000;
}

.av-related {
  margin-top: 4px;
}

.av-related-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 10px;
}

.av-related-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #b06cff, #7b4dff);
  flex: 0 0 auto;
}

.av-related-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.av-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.av-related-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.av-related-thumb-wrap {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 228 / 259;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.av-related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.av-related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
}

.av-related-name {
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.av-related-views {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}
.video-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.video-item {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.video-item:hover, .video-item.active { border-color: var(--pink); }
.video-item-title { display: block; font-size: 0.88rem; }
.video-item-meta { font-size: 0.72rem; color: var(--muted); }
.video-thumb { width: 100%; height: 48px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }

.video-player-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(10px);
}
.video-player-wrap h2 { font-size: 0.95rem; margin-bottom: 10px; color: var(--yellow); }
#mainPlayer { width: 100%; border-radius: 8px; background: #000; max-height: 220px; }
.video-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 40px 0; color: var(--muted); }

/* Admin */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; flex-wrap: wrap; gap: 10px; }
.admin-header-actions { display: flex; gap: 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.stat-card {
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.stat-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--yellow); }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.admin-section {
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.admin-section h2 { margin-bottom: 14px; font-size: 1.1rem; color: var(--yellow); }
.admin-form label { display: block; margin-bottom: 10px; font-size: 0.9rem; color: var(--muted); }
.admin-form input, .admin-form textarea, .admin-form select {
  display: block; width: 100%; margin-top: 4px;
  background: #0f1117; border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 8px;
}
.admin-form .check { display: flex; align-items: center; gap: 8px; }
.admin-form .check input { width: auto; margin: 0; }
.inline-form { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.inline-form h3 { margin-bottom: 10px; color: var(--pink); font-size: 0.9rem; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.85rem; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.admin-table th { background: #0f1117; color: var(--muted); }
.video-edit-row { padding: 10px !important; }
.video-edit-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.video-edit-form input[type=text], .video-edit-form input:not([type=checkbox]):not([type=number]) {
  flex: 1; min-width: 120px; background: #0f1117; border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; border-radius: 6px;
}
.check-inline { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.video-meta { font-size: 0.75rem; color: var(--muted); margin-left: auto; }

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f6f8;
  position: relative;
  z-index: 0;
}
.login-body::before {
  display: none !important;
}
.login-box {
  position: relative;
  z-index: 10;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.login-box h1 { margin-bottom: 20px; text-align: center; color: #111; }
.login-box label { display: block; margin-bottom: 12px; font-size: 0.9rem; color: #666; }
.login-box input {
  display: block; width: 100%; margin-top: 4px;
  background: #fff; border: 1px solid #d1d5db;
  color: #222; padding: 10px 12px; border-radius: 8px;
}
.login-box .btn { width: 100%; margin-top: 8px; }
.back-link { display: block; text-align: center; margin-top: 16px; color: #888; font-size: 0.85rem; text-decoration: none; }
.login-required { color: #ff4d9d; font-size: 0.78rem; }
.login-hint { margin: -6px 0 12px; font-size: 0.78rem; color: #888; text-align: center; }
.login-hint-top { margin: 0 0 14px; }

@media (min-width: 481px) {
  .app-body::before, .bg-overlay { max-width: 480px; left: 50%; transform: translateX(-50%); width: 100%; }
  .bg-overlay { transform: translateX(-50%); }
}

/* ── 落地页（手机宽度正好，背景微拉边） ── */
.landing-page {
  background: #000;
  overflow-x: hidden;
}

.landing-page::before {
  display: none !important;
}

.landing-page .app-main {
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.lp-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

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

.lp-bg-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 105%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateX(-50%);
}

.lp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.32) 65%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.lp-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.lp-step {
  display: none;
  position: absolute;
  left: 28px;
  right: 28px;
  text-align: center;
  color: #fff;
}

.lp-step.is-active {
  display: block;
  animation: lp-fade-in 0.35s ease;
}

/* 问题1：中下部，对齐参考图 */
.lp-step[data-step="1"] {
  top: 49%;
}

/* 问题2：通知在上，问答在底部 */
.lp-step[data-step="2"] {
  top: auto;
  bottom: calc(12.5vh + env(safe-area-inset-bottom, 0px));
}

.lp-step[data-step="2"] .lp-notices {
  position: fixed;
  top: calc(6.5% + env(safe-area-inset-top, 0px));
  left: 28px;
  right: 28px;
  width: auto;
  z-index: 4;
  margin-bottom: 0;
}

/* 恭喜页：略靠上 */
.lp-step[data-step="3"] {
  top: 43.5%;
}

/* 注册页：中下部表单 */
.lp-step[data-step="4"] {
  top: auto;
  bottom: calc(8vh + env(safe-area-inset-bottom, 0px));
  text-align: left;
}

.lp-step[data-step="4"] .lp-q-title,
.lp-step[data-step="4"] .lp-q-text {
  text-align: center;
}

/* 登录页：与注册步同款背景与表单 */
.lp-login-step {
  top: auto;
  bottom: calc(8vh + env(safe-area-inset-bottom, 0px));
  text-align: left;
}

.lp-login-step .lp-q-title,
.lp-login-step .lp-q-text {
  text-align: center;
}

.lp-register-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-field span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 4px;
}

.lp-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lp-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.lp-register-form .lp-btn-cta {
  margin-top: 6px;
}

.lp-login-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  text-decoration: none;
}

.lp-flashes {
  margin-bottom: 10px;
}

.lp-flash {
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  text-align: center;
}

.lp-flash-error {
  background: rgba(180, 30, 50, 0.75);
  color: #fff;
}

.lp-flash-ok {
  background: rgba(30, 140, 70, 0.75);
  color: #fff;
}

.lp-q-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 5.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.lp-q-text {
  margin: 0 0 20px;
  font-size: clamp(0.92rem, 3.7vw, 1.02rem);
  line-height: 1.48;
  padding: 0 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.lp-q-text-wide {
  font-size: clamp(0.88rem, 3.5vw, 0.98rem);
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 0 2px;
}

.lp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(48px, 12.8vw, 54px);
  margin: 0 auto 10px;
  border: none;
  border-radius: 999px;
  font-size: clamp(1rem, 4.2vw, 1.1rem);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}

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

.lp-btn-yes,
.lp-btn-cta {
  color: #fff;
  background: linear-gradient(180deg, #ff4d9d 0%, #e91e7a 52%, #d81665 100%);
  box-shadow: 0 5px 18px rgba(233, 30, 122, 0.42);
}

.lp-btn-no {
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lp-btn-no.lp-shake {
  animation: lp-shake 0.4s ease;
}

.lp-notices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  text-align: left;
}

.lp-notice {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(120, 70, 200, 0.75), rgba(70, 120, 220, 0.55));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lp-notice-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff8ec8, #ff2d7a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lp-notice-avatar-b {
  background: linear-gradient(135deg, #8ec8ff, #4d7bff);
}

.lp-notice-body strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.lp-notice-body p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.95;
}

.lp-notice-body small {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  opacity: 0.75;
}

.lp-notice-reply {
  font-size: 0.72rem;
  color: #dce8ff;
  white-space: nowrap;
  padding-top: 4px;
}

.lp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.lp-dots span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.lp-dots span.is-on {
  background: rgba(255, 255, 255, 0.72);
}

.lp-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(3.8vh + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(0.6rem, 2.6vw, 0.68rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

@keyframes lp-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ── 信息页（个人中心） ── */
.info-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 78px 14px 0;
  max-width: 480px;
  margin: 0 auto;
}

.info-profile-card,
.info-stats-card,
.info-menu-grid {
  border-radius: 16px;
  background: rgba(18, 16, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-profile-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
}

.info-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #8ec8ff, #4d7bff 45%, #2a1848 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.info-username {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.info-userid {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.info-activity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
  color: #e8d4b0;
}

.info-activity-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5aa8, #e8247f);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.info-activity-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #dbc59a;
}

.info-activity-row svg {
  width: 16px;
  height: 16px;
  color: #e8c878;
}

.info-stats-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 16px 10px;
}

.info-stat-item {
  text-align: center;
}

.info-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.info-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.info-stat-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
}

.info-notice-bar {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0c830;
  background: rgba(18, 16, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 14px 8px 12px;
}

.info-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 12px;
  border: none;
  background: transparent;
  color: #f2ead8;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}

.info-menu-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.info-menu-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.info-menu-icon svg {
  width: 28px;
  height: 28px;
}

.topbar-settings {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(232, 200, 120, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #e8c878;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.topbar-settings svg {
  width: 20px;
  height: 20px;
}

body.info-sub-open .app-topbar,
body.info-sub-open .tabbar,
body.info-sub-open .line-switch-wrap,
body.info-sub-open #infoMainView {
  visibility: hidden;
  pointer-events: none;
}

.info-subview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
  overflow: hidden;
}

.info-subview[hidden] {
  display: none !important;
}

.info-sub-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 10px 12px 8px;
  position: relative;
  z-index: 2;
}

.info-sub-back {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #ff4d9d;
  padding: 4px;
  cursor: pointer;
}

.info-sub-back svg {
  width: 28px;
  height: 28px;
}

.info-sub-title {
  margin: 6px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.info-sub-head-right .topbar-pill-group {
  background: rgba(0, 0, 0, 0.42);
}

.info-sub-tabs,
.info-pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 12px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.info-sub-tabs {
  background: #ff4d9d;
}

.info-sub-tab,
.info-pay-tab {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 6px;
  cursor: pointer;
  position: relative;
}

.info-sub-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.info-pay-tabs {
  background: rgba(12, 10, 14, 0.55);
  border: 1px solid rgba(255, 77, 157, 0.35);
  border-radius: 4px;
}

.info-pay-tab {
  color: #ff4d9d;
}

.info-pay-tab.active {
  background: #ff4d9d;
  color: #fff;
}

.info-sub-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 90px;
  position: relative;
  z-index: 1;
}

.info-sub-body-pad {
  padding-top: 14px;
}

.info-sub-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  padding: 24px 0;
}

.info-sub-foot {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  padding: 0 12px 90px;
  margin: -70px 0 0;
  position: relative;
  z-index: 2;
}

.info-point-card {
  margin-bottom: 10px;
  padding: 12px 14px 10px;
  border-radius: 4px;
  background: rgba(12, 10, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-point-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.info-point-left {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.info-point-left em {
  font-style: normal;
  color: #ff4d9d;
  margin-right: 6px;
}

.info-point-action {
  color: #ff4d9d;
  font-size: 0.88rem;
  font-weight: 600;
}

.info-point-time {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.info-cert-card {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-cert-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: #fff;
}

.info-cert-row-sub {
  margin-top: 8px;
  grid-template-columns: 1fr auto;
}

.info-cert-order {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  white-space: nowrap;
}

.info-cert-points {
  color: #ff4d9d;
  font-weight: 700;
}

.info-cert-status {
  color: #ff3b3b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.info-redeem-card {
  padding: 14px;
  border-radius: 6px;
  background: rgba(12, 10, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-redeem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.info-redeem-status {
  color: #3ddc84;
  font-size: 0.88rem;
  font-weight: 700;
}

.info-redeem-amount {
  color: #ff3b3b;
  font-size: 0.88rem;
  font-weight: 700;
}

.info-redeem-line {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.info-pay-form,
.info-exchange-form {
  margin: 14px 12px 0;
  padding: 0;
  background: rgba(12, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.info-pay-row {
  display: grid;
  grid-template-columns: 88px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-pay-form [hidden],
.info-pay-row[hidden],
.info-pay-qr-block[hidden],
.info-qr-preview-wrap[hidden],
.info-pay-qr-placeholder[hidden],
.info-pay-qr-change[hidden] {
  display: none !important;
}

.info-pay-qr-block {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-pay-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.info-pay-qr-hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.info-pay-qr-upload {
  display: block;
  position: relative;
  min-height: 148px;
  padding: 16px 12px;
  border: 1.5px dashed rgba(255, 77, 157, 0.55);
  border-radius: 12px;
  background: rgba(255, 77, 157, 0.08);
  cursor: pointer;
  text-align: center;
}

.info-pay-qr-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.info-pay-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 116px;
}

.info-pay-qr-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4d9d, #e8247f);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
}

.info-pay-qr-change {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
}

.info-pay-row-picker {
  cursor: pointer;
}

.info-pay-row-picker input {
  cursor: pointer;
  pointer-events: none;
}

.info-pay-row-qr {
  cursor: pointer;
}

.info-qr-text {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-qr-preview-wrap {
  margin: 0 auto 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.info-qr-preview-wrap img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.info-pay-row input {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
}

.info-pay-row input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.info-pay-label {
  color: #ff4d9d;
  font-size: 0.82rem;
  white-space: nowrap;
}

.info-pay-icon {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  text-align: right;
}

.info-pay-submit {
  display: block;
  width: calc(100% - 24px);
  margin: 18px auto 20px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d9d, #ff7eb8);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.info-exchange-form {
  padding: 16px 14px 8px;
}

.info-exchange-balance {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.info-exchange-balance strong {
  color: #fff;
  font-size: 1.1rem;
}

.info-exchange-field {
  display: block;
  margin-bottom: 14px;
}

.info-exchange-field span {
  display: block;
  margin-bottom: 8px;
  color: #ff4d9d;
  font-size: 0.82rem;
}

.info-exchange-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.info-exchange-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-exchange-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.info-exchange-method strong {
  color: #ff4d9d;
  font-size: 0.86rem;
}

.info-exchange-method span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.4;
}

.info-exchange-method.active {
  border-color: rgba(255, 77, 157, 0.75);
  background: rgba(255, 77, 157, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 77, 157, 0.18);
}

.info-exchange-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.45;
}

.info-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 10, 24, 0.92);
  border: 1px solid rgba(255, 77, 157, 0.5);
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1400;
}

.info-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 兑换银行选择器 */
.bank-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bank-picker-overlay[hidden] {
  display: none !important;
}

.bank-picker-sheet {
  width: 100%;
  max-width: 480px;
  background: #f5f5f5;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  animation: bank-sheet-up 0.25s ease;
}

@keyframes bank-sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bank-picker-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.bank-picker-cancel,
.bank-picker-confirm {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 4px 2px;
  cursor: pointer;
}

.bank-picker-cancel {
  color: #666;
}

.bank-picker-confirm {
  color: #ff4d9d;
  font-weight: 600;
}

.bank-picker-wheel-wrap {
  position: relative;
  height: 220px;
  background: #fff;
  overflow: hidden;
}

.bank-picker-wheel-wrap::before,
.bank-picker-wheel-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 88px;
  z-index: 2;
  pointer-events: none;
}

.bank-picker-wheel-wrap::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4));
}

.bank-picker-wheel-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4));
}

.bank-picker-highlight {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1;
  pointer-events: none;
}

.bank-picker-list {
  margin: 0;
  padding: 88px 0;
  list-style: none;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 0;
}

.bank-picker-list li {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 0.92rem;
  color: #999;
  scroll-snap-align: center;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, font-weight 0.15s;
}

.bank-picker-list li.active {
  color: #222;
  font-weight: 700;
  font-size: 1rem;
}
