/* 下载页面样式 - 项目风格 */
.download-page {
    min-height: calc(100vh - 140px); /* 减去头部和底部的高度 */
    background: linear-gradient(to bottom, #0066cc, #66ccff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* 页面标题区域 */
.download-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

.download-status {
    margin-bottom: 15px;
}

.download-status p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* 主要下载区域 */
.download-main {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.download-main .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.download-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 300px;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.card-icon {
    margin-bottom: 15px;
    font-size: 3.5rem;
    color: white;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 20px;
}

/* 版本信息样式 */
.version-info {
    margin-bottom: 15px;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem;
}

/* 下载按钮样式 */
.download-btn-container {
    margin-top: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #99cc33;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #99cc33;
}

.download-btn:hover {
    background: #88bb22;
    border-color: #88bb22;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(153, 204, 51, 0.4);
}

/* 禁用按钮样式 */
.download-btn:disabled {
    background: #666666;
    border-color: #666666;
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-btn:disabled:hover {
    background: #666666;
    border-color: #666666;
    color: rgba(255, 255, 255, 0.6);
    transform: none;
    box-shadow: none;
}

/* 错误信息样式 */
.error-message {
    padding: 40px 20px;
}

.error-message .alert {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: white;
    border-radius: 15px;
    padding: 15px 20px;
}

.error-message .btn {
    background: #99cc33;
    border: 2px solid #99cc33;
    color: white;
    border-radius: 20px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-message .btn:hover {
    background: #88bb22;
    border-color: #88bb22;
    color: white;
    transform: translateY(-2px);
}

/* 特定卡片样式 */
.student-card .card-icon {
    color: #99cc33;
}

.student-card:hover {
    border-color: #99cc33;
}

.teacher-card .card-icon {
    color: #66ccff;
}

.teacher-card:hover {
    border-color: #66ccff;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .download-page {
        min-height: calc(100vh - 120px); /* 移动端调整 */
        padding: 30px 15px;
    }
    
    .download-header {
        margin-bottom: 25px;
        padding: 0;
    }
    
    .download-title {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .download-subtitle {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .download-status {
        margin-bottom: 12px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        max-width: 100%;
        width: 100%;
        justify-items: center;
    }
    
    .download-card {
        padding: 25px 20px;
        max-width: 280px;
        width: 100%;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .download-page {
        min-height: calc(100vh - 100px); /* 小屏幕调整 */
        padding: 20px 10px;
    }
    
    .download-header {
        margin-bottom: 20px;
    }
    
    .download-title {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .download-subtitle {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .download-status {
        margin-bottom: 10px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .download-card {
        padding: 20px 15px;
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}
