/* ===== 服务页（/service）— 统一全站渐变背景体系 ===== */

.service-page-wrap {
    min-height: 100vh;
    position: relative;
}

.service-page-wrap.page-bg-container {
    background: linear-gradient(135deg, #e6edfa 0%, #f5f8ff 60%, #e6eaff 100%);
}

.service-page-wrap .bg-layer {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.service-page-wrap .bg-layer-1 {
    width: 30%;
    height: 70%;
    left: 0;
    top: 0;
    opacity: 0.9;
    background: url('/images/price/bg1.png') no-repeat left top;
    background-size: contain;
}

.service-page-wrap .bg-layer-2 {
    width: 30%;
    height: 70%;
    right: 0;
    top: 30%;
    opacity: 0.9;
    background: url('/images/price/bg2.png') no-repeat right center;
    background-size: contain;
}

.service-page-wrap .bg-layer-3 {
    width: 30%;
    height: 50%;
    left: 0;
    bottom: 0;
    opacity: 0.86;
    background: url('/images/price/bg3.png') no-repeat left bottom;
    background-size: cover;
}

/* 页眉卡片区 */
.service-header-card {
    max-width: 1280px;
    margin: 32px auto 0 auto;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(77, 138, 255, 0.10);
    backdrop-filter: blur(20px);
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2540;
    margin-bottom: 4px;
}

.service-page-subtitle {
    font-size: 0.9rem;
    color: #8a94a6;
}

/* 搜索框 */
.service-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    max-width: 480px;
}

.service-search-input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #dde6f8;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.service-search-input:focus {
    border-color: #4d8aff;
    box-shadow: 0 0 0 3px rgba(77, 138, 255, 0.12);
}

.service-search-btn {
    height: 42px;
    padding: 0 20px;
    background: linear-gradient(90deg, #4d8aff, #6ecbff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.service-search-btn:hover { opacity: 0.88; }

/* 快捷按钮组 */
.service-action-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.service-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #dde6f8;
    border-radius: 10px;
    color: #4d8aff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.service-action-btn:hover {
    background: #4d8aff;
    border-color: #4d8aff;
    color: #fff;
}

.service-action-btn img {
    width: 18px;
    height: 18px;
    padding: 2px;
    border-radius: 6px;
    background: rgba(77, 138, 255, 0.14);
    filter: brightness(0) saturate(100%) invert(32%) sepia(92%) saturate(1650%) hue-rotate(206deg) brightness(97%) contrast(96%);
}

.service-action-btn:hover img {
    background: rgba(255, 255, 255, 0.16);
    filter: brightness(0) invert(1);
}

/* 知识库内容区 */
.service-content-area {
    max-width: 1280px;
    margin: 24px auto 60px auto;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(77, 138, 255, 0.07);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

/* Knowledge list */
.knowledge-list-inner {
    padding: 28px 36px 36px 36px;
}

.service-knowledge-list {
    min-height: 120px;
}

.service-knowledge-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(77, 138, 255, 0.12);
}

.service-knowledge-count {
    font-size: 14px;
    color: #64748b;
    letter-spacing: 0.02em;
}

.service-knowledge-count strong {
    color: #2563eb;
    font-weight: 700;
}

.service-knowledge-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-knowledge-item {
    margin: 0;
    padding: 0;
}

/* 知识条目卡片 — 横向栅格 + 图标 + 摘要 + 元信息 */
.knowledge-card {
    display: grid;
    grid-template-columns: 52px 1fr 36px;
    gap: 0 18px;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.92) 100%);
    border: 1px solid rgba(203, 213, 245, 0.85);
    border-radius: 16px;
    padding: 18px 20px 18px 18px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.04);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
    cursor: pointer;
    outline: none;
}

.knowledge-card:hover {
    box-shadow: 0 10px 36px rgba(77, 138, 255, 0.14);
    border-color: rgba(129, 161, 255, 0.65);
    transform: translateY(-2px);
}

.knowledge-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(77, 138, 255, 0.35);
    border-color: #4d8aff;
}

.knowledge-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(77, 138, 255, 0.16) 0%, rgba(110, 203, 255, 0.12) 100%);
    border: 1px solid rgba(77, 138, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    align-self: start;
}

.knowledge-card-icon .portal-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.knowledge-card-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.knowledge-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
}

.knowledge-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card:hover .knowledge-title {
    color: #1d4ed8;
}

.knowledge-category-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #4d8aff;
    background: rgba(77, 138, 255, 0.1);
    border: 1px solid rgba(77, 138, 255, 0.22);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 2px;
}

.knowledge-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.knowledge-meta-item .portal-icon {
    width: 13px;
    height: 13px;
    opacity: 0.85;
}

.keyword-tag {
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f1fc 100%);
    color: #3b6fd9;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(77, 138, 255, 0.18);
}

.knowledge-card-aside {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.knowledge-card-chevron {
    width: 14px;
    height: 14px;
}

.knowledge-card:hover .knowledge-card-aside {
    color: #4d8aff;
    transform: translateX(3px);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 64px 24px 72px;
    color: #94a3b8;
}

.empty-state .portal-icon-lg {
    margin-bottom: 16px;
    color: #bfdbfe;
    opacity: 0.9;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px 0;
}

.empty-state-hint {
    font-size: 14px;
    margin: 0;
    color: #94a3b8;
}

/* 分页 */
.pagination-container,
.service-knowledge-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px 0;
    margin-top: 8px;
}

.service-pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(203, 213, 245, 0.6);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(77, 138, 255, 0.06);
}

.service-pagination .service-page-link,
.service-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.service-pagination .service-page-link:hover,
.service-pagination .page-link:hover {
    color: #2563eb;
    background: rgba(77, 138, 255, 0.1);
    border-color: rgba(77, 138, 255, 0.2);
}

.service-pagination .service-page-link.active,
.service-pagination .page-link.active {
    color: #fff;
    background: linear-gradient(135deg, #4d8aff 0%, #2563eb 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.service-pagination .service-page-link:focus-visible,
.service-pagination .page-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 138, 255, 0.35);
}

/* 加载/错误状态 */
.loading-state, .error-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}
.loading-state i { animation: spin 1s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .service-header-card { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
    .service-search-box { max-width: 100%; width: 100%; }
    .service-action-btns { width: 100%; justify-content: flex-start; }
    .knowledge-list-inner { padding: 16px 18px 24px; }
}

@media (max-width: 576px) {
    .knowledge-card {
        grid-template-columns: 42px 1fr;
        padding: 14px 14px 14px 12px;
        gap: 0 12px;
    }
    .knowledge-card-aside {
        display: none;
    }
    .knowledge-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .knowledge-card-icon .portal-icon {
        width: 1.05rem;
        height: 1.05rem;
    }
    .knowledge-title {
        font-size: 1rem;
    }
    .service-knowledge-toolbar {
        margin-bottom: 16px;
    }
}
