/* ================================================================
   多主题系统 - NewsHub
   通过 data-theme 属性切换主题
   主题: default / cyber / minimal / glass
   ================================================================ */

/* ============ 主题切换面板 ============ */
.theme-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  width: 36px;
  height: 80px;
  border: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 8px 0 0 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: -2px 0 12px rgba(0,0,0,0.15);
  writing-mode: vertical-lr;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 600;
}

.theme-toggle-btn:hover {
  width: 42px;
  background: var(--primary);
}

.theme-dropdown {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg, #fff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: none;
  min-width: 200px;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
}

.theme-dropdown.show {
  display: block;
  animation: themeSlideIn 0.25s ease;
}

@keyframes themeSlideIn {
  from { opacity: 0; transform: translateY(-50%) translateX(10px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.theme-dropdown-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  margin-bottom: 4px;
}

.theme-option:hover {
  background: var(--bg, #f5f5f5);
}

.theme-option.active {
  background: var(--bg, #f5f5f5);
  border-color: var(--primary, #e74c3c);
}

.theme-preview {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.theme-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
}

.theme-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  border-radius: 0 0 6px 6px;
}

.theme-option-info {
  flex: 1;
}

.theme-option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #333);
}

.theme-option-desc {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 1px;
}

/* 各主题预览颜色 */
.theme-option[data-theme="default"] .theme-preview {
  background: linear-gradient(180deg, #ffffff 40%, #faf5f5 40%);
}
.theme-option[data-theme="default"] .theme-preview::after {
  background: #faf5f5;
}

.theme-option[data-theme="cyber"] .theme-preview {
  background: linear-gradient(180deg, #0a0e17 40%, #131a2b 40%);
}
.theme-option[data-theme="cyber"] .theme-preview::after {
  background: #131a2b;
}

.theme-option[data-theme="minimal"] .theme-preview {
  background: linear-gradient(180deg, #fafafa 40%, #ffffff 40%);
}
.theme-option[data-theme="minimal"] .theme-preview::after {
  background: #ffffff;
}

.theme-option[data-theme="glass"] .theme-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.theme-option[data-theme="glass"] .theme-preview::after {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
}


/* ================================================================
   主题 1: 红白清新 (Default) - 当前主题，无需覆盖
   ================================================================ */


/* ================================================================
   主题 2: 赛博科技 (Cyber Tech)
   深色背景 + 霓虹蓝绿高亮 + 科技感边框
   ================================================================ */
[data-theme="cyber"] {
  --primary: #00f0ff;
  --primary-dark: #00c4d6;
  --primary-light: #5df7ff;
  --secondary: #0a0e17;
  --bg: #0d1117;
  --bg-tertiary: #161b22;
  --card-bg: #131a2b;
  --text: #e6edf3;
  --text-light: #8b949e;
  --text-muted: #484f58;
  --border: rgba(0, 240, 255, 0.12);
  --shadow: 0 2px 16px rgba(0, 240, 255, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 240, 255, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="cyber"] body {
  background: #0a0e17;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(100, 60, 255, 0.03) 0%, transparent 50%);
}

[data-theme="cyber"] .site-header {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

[data-theme="cyber"] .logo-icon {
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

[data-theme="cyber"] .nav-links a:hover,
[data-theme="cyber"] .nav-links a.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

[data-theme="cyber"] .search-box input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0, 240, 255, 0.12);
}

[data-theme="cyber"] .search-box input:focus {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

[data-theme="cyber"] .category-bar {
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

[data-theme="cyber"] .category-tab.active {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

[data-theme="cyber"] .category-tab:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}

[data-theme="cyber"] .article-item,
[data-theme="cyber"] .sidebar-widget,
[data-theme="cyber"] .featured-article {
  border: 1px solid rgba(0, 240, 255, 0.06);
}

[data-theme="cyber"] .article-item:hover,
[data-theme="cyber"] .featured-article:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08), 0 0 1px rgba(0, 240, 255, 0.3);
}

[data-theme="cyber"] .article-thumb-placeholder {
  background: linear-gradient(135deg, #131a2b, #1a2340);
}

[data-theme="cyber"] .widget-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

[data-theme="cyber"] .widget-header h3 {
  color: #00f0ff;
}

[data-theme="cyber"] .tag {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

[data-theme="cyber"] .tag-video { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
[data-theme="cyber"] .tag-article { background: rgba(52, 211, 153, 0.1); color: #34d399; }
[data-theme="cyber"] .tag-image { background: rgba(251, 146, 60, 0.1); color: #fb923c; }

[data-theme="cyber"] .pagination button.active {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.3);
}

[data-theme="cyber"] .pagination button:hover:not(:disabled) {
  border-color: rgba(0, 240, 255, 0.3);
  color: #00f0ff;
}

[data-theme="cyber"] .hot-list li:nth-child(1) .rank,
[data-theme="cyber"] .hot-list li:nth-child(2) .rank,
[data-theme="cyber"] .hot-list li:nth-child(3) .rank {
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

[data-theme="cyber"] .site-footer {
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.08);
}

[data-theme="cyber"] .carousel-section {
  background: #060a10;
}

[data-theme="cyber"] .carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

[data-theme="cyber"] .btn-primary {
  background: linear-gradient(135deg, #00f0ff, #00c4d6);
  color: #0a0e17;
}

[data-theme="cyber"] .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  color: #0a0e17;
}

/* Cyber 装饰线条 */
[data-theme="cyber"] .article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #00f0ff, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="cyber"] .article-item {
  position: relative;
}

[data-theme="cyber"] .article-item:hover::before {
  opacity: 1;
}

[data-theme="cyber"] .featured-article .featured-img {
  background: linear-gradient(135deg, #0a1628, #1a0a3e);
}


/* ================================================================
   主题 3: 极简纯净 (Pure Minimal)
   大量留白 + 细线条 + 浅色系 + 优雅过渡
   ================================================================ */
[data-theme="minimal"] {
  --primary: #1a1a2e;
  --primary-dark: #0f0f1a;
  --primary-light: #3a3a5e;
  --secondary: #1a1a2e;
  --bg: #f8f9fc;
  --bg-tertiary: #f0f1f5;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="minimal"] body {
  background: #f8f9fc;
}

[data-theme="minimal"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

[data-theme="minimal"] .logo {
  color: #1a1a2e;
}

[data-theme="minimal"] .logo-icon {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="minimal"] .nav-links a {
  color: #6b7280;
}

[data-theme="minimal"] .nav-links a:hover,
[data-theme="minimal"] .nav-links a.active {
  color: #1a1a2e;
  background: rgba(0,0,0,0.04);
}

[data-theme="minimal"] .search-box input {
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #1a1a2e;
}

[data-theme="minimal"] .search-box input::placeholder {
  color: #9ca3af;
}

[data-theme="minimal"] .search-box input:focus {
  background: #fff;
  border-color: #d1d5db;
}

[data-theme="minimal"] .search-box button {
  color: #9ca3af;
}

[data-theme="minimal"] .category-bar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="minimal"] .category-tab {
  color: #6b7280;
  font-weight: 500;
  border-radius: 8px;
}

[data-theme="minimal"] .category-tab:hover {
  color: #1a1a2e;
  background: rgba(0,0,0,0.04);
}

[data-theme="minimal"] .category-tab.active {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="minimal"] .article-item {
  border: 1px solid #e5e7eb;
  box-shadow: none;
  border-radius: 16px;
}

[data-theme="minimal"] .article-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

[data-theme="minimal"] .featured-article {
  border: 1px solid #e5e7eb;
  box-shadow: none;
  border-radius: 16px;
}

[data-theme="minimal"] .featured-article:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

[data-theme="minimal"] .sidebar-widget {
  border: 1px solid #e5e7eb;
  box-shadow: none;
  border-radius: 16px;
}

[data-theme="minimal"] .widget-header {
  border-bottom: 1px solid #f3f4f6;
}

[data-theme="minimal"] .widget-header h3 {
  color: #1a1a2e;
  font-weight: 700;
}

[data-theme="minimal"] .article-thumb-placeholder {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

[data-theme="minimal"] .tag {
  background: rgba(26, 26, 46, 0.06);
  color: #374151;
}

[data-theme="minimal"] .tag-video { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
[data-theme="minimal"] .tag-article { background: rgba(5, 150, 105, 0.08); color: #059669; }
[data-theme="minimal"] .tag-image { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }

[data-theme="minimal"] .pagination button.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

[data-theme="minimal"] .pagination button:hover:not(:disabled) {
  border-color: #9ca3af;
  color: #1a1a2e;
}

[data-theme="minimal"] .hot-list li:nth-child(1) .rank,
[data-theme="minimal"] .hot-list li:nth-child(2) .rank,
[data-theme="minimal"] .hot-list li:nth-child(3) .rank {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="minimal"] .site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
}

[data-theme="minimal"] .carousel-section {
  background: #f3f4f6;
}

[data-theme="minimal"] .featured-article .featured-img {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

[data-theme="minimal"] .main-layout {
  max-width: 1200px;
}

[data-theme="minimal"] .empty-state .icon {
  font-size: 36px;
  opacity: 0.5;
}

[data-theme="minimal"] .article-title {
  font-weight: 700;
  color: #111827;
}


/* ================================================================
   主题 4: 玻璃拟态 (Glassmorphism)
   渐变背景 + 毛玻璃卡片 + 半透明效果
   ================================================================ */
[data-theme="glass"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: rgba(15, 10, 40, 0.85);
  --bg: #0f0a28;
  --bg-tertiary: rgba(255,255,255,0.06);
  --card-bg: rgba(255, 255, 255, 0.08);
  --text: #f0f0ff;
  --text-light: rgba(240, 240, 255, 0.65);
  --text-muted: rgba(240, 240, 255, 0.35);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 40px rgba(99, 102, 241, 0.15);
  --radius: 20px;
  --radius-sm: 14px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="glass"] body {
  background: linear-gradient(135deg, #0f0a28 0%, #1a1040 25%, #0d1b3e 50%, #1a0a30 75%, #0f0a28 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* 背景装饰光球 */
[data-theme="glass"] body::before,
[data-theme="glass"] body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

[data-theme="glass"] body::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  top: -100px;
  right: -100px;
}

[data-theme="glass"] body::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
  bottom: -150px;
  left: -150px;
}

[data-theme="glass"] .site-header {
  background: rgba(15, 10, 40, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

[data-theme="glass"] .logo {
  color: #f0f0ff;
}

[data-theme="glass"] .logo-icon {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

[data-theme="glass"] .nav-links a {
  color: rgba(240, 240, 255, 0.6);
}

[data-theme="glass"] .nav-links a:hover,
[data-theme="glass"] .nav-links a.active {
  color: #f0f0ff;
  background: rgba(255,255,255,0.08);
}

[data-theme="glass"] .search-box input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f0f0ff;
}

[data-theme="glass"] .search-box input::placeholder {
  color: rgba(240, 240, 255, 0.3);
}

[data-theme="glass"] .search-box input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

[data-theme="glass"] .search-box button {
  color: rgba(240, 240, 255, 0.4);
}

[data-theme="glass"] .category-bar {
  background: rgba(15, 10, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="glass"] .category-tab {
  color: rgba(240, 240, 255, 0.5);
  font-weight: 500;
}

[data-theme="glass"] .category-tab:hover {
  color: #f0f0ff;
  background: rgba(255,255,255,0.08);
}

[data-theme="glass"] .category-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  color: #f0f0ff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="glass"] .article-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

[data-theme="glass"] .article-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

[data-theme="glass"] .featured-article {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

[data-theme="glass"] .featured-article:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

[data-theme="glass"] .sidebar-widget {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

[data-theme="glass"] .widget-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="glass"] .widget-header h3 {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="glass"] .article-thumb-placeholder {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
}

[data-theme="glass"] .tag {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

[data-theme="glass"] .tag-video { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
[data-theme="glass"] .tag-article { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
[data-theme="glass"] .tag-image { background: rgba(251, 146, 60, 0.12); color: #fdba74; }

[data-theme="glass"] .pagination button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(240, 240, 255, 0.6);
}

[data-theme="glass"] .pagination button.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  color: #f0f0ff;
  border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="glass"] .pagination button:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.3);
  color: #f0f0ff;
}

[data-theme="glass"] .hot-list .rank {
  background: rgba(255,255,255,0.08);
  color: rgba(240, 240, 255, 0.5);
}

[data-theme="glass"] .hot-list li:nth-child(1) .rank,
[data-theme="glass"] .hot-list li:nth-child(2) .rank,
[data-theme="glass"] .hot-list li:nth-child(3) .rank {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

[data-theme="glass"] .site-footer {
  background: rgba(15, 10, 40, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(240, 240, 255, 0.4);
}

[data-theme="glass"] .carousel-section {
  background: rgba(0,0,0,0.2);
}

[data-theme="glass"] .featured-article .featured-img {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
}

[data-theme="glass"] .empty-state {
  color: rgba(240, 240, 255, 0.4);
}

[data-theme="glass"] .empty-state h3 {
  color: rgba(240, 240, 255, 0.6);
}

[data-theme="glass"] .loading {
  color: rgba(240, 240, 255, 0.3);
}

[data-theme="glass"] .loading::after {
  border-color: rgba(255,255,255,0.1);
  border-top-color: #6366f1;
}

[data-theme="glass"] .btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

[data-theme="glass"] .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* Glass 渐变文字效果 */
[data-theme="glass"] .article-title {
  background: linear-gradient(135deg, #e0e7ff, #f0f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="glass"] .featured-article .featured-content h2 {
  background: linear-gradient(135deg, #e0e7ff, #f0f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass 详情页 */
[data-theme="glass"] .article-detail {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

[data-theme="glass"] .detail-title {
  background: linear-gradient(135deg, #e0e7ff, #f0f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="glass"] .detail-content blockquote {
  background: rgba(99, 102, 241, 0.08);
  border-left-color: rgba(99, 102, 241, 0.5);
}

[data-theme="glass"] .article-nav a {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Cyber 详情页 */
[data-theme="cyber"] .article-detail {
  border: 1px solid rgba(0, 240, 255, 0.06);
}

[data-theme="cyber"] .detail-content blockquote {
  background: rgba(0, 240, 255, 0.04);
  border-left-color: rgba(0, 240, 255, 0.3);
}

/* Minimal 详情页 */
[data-theme="minimal"] .article-detail {
  border: 1px solid #e5e7eb;
  box-shadow: none;
}


/* ============ 响应式主题面板 ============ */
@media (max-width: 768px) {
  .theme-panel {
    right: auto;
    left: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    writing-mode: horizontal-tb;
    letter-spacing: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }

  .theme-dropdown {
    right: auto;
    left: 0;
    top: auto;
    bottom: 54px;
    transform: none;
  }

  .theme-dropdown.show {
    animation: themeSlideInMobile 0.25s ease;
  }

  @keyframes themeSlideInMobile {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


/* ============ 主题过渡动画 ============ */
body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
