/* 抖阴植物视频社区 - 主样式文件 | d6tr2v.cn */
/* ===== 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', '微软雅黑', Arial, sans-serif; color: #222; background: #fff; line-height: 1.7; }
a { color: #2d7a3a; text-decoration: none; transition: color .2s; }
a:hover { color: #1a5228; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ===== CSS Variables ===== */
:root {
  --green-dark: #1a5228;
  --green-main: #2d7a3a;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --gold: #c9a84c;
  --text-dark: #1a1a1a;
  --text-mid: #555;
  --text-light: #888;
  --border: #dde8dd;
  --shadow: 0 4px 20px rgba(45,122,58,.12);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: .3s ease;
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-alt { background: var(--green-pale); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--green-dark); text-align: center; margin-bottom: 12px; }
.section-title span { color: var(--green-light); }
.section-sub { text-align: center; color: var(--text-mid); font-size: 1rem; margin-bottom: 48px; }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.75); }

/* ===== Header ===== */
#site-header { position: sticky; top: 0; z-index: 1000; background: rgba(26,82,40,.97); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-wrap img { width: 44px; height: 44px; border-radius: 50%; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 2px; }
.logo-text span { color: var(--green-light); }

/* Nav */
#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav a { color: rgba(255,255,255,.88); font-size: .95rem; padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap; }
#main-nav a:hover, #main-nav a.active { background: var(--green-light); color: #fff; }

/* Search Bar */
.header-search { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,.12); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.header-search input { background: transparent; border: none; outline: none; color: #fff; padding: 8px 16px; font-size: .9rem; width: 180px; }
.header-search input::placeholder { color: rgba(255,255,255,.55); }
.header-search button { background: var(--green-light); border: none; color: #fff; padding: 8px 16px; cursor: pointer; font-size: .9rem; transition: var(--transition); }
.header-search button:hover { background: var(--green-dark); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* ===== Banner ===== */
#banner { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; background-image: url('../images/banner_bg.jpg'); background-size: cover; background-position: center; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,82,40,.82) 0%, rgba(45,122,58,.55) 60%, rgba(0,0,0,.3) 100%); }
.banner-content { position: relative; z-index: 2; max-width: 680px; padding: 60px 0; }
.banner-tag { display: inline-block; background: var(--green-light); color: #fff; font-size: .8rem; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 1px; font-weight: 600; }
.banner-content h1 { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.banner-content h1 em { font-style: normal; color: #a5d6a7; }
.banner-desc { font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 32px; line-height: 1.8; }
.banner-desc a { color: #a5d6a7; font-weight: 600; }
.banner-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--green-light); color: #fff; box-shadow: 0 4px 16px rgba(76,175,80,.4); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-green { background: var(--green-main); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.banner-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #a5d6a7; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--green-pale); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--text-mid); }
.breadcrumb ol li + li::before { content: '›'; margin-right: 6px; color: var(--text-light); }
.breadcrumb ol li a { color: var(--green-main); }

/* ===== Video Cards ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(45,122,58,.18); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.35); }
.video-card:hover .play-btn { opacity: 1; }
.play-btn svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.video-badge { position: absolute; top: 10px; left: 10px; background: var(--green-light); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 4px; font-weight: 600; }
.video-badge.hot { background: #e53935; }
.video-badge.new { background: #fb8c00; }
.video-duration { position: absolute; bottom: 8px; right: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 4px; }
.video-info { padding: 16px; }
.video-title { font-size: .98rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--text-light); }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video-tag { background: var(--green-pale); color: var(--green-main); font-size: .72rem; padding: 3px 9px; border-radius: 20px; }

/* ===== Expert Cards ===== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.expert-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.expert-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(45,122,58,.2); }
.expert-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.expert-info { padding: 20px; }
.expert-name { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.expert-role { font-size: .85rem; color: var(--green-light); font-weight: 600; margin-bottom: 10px; }
.expert-bio { font-size: .88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }
.expert-awards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.award-badge { background: #fff8e1; color: #f57f17; font-size: .72rem; padding: 3px 9px; border-radius: 20px; border: 1px solid #ffe082; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.btn-sm { padding: 7px 16px; font-size: .82rem; border-radius: 20px; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--green-light); }
.review-stars { color: #ffc107; font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-size: .92rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: var(--green-main); flex-shrink: 0; }
.review-name { font-weight: 600; font-size: .9rem; color: var(--text-dark); }
.review-date { font-size: .78rem; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 600; color: var(--green-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background .2s; }
.faq-q:hover { background: var(--green-pale); }
.faq-q .faq-icon { font-size: 1.2rem; color: var(--green-light); transition: transform .3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--text-mid); font-size: .93rem; line-height: 1.75; }
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }

/* ===== Partners ===== */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.partner-item { background: #fff; border-radius: var(--radius-sm); padding: 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.partner-item:hover { border-color: var(--green-light); transform: translateY(-3px); }
.partner-logo { font-size: 2rem; margin-bottom: 8px; }
.partner-name { font-size: .85rem; font-weight: 600; color: var(--text-mid); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; color: var(--green-main); }
.contact-label { font-size: .8rem; color: var(--text-light); margin-bottom: 2px; }
.contact-val { font-size: .95rem; color: var(--text-dark); font-weight: 500; }
.qr-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.qr-box { text-align: center; }
.qr-box img { width: 120px; height: 120px; border-radius: var(--radius-sm); border: 2px solid var(--border); }
.qr-box p { font-size: .8rem; color: var(--text-mid); margin-top: 6px; }

/* ===== Social Share ===== */
.share-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.share-label { font-size: .9rem; color: var(--text-mid); font-weight: 600; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #010101; color: #fff; }
.share-bilibili { background: #00a1d6; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

/* ===== Footer ===== */
#site-footer { background: #0d2b14; color: rgba(255,255,255,.8); padding: 60px 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,.1); }
.footer-brand .logo-text { color: #fff; font-size: 1.4rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green-light); display: inline-block; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--green-light); }
.footer-logo-img { width: 36px; height: 36px; border-radius: 50%; margin-bottom: 10px; }

/* ===== AI Section ===== */
.ai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ai-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--green-light); transition: var(--transition); }
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(45,122,58,.18); }
.ai-icon { font-size: 2.5rem; margin-bottom: 14px; }
.ai-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.ai-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; }

/* ===== Community Tabs ===== */
.community-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-btn { padding: 10px 22px; border: none; background: transparent; color: var(--text-mid); font-size: .92rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab-btn.active, .tab-btn:hover { color: var(--green-main); border-bottom-color: var(--green-light); background: var(--green-pale); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== How To Join ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { width: 52px; height: 52px; background: var(--green-main); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 16px; }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }

/* ===== Store Photo ===== */
.store-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.store-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.store-info h3 { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); margin-bottom: 16px; }
.store-info p { font-size: .93rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }
.store-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store-tag { background: var(--green-pale); color: var(--green-main); font-size: .82rem; padding: 5px 13px; border-radius: 20px; font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .store-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  #main-nav { display: none; flex-direction: column; width: 100%; background: var(--green-dark); border-radius: var(--radius-sm); padding: 10px; }
  #main-nav.open { display: flex; }
  #main-nav a { padding: 10px 16px; width: 100%; }
  .menu-toggle { display: flex; }
  .header-search { width: 100%; }
  .header-search input { width: 100%; }
  .banner-content h1 { font-size: 2rem; }
  .banner-stats { gap: 20px; }
  .stat-num { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .banner-content h1 { font-size: 1.6rem; }
  .banner-btns { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.green { color: var(--green-main); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--green-pale); color: var(--green-main); font-size: .8rem; padding: 4px 12px; border-radius: 20px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ===== Lazy Load ===== */
img[data-src] { opacity: 0; transition: opacity .4s; }
img.loaded { opacity: 1; }

/* ===== Interference tags hidden ===== */
.dy-noise { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; opacity: 0; }

/* ===== Additional Styles ===== */
.community-tabs-wrap { margin-top: 0; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: .78rem; color: var(--text-light); margin-bottom: 2px; }
.contact-val { font-size: .9rem; color: var(--text-dark); font-weight: 500; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.banner-stats { margin-top: 36px; }
