/* ========================================
   17c一起草·互动直播平台 - 全局样式
   电竞娱乐 + 炫彩霓虹 视觉风格
   ======================================== */

/* CSS 变量定义 */
:root {
  --neon-pink: #FF0055;
  --grass-green: #00D26A;
  --deep-dark: #1A1A24;
  --bg-color: #0F0F1A;
  --text-color: #FFFFFF;
  --text-muted: #A0A0B8;
  --card-bg: #1E1E2E;
  --card-hover: #2A2A3E;
  --border-color: #2D2D42;
  --gradient-pink: linear-gradient(135deg, #FF0055, #FF3377);
  --gradient-green: linear-gradient(135deg, #00D26A, #00FF88);
  --gradient-dark: linear-gradient(180deg, #0F0F1A, #1A1A24);
  --shadow-neon-pink: 0 0 20px rgba(255, 0, 85, 0.3);
  --shadow-neon-green: 0 0 20px rgba(0, 210, 106, 0.3);
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-title: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--neon-pink);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--grass-green);
  text-shadow: 0 0 8px rgba(0, 210, 106, 0.5);
}

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

ul, ol {
  list-style: none;
}

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

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 头部导航 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-pink);
  transition: var(--transition);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

.btn-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-search:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.btn-download {
  padding: 8px 20px;
  background: var(--gradient-pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download:hover {
  box-shadow: var(--shadow-neon-pink);
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

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

/* ========== 英雄区域/轮播 ========== */
.hero-section {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 480px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.95));
}

.hero-overlay h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

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

.hero-dots .dot.active {
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.category-item:hover {
  border-color: var(--neon-pink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon-pink);
}

.category-item .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}

.category-item .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-item .cat-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

/* ========== 区块标题 ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient-pink);
  border-radius: 2px;
}

.section-more {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-more:hover {
  color: var(--neon-pink);
}

/* ========== 直播间网格 ========== */
.live-section {
  padding: 20px 0 60px;
}

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

.live-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

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

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

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

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

.live-card .live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  background: var(--neon-pink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  animation: pulse-badge 2s infinite;
}

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

.live-card .viewer-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-card .card-info {
  padding: 14px;
}

.live-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.live-card .card-streamer .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-green);
}

/* ========== 主页布局（含侧边栏） ========== */
.main-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 40px 0;
}

/* ========== 侧边栏排行榜 ========== */
.sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
}

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

.ranking-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.ranking-tabs .tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.ranking-tabs .tab.active {
  color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
}

.ranking-list {
  padding: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(45, 45, 66, 0.5);
}

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

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

.ranking-item:nth-child(1) .rank-num {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.ranking-item:nth-child(2) .rank-num {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #000;
}

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

.ranking-item .rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-green);
  overflow: hidden;
}

.ranking-item .rank-info {
  flex: 1;
}

.ranking-item .rank-name {
  font-size: 0.85rem;
  font-weight: 500;
}

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

/* ========== 新人主播推荐 ========== */
.newcomer-section {
  padding: 40px 0 60px;
}

.newcomer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.newcomer-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

.newcomer-card .nc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--grass-green);
}

.newcomer-card .nc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.newcomer-card .nc-tag {
  font-size: 0.75rem;
  color: var(--grass-green);
  padding: 2px 8px;
  background: rgba(0, 210, 106, 0.1);
  border-radius: 10px;
  display: inline-block;
}

/* ========== 直播间沉浸式界面 ========== */
.immersive-live {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 40px 0;
}

.immersive-video {
  position: relative;
  background: #000;
}

.immersive-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive-chat {
  background: var(--deep-dark);
  display: flex;
  flex-direction: column;
}

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

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

.chat-msg {
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg .msg-user {
  color: var(--grass-green);
  font-weight: 500;
}

.chat-msg .msg-text {
  color: var(--text-muted);
}

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

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 0.85rem;
  outline: none;
}

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

.chat-input .btn-send {
  padding: 10px 18px;
  background: var(--gradient-pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

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

.gift-panel .panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--neon-pink);
}

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

.gift-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--deep-dark);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.gift-item:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 85, 0.1);
}

.gift-item .gift-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.gift-item .gift-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gift-item .gift-price {
  font-size: 0.7rem;
  color: var(--neon-pink);
  margin-top: 2px;
}

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

.pk-header {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--neon-pink);
}

.pk-progress {
  display: flex;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pk-left {
  background: var(--gradient-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 0.5s ease;
}

.pk-right {
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 0.5s ease;
}

.pk-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== 弹幕动画 ========== */
.danmaku-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  margin: 20px 0;
}

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

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

/* ========== 筛选器 ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.filter-tag {
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
  background: rgba(255, 0, 85, 0.15);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--deep-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand .brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--neon-pink);
}

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

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

.footer-links {
  display: flex;
  gap: 20px;
}

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

/* ========== 内页通用 ========== */
.page-banner {
  margin-top: 64px;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(15, 15, 26, 0.9));
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.page-content {
  padding: 40px 0 80px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-muted);
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-color);
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-color);
}

/* ========== 搜索页 ========== */
.search-section {
  padding: 120px 0 80px;
  text-align: center;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  gap: 12px;
}

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

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

.search-box button {
  padding: 14px 30px;
  background: var(--gradient-pink);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  box-shadow: var(--shadow-neon-pink);
}

.search-results {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.search-result-item {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item h3 a {
  font-size: 1.1rem;
  color: var(--text-color);
}

.search-result-item h3 a:hover {
  color: var(--neon-pink);
}

.search-result-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

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

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

.error-page h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

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

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient-pink);
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* ========== APP下载页 ========== */
.app-hero {
  margin-top: 64px;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.app-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.app-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.app-buttons {
  display: flex;
  gap: 16px;
}

.app-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.app-btn.ios {
  background: var(--text-color);
  color: var(--bg-color);
}

.app-btn.android {
  background: var(--gradient-green);
  color: #fff;
}

.app-mockup img {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(255, 0, 85, 0.2);
}

/* ========== 合规信任页 ========== */
.legal-page {
  margin-top: 64px;
  padding: 60px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 28px 0 14px;
  color: var(--text-color);
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  list-style: disc;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  .live-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-carousel {
    height: 360px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .newcomer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .immersive-live {
    grid-template-columns: 1fr;
    height: auto;
  }
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-carousel {
    height: 260px;
  }
  .hero-overlay h2 {
    font-size: 1.4rem;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .live-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .newcomer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gift-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .page-banner {
    height: 200px;
  }
  .page-banner h1 {
    font-size: 1.6rem;
  }
}

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

/* ========== 动画 ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--neon-pink); }
  50% { box-shadow: 0 0 20px var(--neon-pink), 0 0 40px rgba(255, 0, 85, 0.3); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}
