/* 芒果视频 修车改装视频社区 - 原创品牌样式表 */
/* 设计理念：现代科技感 + 汽车文化 + 视频社区属性 */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #0066ff;
  --accent-color: #ff4444;
  --light-bg: #f5f5f5;
  --dark-bg: #0a0a0a;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* 头部导航 */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

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

.logo-text {
  background: linear-gradient(135deg, #0066ff, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航菜单 */
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #0066ff;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066ff;
  transition: width 0.3s ease;
}

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

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

.search-box:hover {
  background: rgba(255,255,255,0.15);
  border-color: #0066ff;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  width: 150px;
  font-size: 14px;
}

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

.search-icon {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

/* Banner 英雄区域 */
.hero-banner {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(255,68,68,0.1)), 
              url('/images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.7), rgba(0,102,255,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #0066ff, #0052cc);
  color: white;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,102,255,0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,102,255,0.4);
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 内容区域 */
main {
  min-height: calc(100vh - 400px);
  padding: 40px 0;
}

/* 模块标题 */
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #00ccff);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.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: rgba(255,68,68,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

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

.video-play-btn::after {
  content: '▶';
  color: white;
  font-size: 24px;
  margin-left: 4px;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  line-height: 1.4;
}

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

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* 内容模块 */
.content-section {
  margin-bottom: 60px;
}

.section-header {
  margin-bottom: 30px;
}

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

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

.faq-item:hover {
  box-shadow: var(--shadow);
}

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

.faq-question:hover {
  background: #f0f0f0;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: bold;
  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 18px;
}

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

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.review-card {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #00ccff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.review-user-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.review-user-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-rating {
  color: #ffc107;
  font-size: 14px;
  margin-bottom: 10px;
}

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

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

.expert-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.expert-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #0066ff, #00ccff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60px;
  overflow: hidden;
}

.expert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-info {
  padding: 20px;
}

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

.expert-role {
  font-size: 13px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

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

.expert-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--secondary-color);
  background: white;
  color: var(--secondary-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* 合作品牌 */
.partners-container {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 50px;
}

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

.partner-logo {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-logo:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 联系我们 */
.contact-section {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
  padding: 50px 0;
  margin-top: 50px;
}

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

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: #0066ff;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #0066ff;
}

.contact-card p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
}

.contact-card a {
  color: #00ccff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: #0066ff;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

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

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #0066ff;
}

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

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

.footer-section a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

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

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

.qr-code-item img {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 5px;
  background: white;
}

.qr-code-label {
  font-size: 12px;
  margin-top: 8px;
  color: rgba(255,255,255,0.7);
}

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

  nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .search-box {
    width: 100%;
  }

  .hero-banner {
    height: 350px;
  }

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

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

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

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

  .faq-container {
    max-width: 100%;
  }

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

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

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

  .hero-banner {
    height: 280px;
  }

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

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

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

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 12px;
  }
}
