/* 萝莉岛植物视频社区 - 主样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { color: #1a7a3c; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.dy-noise { display: none !important; }

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

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.site-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #1a7a3c; font-size: 1.2rem; }
.site-logo img { width: 44px; height: 44px; }
.logo-text { font-size: 1.3rem; }
.logo-text span { color: #2ecc71; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: #333; font-weight: 500; transition: 0.3s; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #1a7a3c; border-bottom-color: #1a7a3c; text-decoration: none; }
.header-actions { display: flex; gap: 12px; }
.btn-join { background: #1a7a3c; color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 600; transition: 0.3s; }
.btn-join:hover { background: #0f4620; text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #333; }

/* 搜索框 */
.search-bar-wrap { background: #f0f9f2; border-bottom: 1px solid #d4ecd8; padding: 12px 0; }
.search-bar-inner { display: flex; flex-direction: column; gap: 12px; }
.search-bar-inner form { display: flex; gap: 8px; }
.search-bar-inner input { flex: 1; padding: 10px 16px; border: 1px solid #d4ecd8; border-radius: 4px; font-size: 0.95rem; }
.search-bar-inner button { padding: 10px 24px; background: #1a7a3c; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.search-hot-tags { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-hot-tags a { color: #1a7a3c; font-size: 0.9rem; }

/* Hero Banner */
.hero-banner { background: linear-gradient(135deg, #1a7a3c 0%, #2ecc71 100%); color: #fff; padding: 60px 20px; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="p" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="600" fill="url(%23p)"/></svg>'); opacity: 0.5; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 16px; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.hero-content h1 em { font-style: normal; color: #ffd700; }
.hero-content > p { font-size: 1.1rem; margin-bottom: 24px; line-height: 1.6; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 32px 0; }
.hero-stat { background: rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; }
.hero-stat .num { display: block; font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.hero-stat .label { font-size: 0.85rem; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: #1a7a3c; padding: 12px 32px; border-radius: 4px; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-primary:hover { background: #f0f9f2; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; padding: 12px 32px; border: 2px solid #fff; border-radius: 4px; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-cloud a { display: inline-block; padding: 6px 12px; background: #fff; color: #1a7a3c; border-radius: 20px; font-size: 0.9rem; border: 1px solid #d4ecd8; transition: 0.3s; }
.tag-cloud a:hover { background: #1a7a3c; color: #fff; text-decoration: none; }

/* 模块 */
.section { padding: 60px 20px; }
.section-alt { background: #f0f9f2; }
.section-dark { background: #1a2e1c; color: #fff; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-tag { display: inline-block; background: rgba(46,204,113,0.1); color: #1a7a3c; padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(46,204,113,0.2); margin-bottom: 12px; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; color: #1a7a3c; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { font-size: 1rem; color: #666; max-width: 600px; margin: 0 auto; }
.section-dark .section-head p { color: #ccc; }

/* 视频卡片 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: 0.3s; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.video-thumb { position: relative; padding-bottom: 56.25%; background: #f0f0f0; overflow: hidden; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.video-card:hover .play-btn { opacity: 1; }
.play-btn svg { width: 24px; height: 24px; fill: #1a7a3c; }
.video-badge { position: absolute; top: 12px; left: 12px; background: #1a7a3c; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.video-duration { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.7); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }
.video-info { padding: 16px; }
.video-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: #1a2e1c; line-height: 1.4; }
.video-meta { display: flex; gap: 12px; font-size: 0.85rem; color: #666; margin-bottom: 8px; }
.video-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.video-tag { display: inline-block; background: #f0f9f2; color: #1a7a3c; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }

/* AI卡片 */
.ai-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ai-card { background: rgba(255,255,255,0.1); padding: 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; }
.ai-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.ai-icon { display: block; font-size: 2.5rem; margin-bottom: 12px; }
.ai-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: #fff; }
.ai-card p { font-size: 0.95rem; color: #ccc; line-height: 1.6; }

/* 专家卡片 */
.experts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.expert-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: 0.3s; }
.expert-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.expert-photo { width: 100%; height: 280px; object-fit: cover; }
.expert-info { padding: 20px; }
.expert-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: #1a2e1c; }
.expert-title { color: #2ecc71; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.expert-desc { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 12px; }
.expert-awards { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.award-badge { background: #f0f9f2; color: #1a7a3c; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }
.expert-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 4px; display: inline-block; transition: 0.3s; }
.btn-sm-primary { background: #1a7a3c; color: #fff; }
.btn-sm-primary:hover { background: #0f4620; text-decoration: none; }
.btn-sm-outline { border: 1px solid #1a7a3c; color: #1a7a3c; }
.btn-sm-outline:hover { background: #f0f9f2; text-decoration: none; }

/* 社区卡片 */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.community-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: 0.3s; cursor: pointer; }
.community-card:hover { transform: translateY(-4px); }
.community-thumb { width: 100%; height: 200px; object-fit: cover; }
.community-info { padding: 16px; }
.community-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: #1a2e1c; }
.community-info p { font-size: 0.85rem; color: #666; }

/* 品牌墙 */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.brand-logo { background: #fff; border: 1px solid #d4ecd8; border-radius: 8px; padding: 20px; text-align: center; font-weight: 600; color: #1a7a3c; transition: 0.3s; }
.brand-logo:hover { border-color: #1a7a3c; box-shadow: 0 4px 12px rgba(26,122,60,0.1); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #d4ecd8; border-radius: 8px; margin-bottom: 12px; overflow: hidden; transition: 0.3s; }
.faq-q { padding: 16px; background: #f0f9f2; cursor: pointer; font-weight: 600; color: #1a2e1c; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q:hover { background: #e8f5f0; }
.faq-item.open .faq-q { background: #1a7a3c; color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-a { max-height: 500px; padding: 16px; background: #fff; }
.faq-a span { display: block; color: #666; line-height: 1.6; }
.icon { transition: 0.3s; }
.faq-item.open .icon { transform: rotate(45deg); }

/* 评价 */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card { background: #fff; border: 1px solid #d4ecd8; border-radius: 8px; padding: 16px; }
.review-header { display: flex; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; background: #1a7a3c; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-name { font-weight: 600; color: #1a2e1c; }
.review-date { font-size: 0.85rem; color: #999; }
.review-stars { color: #ffd700; font-size: 0.9rem; margin-bottom: 8px; }
.review-text { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.contact-card { background: rgba(255,255,255,0.1); padding: 24px; border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; }
.contact-card:hover { background: rgba(255,255,255,0.15); }
.contact-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.contact-card h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: #ccc; font-size: 0.9rem; line-height: 1.6; }

/* 底部 */
.site-footer { background: #1a2e1c; color: #ccc; padding: 40px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand p { margin: 12px 0; font-size: 0.9rem; line-height: 1.6; }
.footer-qr { display: flex; gap: 20px; margin-top: 16px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 80px; height: 80px; margin-bottom: 8px; }
.footer-qr-item p { font-size: 0.85rem; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #ccc; font-size: 0.9rem; }
.footer-col a:hover { color: #2ecc71; text-decoration: none; }
.share-bar { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 0; margin: 24px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.share-bar span { color: #fff; }
.share-btn { background: rgba(255,255,255,0.1); color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: 0.3s; }
.share-btn:hover { background: rgba(255,255,255,0.2); }
.footer-keywords { margin: 24px 0; padding: 16px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.footer-keywords h5 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-kw-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-kw-links a { color: #2ecc71; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.85rem; }
.footer-update { color: #999; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 32px; height: 32px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: 0.3s; }
.social-link:hover { background: #2ecc71; text-decoration: none; }

/* 视频模态框 */
.video-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; }
.video-modal.active { display: flex; }
.video-modal-inner { position: relative; width: 90%; max-width: 800px; background: #fff; border-radius: 12px; overflow: hidden; }
.video-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 24px; cursor: pointer; z-index: 10; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.video-modal-title { padding: 16px; background: #f0f9f2; font-size: 1rem; color: #1a2e1c; }
.video-wrapper { position: relative; padding-bottom: 56.25%; background: #000; }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a7a3c 0%, #2ecc71 100%); color: #fff; }
.video-placeholder svg { width: 60px; height: 60px; margin-bottom: 12px; }
.video-placeholder p { font-size: 1rem; margin-bottom: 8px; }
.video-placeholder-sub { font-size: 0.85rem; opacity: 0.8; }
.video-modal-inner.playing .video-placeholder { display: none; }

/* 响应式 */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; padding: 12px; gap: 0; }
  .main-nav.open a { padding: 12px; }
  .hero-content h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .search-bar-inner { flex-direction: column; }
  .search-bar-inner form { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-banner { padding: 40px 12px; }
  .section { padding: 40px 12px; }
  .hero-content h1 { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }

/* 计数动画 */
.count-up { font-weight: 700; }
