/* ========================================
   影视站模板样式 - 专业蓝调风格
   ======================================== */

:root {
    --mc-primary: #1565c0;
    --mc-primary-dark: #0d47a1;
    --mc-primary-light: #1976d2;
    --mc-accent: #00acc1;
    --mc-accent-dark: #00838f;
    --mc-bg: #eef2f7;
    --mc-white: #ffffff;
    --mc-text: #1c2a3a;
    --mc-text-sub: #546e7a;
    --mc-text-faint: #90a4ae;
    --mc-line: #dde3ea;
    --mc-card-bg: #ffffff;
    --mc-nav-bg: #1565c0;
    --mc-nav-txt: #ffffff;
    --mc-hd-bg: #1565c0;
    --mc-hd-txt: #ffffff;
    --mc-tag-bg: #e3f2fd;
    --mc-tag-txt: #1565c0;
    --mc-footer-bg: #0d2137;
    --mc-footer-txt: #b0bec5;
    --rd-xs: 3px;
    --rd-sm: 5px;
    --rd-md: 8px;
    --rd-lg: 12px;
    --sh-xs: 0 1px 3px rgba(21,101,192,0.08);
    --sh-sm: 0 2px 8px rgba(21,101,192,0.10);
    --sh-md: 0 4px 14px rgba(21,101,192,0.13);
    --ff-base: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 12px;
    --gap-lg: 16px;
    --gap-xl: 24px;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--mc-primary);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

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

.pg-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blk-card {
    background: var(--mc-card-bg);
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    overflow: hidden;
}

/* ========================================
   顶部品牌区域（不置顶）
   ======================================== */

.site-header {
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-accent) 100%);
    color: var(--mc-hd-txt);
    padding: 11px 0;
    box-shadow: 0 2px 8px rgba(21,101,192,0.25);
}

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

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

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

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--mc-white);
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.brand-title:hover {
    color: var(--mc-white);
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 4px 14px;
    white-space: nowrap;
}

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

.domain-badge .url-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--mc-white);
    letter-spacing: 0.4px;
}

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

.banner-zone {
    margin: 5px 0;
}

.banner-zone .pg-wrap {
    padding: 0 15px;
}

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

.nav-panel {
    background: var(--mc-white);
    border-bottom: 2px solid var(--mc-line);
    margin-bottom: 5px;
    box-shadow: var(--sh-xs);
}

.nav-panel .pg-wrap {
    padding: 0 15px;
}

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #edf1f6;
    min-height: 36px;
}

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

.cat-zone-label {
    background: var(--mc-primary);
    color: var(--mc-white);
    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.5px;
}

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

.cat-links-area a {
    font-size: 13px;
    color: var(--mc-text);
    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(--mc-primary);
    color: var(--mc-white);
}

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

.search-zone {
    background: var(--mc-white);
    padding: 9px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-xs);
}

.search-zone .pg-wrap {
    padding: 0 15px;
}

.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: 34px;
    border: 2px solid var(--mc-primary);
    border-radius: var(--rd-xs);
    padding: 0 10px;
    font-size: 13px;
    font-family: var(--ff-base);
    color: var(--mc-text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.search-form-box input[type="text"]:focus {
    border-color: var(--mc-primary-dark);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.10);
}

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

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

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

.hot-tags-block {
    background: var(--mc-white);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-xs);
}

.hot-tags-block .pg-wrap {
    padding: 0 15px;
}

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

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

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

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

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

/* ========================================
   内容区块 - 影片列表
   ======================================== */

.content-zone {
    padding: 5px 0;
}

.content-zone .pg-wrap {
    padding: 0 15px;
}

.film-section {
    background: var(--mc-card-bg);
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    overflow: hidden;
    box-shadow: var(--sh-xs);
}

.film-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 2px solid var(--mc-primary);
    background: #f5f9ff;
}

.film-section-head h3.sec-title,
.film-section-head h4.sec-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--mc-text);
    position: relative;
    padding-left: 11px;
}

.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: 4px;
    height: 16px;
    background: linear-gradient(to bottom, var(--mc-primary), var(--mc-accent));
    border-radius: 2px;
}

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

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

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

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

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

.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: 6px 7px 7px;
}

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

.film-meta h5 a {
    color: var(--mc-text);
}

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

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

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

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

.detail-title-bar .cat-link:hover {
    color: var(--mc-accent);
}

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

.detail-info-box {
    background: var(--mc-card-bg);
    padding: 14px 16px;
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    font-size: 14px;
    line-height: 2;
    color: var(--mc-text-sub);
}

.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: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--mc-card-bg);
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-accent) 100%);
    color: var(--mc-white);
    border-radius: var(--rd-sm);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.15s, transform 0.15s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.dl-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: var(--mc-white);
}

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

.client-link-pc,
.client-link-mobile {
    text-align: center;
    padding: 9px 16px;
    font-size: 13px;
    background: var(--mc-card-bg);
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
}

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

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

.share-panel {
    background: var(--mc-card-bg);
    padding: 11px 16px;
    margin-bottom: 7px;
    border-radius: var(--rd-sm);
    box-shadow: var(--sh-xs);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.links-section {
    background: var(--mc-white);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--sh-xs);
}

.links-section .sec-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mc-text-sub);
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--mc-line);
}

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

.links-list dd {
    margin: 0;
}

.links-list a.lnk-item {
    display: inline-block;
    font-size: 12px;
    color: var(--mc-text-sub);
    background: #f0f4fb;
    border: 1px solid #d0ddef;
    padding: 3px 10px;
    border-radius: 2px;
    transition: all 0.15s;
}

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

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

.site-footer {
    background: var(--mc-footer-bg);
    padding: 15px 0;
    margin-top: 7px;
}

.site-footer .pg-wrap {
    padding: 0 15px;
}

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

/* ========================================
   显示隐藏辅助
   ======================================== */

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

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

.count-badge {
    font-size: 12px;
    font-weight: 400;
    color: var(--mc-text-faint);
    margin-left: 8px;
}

/* ========================================
   响应式 - 平板 (≤ 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; }

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

    .brand-title {
        font-size: 20px;
    }

    .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: 32px;
    }

    .search-form-box button {
        height: 32px;
        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: 10px 12px;
    }

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

    .dl-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .tags-list a {
        font-size: 11px;
        padding: 2px 6px;
    }

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

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

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

@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .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: 30px;
        font-size: 11px;
    }

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

    .film-meta h5 {
        font-size: 11px;
    }

    .dl-btn-zone {
        gap: 8px;
    }

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

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

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

    .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: 8px 5px;
        text-align: center;
    }
}
