/* 设置软件下载页面样式 */

/* 主容器样式 */
.setup-software-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #3B82F6;
}

.breadcrumb span {
    color: #3B82F6;
    margin: 0 8px;
}

/* 页面标题样式 */
.page-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.page-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-title-section p {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 768px;
    margin: 0 auto;
}

/* 搜索和筛选样式 */
.search-filter-section {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .search-filter-wrapper {
        flex-direction: row;
        align-items: flex-end;
    }
}

/* 搜索框样式 */
.search-input-container {
    position: relative;
    flex-grow: 1;
}

.search-input-container input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
}

.search-input-container input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-container i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

/* 类型筛选下拉框样式 */
.type-filter-container {
    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    .type-filter-container {
        width: 192px;
    }
}

.type-filter-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 16px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
}

.type-filter-container select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.type-filter-container i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

/* 搜索按钮样式 */
.search-button-container {
    width: 100%;
}

@media (min-width: 1024px) {
    .search-button-container {
        width: auto;
    }
}

.search-button-container button {
    width: 100%;
    padding: 12px 24px;
    background-color: #3B82F6;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-button-container button:hover {
    background-color: #2563EB;
}

/* 结果统计样式 */
.results-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 16px;
    color: #6B7280;
}

.results-count .highlight {
    font-weight: 600;
    color: #3B82F6;
}

.reset-button {
    font-size: 14px;
    color: #6B7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reset-button:hover {
    color: #3B82F6;
}

/* 软件卡片网格样式 */
.software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 软件卡片样式 */
.software-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-image-container {
    height: 192px;
    position: relative;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.software-card:hover .card-image-container img {
    transform: scale(1.05);
}

.version-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #10B981;
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.download-button {
    flex: 1;
    padding: 8px 16px;
    background-color: #3B82F6;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-button:hover {
    background-color: #2563EB;
}

.disabled-button {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

.disabled-button:hover {
    background-color: #D1D5DB;
}

.release-notes-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    color: #6B7280;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.release-notes-button:hover {
    background-color: #F9FAFB;
}

/* 版本说明样式 */
.release-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
    display: none;
}

.release-notes.show {
    display: block;
}

.release-notes h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.release-notes p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

/* 空状态样式 */
.empty-state {
    grid-column: 1 / -1;
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
}

.empty-state-icon {
    font-size: 6rem;
    color: #E5E7EB;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    color: #6B7280;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-button:hover:not(.disabled) {
    background-color: #F9FAFB;
}

.pagination-button.active {
    background-color: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

/* 提示信息样式 */
.info-message {
    background-color: #EFF6FF;
    border-left: 4px solid #3B82F6;
    padding: 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 32px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    color: #3B82F6;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: -4px;
}

.info-text {
    font-size: 14px;
    color: #1E40AF;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .page-title-section p {
        font-size: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .download-button {
        width: 100%;
    }
    
    .release-notes-button {
        width: 100%;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* 辅助类 */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}