/* ========================================
   服务页面样式 - 统一蓝金配色
   ======================================== */

/* === 页面 Hero 区 === */
.services-hero {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.08);
    pointer-events: none;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.services-hero h1 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.services-hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* === 服务导航 === */
.services-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}

@media (min-width: 992px) {
    .services-nav {
        position: sticky;
        top: 70px;
        z-index: 100;
    }
}

.services-nav.shadow-sm {
    box-shadow: 0 4px 20px rgba(26, 77, 143, 0.08) !important;
}

.nav-pill-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-pill-custom:hover,
.nav-pill-custom:focus {
    background: var(--gradient-primary);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 77, 143, 0.25);
}

/* === 通用 Section 标题 === */
.svc-section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.svc-section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}

.svc-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-accent);
}

.svc-section-title .lead {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.svc-section-title p:not(.lead) {
    color: var(--text-light);
    margin-top: 1rem;
}

/* 标签组 */
.svc-badge-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.svc-badge {
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
}

.svc-badge-blue {
    background: rgba(26, 77, 143, 0.1);
    color: var(--primary-color);
}

.svc-badge-gold {
    background: rgba(201, 169, 97, 0.15);
    color: #a88b3a;
}

.svc-badge-teal {
    background: rgba(17, 153, 142, 0.1);
    color: #0e7a72;
}


.brand-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.brand-tag-blue {
    background: rgba(26, 77, 143, 0.08);
    color: var(--primary-color);
}

.brand-tag-gold {
    background: rgba(201, 169, 97, 0.12);
    color: #a88b3a;
}

.brand-tag-teal {
    background: rgba(17, 153, 142, 0.1);
    color: #0e7a72;
}

/* === 产品小卡片 === */
.product-card-sm {
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card-sm .card-body {
    padding: 1.6rem 1.2rem;
}

.product-card-sm .sm-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(26, 77, 143, 0.06);
    color: var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

.product-card-sm:hover .sm-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.product-card-sm h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-card-sm p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 绿色特殊卡（二手仪器） */
.product-card-sm.highlight-card {
    border: 2px solid rgba(17, 153, 142, 0.2);
}

.product-card-sm.highlight-card .sm-icon {
    background: rgba(17, 153, 142, 0.08);
    color: #0e7a72;
}

.product-card-sm.highlight-card:hover .sm-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

/* === CTA 按钮区 === */
.svc-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.svc-cta .btn {
    border-radius: 50px;
    padding: 0.75rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    letter-spacing: 0.3px;
}

.svc-cta .btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3);
}

.svc-cta .btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 143, 0.35);
}

.svc-cta .btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.svc-cta .btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* === 服务特色底栏 === */
.feature-block {
    padding: 2rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-block i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-block h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-block p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* === 增值服务 - 图片悬停显示文字 === */
.pm-hover-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-sm);
    cursor: default;
    contain: layout paint;
}

.pm-hover-card .pm-hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    backface-visibility: hidden;
    will-change: transform;
}

.pm-hover-card:hover .pm-hover-img {
    transform: scale(1.03);
}

.pm-hover-card .pm-hover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 28, 66, 0.88), transparent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.pm-hover-card:hover .pm-hover-label {
    opacity: 0;
}

.pm-hover-card .pm-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 143, 0.92);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pm-hover-card:hover .pm-hover-overlay {
    opacity: 1;
}

.pm-hover-card .pm-hover-overlay h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.pm-hover-card .pm-hover-overlay p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
}

.pm-hover-card .pm-tag-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pm-hover-card .pm-tag-group .pm-tag {
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .pm-hover-card {
        height: 220px;
    }

    .pm-hover-card .pm-hover-overlay {
        padding: 1.2rem;
    }

    .pm-hover-card .pm-hover-overlay h6 {
        font-size: 0.92rem;
    }

    .pm-hover-card .pm-hover-overlay p {
        font-size: 0.8rem;
    }

    .pm-hover-card.pm-hover-lg {
        height: 260px;
    }
}

/* 大号悬停卡 (产品区 col-lg-6) */
.pm-hover-card.pm-hover-lg {
    height: 320px;
}

/* 品牌行 */
.pm-hover-card .pm-brand-line {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* === 背景 === */
.bg-services-light {
    background: linear-gradient(180deg, var(--lighter-bg) 0%, #f0f4f8 100%);
}

/* === 响应式 === */
@media (max-width: 991px) {
    .services-hero {
        padding: 3.5rem 0 3rem;
    }

    .svc-section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 1.75rem;
    }

    .nav-pill-custom {
        padding: 0.5rem 1.2rem;
        font-size: 0.88rem;
    }

    .svc-section-title h2 {
        font-size: 1.6rem;
    }

    .svc-section-title .lead {
        font-size: 0.95rem;
    }

    .svc-cta .btn {
        width: 100%;
    }

    .svc-badge {
        font-size: 0.8rem;
        padding: 0.35rem 1rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        padding: 2.5rem 0 2rem;
    }
}

/* === 区块渲染优化 === */
#products,
#basic-services,
#premium-services {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* === 平滑滚动 === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}
