/* 案例 */
@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.tabs_container{
    display: flex;
    margin-bottom: 40px;
    align-items: center;
    font-size: 20px;
    color: #000;
}
/* 标签切换区域 */
.tabs {
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.tab-item {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #2c92a0;
    border-bottom: 2px solid #2c92a0;
}

.applications-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 90px;
    grid-auto-rows: min-content;
}

.applications-item {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.applications-item.right-offset {
    margin-top: 80px;
}
.applications-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s ease;
}

.applications-card img{
    /*width: 300px;*/
    /*height: 400px;*/
}

/* 卡片进入视口动画 */
.applications-card.visible {
    transform: translateY(0);
    opacity: 1;
}

/* 卡片背景图 */
.applications-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 鼠标悬浮显示的文字遮罩 */
.applications-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 146, 160, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.applications-card:hover .applications-overlay {
    opacity: 1;
}

/* 案例名称 */
.applications-name {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    /* 名称宽度和卡片保持一致 */
    max-width: 500px;
    margin: 0 auto;
    margin-top: 32px;
    margin-bottom: -50px;
}

/* 解决方案 */
.jiejue_container { margin: 100px auto; display: flex; gap: 2rem; }
.jiejue_container .left-section { flex: 2; }
.jiejue_container .right-section { flex: 3; position: relative; }
.jiejue_container .title { font-size: 3.5rem; font-weight: bold; margin-bottom: 1rem; color: #1a1a1a; }
.jiejue_container .subtitle { font-size: 1.2rem; color: #666; margin-bottom: 1.5rem; font-weight: 500; }
.jiejue_container .content { line-height: 1.8; font-size: 1rem; margin-bottom: 2rem; }
.jiejue_container .btn { display: inline-block; padding: 0.8rem 2rem; background-color: #1a1a1a; color: white; text-decoration: none; border-radius: 6px; transition: background-color 0.3s; }
.jiejue_container .btn:hover { background-color: #000; }
.jiejue_container .video-container { width: 100%; height: 100%; position: relative; overflow: hidden; border-radius: 8px; }
.jiejue_container .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.jiejue_container .video-info { position: absolute; bottom: 0; left: 0; width: 100%; background-color: rgba(0,0,0,0.6); padding: 1rem; color: white; display: flex; align-items: center; gap: 1rem; }
.jiejue_container .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.jiejue_container .avatar img { width: 100%; height: 100%; object-fit: cover; }
.jiejue_container .video-details { flex: 1; }
.jiejue_container .video-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.2rem; }
.jiejue_container .video-duration { font-size: 0.9rem; color: #ddd; }

.jiejue_main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.jiejue_main .section-title-module {
    text-align: left;
    margin-bottom: 50px;
    margin-left: 130px;
}

.jiejue_main .section-title-module h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

.jiejue_main .section-title-module p {
    font-size: 1.1rem;
    color: #666;
    text-align: left;
    line-height: 1.5;
}

.jiejue_main .carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 40px 0;
}

.jiejue_main .carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-items: center;
    will-change: transform;
    /* 移除冲突默认偏移，由JS统一控制 */
    transform: translateX(0);
}

.jiejue_main .card {
    flex: 0 0 auto;
    display: flex;
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.7;
    transform: scale(0.95);
    scroll-snap-align: center;
}

.jiejue_main .card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* 桌面端 */
@media (min-width: 769px) {
    .jiejue_main .carousel-wrapper {
        width: 100%;
    }
    .jiejue_main .carousel-track {
        gap: 20px;
    }
    .jiejue_main .card {
        width: 800px;
        height: 570px;
        min-height: 570px;
    }
    .jiejue_main .card:not(.active) {
        filter: blur(1px);
    }
}

/* 移动端：一行只显示1个卡片 */
@media (max-width: 768px) {
    .jiejue_container { flex-direction: column; }
    .jiejue_container .left-section, .right-section { flex: 1; }
    
    .jiejue_main .section-title-module {
        margin-left: 20px;
        margin-bottom: 30px;
    }
    .jiejue_main .carousel-wrapper {
        width: 100%;
        padding: 20px 0;
    }
    .jiejue_main .carousel-track {
        padding: 0;
        gap: 0 !important;
        scroll-snap-type: x mandatory;
    }
    .jiejue_main .card {
        width: 100% !important; /* 强制一行1个 */
        flex-direction: column;
        height: auto;
        min-height: 500px;
        opacity: 1;
        transform: scale(1) !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .jiejue_main .card.active {
        transform: scale(1) !important;
    }
    .carousel-bottom-bar {
        width: 90% !important;
        gap: 12px;
        margin: 10px auto 0;
    }
    .control-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    .applications-container{
        gap: 90px !important;
    }
}

.jiejue_main .card-media {
    flex: 0 0 55%;
    /*background: linear-gradient(135deg, #e8f4ff 0%, #d4e9ff 100%);*/
    border-radius: 24px 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .jiejue_main .card-media {
        flex: 0 0 auto;
        height: 280px;
        border-radius: 24px 24px 0 0;
        /*padding: 30px 25px;*/
    }
}

.jiejue_main .card-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);*/
    z-index: 1;
}

.jiejue_main .card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.jiejue_main .card.active .card-media img {
    transform: scale(1.03);
}

.jiejue_main .card-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .jiejue_main .card-content {
        padding: 5px 0;
    }
    .jiejue_main .card.active .card-media img{
        transform:none;
    }
    .jiejue_main .card-content h2 img{
        display: none;
    }
    .jiejue_main .card-content h3{
        margin:0 !important;
    }
}

.jiejue_main .card-content h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.jiejue_main .card-content h2 img{
    width: 182px;
    height: 81px;
}
.jiejue_main .card-content h2 .logo {
    font-weight: 700;
    letter-spacing: 0.5px;
}
.jiejue_main .card-content h2 .logo.catl { color: #0052b8; }
.jiejue_main .card-content h2 .logo.eve { color: #e6002d; }
.jiejue_main .card-content h2 .logo.svolt { color: #009944; }
.jiejue_main .card-content h3 {
    margin: 24px 0;
    font-size: 24px;
    color: #333;
    line-height: 1.4;
}
.jiejue_main .card-content p {
    font-size: 18px;
    line-height: 1.4;
    color: #555;
    margin-top: 12px;
}

/* 进度条 + 按钮 布局 */
.carousel-bottom-bar {
  width: 60%;
  margin: 20px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.jiejue_main .progress-container {
  flex: 1;
}
.jiejue_main .progress-bar {
  width: 100%;
  height: 2px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
}
.jiejue_main .progress-fill {
  height: 100%;
  background: #2c92a0;
  /*width: 0%;*/
  transition: width 0.4s ease;
}

.jiejue_main .carousel-controls {
  display: flex;
  gap: 10px;
}
.jiejue_main .control-btn {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #444;
    transition: all 0.3s ease;
    border: 1px solid var(--colormain, #2c92a0);
}
.jiejue_main .control-btn:hover {
    background-color: var(--colormain, #2c92a0);
    color:#fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.jiejue_main .control-btn:active {
    transform: translateY(0);
}
.jiejue_main .control-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* 超大屏 */
@media (min-width: 1600px) {
    .jiejue_main { max-width: 2000px; }
}