/* 默认显示视频，隐藏图片 */
.tpm-hero2__item-bg--image {
    display: none;
}

/* 确保视频和图片容器正确填充 */
.tpm-hero2__item-bg-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpm-hero2__item-bg--video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 基础重置与容器样式 */
body {
    font-family: PingFang SC, Microsoft YaHei, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

/* 主轮播容器 */
.tpm-hero2 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 轮播区域 */
.tpm-hero2__main {
    position: relative;
    width: 100%;
    height: 650px;
    background-color: #001a39;
    overflow: hidden;
}

/* 轮播列表 */
.tpm-hero2__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
}

/* 轮播项 */
.tpm-hero2__item {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    z-index: 1;
    overflow: hidden;
}

.tpm-hero2__item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 背景视频/图片 */
.tpm-hero2__item-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 内容区 - 左侧定位 */
.tpm-hero2__item-content {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 550px;
    padding-right: 20px;
    color: #333;
    text-align: left;
}

/* 标签样式 */
.tpm-hero2__item-tag {
    display: inline-block;
    background-color: #1e88e5;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.tpm-hero2__item-title,
.tpm-hero2__item-desc,
.tpm-hero2__item-btns {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tpm-hero2__item.is-active .tpm-hero2__item-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.tpm-hero2__item.is-active .tpm-hero2__item-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.tpm-hero2__item.is-active .tpm-hero2__item-btns {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.tpm-hero2__item-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
    color: #333;
}

.tpm-hero2__item-desc {
    font-size: 18px;
    margin: 0 0 30px;
    line-height: 1.6;
    opacity: 0.9;
    color: #333;
}

/* 按钮样式 */
.tpm-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.tpm-btn--primary {
    background-color: #1e88e5;
    color: #fff;
}

.tpm-btn--primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

/* 进度条区域 - 恢复显示 */
.tpm-hero2__ctrl {
    position: absolute;
    bottom: 190px;
    left: 15%;
    width: auto;
    z-index: 10;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.tpm-hero2__ctrl-list {
    display: flex;
    width: auto;
    padding: 0;
    gap: 8px;
    justify-content: flex-start;
}

.tpm-hero2__ctrl-item {
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.tpm-hero2__ctrl-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tpm-hero2__ctrl-item.is-active {
    background-color: #1e88e5;
}

/* 底部入口区块 - 京东云风格布局 */
.tpm-hero2__entries-wrap {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 5;
    padding: 0 20px;
}

.tpm-hero2__entries-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

/* 前三个区块共享容器 - 浅灰色透明背景 */
.tpm-hero2__entries-group {
    display: flex;
    width: 58%;
    background-color: rgba(245, 245, 245, 0.85);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 每个区块基础样式 */
.tpm-hero2__entry {
    position: relative;
    flex: 1;
    padding: 20px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease;
    overflow: hidden;
}

/* 前三个区块样式 */
.tpm-hero2__entries-group .tpm-hero2__entry {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.tpm-hero2__entries-group .tpm-hero2__entry:last-child {
    border-right: none;
}

/* 横向布局图标和标题 */
.tpm-hero2__entry-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tpm-hero2__entry-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 10px;
    flex-shrink: 0;
}

.tpm-hero2__entry-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

.tpm-hero2__entry-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 - 描述文字隐藏动画 */
.tpm-hero2__entry:hover .tpm-hero2__entry-title {
    color: #1e88e5;
}

.tpm-hero2__entry:hover .tpm-hero2__entry-desc {
    transform: translateY(30px);
    opacity: 0;
}

/* 第四个特殊区块 */
.tpm-hero2__entries-special {
    display: flex;
    width: 40%;
    background-color: rgba(245, 245, 245, 0.85);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease;
    overflow: hidden;
    padding: 20px;
}

.tpm-hero2__entries-special:hover {
    background-color: rgba(250, 250, 250, 0.95);
}

.tpm-hero2__entries-special:hover .tpm-hero2__entry-title {
    color: #1e88e5;
}

.tpm-hero2__entries-special .tpm-hero2__entry-header {
    width: 40%;
    margin-right: 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-right: 20px;
    margin-bottom: 0;
}

.tpm-hero2__entries-special .tpm-hero2__entry-icon {
    width: 40px;
    height: 40px;
}

.tpm-hero2__entries-special .tpm-hero2__entry-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.tpm-hero2__entries-special .tpm-hero2__entry-desc {
    margin: 0;
}

/* 移动端分页指示器 */
.tpm-hero2__pagination {
    display: none;
    position: absolute;
    bottom: 130px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.tpm-hero2__pagination-dot {
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 3px;
    cursor: pointer;
}

.tpm-hero2__pagination-dot.is-active {
    background-color: #1e88e5;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .tpm-hero2__entries-inner {
        max-width: 90%;
    }
    
    .tpm-hero2__main {
        height: 580px;
    }
    
    .tpm-hero2__item-content {
        left: 10%;
    }
    
    .tpm-hero2__ctrl {
        left: 10%;
    }
}

@media (max-width: 992px) {
    .tpm-hero2__main {
        height: 520px;
    }
    
    .tpm-hero2__entries-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .tpm-hero2__entries-group {
        width: 100%;
    }
    
    .tpm-hero2__entries-special {
        width: 100%;
    }
    
    .tpm-hero2__entries-wrap {
        bottom: 20px;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    /* 显示图片代替视频 */
    .tpm-hero2__item-bg--video {
        display: none;
    }
    
    .tpm-hero2__item-bg--image {
        display: block;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    /* 移动端布局修改 - 避免缩放影响 */
    .tpm-hero2 {
        overflow: hidden;
        position: relative;
        padding-bottom: 50px;
        margin-bottom: 0;
    }
    
    .tpm-hero2__main {
        height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    /* 调整轮播图内容位置并改为flex布局 - 下移内容 */
    .tpm-hero2__item-content {
        top: 25%;
        left: 20px;
        transform: none;
        -webkit-transform: none;
        text-align: left;
        width: 90%;
        max-width: none;
        display: flex;
        flex-direction: column;
    }
    
    /* 隐藏桌面版进度条 */
    .tpm-hero2__ctrl {
        display: none;
    }
    
    /* 显示描述和按钮 */
    .tpm-hero2__item-desc {
        display: block;
        font-size: 14px;
        margin: 0 0 20px;
        line-height: 1.5;
    }
    
    .tpm-hero2__item-btns {
        display: block;
    }
    
    /* 标题样式调整 */
    .tpm-hero2__item-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    /* 按钮样式移动端调整 */
    .tpm-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    

.tpm-hero2__entries-wrap {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 10; /* 大幅增加这个值 */
}


    
    /* 所有区块横向展示在一行并居中 */
    .tpm-hero2__entries-inner {
        width: 100%;
        max-width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 6px 6px 0 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        justify-content: center;
    }
    
    /* 移除前三个区块的容器样式，让它们与特殊区块同级显示 */
    .tpm-hero2__entries-group {
        display: contents;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }
    
    /* 统一所有区块样式 */
    .tpm-hero2__entry,
    .tpm-hero2__entries-special {
        flex: 0 0 auto;
        width: auto;
        min-width: 70px;
        padding: 8px 12px;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        background-color: transparent;
        box-shadow: none;
    }
    
    .tpm-hero2__entries-special {
        padding: 8px 12px;
    }
    
    .tpm-hero2__entry:last-child,
    .tpm-hero2__entries-special:last-child {
        border-right: none;
    }
    
    /* 区块内部样式 - 图标和标题居中垂直排列 */
    .tpm-hero2__entry-header,
    .tpm-hero2__entries-special .tpm-hero2__entry-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        width: auto;
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
    
    .tpm-hero2__entry-icon,
    .tpm-hero2__entries-special .tpm-hero2__entry-icon {
        margin-right: 0;
        margin-bottom: 6px;
        width: 24px;
        height: 24px;
    }
    
    /* 增强标题显示效果 */
    .tpm-hero2__entry-title,
    .tpm-hero2__entries-special .tpm-hero2__entry-title {
        font-size: 12px;
        display: block;
        color: #333;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
        opacity: 1; /* 确保标题在移动端始终可见 */
        transform: none; /* 移除可能存在的transform，防止隐藏 */
    }
    
    /* 隐藏描述 */
    .tpm-hero2__entry-desc,
    .tpm-hero2__entries-special .tpm-hero2__entry-content {
        display: none;
    }
    
    /* 移动端高度调整 */
    .tpm-hero2__item-bg-wrap {
        position: absolute;
        top: 0;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .tpm-hero2__main {
        height: 350px;
    }
    
    .tpm-hero2__item-bg-wrap {
        height: 350px;
    }
    
    .tpm-hero2__item-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .tpm-hero2__item-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* 小屏幕上按钮更小 */
    .tpm-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .tpm-hero2__entry,
    .tpm-hero2__entries-special {
        min-width: 60px;
        padding: 6px 10px;
    }
    
    /* 小屏幕上调整底部边距 */
    .tpm-hero2 {
        padding-bottom: 45px;
        margin-bottom: 0;
    }
}


/* 进度条样式 */
.tpm-hero2__ctrl-item {
    position: relative;
    overflow: hidden;
}

.tpm-hero2__ctrl-item .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #1e88e5;
    transition: width 0.1s linear;
    width: 0%;
}

.tpm-hero2__ctrl-item.is-active {
    background-color: transparent;
}