/* ============================================
   91 网站样式表
   设计风格：电竞赛博朋克 + 温暖社区感
   ============================================ */

/* 颜色变量定义 */
:root {
  --primary-purple: #7C3AED;
  --primary-blue: #0EA5E9;
  --accent-green: #22C55E;
  --bg-dark: #0F172A;
  --text-white: #FFFFFF;
  --text-light: #E2E8F0;
  --border-color: #1E293B;
  --hover-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   导航栏
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-white);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-purple);
}

.search-box {
  position: relative;
  width: 200px;
}

.search-box input {
  width: 100%;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary-blue);
  border-radius: 20px;
  color: var(--text-white);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
  outline: none;
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 10px var(--primary-purple);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
  margin-top: 60px;
  height: 60vh;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663721280117/9SewUQovqkZhbY6MXyWtw6/hero-banner-ERwidL8nRYKLD95h2FE3Q8.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
  animation: fadeInDown 0.8s ease;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
  color: var(--text-white);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

.cta-button:active {
  transform: scale(0.97);
}

/* ============================================
   模块通用样式
   ============================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px;
  color: var(--text-white);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
  margin: 15px auto 0;
}

/* ============================================
   卡片样式
   ============================================ */
.card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(14, 165, 233, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover {
  border-color: var(--primary-purple);
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-white);
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   网格布局
   ============================================ */
.grid {
  display: grid;
  gap: 30px;
  margin-bottom: 50px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   视频卡片
   ============================================ */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.play-button::after {
  content: '▶';
  color: var(--text-white);
  font-size: 24px;
  margin-left: 4px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
  }
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: var(--text-white);
  font-size: 14px;
}

.video-stats {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   游戏传媒模块
   ============================================ */
.game-media {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(14, 165, 233, 0.05));
}

/* ============================================
   娱乐专区模块
   ============================================ */
.entertainment {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(124, 58, 237, 0.05));
}

/* ============================================
   AI 赋能模块
   ============================================ */
.ai-section {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(34, 197, 94, 0.05));
}

.ai-card {
  text-align: center;
}

.ai-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 30px;
}

/* ============================================
   社区功能模块
   ============================================ */
.community-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(34, 197, 94, 0.05));
}

/* ============================================
   专家展示模块
   ============================================ */
.expert-card {
  text-align: center;
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid var(--primary-purple);
  object-fit: cover;
}

.expert-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.expert-position {
  font-size: 12px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.expert-bio {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.4;
}

.expert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.expert-btn {
  padding: 6px 12px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--primary-purple);
  color: var(--primary-purple);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.expert-btn:hover {
  background: var(--primary-purple);
  color: var(--text-white);
}

/* ============================================
   合作品牌墙
   ============================================ */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  border-color: var(--primary-purple);
  box-shadow: var(--hover-shadow);
}

/* ============================================
   加入社区指南
   ============================================ */
.join-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.join-guide-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.join-guide-image img {
  width: 100%;
  height: auto;
}

.join-guide-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.join-guide-content ol {
  list-style: none;
  counter-reset: step-counter;
  margin-bottom: 30px;
}

.join-guide-content li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.join-guide-content li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: bold;
  font-size: 12px;
}

/* ============================================
   FAQ 模块
   ============================================ */
.faq-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(124, 58, 237, 0.1);
}

.faq-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 15px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   用户评价模块
   ============================================ */
.review-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.review-content h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.review-rating {
  color: #FFD700;
  font-size: 12px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   联系方式模块
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(14, 165, 233, 0.1));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-purple);
}

.contact-item p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.contact-item a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-purple);
}

.qr-code {
  width: 150px;
  height: 150px;
  margin: 15px auto;
  background: var(--text-white);
  border-radius: 8px;
  padding: 10px;
}

/* ============================================
   底部
   ============================================ */
footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--primary-purple);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-blue);
}

.social-share {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--primary-purple);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.social-btn:hover {
  background: var(--primary-purple);
  color: var(--text-white);
  transform: scale(1.1);
}

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

.footer-bottom p {
  margin-bottom: 10px;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .hero {
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
  }

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

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

  .join-guide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
  }

  .nav-menu {
    gap: 10px;
    font-size: 12px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .card {
    padding: 15px;
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
