@charset "UTF-8";

/* ==========================================
   1. 全局样式重置
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background: #f8f9fa; 
    color: #333; 
    line-height: 1.6; 
}
a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.2s;
}
a:hover {
    color: #ff5500;
}


/* ==========================================
   2. 导航控制中心 (PC端智能裁剪悬浮 + 移动端折叠)
   ========================================== */
.site-header { 
    background: #1a1a1e; 
    color: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}
.nav-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 24px; 
    height: 70px; 
    position: relative;
}
.site-logo { 
    font-size: 26px; 
    font-weight: 800; 
    color: #ff5500; 
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 20px; 
}

/* 导航菜单容器 */
.nav-menu { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: center;
    gap: 4px; 
    margin: 0 20px;
    flex: 1;
    justify-content: flex-start;
    height: 100%;
}
.nav-item { 
    color: #ccc; 
    font-size: 14px; 
    padding: 6px 12px; 
    border-radius: 4px;
    transition: all 0.2s; 
    white-space: nowrap;
    display: inline-block;
}
.nav-item:hover, .nav-item.active { 
    color: #fff; 
    background: #ff5500; 
}

/* ==========================================
   【PC端特供】：更多分类悬浮大卡片网格
   ========================================== */
.nav-more-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.more-trigger {
    cursor: pointer;
    background: #2a2a30 !important; /* 给“更多分类”一个精致的深色衬托背景 */
    color: #fff !important;
}
.arrow-icon {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* 悬浮展示区核心样式 */
.nav-more-dropdown .dropdown-content {
    display: none; 
    position: absolute;
    top: 55px; 
    left: 50%;
    transform: translateX(-50%); 
    background: #232329;
    min-width: 360px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 16px;
    border-radius: 6px;
    z-index: 1100;
    border: 1px solid #3a3a40;
    
    /* 将剩余分类自动在卡片中排成3列精致网格 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

/* 鼠标放上去（Hover）或者点击（is-active）时动态滑出显示 */
.nav-more-dropdown:hover .dropdown-content,
.nav-more-dropdown.is-active .dropdown-content {
    display: grid; 
    opacity: 1;
    visibility: visible;
    top: 60px; 
}

/* 箭头在展开时平滑倒转 */
.nav-more-dropdown:hover .arrow-icon,
.nav-more-dropdown.is-active .arrow-icon {
    transform: rotate(180deg);
    color: #ff5500;
}

/* 下拉框内部独立的子分类标签样式 */
.dropdown-item {
    color: #bbb;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    background: #2d2d35;
    transition: all 0.2s ease;
}
.dropdown-item:hover, .dropdown-item.active {
    color: #fff;
    background: #ff5500;
    transform: translateY(-1px);
}

/* 移动端汉堡包菜单触发器 */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* 头部右侧搜索栏 */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-form {
    display: flex;
    align-items: center;
    background: #2a2a30;
    border-radius: 20px;
    padding: 2px 5px 2px 15px;
    border: 1px solid #3a3a40;
}
.search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 140px;
    transition: width 0.3s;
}
.search-input:focus {
    width: 200px;
}
.search-btn {
    background: #ff5500;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* ==========================================
   3. 核心大框架响应式网格
   ========================================== */
.main-wrapper { 
    max-width: 1400px; 
    margin: 25px auto; 
    padding: 0 20px; 
    min-height: calc(100vh - 190px); 
}
.video-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); /* 宽屏大视野全展示 */
    gap: 18px; 
    margin-bottom: 30px; 
}

/* ==========================================
   4. 影视卡片及精美状态角标样式
   ========================================== */
.video-card { 
    background: #fff; 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    transition: transform 0.25s, box-shadow 0.25s; 
}
.video-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}
.cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 142%;
    background: #eef1f6;
    overflow: hidden;
}
.card-cover { 
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* 完美融入右下角的高级剧集标签状态 */
.card-episode-tag {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(2px);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-info { 
    padding: 12px; 
}
.card-title { 
    font-size: 14px; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-bottom: 6px; 
    color: #111;
}
.card-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-tag { 
    font-size: 11px; 
    color: #ff5500; 
    background: #fff0e6; 
    padding: 1px 6px; 
    border-radius: 3px; 
}
.card-score {
    font-size: 12px;
    font-weight: bold;
    color: #ffaa00;
}

/* ==========================================
   5. 首页与分类布局公共组件
   ========================================== */
.category-block { 
    margin-bottom: 40px; 
}
.block-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 18px; 
    border-left: 4px solid #ff5500; 
    padding-left: 12px; 
}
.block-title { 
    font-size: 20px; 
    color: #111; 
    font-weight: 700;
}
.block-more { 
    font-size: 13px; 
    color: #ff5500; 
    font-weight: 600; 
}
.page-title { 
    margin-bottom: 25px; 
    font-size: 20px; 
    font-weight: bold; 
    border-bottom: 2px solid #eef1f6; 
    padding-bottom: 12px; 
    color: #333;
}
.page-title-type { 
    color: #ff5500; 
}
.page-title-meta { 
    font-size: 14px; 
    color: #888; 
    font-weight: normal; 
    margin-left: 10px; 
}

/* ==========================================
   6. 深度重组：双模态影视点播仓与剧集按钮
   ========================================== */
.play-layout { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
}
.player-container { 
    width: 100%; 
    background: #000; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative; 
    padding-top: 56.25%; 
}
.player-container iframe, .player-container video { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    border: 0; 
}
.episodes-card { 
    background: #fff; 
    padding: 24px; 
    border-radius: 8px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.04); 
}
.episodes-title { 
    font-size: 18px; 
    color: #111; 
    border-left: 4px solid #ff5500; 
    padding-left: 10px; 
    font-weight: 700;
}
.episode-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-top: 20px; 
}
.ep-btn { 
    padding: 10px 20px; 
    background: #f1f3f7; 
    border: none; 
    border-radius: 4px; 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
}
.ep-btn:hover { 
    background: #e4e7ed; 
    color: #ff5500; 
}
.ep-btn.active { 
    background: #ff5500; 
    color: #fff; 
}

/* 信息卡片 */
.info-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.info-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}
.info-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.info-meta strong {
    color: #666;
}
.info-meta a.meta-link {
    color: #ff5500;
    font-weight: 600;
}
.info-meta a.meta-link:hover {
    text-decoration: underline;
}
.info-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    border-top: 1px dashed #eef1f6;
    padding-top: 20px;
}

/* ==========================================
   7. 经典通用分页条
   ========================================== */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 8px; 
    margin: 40px 0; 
}
.page-link { 
    padding: 8px 16px; 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 4px; 
    font-size: 14px;
}
.page-link:hover { 
    background: #ff5500; 
    color: #fff;
    border-color: #ff5500;
}
.page-current { 
    padding: 8px 16px; 
    background: #ff5500; 
    color: #fff; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 14px;
}
.site-footer { 
    background: #1a1a1e; 
    color: #888; 
    text-align: center; 
    padding: 30px 0; 
    font-size: 13px; 
    margin-top: 60px; 
    border-top: 1px solid #2d2d35; 
}

/* ==========================================
   8. 极端全屏自适应断点破除机制（独创精细化移动导航切换）
   ========================================== */
@media(max-width: 1400px) {
    .video-grid { grid-template-columns: repeat(6, 1fr); }
}
@media(max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(5, 1fr); }
}
@media(max-width: 992px) {
    .video-grid { grid-template-columns: repeat(4, 1fr); }
    .nav-container { height: auto; padding: 15px 20px; flex-wrap: wrap; }
    .menu-toggle { display: block; order: 2; }
    .header-search { width: 100%; order: 3; margin-top: 15px; }
    .search-form { width: 100%; justify-content: space-between; }
    .search-input { width: 100% !important; }
    
    /* 移动端强制隐藏与弹性下拉 */
    .nav-menu { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        order: 4; 
        margin: 15px 0 0 0; 
        background: #232329;
        padding: 10px;
        border-radius: 6px;
        gap: 5px;
    }
    .nav-menu.show {
        display: flex; /* 点击汉堡按钮动态展开动画 */
    }
    .nav-item {
        padding: 10px 15px;
        width: 100%;
        border-radius: 4px;
    }
    .info-meta { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media(max-width: 480px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .site-logo { font-size: 22px; }
    .info-title { font-size: 20px; }
    .main-wrapper { padding: 0 10px; margin: 15px auto; }
}