/* 福利姬 - 主样式表 */
/* 设计理念：黄金杰尼龟风格，植物主题，视频社区 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

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

.container-full {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 头部导航 */
header {
  background: linear-gradient(135deg, #f5d547 0%, #f9e79f 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2d5016;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.nav-menu a {
  text-decoration: none;
  color: #2d5016;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 14px;
}

.nav-menu a:hover {
  color: #1a3009;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 5px;
  margin-left: auto;
  margin-right: 20px;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid #d4af37;
  border-radius: 4px;
  width: 200px;
  font-size: 13px;
}

.search-box button {
  padding: 8px 15px;
  background: #2d5016;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #1a3009;
}

/* Banner 区域 */
.banner {
  background: linear-gradient(rgba(45, 80, 22, 0.4), rgba(45, 80, 22, 0.4)), 
              url('https://d2xsxph8kpxj0f.cloudfront.net/310519663686705052/fnwWkCNAwLGzuXQY4ecfcF/hero-banner-mVE92JfyKtdUt5BgepfBc2.webp') center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.banner-content {
  z-index: 2;
  max-width: 800px;
}

.banner h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.banner-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #f5d547;
  color: #2d5016;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 模块区域 */
.section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #2d5016;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f5d547, #d4af37);
}

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

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  background: #f0f0f0;
  overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
  position: absolute;
  top: 0;
  left: 0;
  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(245, 213, 71, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  color: #2d5016;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* 专家卡片 */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.expert-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-5px);
}

.expert-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5d547, #f9e79f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.expert-info {
  padding: 20px;
}

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

.expert-title {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.expert-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

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

.expert-links a {
  padding: 6px 12px;
  background: #f5d547;
  color: #2d5016;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.expert-links a:hover {
  background: #d4af37;
}

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

.faq-item {
  background: white;
  border-left: 4px solid #f5d547;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
  font-weight: bold;
  color: #2d5016;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-answer {
  display: none;
  margin-top: 15px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

.review-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-top: 3px solid #f5d547;
}

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

.review-text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.review-author {
  font-weight: bold;
  color: #2d5016;
  font-size: 13px;
}

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

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

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f5d547;
}

.footer-section p,
.footer-section a {
  font-size: 13px;
  color: #ddd;
  text-decoration: none;
  line-height: 1.8;
}

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

.footer-qrcode {
  text-align: center;
  margin: 20px 0;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  margin: 10px 5px;
}

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

.footer-bottom p {
  margin: 5px 0;
}

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

  .search-box {
    margin-right: 10px;
  }

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

  .banner {
    height: 350px;
  }

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

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

  .section {
    padding: 40px 0;
  }

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

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

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

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

@media (max-width: 480px) {
  .nav-menu {
    gap: 10px;
  }

  .search-box {
    display: none;
  }

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

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

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

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

/* 干扰样式（SEO优化） */
.seo-text {
  font-size: 0;
  color: transparent;
  height: 0;
  overflow: hidden;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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