/* ============================================
   黄瓜视频 互动直播平台 - 核心样式表
   电竞娱乐 + 炫彩霓虹视觉风格
   ============================================ */

/* CSS变量定义 */
:root {
  --primary: #9146FF;
  --primary-light: #B380FF;
  --primary-dark: #6B2FCC;
  --accent: #00FF00;
  --accent-dark: #00CC00;
  --bg-dark: #0E0E10;
  --bg-card: #18181B;
  --bg-elevated: #1F1F23;
  --bg-hover: #26262C;
  --text-primary: #EFEFF1;
  --text-secondary: #ADADB8;
  --text-muted: #848494;
  --border-color: #2F2F35;
  --danger: #FF4444;
  --warning: #FFB800;
  --success: #00FF00;
  --gradient-neon: linear-gradient(135deg, #9146FF 0%, #00FF00 100%);
  --gradient-purple: linear-gradient(135deg, #9146FF 0%, #B380FF 100%);
  --shadow-neon: 0 0 20px rgba(145, 70, 255, 0.3);
  --shadow-green: 0 0 20px rgba(0, 255, 0, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1400px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   头部导航
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.site-logo:hover {
  color: var(--primary);
  text-shadow: var(--shadow-neon);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.main-nav a.active {
  color: var(--primary);
  background: rgba(145, 70, 255, 0.1);
}

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

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-neon);
  transform: translateY(-1px);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(145, 70, 255, 0.1);
  box-shadow: var(--shadow-neon);
  color: var(--primary-light);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
}

/* ============================================
   轮播横幅
   ============================================ */
.hero-carousel {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 21/9;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(14, 14, 16, 0.9));
}

.carousel-overlay h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.carousel-overlay p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* ============================================
   分类导航金刚区
   ============================================ */
.category-nav {
  padding: 30px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.category-item:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
}

.category-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.category-item:hover img {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.category-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   直播间网格
   ============================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-neon);
  border-radius: 2px;
}

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

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

.live-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

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

.live-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.live-card:hover .live-card-cover img {
  transform: scale(1.05);
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--danger);
  color: #fff;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-viewers {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  background: rgba(0,0,0,0.7);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.live-card-info {
  padding: 12px;
  display: flex;
  gap: 10px;
}

.streamer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}

.live-card-meta h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-card-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   侧边栏排行榜
   ============================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0;
}

.sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
}

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

.rank-panel h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: 4px;
}

.rank-tab {
  flex: 1;
  padding: 6px 12px;
  text-align: center;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.rank-tab.active {
  background: var(--primary);
  color: #fff;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.rank-item:hover {
  background: var(--bg-elevated);
}

.rank-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.rank-item:nth-child(1) .rank-number {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--bg-dark);
}

.rank-item:nth-child(2) .rank-number {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: var(--bg-dark);
}

.rank-item:nth-child(3) .rank-number {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
}

.rank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

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

.rank-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  font-size: 0.7rem;
  color: var(--accent);
}

/* ============================================
   虚拟礼物打赏面板
   ============================================ */
.gift-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  border: 1px solid var(--border-color);
}

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

.gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.gift-item:hover {
  background: rgba(145, 70, 255, 0.1);
  transform: scale(1.05);
}

.gift-icon {
  font-size: 1.5rem;
}

.gift-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.gift-price {
  font-size: 0.65rem;
  color: var(--warning);
}

/* ============================================
   主播PK条
   ============================================ */
.pk-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border-color);
}

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

.pk-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-player img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.pk-vs {
  font-weight: 700;
  color: var(--warning);
  font-size: 0.9rem;
}

.pk-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
}

.pk-progress-left {
  background: var(--primary);
  transition: width 0.5s ease;
}

.pk-progress-right {
  background: var(--accent);
  transition: width 0.5s ease;
}

/* ============================================
   直播间沉浸界面
   ============================================ */
.live-room {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - 60px);
  margin-top: 60px;
}

.live-player {
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-panel {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.chat-message {
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-username {
  color: var(--primary-light);
  font-weight: 600;
  margin-right: 6px;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary);
}

/* ============================================
   弹幕滚动动画
   ============================================ */
.danmaku-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  animation: danmaku-scroll 8s linear infinite;
}

@keyframes danmaku-scroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* ============================================
   筛选器
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
  background: rgba(145, 70, 255, 0.15);
  color: var(--primary-light);
  border-color: var(--primary);
}

/* ============================================
   新人推荐专区
   ============================================ */
.newbie-section {
  padding: 30px 0;
  background: linear-gradient(180deg, transparent, rgba(145, 70, 255, 0.03));
}

.newbie-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

.newbie-card {
  min-width: 200px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.newbie-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-green);
}

.newbie-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.newbie-info {
  padding: 12px;
  text-align: center;
}

.newbie-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.newbie-tag {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(0, 255, 0, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   充值中心
   ============================================ */
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.recharge-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.recharge-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.recharge-card.popular {
  border-color: var(--warning);
  position: relative;
}

.recharge-card.popular::after {
  content: '热门';
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 2px 10px;
  background: var(--warning);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
}

.recharge-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 4px;
}

.recharge-coins {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.recharge-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ============================================
   专题页面
   ============================================ */
.topic-hero {
  position: relative;
  margin-top: 60px;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.topic-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(14, 14, 16, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.topic-hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.topic-hero-overlay p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ============================================
   搜索页
   ============================================ */
.search-container {
  max-width: 700px;
  margin: 100px auto 40px;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.search-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

/* ============================================
   404页面
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

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

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

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

/* ============================================
   内容区域
   ============================================ */
.content-section {
  padding: 40px 0;
}

.content-section h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.content-section h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================
   移动端汉堡菜单
   ============================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   响应式断点
   ============================================ */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-carousel .carousel-slide {
    aspect-ratio: 16/9;
  }
  .carousel-overlay h2 {
    font-size: 1.2rem;
  }
  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .live-room {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-panel {
    height: 400px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .topic-hero-overlay h1 {
    font-size: 1.5rem;
  }
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .live-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .recharge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(145, 70, 255, 0.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 7px var(--primary), 0 0 10px var(--primary), 0 0 21px var(--primary);
  animation: neon-flicker 3s infinite;
}

.glow-border {
  animation: glow-pulse 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* 贵族特权标识 */
.noble-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.noble-king {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: var(--bg-dark);
}

.noble-duke {
  background: linear-gradient(135deg, #9146FF, #B380FF);
  color: #fff;
}

.noble-earl {
  background: linear-gradient(135deg, #00CED1, #00FF7F);
  color: var(--bg-dark);
}

/* 页面内容通用 */
.page-wrapper {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* 合规页面 */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.legal-content p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 12px;
}
