/* =============================================
   影视站模板 — 深导航青蓝内容风格
   参照: LiveJournal 配色方案
   ============================================= */

:root {
    --lj-cyan:        #00a8cc;
    --lj-cyan-dark:   #007fa0;
    --lj-cyan-light:  #2dc0de;
    --lj-navy:        #1a2738;
    --lj-navy-light:  #243448;
    --lj-navy-border: #304258;
    --lj-black:       #222222;
    --lj-gray-dark:   #444444;
    --lj-gray:        #707070;
    --lj-gray-light:  #aaaaaa;
    --lj-border:      #d8dde5;
    --lj-bg:          #e8eaed;
    --lj-bg-light:    #f0f2f5;
    --lj-white:       #ffffff;
    --lj-card-bg:     #ffffff;
    --lj-tag-bg:      #e2f5fb;
    --lj-tag-text:    #007fa0;
    --lj-footer-bg:   #1a2738;
    --lj-footer-text: #7a9ab8;
    --lj-accent-red:  #e8522a;
    --rd-sm: 4px;
    --rd-md: 6px;
    --rd-lg: 10px;
    --sh-sm: 0 1px 4px rgba(0,0,0,0.09);
    --sh-md: 0 2px 10px rgba(0,0,0,0.13);
    --fn: '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(--fn);
    background: var(--lj-bg);
    color: var(--lj-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lj-cyan); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

.lj-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* =============================================
   顶部 Header — 深灰蓝底，白字，青色品牌
   ============================================= */

.lj-header {
    background: var(--lj-navy);
    color: #fff;
    padding: 9px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.lj-header .lj-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.lj-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.lj-site-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--lj-cyan);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -0.3px;
    line-height: 1;
    white-space: nowrap;
}
.lj-site-name:hover { color: var(--lj-cyan-light); }

.lj-domain-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,168,204,0.18);
    border: 1px solid rgba(0,168,204,0.38);
    border-radius: 20px;
    padding: 3px 13px;
    white-space: nowrap;
}
.lj-domain-chip .dc-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}
.lj-domain-chip .dc-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--lj-cyan);
    letter-spacing: 0.2px;
}

/* =============================================
   横幅区域（不设 margin/padding）
   ============================================= */

.lj-banner-zone {
    background: var(--lj-bg-light);
    margin-bottom: 4px;
}

/* =============================================
   栏目导航面板 — 深海蓝底
   ============================================= */

.lj-nav-panel {
    background: var(--lj-navy-light);
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.nav-zone-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--lj-navy-border);
    min-height: 38px;
}
.nav-zone-row:last-child { border-bottom: none; }

.nav-zone-mark {
    background: var(--lj-cyan);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    min-width: 46px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.nav-zone-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.nav-zone-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    padding: 7px 11px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.nav-zone-links a:hover,
.nav-zone-links a.active {
    background: var(--lj-cyan);
    color: #fff;
}

/* =============================================
   搜索栏
   ============================================= */

.lj-search-bar {
    background: var(--lj-white);
    padding: 8px 0;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--lj-cyan);
    box-shadow: var(--sh-sm);
}

.srch-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

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

.srch-line input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 37px;
    border: 2px solid var(--lj-border);
    border-radius: var(--rd-sm);
    padding: 0 13px;
    font-size: 13px;
    font-family: var(--fn);
    color: var(--lj-black);
    background: var(--lj-bg-light);
    outline: none;
    transition: border-color 0.2s;
}
.srch-line input[type="text"]:focus { border-color: var(--lj-cyan); }

.srch-line button {
    height: 37px;
    padding: 0 12px;
    background: var(--lj-cyan);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 12px;
    font-family: var(--fn);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.srch-line button:hover { background: var(--lj-cyan-dark); }

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

.lj-kw-strip {
    background: var(--lj-white);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.kw-strip-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.kw-strip-inner strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--lj-cyan-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.kw-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kw-bubbles a {
    font-size: 12px;
    color: var(--lj-tag-text);
    background: var(--lj-tag-bg);
    border: 1px solid #b0dce8;
    border-radius: var(--rd-sm);
    padding: 2px 9px;
    transition: all 0.15s;
}
.kw-bubbles a:hover {
    background: var(--lj-cyan);
    color: #fff;
    border-color: var(--lj-cyan);
}

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

.lj-content { padding: 4px 0; }

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

.content-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: var(--lj-bg-light);
    border-bottom: 2px solid var(--lj-cyan);
}

.content-card-hd h3.card-ttl,
.content-card-hd h4.card-ttl {
    font-size: 15px;
    font-weight: 800;
    color: var(--lj-black);
    padding-left: 11px;
    position: relative;
}

.content-card-hd h3.card-ttl::before,
.content-card-hd h4.card-ttl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--lj-cyan);
    border-radius: 2px;
}

.content-card-hd h3.card-ttl a,
.content-card-hd h4.card-ttl a { color: var(--lj-black); }
.content-card-hd h3.card-ttl a:hover,
.content-card-hd h4.card-ttl a:hover { color: var(--lj-cyan); }

/* 影片网格 */
.film-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 16px;
}

.film-tile {
    position: relative;
    min-width: 0;       /* 防止 grid item 撑破列宽 */
    overflow: hidden;   /* 兜底截断溢出 */
}

.film-tile-img {
    display: block;
    overflow: hidden;
    border-radius: var(--rd-sm);
    background: var(--lj-tag-bg);
    aspect-ratio: 600 / 350;
    border: 1px solid var(--lj-border);
    transition: border-color 0.2s;
    width: 100%;        /* 确保不超出 grid 列 */
    max-width: 100%;    /* 兜底 */
}
.film-tile-img img {
    width: 100%;
    max-width: 100%;    /* 防止图片原始尺寸撑破容器 */
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.film-tile-img:hover img { transform: scale(1.04); }
.film-tile-img:hover { border-color: var(--lj-cyan-light); }

.film-tile-cap { padding: 5px 2px 2px; }
.film-tile-cap h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--lj-black);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.film-tile-cap h5 a:hover { color: var(--lj-cyan); }

/* =============================================
   详情页
   ============================================= */

.post-title-bar {
    background: var(--lj-white);
    border-left: 4px solid var(--lj-cyan);
    padding: 11px 15px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-all;
    box-shadow: var(--sh-sm);
    border-radius: 0 var(--rd-sm) var(--rd-sm) 0;
    border-top: 1px solid var(--lj-border);
    border-bottom: 1px solid var(--lj-border);
    border-right: 1px solid var(--lj-border);
}
.post-title-bar .cat-link-ref {
    color: var(--lj-cyan);
    font-weight: 700;
    margin-right: 8px;
}

.post-meta-box {
    background: var(--lj-white);
    padding: 16px 18px;
    margin-bottom: 6px;
    border-radius: var(--rd-md);
    font-size: 14px;
    line-height: 2;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--lj-border);
    border-top: 3px solid var(--lj-navy);
    color: var(--lj-gray-dark);
}

/* 截图 */
.snap-gallery { margin-top: 12px; overflow: hidden; }
.snap-gallery picture { display: block; width: 100%; max-width: 100%; }
.snap-gallery picture img,
.snap-gallery img {
    width: 100%;
    max-width: 100%;    /* 防止截图撑破磁力详情页布局 */
    height: auto;
    border-radius: var(--rd-sm);
    display: block;
}

/* 播放器 */
.stream-player {
    background: #000;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    overflow: hidden;
}

/* 下载按钮 */
.dl-button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--lj-cyan);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fn);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
}
.dl-btn:hover {
    background: var(--lj-cyan-dark);
    color: #fff;
    transform: translateY(-1px);
}

.client-hint-pc, .client-hint-mb {
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
}
.client-hint-pc a, .client-hint-mb a {
    color: var(--lj-cyan);
    font-weight: 600;
}

/* =============================================
   分享面板
   ============================================= */

.share-info-row {
    background: var(--lj-white);
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-sm);
    border: 1px solid var(--lj-border);
    border-left: 3px solid var(--lj-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-url-block {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.share-url-block .sub-lbl {
    font-size: 12px;
    color: var(--lj-gray-light);
    white-space: nowrap;
    flex-shrink: 0;
}
.share-url-block .sub-url {
    font-size: 12px;
    color: var(--lj-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-copy-share {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--lj-cyan);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: 12px;
    font-family: var(--fn);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.btn-copy-share:hover { background: var(--lj-cyan-dark); }

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

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

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

.pager-seq a, .pager-seq .pager-active {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: var(--rd-sm);
    font-size: 13px;
    padding: 0 7px;
}
.pager-seq a {
    background: var(--lj-white);
    color: var(--lj-black);
    border: 1px solid var(--lj-border);
    transition: all 0.15s;
}
.pager-seq a:hover {
    background: var(--lj-cyan);
    color: #fff;
    border-color: var(--lj-cyan);
}
.pager-seq .pager-active {
    background: var(--lj-cyan);
    color: #fff;
    border: 1px solid var(--lj-cyan);
    font-weight: 700;
}

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

.lj-flinks-zone {
    background: var(--lj-white);
    padding: 8px 14px;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
    border-top: 2px solid var(--lj-border);
}

.lj-flinks-zone .flinks-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--lj-gray);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--lj-border);
}

.flinks-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.flinks-nodes dd { margin: 0; }
.flinks-nodes a.fn-item {
    display: inline-block;
    font-size: 12px;
    color: var(--lj-gray);
    background: var(--lj-bg-light);
    border: 1px solid var(--lj-border);
    padding: 2px 10px;
    border-radius: var(--rd-sm);
    transition: all 0.15s;
}
.flinks-nodes a.fn-item:hover {
    background: var(--lj-cyan);
    color: #fff;
    border-color: var(--lj-cyan);
}

/* =============================================
   页脚 — 深灰蓝底
   ============================================= */

.lj-footer {
    background: var(--lj-footer-bg);
    padding: 14px 0;
    margin-top: 6px;
}

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

/* =============================================
   显示辅助
   ============================================= */

.pc-show { display: block; }
.mb-show { display: none; }

.qty-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--lj-gray-light);
    margin-left: 6px;
}

/* =============================================
   响应式 — ≤768px 大屏手机
   ============================================= */

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

    .lj-wrap { padding: 0 10px; }

    /* 品牌 */
    .lj-site-name { font-size: 17px; }
    .lj-domain-chip .dc-val { font-size: 13px; }

    /* 导航：分区标签15%，链接85%，每行4列 */
    .nav-zone-mark {
        font-size: 10px;
        width: 15%;
        min-width: 36px;
        padding: 0 3px;
    }
    .nav-zone-links {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .nav-zone-links a {
        font-size: 13px;
        padding: 5px 3px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 搜索同行不换行 */
    .srch-line { flex-wrap: nowrap; }
    .srch-line form { flex-wrap: nowrap; }
    .srch-line input[type="text"] { height: 32px; font-size: 12px; }
    .srch-line button { height: 32px; font-size: 11px; padding: 0 7px; }

    /* 影片2列 */
    .film-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        padding: 8px 10px;
    }

    .film-tile {
        min-width: 0;
        overflow: hidden;
    }

    .film-tile-img {
        width: 100%;
        max-width: 100%;
    }

    .post-title-bar { font-size: 13px; padding: 9px 11px; }
    .post-meta-box { font-size: 13px; padding: 11px; }

    .dl-btn { padding: 8px 15px; font-size: 13px; }

    .pager-seq a, .pager-seq .pager-active {
        min-width: 28px; height: 28px; line-height: 28px; font-size: 12px;
    }
}

/* =============================================
   响应式 — ≤480px 小屏手机
   ============================================= */

@media (max-width: 480px) {
    .lj-site-name { font-size: 15px; }
    .lj-domain-chip .dc-val { font-size: 12px; }
    .lj-domain-chip { padding: 2px 9px; }

    .nav-zone-mark { font-size: 10px; width: 15%; min-width: 32px; }
    .nav-zone-links a { font-size: 12px; padding: 5px 2px; }

    .srch-line input[type="text"] { height: 30px; font-size: 11px; }
    .srch-line button { height: 30px; font-size: 11px; padding: 0 6px; }

    .film-tile-cap h5 { font-size: 11px; }
    .dl-btn { padding: 7px 12px; font-size: 12px; }
    .dl-button-group { gap: 7px; }
}

/* =============================================
   响应式 — ≥769px PC端
   ============================================= */

@media (min-width: 769px) {
    .nav-zone-row { min-height: 40px; }

    .nav-zone-mark {
        font-size: 13px;
        min-width: 72px;
        padding: 0 10px;
    }

    .nav-zone-links {
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-zone-links a {
        flex: 1;
        font-size: 14px;
        padding: 8px 6px;
        text-align: center;
    }
}
