/* 全局样式 */
:root {
    --primary-color: #235FF5;
    --primary-light: #2469F3;
    --primary-dark: #1a4bc0;
    --white: #ffffff;
    --black: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-radius: 6px;
    --border-radius-lg: 15px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 24px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --button-height: 40px;
    --button-border: 1px solid var(--primary-color);
    background-color: #F8FBFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 头部导航栏 */
.header {
    background-color: var(--white);
    padding: var(--spacing-md) 0;
    box-shadow: 0px 2px 10px 0px rgba(13, 84, 209, 0.0629);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
}

.logo {
    display: flex;
    align-items: center;
    margin-right: clamp(var(--spacing-md), 3vw, var(--spacing-xl));
}

.logo img {
    width: 106px;
    height: var(--button-height);
}

.logo span {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.nav {
    margin-left: clamp(var(--spacing-md), 3vw, var(--spacing-xl));
}

.nav ul {
    display: flex;
    gap: clamp(var(--spacing-xs), 2.5vw, var(--spacing-xl));
    list-style: none;
    flex-shrink: 1;
}

.nav a {
    color: var(--black);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav a img {
    width: 10px;
    height: 10px;
}

.nav li.active a {
    color: var(--primary-color);
}

.nav a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
    flex-shrink: 0;
}

.phone-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.phone-icon {
    width: var(--button-height);
    height: var(--button-height);
    background-color: #0D54D1;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon img {
    width: 16px;
    height: 19px;
}

.phone {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
}

.language {
    color: var(--black);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.language img {
    width: 10px;
    height: 10px;
}

.btn-login {
    width: 64px;
    height: var(--button-height);
    background-color: var(--white);
    color: var(--primary-light);
    border: var(--button-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: var(--light-gray);
}

.btn-trial {
    width: 94px;
    height: var(--button-height);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-trial img {
    width: 10px;
    height: 8px;
}

.btn-trial:hover {
    background-color: var(--primary-dark);
}

.btn-trial {
    position: relative; /* 为子元素创建定位上下文 */
}

/* 二维码容器样式 */
.qr-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    
    /* 新增容器尺寸限制 */
    min-width: 220px;  /* 保证最小宽度 */
    max-width: 300px;  /* 防止过大 */
}

/* 二维码图片尺寸控制 */
.qr-tooltip img {
    display: block;       /* 消除图片底部间隙 */
    width: 200px;         /* 固定宽度 */
    height: 200px;        /* 固定高度 */
    object-fit: contain;  /* 保持图片完整比例 */
    margin: 0 auto;       /* 水平居中 */
}

/* 箭头样式保持不变 */
.qr-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* 交互动画 */
.btn-trial:hover .qr-tooltip {
    display: block;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* 主视觉区 */
.hero {
    padding: 80px 0;
    background: linear-gradient(161deg, #D1E7FF 17%, #FDFEFF 118%);
    margin-top: 80px;
    height: 480px;
    box-sizing: border-box;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-left {
    flex: 1;
    max-width: 500px;
}

.hero-left .logo-img {
    width: 140px;
    height: 52px;
    margin-bottom: 30px;
}

.hero-logo {
    font-size: 40px;
    color: #235FF5;
    margin-bottom: 12px;
    font-family: STKaiti, KaiTi, serif;
    font-weight: 700;
}

.hero-left .hero-title {
    font-size: 36px;
    color: #0F132C;
    margin-bottom: 12px;
    color: #235FF5;
}

.hero-left .hero-subtitle {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0F132C;
    letter-spacing: 4px
}

.features {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 500;
}

.features li {
    font-size: 18px;
    color: #0F132C;
    background: var(--white);
    padding: 6px 16px;
    border-radius: 8px;
}

.features li:hover{
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
}

.hero-left .btn-primary-custom {
    background: linear-gradient(160deg, #235FF5 27%, #2C8EF6 95%);
    width: 160px;
    height: 50px;
    color: var(--white);
    font-size: 20px;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    line-height: 50px;
}

.hero-right {
    width: 600px;
    height: 338px;
    background: url('./images/bg.png') no-repeat center center;
    background-size: 100% 100%;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-video.playing {
    display: block;
}

.hero-card {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: scale(1.1);
}

.hero-card img {
    width: 33px;
    height: 35px;
}

.hero-card.playing {
    display: none;
}

.hero-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 核心能力区 */
.capabilities {
    padding: 60px 0;
    background-color: #F9FCFF;
}

.capabilities .section-title {
    text-align: center;
    font-size: 30px;
    color: #0F132C;
}

.capabilities .section-desc {
    font-size: 16px;
    text-align: center;
    color: #3E425F;
    margin-top: 16px;
}

.capability-grid {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.capability-grid .btn-primary-custom {
    width: 160px;
    height: 40px;
    border: 1px solid #0F132C;
    background: #ffffff;
    font-size: 18px;
    color: #0F132C;
    border-radius: 20px;
    margin-left: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capability-grid .btn-primary-custom.active {
    background: linear-gradient(154deg, #235FF5 34%, #2C8EF6 87%);
    color: #ffffff;
    border: none;
}

.capability-grid .btn-primary-custom img {
    width: 10px;
    height: 10px;
    margin-left: 5px;
}

.capability-item {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.capability-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* 数字人定制详情 */
.digital-human {
    padding-bottom: 30px;
    background-color: #F9FCFF;
}

.digital-human-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.digital-human-content .digital-human-img {
    width: 443px;
    height: 260px;
}
.digital-human-img-bg1 {
    background: url('./images/first.png') no-repeat center center;
    background-size: 100% auto;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding-top: 10px;
}
.digital-human-img-bg {
    background: url('./images/1.png') no-repeat center center;
    background-size: 60% auto;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding-top: 10px;
    height: 300px; 
    min-height: 200px;
}
.digital-human-right {
    max-width: 500px;
}

.digital-human-right p {
    font-size: 26px;
    color: #0F132C;
}

.digital-human-right p span{
    font-size: 26px;
    color: var(--primary-color);
    margin-top: 0;
    font-weight: bold;
}

.digital-human-right span {
    font-size: 14px;
    color: #3c3c3c;
    margin-top: 20px;
}

.digital-human-content .btn-primary-custom {
    background: linear-gradient(147deg, #235FF5 40%, #2C8EF6 81%), #EDF5FF;
    width: 240px;
    height: 40px;
    color: var(--white);
    font-size: 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 0;
    margin-top: 40px;
}

.digital-human-content .btn-primary-custom img {
    width: 13px;
    height: 7px;
    margin-left: 8px;
}

.digital-human-content .rate-wrp {
    width: 100%;
    display: flex;
    margin-top: 3px;
}

.digital-human-content .rate-wrp div {
    margin-right: 15px;
    display: flex;
    flex-direction: column;
}

.digital-human-content .rate-wrp p{
    font-size: 20px;
    margin: 0;
}

.digital-human-content .rate-wrp .rate{
    font-size: 25px;
    color: var(--primary-dark);
    font-weight: bold;
}

.digital-human-content .rate-wrp span{
    color: #3c3c3c;
}

.digital-human-content .btn-primary-mar {
    margin-top: 10px;
}

.digital-human-left {
    flex: 1;
}

.image-container {
    margin-bottom: 30px;
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.digital-human-right {
    flex: 1;
}

.digital-human-right h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.stats {
    list-style: none;
    margin: 30px 0;
}

.stats li {
    font-size: 18px;
    margin-bottom: 15px;
}

/* 特色 AI 产品区 */
.ai-products {
    padding: 60px 0;
    background: var(--white);
}

.ai-products .ai-title {
    font-size: 30px;
    text-align: center;
    color: #0F132C;
    margin-bottom: 40px;
}

.ai-products-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(var(--spacing-md), 4vw, var(--spacing-xl));
}

.ai-products-left {
    flex: 1;
    max-width: 500px;
}

.ai-products-left .section-title {
    font-size: 26px;
    color: #0F132C;
    text-align: left;
    margin-bottom: 16px;
}

.ai-products-left .section-desc {
    font-size: 16px;
    color: #3E425F;
    margin-bottom: 40px;
    line-height: 1.6;
}

.ai-products-left .btn-primary-custom {
    background: linear-gradient(147deg, #235FF5 40%, #2C8EF6 81%), #EDF5FF;
    width: 210px;
    height: 40px;
    color: var(--white);
    font-size: 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 0;
}

.ai-products-left .btn-primary-custom img {
    width: 13px;
    height: 7px;
    margin-left: 8px;
}

.ai-products-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.ai-products-image {
    width: 442px;
    height: 260px;
    grid-template-columns: minmax(0, 1fr);
    /* background: url('./images/aibg.png') no-repeat center center; */
    /* background-size: cover; */
    border-radius: 25px;
    /* position: relative; */
}

/* .ai-products-image img {
    width: 100%;
    height: 100%;
} */
.ai-products-image iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* 服务与优势区 */
.services {
    padding: 80px 0;
    background: url('./images/servicebg.png') no-repeat center center;
    background-size: cover;
}

.services .section-title {
    font-size: 30px;
    text-align: center;
    color: #0F132C;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: url('./images/bigboxgb.png') no-repeat center center;
    background-size: cover;
    width: 150px;
    height: 150px;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: url('./images/bigboxbg.png') no-repeat center center;
}

.service-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-item:hover .service-item-content {
    opacity: 0;
    transform: translateY(-20px);
}

.service-item-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-item:hover .service-item-text {
    opacity: 1;
    transform: translateY(0);
}

.service-item-img {
    background: url('./images/boxbg.png') no-repeat center center;
    background-size: cover;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 13px 42px 0px rgba(86, 138, 205, 0.28);
    transition: all 0.3s ease;
}

.service-item:hover .service-item-img {
    transform: scale(0.9);
}

.service-item img {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item-title {
    font-size: 15px;
    color: #0F132C;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.service-item-title-color {
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.service-item-content-text {
    font-size: 12px;
    color: #0F132C;
    line-height: 1.5;
    margin-top: 5px;
    text-align: start;
    padding: 0 10px;
}

.service-item h3 {
    font-size: 18px;
    color: #0F132C;
    margin: 0;
}

/* 用户案例区 */
.cases {
    padding: 60px 0;
    background: url('./images/collegesbg.png') no-repeat center center;
    background-size: cover;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cases .section-title {
    font-size: 30px;
    color: var(--white);
    text-align: center;
}

.case-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
    padding-bottom: 15px;
}

.case-card img {
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.case-card p {
    padding: 0 20px;
    font-size: 17px;
    margin-top: 20px;
    color: #333333;
}

.case-card .cases-grid-title{
    margin-top: 15px;
    font-weight: bold;
}

.case-card .cases-grid-desc {
    font-size: 14px;
    color: #333333;
}

.case-card span {
    padding: 0 20px;
    display: block;
    font-size: 15px;
    color: #3d3d3d;
    margin: 15px 0;
    font-weight: bold;
}

/* logo 墙区 */
.logo-wall {
    padding: 60px 0;
    background: #F8FBFF;
}

.logo-wall .section-title {
    font-size: 30px;
    color: #0F132C;
    text-align: center;
    margin-bottom: 80px;
}

.logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    /* padding: 0 10px; */
}

.logo-item {
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 200px;
}

/* 主内容区 */
.content-section {
    padding: 80px 0 40px;
    background: var(--white);
    margin-bottom: 40px;
}

.content-text p {
    text-indent: 2em;
    margin-bottom: 1em;
}

/* 转为教育而生 */
.education {
    width: 100%;
    padding: 60px 0;
    background: url('./images/educationbg.png') no-repeat center center;
    background-size: cover;
}

.education p {
    font-size: 30px;
    color: #ffffff;
    margin-left: 200px;
}

.education .btn-primary-custom {
    background: linear-gradient(163deg, #FFFFFF 21%, #DAEAFF 74%, #DAEAFF 74%);
    color: var(--primary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    margin-left: 200px;
    margin-top: 26px;
}

.education .btn-primary-custom img {
    width: 11px;
    height: 8px;
    margin-left: 5px;
}


/* 底部信息区 */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: bold;
}

.footer-left p {
    color: var(--light-gray);
    max-width: 300px;
    font-size: 14px;
}

.footer-middle {
    display: flex;
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-right h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-right p {
    color: var(--light-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-right {
    display: flex;
}

.footer-right-items {
    display: flex;
    align-items: center;
    margin-left: 30px;
    gap: 10px;
}

.footer-right-item {
    text-align: center;
}

.footer-right-item img {
    width: 78px;
    height: 78px;
    margin-bottom: 8px;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .capability-grid,
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .hero {
        height: 420px;
    }

    .hero-left {
        max-width: 450px;
    }

    .hero-left .logo-img {
        width: 120px;
        height: 45px;
        margin-bottom: 24px;
    }

    .hero-left .hero-title {
        font-size: 32px;
    }

    .hero-left .hero-subtitle {
        font-size: 16px;
    }

    .features li {
        font-size: 16px;
        padding: 4px 12px;
    }

    .hero-left .btn-primary-custom {
        width: 140px;
        height: 44px;
        font-size: 18px;
        line-height: 44px;
    }

    .hero-right {
        width: 500px;
        height: 281px;
    }

    .nav ul {
        gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
    }

    .ai-products-content {
        gap: var(--spacing-lg);
    }

    .ai-products-left {
        max-width: 450px;
    }

    .ai-products-image {
        width: 400px;
        height: 235px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: nowrap;
    }

    .logo {
        margin-right: var(--spacing-sm);
    }

    .header-right {
        gap: clamp(var(--spacing-xs), 1.5vw, var(--spacing-md));
    }

    .hero {
        height: auto;
        padding: 60px 0;
    }

    .hero .container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-right {
        width: 100%;
        height: 200px;
    }

    .digital-human-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-middle {
        flex-direction: column;
        gap: 30px;
    }

    .nav ul {
        gap: clamp(var(--spacing-xs), 1.5vw, var(--spacing-md));
    }

    .ai-products-content {
        flex-direction: column;
        gap: 40px;
    }

    .ai-products-left {
        max-width: 100%;
        text-align: center;
    }

    .ai-products-left .section-title,
    .ai-products-left .section-desc {
        text-align: center;
    }

    .ai-products-image {
        width: 100%;
        height: 200px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-item {
        width: 120px;
        height: 120px;
    }

    .service-item-img {
        width: 50px;
        height: 50px;
    }

    .service-item img {
        width: 28px;
        height: 28px;
    }

    .service-item-title {
        font-size: 14px;
        margin-top: 12px;
    }

    .service-item-content-text {
        font-size: 11px;
    }

    .logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .logo-item {
        height: 60px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .capability-grid,
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .header .container {
        padding: 0 var(--spacing-sm);
    }

    .logo {
        margin-right: var(--spacing-sm);
    }

    .nav ul {
        gap: var(--spacing-xs);
    }

    .header-right {
        gap: var(--spacing-xs);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        width: 110px;
        height: 110px;
    }

    .service-item-img {
        width: 45px;
        height: 45px;
    }

    .service-item img {
        width: 24px;
        height: 24px;
    }

    .service-item-title {
        font-size: 13px;
        margin-top: 10px;
    }

    .service-item-content-text {
        font-size: 10px;
    }

    .logos {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .logo-item {
        height: 60px;
        padding: 0 10px;
    }
}

/* 全局交互效果 */
a,
button,
.language {
    transition: all 0.3s ease;
}

a:hover,
button:hover,
.language:hover {
    opacity: 0.8;
}

a:active,
button:active,
.language:active {
    transform: scale(0.98);
}

/* 语言选择器样式 */
.language {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.language img {
    width: 12px;
    height: 12px;
}
.digital-human-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 350px;
}

.digital-human-content {
    display: none;
    width: 100%;
    transition: all 0.3s ease;
}

.digital-human-content.active {
    display: flex;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-dot {
    width: 12px;
    height: 12px;
    background: #E5E5E5;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.control-dot.active {
    width: 52px;
    background: linear-gradient(154deg, #235FF5 34%, #2C8EF6 87%);
}

/* 帮助中心样式 */
.help-center {
    padding: 120px 0 60px;
    background-color: #F9FCFF;
}

.sop-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.sop-questions {
    width: 300px;
    min-height: 750px; 
    flex-shrink: 0;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sop-questions h3 {
    font-size: 18px;
    color: #0F132C;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sop-questions ul {
    list-style: none;
}

.sop-questions li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    color: #333;
}

.sop-questions li:hover {
    background: #f5f8ff;
}

.sop-questions li.active {
    background: linear-gradient(154deg, #235FF5 34%, #2C8EF6 87%);
    color: white;
}

.sop-answers {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-height: 600px;
    min-height: 750px;
    overflow-y: auto;
}

.answer {
    display: none;
    margin-bottom: 30px;
}

.answer.active {
    display: block;
}

.answer h3 {
    font-size: 22px;
    color: #235FF5;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.answer p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.answer p strong {
    color: #235FF5;
    font-weight: 600;
}

.answer p br + strong {
    display: inline-block;
    margin-top: 15px;
}

/* 问题项样式 */

.question-item {
margin-bottom: 0px;
padding-bottom: 0px;
/*border-bottom: 1px dashed #eee;*/
}


.question-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .sop-container {
        flex-direction: column;
    }
    
    .sop-questions {
        width: 100%;
    }
    
    .sop-answers {
        max-height: none;
    }
}

/* 联系我们固定板块样式 */
.contact-widget {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: visible; /* 恢复visible，保证弹窗/文字不被遮挡 */
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border: 3px solid var(--primary-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* 联系板块容器 */
.contact-widgets {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px; /* 替代margin-bottom，避免冗余 */
}

.contact-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.widget-icon {
    width: 100%; /* 改为100%，填满父容器 */
    height: 100%; /* 改为100%，填满父容器 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%; /* 增加圆形裁剪 */
    overflow: hidden; /* 关键：仅裁剪图标内的图片，不影响外部弹窗/文字 */
}

.widget-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.widget-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    z-index: 0; /* 提升层级，避免被遮挡 */
}

.widget-qr {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 180px;
    text-align: center;
    z-index: 10000;
}

.widget-qr::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.widget-icon:hover ~ .widget-qr,
.widget-qr:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.widget-qr img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    border-radius: 5px;
}

.widget-qr p {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

</style>
/* 响应式设计 - 移动端调整 */
@media (max-width: 768px) {
    .contact-widgets {
        right: 10px;
        bottom: 40%;
        transform: translateY(50%) scale(0.8);
    }
    
    .contact-widget {
        width: 60px;
        height: 60px;
    }
    
    .widget-icon {
        width: 30px;
        height: 30px;
    }
    
    .widget-qr {
        width: 150px;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .widget-qr img {
        width: 130px;
        height: 130px;
    }
    
    .widget-label {
        font-size: 10px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .contact-widgets {
        right: 5px;
        bottom: 35%;
        transform: translateY(50%) scale(0.7);
    }
    
    .contact-widget {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .widget-icon {
        width: 25px;
        height: 25px;
    }
    
    .widget-qr {
        width: 130px;
        padding: 8px;
    }
    
    .widget-qr img {
        width: 110px;
        height: 110px;
    }
    
    .widget-qr p {
        font-size: 12px;
    }
    
    .widget-label {
        font-size: 9px;
        bottom: -18px;
    }
}
