/* ===== 原有样式（保留） ===== */
.cover-box > .bg {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.cover-box > .bg img {
    display: block;
    width: 100%;
    height: 100%;
}
#shuz:before{
    display: inline-block;
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background-color: #547777;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 5px;
    content: " ";
}
.article .body h1 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #222;
    margin: 0.4rem 0 0.2rem;
    line-height: 1.5;
}
.article .body p {
    font-size: 0.45rem;
    line-height: 1.8;
    color: #555;
}

/* ===== ★★★ 修正：播放器容器背景白色，消除黑线 ★★★ ===== */
.cover-box {
    position: relative;
    width: 100%;
    background: #ffffff;          /* 改为白色，与下方内容区一致 */
    overflow: hidden;
    border-radius: 0;            /* 去掉圆角，避免阴影产生的线条 */
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.cover-box > .bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;         /* 背景白色，消除黑色间隙 */
}
.cover-box .bg video {
    display: block;              /* 消除底部间隙 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;            /* 视频自身黑色，正常 */
    cursor: pointer;
}
.cover-box .bg .gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s;
}
.cover-box.playing .bg .gradient {
    opacity: 0.5;
}

/* 居中播放按钮 */
.video-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.video-center-play:hover {
    background: rgba(231, 165, 25, 0.85);
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(231, 165, 25, 0.6);
}
.video-center-play svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    margin-left: 4px;
}
.cover-box.playing .video-center-play {
    opacity: 0;
    pointer-events: none;
}
.cover-box.paused .video-center-play {
    opacity: 1;
    pointer-events: auto;
}

/* 底部控制栏 */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.cover-box:hover .video-controls,
.cover-box.show-controls .video-controls,
.cover-box.playing .video-controls,
.cover-box.paused .video-controls {
    opacity: 1;
    pointer-events: auto;
}

.controls-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    transition: height 0.15s;
}
.controls-progress:hover {
    height: 6px;
}
.controls-progress .progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    width: 0%;
    pointer-events: none;
}
.controls-progress .progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background: #e7a519;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
}
.controls-progress .progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e7a519;
    box-shadow: 0 0 8px rgba(231, 165, 25, 0.6);
    pointer-events: none;
    transition: left 0.1s linear;
}
.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    flex-wrap: wrap;
}
.controls-row .ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 0;
    line-height: 1;
    flex-shrink: 0;
}
.controls-row .ctrl-btn:hover {
    color: #e7a519;
}
.controls-row .ctrl-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.controls-row .time-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    min-width: 90px;
}
.controls-row .spacer {
    flex: 1;
}
.controls-row .volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.controls-row .volume-wrap input[type="range"] {
    width: 56px;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    transition: width 0.2s;
}
.controls-row .volume-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e7a519;
    cursor: pointer;
}
.controls-row .volume-wrap input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e7a519;
    border: none;
    cursor: pointer;
}

/* 标题和标签（浮在视频上） */
.cover-box .container {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 0 18px 12px;
    z-index: 3;
    pointer-events: none;
    background: transparent !important;
}
.cover-box .container .title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    margin-bottom: 6px;
    pointer-events: none;
}
.cover-box .container .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    pointer-events: none;
}
.cover-box .container .tags .label .item span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.3rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* 收藏按钮 */
.cover-box .action {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    pointer-events: auto;
}
.cover-box .action .btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px 6px 12px;
    color: #fff;
    font-size: 0.3rem;
    text-decoration: none;
    transition: all 0.25s;
    pointer-events: auto;
    cursor: pointer;
}
.cover-box .action .btn:hover {
    background: rgba(231, 165, 25, 0.75);
    border-color: #e7a519;
}
.cover-box .action .btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* 加载动画 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    display: none;
}
.video-loading.show {
    display: block;
}
.video-loading .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #e7a519;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误覆盖层 */
.video-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    pointer-events: auto;
}
.video-error-overlay.show {
    display: flex;
}
.video-error-overlay .error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.video-error-overlay .error-msg {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}
.video-error-overlay .error-hint {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}
.video-error-overlay .retry-btn {
    background: #e7a519;
    border: none;
    color: #fff;
    padding: 10px 32px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: auto;
}
.video-error-overlay .retry-btn:hover {
    background: #d49416;
}

/* 全屏模式 */
.cover-box.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    z-index: 9999;
    background: #000;
    border-radius: 0;
}
.cover-box.fullscreen .bg video {
    object-fit: contain;
}
.cover-box.fullscreen .container {
    bottom: 80px;
}
.cover-box.fullscreen .video-controls {
    padding: 16px 24px 20px;
}
.cover-box.fullscreen .controls-row .volume-wrap input[type="range"] {
    width: 80px;
}

/* 响应式 */
@media (max-width: 720px) {
    .video-center-play {
        width: 60px;
        height: 60px;
    }
    .video-center-play svg {
        width: 28px;
        height: 28px;
    }
    .cover-box .container {
        bottom: 60px;
        padding: 0 12px 8px;
    }
    .cover-box .container .title {
        font-size: 0.6rem;
    }
    .cover-box .container .tags .label .item span {
        font-size: 0.26rem;
    }
    .controls-row .time-display {
        font-size: 11px;
        min-width: 70px;
    }
    .controls-row .ctrl-btn svg {
        width: 18px;
        height: 18px;
    }
    .controls-row .volume-wrap input[type="range"] {
        width: 40px;
    }
    .cover-box .action .btn {
        padding: 4px 10px 4px 8px;
        font-size: 0.26rem;
    }
    .cover-box .action .btn svg {
        width: 12px;
        height: 12px;
    }
    .cover-box .action {
        top: 10px;
        right: 10px;
    }
}
@media (max-width: 480px) {
    .video-center-play {
        width: 48px;
        height: 48px;
    }
    .video-center-play svg {
        width: 22px;
        height: 22px;
    }
    .cover-box .container .title {
        font-size: 0.5rem;
    }
    .controls-row .volume-wrap input[type="range"] {
        width: 28px;
    }
    .controls-row .time-display {
        font-size: 10px;
        min-width: 60px;
    }
}
