* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;

    /* 辅助色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    /* 背景色 */
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-blue-light: #eff6ff;

    /* 边框颜色 */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.12);
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-gray);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 顶部导航 */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    width: 100%;
}

.btn-login {
    padding: 8px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 页面头部 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

/* 主内容区 */
.download-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
}

.download-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 下载区块 */
.download-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.download-section:nth-child(1) {
    animation-delay: 0.1s;
}

.download-section:nth-child(2) {
    animation-delay: 0.2s;
}

.download-section:nth-child(3) {
    animation-delay: 0.3s;
}

.download-section:nth-child(4) {
    animation-delay: 0.4s;
}

.download-section:nth-child(5) {
    animation-delay: 0.5s;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 下载卡片 */
.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.download-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-tag {
    background: var(--bg-blue-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.version-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.card-description {
    flex: 1;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.card-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-download.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-download.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-download.btn-primary:hover::before {
    left: 100%;
}

.btn-download.btn-primary:active {
    transform: translateY(0);
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

.btn-download.btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #e8e8e8;
    color: #999;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    pointer-events: none;
}

.file-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.file-type,
.file-size {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 页面底部 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 24px 24px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }

    .download-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .download-main {
        padding: 40px 16px;
    }

    .page-hero {
        padding: 60px 16px;
    }

    .download-card {
        padding: 24px;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .download-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-download {
        width: 100%;
    }
}
