/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #e63946;
    --accent-color: #f1faee;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #2a9d8f;
    --warning-color: #e9c46a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* 头部区域 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5d8fb9 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

.app-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-slogan {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    margin-bottom: 60px;
}

/* 通用区块样式 */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* 功能介绍区域 */
.features {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

/* 平台切换 */
.platform-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.platform-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.platform-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.platform-btn i {
    font-size: 20px;
}

/* 下载平台区域 */
.download-platform {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.download-platform.active {
    display: block;
}

.platform-info {
    margin-bottom: 30px;
}

.platform-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.platform-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.version {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.file-size {
    font-size: 14px;
    color: var(--text-light);
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.download-btn:hover {
    background-color: #d62828;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-btn i {
    font-size: 20px;
}

/* 下载进度条 */
.download-progress {
    display: none;
    margin-bottom: 30px;
}

.download-progress.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

/* 安装指引 */
.installation-guide {
    background-color: var(--accent-color);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
}

.installation-guide h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.installation-guide ol {
    list-style-position: inside;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.installation-guide li {
    margin-bottom: 10px;
}

.installation-guide li:last-child {
    margin-bottom: 0;
}

/* 文件校验信息 */
.file-verification {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.verification-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.verify-item {
    background-color: var(--accent-color);
    padding: 25px;
    border-radius: 15px;
}

.verify-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.verify-item p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.verify-item p:last-child {
    margin-bottom: 0;
}

.hash {
    font-family: 'Courier New', monospace;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}

/* 页脚 */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }

    .app-name {
        font-size: 28px;
    }

    .logo {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .download-section {
        padding: 30px 20px;
    }

    .platform-switcher {
        flex-direction: column;
        align-items: center;
    }

    .platform-btn {
        width: 200px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .verification-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .file-verification {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .download-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }

    .app-name {
        font-size: 24px;
    }

    .app-slogan {
        font-size: 16px;
    }

    .logo {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .download-section {
        padding: 25px 15px;
        margin: 0 -15px 40px;
        border-radius: 0;
    }

    .file-verification {
        padding: 25px 15px;
        margin: 0 -15px 40px;
        border-radius: 0;
    }

    .platform-icon {
        font-size: 60px;
    }

    .platform-info h3 {
        font-size: 18px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 加载动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 111, 165, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
    }
}

.download-btn.loading {
    animation: pulse 1.5s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}