/* 91爆料网 - 汽车改装与视频社区官网 CSS */

:root {
  --primary-color: #FF6B35;
  --secondary-color: #004E89;
  --accent-color: #1B9CFC;
  --dark-bg: #0F0F0F;
  --light-bg: #F5F5F5;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --border-color: #E0E0E0;
}

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

html, body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand-name {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

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

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

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

.search-box input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: #999;
}

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

/* 首屏 Banner */
.hero-banner {
  position: relative;
  height: 500px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('banner1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: slideDown 0.8s ease-out;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: bold;
}

.cta-button:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

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

/* 视频卡片 */
.video-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
}

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

.video-card {
  background: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

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

.video-info {
  padding: 15px;
}

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

.video-stats {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 15px;
}

/* 专家展示 */
.experts-section {
  padding: 60px 0;
  background: var(--text-light);
}

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

.expert-card {
  text-align: center;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.expert-card:hover {
  transform: scale(1.05);
}

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

.expert-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.expert-role {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.expert-bio {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

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

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

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

/* FAQ 部分 */
.faq-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--text-light);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-light);
  font-weight: bold;
  transition: background 0.3s;
}

.faq-question:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 20px;
  display: none;
  color: #666;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

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

/* 用户评论 */
.reviews-section {
  padding: 60px 0;
  background: var(--text-light);
}

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

.review-card {
  background: var(--light-bg);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

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

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
}

.review-name {
  font-weight: bold;
}

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

.review-text {
  color: #666;
  line-height: 1.8;
}

/* 页脚 */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 40px 0 20px;
}

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

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

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

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-qr {
  text-align: center;
  margin-bottom: 20px;
}

.qr-code {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

  .search-box {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

  .search-box {
    width: 100%;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 工具类 */
.text-center {
  text-align: center;
}

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

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

.hidden {
  display: none;
}
