/* 分类页特定样式 (Video Type Page Specific Styles) */

/* ========================================
   1. 页面布局
   ======================================== */

.vod-type-page {
    padding: 20px 0;
}

.page-header {
    margin-bottom: 20px;
    padding-bottom: 0;
}

/* 面包屑统一样式 */
.breadcrumb {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

/* 移动端body padding调整 - 为双层导航腾出空间 */
@media screen and (max-width: 768px) {
    body#vodtype {
        padding-top: 110px !important;
    }
}

/* ========================================
   2. 分类网格布局
   ======================================== */

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.type-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.type-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color, #ff6b6b);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.type-item > a {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    margin-bottom: 15px;
}

.type-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #ff6b6b), #ff8787);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type-icon i {
    font-size: 28px;
    color: white;
}

.type-info {
    flex: 1;
}

.type-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: white;
}

.type-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 6px 0;
}

.type-count {
    font-size: 12px;
    color: var(--primary-color, #ff6b6b);
}

.sub-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sub-type-item {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sub-type-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color, #ff6b6b);
    color: var(--primary-color, #ff6b6b);
}

/* ========================================
   3. 热门关键词
   ======================================== */

.hot-keywords {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
}

.hot-keywords h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword-item {
    padding: 8px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.keyword-item:hover {
    background: var(--primary-color, #ff6b6b);
    color: white;
    border-color: var(--primary-color, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

/* ========================================
   4. 视频区块
   ======================================== */

.video-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color, #ff6b6b);
    border-radius: 2px;
}

[data-theme="light"] .section-title {
    color: #000;
}

.section-more {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.section-more:hover {
    color: var(--primary-color, #ff6b6b);
}

[data-theme="light"] .section-more {
    color: rgba(0,0,0,0.6);
}

[data-theme="light"] .section-more:hover {
    color: var(--primary-color, #ff6b6b);
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* 默认视频卡片样式 (桌面端6列) */
.video-card {
    width: calc(16.666% - 13px);
}

.video-pic {
    padding-top: 140%;
    position: relative;
}

.video-pic img {
    position: absolute;
    top: 0;
    left: 0;
}

/* ========================================
   5. 底部查看更多按钮
   ======================================== */

.load-more-container {
    text-align: center;
    margin: 40px 0 60px;
    padding: 0 20px;
}

.load-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.load-more-btn:hover {
    background: #ff8787;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* ========================================
   6. 主题图标阴影
   ======================================== */

[data-theme="dark"] .type-icon {
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

[data-theme="light"] .type-icon {
    box-shadow: 0 4px 15px rgba(255,107,107,0.2);
}

/* ========================================
   7. 响应式 - 移动端
   ======================================== */

@media screen and (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .vod-type-page {
        padding: 15px 0;
    }

    .page-header {
        margin-bottom: 15px;
        padding-bottom: 0;
        /*padding-top: 50px;*/
    }

    .type-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }

    .type-item {
        padding: 18px;
    }

    .type-item > a {
        gap: 15px;
        margin-bottom: 12px;
    }

    .type-icon {
        width: 50px;
        height: 50px;
    }

    .type-icon i {
        font-size: 24px;
    }

    .type-name {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .type-desc {
        font-size: 12px;
    }

    .type-count {
        font-size: 11px;
    }

    .sub-types {
        gap: 8px;
        padding-top: 12px;
    }

    .sub-type-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hot-keywords {
        padding: 18px;
    }

    .hot-keywords h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .keywords-list {
        gap: 8px;
    }

    .keyword-item {
        padding: 6px 14px;
        font-size: 13px;
    }

    .video-grid {
        gap: 10px;
    }

    .video-card {
        width: calc(33.333% - 7px);
        flex-shrink: 0;
    }

    .video-pic {
        padding-top: 140%;
    }

    .video-pic img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .section-title {
        font-size: 18px;
    }

    .load-more-container {
        margin: 30px 0 40px;
    }

    .load-more-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}

/* ========================================
   8. 响应式 - 平板
   ======================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .type-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .type-item {
        padding: 22px;
    }

    .type-name {
        font-size: 19px;
    }

    .hot-keywords {
        padding: 22px;
    }

    .hot-keywords h3 {
        font-size: 19px;
    }

    .video-card {
        width: calc(25% - 12px);
    }

    .video-pic {
        padding-top: 140%;
    }

    .video-pic img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* ========================================
   9. 响应式 - 大屏
   ======================================== */

@media screen and (min-width: 1025px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .type-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 30px;
    }

    .video-card {
        width: calc(16.666% - 13px);
    }

    .video-pic {
        padding-top: 140%;
    }

    .video-pic img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* ========================================
   10. 超大屏优化
   ======================================== */

@media screen and (min-width: 1440px) {
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   11. 触摸设备优化
   ======================================== */

@media (hover: none) {
    .type-item:active {
        transform: scale(0.98);
    }

    .sub-type-item:active,
    .keyword-item:active {
        transform: scale(0.95);
    }
}
