/* =============================================
   抖阴植物视频社区 - 主样式表
   品牌: 抖阴 | 域名: kkxbag0.cn
   设计风格: 深绿自然 + 现代卡片式布局
   ============================================= */

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: #f5f7f2;
  color: #1a2e1a;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- 干扰标签隐藏 ---- */
.dy-noise { display: none !important; }

/* ---- 顶部公告条 ---- */
.top-bar {
  background: #1b4332;
  color: #d8f3dc;
  text-align: center;
  padding: 6px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.top-bar a { color: #95d5b2; text-decoration: underline; }

/* ---- 导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #95d5b2;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo-text span { color: #52b788; }
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: #d8f3dc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: #52b788;
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-join {
  background: #52b788;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-join:hover { background: #40916c; transform: translateY(-1px); }

/* ---- 搜索框 ---- */
.search-bar-wrap {
  background: #2d6a4f;
  padding: 12px 24px;
}
.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: center;
}
.search-bar-inner input[type="text"] {
  flex: 1;
  padding: 10px 18px;
  border: 2px solid #52b788;
  border-right: none;
  border-radius: 24px 0 0 24px;
  font-size: 15px;
  background: #f5f7f2;
  color: #1a2e1a;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar-inner input[type="text"]:focus { border-color: #95d5b2; }
.search-bar-inner button {
  padding: 10px 24px;
  background: #52b788;
  color: #fff;
  border: 2px solid #52b788;
  border-radius: 0 24px 24px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar-inner button:hover { background: #40916c; }

/* ---- 面包屑 ---- */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  color: #52b788;
}
.breadcrumb a { color: #52b788; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #888; margin: 0 6px; }

/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-content h1 em { color: #95d5b2; font-style: normal; }
.hero-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 28px;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-tags span {
  background: rgba(82,183,136,0.3);
  border: 1px solid #52b788;
  color: #d8f3dc;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: #52b788;
  color: #fff;
  padding: 12px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #40916c; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #d8f3dc;
  padding: 12px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #95d5b2;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(149,213,178,0.15); }
.hero-stats {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 20px;
}
.hero-stat {
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 10px 18px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.hero-stat strong { display: block; font-size: 1.5rem; color: #95d5b2; }
.hero-stat span { font-size: 12px; opacity: 0.85; }

/* ---- 通用区块 ---- */
.section {
  padding: 60px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1b4332;
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: #52b788;
  border-radius: 3px;
}
.section-subtitle {
  color: #52b788;
  font-size: 1rem;
  margin-bottom: 32px;
}
.section-bg-light { background: #edf7f0; }
.section-bg-dark { background: #1b4332; }
.section-bg-dark .section-title { color: #d8f3dc; }
.section-bg-dark .section-subtitle { color: #95d5b2; }

/* ---- 视频卡片网格 ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,0.14); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1b4332;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}
.video-card:hover .play-btn { background: rgba(0,0,0,0.35); }
.play-icon {
  width: 52px;
  height: 52px;
  background: rgba(82,183,136,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.video-card:hover .play-icon { opacity: 1; transform: scale(1); }
.play-icon svg { fill: #fff; width: 22px; height: 22px; margin-left: 3px; }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #52b788;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.video-info { padding: 14px 16px 16px; }
.video-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 3px; }
.video-meta .tag {
  background: #edf7f0;
  color: #2d6a4f;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

/* ---- 专家卡片 ---- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.expert-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  transition: transform 0.22s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d8f3dc;
}
.expert-body { padding: 18px; }
.expert-body h3 { font-size: 17px; font-weight: 700; color: #1b4332; margin-bottom: 4px; }
.expert-role { color: #52b788; font-size: 13px; margin-bottom: 10px; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.expert-tags span {
  background: #edf7f0;
  color: #2d6a4f;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.expert-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}
.btn-sm-primary { background: #52b788; color: #fff; }
.btn-sm-primary:hover { background: #40916c; }
.btn-sm-outline { background: transparent; color: #52b788; border: 1.5px solid #52b788; }
.btn-sm-outline:hover { background: #edf7f0; }

/* ---- 评论区 ---- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 4px solid #52b788;
}
.review-stars { color: #f4a261; font-size: 16px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 600; color: #1b4332; }
.review-date { font-size: 12px; color: #999; }

/* ---- FAQ ---- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.faq-q {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #1b4332;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.18s;
}
.faq-q:hover { background: #edf7f0; }
.faq-q .arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #52b788;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  border-top: 1px solid #edf7f0;
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }

/* ---- AI赋能区 ---- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.ai-card {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  border-radius: 16px;
  padding: 28px;
  color: #d8f3dc;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(82,183,136,0.15);
  border-radius: 50%;
}
.ai-icon { font-size: 2.2rem; margin-bottom: 14px; }
.ai-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: #95d5b2; }
.ai-card p { font-size: 14px; opacity: 0.88; line-height: 1.7; }

/* ---- 合作品牌 ---- */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.brand-logo {
  background: #fff;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #2d6a4f;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  border: 1.5px solid #d8f3dc;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.brand-logo:hover { box-shadow: 0 4px 16px rgba(82,183,136,0.2); border-color: #52b788; }

/* ---- 联系区 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.contact-icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 700; color: #1b4332; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: #555; line-height: 1.7; }
.qr-img {
  width: 120px;
  height: 120px;
  margin: 12px auto 0;
  background: #edf7f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #52b788;
  border: 2px dashed #52b788;
  overflow: hidden;
}

/* ---- 社交分享 ---- */
.share-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}
.share-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #010101; color: #fff; }
.share-bilibili { background: #00a1d6; color: #fff; }

/* ---- 页脚 ---- */
.site-footer {
  background: #0d2818;
  color: #95d5b2;
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 { font-size: 15px; font-weight: 700; color: #d8f3dc; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #95d5b2; transition: color 0.18s; }
.footer-col ul li a:hover { color: #d8f3dc; }
.footer-col p { font-size: 13px; color: #95d5b2; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(149,213,178,0.2);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #52b788;
}
.footer-bottom a { color: #52b788; }
.footer-bottom a:hover { color: #95d5b2; }
.update-time { font-size: 12px; color: #40916c; }

/* ---- 内页通用 ---- */
.page-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
  padding: 60px 24px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.page-hero p { font-size: 1rem; opacity: 0.88; max-width: 600px; margin: 0 auto; }

/* ---- 标签云 ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-cloud a {
  background: #edf7f0;
  color: #2d6a4f;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid #d8f3dc;
  transition: all 0.18s;
}
.tag-cloud a:hover { background: #52b788; color: #fff; border-color: #52b788; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-stats { display: none; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 14px; }
  .section { padding: 40px 14px; }
  .hero-banner { min-height: 360px; }
  .hero-content { padding: 40px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- 汉堡菜单（移动端） ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #d8f3dc;
  border-radius: 2px;
  transition: all 0.2s;
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(27,67,50,0.98);
    padding: 16px 24px;
    z-index: 998;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    color: #d8f3dc;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    display: block;
  }
  .mobile-nav a:hover { background: #2d6a4f; }
}

/* ---- 视频模态框 ---- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  background: #1a2e1a;
  border-radius: 16px;
  padding: 24px;
  max-width: 780px;
  width: 90%;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #95d5b2;
  cursor: pointer;
  background: none;
  border: none;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0d2818;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52b788;
  font-size: 1rem;
}

/* ---- 滚动动画 ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---- 分页 ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1.5px solid #d8f3dc;
  color: #2d6a4f;
  transition: all 0.18s;
}
.pagination a:hover, .pagination .current {
  background: #52b788;
  color: #fff;
  border-color: #52b788;
}
