/* ========================================
   麻豆 - 全站CSS样式
   原创配色：深紫色 + 亮粉色 + 深灰色
   设计理念：现代、活力、专业
   ======================================== */

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

:root {
  --primary-purple: #6B46C1;
  --accent-pink: #EC4899;
  --dark-bg: #1F2937;
  --light-text: #F3F4F6;
  --secondary-gray: #374151;
  --border-color: #4B5563;
  --hover-purple: #7C3AED;
  --hover-pink: #F472B6;
}

html {
  scroll-behavior: smooth;
}

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

/* ========== 通用样式 ========== */

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

a {
  color: var(--accent-pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

button, .btn {
  background-color: var(--primary-purple);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: 600;
}

button:hover, .btn:hover {
  background-color: var(--hover-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.3);
}

button:active, .btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--accent-pink);
}

.btn-secondary:hover {
  background-color: var(--hover-pink);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3);
}

/* ========== 头部导航 ========== */

header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--primary-purple);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

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

.logo img {
  height: 40px;
  width: auto;
  alt: "麻豆";
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

nav a {
  color: var(--light-text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(107, 70, 193, 0.2);
  color: var(--accent-pink);
}

/* ========== 搜索框 ========== */

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 15px;
  gap: 10px;
  transition: all 0.3s ease;
}

.search-box:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-pink);
}

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

.search-box input::placeholder {
  color: rgba(243, 244, 246, 0.5);
}

.search-box button {
  background: none;
  border: none;
  color: var(--accent-pink);
  cursor: pointer;
  padding: 0;
  font-size: 18px;
}

.search-box button:hover {
  color: var(--hover-pink);
  transform: none;
  box-shadow: none;
}

/* ========== Hero Banner ========== */

.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663735380863/aqLVFawegz3xY37wDVCN65/hero-banner-aDmQy24uWrhdmZqskWqaXV.webp') center/cover no-repeat;
  opacity: 0.6;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.7), rgba(107, 70, 193, 0.3));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: rgba(243, 244, 246, 0.9);
  margin-bottom: 30px;
}

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

/* ========== 内容模块 ========== */

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  color: white;
}

.section-title span {
  color: var(--accent-pink);
}

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

.card {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-pink);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.card-description {
  font-size: 14px;
  color: rgba(243, 244, 246, 0.7);
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--accent-pink);
}

/* ========== 视频卡片 ========== */

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/9;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--accent-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
}

.video-card:hover .play-button {
  transform: scale(1.1);
  background: var(--hover-pink);
}

/* ========== FAQ ========== */

.faq-item {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

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

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

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--accent-pink);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

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

.faq-answer p {
  color: rgba(243, 244, 246, 0.8);
  line-height: 1.8;
}

/* ========== 用户评论 ========== */

.review-item {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.review-item:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.1);
}

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

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

.review-info h4 {
  color: white;
  margin-bottom: 5px;
}

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

.review-text {
  color: rgba(243, 244, 246, 0.8);
  line-height: 1.8;
  font-style: italic;
}

/* ========== 专家展示 ========== */

.expert-card {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-pink);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.expert-avatar {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: white;
}

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

.expert-role {
  color: var(--accent-pink);
  font-size: 14px;
  margin-bottom: 15px;
}

.expert-bio {
  color: rgba(243, 244, 246, 0.7);
  font-size: 14px;
  padding: 0 15px;
  margin-bottom: 15px;
}

.expert-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.expert-links a {
  padding: 8px 16px;
  background-color: rgba(107, 70, 193, 0.2);
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.expert-links a:hover {
  background-color: var(--primary-purple);
  color: white;
}

/* ========== 页脚 ========== */

footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border-top: 2px solid var(--primary-purple);
  padding: 60px 0 20px;
  margin-top: 80px;
}

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

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

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

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

.footer-section a {
  color: rgba(243, 244, 246, 0.7);
  transition: color 0.3s ease;
}

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

.footer-qrcode {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

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

.qrcode-item img {
  width: 120px;
  height: 120px;
  border: 2px solid var(--primary-purple);
  border-radius: 8px;
  margin-bottom: 10px;
}

.qrcode-item p {
  color: rgba(243, 244, 246, 0.7);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  background-color: var(--accent-pink);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: rgba(243, 244, 246, 0.5);
  font-size: 14px;
}

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

/* ========== 响应式设计 ========== */

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  .search-box input {
    width: 120px;
  }

  .hero {
    height: 400px;
  }

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

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

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

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

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

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

  button, .btn {
    width: 100%;
  }
}

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

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

  .logo {
    font-size: 20px;
  }

  .search-box {
    width: 100%;
  }

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

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

  .grid {
    gap: 15px;
  }
}

/* ========== 动画 ========== */

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-right {
  animation: slideInRight 0.6s ease-out;
}

/* ========== 加载动画 ========== */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(107, 70, 193, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-pink);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== 工具类 ========== */

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

.text-right {
  text-align: right;
}

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

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

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

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

.hidden {
  display: none;
}

.visible {
  display: block;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}
