/* ==================== 麻豆 - 植物视频社区 CSS ==================== */
/* 品牌主题：麻豆风格 - 暖色调、优雅、现代 */

:root {
  /* 麻豆主色系 */
  --primary-red: #D84C3A;
  --primary-orange: #E8914F;
  --primary-gold: #D4A574;
  --primary-cream: #F5E6D3;
  --primary-dark: #3D2817;
  
  /* 辅助色 */
  --accent-green: #4A7C59;
  --accent-light: #FFF8F0;
  --accent-dark: #2C1810;
  
  /* 功能色 */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;
  
  /* 灰度 */
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-light: #e0e0e0;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 阴影 */
  --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 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* 过渡 */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ==================== 全局样式 ==================== */
* {
  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', 'Hiragino Sans GB', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 排版 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-size: 1rem;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

/* ==================== 容器与布局 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--spacing-md) * -1);
}

.col {
  flex: 1;
  padding: var(--spacing-md);
  min-width: 250px;
}

.col-1 { flex: 0 0 8.333%; }
.col-2 { flex: 0 0 16.666%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666%; }
.col-12 { flex: 0 0 100%; }

/* ==================== 头部导航 ==================== */
header {
  background: linear-gradient(135deg, var(--primary-cream) 0%, var(--accent-light) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

nav a:hover {
  background-color: rgba(216, 76, 58, 0.1);
  color: var(--primary-red);
  text-decoration: none;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-sm);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  width: 200px;
  background: transparent;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-red);
  font-size: 1.1rem;
}

/* ==================== Hero Banner ==================== */
.hero {
  background: linear-gradient(135deg, rgba(216, 76, 58, 0.85) 0%, rgba(232, 145, 79, 0.85) 100%), 
              url('https://d2xsxph8kpxj0f.cloudfront.net/310519663721118359/Rf9nLv8xytVjSUjHxaXnvf/hero-banner-Li9YYAQpn6YU3gv7zubLHU.webp') center/cover;
  background-attachment: fixed;
  color: var(--bg-white);
  padding: 100px var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--bg-white);
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
  display: inline-block;
  background: var(--bg-white);
  color: var(--primary-red);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: var(--primary-cream);
  text-decoration: none;
}

/* ==================== 视频卡片 ==================== */
.video-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, var(--primary-cream) 0%, var(--accent-light) 100%);
  overflow: hidden;
}

.video-thumbnail video,
.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.video-card:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  line-height: 1.4;
}

.video-stats {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: auto;
}

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

/* ==================== 部分样式 ==================== */
.section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  padding-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-md);
}

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

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==================== 卡片网格 ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.card-header {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-cream) 0%, var(--accent-light) 100%);
  overflow: hidden;
}

.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== FAQ 样式 ==================== */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-lg) 0;
  transition: all var(--transition-normal);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  color: var(--text-light);
  line-height: 1.8;
  margin-top: var(--spacing-md);
}

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

/* ==================== 评论样式 ==================== */
.review-item {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--primary-red);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.review-time {
  font-size: 0.85rem;
  color: var(--text-light);
}

.review-rating {
  color: var(--primary-orange);
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==================== 页脚 ==================== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

footer h3 {
  color: var(--bg-white);
  margin-bottom: var(--spacing-md);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-gold);
  text-decoration: none;
}

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

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

.footer-section li {
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-qr {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--spacing-lg) 0;
}

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

.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

/* ==================== 按钮样式 ==================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary-cream);
  color: var(--primary-red);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: white;
}

/* ==================== 动画 ==================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    min-height: 350px;
    padding: 60px var(--spacing-md);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  nav ul {
    gap: var(--spacing-md);
  }
  
  .search-box input {
    width: 150px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .hero {
    min-height: 280px;
    padding: 40px var(--spacing-md);
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  nav ul {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  nav a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .footer-qr {
    gap: var(--spacing-md);
  }
  
  .qr-item img {
    width: 100px;
    height: 100px;
  }
}

/* ==================== 辅助类 ==================== */
.text-center {
  text-align: center;
}

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

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.my-lg {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================== 打印样式 ==================== */
@media print {
  header, footer, .search-box {
    display: none;
  }
  
  body {
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}
