/* 基础重置与变量 */
:root {
    --primary-color: #FF6B00; /* 电竞橙 */
    --secondary-color: #8A2BE2; /* 深邃紫 */
    --dark-bg: #0A0A0F;
    --darker-bg: #14141F;
    --light-bg: #1E1E2E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0B0;
    --white: #FFFFFF;
    --border-color: #2D2D3D;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--dark-bg); }
a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { color: var(--secondary-color); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 布局工具 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--white); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 18px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--darker-bg); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 40px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 40px; }
.rounded-img { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }

/* 网格系统 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.align-center { align-items: center; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 24px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: var(--transition); border: none; text-align: center; }
.btn-primary { background: linear-gradient(45deg, var(--primary-color), #FF8C00); color: var(--white); }
.btn-primary:hover { background: linear-gradient(45deg, #FF8C00, var(--primary-color)); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 18px; }
.btn-sm { padding: 6px 16px; font-size: 14px; }

/* 头部导航 */
.header { background-color: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; color: var(--white); }
.logo img { border-radius: 8px; }
.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a { color: var(--text-main); font-weight: 500; font-size: 16px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: var(--white); transition: var(--transition); }

/* 搜索框 */
.search-bar-wrap { background-color: var(--darker-bg); padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.search-form { display: flex; max-width: 600px; margin: 0 auto; }
.search-input { flex: 1; padding: 10px 15px; border: 1px solid var(--border-color); background-color: var(--dark-bg); color: var(--white); border-radius: 4px 0 0 4px; outline: none; }
.search-input:focus { border-color: var(--primary-color); }
.search-btn { padding: 10px 20px; background-color: var(--primary-color); color: var(--white); border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: bold; }

/* Hero区域 */
.hero { height: 600px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; margin-top: 111px; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.4) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-title { font-size: 48px; color: var(--white); margin-bottom: 15px; line-height: 1.2; }
.hero-title span { color: var(--primary-color); }
.hero-subtitle { font-size: 24px; color: var(--text-main); margin-bottom: 20px; }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 30px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { background-color: rgba(255, 107, 0, 0.2); color: var(--primary-color); padding: 4px 12px; border-radius: 20px; font-size: 14px; border: 1px solid rgba(255, 107, 0, 0.3); }

/* 视频卡片 */
.card { background-color: var(--darker-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: var(--transition); }
.card:hover .play-overlay { opacity: 1; }
.play-btn { width: 60px; height: 60px; background-color: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; padding-left: 5px; }
.duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.card-body { padding: 20px; }
.card-body h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.card-body h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.card-meta { display: flex; gap: 15px; margin-top: 15px; font-size: 13px; color: var(--text-muted); }

/* 特性列表 */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-box { display: flex; gap: 20px; align-items: flex-start; }
.icon-wrapper { width: 50px; height: 50px; background-color: rgba(138, 43, 226, 0.2); color: var(--secondary-color); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; }
.icon-wrapper.large { width: 80px; height: 80px; font-size: 40px; margin: 0 auto 20px; }
.feature-box h3 { color: var(--white); margin-bottom: 5px; }

/* 社区模块 */
.community-block { background-color: var(--darker-bg); padding: 30px 20px; border-radius: 12px; border: 1px solid var(--border-color); transition: var(--transition); }
.community-block:hover { border-color: var(--secondary-color); transform: translateY(-5px); }
.community-block h3 { color: var(--white); margin-bottom: 10px; }

/* 专家卡片 */
.expert-card { display: flex; gap: 20px; background-color: var(--dark-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.expert-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); }
.expert-info { flex: 1; }
.expert-title { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.expert-title span { font-size: 14px; color: var(--primary-color); font-weight: normal; margin-left: 10px; }
.expert-actions { margin-top: 15px; display: flex; gap: 10px; }

/* 合作伙伴 */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.logo-item { padding: 15px 30px; background-color: var(--darker-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); font-weight: bold; font-size: 18px; letter-spacing: 2px; }

/* 评论卡片 */
.review-card { background-color: var(--dark-bg); padding: 25px; border-radius: 8px; border-left: 4px solid var(--primary-color); }
.review-stars { color: #FFD700; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-style: italic; margin-bottom: 15px; }
.review-author { color: var(--white); font-weight: bold; text-align: right; }

/* FAQ */
.faq-item { background-color: var(--darker-bg); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq-q { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background-color: var(--light-bg); }
.faq-q h3 { color: var(--white); font-size: 16px; margin: 0; }
.toggle-icon { font-size: 24px; color: var(--primary-color); transition: transform 0.3s; }
.faq-item.active .toggle-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-item.active .faq-a { padding: 20px; max-height: 500px; border-top: 1px solid var(--border-color); }

/* JSON展示 */
.json-display { background-color: #000; border-radius: 8px; padding: 20px; overflow-x: auto; border: 1px solid #333; }
.json-display pre { margin: 0; color: #00FF00; font-family: monospace; font-size: 14px; }

/* 底部 */
.footer { background-color: #050508; padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; color: var(--white); margin-bottom: 20px; }
.footer-logo img { border-radius: 8px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 18px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background-color: var(--primary-color); }
.footer-links li, .contact-list li { margin-bottom: 12px; }
.social-share { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.share-icon { padding: 5px 10px; background-color: var(--darker-bg); border-radius: 4px; font-size: 12px; }
.qrcode-wrap { display: flex; gap: 20px; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 100px; height: 100px; margin-bottom: 10px; border-radius: 4px; }
.qrcode-item span { display: block; font-size: 12px; color: var(--text-muted); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; display: flex; justify-content: space-between; }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 40px; height: 40px; background-color: var(--primary-color); color: var(--white); border: none; border-radius: 50%; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--secondary-color); transform: translateY(-3px); }

/* 响应式 */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--darker-bg); padding: 20px; border-bottom: 1px solid var(--border-color); }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; gap: 15px; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 36px; }
    .hero { height: 500px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .expert-card { flex-direction: column; align-items: center; text-align: center; }
}
