/* 91 修车改装视频社区 - 主样式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #e63946;
  --dark-bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --text-light: #e8e8e8;
  --text-muted: #999;
  --accent-blue: #00d4ff;
  --silver: #c0c0c0;
  --border-color: #333;
}

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

/* ===== 头部导航 ===== */
header {
  background-color: rgba(15, 15, 15, 0.95);
  border-bottom: 2px solid var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  color: var(--primary-red);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

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

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

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

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

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 8px 15px;
  width: 200px;
}

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

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

/* ===== 英雄区域 ===== */
.hero {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%),
              url('https://d2xsxph8kpxj0f.cloudfront.net/310519663744617410/dpt9D9WS9ysazAgdmuUZoa/hero_banner_car_mod-FwEnGHYRqh2ZBRBYmh4eWq.webp') center/cover;
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 15, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero h1 .brand {
  color: var(--primary-red);
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  font-weight: 300;
}

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

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

.btn-primary {
  background-color: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background-color: #d62828;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
  background-color: var(--primary-red);
  color: white;
}

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

section {
  padding: 80px 20px;
}

section h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 1px;
}

section h2 .brand {
  color: var(--primary-red);
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(230, 57, 70, 0.1) 100%);
  overflow: hidden;
}

.video-thumbnail video,
.video-thumbnail img {
  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-color: rgba(230, 57, 70, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.play-button::after {
  content: '▶';
  color: white;
  font-size: 24px;
  margin-left: 3px;
}

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

.video-info {
  padding: 15px;
}

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

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

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

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

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

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

.faq-question {
  padding: 20px;
  background-color: var(--card-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(230, 57, 70, 0.1);
}

.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.faq-toggle {
  font-size: 20px;
  color: var(--primary-red);
  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-color: rgba(230, 57, 70, 0.05);
}

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

.faq-answer p {
  padding: 20px;
  color: var(--text-light);
  margin: 0;
}

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

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

.review-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 5px 20px rgba(230, 57, 70, 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-red), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 20px;
}

.review-user {
  flex: 1;
}

.review-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
}

.review-user-title {
  font-size: 12px;
  color: var(--text-muted);
}

.review-rating {
  color: var(--primary-red);
  font-size: 14px;
  margin-bottom: 10px;
}

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

/* ===== 页脚 ===== */
footer {
  background-color: var(--card-bg);
  border-top: 2px solid var(--primary-red);
  padding: 50px 20px;
  margin-top: 80px;
}

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

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

.footer-section a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

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

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

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

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

.qr-code img {
  width: 100px;
  height: 100px;
  border: 2px solid var(--primary-red);
  border-radius: 5px;
}

.qr-code p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

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

  nav {
    gap: 15px;
    font-size: 12px;
  }

  .search-box {
    width: 150px;
  }

  .hero {
    padding: 60px 20px;
  }

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

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 50px 20px;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 20px;
  }

  nav {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .search-box {
    width: 100%;
    margin-top: 10px;
  }

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

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

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

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

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

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

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

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

.expert-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.expert-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(230, 57, 70, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.expert-info {
  padding: 20px;
}

.expert-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-red);
}

.expert-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

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

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

.expert-actions a {
  padding: 8px 15px;
  background-color: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.expert-actions a:hover {
  background-color: #d62828;
}

/* ===== 合作品牌墙 ===== */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.brand-logo {
  width: 120px;
  height: 80px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-red);
  transition: all 0.3s ease;
}

.brand-logo:hover {
  border-color: var(--primary-red);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

/* ===== 社交分享 ===== */
.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.share-btn:hover {
  background-color: var(--primary-red);
  color: white;
  transform: scale(1.1);
}
