/* 基础重置与全局变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000;
    --secondary-color: #D4AF37;
    --bg-dark: #121212;
    --bg-section: #1a1a1a;
    --bg-card: #242424;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --border-color: #333;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.8);
}

.header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* 首屏区域（优化版：无背景图+紧凑尺寸） */
.hero {
    position: relative;
    min-height: 500px;
    padding-top: 68px;
    background: linear-gradient(135deg, #1a0505 0%, #160808 40%, #121212 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #2a1515;
}

.hero-content {
    max-width: 720px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 18px;
    letter-spacing: 8px;
    text-shadow: 0 0 24px rgba(139, 0, 0, 0.6);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 36px;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 38px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #a00000;
    box-shadow: 0 0 18px rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 52px;
    font-size: 17px;
}

/* 通用区块样式 */
.section {
    padding: 75px 0;
    background-color: var(--bg-dark);
}

.section-dark {
    background-color: var(--bg-section);
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 55px;
    color: var(--secondary-color);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 14px auto 0;
}

/* 游戏介绍板块 */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 18px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ========== 核心特色板块（重绘精致图标） ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 35px 28px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(139, 0, 0, 0.18);
}

.feature-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.06);
    border: 1.5px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

/* 1. 名将光环 - 三层扩散圆环 */
.icon-halo::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 
        0 0 0 9px rgba(212, 175, 55, 0.22),
        0 0 0 20px rgba(212, 175, 55, 0.15),
        0 0 0 30px rgba(212, 175, 55, 0.08);
}

/* 2. 人口经济 - 增长柱状图 */
.icon-population::before {
    content: '';
    width: 34px;
    height: 26px;
    background: 
        linear-gradient(var(--secondary-color), var(--secondary-color)) left 0 bottom 0 / 7px 14px no-repeat,
        linear-gradient(var(--secondary-color), var(--secondary-color)) left 50% bottom 0 / 7px 24px no-repeat,
        linear-gradient(var(--secondary-color), var(--secondary-color)) right 0 bottom 0 / 7px 18px no-repeat;
}
.icon-population::after {
    content: '';
    position: absolute;
    bottom: 22px;
    width: 34px;
    height: 1.5px;
    background-color: var(--secondary-color);
    opacity: 0.6;
}

/* 3. 武将池 - 将盔+盔缨 */
.icon-general::before {
    content: '';
    width: 30px;
    height: 26px;
    border: 1.5px solid var(--secondary-color);
    border-radius: 50% 50% 30% 30%;
}
.icon-general::after {
    content: '';
    position: absolute;
    top: 17px;
    width: 3px;
    height: 18px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* 4. 特技体系 - 宝剑+剑格 */
.icon-skill::before {
    content: '';
    width: 5px;
    height: 34px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
}
.icon-skill::after {
    content: '';
    position: absolute;
    bottom: 24px;
    width: 24px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* 5. 重制地图 - 网格+中心据点 */
.icon-map::before {
    content: '';
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--secondary-color);
    background-image: 
        linear-gradient(var(--secondary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--secondary-color) 1px, transparent 1px);
    background-size: 11.3px 11.3px;
    opacity: 0.7;
}
.icon-map::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
}

/* 6. 多朝代剧本 - 错落卷轴 */
.icon-scenario::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 21px;
    width: 11px;
    height: 34px;
    border: 1.5px solid var(--secondary-color);
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.1);
}
.icon-scenario::after {
    content: '';
    position: absolute;
    right: 21px;
    top: 25px;
    width: 11px;
    height: 30px;
    border: 1.5px solid var(--secondary-color);
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.05);
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 14px;
    color: var(--secondary-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.75;
}

/* 游戏截图网格 */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.screenshot-item {
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 玩家评价 - 金边血色徽章头像 ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background-color: var(--bg-card);
    padding: 26px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--secondary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.review-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--secondary-color);
    box-shadow:
        0 0 0 4px rgba(139, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.45);
    background-color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover .review-avatar {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.25),
        0 8px 18px rgba(139, 0, 0, 0.5);
}

.review-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.review-info span {
    font-size: 12px;
    color: var(--text-gray);
}

.review-text {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.75;
    font-style: italic;
}

/* 下载区域 */
.download-box {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-card);
    padding: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.download-box h3 {
    font-size: 26px;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.download-desc {
    color: var(--text-gray);
    margin-bottom: 28px;
}

.download-info {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.download-info li {
    color: var(--text-gray);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.download-tip {
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}

/* 页脚 */
.footer {
    background-color: #0a0a0a;
    padding: 28px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .features-grid,
    .screenshots-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    /* 移动端导航 */
    .menu-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    .nav.active {
        max-height: 480px;
    }
    .nav-list {
        flex-direction: column;
        padding: 18px 0;
        gap: 0;
    }
    .nav-list li {
        text-align: center;
    }
    .nav-list a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* 字号适配 */
    .hero {
        min-height: 420px;
    }
    .hero-content h1 {
        font-size: 40px;
        letter-spacing: 4px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 38px;
    }

    /* 布局改为单列 */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .features-grid,
    .screenshots-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .download-info {
        grid-template-columns: 1fr;
    }
    .download-box {
        padding: 30px 22px;
    }
    .section {
        padding: 55px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .btn-large {
        padding: 13px 36px;
        font-size: 15px;
    }
}
