/* ============================================================
   共享样式表 style.css
   各页面 CSS 按 body.page-<name> 命名空间隔离，避免冲突
   ============================================================ */

/* 公共重置（所有页面通用） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ====== dashboard 页面 ====== */
body.page-dashboard {
    --bg-primary: #1a1b2e;
    --bg-secondary: #232538;
    --bg-card: #2a2d44;
    --bg-card-hover: #323652;
    --text-primary: #f0f0fa;
    --text-secondary: #b0b3cc;
    --text-tertiary: #7a7d99;
    --accent-blue: #4f8cff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --border-color: rgba(255,255,255,0.1);
    --shadow-lg: 0 20px 60px rgba(10,10,30,0.4);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
  }

  body.page-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    background-image: radial-gradient(ellipse at top, rgba(168,85,247,0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom, rgba(79,140,255,0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
  }
a,a:hover {
  color: var(--text-tertiary);
  text-decoration: none;
}
.pull-to-refresh {
  position: fixed; top: 0; left: 0; right: 0;
  height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-secondary, #b0b3cc); font-size: 13px;
  overflow: hidden; z-index: 1000;
  transition: height 0.2s ease; pointer-events: none;
}
.pull-to-refresh .ptr-icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.pull-to-refresh.ready .ptr-icon { transform: rotate(180deg); }
.pull-to-refresh.loading .ptr-icon { animation: ptr-spin 0.8s linear infinite; }
@keyframes ptr-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* 顶部导航 */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 27, 46, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
  }

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

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

  .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
  }

  .header-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
  }

  .header-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
  }

  .header-right {
    display: flex; align-items: center; gap: 10px;
    position: relative;
  }

  .login-btn {
    padding: 7px 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .login-btn:active { transform: scale(0.96); opacity: 0.9; }

/* ===== 自动刷新开关 ===== */
  .auto-refresh {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px 4px 10px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .auto-refresh.on {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
  }
  .ar-label {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
  }
  .auto-refresh.on .ar-label { color: var(--accent-green); }
  .ar-switch {
    position: relative;
    width: 30px;
    height: 17px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .ar-switch.on { background: var(--accent-green); }
  .ar-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
  }
  .ar-switch.on .ar-knob { transform: translateX(13px); }
  @media (max-width: 480px) {
    .auto-refresh { padding: 4px 8px; }
    .ar-label { display: none; }
  }

.menu-tip {
  margin-left: auto;          /* 推到菜单项最右侧 */
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.menu-tip[hidden] { display: none; }
  .user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .user-profile:hover { border-color: var(--accent-purple); }
  .user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
  }
  .user-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
  }
  .user-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    white-space: nowrap;
  }

  .icon-btn {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .icon-btn:active { transform: scale(0.95); background: var(--bg-card-hover); }
  .icon-btn svg { width: 18px; height: 18px; stroke: var(--text-secondary); }

  /* 下拉菜单 */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
  }
  .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
  }
  .dropdown-item svg { width: 16px; height: 16px; stroke: var(--text-tertiary); flex-shrink: 0; }
  .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
  }

  /* 主要内容区 */
  .main-content {
    padding: 76px 16px 140px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* 账号概览卡片 */
  .overview-section { margin-bottom: 24px; }

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

  .section-title {
    font-size: 16px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
  }

  .section-title::before {
    content: '';
    width: 3px; height: 16px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
  }

  .section-action {
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex; align-items: center; gap: 4px;
  }
/* ===== 登录后头像 + 账号面板 ===== */
/* 外层容器只保留头像，去掉原本的胶囊样式 */
.user-profile {
  position: relative;
  padding: 0;
  gap: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.user-profile:hover { border-color: transparent; }

.avatar-trigger {
  display: flex;
  align-items: center;
  padding: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.avatar-trigger:hover,
.avatar-trigger[aria-expanded="true"] {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.18);
}
.avatar-trigger .user-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

/* 账号面板 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  cursor: default;
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ud-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}
.ud-avatar-lg {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  font-size: 16px;
}
.ud-head-text { min-width: 0; }
.ud-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.ud-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.ud-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--border-color);
}

.ud-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.ud-label-count {
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  font-size: 10px;
}

.ud-accounts {
  max-height: 216px;
  overflow-y: auto;
}

.ud-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ud-account:hover { background: var(--bg-card-hover); }
.ud-account.active {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
}
.ud-acc-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.ud-acc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.ud-acc-name {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ud-acc-desc {
  margin-top: 1px;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ud-check {
  width: 16px;
  height: 16px;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.ud-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ud-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.ud-action svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-tertiary);
  flex-shrink: 0;
}
.ud-action-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--text-tertiary);
}
.ud-danger { color: var(--accent-red); }
.ud-danger svg { stroke: var(--accent-red); }
.ud-danger:hover { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }

@media (max-width: 480px) {
  /* 窄屏时把面板右边缘对齐到屏幕右侧，避免被右侧菜单按钮挤出可视区 */
  .user-dropdown {
    right: -62px;
    width: min(272px, calc(100vw - 32px));
  }
}
  /* 平台卡片滚动容器 */
  .platform-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .platform-cards::-webkit-scrollbar { display: none; }

  .platform-card {
    flex: 0 0 calc(75vw - 32px);
    min-width: 240px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .platform-card:active { transform: scale(0.98); }

  .platform-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--platform-color, var(--accent-blue));
  }

  .platform-douyin { --platform-color: #fe2c55; }
  .platform-kuaishou { --platform-color: #ff4906; }
  .platform-weixin { --platform-color: #07c160; }
  .platform-xiaohongshu { --platform-color: #ff2442; }
  .platform-bilibili { --platform-color: #00aeec; }

  .platform-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
  }

  .platform-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .platform-icon svg { width: 100%; height: 100%; object-fit: contain; }
  .platform-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .platform-info { flex: 1; min-width: 0; }
  .platform-account-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .platform-name-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .platform-name-sub .platform-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--platform-color);
    display: inline-block;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-item { text-align: left; }
  .stat-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    background: linear-gradient(135deg, #f0f0fa, #b0b3cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
  }
  .stat-trend {
    font-size: 10px;
    display: flex; align-items: center; gap: 2px;
    line-height: 1;
    height: 14px;
  }
  .trend-up { color: var(--accent-green); }
  .trend-down { color: var(--accent-red); }

  /* 视频列表区域 */
  .video-section { margin-bottom: 40px; }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
  }
  .video-card:active {
    transform: scale(0.97);
    border-color: rgba(168, 85, 247, 0.4);
  }

  .video-cover {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 竖屏比例 */
    background: var(--bg-secondary);
    overflow: hidden;
  }

  .video-cover-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  /* 封面底部渐变遮罩 */
  .video-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    pointer-events: none;
  }

  .video-duration {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 2;
  }

  .video-platform-badge {
    position: absolute;
    top: 8px; left: 8px;
    display: flex; gap: 4px;
    z-index: 2;
  }

  .badge {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .badge svg { width: 100%; height: 100%; object-fit: contain; }
  .badge img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }

  /* 悬浮在封面底部的信息 */
  .video-overlay-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 10px 8px;
    z-index: 2;
  }

  .video-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }

  .video-meta {
    display: flex; align-items: center; justify-content: space-between;
  }

  .video-stats {
    display: flex; align-items: center; gap: 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.85);
  }

  .video-stat {
    display: flex; align-items: center; gap: 2px;
  }
  .video-stat svg { width: 11px; height: 11px; stroke: rgba(255,255,255,0.9); }

  .video-date {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
  }

  /* 加载更多 */
  .load-more {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: 13px;
  }

  .loading-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
  }

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

  /* 底部导航 */
  .bottom-nav {
    display: none;
  }

  .nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 10px;
    transition: color 0.2s ease;
  }
  .nav-item.active { color: var(--accent-purple); }
  .nav-item svg { width: 22px; height: 22px; }

  /* 页尾版权 */
  .footer {
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  right: 0;

	  margin: 0 auto;
	  padding: 20px 16px 24px;       /* 缩减内边距，减少占用空间 */
	  background: rgba(26, 27, 46, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
	  z-index: 50;
	  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);  /* 顶部阴影分隔 */
	  border-top: 1px solid var(--border-color);

    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer-links a:hover { color: var(--accent-purple); }

  .footer-copyright {
    line-height: 1.6;
  }

  .footer-copyright .icp {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
  }

  /* iframe弹窗 */
  .iframe-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
  }
  .iframe-modal.active {
    opacity: 1;
    visibility: visible;
  }
  .iframe-modal-content {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #2a2d44;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
  }
  .iframe-modal.active .iframe-modal-content {
    transform: scale(1) translateY(0);
  }
  .iframe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(135deg, #2a2d44 0%, #3a2d5e 100%);
  }
  .iframe-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }
  .iframe-modal-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
  }
  .iframe-modal-close:hover {
    background: rgba(255,255,255,0.15);
  }
  .iframe-modal-close svg { width: 18px; height: 18px; }
  .iframe-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }
  .iframe-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
    background: #fff;
    display: block;
  }

  /* Tab 切换 */
  .tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
  }

  .tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  .tab.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  /* 筛选按钮 */
  .filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .filter-chip.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-color: transparent;
    color: #fff;
  }

  /* 骨架屏 */
  .skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
  }

  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* 桌面端适配 */
  @media (min-width: 768px) {
    .main-content { padding: 88px 24px 150px; }
    .header-inner { padding: 14px 24px; }
    .footer { padding: 30px 24px 40px; }

    .video-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .platform-card {
      flex: 1;
      min-width: 0;
      max-width: none;
    }

    .platform-cards {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      overflow: visible;
    }

    .bottom-nav { display: none; }
    .video-section { margin-bottom: 40px; }
    .footer { padding-bottom: 40px; }

    .iframe-modal { padding: 40px; }
    .iframe-modal-content { border-radius: 16px; }

    .stats-grid { gap: 12px; }
    .stat-value { font-size: 20px; }

    .video-title { font-size: 13px; }
  }

  @media (min-width: 1024px) {
    .video-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* 渐入动画 */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .video-card {
    animation: fadeInUp 0.4s ease forwards;
  }

/* ====== detail 页面 ====== */
body.page-detail {
    --bg-primary: #1a1b2e;
    --bg-secondary: #232538;
    --bg-card: #2a2d44;
    --bg-card-hover: #323652;
    --text-primary: #f0f0fa;
    --text-secondary: #b0b3cc;
    --text-tertiary: #7a7d99;
    --accent-blue: #4f8cff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --border-color: rgba(255,255,255,0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
  }

  body.page-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
  }

  /* 详情内容 */
  .detail-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
  }

  .detail-header {
    display: flex;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .detail-cover {
    width: 80px; height: 106px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
  }
  .detail-cover div { width: 100%; height: 100%; }

  .detail-header-info { flex: 1; min-width: 0; }
  .detail-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .detail-date {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
  }
  .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    border-radius: 4px;
  }

  .detail-section { margin-bottom: 20px; }
  .detail-section:last-child { margin-bottom: 0; }

  .detail-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
  }

  /* 汇总数据 */
  body.page-detail .summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  body.page-detail .summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
  }
  body.page-detail .summary-card .s-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a0a0b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
  }
  body.page-detail .summary-card .s-label {
    font-size: 12px;
    color: var(--text-tertiary);
  }
  body.page-detail .summary-card .s-trend {
    font-size: 11px;
    margin-top: 6px;
    display: flex; align-items: center; gap: 3px;
  }
  body.page-detail .trend-up { color: var(--accent-green); }
  body.page-detail .trend-down { color: var(--accent-red); }

  /* 趋势图 */
  .trend-chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
  }
  .trend-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .trend-chart-title { font-size: 13px; font-weight: 600; }
  .trend-chart-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: 6px;
  }
  .trend-chart-tab {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
  }
  .trend-chart-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
  }
  .trend-chart-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .trend-chart-svg { width: 100%; height: 100%; display: block; }
  .trend-legend { display: flex; flex-wrap: wrap; gap: 10px; }
  .trend-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-secondary);
  }
  .trend-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.trend-legend-dot--dash {
    width: 12px;
    height: 0;
    border-radius: 0;
    background: none !important;
    border-top: 2px dashed var(--accent-purple);
  }
 /* 15 天曲线悬停提示 */
  .trend-chart-tip {
    position: absolute;
    top: 8px;
    left: 0;
    min-width: 104px;
    padding: 8px 10px;
    background: rgba(32, 34, 52, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font-size: 11px;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 3;
  }
  .trend-chart-tip .trend-tip-day {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
  }
  .trend-chart-tip .trend-tip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 17px;
  }
  .trend-chart-tip .trend-tip-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .trend-chart-tip .trend-tip-name { flex: 1; white-space: nowrap; }
  .trend-chart-tip .trend-tip-val { color: var(--text-primary); font-weight: 600; }
.trend-chart-tip .trend-tip-tag {
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.18);
    color: #c4b5fd;
    font-size: 9px;
    font-weight: 500;
    vertical-align: 1px;
  }

  /* 用户信息 */
  .user-info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .user-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
  }
  .user-info-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }
  .user-info-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 6px;
  }
  .user-info-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
  }
  .user-info-time {
    font-size: 11px;
    color: var(--text-tertiary);
  }

  /* 平台详情 */
  .platform-detail-list { display: flex; flex-direction: column; gap: 10px; }
  .platform-detail-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .platform-detail-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 56px;
  }
  .platform-detail-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .platform-detail-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
  .platform-detail-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
  }
  .platform-detail-main { flex: 1; min-width: 0; padding-top: 4px; }
  .platform-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .p-stat { text-align: center; }
  .p-stat-value { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
  .p-stat-label { font-size: 10px; color: var(--text-tertiary); }
  .watch-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  .watch-btn:hover { background: rgba(168, 85, 247, 0.25); }
  .watch-btn:active { transform: scale(0.96); }
  .watch-btn svg { width: 12px; height: 12px; stroke: currentColor; }

  /* 空状态 */
  .empty-state {
    text-align: center;
    color: var(--text-tertiary);
    padding: 60px 20px;
    font-size: 14px;
  }
/* 返回页首悬浮按钮 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 160px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--bg-card-hover);
}
.back-to-top:active {
  transform: scale(0.92);
}
/* ====== login 页面 ====== */
body.page-login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1b2e;
    background-image: radial-gradient(ellipse at top left, rgba(168,85,247,0.15) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom right, rgba(79,140,255,0.12) 0%, transparent 50%);
  }
  .login-card {
    width: 400px;
    max-width: calc(100vw - 32px);
    background: #2a2d44;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(10,10,30,0.4);
  }
  .login-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }
  .login-logo svg {
    width: 30px;
    height: 30px;
    color: #fff;
  }
  .login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #f0f0fa;
    margin-bottom: 6px;
  }
  .login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #7a7d99;
    margin-bottom: 32px;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #b0b3cc;
    margin-bottom: 8px;
  }
  .input-wrap {
    position: relative;
  }
  .input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7a7d99;
    z-index: 1;
  }
  .form-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: #232538;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f0f0fa;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
  }
  .form-input::placeholder { color: #555870; }
  .form-input:focus {
    border-color: #a855f7;
    background: #2a2d44;
  }
  .captcha-row {
    display: flex;
    gap: 12px;
  }
  .captcha-row .input-wrap { flex: 1; }
  .captcha-img {
    width: 120px;
    height: 46px;
    border-radius: 12px;
    background: #232538;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
  }
  .captcha-img canvas { border-radius: 10px; }
  .captcha-refresh {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b3cc;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .captcha-img:hover .captcha-refresh { opacity: 1; }
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
  }
  .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b0b3cc;
    cursor: pointer;
  }
  .remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #a855f7;
    cursor: pointer;
  }
  .forgot-link {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .forgot-link:hover { color: #c084fc; }
  .login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .login-btn:hover { opacity: 0.92; }
  .login-btn:active { transform: scale(0.98); }
  .login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #7a7d99;
  }
  .login-footer a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
  }
  .login-footer a:hover { color: #c084fc; }
  .error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
  }
  .error-msg.show { display: block; }
  .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #555870;
    font-size: 12px;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
  }
  .third-login {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  .third-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #232538;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .third-btn:hover {
    border-color: #a855f7;
    background: #2a2d44;
  }
  .third-btn svg { width: 20px; height: 20px; }

/* ====== change-password 页面 ====== */
body.page-change-password {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1b2e;
    background-image: radial-gradient(ellipse at top left, rgba(168,85,247,0.15) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom right, rgba(79,140,255,0.12) 0%, transparent 50%);
  }
  .card {
    width: 440px;
    max-width: calc(100vw - 32px);
    background: #2a2d44;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(10,10,30,0.4);
  }
  .header {
    text-align: center;
    margin-bottom: 32px;
  }
  .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
  }
  .icon-wrap svg { width: 28px; height: 28px; color: #fff; }
  .title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0fa;
    margin-bottom: 6px;
  }
  .subtitle {
    font-size: 13px;
    color: #7a7d99;
  }

  /* 密码强度指示器 */
  .strength-meter {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #3a3d52;
    transition: background 0.3s ease;
  }
  .strength-bar.active.weak { background: #ef4444; }
  .strength-bar.active.medium { background: #f97316; }
  .strength-bar.active.strong { background: #22c55e; }
  .strength-text {
    font-size: 12px;
    color: #7a7d99;
    margin-bottom: 16px;
  }
  .strength-text.weak { color: #ef4444; }
  .strength-text.medium { color: #f97316; }
  .strength-text.strong { color: #22c55e; }

  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #b0b3cc;
    margin-bottom: 8px;
  }
  .input-wrap {
    position: relative;
  }
  .input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7a7d99;
    z-index: 1;
  }
  .form-input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    background: #232538;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f0f0fa;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
  }
  .form-input::placeholder { color: #555870; }
  .form-input:focus {
    border-color: #a855f7;
    background: #2a2d44;
  }
  .toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7a7d99;
    cursor: pointer;
    z-index: 1;
  }
  .toggle-eye:hover { color: #b0b3cc; }

  .error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
  }
  .error-msg.show { display: block; }

  .success-msg {
    color: #22c55e;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px;
    display: none;
  }
  .success-msg.show { display: block; }

  .tips {
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
  }
  .tips-title {
    font-size: 12px;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .tips-list {
    font-size: 12px;
    color: #7a7d99;
    line-height: 1.8;
    padding-left: 16px;
  }

  .btn-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
  }
  .btn {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
  }
  .btn-primary:hover { opacity: 0.92; }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
  .btn-secondary {
    background: #3a3d52;
    color: #b0b3cc;
  }
  .btn-secondary:hover { background: #454865; }

  /* 规则验证图标 */
  .rule-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
  }
  .rule-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555870;
    transition: color 0.2s ease;
  }
  .rule-item svg { width: 14px; height: 14px; }
  .rule-item.valid { color: #22c55e; }
  .rule-item.invalid { color: #555870; }

/* ====== merge 页面 ====== */
  body.page-merge {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f8fa;
    color: #1a1a2e;
    padding: 24px;
  }
  .page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
  }

  /* 数据列表 */
  .data-list-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .list-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
  }
  .list-header-count {
    font-size: 13px;
    color: #9ca3af;
  }
  .list-header-count b { color: #a855f7; }

  .data-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
  }
  .data-item:hover {
    border-color: #e9d5ff;
    background: #faf5ff;
  }
  .data-cover {
    width: 72px; height: 96px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    position: relative;
  }
  .data-cover .platform-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px; height: 20px;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
  }
  .data-cover .platform-tag img {
    width: 100%; height: 100%;
    border-radius: 3px;
  }
  .data-info { flex: 1; min-width: 0; }
  .data-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
  }
  .data-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
    flex-wrap: wrap;
  }
  .data-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .data-meta-item img {
    width: 16px; height: 16px;
    border-radius: 4px;
  }
  .btn-merge {
    padding: 8px 18px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }
  .btn-merge:hover { opacity: 0.9; }

 /* 过滤按钮（合并左侧，蓝灰色区分） */
  .btn-filter {
    background: linear-gradient(135deg, #059bd8 0%, #10b981 100%);
    margin-right: 8px;
  }

  /* 合并弹窗 */
  .merge-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .merge-modal.active {
    display: flex;
  }
  .merge-modal-content {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  }
  .merge-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
  }
  .merge-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
  }
  .merge-modal-close {
    width: 30px; height: 30px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
  }
  .merge-modal-close:hover { background: #e5e7eb; }

  .merge-modal-body {
    flex: 1;
    display: flex;
    gap: 14px;
    padding: 14px;
    overflow: hidden;
  }

  /* 左侧三栏 */
  .merge-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  /* 右侧两栏 */
  .merge-right {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .panel-header {
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  .panel-header-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .panel-header-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3e8ff;
    color: #a855f7;
  }
  .panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
  }

  /* 已发布拖拽框 - 多个 */
  .published-drop-zone {
    min-height: 56px;
    max-height: 135px;
    overflow-y: auto;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    transition: all 0.2s ease;
  }
  .published-drop-zone.drag-over {
    border-color: #a855f7;
    background: #faf5ff;
  }
  .published-drop-zone .published-card {
    display: flex;
    gap: 10px;
	  width: 95%;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
  }
  .published-drop-zone .published-cover {
    width: 50px; height: 66px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .published-drop-zone .published-cover .platform-tag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px; height: 16px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
  }
  .published-drop-zone .published-cover .platform-tag img {
    width: 100%; height: 100%;
    border-radius: 3px;
  }
  .published-drop-zone .published-detail {
    flex: 1;
    min-width: 0;
  }
  .published-drop-zone .published-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .published-drop-zone .published-time {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 5px;
  }
  .published-drop-zone .published-platforms {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
  }
  .published-drop-zone .published-platforms img {
    width: 14px; height: 14px;
    border-radius: 3px;
  }
  .published-drop-zone .published-stats {
    display: flex;
    gap: 6px;
  }
  .published-drop-zone .published-stats .video-stat-item {
    padding: 2px 5px;
  }
  .published-drop-zone .published-card .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px; height: 20px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .published-drop-zone .published-card .remove-btn:hover { background: #fee2e2; }
  .published-drop-zone .remove-btn {
    width: 16px; height: 16px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .published-drop-zone .remove-btn:hover { background: #fee2e2; }
  .published-drop-zone .empty-tip {
    text-align: center;
    color: #d1d5db;
    font-size: 12px;
    width: 100%;
    padding: 8px 0;
  }

  /* 当前视频信息 - 固定显示 */
  .video-info-card {
    display: flex;
    gap: 8px;
    padding: 6px;
    align-items: center;
  }
  .video-info-cover {
    width: 40px; height: 54px;
    border-radius: 6px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .video-info-detail {
    flex: 1;
    min-width: 0;
  }
  .video-info-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .video-info-time {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 6px;
  }
  .video-info-platforms {
    position: absolute;
    bottom: 2px;
    right: 2px;
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    padding: 1px 2px;
  }
  .video-info-platforms img {
    width: 12px; height: 12px;
    border-radius: 2px;
  }
  .video-info-stats {
    display: flex;
    gap: 6px;
  }
  .video-stat-item {
    text-align: center;
    background: #f9fafb;
    border-radius: 4px;
    padding: 3px 6px;
    flex: 1;
  }
  .video-stat-label {
    font-size: 9px;
    color: #9ca3af;
  }
  .video-stat-value {
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1px;
  }

  /* 待合并拖拽框 - 增大，卡片式显示 */
  .pending-drop-zone {
    flex: 1;
    overflow-y: auto;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: flex-start;
    transition: all 0.2s ease;
    min-height: 0;
  }
  .pending-drop-zone.drag-over {
    border-color: #a855f7;
    background: #faf5ff;
  }
  .pending-drop-zone .empty-tip {
    text-align: center;
    color: #d1d5db;
    font-size: 12px;
    padding: 30px 0;
    width: 100%;
  }

  /* 待合并卡片 - 类似当前视频信息 */
  .merge-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
  }
  .merge-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(168,85,247,0.1);
  }
  .merge-card-cover {
    width: 50px; height: 66px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .merge-card-cover .platform-tag {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px; height: 16px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
  }
  .merge-card-cover .platform-tag img {
    width: 100%; height: 100%;
    border-radius: 3px;
  }
  .merge-card-detail {
    flex: 1;
    min-width: 0;
  }
  .merge-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .merge-card-time {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 6px;
  }
  .merge-card-stats {
    display: flex;
    gap: 6px;
  }
  .merge-card-stats .video-stat-item {
    padding: 2px 5px;
  }
  .merge-card .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px; height: 20px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .merge-card .remove-btn:hover { background: #fee2e2; }

  /* 右侧列表 */
  .list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
  }
  .list-item:hover {
    border-color: #e9d5ff;
    background: #faf5ff;
  }
  .list-item:active { cursor: grabbing; }
  .list-item.dragging { opacity: 0.4; }
  .list-item img {
    width: 18px; height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .list-item-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .list-item-meta {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
  }

  /* 搜索框 */
  .search-box {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
  }
  .search-input-wrap {
    position: relative;
  }
  .search-input-wrap svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #9ca3af;
  }
  .search-input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
  }
  .search-input:focus {
    border-color: #a855f7;
  }
  .search-input::placeholder { color: #c0c0c0; }

  /* 弹窗底部按钮 */
  .merge-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
  }
  .btn {
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
  }
  .btn-primary:hover { opacity: 0.9; }
  .btn-secondary {
    background: #f3f4f6;
    color: #374151;
  }
  .btn-secondary:hover { background: #e5e7eb; }

  /* 滚动条 */
  .panel-body::-webkit-scrollbar,
  .pending-drop-zone::-webkit-scrollbar,
  .published-drop-zone::-webkit-scrollbar { width: 5px; }
  .panel-body::-webkit-scrollbar-track,
  .pending-drop-zone::-webkit-scrollbar-track,
  .published-drop-zone::-webkit-scrollbar-track { background: transparent; }
  .panel-body::-webkit-scrollbar-thumb,
  .pending-drop-zone::-webkit-scrollbar-thumb,
  .published-drop-zone::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
  .panel-body::-webkit-scrollbar-thumb:hover,
  .pending-drop-zone::-webkit-scrollbar-thumb:hover,
  .published-drop-zone::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ====== fans 页面 ====== */
  body.page-fans {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f8fa;
    color: #1a1a2e;
    padding: 24px;
  }
  .page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
  }
  .fans-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
	  flex-wrap: wrap;
    gap: 12px;
  }
  .platform-tabs {
    display: flex;
    gap: 8px;
	  flex-wrap: wrap;
    min-width: 0;
  }
  .platform-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s ease;
  }
  .platform-tab.active {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border-color: transparent;
  }
  .time-range {
    display: flex;
    gap: 4px;
	  flex-wrap: wrap;
    align-items: center;
  }
  .time-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
  }
  .time-btn.active {
    background: #f3e8ff;
    color: #a855f7;
    border-color: #d8b4fe;
  }
  /* 自定义日期范围 */
  .custom-range-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  .custom-date {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    outline: none;
    cursor: pointer;
  }
  .custom-date:focus { border-color: #a855f7; }
  .custom-sep { font-size: 12px; color: #9ca3af; }
  .custom-confirm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    background: #a855f7;
    color: #fff;
    cursor: pointer;
  }
  .custom-confirm:hover { background: #9333ea; }
  .summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  .summary-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
  }
  .summary-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
  }
  .summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
  }
  .summary-change {
    font-size: 12px;
    margin-top: 4px;
  }
  .summary-change.up { color: #10b981; }
  .summary-change.down { color: #ef4444; }
  .chart-area {
    width: 100%;
    height: 320px;
    position: relative;
	  touch-action: pan-y;
  }
  .chart-area svg { width: 100%; height: 100%; }
/* 曲线悬停提示 */
  .fans-guide { opacity: 0; transition: opacity .12s ease; pointer-events: none; }
  .fans-dots { pointer-events: none; }
  .fans-tooltip {
    position: absolute;
    top: 6px;
    left: 0;
    z-index: 5;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    font-size: 11px;
    line-height: 1.55;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .12s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
  .fans-tooltip.show { opacity: 1; }
  .fans-tooltip .tt-date {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .fans-tooltip .tt-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .fans-tooltip .tt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
  }
  .fans-tooltip .tt-name { color: rgba(255, 255, 255, 0.72); }
  .fans-tooltip .tt-val {
    margin-left: auto;
    padding-left: 10px;
    font-weight: 600;
  }
 
  /* 演示数据角标（接口不可用时提示） */
  .demo-badge {
    padding: 3px 9px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    white-space: nowrap;
  }

  .legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
  }
  .legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
  }
/* ====== fans 页面：手机端适配 ====== */
  @media (max-width: 768px) {
    body.page-fans { padding: 12px; }
    .page-title { font-size: 17px; margin-bottom: 12px; }
    .fans-container { padding: 14px; border-radius: 10px; }
 
    /* 顶部筛选改为纵向堆叠，平台 tab 横向滚动 */
    .chart-header {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      margin-bottom: 14px;
    }
    .platform-tabs {
      overflow-x: auto;
      flex-wrap: nowrap;
      padding-bottom: 4px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .platform-tabs::-webkit-scrollbar { display: none; }
    .platform-tab { flex: 0 0 auto; padding: 7px 14px; font-size: 12px; }
 
    .time-range { gap: 6px; }
    .time-btn { flex: 1; padding: 8px 0; font-size: 12px; }
 
    .custom-range-box { gap: 6px; margin-top: 8px; }
    .custom-date { flex: 1; min-width: 0; padding: 7px 8px; }
 
    /* 概览卡片两列，末尾单张占满整行 */
    .summary-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 16px;
    }
    .summary-card { padding: 12px; }
    .summary-label { font-size: 11px; margin-bottom: 4px; }
    .summary-value { font-size: 18px; }
    .summary-change { font-size: 11px; }
    .summary-cards .summary-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
 
    .chart-area { height: 260px; }
 
    .fans-tooltip { font-size: 10px; padding: 6px 9px; }
    .fans-tooltip .tt-date { font-size: 11px; }
 
    .legend {
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 12px;
    }
    .legend-item { font-size: 11px; }
  }
/* ====== export 页面 ====== */
  body.page-export {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f8fa;
    color: #1a1a2e;
    padding: 24px;
  }
  .page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
  }
  .export-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .section-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
  }
  .section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 10px;
    position: relative;
  }
  .section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 14px;
    margin-top: -7px;
    border-radius: 2px;
    background: linear-gradient(180deg, #a855f7, #6366f1);
  }
  .label-tip {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
  }
  .field-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
  }
  .link-action {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #2196f3;
    cursor: pointer;
  }
  .link-action:hover { text-decoration: underline; }

  /* 导出功能：表格 / 报告 */
  .type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }
  .type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .type-card:hover,
  .type-card.selected {
    border-color: #a855f7;
    background: #faf5ff;
  }
  .type-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }
  .type-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .type-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
  }
  .type-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
  }

  /* 时间范围 + 稿件等级：同一行 */
  .filter-line {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    background: #fbfbfd;
  }
  .filter-block {
    min-width: 0;
  }
  .filter-block .section-label { margin-bottom: 14px; }
  .filter-block .range-panel { margin-bottom: 0; }

  /* 时间范围：tab 与下拉同一行 */
  .range-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* 时间范围切换 */
  .seg-tabs {
    display: inline-flex;
    padding: 4px;
    margin-bottom: 0;
    background: #eef0f5;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .seg-btn {
    padding: 7px 18px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .seg-btn.active {
    background: #fff;
    color: #2196f3;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }
  .range-panel { margin-bottom: 0; }
  .range-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  /* 统一的选择弹窗：年份 / 月份共用一套样式 */
  .picker-wrap {
    position: relative;
    display: inline-block;
  }
  .picker-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    min-width: 132px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .picker-field:hover { border-color: #c4b5fd; }
  .picker-field.picking,
  .picker-field:focus-visible {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
    outline: none;
  }
  .picker-value {
    flex: 1;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
  }
  .picker-unit {
    font-size: 12px;
    color: #9ca3af;
  }
  .picker-caret {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .picker-field.picking .picker-caret {
    transform: rotate(180deg);
    color: #a855f7;
  }

  .picker-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 288px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.14);
    animation: pickerIn 0.16s ease-out;
  }
  @keyframes pickerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
  }
  .picker-nav {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f3f4f8;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .picker-nav:hover {
    background: #ede9fe;
    color: #7e22ce;
  }
  .picker-grid {
    display: grid;
    gap: 6px;
  }
  .picker-grid-year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picker-grid-month { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picker-cell {
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .picker-cell:hover {
    background: #f5f3ff;
    color: #7e22ce;
  }
  .picker-cell.active {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-weight: 600;
  }
  .picker-cell:disabled {
    background: transparent;
    color: #d1d5db;
    cursor: not-allowed;
  }

  /* 日期范围：双月历弹窗 */
  .range-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .picker-popup-range { width: 600px; }
  .range-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .picker-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
  }
  .picker-day.in-range {
    background: #f3e8ff;
    color: #7e22ce;
  }
  .picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
  }
  .picker-weekdays span {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
  }
  .picker-grid-date {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
  .picker-day {
    height: 34px;
    border-radius: 8px;
  }
  .picker-day-blank { display: block; height: 34px; }
  .date-sep { color: #9ca3af; font-size: 13px; }
  .filter-control {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #374151;
    outline: none;
    min-width: 110px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .filter-control:hover { border-color: #c4b5fd; }
  .filter-control:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
  }

  /* 稿件等级 */
  .level-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .level-chip {
    width: 46px;
    height: 38px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .level-chip:hover {
    border-color: #c4b5fd;
    color: #7e22ce;
    background: #fcfaff;
  }
  .level-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.32);
  }

  .date-range {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }
  .date-range input {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
  }

  .export-summary {
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #eef0f4;
    border-left: 3px solid #a855f7;
    border-radius: 8px;
    background: #fbfbfd;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
  }

  .export-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -20px);
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
  }
  .export-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .export-toast.error { background: rgba(220, 38, 38, 0.92); }
  .field-select {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .field-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }
  .field-item:hover {
    border-color: #c4b5fd;
    background: #fcfaff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08);
  }
  .field-item.checked,
  .field-item:has(input:checked) {
    border-color: #a855f7;
    background: #faf5ff;
    color: #7e22ce;
    font-weight: 500;
  }
  .field-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .field-item input[type="checkbox"]:checked {
    border-color: #a855f7;
    background: #a855f7;
  }
  /* 选中后白色对勾 */
  .field-item input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
  }
  .field-name { white-space: nowrap; }
  .btn-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
  }
  .btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
  }
  .btn-primary:hover { opacity: 0.9; }
  .btn-secondary {
    background: #f3f4f6;
    color: #374151;
  }
  .btn-secondary:hover { background: #e5e7eb; }

  /* 导出页 - 窄屏适配 */
  @media (max-width: 640px) {
    body.page-export { padding: 16px; }
    .export-container { padding: 18px; }
    .type-grid { grid-template-columns: minmax(0, 1fr); }
    .filter-line {
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
      padding: 14px;
      margin-bottom: 16px;
    }
    .seg-tabs { display: flex; width: 100%; }
    .seg-btn { flex: 1; padding: 7px 6px; }
    .range-panel { width: 100%; margin-bottom: 0; }
    .picker-wrap { width: 100%; }
    .picker-field { width: 100%; }
    .picker-popup { width: 100%; box-sizing: border-box; }
    .range-inline { flex-direction: column; }
    .filter-control { width: 100%; }
    .date-range { flex-direction: column; align-items: stretch; }
    .date-range span { text-align: center; }
    .date-range input { width: 100%; }
    .range-wrap { width: 100%; flex-wrap: wrap; justify-content: center; }
    .range-calendars { grid-template-columns: 1fr; gap: 14px; }
    .field-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .level-chips { gap: 8px; }
    .level-chip { flex: 1; min-width: 40px; }
    .btn-group { flex-direction: column-reverse; }
    .btn { width: 100%; }
  }

/* ====== 合并弹窗：缩略图放大预览 ====== */
.cover-preview {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f3f4f6;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 9999;
  pointer-events: none;
}
.cover-preview.show { display: block; }
/* ====== search 页面 ====== */
  body.page-search {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f8fa;
    color: #1a1a2e;
    padding: 24px;
  }
  .page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
  }
  .search-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .search-input-wrap {
    flex: 1;
    position: relative;
  }
  .search-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .search-input-wrap input:focus {
    border-color: #a855f7;
  }
  .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: #9ca3af;
  }
  .search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  .search-btn:hover { opacity: 0.9; }
  .filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .filter-item label {
    font-size: 13px;
    color: #6b7280;
  }
  .filter-item select,
  .filter-control {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #374151;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .filter-item select:focus,
  .filter-control:focus { border-color: #a855f7; }
  .result-count {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
  }
  .result-count b { color: #a855f7; }
  .result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    transition: all 0.2s ease;
  }
  .result-item:hover {
    border-color: #e9d5ff;
    background: #faf5ff;
  }
  .result-cover {
    width: 76px;
    aspect-ratio: 9 / 16;          /* 竖版 9:16 缩略图 */
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    background-size: cover;
    background-position: center;
  }
.result-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
  }
  .result-duration {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
	  z-index: 2;
  }
  .result-info { flex: 1; min-width: 0; }
  .result-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .result-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 12px;
  }
  .result-platforms {
    display: flex;
    gap: 4px;
  }
  .result-platforms img {
    width: 18px; height: 18px;
    border-radius: 4px;
  }
  .result-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
  }
  .result-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
    font-weight: 600;
    color: #374151;
  }
  .result-stats .stat i {
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    color: #9ca3af;
  }

  .item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  .action-btn {
    width: 30px; height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  .action-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: #faf5ff;
  }
  .copy-btn:hover { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
  .edit-btn:hover { border-color: #f59e0b; color: #f59e0b; background: #fffbeb; }
  .detail-btn:hover { border-color: #a855f7; color: #a855f7; background: #faf5ff; }

  .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .manage-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .manage-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: #faf5ff;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
  }
  .page-btn {
    padding: 7px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .page-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
  }
  .page-btn:disabled {
    cursor: not-allowed;
    color: #c7cbd4;
    background: #f9fafb;
    border-color: #eef0f4;
  }
  .page-btn:disabled:hover {
    border-color: #eef0f4;
    color: #c7cbd4;
  }
  .page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  .page-num {
    min-width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-num:hover {
    border-color: #a855f7;
    color: #a855f7;
  }
  .page-num.active {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border-color: transparent;
  }
  .page-dots {
    color: #9ca3af;
    font-size: 13px;
    padding: 0 4px;
  }
  .result-empty {
    padding: 48px 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
  }
  .demo-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
  }

  /* 轻提示 */
  .search-toast {
    position: fixed;
    left: 50%;
    bottom: 48px;
    transform: translate(-50%, 12px);
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(23, 23, 37, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
  }
  .search-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  /* 右侧抽屉 */
  body.page-search.drawer-open { overflow: hidden; }
.drawer-mask {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;  /* 抽屉内滚到底时不穿透滚动背后页面 */
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}
  .drawer-mask.show {
    opacity: 1;
    visibility: visible;
  }
  .drawer {
  position: fixed;      /* 原来 absolute，改为跟随窗口 */
  top: 0;
  right: 0;
  width: min(880px, 92vw);
  height: 100vh;
  height: 100dvh;       /* 移动端浏览器地址栏收起/展开时高度不跳变 */
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;     /* 内容只在内部滚动，抽屉本身不撑高 */
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
}
/* 编辑模式更宽，容纳表单 */
  body.page-search.drawer-mode-edit .drawer {
    width: min(1200px, 96vw);
  }
  .drawer-mask.show .drawer { transform: translateX(0); }
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f1f5;
    flex-shrink: 0;
  }
  .drawer-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .drawer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .drawer-open {
    font-size: 12px;
    color: #a855f7;
    text-decoration: none;
  }
  .drawer-open:hover { text-decoration: underline; }
  .drawer-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .drawer-close:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: #faf5ff;
  }
  .drawer-body {
    flex: 1;
    min-height: 0;
    background: #f7f8fa;
  }
  .drawer-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  @media (max-width: 640px) {
    body.page-search { padding: 14px; }
    .search-container { padding: 16px; }
    .search-bar { flex-wrap: wrap; }
    .search-btn { padding: 12px 20px; }
    .result-item {
      flex-wrap: wrap;
      align-items: flex-start;
      gap: 12px;
    }
    .result-cover { width: 64px; }
    .result-info { flex: 1 1 100%; }
    .result-stats {
      flex: 1;
      justify-content: space-around;
      gap: 8px;
    }
    .item-actions { margin-left: auto; }
    .pagination { flex-wrap: wrap; }
    .drawer { width: 100%; }
  }
/* ====== help 页面 ====== */
body.page-help {
  --bg-primary: #1a1b2e;
  --bg-secondary: #232538;
  --bg-card: #2a2d44;
  --bg-card-hover: #323652;
  --text-primary: #f0f0fa;
  --text-secondary: #b0b3cc;
  --text-tertiary: #7a7d99;
  --accent-blue: #4f8cff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --border-color: rgba(255,255,255,0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* ====== about 页面 ====== */
body.page-about {
  --bg-primary: #1a1b2e;
  --bg-secondary: #232538;
  --bg-card: #2a2d44;
  --bg-card-hover: #323652;
  --text-primary: #f0f0fa;
  --text-secondary: #b0b3cc;
  --text-tertiary: #7a7d99;
  --accent-blue: #4f8cff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --border-color: rgba(255,255,255,0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* help / about 共享信息页样式 */
body.page-help .info-wrap,
body.page-about .info-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

body.page-help .info-header,
body.page-about .info-header {
  text-align: center;
  margin-bottom: 24px;
}

body.page-help .info-header-icon,
body.page-about .info-header-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
body.page-help .info-header-icon svg,
body.page-about .info-header-icon svg {
  width: 28px;
  height: 28px;
}

body.page-help .info-title,
body.page-about .info-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

body.page-help .info-subtitle,
body.page-about .info-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
}

body.page-help .info-section,
body.page-about .info-section {
  margin-bottom: 24px;
}

body.page-help .info-section-title,
body.page-about .info-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
body.page-help .info-section-title svg,
body.page-about .info-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-purple);
  flex-shrink: 0;
}

body.page-help .info-card,
body.page-about .info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

body.page-help .info-item,
body.page-about .info-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
body.page-help .info-item:first-child,
body.page-about .info-item:first-child {
  padding-top: 0;
}
body.page-help .info-item:last-child,
body.page-about .info-item:last-child {
  padding-bottom: 0;
}
body.page-help .info-item + .info-item,
body.page-about .info-item + .info-item {
  border-top: 1px solid var(--border-color);
}

body.page-help .info-item-icon,
body.page-about .info-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.page-help .info-item-icon svg,
body.page-about .info-item-icon svg {
  width: 20px;
  height: 20px;
}

body.page-help .info-item-title,
body.page-about .info-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

body.page-help .info-item-desc,
body.page-about .info-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

body.page-help .info-text,
body.page-about .info-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
body.page-help .info-text:last-child,
body.page-about .info-text:last-child {
  margin-bottom: 0;
}

/* 常见问题手风琴 */
body.page-help .faq-list,
body.page-about .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.page-help .faq-item,
body.page-about .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
body.page-help .faq-item summary,
body.page-about .faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.page-help .faq-item summary::-webkit-details-marker,
body.page-about .faq-item summary::-webkit-details-marker {
  display: none;
}
body.page-help .faq-item summary::after,
body.page-about .faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
body.page-help .faq-item[open] summary::after,
body.page-about .faq-item[open] summary::after {
  transform: rotate(45deg);
}
body.page-help .faq-item p,
body.page-about .faq-item p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 联系信息行 */
body.page-help .contact-row,
body.page-about .contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}
body.page-help .contact-row + .contact-row,
body.page-about .contact-row + .contact-row {
  border-top: 1px solid var(--border-color);
}
body.page-help .contact-label,
body.page-about .contact-label {
  color: var(--text-tertiary);
}
body.page-help .contact-value,
body.page-about .contact-value {
  color: var(--text-primary);
  font-weight: 500;
}

