/* 麻豆 - 品牌主题影视传媒网站 CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF4500;
  --secondary-color: #FF8C00;
  --accent-color: #FFD700;
  --dark-bg: #1a1a1a;
  --light-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #eeeeee;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

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

/* 头部导航 */
header {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  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-weight: bold;
  color: var(--primary-color);
  font-size: 18px;
}

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

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

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

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

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--border-color);
  border-radius: 20px;
  padding: 8px 15px;
  width: 200px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 16px;
}

/* Hero 部分 */
.hero {
  background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
  background-image: url('/public/images/logo.png');
  background-size: cover;
  background-position: center;
  color: white;
  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(0,0,0,0.3);
  z-index: 1;
}

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

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

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

section {
  padding: 80px 20px;
}

section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
  color: var(--text-dark);
}

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

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

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

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  overflow: hidden;
}

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

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

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

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
}

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

/* 功能模块 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ 部分 */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

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

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

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

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-light);
}

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

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

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

.review-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  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: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.review-name {
  font-weight: 700;
  color: var(--text-dark);
}

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

.review-text {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 专家展示 */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.expert-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 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(--text-dark);
}

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

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

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

.expert-actions a {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.expert-actions a:first-child:hover {
  background: var(--secondary-color);
}

.expert-actions a:last-child {
  background: var(--border-color);
  color: var(--text-dark);
}

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

/* 页脚 */
footer {
  background: var(--dark-bg);
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  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-color);
}

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

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

.footer-section a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

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

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

.qr-code {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-dark);
}

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

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

.update-time {
  color: var(--primary-color);
  font-weight: 600;
}

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

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .search-box {
    width: 150px;
  }

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

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

  section {
    padding: 50px 20px;
  }

  section h2 {
    font-size: 28px;
  }

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

  .feature-grid {
    gap: 20px;
  }

  .footer-content {
    gap: 30px;
  }
}

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

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

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

  .hero {
    padding: 60px 20px;
  }

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

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

  .cta-button {
    padding: 12px 30px;
    font-size: 14px;
  }

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

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

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

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