/* ==========================================================================
   业务领域 services.html 专属样式
   ========================================================================== */

/* ---------- 业务导航锚点 ---------- */
.services-nav {
    background: var(--bg-paper);
    padding: 32px 0;
    position: sticky;
    top: 80px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    border-bottom: 1px solid var(--line-gray);
}

.services-nav-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sn-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--line-gray);
    border-radius: 24px;
    font-size: 14px;
    color: var(--ink-gray);
    transition: var(--transition);
    background: #fff;
}

.sn-item:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, .25);
}

.sn-item .sn-num {
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--red-primary);
}

.sn-item:hover .sn-num {
    color: #fff;
}

.sn-item .sn-title {
    font-weight: 500;
}

/* ---------- 业务详情区 ---------- */
.service-section {
    padding: 100px 0;
    background: var(--bg-paper);
    position: relative;
    scroll-margin-top: 140px;
}

.service-section.alt {
    background: var(--bg-cream);
}

.service-section + .service-section {
    border-top: 1px solid var(--line-gray);
}

.service-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
    align-items: start;
}

.service-detail.reverse .sd-image {
    order: 2;
}

/* ---------- 业务图示 ---------- */
.sd-image {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sd-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-deep) 100%);
}

.sd-image-bg::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.sd-image-bg::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.sd-image-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 32px;
}

.sd-image-inner .sd-num {
    font-family: var(--serif);
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    opacity: .9;
}

.sd-image-inner .sd-icon {
    font-size: 100px;
    line-height: 1;
    margin-bottom: 24px;
}

.sd-image::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid rgba(255,255,255,.3);
    pointer-events: none;
    z-index: 2;
}

/* ---------- 业务内容 ---------- */
.sd-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--red-pale);
    color: var(--red-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.sd-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.sd-content .sd-lead {
    font-size: 16px;
    color: var(--ink-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-gray);
}

.sd-section {
    margin-bottom: 36px;
}

.sd-section h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 16px;
    letter-spacing: 2px;
    position: relative;
    padding-left: 16px;
}

.sd-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--red-primary);
}

/* 列表 */
.sd-list {
    list-style: none;
}

.sd-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 1.8;
    border-bottom: 1px dashed var(--line-gray);
}

.sd-list li:last-child {
    border-bottom: none;
}

.sd-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
}

.sd-list li strong {
    color: var(--ink-black);
    font-weight: 700;
    margin-right: 6px;
}

/* 合同类型标签 */
.contract-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ct-tag {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--red-primary);
    color: var(--red-primary);
    font-size: 13px;
    border-radius: 16px;
    transition: var(--transition);
}

.ct-tag:hover {
    background: var(--red-primary);
    color: #fff;
}

.service-section.alt .ct-tag {
    background: #fff;
    border-color: var(--red-primary);
}

/* 模块卡片 */
.sd-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sd-module {
    background: #fff;
    border-left: 3px solid var(--red-primary);
    padding: 20px 24px;
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-sm);
}

.service-section.alt .sd-module {
    background: #fff;
}

.sd-module h5 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.sd-module p {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.7;
}

/* 高亮承诺 */
.sd-highlight {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--red-pale) 0%, #fff 100%);
    border-radius: 4px;
    border: 1px solid var(--red-pale);
}

.sd-highlight h4 {
    margin-bottom: 24px;
}

.sd-promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promise-item {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
}

.promise-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    color: var(--red-primary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.promise-item span {
    display: block;
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.7;
}

/* 数据横幅 */
.sd-data-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    padding: 32px;
    background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-primary) 100%);
    border-radius: 4px;
    color: #fff;
}

.sd-data-banner .data-item {
    text-align: center;
}

.sd-data-banner .data-num {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.sd-data-banner .data-num sup {
    font-size: 20px;
    margin-left: 4px;
}

.sd-data-banner .data-label {
    font-size: 14px;
    opacity: .9;
    letter-spacing: 1px;
}

/* 案例行 */
.sd-cases {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-row {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border-left: 3px solid var(--red-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-sm);
}

.case-row .case-year {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--red-primary);
    flex-shrink: 0;
    min-width: 60px;
}

.case-row .case-desc {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 1.7;
}

.case-row .case-desc strong {
    color: var(--red-primary);
    font-size: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .services-nav {
        top: 64px;
        padding: 16px 0;
        overflow-x: auto;
    }

    .services-nav-wrap {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 24px;
    }

    .sn-item {
        flex-shrink: 0;
    }

    .service-section {
        padding: 64px 0;
    }

    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-detail.reverse .sd-image {
        order: 0;
    }

    .sd-image {
        aspect-ratio: 16 / 9;
    }

    .sd-image-inner .sd-num {
        font-size: 64px;
    }

    .sd-image-inner .sd-icon {
        font-size: 72px;
    }

    .sd-content h2 {
        font-size: 36px;
    }

    .sd-modules,
    .sd-promises {
        grid-template-columns: 1fr;
    }

    .sd-data-banner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sd-data-banner .data-num {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sd-content h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .sd-image-inner .sd-num {
        font-size: 48px;
    }

    .sd-image-inner .sd-icon {
        font-size: 56px;
    }

    .case-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}