/* ==========================================
   高清动漫 - 游戏解说社区网站
   设计主题：高端游戏工作室风格
   色彩方案：深蓝黑 + 金色 + 白色
   ========================================== */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* 重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #1a1a2e;
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

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

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

h4 {
  font-size: 1.4rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd700;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #e0e0e0;
}

a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffed4e;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #ffd700;
  background-color: transparent;
  color: #ffd700;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-align: center;
}

.btn:hover {
  background-color: #ffd700;
  color: #1a1a2e;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-primary {
  background-color: #ffd700;
  color: #1a1a2e;
  border-color: #ffd700;
}

.btn-primary:hover {
  background-color: #ffed4e;
  border-color: #ffed4e;
  box-shadow: 0 0 30px rgba(255, 237, 78, 0.5);
}

.btn-secondary {
  border-color: #06b6d4;
  color: #06b6d4;
}

.btn-secondary:hover {
  background-color: #06b6d4;
  color: #1a1a2e;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* 导航栏 */
.navbar {
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
  font-family: 'Montserrat', sans-serif;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

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

.navbar-menu a {
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: #ffd700;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 4px;
  padding: 8px 12px;
  gap: 8px;
}

.search-box input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

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

.search-box button {
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
  font-size: 1rem;
}

/* 英雄区 */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663686700291/SbAyLDFiRLXZQsg7Fq3SFP/hero_bg_lol_style-DwofCMHxARnMcNFwo5DGxy.webp') center/cover;
  opacity: 0.6;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, rgba(26, 26, 46, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

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

/* 内容区块 */
.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  z-index: 2;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

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

.video-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #0f3460;
  overflow: hidden;
}

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

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

.video-play-btn::after {
  content: '▶';
  color: #1a1a2e;
  font-size: 1.5rem;
  margin-left: 3px;
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a0a0a0;
  margin-top: 10px;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #ffd700;
}

/* 特色内容模块 */
.feature-module {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-module img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.feature-module h3 {
  color: #ffd700;
  margin-bottom: 1.5rem;
}

.feature-module ul {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-module li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #e0e0e0;
}

.feature-module li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: bold;
}

/* FAQ 区块 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-item:hover .faq-question {
  background-color: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #ffd700;
  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;
  color: #e0e0e0;
  line-height: 1.8;
}

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

/* 用户评论区块 */
.comments-container {
  max-width: 900px;
  margin: 0 auto;
}

.comment-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #ffd700;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.comment-item:hover {
  background-color: rgba(255, 215, 0, 0.05);
  transform: translateX(5px);
}

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

.comment-author {
  font-weight: 600;
  color: #ffd700;
  font-size: 1.05rem;
}

.comment-rating {
  color: #ffd700;
  font-size: 0.9rem;
}

.comment-text {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 10px;
}

.comment-date {
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* 页脚 */
footer {
  background-color: #0f1620;
  border-top: 2px solid rgba(255, 215, 0, 0.2);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  padding: 5px;
  background-color: #ffffff;
}

.footer-qrcode-label {
  font-size: 0.85rem;
  color: #a0a0a0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  color: #a0a0a0;
  font-size: 0.9rem;
}

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

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

.footer-links a {
  color: #a0a0a0;
  font-size: 0.85rem;
}

/* 动画 */
@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 slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease;
}

.slide-in-right {
  animation: slideInRight 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar-menu {
    gap: 15px;
  }

  .search-box input {
    width: 120px;
  }

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

  .feature-module {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }

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

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .navbar-menu {
    display: none;
  }

  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 15px;
  }
}
