/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    font-weight: 600;
}

/* ==================== 轮播图区域 ==================== */
.hero-slider {
    position: relative;
    margin-top: 80px;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 轮播控制按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(212, 175, 55, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 6px;
}

/* ==================== 下载按钮覆盖层 ==================== */
.download-buttons-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
    padding: 0 20px;
}

/* 下载按钮默认显示；配置加载失败时也能看到按钮，避免误报所有按钮消失 */
.download-buttons-overlay .download-btn {
    /* 使用 download-btn 本身的布局（.download-btn 已设置 display:flex） */
    display: flex;
}

.download-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 148, 31, 0.95));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
    border-color: #fff;
}

.download-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-dark);
    display: block;
    margin-bottom: 2px;
}

.btn-subtitle {
    font-size: 12px;
    color: rgba(10, 14, 26, 0.8);
    font-weight: 500;
}

/* 按钮特定样式 */
.ios-btn:hover {
    background: linear-gradient(135deg, #e0c04f, #d4af37);
}

.android-btn:hover {
    background: linear-gradient(135deg, #e0c04f, #d4af37);
}

.h5-btn:hover {
    background: linear-gradient(135deg, #e0c04f, #d4af37);
}

/* ==================== 特色功能区 ==================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 详细说明区 ==================== */
.details-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.detail-item {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-content {
    width: 100%;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: justify;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-darker);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.footer p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 500px;
    }

    .download-buttons-overlay {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .slider-indicators {
        bottom: 350px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .navbar-logo {
        height: 40px;
    }

    .language-switcher {
        gap: 5px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hero-slider {
        height: 500px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .slider-indicators {
        bottom: 200px;
    }

    .download-buttons-overlay {
        bottom: 20px;
    }

    .download-btn {
        padding: 15px 20px;
        min-width: 160px;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
    }

    .btn-title {
        font-size: 14px;
    }

    .btn-subtitle {
        font-size: 11px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-item {
        margin-bottom: 40px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-desc {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 550px;
        margin-top: 70px;
    }

    .download-buttons-overlay {
        flex-direction: column;
        gap: 10px;
        bottom: 15px;
    }

    .download-btn {
        min-width: 140px;
        padding: 12px 15px;
        gap: 10px;
    }

    .btn-icon {
        width: 30px;
        height: 30px;
    }

    .btn-title {
        font-size: 13px;
    }

    .btn-subtitle {
        font-size: 10px;
    }

    .slider-indicators {
        bottom: 180px;
    }

    .section-title {
        font-size: 24px;
    }

    .details-section {
        padding: 60px 0;
    }

    .detail-item {
        margin-bottom: 35px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-desc {
        font-size: 14px;
    }
}
