/* ============================================================
   黄色仓库游戏MOD与资源分享社区 - 主样式表
   作者: 黄色仓库hsck官网-免费在线|高清资源|黄色仓库hsck平台 设计团队
   版本: 1.0.0
   ============================================================ */

/* ---- CSS 设计令牌（Design Tokens） ---- */
:root {
  --primary: #4A148C;
  --primary-light: #6A1FAD;
  --secondary: #00E5FF;
  --bg: #1A1A1A;
  --card-bg: #2D2D2D;
  --accent: #E040FB;
  --text: #FFFFFF;
  --text-muted: #A0A0A0;
  --border-color: #333333;
  --success: #00C853;
  --warning: #FFD600;
  --danger: #D50000;
  --nav-height: 70px;
  --sidebar-width: 300px;
  --border-radius: 8px;
  --transition: 0.3s ease;
  --glow-cyan: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.3);
  --glow-purple: 0 0 10px rgba(224, 64, 251, 0.6), 0 0 20px rgba(224, 64, 251, 0.3);
  --glow-primary: 0 0 10px rgba(74, 20, 140, 0.8), 0 0 30px rgba(74, 20, 140, 0.4);
  --font-heading: 'Orbitron', 'Rajdhani', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Roboto', 'Microsoft YaHei', sans-serif;
  --font-code: 'Fira Code', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--accent);
  text-shadow: var(--glow-purple);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---- 排版 ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

code, pre {
  font-family: var(--font-code);
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

code {
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--secondary);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ---- 容器 ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 导航栏 ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(74, 20, 140, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.site-logo-text span {
  color: var(--secondary);
  text-shadow: var(--glow-cyan);
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
  text-shadow: var(--glow-cyan);
}

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.header-search input:focus {
  border-color: var(--secondary);
  box-shadow: var(--glow-cyan);
}

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

.header-search .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  transition: color var(--transition);
}

.header-search .search-btn:hover {
  color: var(--secondary);
}

/* 头部右侧操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-login:hover {
  background: var(--secondary);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}

.btn-register {
  padding: 8px 18px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-register:hover {
  background: var(--primary-light);
  box-shadow: var(--glow-primary);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ---- 主内容区域 ---- */
.main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 20, 140, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 229, 255, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(224, 64, 251, 0.2);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(224, 64, 251, 0.3); }
  50% { box-shadow: 0 0 15px rgba(224, 64, 251, 0.7); }
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-title .highlight {
  color: var(--secondary);
  text-shadow: var(--glow-cyan);
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta-item .value {
  color: var(--secondary);
  font-weight: 700;
  font-family: var(--font-heading);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 主按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn-primary:hover {
  background: #00CCEE;
  color: var(--bg);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

/* Hero 轮播控制 */
.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--secondary);
  box-shadow: var(--glow-cyan);
}

/* 粒子效果背景 */
.particles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---- 搜索与快速导航 ---- */
.core-search-section {
  background: linear-gradient(180deg, rgba(74, 20, 140, 0.15) 0%, transparent 100%);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border-color);
}

.search-wrapper {
  max-width: 700px;
  margin: 0 auto 24px;
  position: relative;
}

.search-main {
  width: 100%;
  padding: 16px 60px 16px 24px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.05rem;
  outline: none;
  transition: all var(--transition);
}

.search-main:focus {
  border-color: var(--secondary);
  box-shadow: var(--glow-cyan), 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border: none;
  border-radius: 8px;
  color: var(--bg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-submit:hover {
  background: #00CCEE;
  box-shadow: var(--glow-cyan);
}

.search-shortcut {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
}

.quick-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  min-width: 80px;
  text-decoration: none;
}

.quick-nav-item .icon {
  font-size: 1.5rem;
}

.quick-nav-item:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ---- 页面布局（首页） ---- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
  padding: 40px 0;
}

.page-main { min-width: 0; }

.page-sidebar { min-width: 0; }

/* ---- 区块标题 ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  border-radius: 2px;
  box-shadow: var(--glow-cyan);
}

.section-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.section-link:hover {
  color: var(--secondary);
}

/* ---- 资源卡片 ---- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.resource-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--glow-cyan), 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.resource-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.resource-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover .resource-card-thumb img {
  transform: scale(1.05);
}

.resource-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--success);
  color: #000;
  animation: blink 1.5s infinite;
}

.badge-hot {
  background: var(--danger);
  color: #fff;
}

.badge-update {
  background: var(--warning);
  color: #000;
  animation: blink 1.5s infinite;
}

.badge-exclusive {
  background: var(--accent);
  color: #fff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.resource-card-rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warning);
}

.resource-card-body {
  padding: 14px;
}

.resource-card-game {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.resource-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-title a {
  color: var(--text);
  text-decoration: none;
}

.resource-card-title a:hover {
  color: var(--secondary);
}

.resource-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.resource-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.resource-card-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.resource-card-stats {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.resource-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

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

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

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.skeleton-thumb {
  aspect-ratio: 16/9;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }

/* ---- 侧边栏 ---- */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 热门标签 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  background: rgba(74, 20, 140, 0.3);
  border: 1px solid rgba(74, 20, 140, 0.5);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.tag:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.tag.hot {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(224, 64, 251, 0.1);
  font-size: 0.85rem;
}

/* 下载排行 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rank-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.rank-num.top1 { background: var(--warning); color: #000; }
.rank-num.top2 { background: #9E9E9E; color: #000; }
.rank-num.top3 { background: #8B4513; color: #fff; }
.rank-num.other { background: var(--border-color); color: var(--text-muted); }

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

.rank-title {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-title a {
  color: inherit;
  text-decoration: none;
}

.rank-title a:hover { color: var(--secondary); }

.rank-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 社区公告 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  padding: 10px;
  background: rgba(74, 20, 140, 0.2);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.notice-item.important {
  border-left-color: var(--accent);
  background: rgba(224, 64, 251, 0.1);
}

.notice-item .notice-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- 热门标签矩阵 ---- */
.trending-tags-section {
  padding: 40px 0;
  background: linear-gradient(180deg, transparent, rgba(74, 20, 140, 0.1), transparent);
}

.trending-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px 0;
}

.trending-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.trending-tag:hover {
  transform: scale(1.05);
}

.trending-tag.size-xl {
  font-size: 1.1rem;
  padding: 8px 20px;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  box-shadow: var(--glow-cyan);
}

.trending-tag.size-lg {
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.trending-tag.size-md {
  font-size: 0.85rem;
  border: 1px solid var(--primary-light);
  color: var(--text-muted);
}

.trending-tag.size-sm {
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* ---- 本周推荐大卡片 ---- */
.weekly-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pick-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.pick-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-purple), 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
}

.pick-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.pick-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pick-card:hover .pick-card-thumb img {
  transform: scale(1.08);
}

.pick-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.pick-card-body {
  padding: 16px;
}

.pick-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pick-card-title a {
  color: var(--text);
}

.pick-card-title a:hover {
  color: var(--secondary);
}

.pick-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pick-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

.pick-author-name {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pick-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- 兼容性红黑榜 ---- */
.compatibility-section {
  padding: 40px 0;
}

.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compat-panel {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.compat-panel.green-list {
  border-color: rgba(0, 200, 83, 0.3);
}

.compat-panel.red-list {
  border-color: rgba(213, 0, 0, 0.3);
}

.compat-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compat-panel.green-list .compat-panel-title {
  color: var(--success);
}

.compat-panel.red-list .compat-panel-title {
  color: var(--danger);
}

.compat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.83rem;
}

.compat-item:last-child {
  border-bottom: none;
}

.compat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- 社区动态 ---- */
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color var(--transition);
}

.feed-item:hover {
  border-color: var(--secondary);
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.feed-content { flex: 1; min-width: 0; }

.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.feed-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

.feed-action {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.feed-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- 友情链接 ---- */
.partners-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.partner-link {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.partner-link:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ---- 页脚 ---- */
.site-footer {
  background: #111;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: var(--glow-cyan);
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb .sep {
  color: var(--border-color);
}

.breadcrumb .current {
  color: var(--text);
}

/* ---- 分页 ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
}

.page-btn.active {
  font-weight: 700;
}

/* ---- 特色组件1: 赛博进度条 ---- */
.cyber-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cyber-progress-overlay.active {
  display: flex;
}

.cyber-progress-panel {
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 30px;
  width: 480px;
  max-width: 90vw;
  box-shadow: var(--glow-cyan), 0 20px 60px rgba(0, 0, 0, 0.8);
}

.cyber-progress-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.cyber-progress-filename {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-code);
}

.cyber-progress-bar-wrap {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  height: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  position: relative;
}

.cyber-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 6px;
  position: relative;
  transition: width 0.3s ease;
  overflow: hidden;
}

.cyber-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 10px,
    rgba(255, 255, 255, 0.15) 10px,
    rgba(255, 255, 255, 0.15) 20px
  );
  animation: stripe-move 0.5s linear infinite;
}

@keyframes stripe-move {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.cyber-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  margin-bottom: 20px;
}

.cyber-progress-stats .speed {
  color: var(--secondary);
  font-weight: 700;
}

.cyber-progress-complete {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid var(--success);
  border-radius: 8px;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
}

.cyber-progress-complete.show {
  display: flex;
}

/* ---- 特色组件2: 兼容性表格 ---- */
.compat-matrix {
  overflow-x: auto;
  margin: 20px 0;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compat-table th {
  background: var(--primary);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  border-bottom: 2px solid var(--secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.compat-table th:hover {
  background: var(--primary-light);
}

.compat-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.compat-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.compat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

.compat-status.ok { color: var(--success); }
.compat-status.warn { color: var(--warning); cursor: help; }
.compat-status.fail { color: var(--danger); }

/* ---- 特色组件3: 评分系统 ---- */
.hacker-rating {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rating-dimension {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-label {
  width: 70px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rating-blocks {
  display: flex;
  gap: 4px;
}

.rating-block {
  width: 22px;
  height: 14px;
  background: var(--border-color);
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
}

.rating-block.active {
  background: var(--secondary);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.rating-block:hover,
.rating-block.hover {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(224, 64, 251, 0.6);
}

.rating-score {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  margin-left: auto;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: rgba(74, 20, 140, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(74, 20, 140, 0.4);
}

.overall-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary);
  text-shadow: var(--glow-cyan);
  line-height: 1;
}

.overall-ring {
  position: relative;
  width: 70px;
  height: 70px;
}

.overall-ring svg {
  transform: rotate(-90deg);
}

.overall-ring circle {
  fill: none;
  stroke-width: 6;
}

.overall-ring .bg-circle {
  stroke: var(--border-color);
}

.overall-ring .progress-circle {
  stroke: var(--secondary);
  stroke-dasharray: 188;
  stroke-dashoffset: 38;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--secondary));
}

.overall-info {
  flex: 1;
}

.overall-info .total-votes {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- 特色组件4: 更新日志时间轴 ---- */
.changelog-timeline {
  position: relative;
  padding-left: 30px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), var(--primary), transparent);
}

.changelog-item {
  position: relative;
  margin-bottom: 24px;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: var(--glow-cyan);
}

.changelog-item.latest::before {
  background: var(--accent);
  box-shadow: var(--glow-purple);
  width: 14px;
  height: 14px;
  left: -26px;
  top: 12px;
}

.changelog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  transition: border-color var(--transition);
}

.changelog-item.latest .changelog-card {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(224, 64, 251, 0.15);
}

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

.changelog-version {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.badge-latest {
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse-glow 2s infinite;
}

.changelog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}

.changelog-body {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.changelog-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.change-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.change-tag.add { background: rgba(0, 200, 83, 0.2); color: var(--success); }
.change-tag.fix { background: rgba(255, 214, 0, 0.2); color: var(--warning); }
.change-tag.opt { background: rgba(0, 229, 255, 0.2); color: var(--secondary); }

.changelog-toggle {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 0.8rem;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

/* ---- 特色组件5: 安装教程步骤流 ---- */
.install-wizard {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.wizard-steps-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
}

.wizard-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  position: relative;
}

.wizard-step-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  background: rgba(0, 229, 255, 0.05);
}

.wizard-step-btn.done {
  color: var(--success);
}

.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard-step-btn.active .wizard-step-num {
  background: var(--secondary);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}

.wizard-step-btn.done .wizard-step-num {
  background: var(--success);
  color: var(--bg);
}

.wizard-content {
  padding: 24px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--secondary);
}

.wizard-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.code-block {
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  position: relative;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--secondary);
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--secondary);
  color: var(--bg);
}

.wizard-nav-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ---- 下载面板 ---- */
.download-panel {
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  box-shadow: var(--glow-cyan);
}

.download-panel-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.download-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.download-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}

.download-info-item .label {
  color: var(--text-muted);
}

.download-info-item .value {
  color: var(--text);
  font-weight: 600;
}

.download-info-item .value.safe {
  color: var(--success);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--secondary), #00B8D4);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn-download:hover {
  background: linear-gradient(135deg, #00CCEE, var(--secondary));
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.download-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 10px;
  background: rgba(213, 0, 0, 0.05);
  border: 1px solid rgba(213, 0, 0, 0.2);
  border-radius: 6px;
}

/* ---- 筛选面板 ---- */
.filter-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus {
  border-color: var(--secondary);
}

/* ---- 搜索结果页 ---- */
.search-results-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.search-query-display {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.search-query-display strong {
  color: var(--secondary);
  font-family: var(--font-heading);
}

.search-result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-sort-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sort-btn {
  padding: 6px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.sort-btn.active,
.sort-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
}

/* ---- Glitch 动效 ---- */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: var(--secondary);
  animation: glitch-1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
  color: var(--accent);
  animation: glitch-2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(3px, -1px); }
  94% { transform: translate(-3px, 1px); }
  96% { transform: translate(2px, -2px); }
}

/* ---- 404 页面 ---- */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-content {
  max-width: 600px;
}

.error-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 30px;
  border: 3px solid var(--secondary);
  box-shadow: var(--glow-cyan);
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: var(--secondary);
  text-shadow: var(--glow-cyan);
  line-height: 1;
  margin-bottom: 10px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ---- 作者主页 ---- */
.author-hero {
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.4), rgba(0, 229, 255, 0.1));
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  box-shadow: var(--glow-cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.author-info { flex: 1; min-width: 200px; }

.author-name {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.author-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.author-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.author-stat {
  text-align: center;
}

.author-stat .num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.author-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- 排行榜 ---- */
.leaderboard-tabs {
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.lb-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lb-tab.active {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: var(--glow-primary);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th {
  background: rgba(74, 20, 140, 0.3);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.lb-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.lb-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.lb-rank {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.lb-rank.r1 { color: var(--warning); }
.lb-rank.r2 { color: #9E9E9E; }
.lb-rank.r3 { color: #CD7F32; }

/* ---- 合规页面 ---- */
.legal-page {
  padding: 40px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-content .update-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.legal-content p, .legal-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ol {
  list-style: decimal;
}

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .page-layout {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }

  .header-search { display: none; }

  .hero-banner { height: 450px; }
  .hero-content { padding: 0 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resource-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .weekly-picks {
    grid-template-columns: 1fr;
  }

  .author-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-banner { height: 380px; }
  .hero-title { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .resource-grid { grid-template-columns: 1fr; }
  .quick-nav { gap: 8px; }
  .quick-nav-item { min-width: 60px; padding: 8px 10px; }
}

/* ---- PWA 安装提示 ---- */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--glow-cyan), 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-width: 400px;
  width: 90%;
  display: none;
}

.pwa-install-banner.show {
  display: flex;
}

.pwa-install-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pwa-install-text strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* ---- 工具类 ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }

.neon-text {
  color: var(--secondary);
  text-shadow: var(--glow-cyan);
}

.section-padding {
  padding: 50px 0;
}

/* ---- 滚动条样式 ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ---- 选中文字样式 ---- */
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: var(--text);
}
