/* 小马拉大车植物视频社区 - 原创CSS样式表 */
/* 配色方案：森林绿 #1B5E20 / 翡翠绿 #2E7D32 / 金色 #C8A951 / 象牙白 #FAFAF5 / 深炭 #1A1A1A */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif; color: #2D2D2D; background: #FAFAF5; line-height: 1.75; }
a { color: #1B5E20; text-decoration: none; transition: color .25s; }
a:hover { color: #C8A951; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 42px; width: auto; }
.main-nav { flex: 1; margin: 0 30px; }
.nav-list { list-style: none; display: flex; gap: 6px; }
.nav-list li a { color: rgba(255,255,255,.85); padding: 8px 16px; border-radius: 6px; font-size: 15px; font-weight: 500; transition: all .25s; }
.nav-list li a:hover, .nav-list li a.nav-active { background: rgba(255,255,255,.15); color: #fff; }
.search-box { display: flex; gap: 0; flex-shrink: 0; }
.search-box input { width: 200px; padding: 7px 14px; border: none; border-radius: 20px 0 0 20px; font-size: 14px; outline: none; background: rgba(255,255,255,.9); }
.search-box button { padding: 7px 18px; border: none; border-radius: 0 20px 20px 0; background: #C8A951; color: #fff; font-size: 14px; cursor: pointer; transition: background .25s; }
.search-box button:hover { background: #b8963e; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* Hero Banner */
.hero-banner { position: relative; height: 520px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,94,32,.82) 0%, rgba(46,125,50,.65) 50%, rgba(0,0,0,.4) 100%); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: #fff; max-width: 850px; padding: 0 20px; }
.hero-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.3); line-height: 1.3; }
.hero-content h2 { font-size: 18px; font-weight: 400; color: #C8A951; margin-bottom: 16px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 24px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; margin-bottom: 30px; }
.btn-primary { background: #C8A951; color: #fff; padding: 12px 32px; border-radius: 30px; font-size: 16px; font-weight: 600; transition: all .3s; box-shadow: 0 4px 15px rgba(200,169,81,.4); }
.btn-primary:hover { background: #b8963e; transform: translateY(-2px); color: #fff; }
.btn-secondary { background: transparent; color: #fff; padding: 12px 32px; border-radius: 30px; font-size: 16px; font-weight: 600; border: 2px solid rgba(255,255,255,.6); transition: all .3s; }
.btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.hero-stats { display: flex; gap: 40px; justify-content: center; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 24px; color: #C8A951; }
.stat-item span { font-size: 13px; color: rgba(255,255,255,.75); }

/* 面包屑 */
.breadcrumb { background: #f0ede5; padding: 12px 0; font-size: 14px; color: #666; }
.breadcrumb a { color: #1B5E20; }

/* 通用Section */
section { padding: 60px 0; }
section:nth-child(even) { background: #f5f2ea; }
.section-title { text-align: center; font-size: 30px; color: #1B5E20; margin-bottom: 8px; font-weight: 700; }
.section-subtitle { text-align: center; font-size: 15px; color: #888; margin-bottom: 40px; font-weight: 400; }
.section-more { text-align: center; margin-top: 30px; }
.section-more a { color: #C8A951; font-size: 15px; font-weight: 600; border-bottom: 2px solid #C8A951; padding-bottom: 2px; }

/* 视频卡片网格 */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.08); transition: all .3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(27,94,32,.15); }
.video-thumb { position: relative; overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.video-card:hover .play-overlay { opacity: 1; }
.play-icon { width: 56px; height: 56px; background: rgba(200,169,81,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.video-info { padding: 16px; }
.video-info h4 { font-size: 15px; color: #1A1A1A; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { font-size: 13px; color: #999; margin-bottom: 6px; display: flex; gap: 12px; }
.video-desc { font-size: 13px; color: #777; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 分类卡片 */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.06); transition: all .3s; text-align: center; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(27,94,32,.12); }
.category-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.category-card h4 { font-size: 17px; color: #1B5E20; margin: 16px 16px 8px; }
.category-card p { font-size: 14px; color: #666; padding: 0 16px; line-height: 1.7; }
.category-card a { display: inline-block; margin: 14px 0 18px; color: #C8A951; font-weight: 600; font-size: 14px; border-bottom: 2px solid #C8A951; }

/* AI赋能 */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ai-card { background: linear-gradient(145deg, #fff 0%, #f8f6f0 100%); border-radius: 12px; padding: 30px 24px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,.06); transition: all .3s; border: 1px solid #e8e4d8; }
.ai-card:hover { transform: translateY(-4px); border-color: #C8A951; }
.ai-icon { font-size: 42px; margin-bottom: 16px; }
.ai-card h4 { font-size: 17px; color: #1B5E20; margin-bottom: 10px; }
.ai-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* 社区 */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 30px; }
.community-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.06); }
.community-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.community-info { padding: 20px; }
.community-info h4 { font-size: 18px; color: #1B5E20; margin-bottom: 10px; }
.community-info p { font-size: 14px; color: #666; line-height: 1.8; }
.community-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cf-item { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.cf-item strong { display: block; font-size: 16px; color: #1B5E20; margin-bottom: 6px; }
.cf-item span { font-size: 13px; color: #888; }

/* 专家 */
.expert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.expert-card { background: #fff; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,.06); }
.expert-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #e8e4d8; }
.expert-card h4 { font-size: 18px; color: #1B5E20; margin-bottom: 4px; }
.expert-card h5 { font-size: 14px; color: #C8A951; margin-bottom: 12px; font-weight: 500; }
.expert-card p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.expert-tags { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.expert-tags span { background: #f0ede5; color: #1B5E20; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.expert-actions { display: flex; gap: 12px; justify-content: center; }
.expert-actions a { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; transition: all .25s; }
.expert-actions a:first-child { background: #1B5E20; color: #fff; }
.expert-actions a:first-child:hover { background: #2E7D32; }
.expert-actions a:last-child { border: 1px solid #1B5E20; color: #1B5E20; }
.expert-actions a:last-child:hover { background: #1B5E20; color: #fff; }

/* 排行榜 */
.trending-list { max-width: 800px; margin: 0 auto; }
.trending-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .25s; }
.trending-item:hover { box-shadow: 0 4px 16px rgba(27,94,32,.1); }
.rank { width: 36px; height: 36px; border-radius: 50%; background: #e8e4d8; color: #1B5E20; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.rank-1 { background: #C8A951; color: #fff; }
.rank-2 { background: #A8A8A8; color: #fff; }
.rank-3 { background: #CD7F32; color: #fff; }
.trending-info h4 { font-size: 15px; color: #1A1A1A; margin-bottom: 4px; }
.trending-info h4 a { color: #1A1A1A; }
.trending-info h4 a:hover { color: #1B5E20; }
.trending-info p { font-size: 13px; color: #999; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.faq-question { padding: 18px 24px; font-size: 16px; color: #1B5E20; cursor: pointer; position: relative; font-weight: 600; }
.faq-question::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #C8A951; }
.faq-answer { padding: 0 24px 18px; font-size: 14px; color: #666; line-height: 1.8; }

/* 用户评论 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 3px 15px rgba(0,0,0,.06); }
.review-stars { color: #C8A951; font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 14px; font-style: italic; }
.review-author strong { font-size: 15px; color: #1A1A1A; display: block; }
.review-author span { font-size: 13px; color: #999; }

/* 合作品牌 */
.partner-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.partner-item { background: #fff; border-radius: 10px; padding: 24px 16px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); border: 1px solid #e8e4d8; }
.partner-item span { font-size: 14px; color: #1B5E20; font-weight: 600; }

/* How-To */
.howto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { background: #fff; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,.06); position: relative; }
.step-num { font-size: 48px; font-weight: 800; color: rgba(27,94,32,.1); margin-bottom: 10px; }
.step-card h4 { font-size: 18px; color: #1B5E20; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* 分享按钮 */
.section-share { padding: 40px 0; background: #1B5E20; }
.section-share .section-title { color: #fff; }
.share-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 20px; }
.share-btn { padding: 10px 28px; border-radius: 25px; color: #fff; font-size: 14px; font-weight: 500; transition: all .25s; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); color: #fff; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h4 { font-size: 20px; color: #1B5E20; margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.7; }
.contact-qrcodes { display: flex; gap: 30px; justify-content: center; }
.qr-item { text-align: center; }
.qr-item img { border-radius: 10px; border: 2px solid #e8e4d8; }
.qr-item p { font-size: 13px; color: #888; margin-top: 8px; }

/* 页脚 */
.site-footer { background: #1A1A1A; color: rgba(255,255,255,.7); padding: 50px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer-links h4 { color: #C8A951; font-size: 16px; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: #C8A951; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.4); }

/* 响应式 */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .community-features { grid-template-columns: repeat(2, 1fr); }
    .partner-logos { grid-template-columns: repeat(3, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #1B5E20; padding: 16px; }
    .main-nav.active .nav-list { flex-direction: column; }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }
    .hero-banner { height: 420px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content h2 { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .video-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .community-features { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .partner-logos { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .share-buttons { flex-wrap: wrap; }
    .section-title { font-size: 24px; }
}
