/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.9) 100%),
                url('https://images.unsplash.com/photo-1534423861386-85a16f5d13fd?ixlib=rb-4.0.3') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* 游戏介绍部分 */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(30, 40, 50, 0.6);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
}

/* 角色展示部分 */
.characters {
    background: rgba(0, 0, 0, 0.2);
    padding: 100px 5%;
}

.character-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;
}

.character-slider::-webkit-scrollbar {
    height: 8px;
}

.character-slider::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

.character-card {
    min-width: 300px;
    background: rgba(30, 40, 50, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.character-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.character-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.character-info {
    padding: 25px;
}

.character-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.character-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 15px;
}

/* 媒体部分 */
.media-section {
    position: relative;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 0;
    z-index: 2;
    transition: var(--transition);
}

.gallery-item:hover i {
    opacity: 1;
}

/* 购买部分 */
.purchase {
    background: linear-gradient(135deg, #1a2a3a 0%, #0c1825 100%);
    text-align: center;
    padding: 100px 5%;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 48px 0 0 0;
    flex-wrap: wrap;
}

.platform {
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 36px 38px 32px 38px;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 6px 32px rgba(44,62,80,0.10);
    border: 1.5px solid rgba(255,255,255,0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s, box-shadow 0.25s, border 0.25s;
    position: relative;
    overflow: hidden;
}

.platform:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255,255,255,0.13);
    border-color: var(--accent, #3498db);
    box-shadow: 0 12px 36px rgba(52,152,219,0.18);
}

.platform i {
    font-size: 54px;
    margin-bottom: 18px;
    color: var(--accent, #3498db);
    filter: drop-shadow(0 2px 8px rgba(52,152,219,0.15));
}

.platform h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
}

.platform .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 12px 0;
    font-size: 1.08rem;
    border-radius: 8px;
    background: var(--secondary, #e74c3c);
    color: #fff;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(231,76,60,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

.platform .btn-primary:hover {
    background: #c0392b;
    box-shadow: 0 4px 16px rgba(231,76,60,0.18);
}

/* 仿 GitHub Docs 语言切换器样式 */
.lang-switcher-dropdown {
    position: relative;
    margin-left: 24px;
}

.lang-switcher-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}

.lang-switcher-btn:hover, .lang-switcher-btn:focus {
    background: rgba(255,255,255,0.12);
    outline: none;
}

.lang-switcher-list {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    min-width: 120px;
    background: #23232b;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    padding: 8px 0;
    z-index: 999;
    list-style: none;
}

.lang-switcher-list.show {
    display: block;
}

.lang-switcher-list li {
    width: 100%;
}

.lang-switcher-list button {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-switcher-list button.active,
.lang-switcher-list button:hover {
    background: var(--secondary, #e74c3c);
    color: #fff;
}

/* 联系我们表单美化 */
.contact-form {
    max-width: 420px;
    margin: 40px auto 0 auto;
    padding: 32px 28px 24px 28px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #444;
    border-radius: 8px;
    background: #181824;
    color: #fff;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent, #6c63ff);
    box-shadow: 0 0 6px #6c63ff44;
    outline: none;
}

.contact-form textarea {
    min-height: 100px;
    max-height: 240px;
}

.contact-form button[type="submit"] {
    margin-top: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: 8px;
    background: var(--accent, #6c63ff);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(108,99,255,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #5548c8;
    box-shadow: 0 4px 16px rgba(108,99,255,0.18);
}

/* 下载弹窗样式 */
.download-modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-modal-content {
    background: #23232b;
    border-radius: 12px;
    padding: 36px 32px 28px 32px;
    min-width: 320px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    position: relative;
    text-align: center;
}
.download-modal-close {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}
.download-modal-close:hover {
    color: var(--secondary, #e74c3c);
}
.download-links {
    list-style: none;
    margin: 28px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.download-links a {
    display: block;
    padding: 12px 0;
    border-radius: 8px;
    background: var(--accent, #3498db);
    color: #fff;
    font-size: 1.08rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
.download-links a:hover {
    background: var(--secondary, #e74c3c);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    nav .lang-switcher {
        margin: 20px 0 0 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .platforms {
        gap: 18px;
    }
    .platform {
        min-width: 180px;
        padding: 28px 12px 24px 12px;
    }
}

@media (max-width: 600px) {
    .platforms {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .platform {
        width: 90%;
        min-width: unset;
        max-width: unset;
    }
}