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

:root {
    --sky-deep: #05203c;
    --sky-navy: #0d2b4e;
    --sky-mid: #0e3460;
    --sky-blue: #0770e3;
    --sky-blue-dk: #0558b5;
    --sky-blue-lt: #e8f1fd;
    --sky-cyan: #00a698;
    --sky-cyan-dk: #007d72;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-muted: #eceef2;
    --txt: #111827;
    --txt2: #374151;
    --txt3: #9ca3af;
    --txt-inv: #ffffff;
    --txt-inv2: rgba(255,255,255,.7);
    --border: #e2e8f0;
    --border2: #cbd5e1;
    --sh1: 0 1px 3px rgba(5,32,60,.08);
    --sh2: 0 4px 16px rgba(5,32,60,.12);
    --sh3: 0 8px 32px rgba(5,32,60,.18);
    --rd: 10px;
    --rd-sm: 6px;
    --rd-lg: 14px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.site-head {
    background: var(--sky-deep);
    padding: 10px 0;
}

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

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

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

.head-site-name {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--txt-inv);
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.head-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sky-blue);
    border-radius: 24px;
    padding: 5px 16px;
}

.head-domain-tag .dtag-hint {
    font-size: 0.67rem;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

.head-domain-tag .dtag-val {
    font-size: 1.06rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.cat-nav {
    background: var(--sky-navy);
    border-radius: var(--rd);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh2);
}

.cat-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-height: 38px;
}

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

.cat-zone-label {
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.65);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 64px;
    min-width: 64px;
    border-right: 1px solid rgba(255,255,255,.07);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.cat-links-grid a {
    font-size: .82rem;
    color: rgba(255,255,255,.78);
    padding: 3px 5px;
    border-radius: var(--rd-sm);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cat-links-grid a:hover {
    background: rgba(7,112,227,.35);
    color: #fff;
    border-color: rgba(7,112,227,.5);
}

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

/* ===== SEARCH ===== */
.qsearch-box {
    background: var(--sky-navy);
    border-radius: var(--rd);
    padding: 10px 14px;
    margin: 3px 0;
    box-shadow: var(--sh2);
}

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

.qsearch-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--rd-sm);
    padding: 0 14px;
    font-size: .88rem;
    color: var(--txt-inv);
    background: rgba(255,255,255,.1);
    outline: none;
    transition: border-color .2s, background .2s;
}

.qsearch-box input[type="text"]::placeholder { color: rgba(255,255,255,.4); }

.qsearch-box input[type="text"]:focus {
    border-color: var(--sky-blue);
    background: rgba(255,255,255,.16);
}

.qsearch-box button {
    height: 40px;
    padding: 0 13px;
    border: none;
    border-radius: var(--rd-sm);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.qsearch-box button:hover { background: rgba(255,255,255,.25); }
.qsearch-box button[value="1"] { background: var(--sky-blue); }
.qsearch-box button[value="1"]:hover { background: var(--sky-blue-dk); }
.qsearch-box button[value="2"] { background: var(--sky-cyan); }
.qsearch-box button[value="2"]:hover { background: var(--sky-cyan-dk); }

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

.hotword-panel h4 {
    font-size: .79rem;
    font-weight: 800;
    color: var(--sky-navy);
    margin-bottom: 5px;
}

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

.hotword-list .hw-tag {
    display: inline-block;
    background: var(--sky-blue-lt);
    color: var(--sky-blue);
    border: 1px solid rgba(7,112,227,.2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.hotword-list .hw-tag:hover {
    background: var(--sky-blue);
    color: #fff;
    border-color: var(--sky-blue);
}

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

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

.panel-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--sky-blue);
    border-radius: 2px;
}

.panel-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--sky-navy);
}

.panel-hd h3 a { color: var(--sky-navy); }
.panel-hd h3 a:hover { color: var(--sky-blue); }

.panel-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--sky-navy);
}

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

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

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

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

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

.thumb-link:hover img { transform: scale(1.05); }

.film-desc {
    padding: 5px 7px 7px;
}

.film-desc h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-desc h5 a { color: var(--txt); }
.film-desc h5 a:hover { color: var(--sky-blue); }

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

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

.pages-inner a.pn-btn {
    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(--border2);
    border-radius: var(--rd-sm);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pages-inner a.pn-btn:hover {
    background: var(--sky-blue-lt);
    border-color: var(--sky-blue);
    color: var(--sky-blue);
}

.pages-inner a.pn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--sky-blue);
    border: 1.5px solid var(--sky-blue);
    border-radius: var(--rd-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.ftr-links-area {
    background: var(--sky-deep);
    border-radius: var(--rd);
    padding: 9px 13px;
    margin: 4px 0;
}

.ftr-links-area .panel-hd { border-bottom-color: rgba(255,255,255,.1); }
.ftr-links-area .panel-hd::after { background: var(--sky-blue); }
.ftr-links-area .panel-hd h4 { color: rgba(255,255,255,.7); }

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

.flink-row dd { display: inline; }

.flink-row a {
    display: inline-block;
    font-size: .77rem;
    color: rgba(255,255,255,.5);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    text-decoration: none;
    transition: all .18s;
}

.flink-row a:hover { color: #fff; border-color: var(--sky-blue); background: rgba(7,112,227,.2); }

.copyright-line {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--sky-navy);
    border-left: 4px solid var(--sky-blue);
    border-radius: var(--rd);
    box-shadow: var(--sh2);
    color: var(--txt-inv);
}

.detail-title-bar a {
    color: var(--sky-blue);
    font-weight: 700;
    margin-right: 6px;
}

.detail-title-bar b { color: #fff; }

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

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

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

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

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

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

.client-guide {
    text-align: center;
    padding: 6px;
    font-size: .82rem;
}

.client-guide a { color: var(--sky-navy); font-weight: 600; }
.client-guide a:hover { color: var(--sky-blue); }

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

.link-share-bar .lsb-label { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.link-share-bar .lsb-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.link-share-bar .lsb-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--sky-blue);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.link-share-bar .lsb-copy:hover { background: var(--sky-blue-dk); }

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

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

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

    .head-site-name { font-size: 1.06rem; }
    .head-domain-tag .dtag-val { font-size: .9rem; }

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

    .cat-zone-label {
        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;
    }

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

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

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

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

    .qsearch-box button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

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

    .thumb-link { aspect-ratio: 600 / 350; }
    .film-desc h5 { font-size: .72rem; }
    .panel-block { padding: 9px 9px 7px; }
    .dl-act-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .cat-zone-label { font-size: 10px; }
    .cat-links-grid a { font-size: 12px; }
    .qsearch-box button { padding: 0 5px; font-size: .68rem; }
}
