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

:root {
    --red:      #d63031;
    --red-dk:   #b02020;
    --red-lt:   #fff0f0;
    --red-mid:  #e84040;
    --orange:   #e8720c;
    --orange-lt:#fff5ee;
    --ink:      #1a1a1a;
    --ink2:     #333333;
    --ink3:     #666666;
    --ink4:     #999999;
    --bg:       #ffffff;
    --bg-soft:  #f7f7f7;
    --bg-muted: #f0f0f0;
    --rule:     #e5e5e5;
    --rule2:    #d0d0d0;
    --hd-bg:    #c0392b;
    --hd-bg2:   #e74c3c;
    --sh1: 0 1px 4px rgba(0,0,0,.07);
    --sh2: 0 2px 10px rgba(0,0,0,.10);
    --sh3: 0 6px 20px rgba(0,0,0,.14);
    --rd:   6px;
    --rd-sm: 3px;
    --rd-lg: 8px;
}

html { font-size: 15px; }

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

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

/* ===== WRAPPER ===== */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: linear-gradient(135deg, var(--hd-bg) 0%, var(--hd-bg2) 60%, #f0603a 100%);
    padding: 9px 0;
    box-shadow: 0 2px 8px rgba(198,57,43,.35);
}

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

.hd-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.hd-sitename {
    font-size: 1.36rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.hd-newurl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 22px;
    padding: 4px 15px;
    backdrop-filter: blur(4px);
}

.hd-newurl .nu-hint {
    font-size: 0.64rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

.hd-newurl .nu-addr {
    font-size: 1.06rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

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

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

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

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

.nav-zone-tag {
    background: var(--red);
    color: rgba(255,255,255,.9);
    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,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.nav-items-row a:hover {
    background: var(--red-lt);
    color: var(--red);
    border-color: #f5c0bc;
}

.nav-items-row a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.qs-form-wrap {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--rd);
    padding: 8px 13px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.qs-form-wrap input[type="text"]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(214,48,49,.12);
    background: var(--bg);
}

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

.qs-form-wrap button:hover { background: var(--ink); }
.qs-form-wrap button[value="1"] { background: var(--red); }
.qs-form-wrap button[value="1"]:hover { background: var(--red-dk); }
.qs-form-wrap button[value="2"] { background: var(--orange); }
.qs-form-wrap button[value="2"]:hover { background: #c05a08; }

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

.hot-kw-panel h4 {
    font-size: .77rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 5px;
}

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

.kw-tag-list .kwtag {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--ink3);
    border: 1px solid var(--rule2);
    border-radius: var(--rd-sm);
    padding: 2px 9px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
}

.kw-tag-list .kwtag:hover {
    background: var(--red-lt);
    color: var(--red);
    border-color: #f5c0bc;
}

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

.zone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--rule);
    position: relative;
}

.zone-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 3px;
    height: 100%;
    background: var(--red);
    border-radius: 2px 2px 0 0;
    bottom: 0;
    top: 0;
    width: 3px;
    left: -14px;
}

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

.zone-header h3 {
    font-size: .98rem;
    font-weight: 900;
    color: var(--ink);
}

.zone-header h3 a { color: var(--ink); }
.zone-header h3 a:hover { color: var(--red); }

.zone-header h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ink);
}

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

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

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

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

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

.film-poster:hover img { transform: scale(1.05); }

.film-text {
    padding: 5px 7px 8px;
    border-top: 1px solid var(--rule);
}

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

.film-text h5 a { color: var(--ink); }
.film-text h5 a:hover { color: var(--red); }

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

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

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

.pg-row-inner a.pglink:hover {
    background: var(--red-lt);
    border-color: var(--red);
    color: var(--red);
}

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

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

.ftr-box .zone-header { border-bottom-color: rgba(255,255,255,.1); }
.ftr-box .zone-header::after { background: var(--red-mid); }
.ftr-box .zone-header h4 { color: rgba(255,255,255,.55); }

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

.ftr-links dd { display: inline; }

.ftr-links a {
    display: inline-block;
    font-size: .75rem;
    color: rgba(255,255,255,.42);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    text-decoration: none;
    transition: all .15s;
}

.ftr-links a:hover { color: #fff; border-color: var(--red); background: rgba(214,48,49,.2); }

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

/* ===== DETAIL PAGES ===== */
.entry-banner {
    line-height: 1.8;
    padding: 12px 16px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--red);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
}

.entry-banner a {
    color: var(--red);
    font-weight: 800;
    font-size: .78rem;
    margin-right: 8px;
    display: inline-block;
}

.entry-banner b {
    color: var(--ink);
    font-weight: 700;
}

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

.preview-media {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

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

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

.op-btn:hover {
    background: var(--red-dk);
    color: #fff;
    transform: translateY(-1px);
}

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

.tip-line a { color: var(--ink2); font-weight: 600; }
.tip-line a:hover { color: var(--red); }

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

.link-strip .ls-lbl { font-size: .75rem; color: var(--ink4); white-space: nowrap; }
.link-strip .ls-url { font-size: .78rem; color: var(--ink3); flex: 1; min-width: 0; word-break: break-all; }

.link-strip .ls-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.link-strip .ls-btn:hover { background: var(--red-dk); }

/* ===== VISIBILITY ===== */
.deskview { display: block; }
.mobview  { display: none; }

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

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

    .hd-sitename { font-size: 1.08rem; }
    .hd-newurl .nu-addr { font-size: .9rem; }

    .nav-board-row { 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-items-row {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 3px 4px;
        align-items: center;
    }

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

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

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

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

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

    .film-poster { aspect-ratio: 600 / 350; }
    .film-text h5 { font-size: .71rem; }
    .content-zone { padding: 9px 9px 7px; }
    .op-btn { padding: 9px 14px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .nav-zone-tag { font-size: 10px; }
    .nav-items-row a { font-size: 12px; }
    .qs-form-wrap button { padding: 0 5px; font-size: .67rem; }
}
