/* ===== VARIABLES ===== */
:root {
    --red: #e2001a;
    --red-dark: #bb0014;
    --red-light: #fff0f1;
    --orange: #f60;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --border-light: #ebebeb;
    --text: #333333;
    --text-sub: #666666;
    --text-muted: #999999;
    --link-hover: #e2001a;
    --nav-sep: #cccccc;
    --r4: 4px;
    --r6: 6px;
    --r8: 8px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.10);
    --trans: 0.18s ease;
    --font: 'SimSun', 'STSong', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    --font-hei: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-hei);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-hei); }

/* ===== LAYOUT ===== */
.pg-wrap {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ===== TOP HEADER ===== */
.topbar-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.topbar-header .pg-wrap {
    display: flex;
    align-items: center;
    height: 58px;
    gap: 18px;
}
.site-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.site-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon-box {
    width: 38px;
    height: 38px;
    background: var(--red);
    border-radius: var(--r4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -2px;
}
.brand-name-str {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    font-family: var(--font-hei);
}
.site-domain-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    padding-left: 12px;
    margin-left: 4px;
}
.site-domain-strip .strip-tag {
    color: var(--red);
    font-weight: 700;
    flex-shrink: 0;
}
.site-domain-strip .strip-url {
    color: var(--text-sub);
}

/* ===== PROMO BANNER ===== */
.banner-zone {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}
.banner-zone .pg-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* ===== NAV SECTION ===== */
.main-nav-section {
    background: var(--white);
    border-bottom: 2px solid var(--border);
}
.main-nav-section .pg-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
}
.nav-strip-row {
    display: flex;
    align-items: center;
    min-height: 36px;
    border-bottom: 1px solid var(--border-light);
}
.nav-strip-row:last-child { border-bottom: none; }
.nav-strip-zone {
    flex-shrink: 0;
    width: 68px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--red);
    text-align: center;
    padding: 4px 3px;
    border-radius: var(--r4);
    margin: 3px 10px 3px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}
.nav-strip-links {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}
.nav-strip-links a {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 6px 4px;
    white-space: nowrap;
    border-right: 1px solid var(--nav-sep);
    transition: color var(--trans), background var(--trans);
}
.nav-strip-links a:last-child { border-right: none; }
.nav-strip-links a:hover { color: var(--red); background: var(--red-light); }
.nav-strip-links a.active {
    color: var(--red);
    font-weight: 700;
    background: var(--red-light);
}

/* ===== SEARCH BAR ===== */
.searchbar-area {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.search-input-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r4);
    overflow: hidden;
    height: 36px;
    background: var(--white);
}
.search-input-row:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(226,0,26,0.08);
}
.search-input-row input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    outline: none;
    padding: 0 12px;
    font-family: var(--font-hei);
}
.search-input-row input[type="text"]::placeholder { color: var(--text-muted); }
.search-input-row button {
    height: 36px;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    transition: background var(--trans), color var(--trans);
}
.search-input-row button[value="1"],
.search-input-row button[value="2"] {
    background: var(--red);
    color: #fff;
    border-left-color: var(--red-dark);
}
.search-input-row button[value="2"] { border-radius: 0; }
.search-input-row button:hover { filter: brightness(0.95); }

/* ===== HOT SEARCH ===== */
.hotsearch-area {
    background: var(--white);
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.hotsearch-row { margin-bottom: 6px; }
.hotsearch-row:last-child { margin-bottom: 0; }
.hotsearch-label {
    display: inline;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    margin-right: 6px;
}
.hotsearch-tagrow {
    display: inline;
}
.hotsearch-tagrow a {
    display: inline-block;
    font-size: 12px;
    color: var(--text-sub);
    margin-right: 10px;
    border-bottom: 1px solid transparent;
    transition: color var(--trans), border-color var(--trans);
}
.hotsearch-tagrow a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ===== PAGE SECTIONS ===== */
.pg-section { margin-bottom: 16px; }

.content-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 2px solid var(--red);
}
.content-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 7px;
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
}
.content-block-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-hei);
    display: flex;
    align-items: center;
    gap: 6px;
}
.content-block-title a {
    color: var(--text);
}
.content-block-title a:hover { color: var(--red); }
.content-block-body { padding: 12px 14px 16px; }

/* ===== FILM GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.media-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow var(--trans), border-color var(--trans);
}
.media-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.media-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}
.media-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.media-card:hover .media-img-wrap img { transform: scale(1.04); }
.media-caption {
    padding: 7px 8px 9px;
    border-top: 1px solid var(--border-light);
}
.media-caption h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.media-caption h5 a { color: var(--text); }
.media-caption h5 a:hover { color: var(--red); }

/* ===== DETAIL PAGE ===== */
.detail-breadcrumb {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-all;
}
.detail-breadcrumb .cat-ref {
    color: var(--red);
    font-weight: 700;
    margin-right: 8px;
}
.detail-breadcrumb b { color: var(--text); font-weight: 700; }

.detail-info-panel {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 2;
    color: var(--text);
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid {
    margin-top: 10px;
}
.torrent-capture-grid picture,
.torrent-capture-grid picture img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
}

/* ===== DOWNLOAD BUTTONS ===== */
.dl-buttons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
}
.dl-press-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: 1px solid var(--red);
    background: var(--white);
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r4);
    cursor: pointer;
    transition: background var(--trans), color var(--trans);
    font-family: var(--font-hei);
}
.dl-press-btn:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== CLIENT DOWNLOAD HINTS ===== */
.dl-hint-pc, .dl-hint-mobile {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
}
.dl-hint-pc a, .dl-hint-mobile a {
    color: var(--red);
    font-weight: 600;
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-section .share-label {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 600;
}
.share-section .share-url {
    flex: 1;
    font-size: 12px;
    color: var(--text-sub);
    word-break: break-all;
    min-width: 0;
}
.share-copy-btn {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r4);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: filter var(--trans);
    font-family: var(--font-hei);
}
.share-copy-btn:hover { filter: brightness(1.1); }
.share-icon { font-size: 13px; }

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px 0 10px;
    flex-wrap: wrap;
}
.a_page_info {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r4);
    transition: border-color var(--trans), color var(--trans);
}
.a_page_info:hover {
    border-color: var(--red);
    color: var(--red);
}
.page_info_focus {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--r4);
    cursor: default;
}

/* ===== FRIENDLY LINKS ===== */
.flink-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 2px solid var(--red);
    padding: 12px 16px 14px;
    margin: 14px 0 8px;
}
.flink-panel-head {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border-light);
}
.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.flink-list dd { margin: 0; }
.flink-list dd a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r4);
    font-size: 12px;
    color: var(--text-sub);
    transition: color var(--trans), border-color var(--trans);
}
.flink-list dd a:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 18px 0 20px;
    margin-top: 20px;
    text-align: center;
}
.copyright p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 2;
}

/* ===== UTILITIES ===== */
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== HIDE PC / MOBILE ===== */
@media (min-width: 769px) {
    .hide-pc { display: none !important; }
}
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pg-wrap { padding: 0 8px; }

    .topbar-header .pg-wrap {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .brand-name-str { font-size: 18px; }
    .site-domain-strip { font-size: 11px; padding-left: 8px; }

    .nav-strip-zone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 4px 2px;
    }
    .nav-strip-links {
        width: 85%;
        flex-wrap: wrap;
    }
    .nav-strip-links a {
        width: 25%;
        flex: 0 0 25%;
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        border-right: 1px solid var(--nav-sep);
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .content-block-body { padding: 8px 10px 12px; }
    .content-block-head { padding: 8px 10px 6px; }

    .detail-info-panel { padding: 12px 14px; font-size: 13px; }
    .detail-breadcrumb { padding: 10px 12px; font-size: 14px; }

    .dl-press-btn { padding: 9px 20px; font-size: 13px; }

    .share-section { flex-direction: column; align-items: flex-start; }

    .search-input-row { height: 34px; }
    .search-input-row button { padding: 0 10px; font-size: 11px; }
}
