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

:root {
    --coral: #d94f2b;
    --coral-dk: #b83d1e;
    --coral-lt: #fdf0ec;
    --teal: #0097a7;
    --teal-dk: #00788a;
    --teal-lt: #e0f5f7;
    --ink: #111111;
    --ink2: #333333;
    --ink3: #666666;
    --ink4: #999999;
    --bg: #ffffff;
    --bg-soft: #f8f8f8;
    --bg-muted: #efefef;
    --rule: #e0e0e0;
    --rule2: #cccccc;
    --sh1: 0 1px 3px rgba(0,0,0,.06);
    --sh2: 0 2px 10px rgba(0,0,0,.09);
    --sh3: 0 6px 24px rgba(0,0,0,.13);
    --rd: 4px;
    --rd-sm: 3px;
    --rd-lg: 6px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--ink);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Georgia','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
}

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

/* ===== WRAPPER ===== */
.page-col {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.masthead {
    background: var(--bg);
    border-bottom: 3px solid var(--coral);
    padding: 8px 0;
    box-shadow: var(--sh1);
}

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

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

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

.mh-site-label {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.mh-url-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1.5px solid var(--rule);
    border-radius: 22px;
    padding: 4px 14px;
}

.mh-url-badge .ub-caption {
    font-size: 0.66rem;
    color: var(--ink4);
    white-space: nowrap;
}

.mh-url-badge .ub-domain {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--coral);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.section-nav {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--ink);
    border-radius: 0 0 var(--rd-lg) var(--rd-lg);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.sec-zone-tag {
    background: var(--ink);
    color: rgba(255,255,255,.75);
    font-size: .67rem;
    font-weight: 800;
    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: .5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.sec-nav-links a {
    font-size: .8rem;
    color: var(--ink2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.sec-nav-links a:hover {
    background: var(--coral-lt);
    color: var(--coral);
    border-color: #f0bfb0;
}

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

/* ===== SEARCH ===== */
.keyword-search {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.keyword-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-sm);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s;
}

.keyword-search input[type="text"]:focus {
    border-color: var(--coral);
    background: var(--bg);
}

.keyword-search button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.keyword-search button:hover { background: var(--ink2); }
.keyword-search button[value="1"] { background: var(--coral); }
.keyword-search button[value="1"]:hover { background: var(--coral-dk); }
.keyword-search button[value="2"] { background: var(--teal); }
.keyword-search button[value="2"]:hover { background: var(--teal-dk); }

/* ===== HOT TAGS ===== */
.trending-rail {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.trending-rail h4 {
    font-size: .77rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.trend-tags .tt-item {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--ink2);
    border: 1px solid var(--rule2);
    border-radius: 3px;
    padding: 2px 9px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.trend-tags .tt-item:hover {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

/* ===== CONTENT SECTION ===== */
.story-section {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 12px 14px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--ink);
    position: relative;
}

.section-headline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 36px;
    height: 3px;
    background: var(--coral);
}

.section-headline h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.section-headline h3 a { color: var(--ink); }
.section-headline h3 a:hover { color: var(--coral); }

.section-headline h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.story-grid li {
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    transition: box-shadow .18s, transform .18s;
}

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

.story-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

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

.story-thumb:hover img { transform: scale(1.04); }

.story-caption {
    padding: 6px 8px 8px;
    border-top: 2px solid var(--rule);
}

.story-caption h5 {
    font-size: .77rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-caption h5 a { color: var(--ink); }
.story-caption h5 a:hover { color: var(--coral); }

/* ===== PAGINATION ===== */
.pgr-bar {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

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

.pgr-set a.pgr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    font-weight: 600;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.pgr-set a.pgr-link:hover {
    background: var(--coral-lt);
    border-color: var(--coral);
    color: var(--coral);
}

.pgr-set a.pgr-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--coral);
    border: 1.5px solid var(--coral);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.footer-links-wrap {
    background: var(--ink);
    border-radius: var(--rd);
    padding: 9px 14px;
    margin: 4px 0;
}

.footer-links-wrap .section-headline { border-bottom-color: rgba(255,255,255,.15); }
.footer-links-wrap .section-headline::after { background: var(--coral); }
.footer-links-wrap .section-headline h4 { color: rgba(255,255,255,.6); }

.flinks-set {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.flinks-set dd { display: inline; }

.flinks-set a {
    display: inline-block;
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    text-decoration: none;
    transition: all .15s;
}

.flinks-set a:hover { color: #fff; border-color: var(--coral); background: rgba(217,79,43,.2); }

.cr-note {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.entry-title-bar {
    line-height: 1.8;
    text-align: left;
    padding: 12px 16px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--coral);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
}

.entry-title-bar a {
    color: var(--coral);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 8px;
    display: inline-block;
}

.entry-title-bar b {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
}

.entry-meta {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

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

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

/* ===== ACTION BUTTONS ===== */
.entry-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

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

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

.dl-note {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.dl-note a { color: var(--ink2); font-weight: 600; }
.dl-note a:hover { color: var(--coral); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-strip .ss-label { font-size: .75rem; color: var(--ink4); white-space: nowrap; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.share-strip .ss-url { font-size: .78rem; color: var(--ink3); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

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

/* ===== VISIBILITY ===== */
.only-desktop { display: block; }
.only-mobile { display: none; }

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

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

    .mh-site-label { font-size: 1.08rem; }
    .mh-url-badge .ub-domain { font-size: .9rem; }

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

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

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

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

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

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

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

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

    .story-thumb { aspect-ratio: 600 / 350; }
    .story-caption h5 { font-size: .71rem; }
    .story-section { padding: 9px 9px 7px; }
    .entry-action-btn { padding: 9px 14px; font-size: .82rem; }
}

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

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