/* 
 * 麻豆 - 全局样式表
 * 设计理念：现代简约 + 活力渐变 + 视频社区感
 * 色系：粉紫渐变 + 深蓝 + 白色
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* ===== 全局变量与主题 ===== */
:root {
  --primary-pink: #ff6b9d;
  --primary-purple: #c44569;
  --primary-blue: #1e3a8a;
  --secondary-light: #fef3f8;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-light: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col {
  flex: 1;
  padding: 10px;
  min-width: 250px;
}

.col-1 { flex: 0 0 calc(8.333% - 20px); }
.col-2 { flex: 0 0 calc(16.666% - 20px); }
.col-3 { flex: 0 0 calc(25% - 20px); }
.col-4 { flex: 0 0 calc(33.333% - 20px); }
.col-6 { flex: 0 0 calc(50% - 20px); }
.col-12 { flex: 0 0 calc(100% - 20px); }

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .col { min-width: 100%; }
  .col-md-1 { flex: 0 0 calc(8.333% - 20px); }
  .col-md-2 { flex: 0 0 calc(16.666% - 20px); }
  .col-md-3 { flex: 0 0 calc(25% - 20px); }
  .col-md-4 { flex: 0 0 calc(33.333% - 20px); }
  .col-md-6 { flex: 0 0 calc(50% - 20px); }
  .col-md-12 { flex: 0 0 calc(100% - 20px); }
}

/* ===== 头部导航 ===== */
header {
  background: linear-gradient(135deg, #fff 0%, #fef3f8 100%);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

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

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pink), var(--primary-purple));
  transition: width 0.3s ease;
}

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

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

/* 搜索框 */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 25px;
  padding: 8px 15px;
  width: 250px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

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

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

.search-icon {
  color: var(--primary-pink);
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.tag-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
}

.tag-secondary {
  background: var(--secondary-light);
  color: var(--primary-pink);
}

/* 移动菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  nav { display: none; }
  nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; gap: 15px; }
  .search-box { width: 100%; margin-top: 15px; }
}

/* ===== 英雄区 ===== */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fef3f8 50%, #f0e6ff 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-pink);
  border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

/* ===== 卡片 ===== */
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0e6ff, #fef3f8);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.card-meta {
  font-size: 12px;
  color: #999;
}

/* ===== 视频卡片 ===== */
.video-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 15px;
}

.video-card-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f0e6ff, #fef3f8);
  object-fit: cover;
  transition: var(--transition);
}

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

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 157, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: var(--transition);
}

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

.video-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
}

.video-meta {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  gap: 15px;
}

/* ===== 分区模块 ===== */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header .section-title {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--secondary-light);
  color: var(--primary-pink);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
}

/* ===== 评论区 ===== */
.comment {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-light);
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.comment-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-rating {
  color: var(--warning);
  font-size: 14px;
  margin-bottom: 5px;
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  background: white;
}

.faq-question:hover {
  background: var(--secondary-light);
  color: var(--primary-pink);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-pink);
  font-size: 18px;
  transition: var(--transition);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--secondary-light);
}

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

.faq-answer-content {
  padding: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 页脚 ===== */
footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8c 100%);
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
  padding-left: 5px;
}

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

.footer-qr {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

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

.qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  background: white;
  padding: 5px;
}

.qr-label {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.9;
}

/* ===== 实用工具类 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }

.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }
.pb-60 { padding-bottom: 60px; }

.hidden { display: none; }
.visible { display: block; }

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

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

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

  nav {
    gap: 15px;
  }

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

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

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

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

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

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

  .btn {
    width: 100%;
  }

  .row {
    margin: -5px;
  }

  .col {
    padding: 5px;
  }
}
