/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #22222f;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #4fc3f7;
  --accent-glow: rgba(79, 195, 247, 0.3);
  --vip-gold: #f5a623;
  --border: #2a2a3a;
  --nav-height: 48px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
}

.nav-categories {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-cat {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-cat.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-cat.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-btn:active {
  background: var(--bg-card);
}

/* ===== 货币切换器 ===== */
.currency-select {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  margin-left: auto;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.currency-select select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.currency-select select option {
  color: #000;
}

/* ===== 搜索栏 ===== */
.search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-primary);
  padding: 8px 12px;
  padding-top: calc(var(--nav-height) + 8px);
  display: none;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.search-bar.show {
  display: flex;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 8px 14px;
  gap: 8px;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.search-cancel {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== 页面容器 ===== */
.page-container {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===== 轮播横幅 ===== */
.banner-slider {
  position: relative;
  overflow: hidden;
  height: 200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.banner-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.banner-tag {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.banner-dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 3px;
}

/* ===== 视频区块 ===== */
.video-section {
  padding: 16px 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 视频网格 ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.2s;
}

.video-card:active {
  transform: scale(0.97);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
}

.video-card-stats .ep-info {
  font-size: 11px;
}

.video-card-info {
  padding: 8px;
}

.video-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.video-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== 分类页 ===== */
.category-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.category-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* ===== 筛选栏 ===== */
.filter-bar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(79, 195, 247, 0.08);
}

/* ===== 视频详情页 ===== */
#page-detail {
  padding-top: 0;
  background: #000;
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: 8px;
}

.back-btn:active {
  background: var(--bg-card);
}

/* 详情页铺满视口，隐藏全局顶栏 */
body:has(#page-detail) .top-nav {
  display: none;
}

.d-immersive {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.d-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(8px + var(--safe-top, 0px)) 8px 22px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.d-top-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.d-home-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
}

.d-stage {
  position: absolute;
  inset: 0;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.player-placeholder.maximized {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background: #000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.player-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.d-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding-bottom: calc(10px + var(--safe-bottom, 0px));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
}

.d-fs-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.d-info {
  padding: 0 16px 4px;
}

.d-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.d-sub {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.d-sub-text {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.d-sub.expanded .d-sub-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.d-expand {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.d-progress {
  padding: 8px 16px 2px;
}

.d-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 0;
}

.d-ep-pill {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.d-ep-pill .chev {
  flex-shrink: 0;
}

/* ===== 选集底部弹层 ===== */
.d-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.55);
}

.d-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 151;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  max-height: 72dvh;
  padding: 6px 0 calc(14px + var(--safe-bottom, 0px));
  background: #18181a;
  border-radius: 16px 16px 0 0;
}

.d-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 4px auto 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.d-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
}

.d-sheet-title {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.d-sheet-count {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.d-sheet-tabs {
  display: flex;
  gap: 26px;
  padding: 0 16px 10px;
}

.d-sheet-tabs button {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.d-sheet-tabs button.active {
  color: #fff;
  font-weight: 700;
}

.d-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.d-sheet-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.d-sheet-meta {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.d-range-tabs {
  display: flex;
  gap: 26px;
  padding: 4px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.d-range-tabs::-webkit-scrollbar {
  display: none;
}

.d-range-tabs button {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.d-range-tabs button.active {
  color: #fff;
  font-weight: 700;
}

.d-ep-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding-bottom: 6px;
}

.ep-cell {
  position: relative;
  height: 52px;
  border-radius: 8px;
  background: #26262a;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-cell.active {
  background: #3d2712;
  color: #ff8a00;
  font-weight: 700;
}

.ep-cell.locked {
  color: rgba(255, 255, 255, 0.35);
}

.ep-cell-ic {
  position: absolute;
  top: 5px;
  right: 5px;
}

/* ===== 进度条 ===== */
.progress-hit {
  padding: 10px 0;
  margin: -10px 0;
  cursor: pointer;
  touch-action: none;
}

.progress-bar {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.progress-bar.dragging {
  height: 5px;
}

.progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ff8a00;
  border-radius: 2px;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

/* ===== 选集页 ===== */
.episodes-back-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.episodes-back-bar .back-btn {
  position: absolute;
  left: 12px;
}

.nav-home-link {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 6px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
}

.nav-home-link:active {
  background: rgba(255, 255, 255, 0.08);
}

.episodes-title {
  font-size: 18px;
  font-weight: 600;
}

#page-episodes {
  padding-top: var(--nav-height);
  background: var(--bg-secondary);
}

.episode-range-tabs {
  display: flex;
  padding: 0 16px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-secondary);
}

.episode-range-tabs::-webkit-scrollbar {
  display: none;
}

.range-tab {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.range-tab.active {
  color: var(--accent);
  font-weight: 600;
}

.range-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 16px 12px;
}

.ep-grid-btn {
  aspect-ratio: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.ep-grid-btn:active {
  background: var(--bg-card-hover);
}

.ep-grid-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(79, 195, 247, 0.1);
}

.ep-grid-btn.locked {
  position: relative;
  flex-direction: column;
  gap: 2px;
}

.ep-lock-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #f5a623;
  line-height: 1;
}

/* ===== 支付弹窗 ===== */
.pay-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.pay-modal.show {
  display: flex;
}

.pay-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.pay-modal-body {
  position: relative;
  width: 85%;
  max-width: 340px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: payModalIn 0.25s ease;
}

@keyframes payModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.pay-modal-ep {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.pay-modal-lock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.pay-modal-scope {
  display: flex;
  gap: 8px;
  margin: 4px 20px 0;
  padding: 4px;
  background: var(--bg-secondary, #f2f3f5);
  border-radius: 12px;
}

.pay-scope-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pay-scope-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pay-scope-price {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}

.pay-modal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.pay-modal-price-tip {
  font-size: 11px;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.pay-modal-price-right {
  display: flex;
  align-items: center;
}

.pay-modal-price-right .currency-select {
  margin: 0 8px;
  height: 30px;
}

.pay-modal-price-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.pay-modal-price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.pay-modal-methods-title {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 20px 8px;
}

.pay-modal-methods {
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.pay-method-option:active {
  background: var(--bg-card);
}

.pay-method-option.active {
  background: rgba(79, 195, 247, 0.06);
}

.pay-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  position: relative;
}

.pay-method-option.active .pay-method-radio {
  border-color: var(--accent);
}

.pay-method-option.active .pay-method-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pay-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-method-icon.paypal { background: rgba(0, 48, 135, 0.12); }
.pay-method-icon.points { background: rgba(245, 166, 35, 0.12); }

.pay-method-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.pay-method-points {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.pay-modal-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}

.pay-modal-cancel,
.pay-modal-confirm {
  flex: 1;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.pay-modal-cancel {
  background: transparent;
  color: var(--text-secondary);
}

.pay-modal-cancel:active {
  background: var(--bg-card);
}

.pay-modal-confirm {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  border-left: 1px solid var(--border);
}

.pay-modal-confirm:active {
  opacity: 0.85;
}

.pay-modal-confirm:disabled {
  opacity: 0.6;
}

/* ===== 发现页 ===== */
.discover-header {
  padding: 16px 12px 8px;
}

.discover-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 16px;
}

.discover-tag {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.discover-tag.active {
  background: rgba(79, 195, 247, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

#page-discover,
#page-hot,
#page-profile {
  padding-top: var(--nav-height);
}

/* ===== 热播页 ===== */
.hot-header {
  padding: 16px 12px 8px;
}

.hot-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.hot-rank-list {
  padding: 8px 12px;
}

.hot-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hot-rank-num {
  width: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.hot-rank-num.top {
  color: #ff6b6b;
}

.hot-rank-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.hot-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hot-rank-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.hot-rank-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 我的页 ===== */
.profile-header {
  text-align: center;
  padding: 30px 12px 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--text-muted);
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-menu {
  padding: 0 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-primary);
  transition: background 0.2s;
}

.profile-menu-item:active {
  background: var(--bg-card);
}

.profile-menu-item svg {
  color: var(--text-secondary);
}

.profile-menu-arrow {
  margin-left: auto;
  color: var(--text-muted) !important;
}

/* ===== 订单页 ===== */
.order-back-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.order-title {
  font-size: 17px;
  font-weight: 600;
  margin-left: 12px;
}

#page-order {
  padding-top: var(--nav-height);
}

/* 订单列表 */
.order-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.order-item:active {
  background: var(--bg-card-hover);
}

.order-item-left {
  flex: 1;
  min-width: 0;
}

.order-item-product {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.order-item-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.order-item-no {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.order-item-right {
  text-align: right;
  flex-shrink: 0;
}

.order-item-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.order-item-status {
  font-size: 12px;
  font-weight: 500;
}

.order-item-status.done {
  color: #4fc3f7;
}

.order-item-status.refund {
  color: #ff5252;
}

.order-item-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
}

/* 订单详情弹窗 */
.order-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.order-detail-modal.show {
  display: flex;
}

.order-detail-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.order-detail-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  animation: orderSlideUp 0.3s ease;
}

@keyframes orderSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.order-detail-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.order-detail-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.order-detail-close:active {
  background: var(--bg-card-hover);
}

.order-detail-content {
  padding: 20px;
}

.od-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.od-status.done { color: #4fc3f7; }
.od-status.refund { color: #ff5252; }

.od-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.od-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.od-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.od-row span:first-child {
  color: var(--text-muted);
}

.od-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.od-status-text.done { color: #4fc3f7; }
.od-status-text.refund { color: #ff5252; }

/* ===== VIP入口卡片 ===== */
.vip-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2a2215 0%, #1a1a25 100%);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 12px;
}

.vip-entry-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-entry-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-entry-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--vip-gold);
}

.vip-entry-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.vip-entry-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.vip-entry-points {
  color: var(--vip-gold);
  font-weight: 600;
  font-size: 13px;
}

/* ===== VIP页面 ===== */
.vip-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.vip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.vip-top-title {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  margin-right: 32px;
}

.vip-top-spacer {
  width: 32px;
}

#page-vip {
  padding-top: var(--nav-height);
  padding-bottom: 80px;
}

.vip-balance-section {
  padding: 16px 12px 0;
}

.vip-balance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #2a2215 0%, #1e1a12 50%, #1a1a25 100%);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 14px;
}

.vip-balance-star {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vip-balance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vip-balance-label {
  font-size: 12px;
  color: var(--text-muted);
}

.vip-balance-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--vip-gold);
}

.vip-balance-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 166, 35, 0.15);
  color: var(--vip-gold);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.vip-section {
  padding: 20px 12px 0;
}

.vip-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

/* 会员套餐 */
.vip-plans {
  display: flex;
  gap: 10px;
}

.vip-plan {
  flex: 1;
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 8px 14px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.vip-plan.active {
  border-color: var(--vip-gold);
  background: rgba(245, 166, 35, 0.06);
}

.vip-plan.popular {
  border-color: rgba(245, 166, 35, 0.4);
}

.vip-plan-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f5a623, #e8930c);
  border-radius: 0 12px 0 8px;
}

.vip-plan-header {
  margin-bottom: 8px;
}

.vip-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.vip-plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  margin-bottom: 10px;
}

.vip-plan-amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--vip-gold);
  line-height: 1;
}

.vip-plan-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.vip-plan-perks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.vip-plan-perks span {
  font-size: 11px;
  color: var(--text-secondary);
}

.vip-plan-tag {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: inline-block;
}

.vip-plan.active .vip-plan-tag {
  background: rgba(245, 166, 35, 0.15);
  color: var(--vip-gold);
}

/* 积分充值 */
.vip-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vip-points-pkg {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 4px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.vip-points-pkg.active {
  border-color: var(--vip-gold);
  background: rgba(245, 166, 35, 0.06);
}

.vip-points-pkg.hot {
  border-color: rgba(245, 166, 35, 0.4);
}

.vip-points-amount {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.vip-points-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vip-points-price {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--vip-gold);
}

.vip-points-bonus {
  display: block;
  font-size: 10px;
  color: #4fc3f7;
  margin-top: 2px;
}

.vip-points-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f5a623, #e8930c);
  border-radius: 0 12px 0 6px;
}

/* 会员特权 */
.vip-privileges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vip-priv {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vip-priv-icon {
  font-size: 22px;
}

.vip-priv-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 底部操作栏 */
.vip-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.vip-bottom-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.vip-bottom-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

.vip-bottom-amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--vip-gold);
  line-height: 1;
}

.vip-bottom-btn {
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #f5a623, #e8930c);
  transition: transform 0.2s;
}

.vip-bottom-btn:active {
  transform: scale(0.96);
}

.vip-bottom-btn:disabled {
  opacity: 0.6;
}

/* ===== VIP支付弹窗 ===== */
.vip-pay-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.vip-pay-modal.show {
  display: flex;
}

.vip-pay-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.vip-pay-modal-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  animation: orderSlideUp 0.3s ease;
  padding-bottom: calc(16px + var(--safe-bottom));
}

.vip-pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.vip-pay-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.vip-pay-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.vip-pay-modal-close:active {
  background: var(--bg-card-hover);
}

.vip-pay-modal-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.vip-pay-modal-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.vip-pay-modal-product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--vip-gold);
}

.vip-pay-modal-methods-title {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 20px 8px;
}

.vip-pay-modal-methods {
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-pay-modal-confirm {
  display: block;
  width: calc(100% - 40px);
  margin: 8px 20px 0;
  padding: 14px 0;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #f5a623, #e8930c);
  text-align: center;
  transition: transform 0.2s;
}

.vip-pay-modal-confirm:active {
  transform: scale(0.96);
}

.vip-pay-modal-confirm:disabled {
  opacity: 0.6;
}

.vip-pay-modal-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 8px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.vip-pay-modal-phone-label {
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.vip-pay-modal-phone input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
}

.vip-pay-modal-error {
  margin: 4px 20px 0;
  font-size: 13px;
  color: #ff5252;
}

/* ===== 手机号登录弹窗 ===== */
.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
}

.login-modal.show {
  display: flex;
}

.login-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.login-modal-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  animation: orderSlideUp 0.3s ease;
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.login-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.login-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.login-modal-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.login-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}

.login-modal-input:focus {
  border-color: var(--accent, #4fc3f7);
}

.login-modal-error {
  margin-top: 10px;
  font-size: 13px;
  color: #ff5252;
}

.login-modal-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 0;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #4fc3f7, #2196f3);
  cursor: pointer;
  transition: transform 0.2s;
}

.login-modal-submit:active {
  transform: scale(0.97);
}

.login-modal-submit:disabled {
  opacity: 0.6;
}

/* ===== 个人中心登录/退出 ===== */
.profile-logout {
  display: block;
  width: calc(100% - 32px);
  margin: 20px 16px calc(20px + var(--safe-bottom));
  padding: 13px 0;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.profile-logout:active {
  background: var(--bg-card-hover);
}

/* ===== 昵称编辑 ===== */
.profile-name-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
  cursor: pointer;
}

.profile-name-edit-btn:active {
  background: var(--bg-card-hover);
}

.profile-name-edit {
  width: 100%;
  max-width: 300px;
  margin: 12px auto 0;
  text-align: center;
}

.profile-name-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 15px;
  color: var(--text-primary);
  text-align: center;
  outline: none;
}

.profile-name-input:focus {
  border-color: var(--accent, #4fc3f7);
}

.profile-name-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.profile-name-save,
.profile-name-cancel {
  padding: 9px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
}

.profile-name-save {
  border: none;
  color: #000;
  background: linear-gradient(135deg, #4fc3f7, #2196f3);
}

.profile-name-save:disabled {
  opacity: 0.6;
}

.profile-name-cancel {
  background: var(--bg-card);
  color: var(--text-secondary);
}

.profile-name-error {
  margin-top: 10px;
  font-size: 13px;
  color: #ff5252;
}

/* ===== 积分页登录引导 ===== */
.points-empty .points-login-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 22px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #4fc3f7, #2196f3);
  cursor: pointer;
}

/* ===== 隐藏类 ===== */
.hidden {
  display: none !important;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.active {
  animation: fadeIn 0.25s ease;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ===== 积分：支付弹窗余额条 ===== */
.pay-modal-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 12px;
  padding: 10px 14px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pay-modal-balance b {
  color: var(--vip-gold);
  font-size: 16px;
  font-weight: 700;
}
.pay-modal-balance b.low {
  color: #ff5b5b;
}
.pay-modal-recharge {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.pay-modal-error {
  margin: 0 20px 12px;
  padding: 9px 12px;
  background: rgba(255, 91, 91, 0.12);
  border: 1px solid rgba(255, 91, 91, 0.3);
  border-radius: 8px;
  color: #ff7b7b;
  font-size: 13px;
}

/* ===== 积分：个人中心入口 ===== */
.profile-menu-extra {
  margin-left: auto;
  color: var(--vip-gold);
  font-weight: 600;
  font-size: 14px;
}
.profile-menu-extra + .profile-menu-arrow {
  margin-left: 8px;
}

/* ===== 我的积分页 ===== */
.points-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.points-title {
  font-size: 17px;
  font-weight: 600;
  margin-left: 8px;
}
#page-points {
  padding: calc(var(--nav-height) + 12px) 16px 40px;
}
.points-balance-card {
  position: relative;
  background: linear-gradient(135deg, #f5a623, #f7797d);
  border-radius: 16px;
  padding: 24px 22px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
  margin-bottom: 22px;
}
.points-balance-label {
  font-size: 13px;
  opacity: 0.9;
}
.points-balance-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 6px 0 14px;
}
.points-balance-btn {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.points-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.points-log {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}
.points-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.points-log-item:last-child {
  border-bottom: none;
}
.points-log-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  color: var(--vip-gold);
}
.points-log-icon.spend { background: rgba(79, 195, 247, 0.12); color: var(--accent); }
.points-log-icon.adjust { background: rgba(136, 136, 160, 0.15); color: var(--text-secondary); }
.points-log-main { flex: 1; min-width: 0; }
.points-log-title {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.points-log-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.points-log-right { text-align: right; flex-shrink: 0; }
.points-log-change {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.points-log-change.plus { color: #2ecc71; }
.points-log-change.minus { color: #ff7b7b; }
.points-log-balance {
  font-size: 11px;
  color: var(--text-muted);
}
.points-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.points-empty span {
  display: block;
}

/* 支付回跳结果页 */
.pay-result {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
}
.pay-result-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.pay-result-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0 8px;
}
.pay-result-product {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}
.pay-result-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 4px;
}
.pay-result-tip {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0 16px;
}
.pay-result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.pay-result-icon.success { background: #2ecc71; }
.pay-result-icon.fail { background: #ff7b7b; }
.pay-result-spinner {
  width: 44px;
  height: 44px;
  margin: 8px auto 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: payResultSpin 0.8s linear infinite;
}
@keyframes payResultSpin { to { transform: rotate(360deg); } }
.pay-result-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #04121a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pay-result-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Cookie 提示条 ===== */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.cookie-bar-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.cookie-bar-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #04121a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-bar-btn:active {
  opacity: 0.85;
}
