/* ========================================
   影视站模板样式 - 蓝紫粉红商务风格
   ======================================== */

:root {
    --pk-primary: #2d3580;
    --pk-primary-dark: #1e2560;
    --pk-primary-light: #3d45a0;
    --pk-accent: #e8145a;
    --pk-accent-hover: #c8104e;
    --pk-accent-light: #fde8ef;
    --pk-bg-page: #f3f4f8;
    --pk-bg-card: #ffffff;
    --pk-text-dark: #1a1f3c;
    --pk-text-mid: #4a4f6a;
    --pk-text-soft: #8890aa;
    --pk-border: #e0e3ef;
    --pk-nav-bg: #2d3580;
    --pk-nav-txt: #ffffff;
    --pk-footer-bg: #1a1f3c;
    --pk-footer-txt: #9aa0bc;
    --radius-s: 4px;
    --radius-m: 8px;
    --radius-l: 20px;
    --shadow-xs: 0 1px 4px rgba(45,53,128,0.08);
    --shadow-sm: 0 2px 10px rgba(45,53,128,0.11);
    --shadow-md: 0 4px 18px rgba(45,53,128,0.15);
    --font-ui: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', sans-serif;
}

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

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

body {
    font-family: var(--font-ui);
    background: var(--pk-bg-page);
    color: var(--pk-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--pk-accent);
}

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

ul, ol {
    list-style: none;
}

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

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

/* ========================================
   顶部品牌区（不吸顶）
   ======================================== */

.site-header {
    background: var(--pk-bg-card);
    border-bottom: 3px solid var(--pk-primary);
    padding: 10px 0;
    box-shadow: var(--shadow-xs);
}

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

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

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

.brand-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--pk-primary);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
}

.brand-title:hover {
    color: var(--pk-primary-light);
    text-decoration: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eef0fa 0%, #fde8ef 100%);
    border: 1px solid var(--pk-border);
    border-radius: var(--radius-l);
    padding: 4px 14px;
    white-space: nowrap;
}

.domain-badge .lbl {
    font-size: 11px;
    color: var(--pk-text-soft);
    font-weight: 500;
}

.domain-badge .url-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--pk-accent);
    letter-spacing: 0.2px;
}

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

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

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

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

.nav-panel {
    background: var(--pk-nav-bg);
    margin-bottom: 5px;
    box-shadow: var(--shadow-sm);
}

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

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

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

.cat-zone-label {
    background: var(--pk-accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    min-width: 42px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

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

.cat-links-area a {
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    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(--pk-accent);
    color: #ffffff;
}

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

.search-zone {
    background: var(--pk-bg-card);
    padding: 10px 0;
    margin-bottom: 5px;
    box-shadow: var(--shadow-xs);
}

.search-zone .wrap {
    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: 36px;
    border: 2px solid var(--pk-primary);
    border-radius: var(--radius-m);
    padding: 0 12px;
    font-size: 13px;
    font-family: var(--font-ui);
    color: var(--pk-text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form-box input[type="text"]:focus {
    border-color: var(--pk-accent);
    box-shadow: 0 0 0 3px rgba(232,20,90,0.12);
}

.search-form-box input[type="text"]::placeholder {
    color: var(--pk-text-soft);
}

.search-form-box button {
    height: 36px;
    padding: 0 12px;
    background: var(--pk-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-m);
    font-size: 12px;
    font-family: var(--font-ui);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

.search-form-box button:hover {
    background: var(--pk-accent-hover);
    transform: translateY(-1px);
}

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

.hot-tags-block {
    background: var(--pk-bg-card);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--shadow-xs);
}

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

.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(--pk-accent);
    white-space: nowrap;
    margin-right: 6px;
}

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

.tags-list a {
    font-size: 12px;
    color: var(--pk-primary);
    background: #eef0fa;
    border: 1px solid #d0d4ef;
    border-radius: var(--radius-l);
    padding: 2px 10px;
    transition: all 0.15s;
    font-weight: 500;
}

.tags-list a:hover {
    background: var(--pk-accent);
    color: #ffffff;
    border-color: var(--pk-accent);
}

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

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

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

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

.film-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 2px solid var(--pk-bg-page);
    background: linear-gradient(90deg, #eef0fa 0%, #fff 100%);
}

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

.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: var(--pk-accent);
    border-radius: 2px;
}

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

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

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

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

.film-item {
    position: relative;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--pk-bg-page);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

/* 封面比例 600:350 */
.film-thumb {
    display: block;
    width: 100%;
    padding-top: 58.33%;
    position: relative;
    overflow: hidden;
    background: #dde0f0;
}

.film-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

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

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

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

.film-meta h5 a:hover {
    color: var(--pk-accent);
}

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

.detail-title-bar {
    background: var(--pk-bg-card);
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-xs);
    font-size: 15px;
    color: var(--pk-text-dark);
    line-height: 1.5;
    border-left: 4px solid var(--pk-accent);
}

.detail-title-bar b {
    font-weight: 700;
}

.cat-link {
    color: var(--pk-primary);
    margin-right: 6px;
    font-weight: 600;
}

.cat-link:hover {
    color: var(--pk-accent);
}

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

.detail-info-box {
    background: var(--pk-bg-card);
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-xs);
    font-size: 14px;
    color: var(--pk-text-mid);
    line-height: 2;
}

/* 截图：单图占100% */
.capture-grid-box {
    margin-top: 10px;
}

.capture-grid-box picture {
    display: block;
    width: 100%;
}

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

/* ========================================
   下载按钮
   ======================================== */

.dl-btn-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--pk-bg-card);
    margin-bottom: 6px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-xs);
}

.dl-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--pk-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-l);
    font-size: 14px;
    font-family: var(--font-ui);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(232,20,90,0.28);
}

.dl-btn:hover {
    background: var(--pk-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(232,20,90,0.36);
}

.client-link-pc,
.client-link-mobile {
    text-align: center;
    padding: 7px 16px;
    font-size: 13px;
}

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

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

.share-panel {
    background: var(--pk-bg-card);
    padding: 10px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-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(--pk-text-soft);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url-txt {
    font-size: 12px;
    color: var(--pk-text-dark);
    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(--pk-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-l);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--pk-primary-light);
}

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

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

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

.paging-zone {
    margin: 10px 0 5px;
    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(--radius-s);
    font-size: 13px;
    padding: 0 6px;
}

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

.pager a:hover {
    background: var(--pk-primary);
    color: #ffffff;
    border-color: var(--pk-primary);
}

.pager .cur-pg {
    background: var(--pk-accent);
    color: #ffffff;
    border: 1px solid var(--pk-accent);
    font-weight: 700;
}

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

.links-section {
    background: var(--pk-bg-card);
    padding: 10px 14px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-xs);
    border-radius: var(--radius-m);
}

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

.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(--pk-text-mid);
    background: #eef0fa;
    border: 1px solid #d0d4ef;
    padding: 3px 10px;
    border-radius: var(--radius-l);
    transition: all 0.15s;
}

.links-list a.lnk-item:hover {
    background: var(--pk-primary);
    color: #ffffff;
    border-color: var(--pk-primary);
}

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

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

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

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

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

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

/* ========================================
   PC端导航栏宽度均分（≥769px）
   ======================================== */

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

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

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

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

/* ========================================
   平板 (≤1024px)
   ======================================== */

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

/* ========================================
   大屏手机 (≤768px)
   ======================================== */

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

    .wrap {
        padding: 0 10px;
    }

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

    .domain-badge .url-val {
        font-size: 14px;
    }

    /* 导航：分区标签15%，链接区85%，4列2行 */
    .cat-zone-label {
        font-size: 10px;
        width: 15%;
        min-width: 0;
        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 8px;
        flex-shrink: 0;
    }

    /* 影片网格：移动端2列 */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        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 7px;
    }

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

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

    .domain-badge {
        padding: 3px 9px;
    }

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

    .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;
    }
}
