body {
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ==================== 页面 ==================== */
.vp {
    position: relative;
    max-width: 1200px;
    margin: 20px auto 0px auto;
    width: 94%;
}


/* ==================== 头部 ==================== */
.vp-header {
    position: relative;
    z-index: 1;
    background: var(--card);
    padding: 40px 48px 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* 面包屑 */
.vp-bread {
    font-size: 12px;
    color: var(--t3);
    margin-bottom: 28px;
    line-height: 1;
}
.vp-bread a {
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.vp-bread a:hover { color: var(--primary-color); }
.vp-bread .sep {
    display: inline-block;
    margin: 0 8px;
    color: #d4d4d8;
    font-family: sans-serif;
}

/* 标题区 */
.vp-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.vp-subtitle {
    font-size: 14px;
    color: var(--t3);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 分类标签 - 下划线风格 */
.vp-tabs {
    display: flex;
    gap: 0;
    margin-top: 28px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vp-tabs::-webkit-scrollbar { display: none; }

.vp-tabs a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    margin-right: 36px;
    font-size: 14px;
    color: var(--t3);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
    flex-shrink: 0;
}
.vp-tabs a:last-child { margin-right: 0; }
.vp-tabs a:hover { color: var(--t2); }

.vp-tabs a.on {
    color: var(--primary-color);
    font-weight: 600;
}
.vp-tabs a.on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

/* ==================== 内容区 ==================== */
.vp-body {
    position: relative;
    z-index: 1;
    padding: 0 48px 80px;
    background: var(--card);
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 400px;
}

/* ==================== 视频网格 ==================== */
.vp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 28px;
}

/* ==================== 视频卡片 ==================== */
.vp-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}
.vp-card:hover {
    background: var(--card);
    box-shadow: 0 8px 28px rgba(78,162,245,0.1), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}

/* 封面 */
.vp-card .cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
    overflow: hidden;
}
.vp-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s var(--ease);
}
.vp-card:hover .cover img {
    filter: brightness(0.88);
}

/* 播放按钮 */
.vp-card .play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.vp-card .play::before {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    opacity: 1;
    transform: scale(1);
    transition: all 0.35s var(--ease);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);

}
.vp-card .play::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent var(--666-color);
    transform: translate(-42%, -50%);
    opacity: 1;
    transition: opacity 0.35s var(--ease) 0.05s;
}
.vp-card:hover .play::before {
    opacity: 1;
    transform: scale(1);
}
.vp-card:hover .play::after {
    opacity: 1;
}

/* 标题 */
.vp-card .info {
    padding: 14px 14px 16px;
}
.vp-card .info a {
    text-decoration: none;
}
.vp-card .info .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}
.vp-card:hover .info .title {
    color: var(--primary-color);
}

/* ==================== 分页 ==================== */
.vp-page {
    text-align: center;
    padding: 48px 0 0;
}
.vp-page .layui-laypage {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.vp-page .layui-laypage a,
.vp-page .layui-laypage span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--t2);
    background: var(--bg);
    border: none;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}
.vp-page .layui-laypage a:hover {
    background: var(--primary-bg);
    color: var(--primary-color);
}
.vp-page .layui-laypage .layui-laypage-curr {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(78,162,245,0.3);
}
.vp-page .layui-laypage .layui-laypage-curr em {
    font-style: normal;
    color: #fff;
}

/* ==================== 空状态 ==================== */
.layui-none {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--t3);
    font-size: 14px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
    .vp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .vp-header {
        padding: 28px 20px 0;
        border-radius: var(--radius);
        margin-bottom: 0;
    }
    .vp-body {
        padding: 0 20px 60px;
        border-radius: var(--radius);
        margin-top: -1px;
    }

    .vp-title {
        font-size: 24px;
    }
    .vp-subtitle {
        font-size: 13px;
    }
    .vp-bread {
        margin-bottom: 20px;
    }

    .vp-tabs {
        margin-top: 22px;
        gap: 0;
    }
    .vp-tabs a {
        margin-right: 28px;
        padding: 8px 0;
        font-size: 13px;
    }

    .vp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-top: 20px;
    }
    .vp-card .info {
        padding: 10px 12px 14px;
    }
    .vp-card .info .title {
        font-size: 13px;
        line-height: 1.5;
    }
    .vp-card .play::before {
        width: 36px;
        height: 36px;
    }
    .vp-card .play::after {
        border-width: 6px 0 6px 10px;
    }

    .vp-page {
        padding: 32px 0 0;
    }
    .vp-page .layui-laypage a,
    .vp-page .layui-laypage span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        border-radius: 8px;
    }
}

@media (max-width: 380px) {
    .vp-header { padding: 24px 16px 0; }
    .vp-body { padding: 0 16px 50px; }
    .vp-title { font-size: 22px; }
    .vp-grid { gap: 10px; }
    .vp-card .info { padding: 8px 10px 12px; }
    .vp-card .info .title { font-size: 12px; }
    .vp-tabs a { margin-right: 22px; font-size: 12px; }
}

/* ==================== 覆盖 layui ==================== */
.layui-fluid { padding: 0 !important; }



/*************************内容页面*****************************/
/* ==================== 页面容器 ==================== */
.vd {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 面包屑 ==================== */
.vd-bread {
    font-size: 12px;
    color: var(--t3);
    padding: 28px 0 20px;
    line-height: 1;
}
.vd-bread a {
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.vd-bread a:hover { color: var(--primary-color); }
.vd-bread .sep {
    display: inline-block;
    margin: 0 8px;
    color: #d4d4d8;
}

/* ==================== 主布局 ==================== */
.vd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
    padding-bottom: 40px;
}

/* ==================== 左侧主内容 ==================== */
.vd-main {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

/* 文章标题 */
.vd-main .vd-title {
    padding: 32px 36px 0;
}
.vd-main .vd-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* 视频播放器 */
.vd-player {
    position: relative;
    padding: 24px 36px 0;
}
.vd-player .player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #0d0d0d;
    border-radius: var(--radius);
    overflow: hidden;
}
.vd-player .player-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==================== 播放器下方：推荐视频卡片网格 ==================== */
.vd-rec-section {
    padding: 32px 36px 36px;
    border-top: 1px solid var(--line);
    margin-top: 32px;
}
.vd-rec-section .sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.vd-rec-section .sec-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.vd-rec-section .sec-head h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}
.vd-rec-section .sec-head a {
    font-size: 12px;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.vd-rec-section .sec-head a:hover {
    color: var(--primary-color);
}

/* 视频卡片网格 */
.vd-rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.vd-rec-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}
.vd-rec-card:hover {
    background: var(--card);
    box-shadow: 0 6px 20px rgba(78,162,245,0.1), 0 2px 6px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.vd-rec-card .card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
    overflow: hidden;
}
.vd-rec-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.35s var(--ease);
}
.vd-rec-card:hover .card-cover img {
    filter: brightness(0.85);
}
/* 小播放按钮 */
.vd-rec-card .card-cover .mini-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.vd-rec-card .card-cover .mini-play::before {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s var(--ease);
    box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
.vd-rec-card .card-cover .mini-play::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent var(--666-color);
    opacity: 1;
    transition: opacity 0.3s var(--ease) 0.04s;
}
.vd-rec-card:hover .card-cover .mini-play::before {
    opacity: 1;
    transform: scale(1);
}
.vd-rec-card:hover .card-cover .mini-play::after {
    opacity: 1;
}
.vd-rec-card .card-text {
    padding: 12px 14px 14px;
}
.vd-rec-card .card-text a {
    text-decoration: none;
}
.vd-rec-card .card-text .card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}
.vd-rec-card:hover .card-text .card-title {
    color: var(--primary-color);
}

/* ==================== 右侧边栏 ==================== */
.vd-side {
    position: sticky;
    top: 20px;
}

.vd-side-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}
.vd-side-card .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
}
.vd-side-card .card-head h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.vd-side-card .card-head h3::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}
.vd-side-card .card-head a {
    font-size: 12px;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.vd-side-card .card-head a:hover {
    color: var(--primary-color);
}

/* ==================== 图文教程序号列表 ==================== */
.vd-num-list {
    list-style: none;
    padding: 4px 16px 16px;
}
.vd-num-list li {
    border-bottom: 1px solid var(--line);
}
.vd-num-list li:last-child {
    border-bottom: none;
}
.vd-num-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}
.vd-num-list li a:hover {
    background: var(--primary-bg);
}

/* 序号 */
.vd-num-list .num {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--t3);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s var(--ease);
    font-variant-numeric: tabular-nums;
}
.vd-num-list li:nth-child(1) .num {
    background: #f56c6c;
    color: #fff;
}
.vd-num-list li:nth-child(2) .num {
    background: #e6a23c;
    color: #fff;
}
.vd-num-list li:nth-child(3) .num {
    background: var(--primary-color);;
    color: #fff;
}
.vd-num-list li a:hover .num {
    background: var(--primary-color);
    color: #fff;
}

/* 文字 */
.vd-num-list .num-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.vd-num-list li a:hover .num-title {
    color: var(--primary-color);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .vd-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    .vd-rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vd-bread {
        padding: 16px 0 14px;
    }
    .vd-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 50px;
    }
    .vd-side {
        position: static;
    }

    .vd-main .vd-title {
        padding: 24px 20px 0;
    }
    .vd-main .vd-title h1 {
        font-size: 20px;
    }
    .vd-player {
        padding: 16px 20px 0;
    }
    .vd-player .player-wrap {
        border-radius: 8px;
    }

    /* 推荐视频网格 */
    .vd-rec-section {
        padding: 24px 20px 28px;
        margin-top: 24px;
    }
    .vd-rec-section .sec-head h3 {
        font-size: 15px;
    }
    .vd-rec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .vd-rec-card .card-text {
        padding: 10px 12px 12px;
    }
    .vd-rec-card .card-text .card-title {
        font-size: 12px;
    }
    .vd-rec-card .card-cover .mini-play::before {
        width: 30px;
        height: 30px;
    }

    /* 图文列表 */
    .vd-side-card .card-head {
        padding: 16px 18px 12px;
    }
    .vd-num-list {
        padding: 4px 14px 14px;
    }
}

@media (max-width: 480px) {
    .vd-main .vd-title {
        padding: 20px 16px 0;
    }
    .vd-main .vd-title h1 {
        font-size: 18px;
    }
    .vd-player {
        padding: 14px 16px 0;
    }

    .vd-rec-section {
        padding: 20px 16px 24px;
        margin-top: 20px;
    }
    .vd-rec-grid {
        gap: 10px;
    }
    .vd-rec-card .card-text {
        padding: 8px 10px 10px;
    }
    .vd-rec-card .card-text .card-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .vd-side-card .card-head {
        padding: 14px 16px 10px;
    }
    .vd-side-card .card-head h3 {
        font-size: 14px;
    }
    .vd-num-list {
        padding: 2px 12px 12px;
    }
    .vd-num-list .num {
        width: 22px;
        height: 22px;
        font-size: 12px;
        border-radius: 5px;
    }
    .vd-num-list .num-title {
        font-size: 12px;
    }
}

/* ==================== 覆盖原有样式 ==================== */
.appraisebox .gujiabox,
.appraisebox .gujiafl,
.appraisebox .sundryfr {
    display: none;
}