/* ============================================
   91 - 游戏解说社区网站
   原创设计 - 游戏主题风格
   ============================================ */

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

:root {
  --primary-color: #ff1493;
  --secondary-color: #6a0dad;
  --accent-color: #00d4ff;
  --dark-bg: #0a0e27;
  --light-text: #ffffff;
  --gray-text: #b0b0b0;
  --card-bg: #1a1f3a;
  --border-color: #2d3561;
  --success-color: #00ff88;
  --warning-color: #ffaa00;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ 头部导航 ============ */
header {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--light-text);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* ============ 搜索框 ============ */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 8px 15px;
  gap: 10px;
  transition: all 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
  border-color: var(--primary-color);
  background: rgba(255, 20, 147, 0.15);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--light-text);
  width: 200px;
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--gray-text);
}

.search-box button {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s ease;
}

.search-box button:hover {
  color: var(--accent-color);
}

/* ============ Banner 区域 ============ */
.banner {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,20,147,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  animation: fadeInUp 1s ease-out;
}

.banner-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 20, 147, 0.3);
}

.banner-subtitle {
  font-size: 20px;
  color: var(--gray-text);
  margin-bottom: 30px;
  font-weight: 300;
}

.banner-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #ff69b4);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

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

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============ 视频卡片 ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
  overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 20, 147, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light-text);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-text);
}

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

/* ============ 专家展示 ============ */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.expert-card {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  transition: all 0.3s ease;
}

.expert-card:hover .expert-avatar {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.expert-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.expert-title {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
}

.expert-bio {
  color: var(--gray-text);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.expert-actions a {
  padding: 8px 15px;
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.expert-actions a:hover {
  background: var(--primary-color);
  color: white;
}

/* ============ FAQ 部分 ============ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

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

.faq-question:hover {
  color: var(--primary-color);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  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;
  background: rgba(255, 20, 147, 0.05);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* ============ 用户评论 ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.review-user {
  flex: 1;
}

.review-name {
  font-weight: 600;
  margin-bottom: 3px;
}

.review-rating {
  color: var(--warning-color);
  font-size: 13px;
}

.review-text {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-date {
  color: var(--gray-text);
  font-size: 12px;
}

/* ============ 页脚 ============ */
footer {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(26, 31, 58, 0.98) 100%);
  border-top: 2px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.footer-section a {
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

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

.footer-qr {
  text-align: center;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  color: var(--gray-text);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  nav ul {
    gap: 15px;
    font-size: 13px;
  }

  .search-box {
    display: none;
  }

  .banner {
    height: 400px;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

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

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

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

@media (max-width: 480px) {
  .banner-title {
    font-size: 28px;
  }

  .banner-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .logo-text {
    font-size: 18px;
  }
}

/* ============ 加载动画 ============ */
.loading {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: pulse 1.5s infinite;
}

/* ============ 辅助类 ============ */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.hidden {
  display: none !important;
}
