/* ========== 产品服务页面 ========== */

/* --- 全局变量（复用 about.css 变量）--- */
:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-lighter: #eff6ff;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* ========== ① Hero Banner ========== */
.services-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.services-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.services-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(240,247,255,0.5) 100%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.services-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.services-hero .hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #475569;
    letter-spacing: 1px;
}

/* ========== 通用板块标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 20px;
    background: var(--primary-lighter);
    border-radius: 20px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== ② 服务总览 ========== */
.services-overview {
    padding: 100px 0;
}

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

.service-card {
    background: linear-gradient(145deg, #fff, var(--gray-50));
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.08);
    border-color: var(--primary-lighter);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-lighter), #fff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card > p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--primary-lighter);
    color: var(--primary);
}

/* ========== ③ 核心服务详解 ========== */
.services-detail {
    padding: 100px 0;
}

.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block:hover {
    box-shadow: 0 20px 40px rgba(37,99,235,0.06);
    border-color: var(--primary-lighter);
}

.detail-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.15;
}

.detail-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.detail-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 28px;
}

.detail-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-600);
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-data {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.data-label {
    font-size: 13px;
    color: var(--gray-400);
}

.detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-img-wrap {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-lighter), #eff6ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== ④ 服务优势 ========== */
.services-advantage {
    padding: 100px 0;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.advantage-card {
    background: linear-gradient(145deg, var(--gray-50), #fff);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(37,99,235,0.06);
    border-color: var(--primary-lighter);
}

.advantage-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.12;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.advantage-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
}

.stats-item {
    text-align: center;
}

.stats-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-label {
    font-size: 14px;
    color: var(--gray-400);
}

/* ========== ⑤ 服务流程 ========== */
.services-process {
    padding: 100px 0;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.process-item {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.process-step {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

.process-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.process-content p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.process-arrow {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-300), var(--primary-light));
    margin-top: 28px;
    flex-shrink: 0;
    position: relative;
}

.process-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-light);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* ========== 滚动动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== 响应式 ========== */
/* ========== ⑥ 服务承诺 ========== */
.services-commitment {
    padding: 100px 0;
}

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

.commitment-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.commitment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.08);
    border-color: var(--primary-lighter);
}

.commitment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-lighter), #fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.commitment-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.commitment-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .commitment-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-block { grid-template-columns: 1fr; gap: 40px; }
    .detail-block:nth-child(even) .detail-visual { order: -1; }
    .process-flow { flex-wrap: wrap; gap: 32px; }
    .process-arrow { display: none; }
    .process-item { flex: 0 0 30%; }
}

@media (max-width: 768px) {
    .services-hero { min-height: 300px; }
    .services-hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: 1fr; }
    .commitment-grid { grid-template-columns: 1fr; }
    .detail-block { padding: 32px 24px; }
    .detail-content h3 { font-size: 22px; }
    .detail-data { gap: 24px; }
    .data-num { font-size: 24px; }
    .advantage-stats { flex-wrap: wrap; gap: 32px; }
    .stats-item { min-width: 40%; }
    .process-item { flex: 0 0 45%; }
}
