/* ============= Colorich 视频教学系统专属设计 - 2025终极版 ============= */

.vtc-all-videos,
.vtc-taxonomy-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', 'Comic Sans MS', 'Arial', sans-serif;
    background: #fff;
}

/* ====================== 主页 - 分类大卡 ====================== */
.vtc-term-section {
    margin-bottom: 70px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    background: #fff;
    transition: transform 0.4s ease;
}
.vtc-term-section:hover { transform: translateY(-12px); }

.vtc-term-header {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.vtc-term-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.3));
}
.vtc-term-cover-wrapper {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 18px solid #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    z-index: 2;
}
.vtc-term-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.vtc-term-info {
    position: absolute;
    left: 370px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
}
.vtc-term-info h2 {
    font-size: 58px;
    margin: 0 0 18px;
    text-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    font-weight: 900;
}
.vtc-term-desc {
    font-size: 24px;
    margin: 0 0 18px;
    line-height: 1.5;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.vtc-video-count {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(255,71,87,0.5);
}

/* ====================== 横向滑动轨道（主页 + 详情页通用） ====================== */
.vtc-video-list {
    position: relative;
    padding: 60px 80px;
    background: linear-gradient(to bottom, #fff5f9, #f5faff);
}
.vtc-slider-wrapper { overflow: hidden; border-radius: 30px; }
.vtc-slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 0 15px 0;
}
.vtc-slider-prev,
.vtc-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    font-size: 36px;
    color: #ff4757;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.vtc-slider-prev:hover,
.vtc-slider-next:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}
.vtc-slider-prev { left: 15px; }
.vtc-slider-next { right: 15px; }

/* ====================== 主页视频卡片 ====================== */
.vtc-all-videos .vtc-video-card {
    flex: 0 0 calc(25% - 26px);
    min-width: calc(25% - 26px);
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    transition: all 0.4s;
}
.vtc-all-videos .vtc-video-card:hover { transform: translateY(-18px); }
.vtc-all-videos .vtc-video-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.vtc-all-videos .vtc-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.vtc-all-videos .vtc-video-card:hover img { transform: scale(1.2); }
.vtc-all-videos .vtc-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,71,87,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s;
}
.vtc-all-videos .vtc-video-card:hover .vtc-play-overlay { opacity: 1; }
.vtc-all-videos .vtc-play-btn {
    margin: 20px auto;
    padding: 14px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ffa047);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

/* ====================== 分类详情页 - 彩色方块视频卡 ====================== */
.vtc-taxonomy-archive .vtc-video-list { padding: 80px 20px 50px; background: #fff; }
.vtc-taxonomy-archive .vtc-slider-track { gap: 50px; justify-content: center; }
.vtc-taxonomy-archive .vtc-video-card {
    flex: 0 0 300px;
    min-width: 300px;
    height: 300px;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.vtc-taxonomy-archive .vtc-video-thumb {
    position: relative;
    height: 100%;
}
.vtc-taxonomy-archive .vtc-video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,182,193,0.92), rgba(135,206,250,0.92));
    z-index: 1;
}
.vtc-taxonomy-archive .vtc-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.vtc-taxonomy-archive .vtc-video-card:hover img { transform: scale(1.25); }
.vtc-taxonomy-archive .vtc-play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ff4757;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.vtc-taxonomy-archive .vtc-play-overlay::after { content: '▶'; margin-left: 10px; }
.vtc-taxonomy-archive .vtc-video-title {
    position: absolute;
    bottom: 35px;
    left: 0; right: 0;
    text-align: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
    z-index: 2;
    padding: 0 25px;
}
.vtc-taxonomy-archive .vtc-duration {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    z-index: 2;
}

/* 返回按钮 */
.vtc-back-btn {
    display: block;
    margin: 50px auto;
    padding: 18px 60px;
    background: linear-gradient(45deg, #ff8a8a, #ff4757);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(255,71,87,0.5);
    transition: all 0.3s;
}
.vtc-back-btn:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(255,71,87,0.7); }

/* ====================== 密钥认领弹窗（最新设计图） ====================== */
.vtc-claim-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.vtc-claim-modal.active { opacity: 1; visibility: visible; }

.vtc-claim-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: url('/wp-content/themes/woodmart/img/videotc.png');
    border-radius: 42px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    text-align: center;
    padding: 140px 35px 30px;
    animation: bounceIn 0.8s ease;
}
.vtc-claim-content input {
    width: 100%;
    padding: 20px 25px;
    font-size: 19px;
    border: 4px solid #fff;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: center;
    margin: 25px 0;
    outline: none;
}
.vtc-claim-content input::placeholder { color: #bbb; }
.vtc-claim-content input[type="text"] {
    background: #fff;
    color: #333;
    border-radius: 30px;
    height: 60px;
    margin:10px 0;
}
.vtc-claim-content button[type="submit"] {
    width: 90px;
    height: 30px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(255,71,87,0.55);
    transition: all 0.3s;
}
.vtc-claim-content button[type="submit"]:hover {
    transform: scale(1.18);
    box-shadow: 0 18px 50px rgba(255,71,87,0.7);
}
.vtc-claim-msg {
    margin-top: 18px;
    font-size: 18px;
    font-weight: bold;
    min-height: 34px;
}

/* ====================== 弹窗播放器 ====================== */
.vtc-modal-player {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}
.vtc-modal-player.active { opacity: 1; visibility: visible; }
.vtc-modal-overlay { position: absolute; inset: 0; cursor: pointer; }
.vtc-modal-content {
    position: relative;
    width: 90%;
    max-width: 1280px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.8);
}
.vtc-modal-content iframe,
.vtc-modal-content video { width: 100%; height: 100%; border: none; }
.vtc-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s;
}
.vtc-modal-close:hover { background: #ff4757; transform: scale(1.15); }
.vtc-modal-loading {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 50px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    border-radius: 50px;
    font-size: 20px;
    z-index: 9999999;
}

/* ====================== 动画 ====================== */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.08); }
    70% { transform: scale(0.94); }
    100% { transform: scale(1); opacity: 1; }
}

/* ====================== 响应式 ====================== */
@media (max-width: 1024px) {
    .vtc-all-videos .vtc-video-card,
    .vtc-taxonomy-archive .vtc-video-card { flex: 0 0 calc(50% - 20px); min-width: calc(50% - 20px); }
}
@media (max-width: 640px) {
    .vtc-term-header { height: 240px; }
    .vtc-term-cover-wrapper { width: 180px; height: 180px; left: 30px; }
    .vtc-term-info { left: 220px; }
    .vtc-term-info h2 { font-size: 36px; }
    .vtc-video-list { padding: 50px 15px; }
    .vtc-slider-prev, .vtc-slider-next { display: none; }
    .vtc-taxonomy-archive .vtc-video-card { flex: 0 0 260px; min-width: 260px; height: 260px; }
}