/* 服务.css - 现代科技感设计方案 */

/* --- 全局和基础样式 --- */
body {
    background-color: #ffffff;
    /* 页面主背景设为白色 */
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --- 主视觉 Hero Section --- */
.hero-section {
    display: flex;
    height: 100vh;
    /* 占据整个视口高度 */
    min-height: 600px;
    width: 100%;
    margin-top: 80px;
    /* 留出导航栏空间, 根据你的导航栏高度调整 */
    background-color: #1a1a1a;
}

/* 左侧视频容器 */
.hero-video-container {
    width: 70%;
    position: relative;
    overflow: hidden;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 视频铺满容器，可能会被裁剪 */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 半透明黑色蒙版，让视频上的文字更清晰 */
}

/* 右侧内容容器 */
.hero-content-container {
    width: 30%;
    background-color: #f4f4f4;
    /* 右侧背景色，可以改为 #ffffff (纯白) 或 #1a1a1a (深灰) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.hero-text-wrapper {
    max-width: 450px;
}

.hero-logo {
    height: 40px;
    width: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #111;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2.5rem;
}

.hero-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: rgb(30,64,175);
    /* 品牌红色 */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-cta-button:hover {
    background-color: rgb(55, 90, 200);
    transform: translateY(-3px);
}

/* --- 主要内容区域布局 --- */
.page-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem;
}

.page-content-2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* 通用区块标题样式 */
.section-title-container {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


/* --- 服务卡片 Section (全新版本，更接近示例图) --- */

/* 1. 区域背景和布局 */
.services-grid-section {
    /* 关键改动：取消最大宽度，改为全宽布局 */
    width: 100%;
    /* 关键改动：将背景改为深灰蓝色，更有科技感 */
    background-color: #ffffff;
    /* 关键改动：上下留白，左右留出边距 */
    padding: 80px 40px;
}

/* 2. 卡片网格布局 */
.services-card-grid {
    display: grid;
    /* 关键改动：调整minmax以适应一行四列，同时保持响应式 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1600px;
    /* 增加一个最大宽度防止在大屏幕上过度拉伸 */
    margin: 0 auto;
}

/* 3. 卡片主容器 */
.service-card {
    background-color: #f0f0f0;
    /* 卡片本身是白色 */
    border-radius: 8px;
    padding: 1.5rem;
    /* 关键改动：为内部所有元素提供基础的留白空间 */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* 4. 图片容器和图片本身 */
.card-image-container {
    /* 不再需要固定高度 */
    margin-bottom: 1.5rem;
    /* 图片和标题之间的间距 */
}

.card-image-container img {
    /* 关键改动：图片不再是100%宽度，由max-width控制 */
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* 给图片本身也加上圆角 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* 关键改动：为悬停动画做准备 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 5. 文字内容 */
.card-content {
    color: c0000f;
    /* 这个容器现在只负责包裹文字 */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(55, 90, 200);
    margin: 0;
    /* 清除默认的margin */
    transition: transform 0.4s ease;
    /* 为悬停效果做准备 */
}

.card-description {
    /* 关键改动：默认状态下隐藏描述 */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-top: 0;
    /* 默认状态下与标题无间距 */
    transition: max-height 0.4s ease-out, opacity 0.3s 0.1s ease-out, margin-top 0.4s ease-out;
}


/* --- 6. 核心：鼠标悬停时的所有交互效果 --- */

/* 整体卡片悬停时，增加一点阴影 */
.service-card:hover {
    transform: translateY(-60px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 关键改动：图片上移并等比缩小 */
.service-card:hover .card-image-container img {
    transform: translateY(-40px) scale(0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 关键改动：标题也稍微上移一点，为描述腾出空间 */
.service-card:hover .card-title {
    transform: translateY(-20px);
}

/* 关键改动：展开被隐藏的描述文字 */
.service-card:hover .card-description {
    max-height: 200px;
    /* 设置一个足够大的高度让内容显示 */
    opacity: 1;
    margin-top: -10px;
    /* 调整展开后的间距，使其更紧凑 */
}

/* --- 客户评价 Section --- */
.testimonial-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 6rem 1rem;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

/* --- 服务流程 Section --- */
.process-section {
    padding: 80px 0 40px 0;
    background-color: #f9fafb;
}

.process-steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* 绘制步骤之间的连接线 */
.process-steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    /* 与图标中心对齐 */
    left: 12.5%;
    /* 从第一个图标中心到最后一个图标中心 */
    right: 12.5%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}


.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgb(55, 90, 200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2rem;
    color: rgb(30,64,175);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.95rem;
    color: #555;
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        margin-top: 72px;
        /* 移动端导航栏高度 */
    }

    .hero-video-container,
    .hero-content-container {
        width: 100%;
    }

    .hero-video-container {
        height: 50vh;
    }

    .hero-content-container {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .process-steps-container {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps-container::before {
        display: none;
        /* 在两列布局时隐藏连接线 */
    }

    .testimonial-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .process-steps-container {
        grid-template-columns: 1fr;
        /* 单列布局 */
    }
}

/* --- 二维码按钮强制样式 --- */
/* 确保二维码按钮显示在右侧并且有正确的样式 */
#contact-sidebar-btn {
    position: fixed !important;
    bottom: 2.5rem !important;
    right: 0 !important;
    left: auto !important;
    background-color: rgb(55, 90, 200) !important;
    /* 蓝色背景 */
    color: white !important;
    padding: 0.5rem 0.25rem !important;
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s !important;
    z-index: 50 !important;
    writing-mode: vertical-rl !important;
    /* 垂直文字，从右到左 */
    transform: none !important;
    /* 移除任何transform */
    font-size: 12px !important;
    font-weight: 500 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
}

#contact-sidebar-btn:hover {
    background-color: rgb(45, 75, 180) !important;
    /* 悬停时的深蓝色 */
    transform: none !important;
    /* 悬停时不移动位置 */
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2) !important;
}

#contact-sidebar-btn:active {
    transform: scale(0.95) !important;
    /* 点击时的缩放效果 */
}

/* 确保二维码面板正确显示 */
#contact-sidebar-panel {
    position: fixed !important;
    top: 5rem !important;
    right: 0 !important;
    left: auto !important;
    height: 100vh !important;
    width: 10rem !important;
    background-color: transparent !important;
    /* 完全透明背景 */
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
    z-index: 40 !important;
    overflow-y: auto !important;
}

#contact-sidebar-panel.open {
    transform: translateX(0) !important;
}

/* 二维码面板中的文字样式 */
#contact-sidebar-panel p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    /* 添加文字阴影，确保在透明背景下清晰可见 */
}

/* 二维码图片容器样式 */
#contact-sidebar-panel img {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    /* 添加白色边框，增强视觉效果 */
}