/* ========================================
   影视站模板 - 深导航/浅灰底风格
   ======================================== */

:root {
    --lj-primary: #4a9fd4;
    --lj-primary-dark: #2e7db5;
    --lj-primary-light: #6ab4e3;
    --lj-nav-bg: #1d2d3e;
    --lj-nav-txt: #d8e4ee;
    --lj-hd-bg: #1d2d3e;
    --lj-hd-txt: #ffffff;
    --lj-bg: #e8eaed;
    --lj-white: #ffffff;
    --lj-card: #ffffff;
    --lj-text: #212b36;
    --lj-text-mid: #546478;
    --lj-text-soft: #8fa3b1;
    --lj-border: #dce2e8;
    --lj-tag-bg: #eaf4fb;
    --lj-footer-bg: #141f2b;
    --lj-footer-txt: #7a95aa;
    --rd-xs: 3px;
    --rd-sm: 4px;
    --sh-xs: 0 1px 3px rgba(0,0,0,0.07);
    --sh-sm: 0 2px 7px rgba(0,0,0,0.10);
    --ff-ui: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--ff-ui);
    background-color: var(--lj-bg);
    color: var(--lj-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lj-primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ========== 布局容器 ========== */

.gw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 顶部品牌栏（不 sticky） ========== */

.site-header {
    background: var(--lj-hd-bg);
    color: var(--lj-hd-txt);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.site-header .gw {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--lj-white);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.brand-title:hover { color: var(--lj-primary-light); }

.domain-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,159,212,0.18);
    border: 1px solid rgba(74,159,212,0.45);
    border-radius: var(--rd-xs);
    padding: 3px 12px;
    white-space: nowrap;
}

.domain-badge .lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.60);
    font-weight: 500;
}

.domain-badge .url-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--lj-primary-light);
    letter-spacing: 0.3px;
}

/* ========== 横幅区域 ========== */

.banner-zone { margin: 4px 0; }
.banner-zone .gw { padding: 0 16px; }

/* ========== 栏目导航 ========== */

.nav-panel {
    background: var(--lj-nav-bg);
    margin-bottom: 4px;
    box-shadow: var(--sh-xs);
}

.nav-panel .gw { padding: 0 16px; }

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 34px;
}

.cat-row:last-child { border-bottom: none; }

.cat-zone-label {
    background: rgba(74,159,212,0.20);
    color: var(--lj-primary-light);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
    writing-mode: horizontal-tb;
    line-height: 1.3;
    word-break: break-all;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.cat-links-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.cat-links-area a {
    font-size: 13px;
    color: var(--lj-nav-txt);
    padding: 6px 10px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    text-align: center;
}

.cat-links-area a:hover,
.cat-links-area a.active {
    background: var(--lj-primary);
    color: var(--lj-white);
}

/* ========== 搜索区域 ========== */

.search-zone {
    background: var(--lj-white);
    padding: 8px 0;
    margin-bottom: 4px;
    box-shadow: var(--sh-xs);
    border-bottom: 1px solid var(--lj-border);
}

.search-zone .gw { padding: 0 16px; }

.search-form-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.search-form-box form {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.search-form-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 33px;
    border: 1px solid var(--lj-border);
    border-radius: var(--rd-sm);
    padding: 0 10px;
    font-size: 13px;
    font-family: var(--ff-ui);
    color: var(--lj-text);
    background: #f5f8fa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form-box input[type="text"]:focus {
    border-color: var(--lj-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74,159,212,0.12);
}

.search-form-box button {
    height: 33px;
    padding: 0 11px;
    background: var(--lj-primary);
    color: var(--lj-white);
    border: none;
    border-radius: var(--rd-sm);
    font-size: 12px;
    font-family: var(--ff-ui);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.search-form-box button:hover { background: var(--lj-primary-dark); }

/* ========== 热搜标签 ========== */

.hot-tags-block {
    background: var(--lj-white);
    padding: 6px 0;
    margin-bottom: 4px;
    box-shadow: var(--sh-xs);
    border-bottom: 1px solid var(--lj-border);
}

.hot-tags-block .gw { padding: 0 16px; }

.hot-tags-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hot-tags-inner h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--lj-primary);
    white-space: nowrap;
    margin-right: 6px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tags-list a {
    font-size: 12px;
    color: var(--lj-text-mid);
    background: var(--lj-tag-bg);
    border: 1px solid #c8dff0;
    border-radius: 2px;
    padding: 1px 8px;
    transition: all 0.15s;
}

.tags-list a:hover {
    background: var(--lj-primary);
    color: var(--lj-white);
    border-color: var(--lj-primary);
}

/* ========== 内容区块 ========== */

.content-zone { padding: 4px 0; }
.content-zone .gw { padding: 0 16px; }

.film-section {
    background: var(--lj-card);
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    overflow: hidden;
    box-shadow: var(--sh-xs);
    border: 1px solid var(--lj-border);
}

.film-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid var(--lj-border);
    background: #f7f9fb;
}

.film-section-head h3.sec-title,
.film-section-head h4.sec-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--lj-text);
    position: relative;
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.film-section-head h3.sec-title::before,
.film-section-head h4.sec-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 13px;
    background: var(--lj-primary);
    border-radius: 2px;
}

.film-section-head h3.sec-title a,
.film-section-head h4.sec-title a { color: var(--lj-text); }

.film-section-head h3.sec-title a:hover,
.film-section-head h4.sec-title a:hover { color: var(--lj-primary); }

.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px;
}

.film-item {
    overflow: hidden;
    border-radius: var(--rd-xs);
    background: #f5f8fa;
    border: 1px solid var(--lj-border);
    transition: box-shadow 0.18s, transform 0.18s;
}

.film-item:hover {
    box-shadow: var(--sh-sm);
    transform: translateY(-2px);
    border-color: #b8cfe0;
}

.film-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
}

.film-thumb img {
    width: 100%;
    aspect-ratio: 600 / 350;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.film-item:hover .film-thumb img { transform: scale(1.04); }

.film-meta { padding: 5px 7px 6px; }

.film-meta h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--lj-text);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-meta h5 a { color: var(--lj-text); }
.film-meta h5 a:hover { color: var(--lj-primary); }

/* ========== 详情页标题栏 ========== */

.detail-title-bar {
    background: var(--lj-card);
    padding: 11px 15px;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--lj-text);
    border: 1px solid var(--lj-border);
    border-left: 4px solid var(--lj-primary);
}

.detail-title-bar .cat-link {
    color: var(--lj-primary);
    margin-right: 7px;
    font-size: 13px;
    font-weight: 600;
}

.detail-title-bar .cat-link:hover { color: var(--lj-primary-dark); }

/* ========== 详情页影片信息 ========== */

.detail-info-box {
    background: var(--lj-card);
    padding: 13px 15px;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    font-size: 14px;
    line-height: 2;
    color: var(--lj-text-mid);
    border: 1px solid var(--lj-border);
}

.capture-grid-box { margin-top: 10px; }

.capture-grid-box picture img,
.capture-grid-box img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-xs);
    display: block;
}

/* ========== 下载按钮区域 ========== */

.dl-btn-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 13px 15px;
    background: var(--lj-card);
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    border: 1px solid var(--lj-border);
}

.dl-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--lj-primary);
    color: var(--lj-white);
    border-radius: var(--rd-sm);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.15s, transform 0.15s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.dl-btn:hover {
    background: var(--lj-primary-dark);
    transform: translateY(-1px);
    color: var(--lj-white);
}

/* ========== 客户端下载链接 ========== */

.client-link-pc,
.client-link-mobile {
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    background: var(--lj-card);
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    border: 1px solid var(--lj-border);
}

.client-link-pc a,
.client-link-mobile a {
    color: var(--lj-primary);
    font-weight: 600;
}

/* ========== 分享区域 ========== */

.share-panel {
    background: var(--lj-card);
    padding: 10px 15px;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid var(--lj-border);
}

.share-url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-lbl {
    font-size: 12px;
    color: var(--lj-text-soft);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url-txt {
    font-size: 12px;
    color: var(--lj-text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    background: var(--lj-primary);
    color: var(--lj-white);
    border: none;
    border-radius: var(--rd-sm);
    font-size: 13px;
    font-family: var(--ff-ui);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.share-copy-btn:hover { background: var(--lj-primary-dark); }

/* ========== 视频播放器容器 ========== */

.player-wrap {
    background: #000;
    margin-bottom: 6px;
    border-radius: var(--rd-xs);
    overflow: hidden;
}

/* ========== 分页 ========== */

.paging-zone {
    margin: 10px 0 5px;
    display: flex;
    justify-content: center;
}

.pager {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pager a,
.pager .cur-pg {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: var(--rd-sm);
    font-size: 13px;
    padding: 0 6px;
}

.pager a {
    background: var(--lj-white);
    color: var(--lj-text-mid);
    border: 1px solid var(--lj-border);
    transition: all 0.15s;
}

.pager a:hover {
    background: var(--lj-primary);
    color: var(--lj-white);
    border-color: var(--lj-primary);
}

.pager .cur-pg {
    background: var(--lj-primary);
    color: var(--lj-white);
    border: 1px solid var(--lj-primary);
    font-weight: 700;
}

/* ========== 友情链接 ========== */

.links-section {
    background: var(--lj-white);
    padding: 9px 14px;
    margin-bottom: 4px;
    box-shadow: var(--sh-xs);
    border-top: 1px solid var(--lj-border);
}

.links-section .sec-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--lj-text-soft);
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--lj-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.links-list dd { margin: 0; }

.links-list a.lnk-item {
    display: inline-block;
    font-size: 12px;
    color: var(--lj-text-mid);
    background: #f3f6f9;
    border: 1px solid var(--lj-border);
    padding: 2px 9px;
    border-radius: 2px;
    transition: all 0.15s;
}

.links-list a.lnk-item:hover {
    background: var(--lj-primary);
    color: var(--lj-white);
    border-color: var(--lj-primary);
}

/* ========== 页脚 ========== */

.site-footer {
    background: var(--lj-footer-bg);
    padding: 13px 0;
    margin-top: 5px;
}

.site-footer .gw { padding: 0 16px; }

.footer-copy {
    text-align: center;
    font-size: 12px;
    color: var(--lj-footer-txt);
    line-height: 1.85;
}

/* ========== 显示隐藏 ========== */

.pc-only { display: block; }
.mobile-only { display: none; }

/* ========== 列表页标题计数 ========== */

.count-badge {
    font-size: 12px;
    font-weight: 400;
    color: var(--lj-text-soft);
    margin-left: 7px;
}

/* ========== 响应式 - 平板 (≤ 1024px) ========== */

@media (max-width: 1024px) {
    .film-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

/* ========== 响应式 - 大屏手机 (≤ 768px) ========== */

@media (max-width: 768px) {
    .pc-only { display: none; }
    .mobile-only { display: block; }

    .gw { padding: 0 10px; }

    .brand-title { font-size: 19px; }
    .domain-badge .url-val { font-size: 13px; }

    .cat-zone-label {
        font-size: 10px;
        min-width: 40px;
        width: 15%;
        padding: 0 3px;
    }

    .cat-links-area {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-links-area a {
        font-size: 13px;
        padding: 5px 3px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-form-box { flex-wrap: nowrap; }
    .search-form-box form { flex-wrap: nowrap; }

    .search-form-box input[type="text"] {
        font-size: 12px;
        height: 31px;
    }

    .search-form-box button {
        height: 31px;
        font-size: 11px;
        padding: 0 7px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px 10px;
    }

    .film-section { overflow: hidden; }

    .detail-title-bar {
        font-size: 14px;
        padding: 9px 11px;
    }

    .detail-info-box {
        font-size: 13px;
        padding: 11px 12px;
    }

    .dl-btn { padding: 8px 15px; font-size: 13px; }
    .tags-list a { font-size: 11px; padding: 1px 6px; }

    .pager a, .pager .cur-pg {
        min-width: 27px;
        height: 27px;
        line-height: 27px;
        font-size: 12px;
    }

    .film-section-head { padding: 7px 10px; }
}

/* ========== 响应式 - 小屏手机 (≤ 480px) ========== */

@media (max-width: 480px) {
    .brand-title { font-size: 17px; }
    .domain-badge .url-val { font-size: 12px; }
    .domain-badge { padding: 3px 8px; }

    .cat-zone-label {
        font-size: 10px;
        min-width: 36px;
        width: 15%;
    }

    .cat-links-area a { font-size: 12px; padding: 5px 2px; }

    .search-form-box input[type="text"] { height: 29px; font-size: 11px; }
    .search-form-box button { height: 29px; font-size: 11px; padding: 0 6px; }
    .film-meta h5 { font-size: 11px; }
    .dl-btn-zone { gap: 8px; }
    .dl-btn { padding: 7px 11px; font-size: 12px; }
}

/* ========== PC端导航栏宽度均分 ========== */

@media (min-width: 769px) {
    .cat-row { min-height: 38px; }

    .cat-zone-label {
        font-size: 13px;
        min-width: 72px;
        padding: 0 10px;
        writing-mode: horizontal-tb;
    }

    .cat-links-area {
        display: flex;
        flex-wrap: nowrap;
    }

    .cat-links-area a {
        flex: 1;
        font-size: 14px;
        padding: 7px 5px;
        text-align: center;
    }
}
