/* =====================================================
   糖心 - 植物视频社区 | vluqjc.cn
   主样式文件 style.css
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: #0d1a0f;
  color: #e8f5e9;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #4caf50; text-decoration: none; transition: color .3s; }
a:hover { color: #a5d6a7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --green-primary: #2e7d32;
  --green-light: #4caf50;
  --green-bright: #69f0ae;
  --gold: #ffd54f;
  --dark-bg: #0d1a0f;
  --card-bg: #1a2e1c;
  --card-border: #2e4a30;
  --text-main: #e8f5e9;
  --text-muted: #a5c8a7;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --transition: .3s ease;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1a0f; }
::-webkit-scrollbar-thumb { background: var(--green-primary); border-radius: 3px; }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(13,26,15,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 70px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.site-logo .brand-name {
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-bright), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo .brand-sub { font-size: .75rem; color: var(--text-muted); display: block; }

/* Nav */
#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav a {
  color: var(--text-main); padding: 8px 14px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; transition: var(--transition);
  white-space: nowrap;
}
#main-nav a:hover, #main-nav a.active {
  background: var(--green-primary); color: #fff;
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text-main); font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* Search Bar */
.header-search-wrap {
  background: #0d1a0f; border-bottom: 1px solid var(--card-border);
  padding: 10px 20px; display: flex; justify-content: center;
  margin-top: 70px;
}
.search-bar {
  display: flex; align-items: center; gap: 0;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 30px; overflow: hidden;
  width: 100%; max-width: 640px;
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-main); padding: 10px 20px; font-size: .95rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: var(--green-primary); border: none; color: #fff;
  padding: 10px 22px; cursor: pointer; font-size: .95rem;
  transition: var(--transition); white-space: nowrap;
}
.search-bar button:hover { background: var(--green-light); }

/* =====================================================
   HERO BANNER
   ===================================================== */
#hero-banner {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/banner.jpg');
  background-size: cover; background-position: center;
  filter: brightness(.45);
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,26,15,.3) 0%, rgba(13,26,15,.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 40px 20px; max-width: 900px;
}
.hero-content .brand-badge {
  display: inline-block; background: var(--green-primary);
  color: #fff; padding: 4px 16px; border-radius: 20px;
  font-size: .85rem; font-weight: 600; margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--green-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 20px;
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted); max-width: 680px; margin: 0 auto 32px;
  line-height: 1.8;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num {
  font-size: 2rem; font-weight: 800; color: var(--green-bright);
  display: block;
}
.hero-stats .stat-label { font-size: .85rem; color: var(--text-muted); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  color: #fff; padding: 14px 32px; border-radius: 30px;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(46,125,50,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,125,50,.6); color:#fff; }
.btn-outline {
  background: transparent; color: var(--green-bright);
  border: 2px solid var(--green-bright); padding: 12px 30px;
  border-radius: 30px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--green-bright); color: #0d1a0f; }

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section { padding: 80px 20px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block; background: rgba(76,175,80,.15);
  border: 1px solid var(--green-primary); color: var(--green-bright);
  padding: 4px 14px; border-radius: 20px; font-size: .8rem;
  font-weight: 600; letter-spacing: 1px; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.section-header h2 span { color: var(--green-bright); }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-alt { background: #111f13; }

/* =====================================================
   VIDEO CARDS
   ===================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-light); }
.video-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0; transition: opacity .3s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-icon {
  width: 60px; height: 60px; background: rgba(76,175,80,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transform: scale(.8); transition: transform .3s;
}
.video-card:hover .play-icon { transform: scale(1); }
.play-icon::after {
  content: ''; border-left: 22px solid #fff;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  margin-left: 5px;
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: .75rem; padding: 2px 7px; border-radius: 4px;
}
.video-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--green-primary); color: #fff;
  font-size: .7rem; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.video-meta {
  display: flex; gap: 12px; font-size: .8rem; color: var(--text-muted);
  flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  background: rgba(46,125,50,.2); border: 1px solid rgba(76,175,80,.3);
  color: var(--green-bright); font-size: .72rem; padding: 2px 8px; border-radius: 12px;
}

/* =====================================================
   FEATURE MODULES (植物传媒 / 娱乐专区 / AI赋能)
   ===================================================== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.module-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: var(--transition);
}
.module-card:hover { border-color: var(--green-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.module-icon { font-size: 2.5rem; margin-bottom: 14px; }
.module-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.module-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* =====================================================
   EXPERT CARDS
   ===================================================== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.expert-card:hover { border-color: var(--green-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-avatar {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--green-primary);
}
.expert-info { padding: 20px; }
.expert-info h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expert-role { font-size: .82rem; color: var(--green-bright); margin-bottom: 10px; font-weight: 600; }
.expert-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.expert-awards { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.award-badge {
  background: rgba(255,213,79,.1); border: 1px solid rgba(255,213,79,.3);
  color: var(--gold); font-size: .72rem; padding: 2px 8px; border-radius: 10px;
}
.expert-btns { display: flex; gap: 8px; }
.btn-sm {
  flex: 1; text-align: center; padding: 8px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 600; transition: var(--transition);
}
.btn-sm-green { background: var(--green-primary); color: #fff; }
.btn-sm-green:hover { background: var(--green-light); color: #fff; }
.btn-sm-outline { border: 1px solid var(--card-border); color: var(--text-muted); }
.btn-sm-outline:hover { border-color: var(--green-light); color: var(--green-bright); }

/* =====================================================
   PARTNER LOGO WALL
   ===================================================== */
.partner-grid {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.partner-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px 28px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-muted); font-size: .95rem;
  transition: var(--transition); min-width: 140px;
}
.partner-item:hover { border-color: var(--green-light); color: var(--green-bright); }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; color: #fff;
  padding: 18px 22px; text-align: left; font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-q:hover { color: var(--green-bright); }
.faq-q .faq-arrow { font-size: 1.2rem; transition: transform .3s; color: var(--green-light); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  color: var(--text-muted); font-size: .92rem; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* =====================================================
   REVIEWS / TESTIMONIALS
   ===================================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--green-light); }
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.review-text { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0;
}
.reviewer-name { font-weight: 700; color: #fff; font-size: .9rem; }
.reviewer-info { font-size: .78rem; color: var(--text-muted); }

/* =====================================================
   CONTACT / INFO
   ===================================================== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.contact-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* QR Codes */
.qr-wrap { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.qr-item { text-align: center; }
.qr-box {
  width: 140px; height: 140px; background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; overflow: hidden;
}
.qr-box img { width: 130px; height: 130px; }
.qr-label { font-size: .85rem; color: var(--text-muted); }

/* =====================================================
   SOCIAL SHARE
   ===================================================== */
.share-bar {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 24px 0;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 24px; font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
}
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #010101; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00a1d6; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  padding: 12px 20px; background: #111f13;
  border-bottom: 1px solid var(--card-border);
}
.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--text-muted); flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--green-bright); }
.breadcrumb-inner .sep { color: var(--card-border); }
.breadcrumb-inner .current { color: var(--green-bright); }

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: #080f09; border-top: 1px solid var(--card-border);
  padding: 60px 20px 24px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--green-bright); padding-left: 4px; }
.footer-col p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--card-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.footer-logo span {
  font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--green-bright), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.update-time { font-size: .8rem; color: var(--text-muted); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, #0d1a0f 0%, #1a2e1c 100%);
  padding: 100px 20px 60px; text-align: center;
  border-bottom: 1px solid var(--card-border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; color: #fff;
  margin-bottom: 12px;
}
.page-hero h1 span { color: var(--green-bright); }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* =====================================================
   HOW-TO GUIDE
   ===================================================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.step-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  position: relative;
}
.step-num {
  width: 48px; height: 48px; background: var(--green-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* =====================================================
   COMMUNITY TOPICS
   ===================================================== */
.topic-list { display: flex; flex-direction: column; gap: 16px; }
.topic-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: var(--transition);
}
.topic-item:hover { border-color: var(--green-light); }
.topic-icon { font-size: 2rem; flex-shrink: 0; }
.topic-content h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.topic-content p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.topic-meta { display: flex; gap: 16px; margin-top: 8px; font-size: .8rem; color: var(--text-muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  #main-nav { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(13,26,15,.98); padding: 16px; gap: 4px; border-bottom: 1px solid var(--card-border); }
  #main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 14px; }
  .section { padding: 52px 14px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.green { color: var(--green-bright); }
.gold { color: var(--gold); }

/* Lazy load placeholder */
img[data-src] { background: var(--card-bg); min-height: 80px; }

/* Video modal overlay */
.video-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85);
  z-index: 9999; align-items: center; justify-content: center;
}
.video-modal-overlay.active { display: flex; }
.video-modal {
  background: #000; border-radius: 12px; overflow: hidden;
  width: 90%; max-width: 860px; position: relative;
}
.video-modal video { width: 100%; display: block; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: rgba(0,0,0,.6); border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
