:root {
    --primary: #1a237e;
    --secondary: #ff4081;
    --accent: #00bcd4;
    --dark: #0d1533;
    --light: #f5f7ff;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--light);
    color: #333;
    margin: 0;
    padding: 0;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}
.navbar-brand span {
    color: var(--secondary);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(rgba(13, 21, 51, 0.85), rgba(13, 21, 51, 0.9)), url('21dian.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    margin-bottom: 60px;
}

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

/* 游戏卡片 */
.game-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.game-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.game-card .card-body {
    padding: 20px;
}
.game-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* 统计盒子 */
.stats-box {
    background: var(--primary);
    color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.stats-box:hover {
    transform: scale(1.05);
}
.stats-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.stats-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

/* 按钮 */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #151f6e;
    border-color: #151f6e;
}
.btn-accent {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    padding: 10px 25px;
    font-weight: 600;
}
.btn-accent:hover {
    background-color: #e91e63;
    border-color: #e91e63;
    color: #fff;
}
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 新闻条目 */
.news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}
.news-item h5 a {
    text-decoration: none;
    color: inherit;
}
.news-item h5 a:hover {
    color: var(--primary);
}

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

/* 页脚 */
footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 20px;
}
.footer-links h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    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: 20px;
    margin-top: 40px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* 玩家点评（含简易头像） */
.testimonial-card {
    background: #fff;
    padding: 25px;
    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: #ffc107;
    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.3rem;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 15px;
}
/* 不同颜色（可自行扩展） */
.avatar-color-1 { background: #e74c3c; }
.avatar-color-2 { background: #2ecc71; }
.avatar-color-3 { background: #3498db; }

/* 视频容器 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* APP下载卡片 */
.app-download-card {
    background: linear-gradient(145deg, var(--dark), #1a237e);
    color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.app-download-card .qr-code {
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin: 0 auto 20px;
    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 40px;
    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: 60px 0 40px;
    margin-bottom: 40px;
}
.detail-hero h1 {
    font-size: 2.8rem;
}
.detail-content img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.back-link {
    display: inline-block;
    margin-top: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .stats-box {
        margin-bottom: 20px;
    }
    .detail-hero h1 {
        font-size: 2rem;
    }
}