/* ===== 产品服务页面响应式样式 ===== */

/* 大屏幕设备 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 中等屏幕设备 (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image img {
        max-width: 80%;
    }
    
    .digital-human-content,
    .voice-dialogue-content,
    .video-chat-content,
    .text-chat-content {
        gap: 60px;
    }
    
    .feature-item {
        padding: 25px;
    }
    
    .phone-mockup {
        transform: scale(0.9);
    }
}

/* 平板设备 (768px以下) */
@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-subtitle-en {
        font-size: 0.9rem;
    }
    
    .hero-image img {
        max-width: 70%;
        max-height: 60vh;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .digital-human-content,
    .voice-dialogue-content,
    .video-chat-content,
    .text-chat-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-column {
        order: 2;
    }
    
    .demo-column {
        order: 1;
    }
    
    .feature-item {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon img {
        width: 28px;
        height: 28px;
    }
    
    .feature-content h3 {
        font-size: 0.625rem;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
    
    .phone-call-demo {
        gap: 30px;
    }
    
    .phone-left,
    .phone-right {
        max-width: 180px;
    }
    
    .call-arrow {
        gap: 8px;
    }
    
    .call-arrow img {
        width: 50px;
    }
    
    .call-arrow span {
        font-size: 0.75rem;
        max-width: 100px;
    }
    
         .video-demo {
         width: 400px;
         height: 400px;
     }
     
     .main-face {
         max-width: 200px;
     }
     
     .expression-circles img {
         width: 80px;
         height: 80px;
     }
     
     .expression-circles img:nth-child(1) {
         top: 15px;
         left: 20px;
     }
     
     .expression-circles img:nth-child(2) {
         top: 10px;
         right: 15px;
     }
     
     .expression-circles img:nth-child(3) {
         bottom: 30px;
         left: 15px;
     }
     
     .expression-circles img:nth-child(4) {
         bottom: 15px;
         right: 30px;
     }

     .expression-circles img:nth-child(5) {
         left: -5px;
     }

     .expression-circles img:nth-child(6) {
         right: -5px;
     }
    
    .chat-person {
        max-width: 180px;
    }
    
    .chat-phone {
        max-width: 220px;
    }
}



/* 超小屏幕设备 (320px以下) */
@media (max-width: 319px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-subtitle-en {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .feature-content h3 {
        font-size: 0.625rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .phone-mockup {
        transform: scale(0.6);
    }
    
    .phone-left,
    .phone-right {
        max-width: 120px;
    }
    
    .main-face {
        max-width: 160px;
    }
    
    .expression-circles img {
        width: 50px;
        height: 50px;
    }
    
    .chat-person {
        max-width: 120px;
    }
    
    .chat-phone {
        max-width: 150px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .hero-subtitle-en {
        font-size: 0.8rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-pattern {
        background-size: 20px 20px;
    }
    
    .feature-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-image {
        display: none;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .feature-item:hover {
        transform: none;
        box-shadow: none;
    }
}
/* 手机设备 (480px以下) */
@media (max-width: 479px) {
    .nav-container {
        justify-content: space-between;
    }
    .hero-section {
        height: calc(100vh - 70px);
        padding:0;
        align-items: flex-end;

    }
    .hero-background {
      background-position: center;
    }
    .hero-pattern {
        display:none;
    }
    .container{
      margin-left:0 !important;
      padding:0;
    }
    .hero-content {
        top:-22px;
        padding-left:2rem;
    }
    .hero-line {
        width:44px;
        margin-bottom:12px;
    }
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 10px;
        line-height:30px;
        text-align:left;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 12px;
        margin-top:25px;
        max-width:94%;
        line-height:1.6;
        text-align:left;
    }
    
    .hero-subtitle-en {
        font-size:0.75rem;
        text-align:left;
    }
    
    .hero-image img {
        max-width: 60%;
        max-height: 50vh;
    }
    
    .section-padding {
        padding: 2.5rem 0;
        padding-top:5.5rem;
    }
    
    .section-header {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 1.63rem;
        margin-bottom: 1rem;
    }
    .section-title::after {
        width:44px;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    
    .digital-human-content,
    .voice-dialogue-content,
    .video-chat-content,
    .text-chat-content {
        margin-top: 2.5rem;
        gap: 20px;
    }
    .feature-item {
        padding: 0;
        flex-direction: column;
        text-align: center;
        gap: 12px !important;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        margin:0 !important;
    }
    
    .feature-icon img {
        width: 24px;
        height: 24px;
    }
   
    .feature-content h3 {
        font-size: 0.625rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        transform: scale(1);
    }
    
         /* 移动端图标位置调整 */
     .ai-icon {
        width:inherit;
        height:inherit;
         top: -30px;
         right: -25px;
         padding: 8px 12px;
     }
     
     .ai-icon img {
         width: 2.8rem;
         height: 2.8rem;
     }
     
     .ai-icon span {
         font-size: 0.75rem;
     }

     .kuhc-icon {
        width:inherit;
        height:inherit;
        top: 170px;
        left: -45px;
         padding: 8px 12px;
     }
     
     .kuhc-icon img {
         width: 2.8rem;
         height: 2.8rem;
     }
     
     .kuhc-icon span {
         font-size: 0.75rem;
     }

     .yb-icon {
        width:inherit;
        height:inherit;
         bottom: 195px;
         right: -65px;
         padding: 8px 12px;
     }
     
     .yb-icon img {
        width: 3rem;
         height: 3rem;
     }
     
     .yb-icon span {
         font-size: 0.75rem;
     }
     
     .avatar-service {
         bottom: 28px;
        left: -80px;
         padding: 15px 12px;
        width:inherit;
        height:inherit;
     }
     
     .avatar-service img {
         width: 6rem;
         top: -80px;
         left: -25px;
     }
     
     .avatar-service span {
         font-size: 0.75rem;
         margin-left: 60px;
         width: 320px;
     }
     /* 构建专属数字人 */
     .digital-human-content .features-column {
        gap:1.5rem;
        align-items:center;
        margin:auto;
     }
     /* 语音对话区域移动端调整 */
     .qg {
         width:inherit;
        height:inherit;
         top: -1.875rem;
         left: -1.875rem;
         padding: 0.5rem 0.75rem;
         gap: 0.5rem;
     }
     
     .qg img {
         width: 2rem;
         height: 2rem;
     }
     
     .qg span {
         font-size: 0.75rem;
     }

     .sb {
        width:inherit;
        height:inherit;
        bottom: -1.875rem;
        right: -1.875rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .sb img {
        width: 2rem;
        height: 2rem;
    }
    
    .sb span {
        font-size: 0.75rem;
    }

     .call-arrow {
         padding: 0.375rem 0.625rem;
     }
     
     .call-arrow img {
         width: 1.875rem;
     }
     
     .call-arrow span {
         font-size: 0.625rem;
     }
    
    .phone-features {
        bottom: 3.75rem;
        right: 0.9375rem;
        gap: 0.5rem;
    }
    
    .feature-icon-small {
        width: 1.5625rem;
        height: 1.5625rem;
    }
    
    .feature-icon-small img {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .service-description {
        font-size: 0.8rem;
        max-width: 12.5rem;
    }
    
    .phone-call-demo {
        flex-direction: row;
        gap: 0.62rem;
    }
    
    .phone-left,
    .phone-right {
        max-width: 8.2rem;
    }
    .phone-left img ,.phone-right img{
        width:100%;
    }
    .call-arrow {
        position: relative;
        transform: none;
        width: 1.5rem;
        padding:0;
        bottom:-3rem;

    }

    .video-demo {
         width: 300px;
         height: 300px;
     }
     
     .main-face {
         max-width: 150px;
     }
     
     .expression-circles img {
         width: 60px;
         height: 60px;
     }
     
     .expression-circles img:nth-child(1) {
         top: 10px;
         left: 15px;
     }
     
     .expression-circles img:nth-child(2) {
         top: 5px;
         right: 10px;
     }
     
     .expression-circles img:nth-child(3) {
         bottom: 20px;
         left: 10px;
     }
     
     .expression-circles img:nth-child(4) {
         bottom: 10px;
         right: 20px;
     }

     .expression-circles img:nth-child(5) {
         left: 0px;
     }

     .expression-circles img:nth-child(6) {
         right: 0px;
     }
    
    .text-chat-demo {
        gap: 20px;
    }
    
    .chat-person {
        max-width: 150px;
    }
    
    .chat-arrow {
        gap: 8px;
    }
    
    .chat-arrow img {
        width: 30px;
    }
    
    .chat-arrow span {
        font-size: 0.7rem;
    }
    
    .chat-phone {
        max-width: 180px;
    }
    /* 数智人语音对话 - 移动端布局优化 */
.voice-dialogue-section {
    width: auto;
    margin: 0 1rem;
    border-radius: 0.875rem;
}
.voice-dialogue-content {
    gap: 30px;
    align-items: center;
}
.voice-dialogue-content .features-column {
    padding: 0;
    margin-top: 0;
    justify-content: center;
    gap: 1.5rem;
    flex-direction: column;
}

/* 调整电话与箭头位置为竖向堆叠 */
.phone-call-demo {
    position: relative;
}
.phone-left {
    position: relative;
    bottom: -3.3rem;
}
/* 语音对话提示气泡：置于电话区域上下居中 */
.qg {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.sb {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
    /* 居中手机与功能图标 */
    .phone-call-demo {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .phone-left,
    .phone-right {
        display: flex;
        justify-content: center;
    }
    .phone-left img,
    .phone-right img {
        display: block;
        margin: 0 auto;
    }

    .voice-dialogue-content .features-column .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .voice-dialogue-content .features-column .feature-icon {
        margin: 0 auto 0.75rem;
    }

    /* 视频交互聊天 - 移动端布局 */
    .video-chat-content {
        align-items: center;
    }
    .video-chat-content .features-column {
        padding: 0;
        margin-top: 0;
        align-items:center;
        gap: 1.5rem;
        justify-content: center;
        flex-direction: column;
    }
    .video-chat-content .features-column .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .video-chat-content .features-column .feature-icon {
        margin: 0 auto 0.75rem;
    }
    .video-demo {
        width: 18.75rem;
        height: 18.75rem;
    }
    .main-face {
        width: 11.375rem;
        height: 23.5rem;
        background-size:cover;
        background-repeat:no-repeat;
        max-width:200px;
    }
    .expression-circles > div {
        width: 3.75rem;
        height: 3.75rem;
    }
    .expression-circles > .circles1 {
        top: 40px;
        left: 25px;
    }
    .expression-circles > .circles2 {
        top: -5px;
        right: 25px;
    }
    .expression-circles > .circles3 {
        bottom: 115px;
        right: 25px;
    }
    .expression-circles > .circles4 {
        bottom: 50px;
        left: 25px;
    }
    .expression-circles > .circles5 {
        bottom: -10px;
        right: 25px;
    }
    .expression-circles > div img {
        width: 3.125rem;
    }
    .video-chat-section {
        padding-bottom:0;
    }
    /* 文本聊天 - 移动端布局 */
    .text-chat-content {
        gap: 2.5rem;
        align-items: center;
    }
    .text-chat-content .features-column {
        background: #F2F5F9;
        height: auto;
        gap:1.5rem;
        flex-direction:column;
        justify-content: center;
        padding: 1.13rem 0;
        margin:0 1rem;
        width:calc(100% - 2rem)
    }
    .text-chat-content .feature-item {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .text-chat-demo {
        margin-top:2.5rem;
        gap: 1.25rem;
    }
    .tab-nav a {
        font-size:0.75rem;
    }
    .chat-person {
        width: 19rem;
        height: 19rem;
        max-width:inherit;
        background-size:contain;
        background-repeat:no-repeat;
    }
    .chat-person img {
      width:100%;
    }
    .chat-phone {
      max-width: 2.2rem;
      left: 56px;
      top: 100px;
    }
    .chat-arrow {
        right: -160px;
        top: 62px;
    }
    .chat-arrow img {
        width: 5.875rem;
    }
    .phone-image {
        max-width:300px;
    }
    .video-container {
        max-width:300px;
        margin-bottom:10px;
    }
    .video-play-btn {
        width:40px;
        height:40px;
    }
    .video-play-btn i{
        font-size:16px;
        margin-left:0;
    }
}
