/* ===== 免费看片 - 植物视频社区 原创CSS ===== */
/* 配色方案：足球场绿色 + 自然植物色 */

:root {
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #0D3B13;
  --accent: #4CAF50;
  --accent-light: #81C784;
  --gold: #F9A825;
  --bg-main: #F1F8E9;
  --bg-card: #FFFFFF;
  --bg-dark: #0A2E0F;
  --text-main: #1B2A1D;
  --text-light: #4E6B52;
  --text-muted: #7A9B7E;
  --border: #C8E6C9;
  --shadow: rgba(27,94,32,0.12);
  --gradient-hero: linear-gradient(135deg, #0D3B13 0%, #1B5E20 40%, #2E7D32 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(27,94,32,0.05) 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }

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

/* ===== 顶部导航栏 ===== */
.top-bar {
  background: var(--gradient-hero);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--gold); }

/* ===== 主导航 ===== */
.site-header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { height: 42px; width: auto; }
.brand-logo span { font-size: 22px; font-weight: 700; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.3s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--accent-light);
  color: #FFF;
}

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--primary-light);
  padding: 14px 0;
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
  display: flex;
  max-width: 600px;
  width: 100%;
  background: #FFF;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.search-box input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.search-box button {
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.search-box button:hover { background: var(--primary-dark); }

/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(13,59,19,0.6) 0%, rgba(13,59,19,0.3) 50%, rgba(13,59,19,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  color: #FFF;
  max-width: 700px;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
  line-height: 1.3;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-content p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(249,168,37,0.4);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,168,37,0.5); color: var(--primary-dark); }

/* ===== 通用区块 ===== */
.section-block {
  padding: 60px 0;
}
.section-block:nth-child(even) { background: #FFF; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title p {
  font-size: 16px;
  color: var(--text-light);
}
.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 视频卡片网格 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.35s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(27,94,32,0.2);
}
.video-thumb {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(27,94,32,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 20px solid #FFF;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #FFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.video-info { padding: 14px 16px; }
.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 服务模块 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.35s;
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
}
.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-main);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 专家团队 ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
  transition: all 0.35s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.expert-card .info { padding: 16px; }
.expert-card h4 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.expert-card p { font-size: 13px; color: var(--text-light); }
.expert-card .btn-sm {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  background: var(--accent);
  color: #FFF;
  border-radius: 20px;
  font-size: 13px;
  transition: background 0.3s;
}
.expert-card .btn-sm:hover { background: var(--primary); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  transition: background 0.3s;
}
.faq-q:hover { background: var(--bg-main); }
.faq-q::after { content: '+'; font-size: 22px; font-weight: 300; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 24px 18px; max-height: 500px; }

/* ===== 用户评价 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  border-left: 4px solid var(--accent);
}
.review-card .stars { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.review-card .text { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.review-card .author { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ===== 合作品牌 ===== */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
}
.partner-wall .partner {
  width: 140px;
  height: 60px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--shadow);
  font-weight: 600;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== How-To指南 ===== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.howto-step {
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
}
.howto-step h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.howto-step p { font-size: 13px; color: var(--text-light); }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-info { padding: 24px; }
.contact-info h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--text-light); margin-bottom: 10px; line-height: 1.7; }
.qr-codes { display: flex; gap: 24px; }
.qr-codes .qr-item { text-align: center; }
.qr-codes .qr-item img { width: 140px; height: 140px; border-radius: 8px; margin-bottom: 8px; }
.qr-codes .qr-item p { font-size: 13px; color: var(--text-muted); }

/* ===== 社交分享 ===== */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #FFF;
  transition: all 0.3s;
}
.share-btn:hover { transform: translateY(-2px); color: #FFF; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #FFF;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid p, .footer-grid a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 2;
  display: block;
}
.footer-grid a:hover { color: var(--accent-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 36px; }
.footer-brand span { font-size: 20px; font-weight: 700; color: #FFF; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== 内页Hero ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 60px 0;
  text-align: center;
  color: #FFF;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; opacity: 0.85; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 28px; }
  .hero-banner { height: 360px; }
  .main-nav { display: none; }
  .site-header .container { justify-content: center; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 280px; }
  .hero-content h1 { font-size: 24px; }
  .section-title h2 { font-size: 24px; }
  .howto-steps { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
}
