* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 80px;
    height: 80px;
}

.download-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.software-name {
    margin: 0 0 6px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.software-desc {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-actions {
    flex-shrink: 0;
}

/* 下载按钮区域 */
.download-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
}

.btn-mirror {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    font-size: 11px;
    padding: 5px 10px;
}

.btn-mirror:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
}



footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #eee;
    margin-top: 30px;
    color: #7f8c8d;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        height: auto;
        min-height: auto;
        padding: 16px;
    }

    .card-info {
        width: 100%;
    }

    .card-actions {
        width: 100%;
    }

    .download-buttons {
        justify-content: flex-start;
        gap: 6px;
    }

    .btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .btn-mirror {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* 桌面端优化 */
@media (min-width: 768px) {
    .primary-downloads {
        flex-direction: row;
        justify-content: flex-start;
    }

    .download-btn {
        min-width: 180px;
    }

    .mirror-buttons {
        justify-content: flex-start;
    }

    .download-btn.mirror {
        flex: none;
        min-width: 100px;
    }
}


