/* ============================================
   芒果视频 - 动物写真视频社区 原创样式表
   配色：竹林绿 #1B5E20 / 翡翠绿 #2E7D32 / 熊猫黑 #1A1A2E / 雪白 #FAFAFA
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif; color: #2D2D2D; background: #FAFAFA; line-height: 1.75; }
a { color: #2E7D32; text-decoration: none; transition: color .25s; }
a:hover { color: #1B5E20; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === 干扰标签隐藏 === */
.jammer-wrap { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -9999; }

/* === 顶部导航 === */
.site-topbar { background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%); padding: 8px 0; font-size: 13px; color: #A0AEC0; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.site-topbar a { color: #81C784; }
.site-topbar a:hover { color: #A5D6A7; }

.site-header { background: #FFFFFF; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo .brand-text { font-size: 22px; font-weight: 700; color: #1B5E20; letter-spacing: 1px; }
.site-logo .brand-sub { font-size: 11px; color: #666; display: block; margin-top: -2px; }

.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 16px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: #333; transition: all .25s; }
.main-nav a:hover, .main-nav a.active { background: #E8F5E9; color: #1B5E20; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }

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

/* === Banner区域 === */
.hero-banner { position: relative; height: 520px; overflow: hidden; background: #1A1A2E; }
.hero-banner .banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.65); }
.hero-banner .banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,46,.3) 0%, rgba(27,94,32,.4) 100%); }
.hero-banner .banner-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #FFF; padding: 0 20px; }
.hero-banner h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; text-shadow: 0 3px 12px rgba(0,0,0,.5); }
.hero-banner h1 .highlight { color: #81C784; }
.hero-banner .hero-desc { font-size: 17px; max-width: 680px; line-height: 1.8; opacity: .92; margin-bottom: 28px; }
.hero-banner .hero-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-banner .hero-tags span { background: rgba(255,255,255,.15); backdrop-filter: blur(6px); padding: 6px 18px; border-radius: 20px; font-size: 13px; border: 1px solid rgba(255,255,255,.2); }

/* === 搜索框 === */
.search-bar { background: #FFFFFF; padding: 20px 0; border-bottom: 1px solid #E8E8E8; }
.search-bar .container { display: flex; justify-content: center; }
.search-box { display: flex; width: 100%; max-width: 600px; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid #C8E6C9; border-right: none; border-radius: 8px 0 0 8px; font-size: 15px; outline: none; transition: border-color .3s; }
.search-box input:focus { border-color: #2E7D32; }
.search-box button { padding: 12px 28px; background: linear-gradient(135deg, #2E7D32, #1B5E20); color: #FFF; border: none; border-radius: 0 8px 8px 0; font-size: 15px; cursor: pointer; transition: opacity .3s; }
.search-box button:hover { opacity: .88; }

/* === 通用板块 === */
.section { padding: 56px 0; }
.section-alt { background: #F1F8E9; }
.section-dark { background: #1A1A2E; color: #E0E0E0; }
.section-dark h2, .section-dark h3 { color: #A5D6A7; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; font-weight: 700; color: #1B5E20; margin-bottom: 10px; }
.section-title p { font-size: 15px; color: #666; max-width: 600px; margin: 0 auto; }
.section-dark .section-title h2 { color: #81C784; }
.section-dark .section-title p { color: #A0AEC0; }

/* === 视频卡片网格 === */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #FFF; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.video-card .thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #E0E0E0; }
.video-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 60px; height: 60px; background: rgba(46,125,50,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.video-card .play-btn::after { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #FFF; margin-left: 3px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-card .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-card .card-body { padding: 16px; }
.video-card .card-title { font-size: 15px; font-weight: 600; color: #1A1A2E; margin-bottom: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; }
.video-card .card-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-card .card-tags span { background: #E8F5E9; color: #2E7D32; padding: 2px 10px; border-radius: 12px; font-size: 11px; }

/* === 四列功能卡片 === */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #FFF; border-radius: 12px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: transform .3s; border-top: 3px solid transparent; }
.feature-card:hover { transform: translateY(-4px); border-top-color: #2E7D32; }
.feature-card .icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; color: #1B5E20; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: #666; line-height: 1.7; }

/* === 专家团队 === */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: #FFF; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-align: center; transition: transform .3s; }
.team-card:hover { transform: translateY(-4px); }
.team-card .avatar { width: 100%; height: 200px; object-fit: cover; }
.team-card .info { padding: 16px; }
.team-card .name { font-size: 16px; font-weight: 600; color: #1A1A2E; }
.team-card .role { font-size: 13px; color: #2E7D32; margin: 4px 0; }
.team-card .credential { font-size: 12px; color: #999; }

/* === 社区模块 === */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.community-card { background: #FFF; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05); display: flex; gap: 16px; transition: transform .3s; }
.community-card:hover { transform: translateY(-3px); }
.community-card .comm-icon { font-size: 32px; flex-shrink: 0; width: 56px; height: 56px; background: #E8F5E9; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.community-card h3 { font-size: 16px; color: #1B5E20; margin-bottom: 6px; }
.community-card p { font-size: 13.5px; color: #666; line-height: 1.7; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #FFF; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); overflow: hidden; }
.faq-item .faq-q { padding: 18px 24px; font-size: 15px; font-weight: 600; color: #1A1A2E; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-item .faq-q:hover { background: #F1F8E9; }
.faq-item .faq-q::after { content: '+'; font-size: 20px; color: #2E7D32; transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s, padding .4s; font-size: 14px; color: #555; line-height: 1.8; }
.faq-item.open .faq-a { padding: 0 24px 18px; max-height: 300px; }

/* === 面包屑 === */
.breadcrumb { padding: 14px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #2E7D32; }
.breadcrumb span { margin: 0 6px; }

/* === 内页Banner === */
.page-banner { background: linear-gradient(135deg, #1A1A2E, #1B5E20); padding: 60px 0; text-align: center; color: #FFF; }
.page-banner h1 { font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 15px; opacity: .85; max-width: 600px; margin: 0 auto; }

/* === 文章内容 === */
.article-content { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.article-content h2 { font-size: 24px; color: #1B5E20; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #C8E6C9; }
.article-content h3 { font-size: 20px; color: #2E7D32; margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; text-indent: 2em; }
.article-content ul, .article-content ol { margin: 12px 0 16px 2em; }
.article-content li { margin-bottom: 6px; }

/* === 评论区 === */
.comments-section { background: #F9F9F9; padding: 40px 0; }
.comment-item { background: #FFF; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.comment-item .comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-item .comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: #E8F5E9; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #2E7D32; }
.comment-item .comment-name { font-weight: 600; color: #1A1A2E; font-size: 14px; }
.comment-item .comment-date { font-size: 12px; color: #999; }
.comment-item .comment-text { font-size: 14px; color: #555; line-height: 1.7; }

/* === 页脚 === */
.site-footer { background: #1A1A2E; color: #A0AEC0; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-col h4 { color: #81C784; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #A0AEC0; font-size: 13px; }
.footer-col ul li a:hover { color: #81C784; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 36px; }
.footer-logo span { font-size: 20px; font-weight: 700; color: #81C784; }
.footer-qr { display: flex; gap: 16px; margin-top: 12px; }
.footer-qr img { width: 90px; height: 90px; border-radius: 6px; border: 2px solid #2D3748; }
.footer-bottom { border-top: 1px solid #2D3748; padding: 18px 0; text-align: center; font-size: 12px; }
.footer-bottom a { color: #81C784; }

/* === 视频播放器模拟 === */
.video-player-wrap { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.video-player-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-player-wrap .big-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(46,125,50,.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s, background .3s; }
.video-player-wrap .big-play:hover { transform: translate(-50%, -50%) scale(1.1); background: rgba(46,125,50,.95); }
.video-player-wrap .big-play::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #FFF; margin-left: 4px; }

/* === 统计数字 === */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding: 40px 0; }
.stat-item .stat-num { font-size: 36px; font-weight: 800; color: #81C784; }
.stat-item .stat-label { font-size: 14px; color: #A0AEC0; margin-top: 4px; }

/* === 标签云 === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 20px 0; }
.tag-cloud a { background: #E8F5E9; color: #2E7D32; padding: 6px 16px; border-radius: 20px; font-size: 13px; transition: all .25s; }
.tag-cloud a:hover { background: #2E7D32; color: #FFF; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-banner { height: 400px; }
  .hero-banner h1 { font-size: 28px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #FFF; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 12px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .main-nav a { padding: 12px 16px; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .section-title h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .hero-banner { height: 320px; }
  .hero-banner h1 { font-size: 22px; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
