/* ============================================
   小欣奈 游戏解说视频社区 - 原创样式
   配色：深邃暗夜蓝 + 电竞青 + 烈焰橙
   ============================================ */

/* 基础重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #0A0E1A; color: #E8ECF1; line-height: 1.7; }
a { color: #00D4FF; text-decoration: none; transition: color 0.3s; }
a:hover { color: #FF6B35; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== 头部导航 ===== */
.gm-header { background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #1E2438; }
.gm-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.gm-logo img { height: 46px; width: auto; }
.gm-nav { display: flex; gap: 6px; }
.gm-nav-link { padding: 8px 16px; border-radius: 6px; font-size: 14px; color: #8B92A5; font-weight: 500; transition: all 0.3s; }
.gm-nav-link:hover, .gm-nav-link.active { color: #00D4FF; background: rgba(0, 212, 255, 0.08); }
.gm-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.gm-menu-toggle span { display: block; width: 24px; height: 2px; background: #E8ECF1; border-radius: 2px; transition: 0.3s; }

/* ===== 搜索栏 ===== */
.gm-search-bar { background: #0D1120; padding: 12px 0; border-bottom: 1px solid #1E2438; }
.gm-search-form { display: flex; max-width: 560px; margin: 0 auto; }
.gm-search-input { flex: 1; padding: 10px 18px; background: #141929; border: 1px solid #1E2438; border-radius: 8px 0 0 8px; color: #E8ECF1; font-size: 14px; outline: none; transition: border-color 0.3s; }
.gm-search-input:focus { border-color: #00D4FF; }
.gm-search-btn { padding: 10px 24px; background: linear-gradient(135deg, #00D4FF, #6C5CE7); color: #fff; border: none; border-radius: 0 8px 8px 0; font-size: 14px; cursor: pointer; font-weight: 600; transition: opacity 0.3s; }
.gm-search-btn:hover { opacity: 0.85; }

/* ===== Hero Banner ===== */
.gm-hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.gm-hero-bg { position: absolute; inset: 0; }
.gm-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.gm-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.6) 50%, rgba(108,92,231,0.3) 100%); }
.gm-hero-content { position: relative; z-index: 2; padding: 60px 0; }
.gm-hero-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 18px; background: linear-gradient(135deg, #00D4FF, #6C5CE7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.3; }
.gm-hero-subtitle { font-size: 1.05rem; color: #B0B8CC; max-width: 680px; margin-bottom: 28px; line-height: 1.8; }
.gm-hero-actions { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.gm-hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.gm-stat-item { text-align: center; }
.gm-stat-item strong { display: block; font-size: 1.5rem; color: #00D4FF; font-weight: 700; }
.gm-stat-item span { font-size: 0.85rem; color: #8B92A5; }

/* ===== 按钮 ===== */
.gm-btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; text-align: center; }
.gm-btn-primary { background: linear-gradient(135deg, #00D4FF, #6C5CE7); color: #fff; }
.gm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3); color: #fff; }
.gm-btn-outline { background: transparent; border: 2px solid #00D4FF; color: #00D4FF; }
.gm-btn-outline:hover { background: rgba(0, 212, 255, 0.1); color: #00D4FF; }
.gm-btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 6px; background: linear-gradient(135deg, #00D4FF, #6C5CE7); color: #fff; }
.gm-btn-sm:hover { color: #fff; }
.gm-btn-outline-sm { padding: 8px 18px; font-size: 13px; border-radius: 6px; border: 1px solid #00D4FF; color: #00D4FF; background: transparent; }
.gm-btn-outline-sm:hover { background: rgba(0, 212, 255, 0.1); color: #00D4FF; }

/* ===== 标签 ===== */
.gm-tags { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.gm-tags span { color: #8B92A5; }
.gm-tags a { padding: 4px 14px; background: #141929; border: 1px solid #1E2438; border-radius: 20px; color: #B0B8CC; font-size: 12px; transition: all 0.3s; }
.gm-tags a:hover { border-color: #00D4FF; color: #00D4FF; background: rgba(0, 212, 255, 0.08); }

/* ===== 通用Section ===== */
.gm-section { padding: 60px 0; }
.gm-section:nth-child(even) { background: #0D1120; }
.gm-section-header { text-align: center; margin-bottom: 40px; }
.gm-section-header h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; color: #E8ECF1; }
.gm-section-header p { color: #8B92A5; max-width: 600px; margin: 0 auto; font-size: 0.95rem; }
.gm-section-more { text-align: center; margin-top: 30px; }

/* ===== 筛选标签 ===== */
.gm-filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.gm-filter-tab { padding: 8px 22px; background: #141929; border: 1px solid #1E2438; border-radius: 24px; color: #8B92A5; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.gm-filter-tab:hover, .gm-filter-tab.active { background: linear-gradient(135deg, #00D4FF, #6C5CE7); color: #fff; border-color: transparent; }

/* ===== 视频卡片网格 ===== */
.gm-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gm-video-card { background: #141929; border-radius: 12px; overflow: hidden; border: 1px solid #1E2438; transition: all 0.3s; cursor: pointer; }
.gm-video-card:hover { transform: translateY(-4px); border-color: #00D4FF; box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15); }
.gm-video-card[style*="display: none"] { display: none !important; }
.gm-video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.gm-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gm-video-card:hover .gm-video-thumb img { transform: scale(1.06); }
.gm-video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.gm-video-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #FF6B35, #FF4757); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.gm-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; background: rgba(0, 212, 255, 0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; opacity: 0; transition: all 0.3s; cursor: pointer; }
.gm-video-card:hover .gm-play-btn { opacity: 1; }
.gm-play-btn:hover { background: rgba(0, 212, 255, 1); transform: translate(-50%, -50%) scale(1.1); }
.gm-video-info { padding: 14px; }
.gm-video-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #E8ECF1; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-video-meta { display: flex; gap: 12px; font-size: 12px; color: #8B92A5; }

/* ===== 游戏传媒 ===== */
.gm-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-media-card { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 28px; text-align: center; transition: all 0.3s; }
.gm-media-card:hover { border-color: #00D4FF; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0, 212, 255, 0.1); }
.gm-media-icon { font-size: 2.4rem; margin-bottom: 14px; }
.gm-media-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: #00D4FF; }
.gm-media-card p { font-size: 0.88rem; color: #8B92A5; line-height: 1.7; }

/* ===== AI赋能 ===== */
.gm-ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gm-ai-card { background: linear-gradient(145deg, #141929, #1A1F35); border: 1px solid #1E2438; border-radius: 12px; padding: 28px; transition: all 0.3s; position: relative; overflow: hidden; }
.gm-ai-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #00D4FF, #6C5CE7); }
.gm-ai-card:hover { border-color: #6C5CE7; transform: translateY(-3px); }
.gm-ai-num { font-size: 2.2rem; font-weight: 800; color: rgba(0, 212, 255, 0.15); margin-bottom: 10px; }
.gm-ai-card h4 { font-size: 1rem; color: #00D4FF; margin-bottom: 10px; }
.gm-ai-card p { font-size: 0.88rem; color: #8B92A5; line-height: 1.7; }

/* ===== 娱乐专区 ===== */
.gm-ent-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gm-ent-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.gm-ent-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gm-ent-card:hover img { transform: scale(1.05); }
.gm-ent-large { grid-row: span 2; }
.gm-ent-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(10,14,26,0.9)); }
.gm-ent-overlay h3 { font-size: 1.1rem; margin-bottom: 6px; color: #E8ECF1; }
.gm-ent-overlay p { font-size: 0.85rem; color: #B0B8CC; margin-bottom: 10px; }

/* ===== 社区功能 ===== */
.gm-comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-comm-card { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 24px; text-align: center; transition: all 0.3s; }
.gm-comm-card:hover { border-color: #FF6B35; transform: translateY(-3px); }
.gm-comm-icon { font-size: 2.2rem; margin-bottom: 12px; }
.gm-comm-card h4 { font-size: 1rem; color: #FF6B35; margin-bottom: 8px; }
.gm-comm-card p { font-size: 0.85rem; color: #8B92A5; line-height: 1.7; }

/* ===== 专家展示 ===== */
.gm-expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gm-expert-card { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 28px; text-align: center; transition: all 0.3s; }
.gm-expert-card:hover { border-color: #00D4FF; transform: translateY(-3px); }
.gm-expert-card img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 3px solid #1E2438; }
.gm-expert-title { font-size: 1.15rem; color: #E8ECF1; margin-bottom: 4px; }
.gm-expert-role { font-size: 0.85rem; color: #00D4FF; margin-bottom: 12px; }
.gm-expert-card > p { font-size: 0.85rem; color: #8B92A5; line-height: 1.7; margin-bottom: 16px; }
.gm-expert-actions { display: flex; gap: 10px; justify-content: center; }

/* ===== 合作品牌 ===== */
.gm-partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.gm-partner-item { padding: 14px 28px; background: #141929; border: 1px solid #1E2438; border-radius: 8px; color: #8B92A5; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.gm-partner-item:hover { border-color: #00D4FF; color: #00D4FF; }

/* ===== HowTo步骤 ===== */
.gm-howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gm-howto-step { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 28px; text-align: center; transition: all 0.3s; position: relative; }
.gm-howto-step:hover { border-color: #6C5CE7; }
.gm-step-num { width: 48px; height: 48px; background: linear-gradient(135deg, #00D4FF, #6C5CE7); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.3rem; font-weight: 700; color: #fff; }
.gm-howto-step h4 { font-size: 1rem; color: #E8ECF1; margin-bottom: 8px; }
.gm-howto-step p { font-size: 0.85rem; color: #8B92A5; line-height: 1.6; }

/* ===== 用户评价 ===== */
.gm-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-review-card { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 24px; transition: all 0.3s; }
.gm-review-card:hover { border-color: #FF6B35; }
.gm-review-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.gm-review-text { font-size: 0.9rem; color: #B0B8CC; line-height: 1.8; margin-bottom: 14px; font-style: italic; }
.gm-review-author { font-size: 0.82rem; color: #8B92A5; }

/* ===== FAQ ===== */
.gm-faq-list { max-width: 800px; margin: 0 auto; }
.gm-faq-item { background: #141929; border: 1px solid #1E2438; border-radius: 10px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s; }
.gm-faq-item:hover, .gm-faq-item.active { border-color: #00D4FF; }
.gm-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; }
.gm-faq-question h3 { font-size: 0.95rem; font-weight: 600; color: #E8ECF1; }
.gm-faq-arrow { color: #00D4FF; font-size: 0.8rem; transition: transform 0.3s; }
.gm-faq-item.active .gm-faq-arrow { transform: rotate(180deg); }
.gm-faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.35s ease; }
.gm-faq-item.active .gm-faq-answer { padding: 0 20px 16px; max-height: 300px; }
.gm-faq-answer p { font-size: 0.88rem; color: #8B92A5; line-height: 1.8; }

/* ===== 联系我们 ===== */
.gm-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-contact-card { background: #141929; border: 1px solid #1E2438; border-radius: 12px; padding: 24px; }
.gm-contact-card h4 { font-size: 1.05rem; color: #00D4FF; margin-bottom: 14px; }
.gm-contact-card p { font-size: 0.88rem; color: #8B92A5; margin-bottom: 8px; line-height: 1.6; }
.gm-contact-card img { border-radius: 8px; margin-top: 10px; }

/* ===== 面包屑 ===== */
.gm-breadcrumb { padding: 16px 20px; font-size: 13px; color: #8B92A5; }
.gm-breadcrumb a { color: #00D4FF; }

/* ===== 页脚 ===== */
.gm-footer { background: #080B15; border-top: 1px solid #1E2438; }
.gm-footer-top { padding: 48px 0; }
.gm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.gm-footer-col h4 { font-size: 1rem; color: #E8ECF1; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.gm-footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #00D4FF; }
.gm-footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.gm-footer-slogan { color: #00D4FF; font-size: 0.85rem; margin-bottom: 8px; }
.gm-footer-brand p { font-size: 0.82rem; color: #8B92A5; line-height: 1.7; }
.gm-footer-links li { margin-bottom: 8px; }
.gm-footer-links a { color: #8B92A5; font-size: 0.85rem; transition: color 0.3s; }
.gm-footer-links a:hover { color: #00D4FF; }
.gm-footer-links li:not(:has(a)) { color: #8B92A5; font-size: 0.85rem; }
.gm-qr-group { display: flex; gap: 16px; }
.gm-qr-item { text-align: center; }
.gm-qr-item img { width: 100px; height: 100px; border-radius: 6px; margin-bottom: 6px; }
.gm-qr-item span { font-size: 0.78rem; color: #8B92A5; }
.gm-footer-bottom { border-top: 1px solid #1E2438; padding: 18px 0; text-align: center; }
.gm-footer-bottom p { font-size: 0.82rem; color: #8B92A5; margin-bottom: 6px; }
.gm-footer-social { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.gm-social-btn { padding: 5px 16px; background: #141929; border: 1px solid #1E2438; border-radius: 20px; color: #8B92A5; font-size: 12px; transition: all 0.3s; }
.gm-social-btn:hover { border-color: #00D4FF; color: #00D4FF; }

/* ===== 回到顶部 ===== */
.gm-back-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: linear-gradient(135deg, #00D4FF, #6C5CE7); color: #fff; border: none; border-radius: 50%; font-size: 16px; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; }
.gm-back-top.visible { opacity: 1; visibility: visible; }
.gm-back-top:hover { transform: translateY(-3px); }

/* ===== 视频弹窗 ===== */
.gm-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; display: none; align-items: center; justify-content: center; }
.gm-modal.active { display: flex; }
.gm-modal-content { background: #141929; border-radius: 12px; max-width: 800px; width: 90%; overflow: hidden; position: relative; }
.gm-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #E8ECF1; font-size: 28px; cursor: pointer; z-index: 10; }
.gm-modal-body { padding: 0; }
.gm-modal-body video { display: block; width: 100%; }

/* ===== 内页通用 ===== */
.gm-page-hero { padding: 40px 0; background: linear-gradient(135deg, #0D1120, #141929); border-bottom: 1px solid #1E2438; }
.gm-page-hero h1 { font-size: 2rem; font-weight: 700; color: #E8ECF1; margin-bottom: 10px; }
.gm-page-hero p { color: #8B92A5; font-size: 0.95rem; }
.gm-page-content { padding: 40px 0; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .gm-video-grid { grid-template-columns: repeat(3, 1fr); }
    .gm-ai-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-howto-steps { grid-template-columns: repeat(2, 1fr); }
    .gm-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .gm-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #0A0E1A; flex-direction: column; padding: 16px; border-bottom: 1px solid #1E2438; }
    .gm-nav.active { display: flex; }
    .gm-menu-toggle { display: flex; }
    .gm-hero-title { font-size: 1.8rem; }
    .gm-hero-subtitle { font-size: 0.92rem; }
    .gm-hero-stats { gap: 20px; }
    .gm-video-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-media-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-ai-grid { grid-template-columns: 1fr; }
    .gm-ent-grid { grid-template-columns: 1fr; }
    .gm-ent-large { grid-row: span 1; }
    .gm-comm-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-expert-grid { grid-template-columns: 1fr; }
    .gm-review-grid { grid-template-columns: 1fr; }
    .gm-contact-grid { grid-template-columns: 1fr; }
    .gm-howto-steps { grid-template-columns: 1fr; }
    .gm-footer-grid { grid-template-columns: 1fr; }
    .gm-section-header h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .gm-video-grid { grid-template-columns: 1fr; }
    .gm-media-grid { grid-template-columns: 1fr; }
    .gm-comm-grid { grid-template-columns: 1fr; }
    .gm-hero { min-height: 400px; }
    .gm-hero-title { font-size: 1.5rem; }
    .gm-hero-stats { flex-direction: column; gap: 12px; align-items: flex-start; }
}
