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

:root {
    --navy: #011f5b;
    --navy-mid: #1a3a7a;
    --navy-light: #e8edf7;
    --crimson: #990000;
    --crimson-dk: #7a0000;
    --crimson-bg: #fdf5f5;
    --gold: #c8932a;
    --surface: #ffffff;
    --surface-dim: #f9f8f6;
    --surface-muted: #f0ede8;
    --text-main: #1a1a2e;
    --text-sub: #3d3d55;
    --text-muted: #8888a0;
    --border: #ddd8d0;
    --border-dk: #c8c0b4;
    --shadow-sm: 0 1px 4px rgba(1,31,91,.07);
    --shadow-md: 0 3px 12px rgba(1,31,91,.10);
    --shadow-lg: 0 6px 22px rgba(1,31,91,.14);
    --radius: 2px;
    --radius-sm: 2px;
    --radius-lg: 3px;
}

html { font-size: 15px; }

body {
    background: var(--surface-dim);
    color: var(--text-main);
    font-family: 'Georgia', 'Times New Roman', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', serif;
    line-height: 1.65;
}

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

/* ===== CONTAINER ===== */
.outer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.site-masthead {
    background: var(--navy);
    border-bottom: 3px solid var(--crimson);
    padding: 10px 0;
}

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

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

.masthead-logo-lnk {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.masthead-sitename {
    font-size: 1.42rem;
    font-weight: 700;
    color: #ffffff;
    font-style: normal;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: .5px;
    text-decoration: none;
    border-bottom: none;
}

.masthead-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius);
    padding: 4px 13px;
}

.masthead-domain-pill .dp-txt {
    font-size: 0.66rem;
    color: rgba(255,255,255,.58);
    white-space: nowrap;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
}

.masthead-domain-pill .dp-url {
    font-size: 1.07rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
}

/* ===== PROMO BANNER ===== */
.promo-band {
    margin: 4px 0 3px;
}
.promo-band img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.nav-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

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

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

.nav-zone-tag {
    background: var(--navy);
    color: rgba(255,255,255,.82);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
}

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

.nav-links-grid a {
    font-size: .81rem;
    color: var(--text-sub);
    padding: 4px 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;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.nav-links-grid a:hover {
    background: var(--navy-light);
    color: var(--navy);
    border-color: #b8c8e8;
}

.nav-links-grid a.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.search-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

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

.search-form-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--border-dk);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--text-main);
    background: var(--surface-dim);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.search-form-wrap input[type="text"]:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(1,31,91,.10);
    background: var(--surface);
}

.search-form-wrap button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s;
    flex-shrink: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.search-form-wrap button:hover { background: var(--navy-mid); }

.search-form-wrap button[value="1"] { background: var(--crimson); }
.search-form-wrap button[value="1"]:hover { background: var(--crimson-dk); }

.search-form-wrap button[value="2"] { background: var(--gold); }
.search-form-wrap button[value="2"]:hover { background: #a07020; }

/* ===== HOT TAGS ===== */
.keyword-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

.keyword-block h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: .3px;
}

.kw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kw-tags .kw-item {
    display: inline-block;
    background: var(--surface-dim);
    color: var(--text-sub);
    border: 1px solid var(--border-dk);
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .16s;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.kw-tags .kw-item:hover {
    background: var(--navy-light);
    color: var(--navy);
    border-color: #b8c8e8;
}

/* ===== CONTENT SECTION ===== */
.content-sect {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

.sect-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.sect-title-row::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 2px;
    background: var(--crimson);
    border-radius: 1px;
}

.sect-title-row h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: .2px;
}

.sect-title-row h3 a { color: var(--navy); }
.sect-title-row h3 a:hover { color: var(--crimson); }

.sect-title-row h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ===== 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-dim);
    transition: box-shadow .2s, transform .2s;
    min-width: 0;
}

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

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

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

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

.media-info {
    padding: 5px 7px 7px;
    border-top: 2px solid transparent;
    transition: border-color .16s;
}

.media-grid li:hover .media-info { border-top-color: var(--crimson); }

.media-info h5 {
    font-size: .77rem;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Georgia', serif;
}

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

/* ===== PAGINATION ===== */
.pager-area {
    margin: 13px 0 5px;
    display: flex;
    justify-content: center;
}

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

.pager-items a.pager-lnk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--surface);
    border: 1.5px solid var(--border-dk);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: all .16s;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.pager-items a.pager-lnk:hover {
    background: var(--navy-light);
    border-color: var(--navy);
    color: var(--navy);
}

.pager-items a.pager-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--navy);
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== FOOTER ===== */
.foot-links-sect {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow-sm);
}

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

.foot-links-list dd { display: inline; }

.foot-links-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--text-muted);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-dim);
    text-decoration: none;
    transition: all .16s;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.foot-links-list a:hover { color: var(--crimson); border-color: var(--crimson); }

.foot-cr-bar {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--text-muted);
    font-size: .76rem;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== DETAIL PAGES ===== */
.dtl-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-family: 'Georgia', serif;
}

.dtl-title-bar a {
    color: var(--crimson);
    font-weight: 700;
    margin-right: 6px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.dtl-meta-block {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 4px 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.thumb-frame {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

/* ===== ACTION BUTTONS ===== */
.act-btn-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 11px 0;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, transform .14s;
    text-decoration: none;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

.client-tip {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.client-tip a { color: var(--navy); font-weight: 600; }
.client-tip a:hover { color: var(--crimson); }

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

.share-line .sl-label { font-size: .77rem; color: var(--text-muted); white-space: nowrap; font-family: 'PingFang SC', sans-serif; }
.share-line .sl-url { font-size: .79rem; color: var(--text-sub); flex: 1; min-width: 0; word-break: break-all; font-family: monospace; }

.share-line .sl-cpbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.share-line .sl-cpbtn:hover { background: var(--crimson); }

/* ===== VISIBILITY ===== */
.desk-only { display: block; }
.mob-only { display: none; }

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

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

    .masthead-sitename { font-size: 1.1rem; }
    .masthead-domain-pill .dp-url { font-size: .9rem; }

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

    .nav-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;
    }

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

    .nav-links-grid a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

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

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

    .search-form-wrap button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

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

    .media-cover { aspect-ratio: 600 / 350; }
    .media-info h5 { font-size: .72rem; }
    .content-sect { padding: 9px 9px 7px; }
    .act-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .nav-zone-tag { font-size: 10px; }
    .nav-links-grid a { font-size: 12px; }
    .search-form-wrap button { padding: 0 5px; font-size: .68rem; }
}
