/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #ff2d55;
  --primary-glow: rgba(255,45,85,0.35);
  --bg:  #0a0a0f;
  --bg2: #14141f;
  --bg3: #1e1e2e;
  --bg4: #252535;
  --text:  #f5f5fa;
  --text2: #8888aa;
  --gold: #ffd700;
  --gold-dark: #ff9500;
  --nav-h: 58px;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  z-index: 1000;
}
.bnav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  letter-spacing: 0.5px;
}
.bnav-item.active { color: var(--text); font-weight: 700; }

/* ===== 页面框架 ===== */
.page {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-h);
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.page.active { display: flex; }

/* ===================================================
   首页：全屏竖滑 Feed
   =================================================== */
#page-home { display: none; flex-direction: column; }
#page-home.active { display: flex; }

/* 顶部悬浮栏 */
.home-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}
.home-topbar > * { pointer-events: auto; }

.home-logo {
  display: flex; align-items: center; gap: 7px;
  font-size: 18px; font-weight: 800; color: #fff;
}
.home-logo svg { fill: var(--primary); }

.home-topbar-right {
  display: flex; align-items: center; gap: 14px;
}
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
}
.icon-btn:active { background: rgba(255,255,255,0.1); }


/* Feed 容器 */
.feed-container {
  position: absolute; inset: 0;
  overflow: hidden; touch-action: pan-y;
}

/* 单 Feed 卡片 */
.feed-item {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden; will-change: transform;
}
.feed-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.7);
  pointer-events: none; /* 不拦截触摸/点击事件 */
}
/* 占位背景（图片加载前） */
.feed-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  pointer-events: none; /* 不拦截事件 */
}

/* 右侧功能栏 */
.feed-sidebar {
  position: absolute; right: 12px; bottom: 150px;
  z-index: 20;
  display: flex; flex-direction: column;
  gap: 22px; align-items: center;
}
.fsb-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  cursor: pointer; user-select: none;
}
.fsb-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.fsb-icon svg {
  width: 30px; height: 30px;
  fill: #fff;
  transition: fill 0.18s;
}
.fsb-btn:active .fsb-icon { transform: scale(0.85); }
/* 点赞激活：心形变红 */
.fsb-btn.liked   .fsb-icon svg { fill: var(--primary); }
/* 收藏激活：星形变黄 */
.fsb-btn.favorited .fsb-icon svg { fill: var(--gold); }
.fsb-label {
  font-size: 11px; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* 底部信息 */
.feed-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 20;
  padding: 0 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.feed-title-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}
.feed-drama-title {
  font-size: 17px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-vip-tag {
  background: linear-gradient(135deg, #f5c518, var(--gold-dark));
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.feed-desc {
  font-size: 13px; color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.5; margin-bottom: 12px;
}

/* 进度条 - 3集分段式 */
.feed-progress-wrap { margin-bottom: 10px; }
.feed-ep-bars {
  display: flex; gap: 4px; align-items: center;
}
.feed-ep-bar-item {
  flex: 1; min-width: 0;
}
.feed-progress-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.3); border-radius: 2px;
  overflow: hidden;
}
.feed-progress-fill {
  height: 100%; width: 0%; background: #fff; border-radius: 2px;
  transition: width 0.3s linear; pointer-events: none;
}
.feed-time-row { display: none; }
/* 兼容旧代码残留（thumb已移除） */
.feed-progress-thumb { display: none; }
.feed-time-row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.5);
  padding: 4px 0 0;
}

/* 集数行 */
.feed-ep-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.feed-ep-cur {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: rgba(255,45,85,0.15); border: 1px solid rgba(255,45,85,0.35);
  border-radius: 10px; padding: 2px 10px;
}
.feed-ep-total-label {
  font-size: 11px; color: rgba(255,255,255,0.45);
}

/* 观看完整短剧按钮 */
.feed-watch-full-btn {
  width: 100%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 9px 0;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  transition: background 0.2s;
}
.feed-watch-full-btn:active { background: rgba(255,255,255,0.22); }

/* 播放/暂停中心图标 */
.feed-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; z-index: 20;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0;
  visibility: hidden;
}
.feed-play-icon.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.feed-play-icon svg { width: 28px; height: 28px; fill: #fff; display: block; }

/* 右侧功能栏 */
.feed-sidebar { z-index: 15; }
.feed-bottom  { z-index: 15; }

/* 自动跳转提示条 */
.feed-auto-jump-tip {
  position: absolute; bottom: 80px; left: 16px; right: 16px;
  z-index: 30;
  background: rgba(20,20,30,0.94);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 12px 16px;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}
.feed-auto-jump-tip.show { display: flex; }
.feed-auto-jump-tip b { color: var(--primary); }
.feed-auto-jump-tip button {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: 5px 12px;
  color: rgba(255,255,255,0.7); font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* 上滑提示 */
.feed-swipe-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75); font-size: 14px;
  animation: swipeHint 2.2s ease-in-out forwards;
  pointer-events: none; z-index: 30;
}
.hint-arrow { font-size: 36px; animation: bounce 0.9s ease-in-out infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes swipeHint {
  0% { opacity: 0; } 15% { opacity: 1; }
  80% { opacity: 1; } 100% { opacity: 0; }
}

/* Feed VIP 锁定 */
.feed-vip-lock {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88); z-index: 40;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  text-align: center; padding: 40px;
}
.feed-vip-lock .lk-icon { font-size: 52px; }
.feed-vip-lock .lk-title { font-size: 20px; font-weight: 800; }
.feed-vip-lock .lk-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.feed-vip-lock .lk-open {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 24px; padding: 13px 36px;
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.feed-vip-lock .lk-back {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px; padding: 9px 28px;
  color: var(--text2); font-size: 14px; cursor: pointer;
}

/* 集数面板 */
#feedEpPanel {
  position: absolute; inset: 0; z-index: 600;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(0,0,0,0.65);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
#feedEpPanel.show { opacity: 1; pointer-events: auto; }
#feedEpPanelInner {
  background: var(--bg2); border-radius: 20px 20px 0 0;
  max-height: 72vh; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#feedEpPanel.show #feedEpPanelInner { transform: translateY(0); }
.fep-head {
  display: flex; align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.fep-title { font-size: 15px; font-weight: 700; flex: 1; }
.fep-total { font-size: 12px; color: var(--text2); margin-right: 10px; }
.fep-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 14px; cursor: pointer;
}
.fep-vip-bar {
  display: none; align-items: center; gap: 6px;
  margin: 8px 16px 0;
  background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.25);
  border-radius: 8px; padding: 7px 12px; font-size: 12px;
  color: rgba(245,197,24,0.9); cursor: pointer; flex-shrink: 0;
}
.fep-vip-bar.show { display: flex; }
.fep-vip-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 6px; padding: 3px 10px;
  color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; margin-left: auto;
}
.fep-grid {
  overflow-y: auto; padding: 12px 14px 16px;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 10px;
}
.fep-grid::-webkit-scrollbar { display: none; }
.fep-ep-btn {
  height: 48px; border-radius: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85);
  cursor: pointer; position: relative;
}
.fep-ep-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.fep-ep-btn.watched { border-color: rgba(255,45,85,0.4); color: rgba(255,45,85,0.85); }
.fep-ep-btn.locked { color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); cursor: default; }

/* ===================================================
   剧场页
   =================================================== */
#page-theater { overflow: hidden; }

.theater-header {
  padding: 12px 16px 10px;
  background: var(--bg);
  flex-shrink: 0;
}
.theater-search-fake {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 10px 16px;
  color: var(--text2); font-size: 14px;
  cursor: pointer; user-select: none;
  width: 100%;
}
.theater-search-fake:active { background: var(--bg4); }
.theater-search-fake svg { flex-shrink: 0; }


.cat-tabs {
  display: flex; overflow-x: auto; gap: 8px;
  padding: 12px 16px 10px;
  scrollbar-width: none; flex-shrink: 0;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 7px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  white-space: nowrap; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--bg2); user-select: none;
  transition: all 0.2s;
}
.cat-tab.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.theater-body {
  flex: 1; overflow-y: auto; padding: 4px 12px 8px;
}
.theater-body::-webkit-scrollbar { display: none; }

/* 剧集网格 - 两列瀑布流 */
.drama-grid {
  column-count: 2;
  column-gap: 10px;
}
.drama-card {
  break-inside: avoid;
  background: var(--bg2); border-radius: 10px;
  overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s; position: relative;
  margin-bottom: 10px;
  display: inline-block; width: 100%;
}
.drama-card:active { transform: scale(0.97); }
.card-cover-wrap {
  position: relative; width: 100%; padding-top: 148%;
}
.card-cover-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.card-cover-wrap .card-cover-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.card-hot-badge {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, #ff4b2b, #ff9000);
  color: #fff; font-size: 10px; padding: 2px 6px;
  border-radius: 4px; font-weight: 700;
}
.card-vip-badge {
  position: absolute; top: 6px; right: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-size: 10px; padding: 2px 6px;
  border-radius: 4px; font-weight: 700;
}
.card-ep-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.7); color: rgba(255,255,255,0.9);
  font-size: 10px; padding: 2px 5px; border-radius: 4px;
}
.card-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.15);
}
.card-progress-bar > div { height: 100%; background: var(--primary); }
.card-resume-badge {
  position: absolute; bottom: 22px; left: 0; right: 0;
  background: rgba(0,0,0,0.65); color: rgba(255,255,255,0.9);
  font-size: 10px; padding: 3px 6px; text-align: center;
}
.card-body { padding: 8px; }
.card-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.card-meta { font-size: 11px; color: var(--text2); display: flex; justify-content: space-between; }
.card-rating { color: var(--gold); font-weight: 600; }

.load-more { text-align: center; padding: 16px 0 24px; }
.load-more button {
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text2); padding: 10px 32px;
  border-radius: 20px; font-size: 14px; cursor: pointer;
}
.load-more button:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 搜索页 ===== */
.search-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.search-page.open {
  transform: translateX(0);
}

/* 顶部搜索栏 */
.search-page-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.search-back-btn {
  background: none; border: none; color: var(--text);
  padding: 6px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center;
}
.search-input-wrap {
  flex: 1;
  display: flex; align-items: center;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 0 12px;
  gap: 6px;
  height: 40px;
}
.search-input-icon { color: var(--text2); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px;
  min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--text2); }
.search-clear-btn {
  background: none; border: none; color: var(--text2);
  font-size: 14px; cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.search-submit-btn {
  background: var(--primary); border: none; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 0 14px; height: 36px; border-radius: 18px;
  cursor: pointer; flex-shrink: 0;
}

/* 默认页（历史+热门） */
.search-default {
  flex: 1; overflow-y: auto;
  padding: 16px 0;
}
.search-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 12px;
}
.search-section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
}
.search-clear-history {
  background: none; border: none; color: var(--text2);
  font-size: 13px; cursor: pointer;
}
.search-history-section { margin-bottom: 24px; }
.search-tag-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px;
}
.search-tag {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px; color: var(--text2);
  cursor: pointer; user-select: none;
  transition: border-color 0.15s, color 0.15s;
}
.search-tag:active { border-color: var(--primary); color: var(--primary); }

/* 热门短剧网格 */
.search-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}
.search-hot-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  position: relative;
}
.search-hot-cover {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.search-hot-cover-ph {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.search-hot-info {
  padding: 8px 10px 10px;
}
.search-hot-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.search-hot-meta {
  font-size: 11px; color: var(--text2);
}
.search-hot-rank {
  position: absolute; top: 6px; left: 6px;
  background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px;
  line-height: 1.4;
}
.search-hot-rank.top3 { background: var(--gold-dark); }

/* 搜索结果 */
.search-result {
  flex: 1; overflow-y: auto;
  padding: 12px 0;
}
.search-result-tip {
  font-size: 13px; color: var(--text2);
  padding: 0 16px 12px;
}
.search-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}
.search-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text2); font-size: 14px;
}
.search-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ===================================================
   我的页
   =================================================== */
#page-mine { overflow: hidden; }
.mine-header { padding: 16px 16px 0; flex-shrink: 0; }
.mine-title { font-size: 22px; font-weight: 800; }

.mine-body { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.mine-body::-webkit-scrollbar { display: none; }

/* 用户卡 */
.mine-user-card {
  margin: 14px 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 20px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
}
.mine-user-card:active { transform: scale(0.98); }
.mine-avatar-wrap { position: relative; flex-shrink: 0; }
.mine-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; border: 2px solid rgba(255,255,255,0.1);
}
.mine-avatar.vip-avatar { border-color: var(--gold); box-shadow: 0 0 16px rgba(255,215,0,0.3); }
.mine-vip-crown {
  position: absolute; top: -6px; right: -4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.mine-user-info { flex: 1; min-width: 0; }
.mine-user-name {
  font-size: 17px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.mine-user-sub { font-size: 12px; color: var(--text2); }
.mine-login-hint { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mine-user-arrow { font-size: 16px; color: var(--text2); }

/* VIP 卡 */
.mine-vip-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #2d1f00, #1a1200);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.mine-vip-card:active { transform: scale(0.98); }
.mine-vip-icon { font-size: 28px; flex-shrink: 0; }
.mine-vip-info { flex: 1; min-width: 0; }
.mine-vip-title { font-size: 15px; font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.mine-vip-desc { font-size: 12px; color: rgba(245,197,24,0.7); }
.mine-vip-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 16px; padding: 7px 14px;
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* 金币卡片 */
.mine-coin-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #0d2040, #0a1628);
  border: 1px solid rgba(33,150,243,0.25);
  border-radius: 14px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mine-coin-left { display: flex; align-items: center; gap: 12px; }
.mine-coin-icon { font-size: 26px; flex-shrink: 0; }
.mine-coin-title { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.mine-coin-balance { font-size: 18px; font-weight: 800; color: #f5c518; }
.mine-coin-recharge-btn {
  background: linear-gradient(135deg, #2196f3, #00bcd4);
  border: none; border-radius: 16px; padding: 7px 18px;
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}


/* 区块标题 */
.mine-section-title {
  font-size: 15px; font-weight: 700;
  padding: 0 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.mine-section-title .clear-btn {
  font-size: 12px; color: var(--text2);
  background: none; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 3px 10px; cursor: pointer;
}

/* 历史列表 */
.history-list { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 12px; position: relative;
}
.history-item:active { background: rgba(255,255,255,0.03); }
.history-cover {
  position: relative; width: 68px; height: 90px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0; cursor: pointer;
  background: var(--bg3);
}
.history-cover img { width: 100%; height: 100%; object-fit: cover; }
.history-cover-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--primary); }
.history-vip-badge {
  position: absolute; top: 4px; right: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-size: 9px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.history-info { flex: 1; min-width: 0; cursor: pointer; }
.history-title {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px;
}
.history-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2); margin-bottom: 8px; }
.history-ep { color: var(--primary); }
.history-bar-wrap { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.history-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; }
.history-del-btn {
  background: none; border: none; color: rgba(255,255,255,0.25);
  font-size: 16px; cursor: pointer; padding: 6px;
}
.history-empty { text-align: center; padding: 32px 20px; color: var(--text2); font-size: 14px; }
.history-empty .empty-icon { font-size: 40px; opacity: 0.4; margin-bottom: 12px; }

/* 菜单项 */
.mine-menu-list { padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.mine-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px; border-radius: 12px; cursor: pointer;
}
.mine-menu-item:active { background: rgba(255,255,255,0.04); }
.mine-menu-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.mine-menu-icon.red   { background: rgba(255,45,85,0.15); }
.mine-menu-icon.blue  { background: rgba(59,130,246,0.15); }
.mine-menu-icon.green { background: rgba(34,197,94,0.15); }
.mine-menu-icon.orange{ background: rgba(249,115,22,0.15); }
.mine-menu-label { flex: 1; font-size: 15px; font-weight: 500; }
.mine-menu-arrow { font-size: 12px; color: var(--text2); }

/* 退出按钮 */
.mine-logout-btn {
  margin: 4px 16px 0;
  width: calc(100% - 32px);
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 13px;
  color: var(--text2); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mine-logout-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===================================================
   弹窗
   =================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 700; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; width: 100%; max-width: 400px;
  max-height: 90vh; overflow-y: auto;
  animation: modalUp 0.3s ease; position: relative;
}
@keyframes modalUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.08); border: none;
  color: var(--text2); width: 30px; height: 30px;
  border-radius: 50%; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 登录弹窗 */
.login-modal { padding: 36px 28px 28px; }
.login-logo { font-size: 20px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 6px; }
.login-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-desc { font-size: 13px; color: var(--text2); text-align: center; margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 16px;
}
.login-field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; }
.login-field input::placeholder { color: var(--text2); }
.login-btn {
  background: linear-gradient(135deg, var(--primary), #ff6b35);
  border: none; border-radius: 12px; padding: 14px;
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.login-tip { text-align: center; font-size: 11px; color: var(--text2); }
.login-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text2); font-size: 12px; margin: 2px 0;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.12);
}
.login-social-btns { display: flex; flex-direction: column; gap: 10px; }
.login-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.18s, opacity 0.18s;
  width: 100%;
}
.login-social-btn:active { opacity: 0.8; }
.login-google-btn { background: #fff; color: #3c4043; }
.login-google-btn:hover { background: #f5f5f5; }
.login-facebook-btn { background: #1877f2; color: #fff; border-color: #1877f2; }
.login-facebook-btn:hover { background: #166fe5; }

/* VIP弹窗 */
.vip-modal { padding: 0 0 24px; overflow: hidden; }
.vip-header {
  background: linear-gradient(135deg, #1a1200, #2d1f00);
  padding: 28px 24px 20px; text-align: center;
}
.vip-header-icon { font-size: 40px; margin-bottom: 8px; }
.vip-header-title { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.vip-header-desc { font-size: 12px; color: rgba(245,197,24,0.7); }
.vip-benefits { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px 0; justify-content: center; }
.vip-benefit-item {
  font-size: 12px; color: var(--text2);
  background: var(--bg3); padding: 4px 10px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.06);
}
.vip-packages { display: flex; gap: 10px; padding: 16px 20px 8px; }
.vip-pkg {
  flex: 1; background: var(--bg3);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 8px;
  text-align: center; cursor: pointer;
  position: relative; min-width: 0;
}
.vip-pkg.selected { border-color: var(--gold); background: rgba(245,197,24,0.08); }
.vip-pkg-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-size: 10px; padding: 2px 8px;
  border-radius: 10px; font-weight: 700; white-space: nowrap;
}
.vip-pkg-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.vip-pkg-price { font-size: 12px; color: var(--gold); font-weight: 700; }
.vip-pkg-price span { font-size: 24px; }
.vip-pkg-original { font-size: 11px; color: var(--text2); text-decoration: line-through; }
.vip-pkg-days { font-size: 11px; color: var(--text2); margin-top: 2px; }
.vip-pay-btn {
  width: calc(100% - 40px); margin: 4px 20px 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 14px; padding: 15px;
  color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.vip-pay-tip { text-align: center; font-size: 11px; color: var(--text2); padding: 0 20px; }

/* 金币充值弹窗 */
.coin-modal { padding: 0 0 24px; overflow: hidden; }
.coin-modal-header {
  background: linear-gradient(135deg, #0a1628, #0d2040);
  padding: 28px 24px 18px; text-align: center; border-radius: 20px 20px 0 0;
}
.coin-modal-icon { font-size: 38px; margin-bottom: 6px; }
.coin-modal-title { font-size: 20px; font-weight: 800; color: #f5c518; margin-bottom: 6px; }
.coin-modal-balance { font-size: 13px; color: rgba(255,255,255,0.5); }
.coin-pkgs { display: flex; gap: 10px; padding: 16px 20px 8px; flex-wrap: wrap; }
.coin-pkg {
  flex: 1; min-width: calc(50% - 5px); max-width: calc(50% - 5px);
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 8px;
  text-align: center; cursor: pointer; position: relative; box-sizing: border-box;
}
.coin-pkg.selected { border-color: #f5c518; background: rgba(245,197,24,0.08); }
.coin-pkg-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f5c518, #e5a800);
  color: #fff; font-size: 10px; padding: 2px 8px;
  border-radius: 10px; font-weight: 700; white-space: nowrap;
}
.coin-pkg-coins { font-size: 22px; font-weight: 800; color: #f5c518; }
.coin-pkg-name { font-size: 12px; color: rgba(255,255,255,0.5); margin: 2px 0 6px; }
.coin-pkg-price { font-size: 14px; color: #fff; font-weight: 700; }
.coin-pay-btn {
  width: calc(100% - 40px); margin: 8px 20px 4px; display: block;
  background: linear-gradient(135deg, #f5c518, #e5a800);
  border: none; border-radius: 24px; padding: 14px;
  color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
}
.coin-pay-tip { text-align: center; font-size: 11px; color: var(--text2); padding: 0 20px; }

/* VIP锁定框 */
.vip-lock-box {
  background: var(--bg2); border: 1px solid rgba(245,197,24,0.2);
  border-radius: 20px; padding: 36px 28px 28px;
  text-align: center; max-width: 320px; width: 100%;
  animation: modalUp 0.3s ease;
}
.vip-lock-icon { font-size: 48px; margin-bottom: 14px; }
.vip-lock-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.vip-lock-desc { font-size: 13px; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }
.vip-lock-btn {
  width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 12px; padding: 14px;
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 10px;
}
.vip-lock-ghost {
  width: 100%; background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 11px;
  color: var(--text2); font-size: 14px; cursor: pointer;
}

/* 语言切换 */
.lang-switch { position: relative; }
.lang-cur {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9);
  cursor: pointer; user-select: none;
}
.lang-menu {
  display: none; position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 999;
  min-width: 110px;
}
.lang-menu.show { display: block; }
.lang-opt { padding: 10px 16px; font-size: 13px; color: var(--text2); cursor: pointer; }
.lang-opt:hover { background: var(--bg3); color: var(--text); }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30,30,50,0.96); color: var(--text);
  padding: 10px 20px; border-radius: 20px;
  font-size: 13px; opacity: 0; transition: all 0.3s;
  z-index: 9999; pointer-events: none;
  white-space: nowrap; border: 1px solid rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 滚动条 */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* 响应式 */
@media (min-width: 600px) {
  .drama-grid { column-count: 3; }
  .fep-grid { grid-template-columns: repeat(6,1fr); }
}

/* ===== 通用抽屉组件（首页 & 播放页共用） ===== */
.drawer-handle {
  width: 40px; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; margin: 12px auto 0;
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px; font-size: 15px; font-weight: 600;
}
.drawer-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 20px; cursor: pointer; padding: 4px;
}
.comment-list {
  flex: 1; overflow-y: auto; padding: 0 16px 8px;
}
.comment-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
  flex-shrink: 0; color: #fff;
}
.comment-body { flex: 1; }
.comment-name { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.comment-text { font-size: 14px; line-height: 1.5; }
.comment-footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.4);
}
.comment-like-btn {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 3px;
}
.comment-like-btn.active { color: var(--primary); }
.comment-del-btn {
  background: none; border: none; color: rgba(255,100,100,0.5);
  cursor: pointer; font-size: 12px;
}
.comment-input-row {
  display: flex; gap: 8px; padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.08); background: #1a1a2e;
}
.comment-input {
  flex: 1; background: rgba(255,255,255,0.08); border: none;
  border-radius: 20px; padding: 8px 14px; color: #fff; font-size: 14px; outline: none;
}
.comment-input::placeholder { color: rgba(255,255,255,0.3); }
.comment-send-btn {
  background: var(--primary); border: none; border-radius: 20px;
  padding: 8px 16px; color: #fff; font-size: 14px; cursor: pointer;
}
.comment-empty {
  text-align: center; color: rgba(255,255,255,0.3);
  padding: 30px 0; font-size: 14px;
}

/* ===== 首页 Feed 评论抽屉 & 收藏列表 ===== */
#feedCommentOverlay, #favListOverlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.5); display: none;
}
#feedCommentOverlay.show, #favListOverlay.show { display: block; }

#feedCommentDrawer, #favListDrawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  max-height: 72vh; display: flex; flex-direction: column;
  background: #14141f; border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform 0.3s ease;
}
#feedCommentDrawer.open, #favListDrawer.open { transform: translateY(0); }
/* 键盘弹起时位移过渡更快，避免跳动 */
#feedCommentDrawer.open { transition: transform 0.15s ease; }

/* 复用 player.html 中的样式（drawer-handle, drawer-header, comment-* 已在全局生效，
   此处仅添加首页特有的收藏列表卡片样式） */
.fav-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.fav-list-item:active { background: rgba(255,255,255,0.04); }
.fav-list-cover {
  width: 54px; height: 76px; border-radius: 6px; object-fit: cover;
  background: #252535; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.fav-list-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.fav-list-info { flex: 1; min-width: 0; }
.fav-list-title {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.fav-list-meta { font-size: 12px; color: rgba(255,255,255,0.4); }
.fav-list-unfav {
  background: none; border: 1px solid rgba(255,100,100,0.4);
  border-radius: 16px; padding: 4px 10px; font-size: 12px;
  color: rgba(255,100,100,0.8); cursor: pointer; flex-shrink: 0;
}
.fav-list-unfav:active { opacity: 0.7; }


/* ===== 我的页三合一Tab ===== */
.mine-main-tab-bar {
  display: flex; align-items: stretch;
  margin: 8px 12px 0;
  background: var(--bg3);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.mine-main-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px;
  background: none; border: none; border-radius: 10px;
  color: rgba(255,255,255,0.45); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.mine-main-tab .mmt-icon { font-size: 18px; line-height: 1; }
.mine-main-tab.active {
  background: var(--bg4); color: var(--text); font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mine-tab-content { min-height: 160px; }
.mine-tab-login-btn {
  margin-top: 12px;
  background: var(--primary); border: none; border-radius: 20px;
  padding: 8px 24px; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer;
}

/* ===== 观看历史 Tab & 网格 ===== */
.history-tab-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 4px;
}
.history-tab-btn {
  background: rgba(255,255,255,0.07); border: none;
  border-radius: 20px; padding: 5px 14px;
  color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.history-tab-btn.active {
  background: var(--primary); color: #fff; font-weight: 600;
}
.history-clear-btn {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.3); font-size: 12px; cursor: pointer;
  padding: 4px 6px;
}
.history-clear-btn:active { color: rgba(255,100,100,0.8); }

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 12px 16px;
}
.hg-item { cursor: pointer; }
.hg-cover {
  position: relative; width: 100%; aspect-ratio: 2/3;
  border-radius: 8px; overflow: hidden;
  background: var(--bg3);
}
.hg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-progress-bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--primary); border-radius: 0 2px 0 0;
}
.hg-badge {
  position: absolute; bottom: 6px; left: 4px;
  font-size: 10px; font-weight: 600; border-radius: 4px;
  padding: 1px 5px; line-height: 1.6;
}
.hg-badge.watching { background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.85); }
.hg-badge.finished { background: rgba(var(--primary-rgb, 138,43,226),0.85); color: #fff; }
.hg-del-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.55); border: none; color: rgba(255,255,255,0.7);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; line-height: 20px; text-align: center;
  cursor: pointer; padding: 0;
}
/* 触屏设备始终显示；PC hover 时才显示 */
@media (hover: hover) {
  .hg-del-btn { display: none; }
  .hg-item:hover .hg-del-btn { display: block; }
}
.hg-title {
  font-size: 12px; font-weight: 500; margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hg-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ===================================================
   联系我们弹窗
   =================================================== */
.contact-modal { padding: 0; overflow: hidden; max-height: 80vh; display: flex; flex-direction: column; }
.modal-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.modal-header-title { font-size: 16px; font-weight: 700; }
.contact-modal-body { overflow-y: auto; padding: 8px 0 16px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; transition: background 0.15s;
}
.contact-item:active { background: rgba(255,255,255,0.05); }
.contact-item-icon { font-size: 28px; flex-shrink: 0; }
.contact-item-info { flex: 1; min-width: 0; }
.contact-item-type { font-size: 14px; font-weight: 600; color: #fff; }
.contact-item-val { font-size: 13px; color: var(--text2); margin-top: 2px; word-break: break-all; }

/* ===================================================
   设置弹窗
   =================================================== */
.settings-modal { padding: 0; overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.settings-modal-body { overflow-y: auto; padding: 16px 20px 24px; }
.settings-section-title { font-size: 12px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.settings-avatar-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer;
}
.settings-avatar-hint { font-size: 13px; color: var(--text2); }
.settings-input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 11px 14px; font-size: 15px; color: #fff;
  box-sizing: border-box; outline: none; margin-top: 4px;
}
.settings-input:focus { border-color: var(--primary); }
.settings-save-btn {
  width: 100%; margin-top: 16px; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.settings-save-btn:active { opacity: 0.85; }
.settings-pwd-btn { background: rgba(255,255,255,0.12); color: #fff; margin-top: 10px; }
.settings-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 20px 0 16px; }

