
/* ================= 服务页面样式 (Services Page) ================= */
:root {
    --brand-primary: #1677C9;
    --brand-primary-dark: #125f9f;
    --brand-secondary: #32B8B8;
    --brand-tertiary: #A3A8E0;
}



/* 1. 静态英雄区 */
.page-hero {
    position: relative;
    height: 48vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content-static {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content-static h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: heroFadeInUp 0.8s ease forwards;
}

.hero-content-static p {
    font-size: 1.2rem;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease forwards 0.3s;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. 故事与价值观 */
.story-section {
    padding: 70px 0 60px;
    background-color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 科技感线条装饰：规则方格线 + 交汇处黑点 */
.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
      1. 黑色小圆点（交汇处） 
      2. 垂直方格线
      3. 水平方格线
    */
    background-image: 
        radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 51, 153, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 51, 153, 0.04) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 60px 60px;
    background-position: -1px -1px, 0 0, 0 0; /* 微调圆点位置使其精确对齐网格线交汇处 */
    z-index: -1;
    pointer-events: none;
}

.story-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.story-text {
    /* 交互动画初始状态 */
    opacity: 0;
    transform: translateX(-50px);
}

.story-section.visible .story-text {
    animation: slideInLeftText 0.8s ease-out forwards;
}

@keyframes slideInLeftText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #222;
}

.story-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* 交互动画初始状态 */
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.4s ease;
}

.story-section.visible .story-image {
    animation: slideInRightImage 0.8s ease-out forwards 0.2s;
}

@keyframes slideInRightImage {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-section.visible:hover .story-image {
    transform: translateY(-6px) !important;
}

.values-section {
    padding: 60px 0 100px;
    background-color: #f7f9fc;
}

.values-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    
    /* 交互动画初始状态 */
    opacity: 0;
    transform: translateY(30px);
}

.values-section.visible .values-header {
    animation: slideInUpHeader 0.8s ease-out forwards;
}

@keyframes slideInUpHeader {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.values-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #222;
}

.values-header p {
    color: #666;
    line-height: 1.7;
}

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

.value-card {
    background: #fff;
    padding: 30px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: center;
    
    /* 交互动画初始状态 */
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-section.visible .value-card {
    animation: slideInUpCard 0.6s ease-out forwards;
}

@keyframes slideInUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.values-section.visible .value-card:nth-child(1) { animation-delay: 0.2s; }
.values-section.visible .value-card:nth-child(2) { animation-delay: 0.4s; }
.values-section.visible .value-card:nth-child(3) { animation-delay: 0.6s; }

.values-section.visible .value-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 168, 224, 0.22);
    color: var(--brand-primary);
    font-size: 1.3rem;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.value-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mission-banner {
    background: linear-gradient(135deg, #0e355a, var(--brand-primary));
    color: #fff;
    padding: 28px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(32, 86, 209, 0.3);
    
    /* 交互动画初始状态 */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.values-section.visible .mission-banner {
    animation: popIn 0.8s ease-out forwards 0.8s;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mission-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.mission-banner p {
    margin: 0;
    line-height: 1.7;
    opacity: 0.95;
}

/* 3. 服务列表网格 */
.services-grid-section {
    padding: 0 0 110px;
    background-color: #f5f7fb;
}

.services-grid-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
    text-align: center;
}

.services-grid-section h2 {
    font-size: 2.4rem;
    margin: 0 0 14px;
    color: #222;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.services-grid-section.visible h2 {
    animation: slideInUpHeader 0.8s ease-out forwards;
}

.services-scroll-progress {
    width: min(1300px, 60%);
    height: 6px;
    margin: 15px auto 0;
    background: #e0e5ec;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.services-scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary));
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(22, 119, 201, 0.45);
    transition: width 0.1s ease-out;
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 22px 20px 70px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.service-card {
    flex: 0 0 420px;
    min-width: 340px;
    background: #fff;
    padding: 34px 32px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid transparent;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.services-grid-section.visible .service-card {
    animation: slideInUpCard 0.6s ease-out forwards;
}

.services-grid-section.visible .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid-section.visible .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid-section.visible .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid-section.visible .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid-section.visible .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid-section.visible .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-grid-section.visible .service-card:nth-child(7) { animation-delay: 0.7s; }

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--brand-primary);
}

.service-card-img {
    width: auto;
    height: auto;
    max-width: 160%;
    max-height: 220px; /* 适当放开高度限制，适应产品实拍图 */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* 可选：给图片加一点点小圆角 */
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.42rem;
    margin-bottom: 12px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.feature-list {
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 8px;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--brand-primary);
    font-size: 0.8rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-more-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(150, 150, 150, 0.08); /* 灰色半透明背景 */
    border: 2px dashed rgba(120, 120, 120, 0.3) !important; /* 覆盖默认顶部边框 */
    box-shadow: none;
}

.service-more-card:hover {
    background: rgba(150, 150, 150, 0.15);
    border-color: var(--brand-primary) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.service-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--brand-primary);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-more-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 992px) {
    .story-layout {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        flex-basis: 380px;
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 18px;
        padding: 18px 16px 60px;
    }

    .service-card {
        flex-basis: 300px;
        min-width: 280px;
        padding: 28px 24px;
    }

    .hero-content-static h1 {
        font-size: 2.5rem;
    }
}
