/* 服务页面专用样式 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.1/font/bootstrap-icons.css');

/* CSS变量定义 - 沿用原站配色 */
:root {
    --primary-color: #050816;
    --accent-color: #4d9eff;
    --text-light: #c0c8e7;
    --text-white: #ffffff;
    --border-color: #2a3a6a;
    --card-bg: rgba(15, 22, 48, 0.8);
    --gradient-primary: linear-gradient(135deg, #0f1428 0%, #1a233a 100%);
    --gradient-accent: linear-gradient(135deg, #4d9eff 0%, #6bb6ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 22, 48, 0.9) 0%, rgba(26, 35, 58, 0.8) 100%);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--primary-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(77, 158, 255, 0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(77, 158, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(77, 158, 255, 0.12), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(77, 158, 255, 0.08), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    z-index: -1;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* 顶部区域布局 */
.hero-section {
    display: flex;
    height: 70vh;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

/* 顶部解决方案说明 */
.solution-overview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* 减少左右内边距，与content-container的padding保持一致 */
    max-width: 1400px; /* 统一宽度为1400px，与content-container一致 */
    margin: 0 auto; /* 确保居中 */
}

.solution-content {
    background: var(--gradient-card);
    border-radius: 25px;
    padding: 80px 40px; /* 减少左右内边距，让内容区域更宽 */
    text-align: center;
    border: 1px solid rgba(77, 158, 255, 0.15);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    max-width: 1400px; /* 统一宽度为1400px，与其他容器一致 */
    width: 100%;
}

.solution-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.solution-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 158, 255, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.solution-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.solution-content p {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.cta-primary {
    background: var(--gradient-accent);
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(77, 158, 255, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(77, 158, 255, 0.6);
    background: linear-gradient(135deg, #6bb6ff 0%, #4d9eff 100%);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(77, 158, 255, 0.2);
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(77, 158, 255, 0.4);
}

/* 下方内容区域 */
.content-section {
    background: var(--primary-color);
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

.content-container {
    max-width: 1400px; /* 增加最大宽度，给卡片更多空间 */
    margin: 0 auto; /* 确保居中 */
    padding: 0 20px; /* 减少左右内边距，让内容区域更宽 */
    position: relative;
    z-index: 2;
    width: 100%; /* 确保宽度100% */
}

/* 服务模块网格：三列布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin: 0 auto 80px; /* 水平居中，底部外边距80px */
    max-width: 100%; /* 确保不超过容器宽度 */
}

/* 底部SERVICE统计块 */
.service-summary {
    display: flex;
    justify-content: center;
    width: 100%;
}

.service-stats {
    display: flex;
    background: var(--gradient-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    height: 450px;
    width: 100%;
    max-width: 1400px; /* 统一宽度为1400px，与顶部和中间区域一致 */
    margin: 0 auto; /* 确保居中 */
    border: 1px solid rgba(77, 158, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
}

.service-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(77, 158, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.stats-left {
    flex: 1;
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 50px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.stats-left::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-title h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-title h3 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 35px;
    opacity: 0.95;
}

.scroll-indicator {
    font-size: 28px;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.9);
}

.service-bg {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 140px;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.stats-right {
    flex: 1;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 双列布局 */
    grid-template-rows: repeat(3, auto); /* 三行布局 */
    gap: 20px; /* 网格间距 */
    justify-content: center; /* 水平居中 */
    align-content: center; /* 垂直居中 */
    border-left: 1px solid rgba(77, 158, 255, 0.2);
    position: relative;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px; /* 减少间距适应网格布局 */
    padding: 15px 0; /* 减少上下内边距 */
    transition: none; /* 去除过渡动画 */
    margin: 0; /* 移除外边距，使用grid gap */
    width: 100%; /* 占满网格单元格 */
    justify-content: flex-start; /* 统计项内容左对齐 */
}

.stat-icon {
    width: 60px; /* 稍微减小图标尺寸 */
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* 稍微减小字体 */
    box-shadow: 0 8px 25px rgba(77, 158, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* 防止图标被压缩 */
}

.stat-content h4 {
    font-size: 24px; /* 稍微减小字体 */
    font-weight: 700;
    margin-bottom: 6px; /* 减少间距 */
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(77, 158, 255, 0.3);
}

.stat-content p {
    font-size: 14px; /* 稍微减小字体 */
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.4; /* 减少行高 */
}

/* 服务卡片 */
.service-card {
    background: var(--gradient-card);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(77, 158, 255, 0.15);
    backdrop-filter: blur(20px);
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 100px rgba(0,0,0,0.5);
    border-color: rgba(77, 158, 255, 0.3);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(77, 158, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

.service-category {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-category::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.4s ease;
}

.service-card:hover .service-category::after {
    width: 100%;
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(77, 158, 255, 0.1);
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.service-list li:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.service-list li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-list li:hover:before {
    transform: scale(1.2);
    color: #6bb6ff;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-icon {
    width: 70px; /* 定义圆形容器的宽度 */
    height: 70px; /* 定义圆形容器的高度 */
    background: var(--gradient-accent); /* 使用渐变背景色 */
    border-radius: 50%; /* 使其成为圆形 */
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中图标 */
    justify-content: center; /* 水平居中图标 */
    color: var(--text-white); /* 设置图标颜色为白色，与背景形成对比 */
    font-size: 24px; /* 进一步减小图标大小，完美适应圆形 */
    margin-top: 15px; /* 保持顶部外边距 */
    position: relative;
    box-shadow: 0 8px 25px rgba(77, 158, 255, 0.3); /* 添加阴影效果 */
    border: 2px solid rgba(255, 255, 255, 0.1); /* 添加边框 */
}

.service-icon i {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
    transform: rotate(0deg) !important; /* 确保默认无旋转，使用!important提高优先级 */
}

.service-card:hover .service-icon {
    /* 去除悬停时的背景色变化和阴影增强 */
    /* background: linear-gradient(135deg, #6bb6ff 0%, #4d9eff 100%) !important; */
    /* box-shadow: 0 12px 30px rgba(77, 158, 255, 0.4) !important; */
}

.service-card:hover .service-icon i {
    /* 去除所有悬停效果：不缩放、不改变颜色、不发光 */
    /* transform: scale(1.1) !important; */
    /* color: var(--text-white) !important; */
    /* filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) !important; */
}

/* 动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 60vh;
    }
    
    .solution-overview {
        padding: 20px;
    }
    
    .solution-content {
        padding: 40px 30px;
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
    
    .solution-content h2 {
        font-size: 36px;
    }
    
    .solution-content p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .content-container { 
        padding: 0 20px; 
        max-width: calc(100% - 40px);
        margin: 0 auto; /* 确保响应式下也居中 */
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        margin-bottom: 40px;
    }
    
    .service-summary {
        padding: 20px;
    }
    
    .service-stats {
        flex-direction: column;
        height: auto;
        max-width: calc(100% - 40px);
        border-radius: 20px;
    }
    
    .stats-left, .stats-right {
        padding: 30px 20px;
    }
    
    /* 响应式下统计项改为单列布局 */
    .stats-right {
        grid-template-columns: 1fr; /* 单列布局 */
        grid-template-rows: repeat(6, auto); /* 六行布局 */
        gap: 15px; /* 减少间距 */
    }
    
    .service-title h2 {
        font-size: 36px;
    }
    
    .service-title h3 {
        font-size: 24px;
    }
    
    .service-bg {
        font-size: 80px;
        right: 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h4 {
        font-size: 20px;
    }
    
    .service-card { 
        padding: 30px 20px; 
    }
    
    .service-category {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: 50vh;
    }
    
    .solution-content {
        max-width: calc(100% - 30px);
        margin: 0 15px;
        padding: 30px 20px;
    }
    
    .service-stats {
        border-radius: 15px;
        height: auto;
        max-width: calc(100% - 30px);
    }
    
    .stats-left, .stats-right {
        padding: 20px 15px;
    }
    
    .service-title h2 {
        font-size: 28px;
    }
    
    .service-title h3 {
        font-size: 20px;
    }
    
    .service-bg {
        font-size: 60px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h4 {
        font-size: 20px;
    }
    
    .content-container { 
        padding: 0 15px; 
        max-width: calc(100% - 30px);
        margin: 0 auto; /* 确保响应式下也居中 */
    }
    
    .services-grid { 
        gap: 20px; 
    }
    
    .service-card { 
        padding: 30px 20px; 
    }
    
    .service-category {
        font-size: 18px;
    }
}
