/* ============================================
   绘天个人游戏开发官网 - 全站共享样式
   风格：暗黑科技风（霓虹紫 + 霓虹青）
   主色：#8b5cf6 / 辅助青 #06b6d4 / 背景 #0a0a0f
   ============================================ */

/* ---------- CSS 变量 & 全局重置 ---------- */
:root {
  --primary: #8b5cf6;          /* 霓虹紫 */
  --primary-deep: #a78bfa;     /* 浅紫 */
  --primary-light: rgba(139, 92, 246, 0.14);
  --primary-hover: #a78bfa;
  --accent: #06b6d4;           /* 霓虹青 */
  --bg: #0a0a0f;               /* 深黑背景 */
  --bg-soft: #11111a;          /* 次级深灰 */
  --card: #12121d;             /* 卡片背景 */
  --text: #e8e8f2;             /* 主文字 */
  --text-muted: #9aa0b8;       /* 次要文字 */
  --text-faint: #7c8296;       /* 更弱文字 */
  --border: rgba(139, 92, 246, 0.18);
  --success: #4ade80;
  --danger: #f87171;
  --warn: #fbbf24;
  --nav-height: 64px;
  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(139, 92, 246, 0.16);
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ---------- 顶部导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f0ff;
  letter-spacing: 1px;
}

.nav-logo .logo-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}
.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.nav-logo .logo-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 1px;
  transition: width 0.25s;
}

.nav-links a:hover, .nav-links a.active {
  color: #d6c9ff;
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-auth { display: flex; align-items: center; gap: 12px; }

.nav-auth .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(139, 92, 246, 0.14);
  padding: 6px 14px;
  border-radius: 20px;
}

.nav-auth .user-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.nav-auth .user-chip .nav-avatar-letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: #d6c9ff;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9d74ff, #22d3ee);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.5);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: #8b5cf6;
  color: #e9dfff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: #d6c9ff; }

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 28%, rgba(139, 92, 246, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 75% 72%, rgba(6, 182, 212, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at center, #150b28 0%, #0a0a0f 72%);
}

#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25), inset 0 0 12px rgba(139, 92, 246, 0.12);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-shadow:
    0 0 10px rgba(196, 181, 253, 0.85),
    0 0 22px rgba(139, 92, 246, 0.7),
    0 0 44px rgba(139, 92, 246, 0.5);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(230, 228, 255, 0.82);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

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

.hero .btn-primary { background: linear-gradient(135deg, #8b5cf6, #06b6d4); color: #fff; }
.hero .btn-primary:hover { background: linear-gradient(135deg, #9d74ff, #22d3ee); }
.hero .btn-outline { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.5); }
.hero .btn-outline:hover { background: rgba(139, 92, 246, 0.14); border-color: #c4b5fd; }

/* ---------- 通用容器 & 区块 ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-alt {
  background:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    #0d0d16;
  background-size: 60px 60px, 60px 60px, auto;
}

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 1.9rem; font-weight: 700; color: #f1f0ff; }
.section-head p { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }

/* ---------- 页面主体（留出导航高度） ---------- */
.page-main { flex: 1; padding-top: var(--nav-height); }

.page-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    #0a0a0f;
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; color: #f1f0ff; }
.page-hero p { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }

/* ---------- 游戏卡片 ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
  border-color: rgba(139, 92, 246, 0.45);
}

.game-cover {
  height: 170px;
  background: linear-gradient(135deg, #1a1030 0%, #0d1b2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.game-cover .cover-text { color: #c4b5fd; font-size: 0.85rem; letter-spacing: 1px; }
.game-cover .cover-emoji { font-size: 3rem; }
.game-cover .cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.status-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}
.status-dev { background: rgba(139, 92, 246, 0.9); color: #fff; }
.status-beta { background: rgba(6, 182, 212, 0.85); color: #fff; }
.status-released { background: rgba(74, 222, 128, 0.9); color: #06250f; }
.status-idea { background: rgba(150, 160, 175, 0.85); color: #fff; }
.status-planning { background: rgba(251, 191, 36, 0.85); color: #2a1a00; }

.game-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.game-card-body h3 { font-size: 1.15rem; font-weight: 700; color: #f1f0ff; margin-bottom: 6px; }
.game-card-body .game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.game-card-body .game-tags span {
  font-size: 0.72rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 2px 10px;
  border-radius: 10px;
}
.game-card-body .game-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.game-card-body .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(139, 92, 246, 0.14);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.progress-wrap .pct { font-size: 0.8rem; font-weight: 700; color: #c4b5fd; min-width: 36px; text-align: right; }

/* ---------- 游戏详情页 ---------- */
.game-detail-cover {
  height: 280px;
  background: linear-gradient(135deg, #1a1030 0%, #0d1b2e 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.game-detail-cover .cover-emoji { font-size: 5rem; }
.game-detail-cover .cover-text { color: #c4b5fd; font-size: 1rem; }
.game-detail-cover .detail-cover-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  background: #0a0a0f;
}

.detail-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-title h1 { font-size: 1.7rem; font-weight: 700; color: #f1f0ff; }

.detail-block { margin-bottom: 36px; }
.detail-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c4b5fd;
  padding-left: 12px;
  border-left: 3px solid #8b5cf6;
  margin-bottom: 16px;
}
.detail-block p { color: var(--text); font-size: 0.95rem; line-height: 1.9; }

.download-box {
  background: var(--bg-soft);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.download-box .dl-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.download-box .btn[disabled] { opacity: 0.6; pointer-events: none; }
.download-box .btn-download { opacity: 1; pointer-events: auto; }
.download-box .dl-code { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.download-box .dl-code b { color: #c4b5fd; font-size: 1rem; letter-spacing: 1px; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.screenshot-item {
  height: 150px;
  background: linear-gradient(135deg, #1a1030 0%, #0d1b2e 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  font-size: 0.8rem;
  overflow: hidden;
}
.screenshot-item .shot-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.changelog-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.changelog-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}
.changelog-list .cl-ver { font-weight: 700; color: #c4b5fd; margin-right: 8px; }
.changelog-list .cl-date { color: var(--text-muted); font-size: 0.8rem; margin-left: 8px; }

/* ---------- 动态公告 ---------- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}
.news-date { text-align: center; min-width: 56px; flex-shrink: 0; }
.news-date .day { font-size: 1.5rem; font-weight: 700; color: #a78bfa; line-height: 1; }
.news-date .mon { font-size: 0.75rem; color: var(--text-faint); }
.news-item h4 { font-size: 1rem; font-weight: 600; color: #f1f0ff; margin-bottom: 4px; }
.news-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- 简介 / 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.about-text h3 { font-size: 1.3rem; color: #c4b5fd; margin-bottom: 14px; }
.about-text p { color: #c9ccdb; font-size: 0.95rem; line-height: 1.9; margin-bottom: 12px; }

.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-item {
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
.value-item .vi-icon { font-size: 1.8rem; margin-bottom: 8px; }
.value-item h4 { font-size: 0.95rem; color: #e8e8f2; margin-bottom: 4px; }
.value-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap {
  max-width: 420px;
  margin: 48px auto;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.auth-wrap h1 { font-size: 1.5rem; font-weight: 700; text-align: center; color: #f1f0ff; margin-bottom: 6px; }
.auth-wrap .auth-sub { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: #0a0a0f;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }

.form-tip { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.form-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  font-size: 0.85rem;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: #c4b5fd; font-weight: 600; }

/* ---------- 用户中心 ---------- */
.user-page { max-width: 880px; margin: 0 auto; }

.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.user-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #c4b5fd;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.35);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-meta { flex: 1; min-width: 200px; }
.user-meta .nickname { font-size: 1.35rem; font-weight: 700; color: #f1f0ff; }
.user-meta .email { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }

.points-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, var(--card) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.points-info .points-num { font-size: 2.2rem; font-weight: 800; color: #c4b5fd; line-height: 1; }
.points-info .points-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.points-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 1.1rem;
  color: #c4b5fd;
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 3px solid #8b5cf6;
}

.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.avatar-row .user-avatar { width: 64px; height: 64px; }

.cdk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cdk-code { font-family: 'Courier New', monospace; font-weight: 700; color: #c4b5fd; letter-spacing: 1px; }
.cdk-date { color: var(--text-muted); font-size: 0.8rem; }

.form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- 滑块人机验证 ---------- */
.captcha-wrap { margin-bottom: 18px; }

/* 按需弹出的人机验证（点击「发送验证码」后才显示） */
.captcha-gate {
  display: none;
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
}
.captcha-gate.gate-in {
  display: block;
  animation: captchaGateIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes captchaGateIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.captcha-gate .captcha-label {
  color: #c4b5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.captcha-gate .captcha-label::before {
  content: "🛡";
  font-size: 0.95rem;
  line-height: 1;
}
.captcha-gate .slider-captcha { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .captcha-gate.gate-in { animation: none; }
}

.captcha-label { font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.slider-captcha {
  position: relative;
  height: 44px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}
.slider-captcha .track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  pointer-events: none;
}
.slider-captcha .slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(74, 222, 128, 0.18);
  border-radius: 8px 0 0 8px;
  transition: none;
}
.slider-captcha .slider-handle {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 100%;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 1rem;
  color: #c4b5fd;
  z-index: 2;
}
.slider-captcha .slider-handle:active { cursor: grabbing; }
.slider-captcha.success { border-color: var(--success); }
.slider-captcha.success .track-text { color: var(--success); }
.slider-captcha.success .slider-handle { color: var(--success); border-color: var(--success); }

/* ---------- 页脚（固定公示信息） ---------- */
.footer {
  background: #0a0a0f;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  padding: 32px 0 24px;
  margin-top: auto;
}
.footer .container { text-align: center; }
.footer-contact { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.88rem; color: #c9ccdb; }
.footer-contact span b { color: #c4b5fd; }
.footer-icp { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 8px; }
.footer-icp a { color: var(--text-faint); }
.footer-copy { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- 空状态 / 提示 ---------- */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); }
.empty-state .big { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }
.empty-state .btn { margin-top: 16px; }

/* ---------- 爱心评分（模组，静态展示 + 可交互输入共用基础样式） ---------- */
.hearts { display: inline-flex; align-items: center; gap: 3px; }
.hearts .heart { color: #4b455f; font-size: 1rem; line-height: 1; transition: color 0.15s ease, transform 0.15s ease; }
.hearts .heart.on { color: #ff5a8a; text-shadow: 0 0 8px rgba(255, 90, 138, 0.5); }

/* ---------- 响应式：平板 ---------- */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; max-width: 280px;
    height: 100vh;
    flex-direction: column;
    background: #0d0d15;
    padding: 84px 28px 40px;
    gap: 22px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }

  .hero { min-height: 88vh; }
  .hero h1 { font-size: 2rem; letter-spacing: 2px; }
  .hero p { font-size: 0.95rem; }

  .section { padding: 52px 0; }
  .section-head h2 { font-size: 1.5rem; }

  .games-grid { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 6px; }
  .news-date { display: flex; gap: 6px; align-items: baseline; text-align: left; }
  .footer-contact { flex-direction: column; gap: 8px; }
  .auth-wrap { margin: 24px 16px; padding: 28px 20px; }
  .form-inline { grid-template-columns: 1fr; }
  .user-header { padding: 20px; }
  .points-card { padding: 20px; }
  .panel { padding: 20px; }
}

/* ============================================
   滚动下翻渐入动画
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* 交错延迟变体 */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
/* 方向变体 */
.reveal-left { transform: translateX(-44px); }
.reveal-left.revealed { transform: translateX(0); }
.reveal-right { transform: translateX(44px); }
.reveal-right.revealed { transform: translateX(0); }
.reveal-scale { transform: scale(0.92) translateY(16px); }
.reveal-scale.revealed { transform: scale(1) translateY(0); }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 导航栏滚动状态 */
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  background: rgba(10, 10, 15, 0.95);
}

/* ============================================
   3D 卡片倾斜交互（鼠标 hover 时透视倾斜）
   ============================================ */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.tilt-3d .tilt-layer {
  transform: translateZ(24px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 滚动渐入的 3D 纵深变体 */
.reveal-3d {
  transform: perspective(900px) translateY(40px) rotateX(8deg);
  transform-origin: center bottom;
}
.reveal-3d.revealed {
  transform: perspective(900px) translateY(0) rotateX(0deg);
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .tilt-3d { transition: none; transform: none !important; }
  .reveal-3d { transform: none; }
}

/* ============================================
   积分中心 / 商城 / 任务
   ============================================ */
.coin {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff6c8, #ffd54d 45%, #f5a623 80%, #d98a00);
  border: 2px solid #f7c948;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.18), 0 4px 14px rgba(245,166,35,0.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #8a5a00; font-size: 1.15rem;
  flex-shrink: 0;
  position: relative;
}
.coin::after {
  content: "";
  position: absolute;
  top: 7px; left: 12px;
  width: 14px; height: 9px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.coin-lg { width: 80px; height: 80px; font-size: 1.5rem; }
.coin-sm { width: 28px; height: 28px; font-size: 0.7rem; border-width: 1.5px; }

.points-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 32px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.10) 0%, var(--card) 55%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.points-hero .ph-info .ph-num {
  font-size: 2.6rem; font-weight: 800;
  color: #fbbf24; line-height: 1;
  display: flex; align-items: center; gap: 12px;
}
.points-hero .ph-info .ph-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 12px;
  flex-wrap: wrap;
}
.task-item .ti-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(139, 92, 246, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.task-item .ti-main { flex: 1; min-width: 160px; }
.task-item .ti-name { font-weight: 600; font-size: 0.95rem; color: #e8e8f2; }
.task-item .ti-desc { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.task-item .ti-reward { color: #fbbf24; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.task-item .ti-progress { font-size: 0.75rem; color: var(--text-muted); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.shop-card {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}
.shop-card .sc-cover {
  height: 120px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.shop-card .sc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card .sc-game { font-size: 0.8rem; color: var(--text-muted); }
.shop-card .sc-title { font-weight: 700; font-size: 1rem; color: #e8e8f2; }
.shop-card .sc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card .sc-price {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  font-weight: 800; color: #fbbf24; font-size: 1.1rem;
}

/* ============================================
   评论 / 动态 / 点赞
   ============================================ */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-item .ci-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #c4b5fd;
  overflow: hidden; flex-shrink: 0;
}
.comment-item .ci-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-item .ci-body { flex: 1; }
.comment-item .ci-name { font-weight: 600; font-size: 0.88rem; color: #e8e8f2; }
.comment-item .ci-time { color: var(--text-muted); font-size: 0.75rem; margin-left: 8px; }
.comment-item .ci-content { margin-top: 4px; font-size: 0.92rem; line-height: 1.6; }
.comment-item .ci-actions { margin-top: 8px; }

.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; color: var(--text-muted);
  cursor: pointer; user-select: none;
  padding: 3px 10px; border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s ease;
}
.like-btn.liked { color: #ff5a8a; border-color: rgba(255, 90, 138, 0.6); background: rgba(255, 90, 138, 0.12); }
.like-btn:hover { border-color: #8b5cf6; color: #c4b5fd; }

.post-item {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.post-item .pi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-item .pi-content { font-size: 0.94rem; line-height: 1.7; }
.post-item .pi-actions { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

.reply-list { margin-top: 12px; padding: 10px 14px; background: var(--bg-soft); border-radius: 10px; }
.reply-item { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.reply-item:last-child { border-bottom: none; }

/* ============================================
   后台管理
   ============================================ */
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab:hover { color: #d6c9ff; background: rgba(139, 92, 246, 0.12); }
.admin-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 3px 14px rgba(139, 92, 246, 0.35);
}
.admin-tab .badge { margin-left: 2px; }

/* 个人简介编辑器 */
.about-editor { display: flex; flex-direction: column; gap: 16px; }
.ae-section {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.ae-section .ae-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #8b5cf6;
}
.ae-values { display: flex; flex-direction: column; gap: 10px; }
.ae-value-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.6fr 34px;
  gap: 10px;
  align-items: center;
}
.ae-value-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  background: #0a0a0f;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ae-value-row input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.ae-value-row .ae-v-icon { text-align: center; font-size: 1.1rem; }
.ae-value-row .ae-v-del {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.ae-value-row .ae-v-del:hover { background: rgba(248, 113, 113, 0.12); color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.ae-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  background: #0a0a0f;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ae-section textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
@media (max-width: 640px) {
  .ae-value-row { grid-template-columns: 52px 1fr 34px; }
  .ae-value-row .ae-v-desc { grid-column: 1 / 3; }
  .ae-value-row .ae-v-del { grid-column: 3; grid-row: 1; }
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-card .st-num { font-size: 1.9rem; font-weight: 800; color: #c4b5fd; line-height: 1.1; }
.stat-card .st-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 6px; }

.review-item {
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.review-item .rv-content { font-size: 0.94rem; line-height: 1.7; margin: 8px 0; }
.review-item .rv-actions { display: flex; gap: 10px; margin-top: 10px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-pending { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.badge-approved { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.badge-rejected { background: rgba(248, 113, 113, 0.16); color: #f87171; }
.badge-hot { background: rgba(255, 90, 138, 0.16); color: #ff5a8a; }
.badge-admin { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }

/* 删除按钮（评论/动态） */
.like-btn.del-btn { color: #f87171; }
.like-btn.del-btn:hover { color: #ff9a9a; }

/* ============================================
   游戏状态选择器（后台游戏管理）
   ============================================ */
.status-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.status-chip .sc-icon { font-size: 1.15rem; line-height: 1; }
.status-chip .sc-label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.status-chip:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}
.status-chip.active {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.status-chip.active .sc-label { color: #fff; }
/* 各状态专属配色 */
.status-chip[data-status="idea"].active { background: linear-gradient(135deg, #9b8fd0, #7c6bb5); border-color: #7c6bb5; }
.status-chip[data-status="planning"].active { background: linear-gradient(135deg, #5ba0e6, #3a7fc4); border-color: #3a7fc4; }
.status-chip[data-status="dev"].active { background: linear-gradient(135deg, #f59b4a, #e07b1f); border-color: #e07b1f; }
.status-chip[data-status="releasing"].active { background: linear-gradient(135deg, #37c4b0, #1f9e8c); border-color: #1f9e8c; }
.status-chip[data-status="released"].active { background: linear-gradient(135deg, #4caf66, #2f8f47); border-color: #2f8f47; }
/* 模组类型选择器（四选一）选中态统一为绿色 */
.status-chip[data-mtype].active { background: linear-gradient(135deg, #4caf66, #2f8f47); border-color: #2f8f47; }

/* ============================================
   发布对话框（Modal）
   ============================================ */
.ht-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ht-modal-overlay.show { opacity: 1; pointer-events: auto; }
.ht-modal {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 26px 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.25s ease;
  max-height: 86vh;
  overflow-y: auto;
}
.ht-modal-overlay.show .ht-modal { transform: translateY(0) scale(1); }
.ht-modal .hm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ht-modal .hm-title { font-size: 1.12rem; font-weight: 700; color: #c4b5fd; flex: 1; }
.ht-modal .hm-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.ht-modal .hm-close:hover { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.ht-modal textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  background: #0a0a0f;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ht-modal textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.ht-modal .hm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.ht-modal .hm-tip { font-size: 0.78rem; color: var(--text-muted); }
.ht-modal .hm-count { font-size: 0.78rem; color: var(--text-muted); }
.ht-modal .hm-count.over { color: #f87171; font-weight: 600; }
.ht-modal .hm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* 发布对话框 - 媒体上传 */
.hm-media { margin-top: 12px; }
.hm-upload-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hm-thumb {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-thumb-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hm-thumb-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 动态媒体展示 */
.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.post-img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  max-height: 220px;
  transition: transform 0.2s ease;
}
.post-img:hover { transform: scale(1.02); }
.post-video { margin: 12px 0; }
.post-video video {
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  background: #000;
}

/* ============================================
   学术参考（网址导航）
   ============================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
.ref-card .rc-icon { font-size: 2.4rem; line-height: 1; }
.ref-card .rc-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.ref-card .rc-name { font-weight: 700; font-size: 0.95rem; color: #f1f0ff; }
.ref-card .rc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ref-card .rc-clicks { font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ref-grid { grid-template-columns: 1fr; }
}

/* ============================================
   首页热门模组（一行最多 5 个）
   ============================================ */
.home-mods-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.home-mod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px;
  background: var(--card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-mod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
}
.home-mod-card .hmc-icon { font-size: 2.2rem; line-height: 1; }
.home-mod-card .hmc-name {
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  color: #f1f0ff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-mod-card .hmc-game {
  font-size: 0.75rem;
  color: #c4b5fd;
}
.home-mod-card .hmc-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .home-mods-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .home-mods-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: linear-gradient(135deg, #9d74ff, #22d3ee); transform: translateY(-3px); }
