/* ===== 小马拉大车 全局样式 - 原创游戏暗色主题 ===== */
:root {
    --primary: #7c4dff;
    --primary-dark: #5c35cc;
    --accent: #00e5ff;
    --accent2: #ffd740;
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card2: #1a2035;
    --text-main: #e8eaf6;
    --text-muted: #8892b0;
    --border: #1e2a45;
    --gradient-main: linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
    --shadow: 0 4px 24px rgba(124,77,255,0.18);
    --radius: 12px;
    --radius-sm: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== 公告栏 ===== */
.notice-bar {
    background: var(--gradient-main);
    color: #fff;
    font-size: 13px;
    padding: 7px 0;
    overflow: hidden;
}
.notice-bar marquee { color: #fff; font-weight: 500; }

/* ===== 头部导航 ===== */
.header {
    background: rgba(10,14,26,0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}
.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}
.logo-text em {
    font-style: normal;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav { flex: 1; }
.nav ul { display: flex; gap: 4px; align-items: center; }
.nav ul li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all .2s;
    white-space: nowrap;
}
.nav ul li a:hover, .nav ul li a.active {
    color: #fff;
    background: rgba(124,77,255,0.18);
}
.header-right { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; background: var(--bg-card2); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    padding: 7px 14px;
    font-size: 13px;
    width: 160px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn { background: var(--primary); border: none; color: #fff; padding: 7px 12px; cursor: pointer; font-size: 14px; transition: background .2s; }
.search-btn:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text-main); padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; }

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== 通用 Section ===== */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-card); }
.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}
.section-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}
.section-more {
    text-align: center;
    margin-top: 36px;
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s;
    border: none;
}
.btn-primary { background: var(--gradient-main); color: #fff; }
.btn-primary:hover { opacity: .85; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Hero Banner ===== */
.hero-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 60px 0;
}
.hero-badge {
    display: inline-block;
    background: rgba(124,77,255,0.25);
    border: 1px solid var(--primary);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
}
.hero-content h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 900; color: var(--accent2); }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== 视频卡片网格 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(124,77,255,0.25);
}
.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-card2);
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    background: rgba(0,0,0,0.45);
}
.play-btn::after {
    content: '';
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124,77,255,0.9);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: 54% center;
    box-shadow: 0 4px 20px rgba(124,77,255,0.5);
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}
.video-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.video-info { padding: 14px 16px 16px; }
.video-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    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: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 功能模块卡片 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity .3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ===== 专家卡片 ===== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.expert-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all .3s;
}
.expert-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--primary);
}
.expert-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expert-card .role { font-size: 12px; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.expert-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.expert-btns a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: all .2s;
}
.expert-btns a:hover { background: var(--primary); color: #fff; }

/* ===== 评论卡片 ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.reviewer-info h4 { font-size: 14px; font-weight: 700; color: #fff; }
.reviewer-info span { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--accent2); font-size: 14px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card2);
    transition: background .2s;
}
.faq-q:hover { background: rgba(124,77,255,0.1); }
.faq-q .arrow { transition: transform .3s; font-size: 12px; color: var(--accent); }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
    display: none;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

/* ===== 合作品牌 ===== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.partner-item {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all .2s;
    min-width: 120px;
    text-align: center;
}
.partner-item:hover { border-color: var(--primary); color: var(--accent); }

/* ===== 社区功能 ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.community-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    transition: all .3s;
}
.community-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.community-card .icon { font-size: 40px; margin-bottom: 12px; }
.community-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.community-card p { font-size: 12px; color: var(--text-muted); }

/* ===== 标签云 ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-item {
    padding: 6px 16px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all .2s;
    cursor: pointer;
}
.tag-item:hover { border-color: var(--primary); color: var(--accent); background: rgba(124,77,255,0.1); }

/* ===== 分类筛选 ===== */
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab-btn {
    padding: 8px 20px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.contact-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.contact-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.7; }
.contact-card strong { color: var(--text-main); }

/* ===== 底部 ===== */
.footer { background: #070b14; border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid var(--primary);
}
.footer-brand h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.footer-contact p { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.footer-nav-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-nav-col ul li { margin-bottom: 8px; }
.footer-nav-col ul li a { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-nav-col ul li a:hover { color: var(--accent); }
.footer-qr { display: flex; flex-direction: column; gap: 16px; }
.qr-item { text-align: center; }
.qr-item img { border-radius: var(--radius-sm); margin-bottom: 6px; }
.qr-item span { font-size: 12px; color: var(--text-muted); display: block; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 回到顶部 ===== */
#back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: all .3s;
}
#back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
#back-top.show { display: flex; }

/* ===== 内页 Hero ===== */
.page-hero {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0.08;
}
.page-hero h1 { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-muted); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 12px 0; z-index: 999; }
    .nav.open ul { flex-direction: column; gap: 0; padding: 0 16px; }
    .nav.open ul li a { display: block; padding: 10px 12px; }
    .nav-toggle { display: block; }
    .search-box input { width: 100px; }
    .hero-content h1 { font-size: 32px; }
    .hero-stats { gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-qr { flex-direction: row; justify-content: center; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 26px; }
    .hero-stats { flex-wrap: wrap; }
    .video-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}
