/* 软件中心页面样式 */

.software-section {
    background: #f5f7fa;
    min-height: calc(100vh - 200px);
    padding-top: 60px;
    padding-bottom: 80px;
}

/* 登录提示包装器 */
.login-alert-wrapper {
    margin-bottom: 30px;
}

/* 登录提示 */
.login-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.login-alert i {
    font-size: 20px;
    color: #ffc107;
    flex-shrink: 0;
}

.login-alert .login-link {
    color: #4a90e2;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-alert .login-link:hover {
    color: #1976d2;
    text-decoration: none;
}

/* 无软件提示 */
.no-software {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-icon-wrapper {
    margin-bottom: 25px;
}

.no-software .empty-icon-wrapper i {
    font-size: 72px;
    color: #ddd;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-software .empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-software .empty-text {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* 下载须知样式 */
.download-notice {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.notice-header i {
    font-size: 24px;
    color: #4a90e2;
    margin-right: 10px;
}

.notice-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.notice-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.notice-icon.warning {
    color: #ff9800;
}

.notice-icon.safe {
    color: #4a90e2;
}

.notice-icon.download {
    color: #4caf50;
}

.notice-item span:last-child {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* 主内容区对齐 */
.software-section .row {
    align-items: flex-start;
}

.software-section .col-lg-9.col-md-8 {
    display: flex;
    flex-direction: column;
}

/* 软件卡片网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 0;
}

.software-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.software-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #42e8df;
}

/* 卡片头部 */
.card-header {
    padding: 25px 25px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-icon i {
    font-size: 26px;
    color: #fff;
}

.card-title-wrapper {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #142A85;
    margin: 0 0 8px 0;
    line-height: 1.4;
    word-break: break-word;
}

.tag-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-network {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #90caf9;
}

.tag-api {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* 卡片主体 */
.card-body {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 18px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
}

.info-icon {
    font-size: 14px;
    color: #42e8df;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.info-label {
    color: #888;
    font-size: 12px;
}

.info-value {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
}

/* 卡片底部 */
.card-footer {
    padding: 20px 25px 25px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: #fff;
    text-decoration: none;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.download-btn i {
    font-size: 16px;
}

/* 禁用状态的下载按钮 */
.download-btn-disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%) !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none !important;
}

.download-btn-disabled:hover {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.download-btn-disabled::before {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .download-notice {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .software-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .software-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-header {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-title-wrapper {
        width: 100%;
    }

    .card-body {
        padding: 18px 20px;
    }

    .card-footer {
        padding: 18px 20px 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-item {
        justify-content: flex-start;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-header i {
        margin-bottom: 8px;
    }
}

@media (max-width: 575px) {
    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 22px;
    }

    .card-title {
        font-size: 18px;
    }
}

