/*
   香蕉视频 - 国内知名动物写真公司与视频社区 全站样式
   zgfhngz.cn
   原创设计：森林绿 + 暖金 + 竹青配色方案
*/

/* ===== CSS变量 ===== */
:root {
    --forest-deep: #1a3c28;
    --forest-main: #2d6a4f;
    --forest-light: #40916c;
    --bamboo: #52b788;
    --bamboo-light: #74c69d;
    --gold-warm: #d4a843;
    --gold-light: #e8c96a;
    --gold-pale: #fdf0d5;
    --cream: #fefae0;
    --earth-dark: #3d2c1e;
    --earth-mid: #6b4f3a;
    --text-main: #1b1b1b;
    --text-sub: #4a4a4a;
    --text-light: #7a7a7a;
    --bg-white: #ffffff;
    --bg-off: #f8f9f5;
    --bg-section: #f0f4ec;
    --shadow-sm: 0 2px 8px rgba(26,60,40,0.08);
    --shadow-md: 0 4px 20px rgba(26,60,40,0.12);
    --shadow-lg: 0 8px 32px rgba(26,60,40,0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text-main); background: var(--bg-white); line-height: 1.7; }
a { color: var(--forest-main); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-warm); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

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

/* ===== 顶部通知栏 ===== */
.top-notice { background: linear-gradient(135deg, var(--forest-deep), var(--forest-main)); color: var(--gold-light); text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: 0.5px; }

/* ===== 导航栏 ===== */
.main-nav { background: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 40px; height: 40px; border-radius: 8px; }
.nav-brand-text { font-size: 22px; font-weight: 700; color: var(--forest-deep); }
.nav-brand-text span { color: var(--gold-warm); }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--text-main); }
.nav-menu a:hover, .nav-menu a.active { background: var(--bg-section); color: var(--forest-main); }
.nav-search-box { display: flex; align-items: center; background: var(--bg-section); border-radius: 24px; padding: 6px 12px; }
.nav-search-box input { border: none; background: transparent; outline: none; width: 160px; font-size: 14px; padding: 4px 8px; }
.nav-search-box button { border: none; background: var(--forest-main); color: white; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 14px; }
.nav-search-box button:hover { background: var(--gold-warm); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--forest-deep); padding: 8px; }

/* ===== Banner区域 ===== */
.hero-banner { position: relative; height: 520px; overflow: hidden; background: var(--forest-deep); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(26,60,40,0.5) 0%, rgba(26,60,40,0.85) 100%); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: white; max-width: 800px; padding: 0 24px; }
.hero-content h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-content h1 em { font-style: normal; color: var(--gold-warm); }
.hero-content p { font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-tags span { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); padding: 6px 18px; border-radius: 20px; font-size: 14px; color: var(--gold-light); border: 1px solid rgba(212,168,67,0.3); }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-light); background: var(--bg-off); }
.breadcrumb a { color: var(--forest-main); }
.breadcrumb span { margin: 0 6px; }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }
.section-dark { background: var(--forest-deep); color: white; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--forest-deep); margin-bottom: 10px; }
.section-header h2 em { font-style: normal; color: var(--gold-warm); }
.section-dark .section-header h2 { color: white; }
.section-header p { font-size: 16px; color: var(--text-sub); max-width: 680px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== 视频卡片网格 ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 60px; height: 60px; background: rgba(45,106,79,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.video-play-btn::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent white; margin-left: 4px; }
.video-card:hover .video-play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.video-info { padding: 16px; }
.video-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag { display: inline-block; background: var(--bg-section); color: var(--forest-main); padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-top: 8px; }

/* ===== 特色模块网格 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent; }
.feature-card:hover { border-color: var(--bamboo-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--forest-light), var(--bamboo)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; color: white; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--forest-deep); }
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ===== 专家展示 ===== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.expert-card { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; }
.expert-card:hover { box-shadow: var(--shadow-md); }
.expert-avatar { width: 100%; height: 240px; object-fit: cover; }
.expert-info { padding: 20px; }
.expert-info h3 { font-size: 18px; font-weight: 600; color: var(--forest-deep); margin-bottom: 4px; }
.expert-info .role { font-size: 14px; color: var(--gold-warm); margin-bottom: 10px; }
.expert-info p { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.expert-btn { display: inline-block; margin-top: 12px; padding: 8px 20px; background: var(--forest-main); color: white; border-radius: 20px; font-size: 13px; }
.expert-btn:hover { background: var(--gold-warm); color: white; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-white); border-radius: var(--radius-md); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { padding: 18px 24px; font-weight: 600; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--forest-deep); }
.faq-q::after { content: '+'; font-size: 22px; color: var(--gold-warm); transition: var(--transition); }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a { padding: 0 24px 18px; font-size: 14px; color: var(--text-sub); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== 用户评价 ===== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--bamboo); }
.review-stars { color: var(--gold-warm); font-size: 16px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.review-author { font-size: 13px; color: var(--text-light); }

/* ===== 社区模块 ===== */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.community-card { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.community-card img { width: 100%; height: 160px; object-fit: cover; }
.community-card .card-body { padding: 16px; }
.community-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.community-card p { font-size: 13px; color: var(--text-sub); }

/* ===== 页脚 ===== */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.8); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { font-size: 22px; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-qr { display: flex; gap: 12px; }
.footer-qr img { width: 90px; height: 90px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.15); }
.footer-col h4 { font-size: 16px; color: var(--gold-warm); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--gold-warm); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.share-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.share-links a { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border-radius: 20px; font-size: 13px; }
.share-links a:hover { background: var(--gold-warm); color: white; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== 内页通用 ===== */
.page-hero { background: linear-gradient(135deg, var(--forest-deep), var(--forest-main)); padding: 48px 0; text-align: center; color: white; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.8); }
.page-content { padding: 48px 0; }
.page-content h2 { font-size: 26px; font-weight: 700; color: var(--forest-deep); margin-bottom: 16px; }
.page-content p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 16px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 10px 28px; border-radius: 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--forest-main); color: white; }
.btn-primary:hover { background: var(--gold-warm); color: white; }
.btn-outline { background: transparent; color: var(--forest-main); border: 2px solid var(--forest-main); }
.btn-outline:hover { background: var(--forest-main); color: white; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 32px; }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-menu.show { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; box-shadow: var(--shadow-md); padding: 16px; z-index: 999; }
}
@media (max-width: 768px) {
    .hero-banner { height: 380px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 24px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .expert-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-search-box input { width: 120px; }
}
@media (max-width: 480px) {
    .hero-banner { height: 300px; }
    .hero-content h1 { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .nav-search-box { display: none; }
}
