/* 全局样式 - 优化版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #1D2129;
    background-color: #fff;
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 全局动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主内容区样式 */
main {
    padding: 40px 0;
}

.services-section {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0F46C0, #165DFF, #36CFC9, #36CFC9);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1D2129;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 服务标题下划线已删除 */
/*
.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0F46C0;
    border-radius: 2px;
}
*/

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #5C6773;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 业务类别样式 */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #F2F3F5;
}

.category:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0F46C0, #165DFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(15, 70, 192, 0.3);
    transition: all 0.3s ease;
}

.category:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(15, 70, 192, 0.4);
}

.category h3 {
    font-size: 1.5rem;
    color: #1D2129;
    margin-bottom: 20px;
    font-weight: 600;
}

.category p {
    color: #5C6773;
    line-height: 1.7;
}

/* 服务优势样式 */
.service-advantages {
    margin-bottom: 50px;
}

.service-advantages h3 {
    font-size: 2rem;
    color: #1D2129;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 优势标题下划线已删除 */
/*
.service-advantages h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0F46C0;
    border-radius: 1.5px;
}
*/

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.advantage {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #36CFC9;
}

.advantage:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #165DFF;
}

.advantage i {
    color: #0F46C0;
    margin-right: 15px;
    font-size: 1.3rem;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.advantage:hover i {
    transform: scale(1.2);
}

/* 技术能力样式 */
.technical-capabilities h3 {
    font-size: 2rem;
    color: #1D2129;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 技术能力标题下划线已删除 */
/*
.technical-capabilities h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0F46C0;
    border-radius: 1.5px;
}
*/

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tech-item {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #36CFC9;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #165DFF;
}

.tech-name {
    font-weight: 600;
    color: #1D2129;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tech-details {
    color: #5C6773;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .services-section h2 {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .service-categories,
    .advantages-list,
    .tech-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 20px 0;
    }

    .category {
        padding: 20px;
    }

    .services-section h2 {
        font-size: 1.6rem;
    }

    .service-advantages h3,
    .technical-capabilities h3 {
        font-size: 1.5rem;
    }
}

/* 页面加载器样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.125rem;
    font-weight: 500;
}

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