:root {
    --primary: #142a5c;
    --secondary: #ff5a3c;
    --accent: #2fd1c5;
    --dark: #0b1530;
    --light: #f5f7fc;
    --line: #e3e7f1;
    --muted: #6f7891;
}

* { box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #232838;
    background: var(--light);
    margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
.navbar-brand { font-weight: 700; font-size: 1.7rem; letter-spacing: 0.5px; }
.navbar-brand span { color: var(--secondary); }
.navbar-nav .nav-link { color: rgba(255,255,255,0.78); font-size: 0.93rem; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff; }

/* 英雄区 */
.hero-section {
    background: linear-gradient(rgba(11,21,48,0.9), rgba(11,21,48,0.94)), url('zhajinhua.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 110px 0;
    margin-bottom: 60px;
}
.hero-section h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.3; }
.hero-section .lead { color: rgba(255,255,255,0.82); font-size: 1.02rem; max-width: 560px; }

/* 标题 */
.section-title { position: relative; margin-bottom: 38px; padding-bottom: 14px; }
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 72px; height: 4px;
    background: var(--secondary);
}
.section-title.text-center:after { left: 50%; transform: translateX(-50%); }

/* 统计盒子 */
.stats-box {
    background: var(--primary);
    color: #fff;
    padding: 28px 18px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}
.stats-box:hover { transform: scale(1.04); }
.stats-box i { font-size: 2.2rem; margin-bottom: 12px; color: var(--accent); }
.stats-box .number { font-size: 2.1rem; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }

/* 游戏卡片 */
.game-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,0.13); }
.game-card img { height: 200px; object-fit: cover; width: 100%; display: block; background: #eef1f8; }
.game-card .card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.game-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
    margin-bottom: 9px;
    align-self: flex-start;
}
.game-card .card-title { font-size: 1.02rem; margin-bottom: 6px; }
.game-card .card-text { font-size: 0.87rem; color: var(--muted); flex: 1; margin-bottom: 12px; }

/* 特色图标 */
.feature-icon {
    width: 68px; height: 68px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.feature-icon i { font-size: 1.7rem; color: #fff; }

/* 按钮 */
.btn-primary { background-color: var(--primary); border-color: var(--primary); padding: 10px 24px; font-weight: 600; }
.btn-primary:hover { background-color: #0f2050; border-color: #0f2050; }
.btn-accent { background-color: var(--secondary); border-color: var(--secondary); color: #fff; padding: 10px 24px; font-weight: 600; }
.btn-accent:hover { background-color: #e84a2e; border-color: #e84a2e; color: #fff; }

/* 新闻 */
.news-item { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--secondary); font-weight: 600; font-size: 0.88rem; }
.news-item h5 { font-size: 1rem; margin: 4px 0 6px; }
.news-item h5 a { color: #232838; }
.news-item h5 a:hover { color: var(--primary); }

/* 合作伙伴 */
.partner-logo { filter: grayscale(100%); opacity: 0.68; transition: all 0.3s ease; max-height: 58px; }
.partner-logo:hover { filter: grayscale(0); opacity: 1; }

/* 玩家点评 */
.testimonial-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card .stars { color: #ffb300; margin-bottom: 10px; }
.avatar-placeholder {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; color: #fff;
    flex-shrink: 0; margin-right: 14px;
}
.avatar-color-1 { background: #e05252; }
.avatar-color-2 { background: #2f9e6f; }
.avatar-color-3 { background: #3c6fb5; }

/* 视频 */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* APP下载 */
.app-download-card {
    background: linear-gradient(145deg, var(--dark), #1a2f63);
    color: #fff;
    border-radius: 18px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.app-download-card .qr-code {
    width: 150px; height: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
}
.app-download-card .qr-code img { max-width: 100%; }
.app-download-card .btn-download {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    padding: 12px 34px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.app-download-card .btn-download:hover { background: #fff; color: var(--dark); }

/* 详情页 */
.detail-hero { background: var(--dark); color: #fff; padding: 56px 0 42px; margin-bottom: 40px; }
.detail-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.detail-hero .lead { color: rgba(255,255,255,0.78); margin: 0; font-size: 1rem; }
.detail-hero .breadcrumb { background: none; padding: 0; margin-bottom: 12px; }
.detail-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.detail-hero .breadcrumb-item.active { color: rgba(255,255,255,0.55); }

.detail-content { padding: 0 0 60px; }
.detail-content img { max-width: 100%; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.detail-content h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; }
.detail-content h4 { font-size: 1.08rem; color: var(--primary); margin: 24px 0 10px; }
.back-link { display: inline-block; margin-top: 20px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.spec-tag {
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid var(--line);
    background: #fff;
    padding: 4px 12px;
    border-radius: 4px;
}

/* 链轮 */
.wheel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px 24px;
    margin-top: 40px;
}
.wheel h4 { font-size: 1.08rem; color: var(--primary); margin: 0 0 16px; }
.wheel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.wheel-link {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: 0.2s;
    min-height: 44px;
}
.wheel-link:hover { border-color: var(--accent); background: #f1fdfb; }
.wheel-link strong { display: block; font-size: 0.93rem; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.wheel-link span { font-size: 0.81rem; color: var(--muted); display: block; line-height: 1.5; }

/* FAQ */
.faq-block { margin-top: 36px; }
.faq-block h4 { font-size: 1.1rem; color: var(--primary); margin: 0 0 14px; }
.faq-q { border-top: 1px solid var(--line); padding: 15px 0; }
.faq-q:last-child { border-bottom: 1px solid var(--line); }
.faq-q h5 { font-size: 0.96rem; margin: 0 0 6px; color: #232838; font-weight: 600; }
.faq-q p { margin: 0; font-size: 0.91rem; color: var(--muted); }

/* 页脚 */
footer { background: var(--dark); color: #fff; padding: 56px 0 20px; }
.footer-links h5 { margin-bottom: 18px; position: relative; padding-bottom: 10px; font-size: 0.98rem; }
.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--secondary);
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #a8b0c4; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    margin-top: 36px;
    text-align: center;
    color: #8d96ab;
    font-size: 0.86rem;
}

@media (max-width: 768px) {
    .hero-section { padding: 70px 0; }
    .hero-section h1 { font-size: 2rem; }
    .detail-hero { padding: 38px 0 30px; }
    .wheel { padding: 20px 16px; }
}