/* ===== 产品服务页面样式 ===== */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* 动画效果 */
.animate-fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInUp.delay-1 {
    animation-delay: 0.2s;
}

.animate-fadeInUp.delay-2 {
    animation-delay: 0.4s;
}

.animate-fadeInUp.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英雄区域 */
.hero-section {
    position: relative;
    height: 993px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size:cover
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    top:150px;

}

.hero-text {
    flex: 1;
}
.hero-line {
    width: 115px;
    margin-bottom:60px;
height: 0px;
border-top: 5px solid #FF6868;
border-radius:20px
}
.hero-title {
    font-size: 80px;
    color: #344054;
    font-family: PingFang SC;
   font-weight: 500;
    line-height: 80px;
}

.hero-subtitle {
    font-size: 48px;
    color: #344054;
    line-height: 48px;
    font-family: PingFang SC;
    margin-top: 38px;
    margin-bottom: 55px;
}

.hero-subtitle-en {
    font-size: 20px;
    font-family: PingFang SC;
    color: #344054;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
}

/* 通用区块样式 */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 500;
    color: #344054;
    margin-bottom: 13px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    height: 5px;
    background: linear-gradient(90deg, #ff6868, #ff8e8e);
    border-radius: 20px;
}

.section-subtitle {
    font-size: 1rem;
    color: #344054;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    /* 添加统一的副标题动画 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.8s;
}

/* 构建专属数字人 */
.digital-human-section {
    background: #fff;
    padding-bottom:127px;
}

.digital-human-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.digital-human-content .features-column {
     flex-direction: column;
     width:330px;
     align-items:flex-start;
}
.digital-human-content .feature-item {
    display: flex;
    align-items:center;
}
.digital-human-content .feature-icon {
    margin-right:20px;
    background: #F2F5F9;
}
.features-column {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 100px;
}



.feature-item {
    transition: all 0.3s ease;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
}

.feature-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #1D2939;
}

.feature-content p {
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
}

.demo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.phone-image {
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}
.phone-video {
    width:663px;
    height: auto;
}

 /* 一键生成 - 右上角 */
 .ai-icon {
    width: 112.97px;
    height: 112.97px;
    border-radius: 16px;
     position: absolute;
     top: -70px;
     right: -50px;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 8px;
     background: white;
     padding: 12px 16px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
  .ai-icon img {
     width: 57px;
 }
 .ai-icon span {
     font-size: 16px;
     color: #344054;
     white-space: nowrap;
 }

 /* 快速合成 - 偏左上 */
 .kuhc-icon {
    width: 153.73px;
    height: 59.46px;
     position: absolute;
     top: 155px;
     left: -80px;
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 8px;
     background: white;
     padding: 12px 16px;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
 
 .kuhc-icon img {
     width: 50px;
 }
 
 .kuhc-icon span {
     font-size: 16px;
     color: #344054;
     white-space: nowrap;
 }

 /* 声纹采集 - 偏右下 */
 .yb-icon {
    width: 237.22px;
    height: 67.54px;
     position: absolute;
    bottom: 155px;
    right: -130px;
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 8px;
     background: white;
     padding: 12px 16px;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
 
 .yb-icon img {
     width: 79px;
 }
 
 .yb-icon span {
     font-size: 16px;
     color: #344054;
     white-space: nowrap;
 }

 /* 分身服务 - 左下角 */
 .avatar-service {
    width: 591px;
    height: 85px;
     position: absolute;
     bottom: -20px;
    left: -185px;
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 8px;
     background: white;
     padding: 12px 16px;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
 
 .avatar-service img {
     width: 140px;
     position:absolute;
     top: -110px;
     left: -30px;
 }
 
 .avatar-service span {
     font-size: 16px;
     color: #344054;
     margin-left: 145px;
 }
.avatar-box {
    position:relative;
}
.phone-features {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-icon-small {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon-small img {
    width: 16px;
    height: 16px;
}

.service-description {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    max-width: 250px;
    line-height: 1.5;
}

/* 数智人语音对话 */
.voice-dialogue-section {
    width:1392px;
    margin: 0 auto;
    border-radius: 22px;
    background: #F2F5F9;
}

.voice-dialogue-content {
    display: flex;
    flex-direction:column;
    gap: 80px;
    align-items: center;
}
.voice-dialogue-content .feature-item {
    text-align:center
}
.voice-dialogue-content .features-column {
    padding:0 106px;
    justify-content: space-between
}
.voice-dialogue-content .features-column .feature-icon{
    margin:auto;
    margin-bottom:29px
}

 /* 语音对话区域的图标样式 */
 .demo-column {
    position:relative;
 }
 .qg {
     width: 307px;
     height: 90px;
     position: absolute;
     top: 36px;
    left: 90px;
     display: flex;
     flex-direction: row;
     align-items: center;
     background: white;
     border-radius: 16px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
 
 .qg img {
     width: 124px;
 }
 
 .qg span {
     font-size: 16px;
     color: #344054;
     white-space: nowrap;
 }

 .sb {
     width: 273px;
     height: 90px;
     position: absolute;
     bottom: -105px;
     right: 115px;
     display: flex;
     flex-direction: row;
     align-items: center;
     background: white;
     gap: 12px;
     padding: 12px 16px;
     border-radius: 16px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 10;
 }
 
 .sb img {
     max-width: 75px;
 }
 
 .sb span {
     font-size: 16px;
     color: #344054;
     white-space: nowrap;
 }

 .phone-call-demo {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 30px;
 }
 
 .phone-left,
 .phone-right {
     max-width: 250px;
     height: auto;
 }
 .phone-left {
    position:relative;
    bottom:-148px;
 }
 .call-arrow {
    position:relative;
    bottom:-86px;
    width: 61px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     z-index: 15;
 }

    /* 视频交互聊天 */
.video-chat-section {
    background: #fff;
}

.video-chat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 386px;
    align-items: center;
}
.video-chat-content .features-column {
    flex-direction:column;
    align-items: flex-start;
}
.video-chat-content .feature-item {
    display: flex;
    align-items:center
}
.video-chat-content .feature-icon {
    margin-right:20px;
    background: #F2F5F9;
}
 .video-demo {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
     width: 600px;
     height: 600px;
     margin: 0 auto;
 }
 
 .main-face {
    background-image:url("/images/cpwf/802@1x.png");
     position: relative;
     z-index: 5;
     width: 266px;
     height: 547px;
 }
 
 .main-face img {
     width: 100%;
     height: auto;
     border-radius: 20px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
 }
 
 .expression-circles {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
 }
 
 .expression-circles > div {
    border:4px solid #fff;
    background-color:#D8D8D8;
    z-index: 11;
     position: absolute;
     width: 125px;
     height: 125px;
     justify-content: center;
     align-items: center;
     display:flex;
     background-size:cover;
     border-radius: 16px;
     transform-origin: center;
 }

 /* .expression-circles div:hover {
     transform: scale(1.1);
 } */
.expression-circles > div img {
    width:100px;
}
 /* 浮动动画 */
 @keyframes floatAnimation1 {
     0%, 100% { transform: translateY(0px) rotate(20deg); }
     50% { transform: translateY(-30px) rotate(30deg); }
 }
 @keyframes floatAnimation2 {
     0%, 100% { transform: translateY(0px) rotate(0deg); }
     50% { transform: translateY(-30px) rotate(10deg); }
 }
 @keyframes floatAnimation3 {
     0%, 100% { transform: translateY(0px) rotate(-40deg); }
     50% { transform: translateY(-30px) rotate(-30deg); }
 }
 @keyframes floatAnimation4 {
     0%, 100% { transform: translateY(0px) rotate(-23deg); }
     50% { transform: translateY(-30px) rotate(-33deg); }
 }
 @keyframes floatAnimation5 {
     0%, 100% { transform: translateY(0px) rotate(20deg); }
     50% { transform: translateY(-30px) rotate(30deg); }
 }

 /* 左上角 */
 .expression-circles .circles1 {
    background-image:url("/images/cpwf/683@1x (1).png");
     top: 90px;
     left: 85px;
     transform: rotate(30deg);
     animation-delay: 5s;
    animation: floatAnimation1 2.35s ease-in-out infinite;

 }
 
 /* 右上角 */
 .expression-circles .circles2 {
        background-image:url("/images/cpwf/683@1x (2).png");
        top: -25px;
    right: 70px;
     transform: rotate(10deg);
     animation-delay: 0s;
    animation: floatAnimation2 2.35s ease-in-out infinite;

 }
 
 .expression-circles .circles3 {
    background-image:url("/images/cpwf/683@1x (3).png");
     bottom: 265px;
    right: 55px;
    transform: rotate(-40deg);
     animation-delay: 1s;
    animation: floatAnimation3 2.65s ease-in-out infinite;

 }
 
 .expression-circles .circles4 {
    background-image:url("/images/cpwf/683@1x (4).png");
    bottom: 130px;
    left: 65px;
    transform: rotate(-33deg);
     animation-delay: 1.5s;
     animation: floatAnimation4 3s ease-in-out infinite;
 }

 .expression-circles .circles5 {
     background-image:url("/images/cpwf/683@1x (5).png");
    bottom: 30px;
    right: 52px;
    transform: rotate(30deg);
     animation-delay: 2s;
     animation: floatAnimation5 3s ease-in-out infinite;
 }

/* 文本聊天 */
.text-chat-section {
    padding-top:25px;
}

.text-chat-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
}
.text-chat-content  .features-column {
    background: #F2F5F9;
    border-radius: 22px;
    width:100%;
    height:240px;
    padding:0 106px;
}
.text-chat-content  .feature-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:29px;
    flex-direction:column;
}


.text-chat-demo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.chat-person {
    position:relative;
    width: 655px;
    height: 655px;
    background:url("/images/cpwf/684_bg.png");
}

.chat-arrow {
    width:236px;
    position:absolute;
    right: -77px;
    top: 130px;
}

.chat-phone {
    position:absolute;
        left: 121px;
    top: 212px;
    width: 72px;
}

.platform-tabs {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-nav li {
    list-style: none;
}

.tab-nav a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.6rem;
    color: #FF6868;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFF2F2;
}

.tab-nav a:hover,
.tab-nav a.active {
    background: linear-gradient(90deg, #FF4848 0%, #FF3E73 100%);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .digital-human-content,
    .voice-dialogue-content,
    .video-chat-content,
    .text-chat-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .features-column {
        order: 2;
    }
    
    .demo-column {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
    
    .phone-call-demo {
        gap: 20px;
    }
    
    .phone-left,
    .phone-right {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-mockup {
        transform: scale(0.7);
    }
    
    .phone-call-demo {
        flex-direction: column;
        gap: 30px;
    }
    
    .call-arrow {
        position: static;
        transform: none;
    }
}

/* ===== 视频播放控制样式 ===== */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.video-container .phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.video-play-btn i {
    font-size: 28px;
    color: #007bff;
    margin-left: 4px; /* 微调播放图标位置 */
}

.video-play-btn:hover i {
    color: #0056b3;
}

/* 视频蒙层样式 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* 视频播放时隐藏播放按钮和蒙层 */
.video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-container.playing .video-overlay {
    opacity: 0;
}

/* 视频结束时显示重播按钮和蒙层 */
.video-container.ended .video-play-btn {
    opacity: 1;
    pointer-events: auto;
}

.video-container.ended .video-overlay {
    opacity: 1;
}

.video-container.ended .video-play-btn i:before {
    content: "\f01e"; /* FontAwesome 重播图标 */
}

/* 视频暂停或准备播放时显示蒙层 */
.video-container.paused .video-overlay,
.video-container.ready .video-overlay {
    opacity: 1;
}