/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
}

.warning {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    font-size: 3.2vmin;
    font-weight: bold;
    height: 8.8vmin;
    border-left: none;
    border-right: none;
    overflow: hidden;
    background: #FFF;
}

@keyframes progress {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 100%;    
    }
}

@keyframes alert-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



.warning .warning-progress {
    background-position-x: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.3333vmin;
    background: repeating-linear-gradient(
        45deg,
        #f9b243 0,
        #f9b243 5%,
        #460e0e 5%,
        #460e0e 10%
    );
    background-size: 200% 100%; /* 增加背景大小，使动画效果更明显 */
    animation: progress 3s linear infinite;
}
.warning .warning-progress.p-top {
    top: 0;
}

.warning .warning-progress.p-bottom {
    bottom: 0;
    
    animation: progress  3s linear infinite reverse;
}
.warning .warning-title {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ea3433, #dd6460);
    color: #fff;
    padding: 0 2vmin;
    border-radius: 0 3.3333vmin 3.3333vmin 0;
    position: relative;
    overflow: hidden;
    margin-right: -2vmin;
}

.warning .warning-title .content {
    animation: alert-pulse 2s ease-in-out infinite;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.warning .warning-desc {
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(234, 52, 51, 0.5);
    color: #ff2a27;
    border: .6667vmin solid #e83e3d;
    border-left: none;
    font-size: 2.6667vmin;
}

.warning .warning-desc span {
    animation: alert-pulse 2s ease-in-out infinite;
}

.container2 {
    max-width: 100vmin;
    min-height: 100vh;
}


.image-grid { overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-item {
    width: 100vmin;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* 响应式调整 */
@media (orientation: landscape) {
    .image-item {
        width: 100vmax;
    }
}


/* panel 切换 */
.tab-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: linear-gradient( #F32B99 9%, rgba(229, 192, 118, 0.35) 74%);
    border-radius: 6.2667vmin;
    margin-bottom: 20px;
    padding: 4.9333vmin 3.7333vmin 6.9333vmin;
}

.sort-title {
    font-size: 4.4vmin;
    color: #fff;
    font-weight: bold;
}


.lesson-title {
    font-size: 6.4vmin;
    color: #fff;
    font-weight: bold;
    margin-bottom: 4vmin;
}

.tab-panel .tab-items {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 1.4667vmin;
    grid-column-gap: .5333vmin;
}

.tab-panel .tab-items .item {
    display: flex;
    align-items: center;
    font-size: 3.4667vmin;
    color: #fff;
    height: 6.1333vmin;
    background: rgba(240, 248, 255, .2);
    border-radius: 3.0667vmin;
    padding: 0 2.6667vmin;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tab-panel .tab-items .item.active {
    background: #F0F8FF;
    color: #3D3D3D;
    font-weight: bold;
}

.tab-contents .content .title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6.6667vmin;
    font-size: 4.8vmin;
    color: #fff;
    font-weight: bold;
    margin: 2.4vmin 1.3333vmin;
}

.tab-contents .content .round {
    width: 1.7333vmin;
    height: 1.7333vmin;
    border-radius: .8667vmin;
    border: .4vmin solid #fff;
    margin: 0 2vmin;
}

.tab-contents {
    width: 100%;
}

.tab-contents .content {
    display: none;
}

.tab-contents .content.active {
    display: block;
}

.content .section {
    padding: 3.4667vmin 0;
    background: #ffffff;
    width: 100%;
    display: grid;
    grid-row-gap: 1.8667vmin;
}

.content .section .section-item {
    display: flex;
    
}

.content .section .section-left {
    line-height: 1.2;
    flex-shrink: 0;
    font-size: 3.7333vmin;
    height: 10vmin;
    width: 24vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3D3D3D;
    border-radius: .6667vmin;
    background: linear-gradient(270deg, #ffecf5 0%, #fdd4e7 100%);
}

.content .section .section-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;

}



.content .section .section-body span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2vmin;
}


.subtitle {
    font-size: 4vmin;
    font-weight: bold;
    color: #3D3D3D;
    text-align: center;
    margin: 2vmin 0;
}

.call {
    margin-top: 4vmin;
    position: relative;
}

.subtitle .project-title {
    margin-right: 1.3333vmin;
    color: rgba(61, 61, 61, 1);
}

.project-panel  {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.3333vmin;
    padding-left: 6vmin;
    background-color: #ffe8e8;
    border: .1333vmin solid #fff;
    border-top-left-radius: 12.8vmin;
    margin-bottom: 1.3333vmin;
}

.project-panel.project-panel-exam {
    border-radius: .6667vmin;
    border: none;
    background: #ff9421;
}

.project-panel .project-title {
    font-size: 3.7333vmin;
    color: #E1165D;
    font-weight: bold;
    flex-shrink: 0;
    width: 2em;
    margin-right: 3.0667vmin;
}

.project-panel .project-content {
    font-size: 3.4667vmin;
    color: #3A4857;
    flex: 1;
}



.editable-content {
    width: 100%;
    height: auto;
}

.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 100%;
    height: auto;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    text-align: center;
}

.content-text {
    position: relative;
    width: 100%;
    height: auto;
}

.content-text .content-title {
    position: absolute;
    top: 25.3333vmin;
    right: 6.9333vmin;
    color: red;
    height: 10.6667vmin;
    width: 23.2vmin;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vmin;
    font-weight: bold;
    color: #fff;
}

.content-text p {
    font-size: 3.4667vmin;
    display: block;
    margin: 0 5.8667vmin;
    margin-bottom: 6.6667vmin;
    padding: 2.6667vmin;
    padding-top: 37.3333vmin;
    
}

.content-text-item .content-title{
    top: 22vmin;
}


.content-text-item  p {
    top: 26.6667vmin;
}

/* 视频轮播样式 */
.video-list {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.video-list .swiper-slide {
    transition: transform 0.5s; /* 平滑过渡效果 */
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9); /* 初始缩放 */
}

.video-list .swiper-slide-active {
    transform: scale(1); /* 激活状态的缩放 */
}


.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.video-item {
    flex-shrink: 0;
    position: relative;
    transition: all 0.5s ease-in-out;
}

.video-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* 中间视频样式 */
.video-item.active {
    width: calc(100% - 2 * (13.6vmin + 1.8667vmin));
    z-index: 3;
}

/* 左侧视频样式 */
.video-item.prev {
    width: calc((100% - 2 * (13.6vmin + 1.8667vmin)) * 0.9);
    position: absolute;
    left: 0;
    z-index: 1;
    transform: translateX(-100%) translateX(-1.8667vmin) translateX(13.6vmin);
}

/* 右侧视频样式 */
.video-item.next {
    width: calc((100% - 2 * (13.6vmin + 1.8667vmin)) * 0.9);
    position: absolute;
    right: 0;
    z-index: 1;
    transform: translateX(100%) translateX(1.8667vmin) translateX(-13.6vmin);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-item.active {
        width: calc(100% - 2 * (15vmin + 2vmin));
    }
    
    .video-item.prev,
    .video-item.next {
        width: calc((100% - 2 * (15vmin + 2vmin)) * 0.9);
        transform: translateX(-100%) translateX(-2vmin) translateX(15vmin);
    }
    
    .video-item.next {
        transform: translateX(100%) translateX(2vmin) translateX(-15vmin);
    }
}

.quote-content {
    position: relative;
}

.quote-swiper {
    position: absolute;
    top: 0;
    width: 100%;
    height: 99vmin;
}

.quote-content .title {
    position: absolute;
    top: 31.4667vmin;
    right: 6.6667vmin;
    width: 65.0667vmin;
    height: 7.3333vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4vmin;
    font-weight: bold;
    color: #fff;
}

.quote-content .quote-editable {
    position: absolute;
    top: 40vmin;
    padding: 3.3333vmin;
    margin: 0 7.3333vmin;
    font-size: 3.7333vmin;
    overflow: auto;
}

.quote-content .avatar {
    position: absolute;
    top: 21.3333vmin;
    left: 5.8667vmin;
    width: 18.6667vmin;
    height: 18.6667vmin;
    border-radius: 50%;
    border-bottom-right-radius: 0;
    border: .1333vmin solid #FC2B7B;
}




.click-btn {
    width: 13.3333vmin !important;
    position: absolute;
    z-index: 100;

}


.study {
    width: 100vmin;
    padding: 2.6667vmin;
}

.study-panel {
    background: #fff6f5;
    border-radius: 2.6667vmin;
    padding: 5.3333vmin 2.6667vmin 2.6667vmin 2.6667vmin;
}

.study-body {
    position: relative;
    padding: 2.6667vmin;
    padding-top: 9.6vmin;
    margin-top: 9.3333vmin;
    background: #ffe3dd;
    width: 89vmin;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2.6667vmin;
}

.reason-list {
    height: 10.1333vmin;
    display: flex;
    background: linear-gradient(180deg, #FFA18D 0%, #EE323E 100%);
    position: relative;
    border-radius: 2.6667vmin;
    align-items: center;
    padding: 0 1.3333vmin;
    margin-bottom: 5.0667vmin;
    position: absolute;
    top: -5.0667vmin;
    left: 0;
    right: 0;
    gap: .6667vmin;
}

.reason-list .reason-item {
    flex-shrink: 0;
    font-size: 2.6667vmin;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

.reason-list .reason-item.active {
    font-size: 4.8vmin;
    color: #fff;
    font-weight: bold;
}

.reason-list::after {
    content: "";
    position: absolute;
    border: 4vmin solid transparent;
    border-left: none;
    border-top-color: #f04048;
    bottom: -7.7333vmin;
    left: 12vmin;
    transform: skewX(-18deg);
}



.study-desc {
    font-size: 3.4667vmin;
    color: #3D3D3D;
}



.study-item {
    padding-bottom: 4vmin;
}

.study-pagination-item {
    width: 2.6667vmin;
    height: 2.6667vmin;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 1.3333vmin;
}

.study-pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.study-pagination .study-pagination-item {
    flex-grow: 1;
    height: 1.3333vmin;
    border-radius: .6667vmin;
    margin: 0 !important;
}

.study-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.study-title img {
    height: 16vmin;
}

.study-pic {
    position: absolute;
    width: 14.5333vmin;
    bottom: -15px;
    right: 0;
}

@keyframes slideAndFade {
    0% {
        transform: translateX(100%) rotate(0deg);
        transform-origin: bottom right;
        opacity: 1;
    }
    25% {
        transform: translateX(-100%) rotate(-10deg);
        transform-origin: bottom right;
        opacity: 0;
    }
    100% {
        transform: translateX(-100%) rotate(-10deg);
        transform-origin: bottom right;
        opacity: 0;
    }
}

.tip-img img {
    width: 100px;
    position: absolute;
    top: 50%;
    right: 13.3333vmin;
    opacity: 0.5;
    animation: slideAndFade 2s ease-out infinite;
}

.study2 .reason-list {
    background:  linear-gradient(180deg, #E83BB6 0%, #FF9CB1 100%);
}

.study2 .study-panel {
    background: #ffecf8;
}

.study2 .study-body {
    background: #ffc0ee;
}

.study2 .reason-list::after {
    border-top-color: #fd90b2;
}

.call-phone {
    display: flex;
    width: 100%;
    height: 16vmin;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.call-phone a {
    flex: 1;
    height: 100%;
}

.swiper-pagination-bullet-active {
    background: #fff6f5 !important;
}

.tab-items {
    position: relative;
}

/* tap 动画：手指点击效果 */
@keyframes tap {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

.tap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8vmin;
    pointer-events: none;
    animation: tap 1s ease-out infinite;
}
