/* 下载页面特定样式 */
.download-banner {
    margin-top: 70px;  /* 与导航栏高度相同 */
    height: 300px;
    background: #ffb820;  /* 使用网站主色调 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* 极光动画效果 */
.download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 184, 32, 1) 0%,
        rgba(254, 94, 62, 0.9) 33%,
        rgba(242, 43, 62, 0.9) 66%,
        rgba(239, 52, 105, 0.9) 100%
    );
    animation: aurora 20s linear infinite;
    z-index: 1;
}

.download-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        rgba(239, 52, 105, 0.9) 0%,
        rgba(242, 43, 62, 0.9) 33%,
        rgba(254, 94, 62, 0.9) 66%,
        rgba(255, 184, 32, 1) 100%
    );
    animation: aurora 25s linear infinite;
    z-index: 1;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.download-banner h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.download-banner p {
    font-size: 1.4em;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* 下载区域样式 */
.download-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.4em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.section-title h2:hover::after {
    opacity: 1;
}

.section-title p {
    font-size: 1.2em;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* 软件卡片网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 软件卡片样式 */
.software-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.software-card:hover {
    transform: translateY(-5px);
}

.software-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-info h3 {
    font-size: 1.6em;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.software-info p {
    font-size: 1em;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 300;
}

/* 下载按钮样式 */
.platform-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.download-btn i {
    font-size: 1.2em;
}

/* 不同平台按钮颜色 */
.download-btn.sunlogin {
    background: #ffb820;  /* 使用网站主色调 */
}

.download-btn.chrome {
    background: #fe5e3e;  /* 使用网站辅色 */
}

.download-btn.meeting {
    background: #f22b3e;  /* 使用网站辅色 */
}

.download-btn.scratch {
    background: #ffb820;  /* 使用网站主色调 */
}

.download-btn.python {
    background: #fe5e3e;  /* 使用网站辅色 */
}

.download-btn.cpp {
    background: #ef3469;  /* 使用网站辅色 */
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-banner {
        height: 250px;
    }

    .download-banner h1 {
        font-size: 2.2em;
    }

    .download-banner p {
        font-size: 1.2em;
    }

    .section-title h2 {
        font-size: 2em;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .software-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .download-banner {
        height: 200px;
    }

    .download-banner h1 {
        font-size: 1.8em;
    }

    .download-banner p {
        font-size: 1em;
    }

    .section-title h2 {
        font-size: 1.8em;
    }

    .software-icon {
        width: 80px;
        height: 80px;
    }

    .software-info h3 {
        font-size: 1.4em;
    }

    .platform-links {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
} 