/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 确保尺寸计算一致 */
}

a {
    text-decoration: none;
}

/* 大屏幕默认样式 */
.saishi {
    width: 1400px;
    font-family: 'Press Start 2P', 'MyFont2', sans-serif;
    background: #fff;
    border: 5px solid #000;
    border-radius: 10px;
    margin: 200px auto;
    box-shadow: 8px 8px 0 #000;
    transition: transform 0.3s;
    overflow: hidden;
}

.saishi:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 #000;
}

.title123 {
    width: 100%;
    margin: 0;
    background: #ffd700;
    border-bottom: 3px solid #000;
    padding-bottom: 20px;
}

.title123 h3 {
    width: 100%;
    text-align: center;
    font-size: 40px;
    margin: 0 auto;
    padding-top: 30px;
    color: #ff4500;
    text-shadow: 3px 3px 0 #000;
    transition: transform 0.3s;
    letter-spacing: 5px;
}

.title123 h3:hover {
    transform: scale(1.05);
}

.sanshi {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 1300px;
    margin: 20px auto 0;
}

.sanshi-right {
    margin-top: 10px;
    width: 1400px;
}

.sboxs {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    border-bottom: 3px solid #000;
    padding: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 平滑滚动效果 */
}

.sboxs .sbox {
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    color: #333;
    margin-right: 30px;
    transition: all 0.3s;
    white-space: nowrap; /* 防止文字换行 */
    flex: 0 0 auto; /* 不伸缩，保持原始尺寸 */
}

.sboxs .sbox:hover {
    color: #ff4500 !important;
    transform: scale(1.1);
}

.sboxs .active {
    position: relative;
    color: #ff4500;
    font-weight: bold;
}

.sboxs .active::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 100%;
    height: 3px;
    background: #ff4500;
    border-radius: 10px;
}

.sbox-pane {
    display: none;
}

.sbox-pane.active {
    display: block;
}

.ssklk-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

.ssklk-list a {
    font-size: 16px;
    width: 235px;
    color: #333;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #000;
    background: #fff;
}

.ssklk-list a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #000;
    background: #fffacd;
}

.ssklk-list a img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 3px solid #000;
}

.ssklk-list a .ssklkl-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    padding: 10px;
    font-size: 14px;
    line-height: 1.3;
    height: 3.5em;
    margin: 5px 0;
    color: #333;
    transition: color 0.3s;
}

.ssklk-list a:hover .ssklkl-title {
    color: #ff4500;
}

.ssklk-list .ssklkl-date {
    display: block;
    color: #666;
    padding: 5px 10px;
    font-size: 13px;
    text-align: right;
    border-top: 2px solid #000;
    background: #f5f5f5;
}

.ssklk-list .ssklkl-name {
    float: left;
    color: #666;
    padding: 5px 10px;
    font-size: 13px;
    text-align: left;
}

.bili-nav {
    display: grid;
    width: 1300px;
    grid-auto-flow: column;
    margin: 20px auto;
    gap: 10px;
}

.bili-nav > div {
    position: relative;
    margin-top: 30px;
}

.bili-nav div > a {
    border: 3px solid #000;
    border-radius: 10px;
    padding: 20px 30px;
    color: #333;
    font-size: 14px;
    background: #fff;
    display: block;
    text-align: center;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.3s;
}

.bili-nav div > a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    color: #ff4500;
}

.bili-nav div .two {
    position: absolute;
    z-index: 999;
    display: none;
    flex-wrap: wrap;
    background: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000;
    padding: 5px;
    min-width: 10vw;
}

.bili-nav div:hover .two {
    display: flex;
    top: 35px;
}

.bili-nav div .two a {
    font-size: 15px;
    color: #333;
    width: 40%;
    padding: 5px;
    margin: 5px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.bili-nav div .two a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    color: #ff4500;
}

/* 查看更多按钮样式 */
.vidergengduo {
    display: flex;
    justify-content: center;
    margin: 20px auto 40px;
    width: 100%;
}

.vidergengduo a {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #ffd700;
    padding: 15px 40px;
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
}

.vidergengduo a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #000;
    color: #ff4500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .saishi {
        width: 100%;
        margin: 20px auto;
        border-width: 3px;
        box-shadow: 5px 5px 0 #000;
    }

    .title123 {
        width: 100%;
        margin: 0;
    }

    .title123 h3 {
        width: 100%;
        font-size: 24px;
    }

    .sanshi {
        flex-direction: column;
        width: 100%;
        margin: 10px auto;
    }

    .sanshi-right {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .ssklk-list {
        padding: 10px;
        gap: 10px;
    }

    .ssklk-list a {
        width: calc(50% - 5px);
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
    }

    .ssklk-list a:hover {
        box-shadow: 4px 4px 0 #000;
    }

    .bili-nav {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
        gap: 10px;
        padding: 0 10px;
    }

    .bili-nav div > a {
        font-size: 12px;
        padding: 15px 10px;
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
    }

    .bili-nav div .two {
        border-width: 2px;
        box-shadow: 3px 3px 0 #000;
    }

    .bili-nav div .two a {
        font-size: 12px;
        width: 100%;
        border-width: 1px;
        box-shadow: 1px 1px 0 #000;
    }

    .vidergengduo {
        margin: 15px auto 30px;
    }
    
    .vidergengduo a {
        font-size: 16px;
        padding: 10px 30px;
        border-width: 2px;
        box-shadow: 3px 3px 0 #000;
    }
    
    .vidergengduo a:hover {
        transform: translate(-2px, -2px);
        box-shadow: 5px 5px 0 #000;
    }

    .sboxs {
        padding: 8px 5px;
        margin-bottom: 15px;
        border-bottom-width: 2px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .sboxs .sbox {
        font-size: 16px;
        padding: 8px;
        margin-right: 15px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .ssklk-list a {
        width: calc(50% - 5px);
    }

    .ssklk-list a .ssklkl-title {
        font-size: 12px;
        padding: 5px;
        height: 3em;
        line-height: 1.3;
        margin: 3px 0;
    }

    .ssklk-list .ssklkl-date,
    .ssklk-list .ssklkl-name {
        font-size: 2.5vw;
        padding: 5px;
    }

    .ssklk-list a img {
        height: 100px;
    }

    .title123 h3 {
        font-size: 20px;
    }

    .bili-nav {
        gap: 5px;
    }

    .bili-nav div > a {
        padding: 10px 5px;
    }

    .vidergengduo a {
        font-size: 14px;
        padding: 8px 20px;
        letter-spacing: 1px;
    }

    .sboxs {
        padding: 5px 3px;
        margin-bottom: 10px;
    }
    
    .sboxs .sbox {
        font-size: 14px;
        padding: 6px;
        margin-right: 10px;
    }
}