/* 黑丝植物视频社区 - 主样式表 | nasvpohh.cn */
/* ===== 全局重置与基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  color: #222;
  background: #f8faf6;
  line-height: 1.7;
}
a { color: #1a7a3c; text-decoration: none; transition: color .2s; }
a:hover { color: #0e5228; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== 干扰标签（已在PHP内联样式中处理，不用display:none） ===== */
/* 干扰标签通过PHP内联style属性实现合规隐藏，不使用CSS类 */
.noise-wrap { position: absolute; overflow: hidden; height: 0; width: 0; left: -9999px; pointer-events: none; }

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: #1a7a3c;
  color: #fff;
  text-align: center;
  padding: 6px 20px;
  font-size: 13px;
  letter-spacing: .5px;
}
.top-bar a { color: #b2f0c8; }

/* ===== 头部导航 ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(26,122,60,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: #1a7a3c;
  letter-spacing: 2px;
}
.logo-sub { font-size: 12px; color: #888; letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: #e8f5ee; color: #1a7a3c; }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: .3s; }

/* ===== 搜索框 ===== */
.search-bar-wrap {
  background: #f0f7f2;
  border-bottom: 1px solid #d4eadb;
  padding: 10px 0;
}
.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar-inner input {
  flex: 1;
  max-width: 480px;
  padding: 9px 18px;
  border: 1.5px solid #b2d8be;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color .2s;
}
.search-bar-inner input:focus { border-color: #1a7a3c; }
.search-bar-inner button {
  padding: 9px 22px;
  background: #1a7a3c;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.search-bar-inner button:hover { background: #0e5228; }
.search-hot { font-size: 13px; color: #888; }
.search-hot a { color: #1a7a3c; margin: 0 4px; }

/* ===== Banner ===== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
  max-width: 820px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  margin-bottom: 18px;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: .92;
  margin-bottom: 30px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 32px;
  background: #1a7a3c;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(26,122,60,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,122,60,.5); color: #fff; }
.btn-outline {
  padding: 13px 32px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #fff; color: #1a7a3c; }

/* ===== 通用区块 ===== */
.section { padding: 64px 20px; }
.section-alt { background: #fff; }
.container { max-width: 1280px; margin: 0 auto; }
.section-title {
  text-align: center;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a7a3c;
  letter-spacing: 2px;
}
.section-title p {
  color: #666;
  font-size: 15px;
  margin-top: 8px;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a7a3c, #52c47a);
  border-radius: 2px;
  margin: 12px auto 36px;
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,122,60,.15); }
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #1a2e1a;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .video-play-btn,
.video-card.touch-active .video-play-btn { opacity: 1; }
.video-play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.video-info { padding: 14px 16px 16px; }
.video-info h3 { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 6px; line-height: 1.5; }
.video-meta { display: flex; gap: 14px; font-size: 13px; color: #888; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block;
  background: #e8f5ee;
  color: #1a7a3c;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* ===== 精选视频大区 ===== */
.featured-video-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.featured-video-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.featured-video-list { display: flex; flex-direction: column; gap: 14px; }
.featured-video-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  cursor: pointer;
  transition: box-shadow .2s;
}
.featured-video-item:hover { box-shadow: 0 4px 16px rgba(26,122,60,.12); }
.featured-video-item .thumb { width: 120px; min-width: 120px; position: relative; }
.featured-video-item .thumb img { width: 100%; height: 72px; object-fit: cover; }
.featured-video-item .info { padding: 8px 10px; }
.featured-video-item .info h4 { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.featured-video-item .info span { font-size: 12px; color: #888; }

/* ===== 模块卡片 ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.module-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid #1a7a3c;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,122,60,.12); }
.module-icon { font-size: 2.4rem; margin-bottom: 12px; }
.module-card h3 { font-size: 16px; font-weight: 700; color: #1a7a3c; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== 专家卡片 ===== */
.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 12px rgba(0,0,0,.07);
  transition: transform .25s;
}
.expert-card:hover { transform: translateY(-5px); }
.expert-card img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.expert-info { padding: 18px; }
.expert-info h3 { font-size: 17px; font-weight: 800; color: #1a7a3c; margin-bottom: 4px; }
.expert-role { font-size: 13px; color: #888; margin-bottom: 10px; }
.expert-desc { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 12px; }
.expert-awards { font-size: 13px; color: #e67e22; margin-bottom: 12px; }
.expert-btns { display: flex; gap: 8px; }
.btn-sm {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.btn-sm-green { background: #1a7a3c; color: #fff; border: none; }
.btn-sm-green:hover { background: #0e5228; }
.btn-sm-outline { background: transparent; color: #1a7a3c; border: 1.5px solid #1a7a3c; }
.btn-sm-outline:hover { background: #e8f5ee; }

/* ===== 合作品牌Logo墙 ===== */
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.brand-logo-item {
  background: #fff;
  border: 1.5px solid #d4eadb;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #1a7a3c;
  min-width: 120px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.brand-logo-item:hover { box-shadow: 0 4px 16px rgba(26,122,60,.15); border-color: #1a7a3c; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #1a7a3c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 20px; font-weight: 400; color: #1a7a3c; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  transition: max-height .35s ease, padding .2s;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ===== 用户评价 ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid #1a7a3c;
}
.review-stars { color: #f5a623; font-size: 16px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 14px; font-style: italic; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a7a3c, #52c47a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.review-name { font-size: 14px; font-weight: 700; color: #333; }
.review-date { font-size: 12px; color: #aaa; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.contact-card h3 { font-size: 18px; font-weight: 800; color: #1a7a3c; margin-bottom: 16px; }
.contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #444; align-items: flex-start; }
.contact-icon { font-size: 18px; min-width: 22px; }
.qr-row { display: flex; gap: 20px; flex-wrap: wrap; }
.qr-item { text-align: center; }
.qr-item img { width: 110px; height: 110px; border-radius: 8px; border: 1.5px solid #d4eadb; }
.qr-item p { font-size: 12px; color: #888; margin-top: 6px; }

/* ===== 社交分享 ===== */
.share-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.share-btn {
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
}
.share-btn:hover { opacity: .85; transform: translateY(-2px); }
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #000; color: #fff; }
.share-bilibili { background: #00a1d6; color: #fff; }

/* ===== 页脚 ===== */
.site-footer {
  background: #0e2d18;
  color: #b2d8be;
  padding: 50px 20px 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1a4a2a;
}
.footer-brand .logo-text { color: #52c47a; font-size: 22px; }
.footer-brand p { font-size: 14px; color: #7ab890; line-height: 1.8; margin-top: 10px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #7ab890; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #52c47a; }
.footer-bottom {
  max-width: 1280px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #5a8a6a;
}
.footer-bottom a { color: #7ab890; }

/* ===== 面包屑 ===== */
.breadcrumb {
  background: #f0f7f2;
  padding: 10px 20px;
  font-size: 13px;
  color: #888;
}
.breadcrumb a { color: #1a7a3c; }
.breadcrumb span { margin: 0 6px; }

/* ===== 统计数字 ===== */
.stats-row {
  display: flex;
  gap: 0;
  justify-content: center;
  background: #1a7a3c;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 40px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 28px 10px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ===== AI赋能区 ===== */
.ai-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ai-img { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.ai-content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: #1a7a3c; margin-bottom: 14px; }
.ai-content p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 16px; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tag {
  background: #e8f5ee;
  color: #1a7a3c;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 加入社区指南 ===== */
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.how-to-step {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  background: #1a7a3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  margin: 0 auto 14px;
}
.how-to-step h4 { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 8px; }
.how-to-step p { font-size: 13px; color: #666; line-height: 1.6; }

/* ===== 内页通用 ===== */
.inner-hero {
  background: linear-gradient(135deg, #0e2d18 0%, #1a7a3c 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.inner-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: 2px; }
.inner-hero p { font-size: 15px; opacity: .85; margin-top: 10px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .featured-video-wrap { grid-template-columns: 1fr; }
  .ai-section-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 10px 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; border-radius: 0; }
  .nav-toggle { display: flex; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-banner { min-height: 360px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .featured-video-item .thumb { width: 90px; min-width: 90px; }
  .featured-video-item .thumb img { height: 56px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .how-to-grid { grid-template-columns: 1fr 1fr; }
  .section-title h2 { font-size: 1.4rem; }
  .ai-section-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .qr-row { flex-direction: row; flex-wrap: wrap; }
}

/* ===== 视频卡片强化（移动端触摸支持） ===== */
@media (hover: none) {
  /* 移动端默认显示播放按钮不透明度为0.7 */
  .video-play-btn { opacity: 0.7; }
  .video-card:active .video-play-btn { opacity: 1; }
  .video-card:active { transform: scale(0.98); }
}

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

/* ===== 视频播放模态框 ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  width: 90%;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.video-modal video { width: 100%; display: block; }

/* ===== 标签云 ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: #e8f5ee;
  color: #1a7a3c;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.tag-cloud a:hover { background: #1a7a3c; color: #fff; }

/* ===== 通知条 ===== */
.notice-bar {
  background: linear-gradient(90deg, #1a7a3c, #52c47a);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
}
