/* ========== 软件页面样式 ========== */

/* 容器 */
.soft-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 区块标题 */
.soft-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.soft-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 8px 0;
}

.soft-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 推荐服务卡片 */
.soft-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.soft-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.soft-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.soft-service-card:hover::before {
    transform: scaleX(1);
}

.soft-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.soft-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.soft-service-card:hover .soft-service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
}

.soft-service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.soft-service-tag {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soft-service-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 10px 0;
}

.soft-service-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.soft-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.soft-service-price {
    font-size: 14px;
    color: #94a3b8;
}

.soft-service-price span {
    font-size: 24px;
    font-weight: 700;
    color: #7c3aed;
}

.soft-service-btn {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.soft-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* 软件列表 */
.soft-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.soft-list-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    min-height: 160px;
}

.soft-list-card:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.soft-list-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    margin-right: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
}

.soft-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.soft-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.soft-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.soft-list-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.soft-list-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.soft-list-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
}

.soft-list-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.soft-list-btn:hover {
    transform: translateY(-1px);
}

/* ========== 软件详情页面样式 ========== */

.soft-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .soft-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* 侧边栏 */
.soft-sidebar {
    position: sticky;
    top: 90px;
}

.soft-sidebar-module {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.soft-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 16px 0;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

.soft-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.soft-sidebar-nav li {
    margin-bottom: 8px;
}

.soft-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.soft-sidebar-nav a:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    color: #7c3aed;
}

.soft-sidebar-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 推荐应用 */
.soft-sidebar-apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.soft-sidebar-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.soft-sidebar-app-item:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.soft-sidebar-app-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
}

.soft-sidebar-app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soft-sidebar-app-title {
    font-size: 12px;
    color: #475569;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容 */
.soft-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 文章头部 */
.soft-detail-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 20px;
    padding: 32px;
    color: #fff;
}

.soft-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.soft-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.soft-detail-author {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    padding: 6px 14px;
    border-radius: 20px;
    color: #a5b4fc;
}

.soft-detail-desc-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.soft-detail-desc {
    flex: 1;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.soft-detail-qrcode {
    flex-shrink: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
}

.soft-detail-qrcode-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 8px;
}

.soft-detail-qrcode-img {
    width: 80px;
    height: 80px;
}

.soft-detail-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.soft-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.soft-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.soft-detail-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.soft-detail-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.soft-detail-btn:hover {
    transform: translateY(-2px);
}

/* 内容区块 */
.soft-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.soft-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

/* 软件特色 */
.soft-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.soft-feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.soft-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
}

.soft-feature-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.soft-feature-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* 软件图片 */
.soft-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.soft-image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.soft-image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.soft-image-item:hover img {
    transform: scale(1.05);
}

/* 详细内容 */
.soft-content-body {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

.soft-content-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* 下载提示 */
.soft-download-prompt {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.soft-download-prompt a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.soft-download-prompt a:hover {
    text-decoration: underline;
}

/* 二维码分享 */
.soft-qrcode {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.soft-qrcode-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 12px 0;
}

.soft-qrcode-img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.soft-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 上下篇导航 */
.soft-nav-wrapper {
    margin-top: 16px;
}

.soft-nav {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.soft-nav-item {
    flex: 1;
}

.soft-nav-tag {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.soft-nav-link {
    display: block;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.soft-nav-link a {
    color: inherit;
    text-decoration: none;
}

.soft-nav-link:hover {
    color: #7c3aed;
}

.soft-nav-next {
    text-align: right;
}