/* ============================================
   男同视频 - 游戏解说与视频社区 原创样式
   配色：深空蓝 #0a0e27 / 电竞紫 #7c3aed / 霓虹蓝 #06b6d4 / 金色 #f59e0b
   ============================================ */
:root {
  --bg-dark: #0a0e27;
  --bg-card: #111638;
  --bg-card-hover: #1a1f4e;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --neon-blue: #06b6d4;
  --neon-blue-light: #67e8f9;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text-white: #f1f5f9;
  --text-gray: #94a3b8;
  --text-dim: #64748b;
  --border-color: #1e2456;
  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --shadow-purple: 0 4px 30px rgba(124, 58, 237, 0.3);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif; background: var(--bg-dark); color: var(--text-white); line-height: 1.7; overflow-x: hidden; }
a { color: var(--neon-blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--neon-blue-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { text-align: center; color: var(--text-gray); font-size: 1.05rem; margin-bottom: 40px; }
.section { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, #0d1130 0%, #0a0e27 100%); }

/* === 干扰标签隐藏 === */
.jrtag { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; padding: 0 !important; margin: -1px !important; }

/* === 顶部导航 === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10,14,39,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); transition: background .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { width: 40px; height: 40px; border-radius: 8px; }
.logo-wrap .brand-name { font-size: 1.35rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { color: var(--text-gray); font-size: .92rem; padding: 8px 14px; border-radius: var(--radius-sm); transition: all .25s; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(124,58,237,0.2); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* === 搜索框 === */
.search-bar { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 14px 0; margin-top: 68px; }
.search-bar .container { display: flex; justify-content: center; }
.search-box { display: flex; max-width: 580px; width: 100%; }
.search-box input { flex: 1; background: #1a1f4e; border: 1px solid var(--border-color); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 10px 18px; color: #fff; font-size: .95rem; outline: none; transition: border-color .3s; }
.search-box input:focus { border-color: var(--purple); }
.search-box button { background: var(--gradient-main); border: none; color: #fff; padding: 10px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: .95rem; font-weight: 600; transition: opacity .3s; }
.search-box button:hover { opacity: .85; }

/* === Banner === */
.hero-banner { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-banner .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.45); }
.hero-banner .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,39,0.3) 0%, rgba(10,14,39,0.85) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 760px; padding: 40px 20px; }
.hero-content h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; line-height: 1.3; }
.hero-content h1 .hl { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 28px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--gradient-main); color: #fff; padding: 13px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: transform .25s, box-shadow .25s; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-purple); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--neon-blue); padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 1rem; border: 2px solid var(--neon-blue); transition: all .25s; cursor: pointer; }
.btn-outline:hover { background: rgba(6,182,212,0.15); color: #fff; }

/* === 视频卡片网格 === */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; border: 1px solid var(--border-color); }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-purple); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity .3s; }
.video-card:hover .play-btn { opacity: 1; }
.play-btn span { width: 56px; height: 56px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; box-shadow: 0 0 20px rgba(124,58,237,0.5); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.video-info { padding: 16px; }
.video-info h3 { font-size: .98rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 14px; color: var(--text-dim); font-size: .82rem; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag { display: inline-block; background: rgba(124,58,237,0.15); color: var(--purple-light); font-size: .75rem; padding: 3px 10px; border-radius: 20px; margin-top: 8px; }

/* === 模块卡片（传媒/娱乐/AI） === */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all .3s; }
.module-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--shadow-purple); }
.module-icon { width: 64px; height: 64px; margin: 0 auto 18px; background: var(--gradient-main); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.module-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.module-card p { color: var(--text-gray); font-size: .9rem; line-height: 1.7; }

/* === 专家展示 === */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.expert-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; text-align: center; transition: all .3s; }
.expert-card:hover { border-color: var(--gold); box-shadow: 0 4px 30px rgba(245,158,11,0.2); }
.expert-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 3px solid var(--purple); }
.expert-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.expert-role { color: var(--gold); font-size: .85rem; margin-bottom: 12px; }
.expert-card p { color: var(--text-gray); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.expert-links { display: flex; gap: 10px; justify-content: center; }
.expert-links a { padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; }
.expert-links .link-primary { background: var(--gradient-main); color: #fff; }
.expert-links .link-outline { border: 1px solid var(--neon-blue); color: var(--neon-blue); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1rem; transition: background .2s; }
.faq-q:hover { background: var(--bg-card-hover); }
.faq-q .arrow { transition: transform .3s; font-size: 1.2rem; color: var(--purple-light); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-gray); font-size: .92rem; line-height: 1.8; }

/* === 用户评论 === */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: .95rem; }
.review-stars { color: var(--gold); font-size: .85rem; margin-top: 2px; }
.review-card p { color: var(--text-gray); font-size: .9rem; line-height: 1.8; }

/* === 合作伙伴 === */
.partner-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.partner-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 18px 32px; font-weight: 700; font-size: 1rem; color: var(--text-gray); transition: all .3s; }
.partner-item:hover { border-color: var(--purple); color: #fff; }

/* === How-To 指南 === */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.howto-step { text-align: center; }
.step-num { width: 52px; height: 52px; margin: 0 auto 14px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; }
.howto-step h4 { font-size: .95rem; margin-bottom: 6px; }
.howto-step p { color: var(--text-gray); font-size: .82rem; }

/* === 联系我们 === */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; }
.contact-box h3 { font-size: 1.15rem; margin-bottom: 18px; color: var(--neon-blue); }
.contact-item { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text-gray); font-size: .92rem; }
.contact-item strong { color: var(--text-white); min-width: 70px; }
.qr-wrap { display: flex; gap: 24px; margin-top: 16px; }
.qr-item { text-align: center; }
.qr-item img { width: 120px; height: 120px; border-radius: 8px; border: 2px solid var(--border-color); }
.qr-item p { font-size: .82rem; color: var(--text-dim); margin-top: 6px; }

/* === 社交分享 === */
.share-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 20px; font-size: .85rem; font-weight: 600; border: 1px solid var(--border-color); color: var(--text-gray); transition: all .25s; }
.share-btn:hover { border-color: var(--purple); color: #fff; background: rgba(124,58,237,0.15); }

/* === 页脚 === */
.site-footer { background: #060920; border-top: 1px solid var(--border-color); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-gray); font-size: .88rem; line-height: 1.8; margin-top: 14px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-white); }
.footer-col a { display: block; color: var(--text-dim); font-size: .88rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--neon-blue); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; color: var(--text-dim); font-size: .82rem; }
.footer-bottom a { color: var(--text-dim); }

/* === 面包屑 === */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-gray); }
.breadcrumb span { margin: 0 8px; }

/* === 内页Hero === */
.page-hero { padding: 100px 0 50px; text-align: center; background: linear-gradient(180deg, #111638 0%, var(--bg-dark) 100%); }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-gray); font-size: 1.05rem; max-width: 650px; margin: 0 auto; }

/* === 通用列表 === */
.content-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; }
.content-block h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.content-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--neon-blue); }
.content-block p { color: var(--text-gray); line-height: 1.8; margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-list span { background: rgba(124,58,237,0.12); color: var(--purple-light); padding: 4px 14px; border-radius: 20px; font-size: .8rem; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: 68px; left: 0; width: 100%; background: rgba(10,14,39,0.98); flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid var(--border-color); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-banner { min-height: 400px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 45px 0; }
  .section-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}
