/* =============================================
   影视站模板 — 电商简洁蓝白风格
   参照: eBay 配色方案
   ============================================= */

:root {
    --eb-blue:        #3665f3;
    --eb-blue-dark:   #2352d8;
    --eb-blue-light:  #5b84f5;
    --eb-navy:        #191e3a;
    --eb-accent:      #e53238;
    --eb-black:       #111111;
    --eb-gray-dark:   #333333;
    --eb-gray:        #767676;
    --eb-gray-light:  #aaaaaa;
    --eb-border:      #e5e5e5;
    --eb-bg:          #f7f7f7;
    --eb-white:       #ffffff;
    --eb-card-bg:     #f3f3f3;
    --eb-card-hover:  #eaeaea;
    --eb-nav-bg:      #ffffff;
    --eb-tag-bg:      #ebf0ff;
    --eb-tag-text:    #3665f3;
    --eb-footer-bg:   #191e3a;
    --eb-footer-text: #9aa0b8;
    --rd-sm: 4px;
    --rd-md: 8px;
    --rd-pill: 24px;
    --sh-sm: 0 1px 3px rgba(0,0,0,0.07);
    --sh-md: 0 2px 8px rgba(0,0,0,0.10);
    --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(--eb-bg);
    color: var(--eb-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--eb-blue); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

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

/* =============================================
   顶部品牌栏 — 白底
   ============================================= */

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

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

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

.eb-site-name {
    font-size: 23px;
    font-weight: 900;
    color: var(--eb-black);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}
.eb-site-name:hover { color: var(--eb-blue); }

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

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

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

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

.eb-nav-panel {
    background: var(--eb-navy);
    margin-bottom: 5px;
}

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

.nav-section-tag {
    background: var(--eb-blue);
    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;
}

.nav-link-set {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.nav-link-set 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;
}
.nav-link-set a:hover,
.nav-link-set a.active {
    background: var(--eb-blue);
    color: #fff;
}

/* =============================================
   搜索栏 — eBay风格大搜索框
   ============================================= */

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

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

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

.srch-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 2px solid var(--eb-border);
    border-radius: var(--rd-pill);
    padding: 0 18px;
    font-size: 13px;
    font-family: var(--fn);
    color: var(--eb-black);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.srch-bar input[type="text"]:focus { border-color: var(--eb-blue); }

.srch-bar button {
    height: 38px;
    padding: 0 14px;
    background: var(--eb-blue);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: 12px;
    font-family: var(--fn);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.srch-bar button:hover { background: var(--eb-blue-dark); }

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

.eb-kw-zone {
    background: var(--eb-white);
    padding: 7px 0;
    margin-bottom: 5px;
    box-shadow: var(--sh-sm);
}

.kw-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.kw-row strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--eb-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.kw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kw-chips a {
    font-size: 12px;
    color: var(--eb-tag-text);
    background: var(--eb-tag-bg);
    border: 1px solid #c5d4fd;
    border-radius: var(--rd-pill);
    padding: 2px 10px;
    transition: all 0.15s;
}
.kw-chips a:hover {
    background: var(--eb-blue);
    color: #fff;
    border-color: var(--eb-blue);
}

/* =============================================
   内容区块 — 白色卡片
   ============================================= */

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

.media-block {
    background: var(--eb-white);
    margin-bottom: 6px;
    border-radius: var(--rd-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--eb-border);
}

.media-block-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: var(--eb-white);
    border-bottom: 2px solid var(--eb-blue);
}

.media-block-hd h3.blk-hd,
.media-block-hd h4.blk-hd {
    font-size: 15px;
    font-weight: 800;
    color: var(--eb-black);
    padding-left: 10px;
    position: relative;
}

.media-block-hd h3.blk-hd::before,
.media-block-hd h4.blk-hd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--eb-blue);
    border-radius: 2px;
}

.media-block-hd h3.blk-hd a,
.media-block-hd h4.blk-hd a { color: var(--eb-black); }
.media-block-hd h3.blk-hd a:hover,
.media-block-hd h4.blk-hd a:hover { color: var(--eb-blue); }

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

/* min-width:0 是关键：grid 子项默认 min-width:auto，图片会撑破列宽 */
.media-item {
    min-width: 0;
    overflow: hidden;
}

.media-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--rd-md);
    background: var(--eb-card-bg);
    border: 1px solid var(--eb-border);
    width: 100%;
    /* padding-top 百分比撑高，兼容所有移动端浏览器 */
    padding-top: 58.33%;
    position: relative;
    height: 0;
}

.media-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 覆盖全局 max-width:100%，避免与绝对定位宽度计算冲突 */
    max-width: none;
    transition: transform 0.3s;
}
.media-thumb:hover img { transform: scale(1.04); }
.media-thumb:hover { border-color: var(--eb-blue-light); }

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

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

.detail-title-strip {
    background: var(--eb-white);
    border-left: 4px solid var(--eb-blue);
    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: 1px solid var(--eb-border);
    border-left: 4px solid var(--eb-blue);
}
.detail-title-strip .cat-anchor {
    color: var(--eb-blue);
    font-weight: 700;
    margin-right: 8px;
}

.detail-info-panel {
    background: var(--eb-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(--eb-border);
}

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

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

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

.dl-btn-item {
    display: inline-block;
    padding: 9px 22px;
    background: var(--eb-blue);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fn);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
}
.dl-btn-item:hover {
    background: var(--eb-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.bt-pc-link, .bt-mb-link {
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
}
.bt-pc-link a, .bt-mb-link a {
    color: var(--eb-blue);
    font-weight: 600;
}

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

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

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

.btn-copy-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--eb-blue);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: 12px;
    font-family: var(--fn);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.btn-copy-url:hover { background: var(--eb-blue-dark); }

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

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

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

.pager-nav a, .pager-nav .pager-here {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: var(--rd-pill);
    font-size: 13px;
    padding: 0 8px;
}
.pager-nav a {
    background: var(--eb-white);
    color: var(--eb-black);
    border: 1px solid var(--eb-border);
    transition: all 0.15s;
}
.pager-nav a:hover {
    background: var(--eb-blue);
    color: #fff;
    border-color: var(--eb-blue);
}
.pager-nav .pager-here {
    background: var(--eb-blue);
    color: #fff;
    border: 1px solid var(--eb-blue);
    font-weight: 700;
}

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

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

.eb-links-zone .links-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-gray);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--eb-border);
}

.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.links-row dd { margin: 0; }
.links-row a.lnk-entry {
    display: inline-block;
    font-size: 12px;
    color: var(--eb-gray);
    background: var(--eb-card-bg);
    border: 1px solid var(--eb-border);
    padding: 2px 10px;
    border-radius: var(--rd-pill);
    transition: all 0.15s;
}
.links-row a.lnk-entry:hover {
    background: var(--eb-blue);
    color: #fff;
    border-color: var(--eb-blue);
}

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

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

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

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

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

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

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

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

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

    /* 品牌 */
    .eb-site-name { font-size: 17px; }
    .eb-domain-pill .dp-val { font-size: 13px; }

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

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

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

    .detail-title-strip { font-size: 13px; padding: 9px 11px; }
    .detail-info-panel { font-size: 13px; padding: 11px; }

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

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

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

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

    .nav-section-tag { font-size: 10px; width: 15%; min-width: 32px; }
    .nav-link-set a { font-size: 12px; padding: 5px 2px; }

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

    .media-caption h5 { font-size: 11px; }
    .dl-btn-item { padding: 7px 12px; font-size: 12px; }
    .download-btns { gap: 7px; }
}

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

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

    .nav-section-tag {
        font-size: 13px;
        min-width: 72px;
        padding: 0 10px;
    }

    .nav-link-set {
        display: flex;
        flex-wrap: nowrap;
    }

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