.page2 {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(to bottom, #0a0e27 0%, #1a1f3a 30%, #0f1525 70%, #0a0e27 100%); */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top: 15vh; */
}

/* 顶部大标题 */
.page2-main-title {
    position: relative;
    z-index: 200;
    margin-bottom: 1vh;
    text-align: center;
    top: 0vh;
}

.p2-title-img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.page2-classlist-item-list {
    height: 80%;
    width: 100%;
    overflow-y: auto;
    display: flex;
    /* flex-direction: column; */
    justify-content: space-around;
    flex-wrap: wrap;
}
.page2-classlist-box-list{
    position: relative;
    top: 11vh;
    width: 100%;
    height: 74%;
    overflow-y: auto;
    background: transparent;
}

.page2-classlist-item-active {
    background: linear-gradient(to bottom, 
        rgba(100, 180, 255, 0.2) 0%,
        rgba(100, 180, 255, 0.3) 50%,
        rgba(100, 180, 255, 0.2) 100%) !important;
    background-color: #00e5ff !important;
    color: #000 !important;
}

.page2-classlist-box {
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    top: 3vh;
    z-index: 150;
    width: 85%;
    margin-bottom: 20px;
    max-width: 600px;
    height:30%;
    display: flex;
    /* flex-direction: row; */
    flex-wrap: wrap;
    align-items: space-evenly;
    justify-content: space-between;
    /* align-items: flex-start; */
    background: linear-gradient(to bottom, 
        rgba(30, 60, 120, 0.1) 0%,
        rgba(20, 40, 80, 0.1) 50%,
        rgba(15, 30, 60, 0.1) 100%);
    border-radius: 20px;
    padding: 10px;
    /* padding-right: 50px; */
    box-shadow: 
        0 0 20px rgba(100, 180, 255, 0.4),
        0 0 40px rgba(100, 180, 255, 0.3),
        0 0 60px rgba(100, 180, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    overflow-y: auto;
    animation: glowPulse 3s ease-in-out infinite;    
}

/* 分类列表滚动条样式 */
.page2-classlist-box::-webkit-scrollbar {
    width: 0px !important;
    
}·

.page2-classlist-box::-webkit-scrollbar-track {
    background: rgba(100, 150, 255, 0.2) !important;
    border-radius: 4px;
}

.page2-classlist-box::-webkit-scrollbar-thumb {
    background: rgba(100, 180, 255, 0.7) !important;
    border-radius: 4px;
}

.page2-classlist-box::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 180, 255, 0.9) !important;
}

/* 主内容区域 - 蓝色半透明矩形框 */
.page2-content-box {
    position: relative;
    top: 0vh;
    z-index: 150;
    width: 85%;
    max-width: 600px;
    height:35%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, 
        rgba(30, 60, 120, 0.1) 0%,
        rgba(20, 40, 80, 0.1) 50%,
        rgba(15, 30, 60, 0.1) 100%);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 
        0 0 20px rgba(100, 180, 255, 0.4),
        0 0 40px rgba(100, 180, 255, 0.3),
        0 0 60px rgba(100, 180, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: glowPulse 3s ease-in-out infinite;
    
}

/* 框内标题 */
.content-header {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* 轮播项（椭圆形按钮） */
.carousel-item {
    position: relative;
    width: 100%;
    height: 55px;
    background: linear-gradient(to bottom, 
        rgba(120, 170, 255, 0.15) 0%,
        rgba(100, 150, 255, 0.2) 50%,
        rgba(80, 130, 230, 0.25) 100%);
    border: 2px solid rgba(100, 180, 255, 0.7);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    margin-bottom: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 12px rgba(100, 150, 255, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.carousel-item:hover {
    border-color: rgba(100, 180, 255, 0.9);
    box-shadow: 
        0 4px 15px rgba(100, 150, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.carousel-item:active {
    transform: translateY(0);
}

.carousel-text {
    flex: 1;
    color: #fff;
    font-size: 15px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 180, 255, 0.95);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    color: rgba(150, 200, 255, 1);
    background: rgba(100, 180, 255, 0.2);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.arrow-left span,
.arrow-right span {
    display: block;
    line-height: 1;
}

/* 列表项 */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
    height: 80%;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.content-list::-webkit-scrollbar {
    width: 4px;
}

.content-list::-webkit-scrollbar-track {
    background: rgba(100, 150, 255, 0.1);
    border-radius: 2px;
}

.content-list::-webkit-scrollbar-thumb {
    background: rgba(100, 180, 255, 0.5);
    border-radius: 2px;
}

.content-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 180, 255, 0.7);
}

.list-item {
    color: rgba(150, 200, 255, 0.7);
    font-size: 15px;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 2px 0;
}

.list-item:hover {
    color: rgba(150, 200, 255, 0.9);
}

.list-item-active {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(to right, 
        rgba(100, 180, 255, 0.2) 0%,
        rgba(100, 180, 255, 0.3) 50%,
        rgba(100, 180, 255, 0.2) 100%);
    box-shadow: 
        0 2px 8px rgba(100, 180, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 
        0 0 10px rgba(100, 180, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

/* 背景装饰效果 */
.page2-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
}

/* 左侧网格光点 */
.bg-dots-left {
    position: absolute;
    left: 3%;
    top: 15%;
    width: 180px;
    height: 500px;
    background-image: 
        radial-gradient(circle, rgba(100, 180, 255, 0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(100, 180, 255, 0.5) 1px, transparent 1px);
    background-size: 25px 25px, 15px 15px;
    background-position: 0 0, 12px 12px;
    opacity: 0.5;
    animation: dotsFade 4s ease-in-out infinite;
    filter: blur(0.5px);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
}

.bg-dots-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(150, 200, 255, 0.4) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 5px 5px;
    animation: dotsFade 5s ease-in-out infinite reverse;
}

/* 右侧流动线条 */
.bg-lines-right {
    position: absolute;
    right: 3%;
    top: 10%;
    width: 180px;
    height: 600px;
    opacity: 0.4;
    animation: linesFlow 6s ease-in-out infinite;
    filter: blur(1.5px);
}

.bg-lines-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(100, 180, 255, 0.2) 15%,
        rgba(100, 180, 255, 0.5) 35%,
        rgba(100, 180, 255, 0.4) 50%,
        rgba(100, 180, 255, 0.3) 65%,
        rgba(100, 180, 255, 0.1) 85%,
        transparent 100%
    );
    clip-path: polygon(20% 0%, 100% 10%, 100% 90%, 20% 100%, 0% 50%);
}

.bg-lines-right::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 30px;
    width: 120px;
    height: 400px;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(100, 180, 255, 0.3) 25%,
        rgba(100, 180, 255, 0.6) 50%,
        rgba(100, 180, 255, 0.3) 75%,
        transparent 100%
    );
    clip-path: polygon(0% 0%, 100% 20%, 100% 80%, 0% 100%);
    animation: linesFlow 7s ease-in-out infinite reverse;
    filter: blur(1px);
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(100, 180, 255, 0.4),
            0 0 40px rgba(100, 180, 255, 0.3),
            0 0 60px rgba(100, 180, 255, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(100, 180, 255, 0.6),
            0 0 50px rgba(100, 180, 255, 0.4),
            0 0 70px rgba(100, 180, 255, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes dotsFade {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes linesFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    33% {
        opacity: 0.5;
        transform: translateX(-8px) translateY(15px) rotate(1deg);
    }
    66% {
        opacity: 0.4;
        transform: translateX(5px) translateY(-10px) rotate(-1deg);
    }
}

/* 响应式调整 */
@media (max-width: 480px) {


    .page2-content-box {
        width: 85%;
        margin: 0 auto;
        /* padding: 25px 20px; */
    }

    .content-header {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .carousel-item {
        height: 45px;
        padding: 0 12px;
    }

    .carousel-text {
        font-size: 14px;
    }

    .carousel-arrow {
        width: 25px;
        height: 25px;
        font-size: 20px;
    }

    .list-item {
        font-size: 2rem;
    }

    .bg-dots-left {
        width: 120px;
        height: 350px;
        left: 1%;
    }

    .bg-lines-right {
        width: 100px;
        height: 450px;
        right: 1%;
    }
}

.page2-classlist-item {
    width: 30%;
    height: 30%;
    background: linear-gradient(to bottom, 
        rgba(30, 60, 120, 0.1) 0%,
        rgba(20, 40, 80, 0.1) 50%,
        rgba(15, 30, 60, 0.1) 100%);
    border-radius: 20px;
    /* padding: 5px; */
    margin: 5px;
    font-size: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 12px rgba(100, 150, 255, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

