/* =============================================
   影视站模板 — 橙蓝商务清新风格
   参照: 华风爱科 配色方案
   ============================================= */

:root {
    --hf-orange:       #e87722;
    --hf-orange-dark:  #c96010;
    --hf-orange-light: #f59140;
    --hf-blue:         #3a5ea8;
    --hf-blue-dark:    #2b4888;
    --hf-blue-deep:    #1e3260;
    --hf-blue-light:   #5b80cc;
    --hf-sky:          #5b8cd8;
    --hf-black:        #222222;
    --hf-gray-dark:    #444444;
    --hf-gray:         #707070;
    --hf-gray-light:   #aaaaaa;
    --hf-border:       #e4e8f0;
    --hf-bg:           #f2f4f8;
    --hf-bg-light:     #f8f9fc;
    --hf-white:        #ffffff;
    --hf-nav-bg:       #ffffff;
    --hf-nav-text:     #333333;
    --hf-tag-bg:       #eaf0fb;
    --hf-tag-text:     #3a5ea8;
    --hf-footer-bg:    #1e3260;
    --hf-footer-text:  #8fa8cc;
    --rd-sm: 4px;
    --rd-md: 6px;
    --rd-lg: 10px;
    --sh-sm: 0 1px 4px rgba(58,94,168,0.08);
    --sh-md: 0 2px 10px rgba(58,94,168,0.12);
    --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(--hf-bg);
    color: var(--hf-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hf-orange); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

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

/* =============================================
   顶部Header — 白底，橙色品牌
   ============================================= */

.hf-header {
    background: var(--hf-white);
    border-bottom: 1px solid var(--hf-border);
    padding: 9px 0;
    box-shadow: var(--sh-sm);
}

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

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

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

.hf-domain-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--hf-tag-bg);
    border: 1px solid #c5d4f0;
    border-radius: 20px;
    padding: 3px 14px;
    white-space: nowrap;
}
.hf-domain-tag .dt-lbl {
    font-size: 11px;
    color: var(--hf-gray-light);
}
.hf-domain-tag .dt-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--hf-blue);
    letter-spacing: 0.2px;
}

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

.hf-banner-area {
    background: var(--hf-white);
    margin-bottom: 4px;
}

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

.hf-nav-panel {
    background: var(--hf-blue-deep);
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.cat-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    min-height: 38px;
}
.cat-nav-row:last-child { border-bottom: none; }

.cat-zone-flag {
    background: var(--hf-orange);
    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;
}

.cat-link-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.cat-link-strip a {
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    padding: 7px 11px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.cat-link-strip a:hover,
.cat-link-strip a.active {
    background: var(--hf-orange);
    color: #fff;
}

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

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

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

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

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

.qry-bar button {
    height: 37px;
    padding: 0 12px;
    background: var(--hf-orange);
    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;
}
.qry-bar button:hover { background: var(--hf-orange-dark); }

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

.hf-hotkey-row {
    background: var(--hf-white);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

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

.hotkey-inner strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--hf-orange);
    white-space: nowrap;
    flex-shrink: 0;
}

.hotkey-set {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hotkey-set a {
    font-size: 12px;
    color: var(--hf-tag-text);
    background: var(--hf-tag-bg);
    border: 1px solid #c5d4f0;
    border-radius: var(--rd-sm);
    padding: 2px 9px;
    transition: all 0.15s;
}
.hotkey-set a:hover {
    background: var(--hf-orange);
    color: #fff;
    border-color: var(--hf-orange);
}

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

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

.media-section {
    background: var(--hf-white);
    margin-bottom: 6px;
    border-radius: var(--rd-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border-top: 3px solid var(--hf-orange);
}

.media-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: var(--hf-bg-light);
    border-bottom: 1px solid var(--hf-border);
}

.media-section-hd h3.sec-ttl,
.media-section-hd h4.sec-ttl {
    font-size: 15px;
    font-weight: 800;
    color: var(--hf-black);
    padding-left: 11px;
    position: relative;
}

.media-section-hd h3.sec-ttl::before,
.media-section-hd h4.sec-ttl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(to bottom, var(--hf-orange), var(--hf-orange-dark));
    border-radius: 2px;
}

.media-section-hd h3.sec-ttl a,
.media-section-hd h4.sec-ttl a { color: var(--hf-black); }
.media-section-hd h3.sec-ttl a:hover,
.media-section-hd h4.sec-ttl a:hover { color: var(--hf-orange); }

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

.media-card {
    position: relative;
    min-width: 0; /* 防止 grid 子项撑破布局 */
    overflow: hidden;
}

.media-cover {
    display: block;
    width: 100%; /* 确保不超出父格子 */
    overflow: hidden;
    border-radius: var(--rd-sm);
    background: var(--hf-tag-bg);
    aspect-ratio: 600 / 350;
    border: 1px solid var(--hf-border);
    transition: border-color 0.2s;
}
.media-cover img {
    width: 100%;
    height: 100%;
    max-width: 100%; /* 兜底：图片不超出容器 */
    object-fit: cover;
    transition: transform 0.3s;
}
.media-cover:hover img { transform: scale(1.04); }
.media-cover:hover { border-color: var(--hf-orange-light); }

.media-desc { padding: 5px 2px 2px; }
.media-desc h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--hf-black);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-desc h5 a:hover { color: var(--hf-orange); }

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

.view-hd-bar {
    background: var(--hf-white);
    border-left: 4px solid var(--hf-orange);
    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(--hf-border);
    border-bottom: 1px solid var(--hf-border);
    border-right: 1px solid var(--hf-border);
}
.view-hd-bar .cat-ref {
    color: var(--hf-orange);
    font-weight: 700;
    margin-right: 8px;
}

.view-spec-box {
    background: var(--hf-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(--hf-border);
    border-top: 3px solid var(--hf-blue);
    color: var(--hf-gray-dark);
}

/* 截图 */
.preview-imgs { margin-top: 12px; }
.preview-imgs picture { display: block; width: 100%; }
.preview-imgs picture img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
}

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

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

.action-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--hf-orange);
    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;
}
.action-btn:hover {
    background: var(--hf-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.app-dl-pc, .app-dl-mb {
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
}
.app-dl-pc a, .app-dl-mb a {
    color: var(--hf-blue);
    font-weight: 600;
}
.app-dl-pc a:hover, .app-dl-mb a:hover { color: var(--hf-orange); }

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

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

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

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--hf-orange);
    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-share:hover { background: var(--hf-orange-dark); }

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

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

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

.pg-links a, .pg-links .pg-now {
    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;
}
.pg-links a {
    background: var(--hf-white);
    color: var(--hf-black);
    border: 1px solid var(--hf-border);
    transition: all 0.15s;
}
.pg-links a:hover {
    background: var(--hf-orange);
    color: #fff;
    border-color: var(--hf-orange);
}
.pg-links .pg-now {
    background: var(--hf-orange);
    color: #fff;
    border: 1px solid var(--hf-orange);
    font-weight: 700;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* 品牌 */
    .hf-site-name { font-size: 17px; }
    .hf-domain-tag .dt-val { font-size: 13px; }

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

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

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

    .view-hd-bar { font-size: 13px; padding: 9px 11px; }
    .view-spec-box { font-size: 13px; padding: 11px; }

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

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

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

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

    .cat-zone-flag { font-size: 10px; width: 15%; min-width: 32px; }
    .cat-link-strip a { font-size: 12px; padding: 5px 2px; }

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

    .media-desc h5 { font-size: 11px; }
    .action-btn { padding: 7px 12px; font-size: 12px; }
    .action-btns { gap: 7px; }
}

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

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

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

    .cat-link-strip {
        display: flex;
        flex-wrap: nowrap;
    }

    .cat-link-strip a {
        flex: 1;
        font-size: 14px;
        padding: 8px 6px;
        text-align: center;
    }
}
