/* Global Styles */
body {
    font-family: "Source Han Sans", "Microsoft YaHei", "SimHei", Geneva, sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 1220px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.site-header {
    height: 90px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 46px;
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 0;
}

.main-nav a {
    display: block;
    height: 90px;
    line-height: 90px;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3b40be;
}

/* Hero Slider */
.hero-slider {
    height: 400px;
    overflow: hidden;
}

.slide-item {
    height: 400px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stats Section */
.stats-section {
    padding: 50px 0;
    background-color: #fff;
    position: relative;
    top: -50px;
    /* Pull up to overlap hero slightly if needed, or just spacing */
    margin-bottom: -50px;
    z-index: 10;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.stat-text h3 {
    font-size: 36px;
    color: #3b40be;
    font-weight: bold;
    line-height: 1.2;
}

.stat-text p {
    font-size: 18px;
    color: #555;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fff;
    /* Or transparent if background image is on body */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 34px;
    color: #222;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 20px;
    color: #3b40be;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-image: url('../images/service_card_bg.png');
    background-size: cover;
    background-position: center;
    height: 280px;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    border: 1px solid #7381f2;
    /* Fallback border */
    border-bottom-width: 3px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-number {
    font-size: 42px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.card-title h3 {
    font-size: 26px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-title p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.btn-consult {
    display: inline-block;
    width: 130px;
    height: 38px;
    line-height: 38px;
    border: 1px solid #3b40be;
    border-radius: 20px;
    color: #3b40be;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-consult:hover {
    background-color: #3b40be;
    color: #fff;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-image: url('../images/about_bg.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
}

.about-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.about-item {
    width: 285px;
    height: 380px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-icon {
    width: 100px;
    height: 100px;
    background-color: #f0f5fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon img {
    width: 48px;
    height: 48px;
}

.about-item h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 15px;
}

.about-item .divider {
    width: 100px;
    height: 6px;
    background-color: #c6e0ff;
    margin-bottom: 20px;
}

.about-item p {
    font-size: 16px;
    color: #555;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1240px) {
    .container {
        width: 95%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }

    .stats-grid {
        flex-direction: column;
    }

    .stat-item {}

    .section-header h2 {
        font-size: 34px;
        color: #222;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 20px;
        color: #3b40be;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .service-card {
        background-image: url('../images/service_card_bg.png');
        background-size: cover;
        background-position: center;
        height: 280px;
        border-radius: 15px;
        padding: 30px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: transform 0.3s;
        position: relative;
        border: 1px solid #7381f2;
        /* Fallback border */
        border-bottom-width: 3px;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .card-number {
        font-size: 42px;
        color: #fff;
        font-weight: bold;
        margin-bottom: 10px;
        font-family: Arial, sans-serif;
    }

    .card-title h3 {
        font-size: 26px;
        color: #333;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .card-title p {
        font-size: 18px;
        color: #555;
        margin-bottom: 20px;
    }

    .btn-consult {
        display: inline-block;
        width: 130px;
        height: 38px;
        line-height: 38px;
        border: 1px solid #3b40be;
        border-radius: 20px;
        color: #3b40be;
        font-size: 16px;
        transition: all 0.3s;
    }

    .btn-consult:hover {
        background-color: #3b40be;
        color: #fff;
    }

    /* About Section */
    .about-section {
        padding: 80px 0;
        background-image: url('../images/about_bg.png');
        background-size: cover;
        background-position: center;
        min-height: 600px;
    }

    .about-grid {
        display: flex;
        justify-content: space-between;
        margin-top: 50px;
    }

    .about-item {
        width: 285px;
        height: 380px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        padding: 30px 20px;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-icon {
        width: 100px;
        height: 100px;
        background-color: #f0f5fb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .about-icon img {
        width: 48px;
        height: 48px;
    }

    .about-item h3 {
        font-size: 26px;
        color: #222;
        margin-bottom: 15px;
    }

    .about-item .divider {
        width: 100px;
        height: 6px;
        background-color: #c6e0ff;
        margin-bottom: 20px;
    }

    .about-item p {
        font-size: 16px;
        color: #555;
    }

    /* Footer */
    .site-footer {
        background-color: #333;
        color: #fff;
        padding: 20px 0;
        text-align: center;
        font-size: 14px;
    }

    /* Responsive */
    @media (max-width: 1240px) {
        .container {
            width: 95%;
        }

        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .about-grid {
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }
    }

    @media (max-width: 768px) {
        .header-inner {
            flex-direction: column;
            height: auto;
            padding: 10px 0;
        }

        .main-nav ul {
            flex-wrap: wrap;
            justify-content: center;
        }

        .main-nav a {
            height: 40px;
            line-height: 40px;
            padding: 0 10px;
            font-size: 14px;
        }

        .stats-grid {
            flex-direction: column;
        }

        .stat-item {
            border-right: none;
            border-bottom: 1px solid #eee;
            padding: 20px 0;
        }

        .services-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Top Bar */
    .top-bar {
        background-color: #f5f5f5;
        height: 36px;
        line-height: 36px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        color: #666;
    }

    .top-contact {
        float: left;
    }

    .top-contact span {
        color: #3b40be;
        font-weight: bold;
    }

/* 右侧悬浮客服框 */
.float-sidebar {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.float-consult-item {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    color: #fff;
    width: 90px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
    padding: 18px 12px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(255, 140, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
}

.float-consult-item:hover {
    background: linear-gradient(135deg, #ff9d1a 0%, #ff7700 100%);
    box-shadow: -6px 0 25px rgba(255, 140, 0, 0.5);
    transform: translateX(-5px);
}

.float-consult-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.float-consult-item:hover .float-consult-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.float-consult-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.float-consult-text {
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 电话提示框 */
.float-phone-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    border: 2px solid rgba(255, 140, 0, 0.3);
}

.float-phone-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #34495e;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.float-consult-item:hover .float-phone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .float-consult-item {
        width: 70px;
        min-height: 90px;
        padding: 14px 10px;
        border-radius: 10px 0 0 10px;
    }

    .float-consult-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .float-consult-icon svg {
        width: 22px;
        height: 22px;
    }

    .float-consult-text {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .float-phone-tooltip {
        font-size: 16px;
        padding: 10px 16px;
        letter-spacing: 1px;
    }
}