body {
    margin: 0;
    background: #e9ecf1;
    padding-top: 0;
    box-sizing: border-box;
    background-color: #f6f6fe;
    /* 移动端优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 触摸优化 */
    -webkit-tap-highlight-color: transparent;
    /* 防止水平滚动 */
    overflow-x: hidden;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    /* 防止图片变形 */
    object-fit: cover;
}

/* 链接触摸优化 */
a {
    -webkit-tap-highlight-color: transparent;
}

/* 按钮触摸优化 */
button, select {
    -webkit-tap-highlight-color: transparent;
    /* 防止iOS上的默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 中文内容使用中文字体 */
:lang(zh),
:lang(zh-CN),
:lang(zh-TW) {
    font-family: "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

/* 英文内容使用默认字体 */
:lang(en),
:lang(en-US),
:lang(en-GB) {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.header {
    background: rgba(255,255,255,0.6);
    box-shadow: 0px 1px 4px 0px rgb(187, 187, 187);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    text-decoration: none;
    color: #222;
    font-size: 18px;
    transition: color 0.2s;
    font-weight: 600;
}

.nav a.active,
.nav a:hover {
    color: #7c3aed;
    font-weight: bold;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch label {
    color: #555;
    font-size: 18px;
}

.lang-switch select {
    padding: 6px 32px 6px 12px;
    border-radius: 26px;
    border: 1px solid #e0e0e0;
    font-size: 18px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 60, 60, 0.06);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 8l3 3 3-3"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    transition: border 0.2s, box-shadow 0.2s;
}

.lang-switch select:focus {
    border: 1.5px solid #b39ddb;
    outline: none;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.10);
}

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

/* 首页大图区域样式 */
.home-main {
    position: relative;
    width: 100%;
    height: 750px;
    margin: 0 auto;
    overflow: hidden;
}

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

.home-main-content {
    width: 100%;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.home-main-title {
    font-size: 60px;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.home-main-desc {
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 48px;
}

.home-bottom {
    width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.home-bottom-item {
    background-color: #fff;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-bottom-item .colorFont {
    font-size: 24px;
    text-align: center;
}

.home-bottom-img {
    width: 60px;
    height: 60px;
}

.colorFont {
    background: linear-gradient(45.732241522798624deg, #BF63D3 0%, #4899E0 51%, #66D295 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
}

.about-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.main-title {
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 600;
}

.about-main-desc {
    width: 1000px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    line-height: 30px;
    margin-top: 20px;
    background-image: url('./about-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 120px;
    border-radius: 10px;
}

.partners-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.partners-main-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.partners-main-list img {
    width: 150px;
}

.services-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.services-main-list {
    width: 1240px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 20px;
    margin: 0 auto;
}

.services-main-item {
    width: 610px;
}

.services-main-item .services-main-item-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
}

.services-main-item .services-main-item-desc {
    font-size: 18px;
    font-weight: 400;
}

.services-main-item .services-main-item-desc-judge {
    margin-bottom: 50px;
}

.services-main-item .services-main-item-title-judge {
    margin-top: 80px;
}
.services-main-item .services-main-item-desc-judge-special {
    margin-bottom: 250px;
}

.services-main-list img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

/* 页脚区域 */
.footer {
    background: linear-gradient(to bottom, #2d0036 0%, #3a0057 100%);
    color: #fff;
    text-align: center;
    padding: 40px 0 20px 0;
    border-radius: 0 0 10px 10px;
    margin-top: 60px;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 20px;
}

.footer-nav {
    font-size: 18px;
    margin-bottom: 18px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}

.footer-info {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-copyright {
    font-size: 14px;
    color: #ccc;
}

.section {
    scroll-margin-top: 100px;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    /* 触摸优化 */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    margin-left: 0; /* 原来是40px，建议去掉或设为0 */
}

.mobile-menu-toggle span {
    width: 28px; /* 稍微加宽一点更美观 */
    height: 3px;
    background-color: #333;
    margin: 4px 0; /* 间距更均匀 */
    transition: 0.3s;
    border-radius: 2px;
}

.just-pc {
    display: block;
}
.just-mobile {
    display: none;
}

/* 响应式设计 - 平板端 (768px - 1366px) */
@media (min-width: 768px) and (max-width: 1366px) {
    .just-pc {
        display: none;
    }
    .just-mobile {
        display: block;
    }
    
    body {
        padding-top: 0;
    }
    
    .header {
        padding: 0 30px;
        height: 70px;
    }
    
    .logo img {
        height: 42px;
    }
    
    .nav {
        gap: 28px;
    }
    
    .nav a {
        font-size: 17px;
        font-weight: 500;
    }
    
    .lang-switch label {
        font-size: 16px;
    }
    
    .lang-switch select {
        padding: 5px 28px 5px 10px;
        font-size: 16px;
        background-size: 14px 14px;
        background-position: right 8px center;
    }
    
    /* 首页区域平板端优化 */
    .home-main {
        height: 700px;
    }
    
    .home-main-content {
        bottom: 80px;
        padding: 0 40px;
    }
    
    .home-main-title {
        font-size: 54px;
        margin-bottom: 24px;
        line-height: 1.3;
        letter-spacing: 1.5px;
    }
    
    .home-main-desc {
        font-size: 32px;
        margin-bottom: 36px;
        font-weight: 400;
    }
    
    /* 首页底部卡片优化 */
    .home-bottom {
        width: 1100px;
        margin: 40px auto 0;
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-bottom-item {
        width: calc(33.333% - 17px);
        min-width: 250px;
        height: 180px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .home-bottom-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .home-bottom-item .colorFont {
        font-size: 18px;
        font-weight: 600;
        margin-top: 15px;
    }
    
    .home-bottom-img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    /* 公司简介区域平板端优化 */
    .about-main {
        margin-top: 50px;
        padding: 0 40px;
    }
    
    .main-title {
        font-size: 32px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .about-main-desc {
        width: 90%;
        max-width: 800px;
        margin: 0 auto;
        padding: 80px 80px;
        font-size: 17px;
        line-height: 1.7;
        background-image: url('./about-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
    
    .about-main-desc p {
        margin-bottom: 20px;
    }
    
    .about-main-desc p:last-child {
        margin-bottom: 0;
    }
    
    /* 合作平台区域平板端优化 */
    .partners-main {
        margin-top: 50px;
        padding: 0 40px;
    }
    
    .partners-main-list {
        max-width: 900px;
        margin: 30px auto 0;
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    /* 主营业务区域平板端优化 */
    .services-main {
        margin-top: 50px;
        padding: 0 40px;
    }
    
    .services-main-list {
        width: 1100px;
        margin: 0 auto;
        gap: 50px;
        flex-direction: column;
    }
    
    .services-main-item {
        width: 100% !important;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        padding: 0 40px 40px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .services-main-item .services-main-item-desc-judge {
        margin-bottom: 0px;
    }
    .services-main-item .services-main-item-desc-judge-special {
        margin-bottom: 0px;
    }
    
    .services-main-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .services-main-item .services-main-item-title {
        font-size: 26px;
        margin-bottom: 15px;
        color: #7c3aed;
        font-weight: 600;
    }
    .services-main-item .services-main-item-title-judge {
        margin-top: 40px;
    }
    
    .services-main-item .services-main-item-desc {
        font-size: 16px;
        line-height: 1.7;
        color: #555;
        margin-bottom: 15px;
    }
    
    .services-main-item img {
        height: 280px;
        border-radius: 12px;
        object-fit: cover;
        margin: 20px 0;
    }
    
    /* 页脚区域平板端优化 */
    .footer {
        padding: 40px 40px 20px;
        margin-top: 60px;
    }
    
    .footer-logo img {
        width: 120px;
        margin-bottom: 20px;
    }
    
    .footer-nav {
        font-size: 17px;
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .footer-nav a {
        transition: color 0.3s ease;
    }
    
    .footer-nav a:hover {
        color: #7c3aed;
    }
    
    .footer-info {
        font-size: 15px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .footer-copyright {
        font-size: 13px;
        color: #888;
    }
    
    /* 平板端触摸优化 */
    .nav a:active,
    .footer-nav a:active {
        background-color: rgba(124, 58, 237, 0.1);
        transform: scale(0.98);
    }
    
    .home-bottom-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 平板端滚动优化 */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 平板端图片加载优化 */
    img {
        will-change: transform;
    }
    
    /* 平板端文字渲染优化 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 平板端触摸目标优化 */
    .nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
    }
    
    .lang-switch select {
        min-height: 44px;
        min-width: 80px;
    }
    
    .home-bottom-item {
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* 平板端加载动画优化 */
    .home-main-img,
    .services-main-item img {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 平板端焦点优化 */
    .nav a:focus,
    .lang-switch select:focus,
    .home-bottom-item:focus {
        outline: 2px solid #7c3aed;
        outline-offset: 2px;
    }
    
    /* 平板端高对比度模式支持 */
    @media (prefers-contrast: high) {
        .home-bottom-item {
            border: 2px solid #000;
        }
        
        .services-main-item {
            border: 2px solid #000;
        }
        
        .nav a.active {
            background-color: #000;
            color: #fff;
        }
    }
    
    /* 平板端减少动画模式支持 */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* 响应式设计 - 移动端 (768px以下) */
@media (max-width: 767px) {
    .just-pc {
        display: none;
    }
    .just-mobile {
        display: block;
    }
    body {
        padding-top: 0;
    }
    
    .header {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(to bottom, #f5f7fa, #e0e7ef);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav a {
        font-size: 20px;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    /* 在移动端显示语言切换器，但调整样式 */
    .lang-switch {
        display: flex;
        position: absolute;
        top: 15px;
        right: 60px;
        gap: 5px;
    }
    
    .lang-switch label {
        font-size: 14px;
        color: #555;
    }
    
    .lang-switch select {
        padding: 4px 20px 4px 8px;
        font-size: 14px;
        background-size: 12px 12px;
        background-position: right 6px center;
        margin-right: 30px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-2px, 6px); /* 偏移量减小 */
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-9px, -13px); /* 偏移量减小 */
    }
    
    .home-main {
        height: 400px;
    }
    
    .home-main-content {
        bottom: 60px;
        padding: 0 20px;
    }
    
    .home-main-title {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .home-main-desc {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .home-bottom {
        width: 95%;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .home-bottom-item {
        width: 100%;
        height: 150px;
    }
    
    .home-bottom-item .colorFont {
        font-size: 20px;
    }
    
    .home-bottom-img {
        width: 50px;
        height: 50px;
    }
    
    .main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .about-main {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .about-main-desc {
        width: 100%;
        padding: 40px 20px;
        font-size: 16px;
        line-height: 1.6;
        margin-top: 15px;
    }
    
    .partners-main {
        margin-top: 30px;
        padding: 0 15px;
        width: 100%;
    }
    
    .partners-main-list {
        gap: 10px;
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .partners-main-list img {
        width: 70px;
        height: auto;
        object-fit: contain;
        margin: 3px;
        flex-shrink: 0;
    }
    

    
    .services-main {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .services-main-list {
        width: 100%;
        gap: 30px;
        padding-top: 15px;
    }
    .services-main-item .services-main-item-desc-judge {
        margin-bottom: 0px;
    }
    .services-main-item .services-main-item-desc-judge-special {
        margin-bottom: 0px;
    }
    .services-main-item .services-main-item-title-judge {
        margin-top: 40px;
    }
    
    .services-main-item .services-main-item-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .services-main-item .services-main-item-desc {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .services-main-item img {
        height: 250px;
    }
    
    .footer {
        padding: 30px 15px 15px 15px;
        margin-top: 40px;
    }
    
    .footer-logo img {
        width: 100px;
        margin-bottom: 15px;
    }
    
    .footer-nav {
        font-size: 16px;
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-nav a {
        margin: 0;
    }
    
    .footer-info {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}
