/* ==========================================================================
   服务项目页面样式  services.css
   ========================================================================== */

/* ============================================================
   1. HERO — 主标题区
   ============================================================ */
.service-hero {
    margin-top: 70px;
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #eef6ff 0%, #f5f9ff 50%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 大背景装饰圆 */
.service-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,126,226,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(26,126,226,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(26, 126, 226, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(26, 126, 226, 0.2);
    border-radius: 100px;
    padding: 6px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.service-main-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.service-subtitle {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.service-description {
    font-size: 17px;
    color: var(--light-gray);
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 0 var(--spacing-sm);
}

.hero-clients {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.clients-label {
    font-size: 13px;
    color: #8a9ab0;
}

.client-tag {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    border: 1.5px solid rgba(26, 126, 226, 0.25);
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(26,126,226,0.08);
}

/* ============================================================
   2. 通用 section 辅助文字
   ============================================================ */
.section-desc {
    text-align: center;
    font-size: 16px;
    color: var(--light-gray);
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* pain-card 数字水印修正：padding-top 留足空间给 h3 */
.pain-card h3 {
    position: relative;
    z-index: 1;
}

.pain-card p {
    position: relative;
    z-index: 1;
}

/* ============================================================
   3. 三大核心难题 — pain-points
   ============================================================ */
.pain-points {
    padding: 80px 0;
    background: var(--white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.pain-card {
    background: #f8fbff;
    padding: 40px 32px 36px;
    border-radius: 16px;
    border: 1px solid #e4eef8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,126,226,0.12);
    border-color: rgba(26,126,226,0.3);
}

/* 大号背景数字水印 */
.pain-number {
    position: absolute;
    top: -12px;
    right: 16px;
    font-size: 88px;
    font-weight: 900;
    color: var(--primary-blue);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* 前景小序号 */
.pain-card::before {
    content: attr(data-num);
    display: none;
}

.pain-card h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
}

.pain-card h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    margin-top: 10px;
}

.pain-card p {
    font-size: 15px;
    color: var(--light-gray);
    line-height: 1.8;
    margin: 0;
    position: relative;
}

/* ============================================================
   4. 六大测绘服务套餐 — service-packages
   ============================================================ */
.service-packages {
    padding: 80px 0;
    background: #f5f9ff;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.package-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8eef6;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

/* ── 卡片头部（渐变色块） ── */
.package-header {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* 头部右侧大号装饰文字 */
.package-header::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* 服务编号徽标 */
.pkg-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.package-header h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--white);
}

.package-note {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* 六色渐变主题 */
.service-s1 .package-header { background: linear-gradient(135deg, #f97316 0%, #fdba74 100%); }
.service-s2 .package-header { background: linear-gradient(135deg, #1a7ee2 0%, #60aeff 100%); }
.service-s3 .package-header { background: linear-gradient(135deg, #0d1b2a 0%, #2a4a6e 100%); }
.service-s4 .package-header { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.service-s5 .package-header { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.service-s6 .package-header { background: linear-gradient(135deg, #065f46 0%, #059669 100%); }

/* hover 时底部彩色线条 */
.service-s1 { border-bottom: 3px solid transparent; }
.service-s1:hover { border-bottom-color: #f97316; }
.service-s2:hover { border-bottom-color: #1a7ee2; }
.service-s3:hover { border-bottom-color: #1e3a5f; }
.service-s4:hover { border-bottom-color: #059669; }
.service-s5:hover { border-bottom-color: #7c3aed; }
.service-s6:hover { border-bottom-color: #065f46; }

/* ── 价格区 ── */
.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding: 24px 24px 0;
}

.price-symbol {
    font-size: 20px;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 4px;
    align-self: flex-end;
}

.price-value {
    font-size: 52px;
    color: var(--dark-gray);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.price-unit {
    font-size: 16px;
    color: var(--light-gray);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 4px;
}

/* ── 计费说明 ── */
.billing-box {
    padding: 0 24px;
}

.package-billing {
    text-align: center;
    font-size: 12px;
    color: #8a9ab0;
    margin: 8px 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f4f9;
}

/* ── 功能列表 ── */
.package-features {
    flex: 1;
    padding: 4px 24px 28px;
}

.package-features h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a9ab0;
    margin: 16px 0 6px;
}

/* 各服务 h4 左侧色条 */
.service-s1 .package-features h4 { border-left: 3px solid #f97316; padding-left: 8px; color: #f97316; }
.service-s2 .package-features h4 { border-left: 3px solid #1a7ee2; padding-left: 8px; color: #1a7ee2; }
.service-s3 .package-features h4 { border-left: 3px solid #2a4a6e; padding-left: 8px; color: #2a4a6e; }
.service-s4 .package-features h4 { border-left: 3px solid #059669; padding-left: 8px; color: #059669; }
.service-s5 .package-features h4 { border-left: 3px solid #7c3aed; padding-left: 8px; color: #7c3aed; }
.service-s6 .package-features h4 { border-left: 3px solid #065f46; padding-left: 8px; color: #065f46; }

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    font-size: 13.5px;
    color: var(--light-gray);
    line-height: 1.9;
    padding: 1px 0;
}

/* ============================================================
   5. 服务流程 — service-process
   ============================================================ */
.service-process {
    padding: 80px 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.process-item {
    background: #f8fbff;
    padding: 28px 24px;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e4eef8;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(26,126,226,0.1);
    border-color: rgba(26,126,226,0.25);
}

.process-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.process-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    opacity: 0.35;
}

.process-title h3 {
    font-size: 17px;
    color: var(--dark-gray);
    font-weight: 700;
    margin: 4px 0 0;
}

.process-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-item p {
    font-size: 13.5px;
    color: var(--light-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   6. 快速选型矩阵 — selection-matrix
   ============================================================ */
.selection-matrix {
    padding: 80px 0;
    background: #f5f9ff;
}

/* ── 表格 ── */
.matrix-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 56px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 14.5px;
}

.matrix-table thead tr {
    background: var(--dark-gray);
}

.matrix-table th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.matrix-table th:first-child { border-radius: 16px 0 0 0; }
.matrix-table th:last-child  { border-radius: 0 16px 0 0; }

.matrix-table tbody tr {
    border-bottom: 1px solid #f0f4f9;
    transition: background 0.18s ease;
}

.matrix-table tbody tr:last-child {
    border-bottom: none;
}

.matrix-table tbody tr:last-child td:first-child { border-radius: 0 0 0 16px; }
.matrix-table tbody tr:last-child td:last-child  { border-radius: 0 0 16px 0; }

.matrix-table tbody tr:nth-child(even) {
    background: #fafbfe;
}

.matrix-table tbody tr:hover {
    background: #eef6ff;
}

.matrix-table td {
    padding: 14px 24px;
    color: var(--light-gray);
    line-height: 1.5;
    vertical-align: middle;
}

.matrix-table td:first-child {
    color: var(--dark-gray);
    font-weight: 500;
}

.price-cell {
    font-weight: 700;
    color: var(--dark-gray) !important;
    font-size: 15px;
    white-space: nowrap;
}

/* 服务标签 */
.svc-tag {
    display: inline-block;
    border-radius: 100px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.tag-s1 { background: #f97316; }
.tag-s2 { background: #1a7ee2; }
.tag-s3 { background: #1e3a5f; }
.tag-s4 { background: #059669; }
.tag-s5 { background: #7c3aed; }
.tag-s6 { background: #065f46; }

/* ── 三问决策区 ── */
.decision-questions {
    margin-top: 56px;
}

.dq-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 32px;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.question-card {
    background: var(--white);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e8eef6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(26,126,226,0.12);
    border-color: rgba(26,126,226,0.25);
}

.q-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--primary-blue);
    background: rgba(26, 126, 226, 0.1);
    border: 1px solid rgba(26, 126, 226, 0.2);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.question-card h4 {
    font-size: 19px;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 10px;
}

.question-card p {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   7. 联系咨询 CTA — service-cta
   ============================================================ */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1628 0%, #0d2447 50%, #1a3a6e 100%);
    position: relative;
    overflow: hidden;
}

/* 装饰背景圆 */
.service-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,126,226,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    position: relative;
}

.cta-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 520px;
    margin: 0;
}

.cta-contacts {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    cursor: pointer;
}

.cta-btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26,126,226,0.35);
}

.cta-btn-primary:hover {
    background: #1568c2;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26,126,226,0.5);
    color: var(--white);
}

.cta-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-value {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cta-btn-outline {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
    font-size: 15px;
    padding: 16px 32px;
    backdrop-filter: blur(4px);
}

.cta-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
    color: var(--white);
}

/* ============================================================
   8. 移动端适配
   ============================================================ */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 64px 0 56px;
    }

    .service-main-title {
        font-size: 30px;
        letter-spacing: 0;
    }

    .service-subtitle {
        font-size: 18px;
    }

    .service-description {
        font-size: 15px;
    }

    .pain-grid,
    .packages-grid,
    .process-grid,
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pain-card,
    .package-card,
    .process-item,
    .question-card {
        padding: 24px 20px;
    }

    .price-value {
        font-size: 40px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .cta-text h2 {
        font-size: 26px;
    }

    .cta-contacts {
        width: 100%;
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .pain-points,
    .service-packages,
    .service-process,
    .selection-matrix,
    .service-cta {
        padding: 56px 0;
    }

    .pain-grid,
    .packages-grid,
    .process-grid,
    .questions-grid {
        margin-top: 36px;
    }

    .matrix-table-wrap {
        margin-top: 36px;
    }

    .decision-questions {
        margin-top: 36px;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .service-main-title {
        font-size: 24px;
    }

    .service-subtitle {
        font-size: 16px;
    }

    .service-description {
        font-size: 14px;
    }

    .pain-card h3 {
        font-size: 19px;
    }

    .price-value {
        font-size: 36px;
    }

    .cta-text h2 {
        font-size: 22px;
    }

    .dq-title {
        font-size: 20px;
    }
}
