/* ========================================
   抖阴 - 植物视频社区 全站样式
   配色：海洋蓝绿 + 植物翠绿 + 沙滩暖色
   ======================================== */

:root {
  --primary: #0a8f6c;
  --primary-dark: #067a5b;
  --primary-light: #e8f5f0;
  --accent: #1a9cb0;
  --accent-light: #e3f6f9;
  --ocean: #0077b6;
  --sand: #f5e6c8;
  --sand-dark: #d4a96a;
  --coral: #e07a5f;
  --text-dark: #1a2e1a;
  --text-mid: #3d5a3d;
  --text-light: #6b8a6b;
  --bg-white: #ffffff;
  --bg-cream: #faf8f3;
  --bg-green-light: #f0f9f4;
  --border: #d4e8d4;
  --shadow: rgba(10,143,108,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* { 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;
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

/* ===== 顶部导航 ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-link img { width: 40px; height: 40px; border-radius: 8px; }

.main-nav { display: flex; gap: 4px; }

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== 搜索框 ===== */
.search-bar-wrap {
  background: var(--primary-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.search-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 20px;
}

.search-bar-inner input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: #fff;
}

.search-bar-inner input:focus { border-color: var(--primary); }

.search-bar-inner button {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.search-bar-inner button:hover { background: var(--primary-dark); }

/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(10,143,108,0.6) 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: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--coral);
  color: #fff;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(224,122,95,0.4);
}

.hero-btn:hover {
  background: #c96a50;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 通用区块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

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

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 16px;
}

/* ===== 视频卡片网格 ===== */
.video-section { padding: 60px 0; background: var(--bg-white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(10,143,108,0.15);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-green-light);
}

.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(10,143,108,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(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: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.video-info { padding: 14px 16px; }

.video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.video-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== 影视传媒模块 ===== */
.media-section { padding: 60px 0; background: var(--bg-green-light); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10,143,108,0.12);
}

.media-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.media-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

/* ===== 娱乐专区 ===== */
.entertainment-section { padding: 60px 0; background: var(--bg-white); }

.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ent-card {
  background: linear-gradient(145deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.ent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.ent-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.ent-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ===== AI赋能 ===== */
.ai-section { padding: 60px 0; background: linear-gradient(180deg, #f0f9f4 0%, #e3f6f9 100%); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 16px var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,156,176,0.12);
}

.ai-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== 社区功能 ===== */
.community-section { padding: 60px 0; background: var(--bg-white); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comm-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.comm-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(10,143,108,0.12);
}

.comm-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

/* ===== 专家展示 ===== */
.expert-section { padding: 60px 0; background: var(--bg-green-light); }

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10,143,108,0.12);
}

.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-light);
}

.expert-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.expert-role {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.expert-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.expert-btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.expert-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 用户评价 ===== */
.review-section { padding: 60px 0; background: var(--bg-white); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-body h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.review-stars {
  color: #f5a623;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.review-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section { padding: 60px 0; background: var(--bg-green-light); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 300px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== 合作品牌 ===== */
.partner-section { padding: 60px 0; background: var(--bg-white); }

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logos span {
  padding: 12px 24px;
  background: var(--bg-green-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ===== How-To 指南 ===== */
.howto-section { padding: 60px 0; background: var(--bg-green-light); }

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.howto-step h3 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.howto-step p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== 社交分享 ===== */
.share-section { padding: 40px 0; background: var(--bg-white); }

.share-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 24px;
  border-radius: 25px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(135deg, #1a2e1a 0%, #0d1f0d 100%);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-link { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: #fff; }

.footer-qr {
  display: flex;
  gap: 16px;
}

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

.footer-qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.footer-qr-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--bg-cream);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== 内页Banner ===== */
.page-banner {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,143,108,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-overlay h1 {
  color: #fff;
  font-size: 2.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===== 内页内容 ===== */
.page-content { padding: 50px 0; background: var(--bg-white); }

.page-content h2 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.page-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== 联系信息 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-green-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}

/* ===== 干扰标签隐藏 ===== */
.jammer { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -9999; }

/* ===== 响应式 ===== */
@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: 1fr 1fr; }
  .entertainment-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; }
  .main-nav.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-banner { height: 380px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .media-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.5rem; }
  .entertainment-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .page-banner { height: 200px; }
  .page-banner-overlay h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 300px; }
  .hero-content h1 { font-size: 1.5rem; }
}
