/* 猎奇植物视频社区 - 全局样式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

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

nav a:hover {
  color: #00d4ff;
}

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

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

/* 搜索框 */
.search-box {
  position: relative;
  width: 200px;
}

.search-box input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #00d4ff;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.search-box input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* Banner 区域 */
.banner {
  position: relative;
  height: 500px;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663730042594/kuo2rCxZzjZVYKs9NKTsxb/banner_hero-2U3wgrUgdZXguDxCNWpcZ5.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 40px;
  animation: slideInLeft 0.8s ease-out;
}

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

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

.banner-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,212,255,0.4);
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,212,255,0.6);
}

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

.section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #0099cc);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  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%;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663730042594/kuo2rCxZzjZVYKs9NKTsxb/video_card_bg-fhMRzvJzjEH6phNvx9RZSi.webp') center/cover;
  overflow: hidden;
}

.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(0,212,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 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;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.faq-item {
  background: white;
  border-left: 4px solid #00d4ff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.faq-question {
  font-weight: bold;
  color: #1a1a2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  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;
  color: #666;
  margin-top: 0;
}

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

/* 用户评论 */
.comments-container {
  max-width: 900px;
  margin: 0 auto;
}

.comment {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.comment-author {
  font-weight: bold;
  color: #1a1a2e;
}

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

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

.comment-text {
  color: #666;
  line-height: 1.6;
}

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

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

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

.expert-avatar {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

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

.expert-title {
  color: #00d4ff;
  font-size: 14px;
  margin-bottom: 15px;
}

.expert-bio {
  padding: 0 15px 15px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.expert-btn {
  display: inline-block;
  padding: 8px 20px;
  margin: 0 5px 15px;
  background: #00d4ff;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  transition: background 0.3s ease;
}

.expert-btn:hover {
  background: #0099cc;
}

/* 合作品牌 */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.brand-logo {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* 联系方式 */
.contact-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 60px 0;
}

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

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

.contact-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.contact-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-info {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

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

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

.qrcode-item img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.qrcode-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* 页脚 */
footer {
  background: #0f0f1e;
  color: rgba(255,255,255,0.7);
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #00ffff;
}

/* 动画 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  .banner {
    height: 350px;
  }

  .banner-content {
    padding: 0 20px;
  }

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

  .banner-content p {
    font-size: 15px;
  }

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

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

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

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-box {
    width: 150px;
  }

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

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

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

  .banner {
    height: 250px;
  }

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

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

  .section {
    padding: 40px 0;
  }

  .qrcode-container {
    flex-direction: column;
    align-items: center;
  }
}

/* 懒加载占位符 */
.lazy-load {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
