/* ===================================================
   影视站模板 · 粉色可爱风格 (pk 前缀)
   =================================================== */

:root {
    --pk-rose:      #ff6b8a;
    --pk-rose-dk:   #e8455f;
    --pk-rose-lt:   #ff9aaa;
    --pk-pink:      #ffb3c1;
    --pk-peach:     #fff0f3;
    --pk-peach2:    #ffe4ea;
    --pk-bg:        #fff8fa;
    --pk-bg2:       #ffffff;
    --pk-card:      #ffffff;
    --pk-text:      #3d1a26;
    --pk-text2:     #7a3f52;
    --pk-muted:     #b07a8a;
    --pk-border:    #ffd6df;
    --pk-border2:   #ffecf0;
    --pk-shadow:    rgba(255, 107, 138, 0.10);
    --pk-shadow-lg: rgba(255, 107, 138, 0.22);
    --pk-grad:      linear-gradient(135deg, #ff6b8a 0%, #ff9aaa 100%);
    --pk-grad2:     linear-gradient(135deg, #ff4d6d 0%, #ff6b8a 100%);
    --pk-r:         10px;
    --pk-r-sm:      6px;
    --pk-r-pill:    50px;
    --pk-ease:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',
                 'WenQuanYi Micro Hei', Arial, sans-serif;
    background: var(--pk-bg);
    color: var(--pk-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

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

/* ── 顶部 Header（不吸顶）── */
.pk-header {
    background: var(--pk-bg2);
    border-bottom: 2px solid var(--pk-border);
    padding: 0.7rem 0;
    box-shadow: 0 2px 12px var(--pk-shadow);
}

.pk-hd-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pk-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.pk-logo-link {
    display: inline-block;
    transition: var(--pk-ease);
}

.pk-logo-link:hover { opacity: 0.85; }

.pk-site-title {
    font-size: 28px;
    font-weight: 900;
    background: var(--pk-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    display: inline-block;
}

.pk-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    background: var(--pk-peach);
    border: 1.5px dashed var(--pk-rose);
    border-radius: var(--pk-r-pill);
}

.pk-domain-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--pk-rose);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pk-domain-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--pk-rose-dk);
    font-family: 'Courier New', monospace;
}

/* ── 布局容器 ── */
.pk-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.pk-section {
    padding: 12px 0;
}

/* ── 分类导航 ── */
.pk-nav-panel {
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 10px var(--pk-shadow);
}

.pk-nav-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--pk-border2);
}

.pk-nav-line:last-child { border-bottom: none; }

.pk-nav-zone {
    font-weight: 800;
    font-size: 13px;
    color: var(--pk-rose-dk);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    background: var(--pk-peach);
    border-right: 1px solid var(--pk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
}

.pk-nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
}

.pk-nav-items a {
    display: inline-block;
    color: var(--pk-text2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--pk-r-pill);
    transition: var(--pk-ease);
    background: var(--pk-peach2);
    border: 1px solid var(--pk-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.pk-nav-items a:hover,
.pk-nav-items a.active {
    background: var(--pk-grad);
    color: #fff;
    border-color: var(--pk-rose);
    box-shadow: 0 3px 10px var(--pk-shadow-lg);
}

.pk-nav-items a.active { font-weight: 700; }

/* ── 搜索框 ── */
.pk-search-bar {
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 8px var(--pk-shadow);
}

.pk-search-bar form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.pk-search-bar input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 10px 16px;
    border: 2px solid var(--pk-border);
    border-radius: var(--pk-r-pill);
    background: var(--pk-peach);
    color: var(--pk-text);
    font-size: 14px;
    transition: var(--pk-ease);
    outline: none;
    font-family: inherit;
}

.pk-search-bar input[type="text"]:focus {
    border-color: var(--pk-rose);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.15);
}

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

.pk-search-bar button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--pk-r-pill);
    background: var(--pk-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--pk-ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.pk-search-bar button:hover {
    background: var(--pk-grad2);
    box-shadow: 0 5px 14px var(--pk-shadow-lg);
}

/* ── 热搜标签云 ── */
.pk-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    margin-bottom: 14px;
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 8px var(--pk-shadow);
}

.pk-tag-item {
    padding: 5px 14px;
    background: var(--pk-peach2);
    border-radius: var(--pk-r-pill);
    color: var(--pk-text2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--pk-ease);
    border: 1px solid var(--pk-border);
    font-weight: 500;
}

.pk-tag-item:hover {
    background: var(--pk-grad);
    color: #fff;
    border-color: var(--pk-rose);
}

/* ── 内容分区块 ── */
.pk-block {
    margin-bottom: 22px;
}

.pk-block-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pk-border2);
    position: relative;
}

.pk-block-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--pk-grad);
    border-radius: 2px;
}

.pk-block-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--pk-text);
}

.pk-block-title a {
    color: var(--pk-text);
    text-decoration: none;
    transition: var(--pk-ease);
}

.pk-block-title a:hover { color: var(--pk-rose); }

/* ── 影片卡片网格 PC:4列 移动:2列 比例600:350 ── */
.pk-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.pk-card-grid li {
    animation: pkFadeUp 0.5s ease backwards;
}

.pk-card-grid li:nth-child(1) { animation-delay: 0.04s; }
.pk-card-grid li:nth-child(2) { animation-delay: 0.08s; }
.pk-card-grid li:nth-child(3) { animation-delay: 0.12s; }
.pk-card-grid li:nth-child(4) { animation-delay: 0.16s; }
.pk-card-grid li:nth-child(5) { animation-delay: 0.20s; }
.pk-card-grid li:nth-child(6) { animation-delay: 0.24s; }
.pk-card-grid li:nth-child(7) { animation-delay: 0.28s; }
.pk-card-grid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes pkFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 封面比例 600:350 */
.pk-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--pk-r);
    aspect-ratio: 600 / 350;
    background: var(--pk-peach2);
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 8px var(--pk-shadow);
    transition: var(--pk-ease);
}

.pk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
    display: block;
}

.pk-thumb:hover { box-shadow: 0 6px 20px var(--pk-shadow-lg); }

.pk-thumb:hover img { transform: scale(1.07); }

.pk-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(100, 10, 30, 0.60) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--pk-r);
}

.pk-thumb:hover::after { opacity: 1; }

.pk-card-info { padding: 8px 0 4px; }

.pk-card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.pk-card-info h5 a {
    color: var(--pk-text);
    text-decoration: none;
    transition: var(--pk-ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pk-card-info h5 a:hover { color: var(--pk-rose); }

/* ── 视频播放器 ── */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 18px;
    background: #1a0010;
    border-radius: var(--pk-r);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--pk-shadow-lg);
    position: relative;
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #1a0010;
    border-radius: var(--pk-r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 22px var(--pk-shadow-lg);
}

/* ── 种子预览图（占100%宽）── */
.pk-preview-wrap { width: 100%; }

.pk-preview-wrap picture { display: block; width: 100%; }

.pk-preview-wrap img,
.pk-preview-wrap picture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--pk-r-sm);
    border: 1px solid var(--pk-border);
}

/* ── 下载操作按钮（居中）── */
.pk-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    margin: 14px 0;
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 8px var(--pk-shadow);
}

.pk-act-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--pk-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--pk-r-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--pk-ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.pk-act-btn:hover {
    background: var(--pk-grad2);
    box-shadow: 0 6px 18px var(--pk-shadow-lg);
}

/* ── 分享栏 ── */
.share-section {
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    padding: 16px 18px;
    margin: 18px 0;
    border: 1px solid var(--pk-border);
    box-shadow: 0 2px 8px var(--pk-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: var(--pk-peach);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-r-pill);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--pk-rose);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 13px;
    color: var(--pk-text2);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--pk-grad);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--pk-r-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--pk-ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--pk-grad2);
    box-shadow: 0 5px 14px var(--pk-shadow-lg);
}

.share-copy-btn:active { transform: scale(0.97); }

.share-icon { font-size: 16px; }

/* ── 分页 ── */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--pk-r-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--pk-ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--pk-bg2);
    color: var(--pk-text);
    border: 1px solid var(--pk-border);
}

.a_page_info:hover {
    background: var(--pk-grad);
    border-color: var(--pk-rose);
    color: #fff;
}

.page_info_focus {
    background: var(--pk-grad);
    color: #fff;
    border: 1px solid var(--pk-rose);
    cursor: default;
}

/* ── 友情链接 ── */
.pk-flinks {
    padding: 12px;
    background: var(--pk-bg2);
    border-radius: var(--pk-r);
    border: 1px solid var(--pk-border);
}

.pk-flinks dl { margin: 0; }

.pk-flinks dd { display: inline-block; margin: 3px 4px; }

.pk-flinks a { color: var(--pk-muted); font-size: 13px; transition: var(--pk-ease); }

.pk-flinks a:hover { color: var(--pk-rose); }

/* ── 页脚 ── */
.pk-footer {
    padding: 26px 0;
    text-align: center;
    border-top: 2px solid var(--pk-border2);
    margin-top: 28px;
    background: var(--pk-bg2);
}

.pk-copyright p { margin: 6px 0; color: var(--pk-muted); font-size: 13px; line-height: 1.8; }

.pk-copyright a { color: var(--pk-muted); transition: var(--pk-ease); }

.pk-copyright a:hover { color: var(--pk-rose); }

/* ── 辅助 ── */
.clearfix::after { content: ""; display: table; clear: both; }

.hide_mobile { display: block; }
.hide_pc     { display: block; }

@media (max-width: 768px)  { .hide_mobile { display: none !important; } }
@media (min-width: 769px)  { .hide_pc     { display: none !important; } }

img[data-original] { background: var(--pk-peach2); }

/* ══════════════════════════════════════════
   响应式 - 移动端 ≤768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .pk-wrap { padding: 0 8px; }

    .pk-header { padding: 0.45rem 0; }

    .pk-brand { gap: 10px; }

    .pk-site-title { font-size: 22px; }

    .pk-domain-tag { padding: 4px 12px; gap: 5px; }

    .pk-domain-hint { font-size: 10px; }
    .pk-domain-text { font-size: 13px; }

    .pk-section { padding: 9px 0; }

    /* 移动端导航：区域标签缩小，链接区字号放大，2行×4个 */
    .pk-nav-line { display: flex; align-items: stretch; }

    .pk-nav-zone {
        width: 13%;
        font-size: 11px;
        padding: 4px 2px;
        letter-spacing: 0;
    }

    .pk-nav-items {
        width: 87%;
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 5px 5px;
    }

    .pk-nav-items a {
        padding: 6px 2px;
        font-size: 14px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* 影片网格：2列 */
    .pk-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pk-card-info h5 { font-size: 12px; }

    .pk-search-bar { padding: 9px; }
    .pk-search-bar form { gap: 6px; }

    .pk-search-bar input[type="text"] {
        min-width: 90px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .pk-search-bar button { padding: 9px 12px; font-size: 12px; }

    .pk-block-title { font-size: 17px; }

    .pk-tag-cloud { padding: 9px 10px; gap: 6px; }
    .pk-tag-item  { padding: 5px 12px; font-size: 12px; }

    .video-container { height: 56.25vw; max-height: 380px; margin-bottom: 14px; }

    .pk-actions { padding: 11px 8px; gap: 8px; }
    .pk-act-btn { padding: 10px 18px; font-size: 13px; }

    .share-section     { padding: 11px; gap: 8px; }
    .share-url-display { padding: 9px 12px; }
    .share-label       { font-size: 12px; }
    .share-url         { font-size: 11px; }
    .share-copy-btn    { padding: 9px 14px; font-size: 12px; }
    .share-icon        { font-size: 15px; }

    .page_info_div { gap: 5px; padding: 14px 0; }
    .a_page_info,
    .page_info_focus { padding: 7px 12px; font-size: 12px; min-width: 32px; }

    .pk-footer { padding: 18px 0; margin-top: 18px; }
}

/* ══════════════════════════════════════════
   响应式 - 超小屏 ≤480px
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
    .pk-site-title { font-size: 19px; }

    .pk-domain-tag  { padding: 3px 10px; }
    .pk-domain-hint { font-size: 9px; }
    .pk-domain-text { font-size: 12px; }

    .pk-nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
    }

    .pk-nav-items {
        width: 85%;
        gap: 3px;
        padding: 4px 3px;
    }

    .pk-nav-items a {
        padding: 5px 1px;
        font-size: 13px;
        width: calc((100% - 9px) / 4);
    }

    .pk-card-grid { gap: 8px; }

    .pk-card-info h5 { font-size: 11px; }

    .pk-block-title { font-size: 15px; }

    .pk-actions { gap: 6px; }
    .pk-act-btn { padding: 9px 14px; font-size: 12px; }

    .share-section { padding: 8px; gap: 6px; }

    .video-container { height: 56.25vw; max-height: 280px; }
}
