/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --white: #ffffff;
    --surface: #f5f6f8;
    --surface2: #eceef2;
    --primary: #1c3461;
    --primary-deep: #142649;
    --primary-mid: #254a8a;
    --accent: #e84c0e;
    --accent-hover: #c93d09;
    --accent-light: #fdf0eb;
    --amber: #d99a18;
    --text: #181830;
    --text-sec: #4a4a62;
    --text-mute: #9898b2;
    --border: #e4e5ee;
    --border2: #d2d3e0;
    --shadow-xs: 0 1px 3px rgba(28,52,97,.06);
    --shadow-sm: 0 2px 10px rgba(28,52,97,.10);
    --shadow-md: 0 5px 20px rgba(28,52,97,.13);
    --radius: 7px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}

html { font-size: 15px; }

body {
    background: var(--surface);
    color: var(--text);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Helvetica,Arial,sans-serif;
    line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; transition: color .16s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== LAYOUT WRAPPER ===== */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.top-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow-xs);
}

.top-header .site-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

.brand-anchor {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-title {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    border-radius: 20px;
    padding: 5px 16px;
}

.domain-badge .badge-label {
    font-size: 0.67rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

.domain-badge .badge-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* ===== BANNER AREA ===== */
.banner-area {
    margin: 6px 0 4px;
}
.banner-area img { border-radius: var(--radius); width: 100%; }

/* ===== NAVIGATION PANEL ===== */
.nav-module {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

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

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

.zone-tag {
    background: var(--primary);
    color: rgba(255,255,255,.78);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 3px;
    width: 64px;
    min-width: 64px;
    border-right: 1px solid rgba(255,255,255,.08);
    text-align: center;
    line-height: 1.35;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.link-cluster {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.link-cluster a {
    font-size: .81rem;
    color: var(--text-sec);
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.link-cluster a:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: #f5b8a0;
}

.link-cluster a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.search-module {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

.search-module form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.search-module input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 37px;
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .87rem;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color .2s;
}

.search-module input[type="text"]:focus {
    border-color: var(--accent);
    background: var(--white);
}

.search-module button {
    height: 37px;
    padding: 0 13px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s;
    flex-shrink: 0;
}

.search-module button:hover { background: var(--primary-mid); }
.search-module button[value="1"] { background: var(--accent); }
.search-module button[value="1"]:hover { background: var(--accent-hover); }
.search-module button[value="2"] { background: var(--amber); }
.search-module button[value="2"]:hover { background: #a87614; }

/* ===== HOT TAGS ===== */
.hotword-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

.hotword-block h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-row .kw {
    display: inline-block;
    background: var(--surface);
    color: var(--text-sec);
    border: 1px solid var(--border2);
    border-radius: 18px;
    padding: 2px 11px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .16s;
}

.tag-row .kw:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: #f5b8a0;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 14px 11px;
    margin: 5px 0;
    box-shadow: var(--shadow-xs);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--surface);
    position: relative;
}

.block-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.block-header h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--primary);
}

.block-header h3 a { color: var(--primary); }
.block-header h3 a:hover { color: var(--accent); }

.block-header h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--primary);
}

/* ===== FILM GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.media-grid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow .2s, transform .2s;
}

.media-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.media-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--surface2);
}

.media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.media-cover:hover img { transform: scale(1.05); }

.media-info {
    padding: 5px 7px 7px;
}

.media-info h5 {
    font-size: .77rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.media-info h5 a { color: var(--text); }
.media-info h5 a:hover { color: var(--accent); }

/* ===== PAGINATION ===== */
.pager-wrap {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

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

.pager-inner a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--white);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    font-size: .83rem;
    color: var(--text-sec);
    text-decoration: none;
    transition: all .16s;
}

.pager-inner a.pgb:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.pager-inner a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.friendlinks-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 5px 0;
    box-shadow: var(--shadow-xs);
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.flink-list dd { display: inline; }

.flink-list a {
    display: inline-block;
    font-size: .76rem;
    color: var(--text-mute);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    transition: all .16s;
}

.flink-list a:hover { color: var(--accent); border-color: var(--accent); }

.copyright-row {
    text-align: center;
    padding: 8px 0 15px;
    color: var(--text-mute);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.detail-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.detail-heading a {
    color: var(--accent);
    font-weight: 700;
    margin-right: 7px;
}

.detail-meta {
    font-size: .89rem;
    line-height: 2;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    margin: 5px 0;
}

.capture-zone {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.capture-zone picture,
.capture-zone img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.action-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.client-hint {
    text-align: center;
    padding: 7px;
    font-size: .81rem;
}

.client-hint a { color: var(--primary); font-weight: 600; }
.client-hint a:hover { color: var(--accent); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-strip .strip-lbl { font-size: .76rem; color: var(--text-mute); white-space: nowrap; }
.share-strip .strip-url { font-size: .78rem; color: var(--text-sec); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .strip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.share-strip .strip-btn:hover { background: var(--accent); }

/* ===== VISIBILITY HELPERS ===== */
.show-pc { display: block; }
.show-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .show-pc { display: none; }
    .show-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .brand-title { font-size: 1.05rem; }
    .domain-badge .badge-val { font-size: .87rem; }

    .nav-row { align-items: stretch; }

    .zone-tag {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .link-cluster {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .link-cluster a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .search-module form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .search-module input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 7px;
    }

    .search-module button {
        height: 34px;
        padding: 0 7px;
        font-size: .73rem;
    }

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

    .media-cover { aspect-ratio: 600 / 350; }
    .media-info h5 { font-size: .71rem; }
    .content-block { padding: 9px 9px 7px; }
    .action-btn { padding: 9px 15px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .zone-tag { font-size: 10px; }
    .link-cluster a { font-size: 13px; }
}

@media (max-width: 380px) {
    .zone-tag { font-size: 10px; }
    .link-cluster a { font-size: 12px; }
    .search-module button { padding: 0 5px; font-size: .67rem; }
}
