/* ============================================
   oowall Web 客户端 - 全局样式
   深色系沉浸式壁纸展示
   ============================================ */

/* --- 字体：使用系统字体栈，无外部依赖 --- */

/* --- 变量 --- */
:root {
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --bg-overlay: rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(0, 0, 0, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --skeleton-base: rgba(255, 255, 255, 0.06);
  --skeleton-shine: rgba(255, 255, 255, 0.12);
  --transition-fast: 200ms ease;
  --transition-normal: 400ms ease;
  --transition-slow: 800ms ease;
  --crossfade-duration: 1200ms;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  background: #0a0a0f;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   壁纸容器 - 双层 crossfade
   ============================================ */
.wallpaper-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0a0f;
}

.wallpaper-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity var(--crossfade-duration) ease;
  will-change: opacity;
}

.wallpaper-layer.active {
  opacity: 1;
}

.wallpaper-layer.inactive {
  opacity: 0;
}

/* 壁纸图片 */
.wallpaper-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ============================================
   加载 spinner（切换壁纸时显示）
   ============================================ */
.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.loading-spinner.visible {
  opacity: 1;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   骨架屏
   ============================================ */
.skeleton-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 600ms ease;
  pointer-events: all;
}

.skeleton-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 骨架屏背景模拟壁纸 */
.skeleton-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #12121a 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

.skeleton-bg::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--skeleton-shine) 50%,
    transparent 100%
  );
  animation: skeleton-sweep 2s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 骨架屏 - 底部控制条模拟 */
.skeleton-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  z-index: 1;
}

.skeleton-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--skeleton-base);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-dot:nth-child(2) { animation-delay: 0.15s; }
.skeleton-dot:nth-child(3) { animation-delay: 0.3s; }
.skeleton-dot:nth-child(4) { animation-delay: 0.45s; }
.skeleton-dot:nth-child(5) { animation-delay: 0.6s; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* 骨架屏 - 新闻浮层模拟 */
.skeleton-news {
  position: relative;
  margin: 0 24px 16px auto;
  width: 340px;
  padding: 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  z-index: 1;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--skeleton-base);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 85%; margin-top: 10px; }
.skeleton-line.long { width: 100%; margin-top: 10px; }

/* 骨架屏 - 顶部导航模拟 */
.skeleton-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1;
}

.skeleton-logo {
  width: 80px;
  height: 24px;
  border-radius: 6px;
  background: var(--skeleton-base);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* ============================================
   顶部导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-normal), background 0.3s ease;
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.navbar:hover {
  background: rgba(10, 10, 15, 0.65);
}

/* 导航栏行 */
.navbar-row {
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 44px;
}

/* 第二层频道行 */
.navbar-row-channels {
  height: 36px;
  padding: 0 28px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.navbar-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: 24px;
  user-select: none;
  flex-shrink: 0;
}

.navbar-logo span {
  color: var(--accent);
}

/* logo 包裹容器（含 hover 提示） */
.navbar-logo-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-right: 24px;
}

.navbar-logo-wrapper .navbar-logo {
  margin-right: 0;
}

/* logo hover 提示气泡 */
.navbar-logo-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}

.navbar-logo-wrapper:hover .navbar-logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-tooltip-link {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.logo-tooltip-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 第一层：组标签 */
.navbar-groups {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.navbar-groups::-webkit-scrollbar {
  display: none;
}

.group-tab {
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.group-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.group-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* 第二层：频道标签 */
.navbar-channels {
  display: flex;
  gap: 4px;
  flex: 1;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.navbar-channels::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.channel-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.channel-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* 频道标签 wrapper（含下拉菜单） */
.channel-tab-wrapper {
  position: relative;
  flex-shrink: 0;
}

/* 设计师下拉菜单（fixed 定位，不受 overflow 裁切） */
.channel-dropdown {
  position: fixed;
  padding: 4px;
  border-radius: 10px;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
}

.channel-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.channel-dropdown-item {
  display: block;
  width: 100%;
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.channel-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.channel-dropdown-item.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
}

/* 导航栏右侧操作区 */
.navbar-actions {
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 12px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.mode-toggle.active {
  background: var(--accent);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.mode-icon {
  font-size: 14px;
  line-height: 1;
}

.mode-label {
  font-size: 12px;
}

/* --- 手机模式壁纸显示 --- */
body.mobile-mode .wallpaper-layer img {
  object-fit: contain;
  background: #0a0a0f;
}

/* ============================================
   底部控制条
   ============================================ */
.controls-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.timeline-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: none;
  outline: none;
  padding: 0;
}

.timeline-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-dot.active {
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
  transform: scale(1.6);
}

/* 当前圆点脉冲动画 */
.timeline-dot.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: dot-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 圆点加载中状态 */
.timeline-dot.loading {
  background: var(--accent);
  animation: dot-loading-blink 0.8s ease infinite alternate;
}

@keyframes dot-loading-blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ============================================
   新闻浮层（参考桌面 news widget）
   ============================================ */
.news-float {
  position: fixed;
  bottom: 64px;
  right: 28px;
  z-index: 55;
  width: 420px;
  max-width: calc(100vw - 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.news-float.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* --- 展开内容区（hover 时滑出） --- */
.news-content-area {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s ease, 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  position: relative;
}

.news-content-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.news-float:hover .news-content-area {
  max-height: 380px;
  opacity: 1;
  transform: translateY(0) scale(1);
  padding-top: 20px;
  padding-bottom: 20px;
  pointer-events: auto;
  box-shadow: 0 15px 50px -5px rgba(0, 0, 0, 0.9), 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.news-content-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
  overflow-y: auto;
  max-height: 200px;
  margin: 0 0 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.news-content-text::-webkit-scrollbar {
  width: 4px;
}

.news-content-text::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* 图片解读框 */
.news-image-desc {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
  max-height: 80px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.news-image-desc::-webkit-scrollbar {
  width: 4px;
}

.news-image-desc::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.news-image-desc p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.news-image-desc.hidden {
  display: none;
}

/* --- 标题栏（始终可见，无背景） --- */
.news-title-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 8px;
  width: 100%;
  overflow: hidden;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

/* 图片标题（第一行，小号） */
.news-image-title {
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.news-image-title:empty {
  display: none;
}

/* 新闻标题（第二行，大号粗体） */
.news-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: right;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.news-title:hover {
  color: #fcd34d;
}

.news-title .news-favicon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
  object-fit: cover;
}

/* 第三行：设计师 + 时间 */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.designer-buttons {
  display: flex;
  gap: 4px;
}

.designer-btn {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
  border: none;
  outline: none;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.designer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.designer-btn.active {
  background: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
  cursor: default;
}

.designer-btn.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.news-time-label {
  font-size: 11px;
  font-family: 'Inter', monospace;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
}

/* 新闻正文中的"查看原文"链接 */
.news-read-more {
  display: inline-block;
  margin-top: 8px;
  color: rgba(252, 211, 77, 0.8);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.news-read-more:hover {
  color: #fcd34d;
}

/* ============================================
   壁纸信息条（左下角）- 已禁用
   ============================================ */
.wallpaper-info {
  display: none;
}

/* ============================================
   加载进度条（顶部极细线）
   ============================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  transition: width 300ms ease;
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0;
  width: 0;
}

.progress-bar.active {
  opacity: 1;
}

/* ============================================
   错误提示
   ============================================ */
.error-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

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

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .news-float {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 64px;
  }

  .navbar-row {
    padding: 0 16px;
  }

  .controls-bar {
    padding: 12px 16px 16px;
  }

  .timeline-dots {
    gap: 10px;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
  }

  .wallpaper-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .news-float {
    border-radius: 12px;
  }

  .news-title {
    font-size: 14px;
  }

  .channel-tab {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* ============================================
   VIP 频道标签徽章
   ============================================ */
.channel-tab .vip-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.channel-tab.vip-locked {
  opacity: 0.65;
}

/* 导航栏 VIP 按钮 */
.vip-status-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  margin-left: 8px;
}

.vip-status-btn:hover {
  background: rgba(245, 158, 11, 0.2);
}

.vip-status-btn.logged-in {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

/* ============================================
   VIP 登录弹窗
   ============================================ */
.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease;
}

.vip-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.vip-modal-card {
  position: relative;
  width: 380px;
  max-width: 90vw;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vip-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.vip-modal-close:hover {
  color: #fff;
}

.vip-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.vip-badge-large {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  letter-spacing: 1px;
}

.vip-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.vip-info-link {
  margin-left: auto;
  font-size: 13px;
  color: rgba(245, 158, 11, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.vip-info-link:hover {
  color: #f59e0b;
}

.vip-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vip-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vip-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.vip-field input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.vip-field input:focus {
  border-color: #f59e0b;
}

.vip-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.vip-error {
  font-size: 13px;
  color: #ef4444;
  margin: 0;
  min-height: 18px;
}

.vip-submit {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.vip-submit:hover {
  opacity: 0.9;
}

.vip-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vip-logout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: transparent;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vip-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.vip-logout-btn.hidden {
  display: none;
}
