/* 国产视频 - 植物视频社区网站样式表 */

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

:root {
  --primary-green: #1a5f3f;
  --accent-gold: #d4af37;
  --light-bg: #f5f5f5;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --border-color: #e0e0e0;
}

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

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--primary-green) 0%, #2d7a52 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-gold);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex: 1;
  margin-left: 40px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 8px 15px;
  margin: 0 20px;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  width: 150px;
}

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

.sign-in-btn {
  background: var(--accent-gold);
  color: var(--primary-green);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s;
}

.sign-in-btn:hover {
  transform: scale(1.05);
}

/* Banner */
.banner {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a5f3f" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

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

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

/* 主要内容区域 */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 32px;
  color: var(--primary-green);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* 卡片 */
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  color: var(--primary-green);
  margin-bottom: 10px;
  font-weight: bold;
}

.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 视频卡片 */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
}

.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 24px;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-green);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--primary-green);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--primary-green);
}

.btn-gold:hover {
  background: #c9a227;
}

/* FAQ */
.faq-item {
  background: var(--light-bg);
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--primary-green);
  background: white;
  border-left: 4px solid var(--accent-gold);
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-answer {
  padding: 20px;
  display: none;
  color: #666;
  line-height: 1.8;
}

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

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

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

/* 用户评论 */
.review-item {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-gold);
}

.review-author {
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 5px;
}

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

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

/* 专家卡片 */
.expert-card {
  text-align: center;
  padding: 30px 20px;
}

.expert-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.expert-name {
  font-size: 18px;
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 5px;
}

.expert-title {
  font-size: 14px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

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

/* 页脚 */
footer {
  background: var(--primary-green);
  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 h4 {
  color: var(--accent-gold);
  margin-bottom: 15px;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    margin-left: 20px;
  }
  
  .search-box {
    display: none;
  }
  
  .banner-content h1 {
    font-size: 28px;
  }
  
  .banner-content p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: #666;
}

.breadcrumb a {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

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