/* ===================================================
   影视站模板 · 红色官媒风格 (xh 前缀)
   参照：新华网风格 - 中国红 + 白底 + 深蓝辅助
   =================================================== */

:root {
    --xh-red:       #cc0000;
    --xh-red-dk:    #a80000;
    --xh-red-lt:    #e63333;
    --xh-red-bg:    #fff5f5;
    --xh-navy:      #1a2e5a;
    --xh-navy-lt:   #2a4580;
    --xh-gold:      #c8960c;
    --xh-gold-lt:   #f0b429;
    --xh-bg:        #f4f4f4;
    --xh-bg2:       #ffffff;
    --xh-bg3:       #f9f9f9;
    --xh-bg4:       #eeeeee;
    --xh-text:      #1a1a1a;
    --xh-text2:     #444444;
    --xh-muted:     #888888;
    --xh-border:    #dddddd;
    --xh-border2:   #e8e8e8;
    --xh-shadow:    rgba(0, 0, 0, 0.08);
    --xh-shadow-lg: rgba(0, 0, 0, 0.18);
    --xh-red-glow:  rgba(204, 0, 0, 0.12);
    --xh-grad:      linear-gradient(135deg, #cc0000 0%, #a80000 100%);
    --xh-grad2:     linear-gradient(135deg, #e63333 0%, #cc0000 100%);
    --xh-grad-nav:  linear-gradient(180deg, #cc0000 0%, #a80000 100%);
    --xh-grad-gold: linear-gradient(135deg, #f0b429 0%, #c8960c 100%);
    --xh-r:         4px;
    --xh-r-sm:      3px;
    --xh-r-lg:      6px;
    --xh-ease:      all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ══════════════════════════════════════
   顶部 Header（不吸顶）
   ══════════════════════════════════════ */
.xh-header {
    background: var(--xh-bg2);
    border-bottom: 3px solid var(--xh-red);
    padding: 0.6rem 0;
    box-shadow: 0 2px 10px var(--xh-shadow);
}

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

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

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

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

.xh-site-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--xh-red);
    letter-spacing: 2px;
    display: inline-block;
    font-family: 'STZhongsong', 'SimHei', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    border-left: 5px solid var(--xh-red);
    padding-left: 12px;
}

.xh-domain-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: var(--xh-red-bg);
    border: 1px solid var(--xh-red);
    border-radius: var(--xh-r);
}

.xh-domain-tip {
    font-size: 12px;
    font-weight: 700;
    color: var(--xh-red);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.xh-domain-url {
    font-size: 15px;
    font-weight: 800;
    color: var(--xh-navy);
    font-family: 'Courier New', monospace;
}

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

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

/* ══════════════════════════════════════
   分类导航（红色官媒风）
   ══════════════════════════════════════ */
.xh-nav-panel {
    background: var(--xh-bg2);
    border-radius: var(--xh-r);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--xh-border);
    box-shadow: 0 2px 8px var(--xh-shadow);
}

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

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

/* PC端：标签列10%，链接列90%，8个占满 */
.xh-nav-label {
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    background: var(--xh-grad-nav);
    border-right: 1px solid var(--xh-red-dk);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.xh-nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
    background: var(--xh-bg3);
}

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

.xh-nav-items a:hover,
.xh-nav-items a.active {
    background: var(--xh-grad);
    color: #ffffff;
    border-color: var(--xh-red-dk);
    box-shadow: 0 2px 8px var(--xh-red-glow);
}

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

/* ══════════════════════════════════════
   搜索框
   ══════════════════════════════════════ */
.xh-search-zone {
    background: var(--xh-bg2);
    border-radius: var(--xh-r);
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--xh-border);
    box-shadow: 0 2px 6px var(--xh-shadow);
    border-top: 2px solid var(--xh-red);
}

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

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

.xh-search-zone input[type="text"]:focus {
    border-color: var(--xh-red);
    background: #fff;
    box-shadow: 0 0 0 3px var(--xh-red-glow);
}

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

.xh-search-zone button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--xh-r-sm);
    background: var(--xh-grad);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--xh-ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.xh-search-zone button:hover {
    background: var(--xh-grad2);
    box-shadow: 0 4px 12px var(--xh-red-glow);
}

/* ══════════════════════════════════════
   热搜标签云
   ══════════════════════════════════════ */
.xh-hotword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--xh-bg2);
    border-radius: var(--xh-r);
    margin-bottom: 14px;
    border: 1px solid var(--xh-border);
    border-left: 3px solid var(--xh-red);
    box-shadow: 0 2px 6px var(--xh-shadow);
}

.xh-hotword-item {
    padding: 5px 13px;
    background: var(--xh-bg4);
    border-radius: var(--xh-r-sm);
    color: var(--xh-text2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--xh-ease);
    border: 1px solid var(--xh-border);
    font-weight: 500;
}

.xh-hotword-item:hover {
    background: var(--xh-grad);
    color: #fff;
    border-color: var(--xh-red-dk);
}

/* ══════════════════════════════════════
   内容区块
   ══════════════════════════════════════ */
.xh-content-unit {
    margin-bottom: 24px;
}

.xh-unit-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--xh-border2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.xh-unit-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--xh-grad);
}

.xh-unit-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--xh-navy);
    letter-spacing: 0.2px;
    padding-left: 10px;
    border-left: 4px solid var(--xh-red);
}

.xh-unit-title a {
    color: var(--xh-navy);
    text-decoration: none;
    transition: var(--xh-ease);
}

.xh-unit-title a:hover { color: var(--xh-red); }

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

.xh-grid li {
    animation: xhSlideUp 0.45s ease backwards;
}

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

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

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

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

.xh-thumb:hover {
    border-color: var(--xh-red);
    box-shadow: 0 5px 18px var(--xh-shadow-lg);
}

.xh-thumb:hover img { transform: scale(1.06); }

.xh-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 0, 0, 0.68) 0%, transparent 52%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.xh-film-meta { padding: 8px 0 4px; }

.xh-film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.xh-film-meta h5 a {
    color: var(--xh-text2);
    text-decoration: none;
    transition: var(--xh-ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xh-film-meta h5 a:hover { color: var(--xh-red); }

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

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

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

/* ══════════════════════════════════════
   种子预览图（100%宽）
   ══════════════════════════════════════ */
.xh-preview { width: 100%; }

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

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

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

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

.xh-action-btn:hover {
    background: var(--xh-grad2);
    box-shadow: 0 5px 16px var(--xh-red-glow);
}

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

.share-url-display {
    background: var(--xh-bg3);
    border: 1px solid var(--xh-border);
    border-radius: var(--xh-r-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 13px;
    color: var(--xh-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(--xh-grad);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: var(--xh-r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--xh-ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--xh-grad2);
    box-shadow: 0 4px 12px var(--xh-red-glow);
}

.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(--xh-r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--xh-ease);
    min-width: 36px;
    text-align: center;
}

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

.a_page_info:hover {
    background: var(--xh-grad);
    border-color: var(--xh-red-dk);
    color: #ffffff;
}

.page_info_focus {
    background: var(--xh-grad);
    color: #ffffff;
    border: 1px solid var(--xh-red-dk);
    cursor: default;
    font-weight: 800;
}

/* ══════════════════════════════════════
   友情链接
   ══════════════════════════════════════ */
.xh-flink-panel {
    padding: 12px;
    background: var(--xh-bg2);
    border-radius: var(--xh-r);
    border: 1px solid var(--xh-border);
}

.xh-flink-panel dl { margin: 0; }

.xh-flink-panel dd { display: inline-block; margin: 3px 4px; }

.xh-flink-panel a {
    color: var(--xh-muted);
    font-size: 13px;
    transition: var(--xh-ease);
}

.xh-flink-panel a:hover { color: var(--xh-red); }

/* ══════════════════════════════════════
   页脚
   ══════════════════════════════════════ */
.xh-footer {
    padding: 26px 0;
    text-align: center;
    border-top: 3px solid var(--xh-red);
    margin-top: 28px;
    background: var(--xh-navy);
}

.xh-copy p {
    margin: 6px 0;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.8;
}

.xh-copy a {
    color: rgba(255,255,255,0.55);
    transition: var(--xh-ease);
}

.xh-copy a:hover { color: var(--xh-gold-lt); }

/* ══════════════════════════════════════
   辅助
   ══════════════════════════════════════ */
.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(--xh-bg4); }

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

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

    .xh-brand { gap: 10px; }

    .xh-site-title { font-size: 21px; letter-spacing: 1px; }

    .xh-domain-strip { padding: 4px 12px; gap: 6px; }

    .xh-domain-tip { font-size: 10px; }
    .xh-domain-url { font-size: 13px; }

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

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

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

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

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

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

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

    .xh-search-zone { padding: 9px; }
    .xh-search-zone form { gap: 6px; }

    .xh-search-zone input[type="text"] {
        min-width: 90px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .xh-search-zone button { padding: 9px 12px; font-size: 12px; }

    .xh-unit-title { font-size: 16px; }

    .xh-hotword-list { padding: 9px 10px; gap: 6px; }
    .xh-hotword-item { padding: 5px 11px; font-size: 12px; }

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

    .xh-action-bar { padding: 11px 8px; gap: 8px; }
    .xh-action-btn { padding: 10px 18px; font-size: 13px; }

    .share-section     { padding: 11px; gap: 8px; }
    .share-url-display { padding: 9px 11px; }
    .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; }

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

/* ══════════════════════════════════════
   响应式 ≤480px
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .xh-site-title { font-size: 18px; letter-spacing: 0.5px; }

    .xh-domain-strip { padding: 3px 10px; }
    .xh-domain-tip   { font-size: 9px; }
    .xh-domain-url   { font-size: 12px; }

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

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

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

    .xh-grid { gap: 8px; }

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

    .xh-unit-title { font-size: 14px; }

    .xh-action-bar { gap: 6px; }
    .xh-action-btn { padding: 9px 14px; font-size: 12px; }

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

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