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

:root {
    --bg: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-muted: #f0f2f4;
    --teal: #2e8b7a;
    --teal-dark: #236b5e;
    --teal-mid: #3aa08e;
    --teal-light: #e6f5f2;
    --teal-pale: #c8e8e2;
    --accent: #1a7a6a;
    --txt: #1a1a1a;
    --txt2: #444455;
    --txt3: #888899;
    --line: #e0e4e8;
    --line2: #cdd2d8;
    --shd1: 0 1px 3px rgba(0,0,0,.06);
    --shd2: 0 2px 8px rgba(0,0,0,.10);
    --shd3: 0 4px 16px rgba(0,0,0,.14);
    --rad: 5px;
    --rad2: 3px;
    --rad3: 7px;
}

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(--teal); text-decoration: none; transition: color .16s; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.w-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== SITE HEADER ===== */
.site-hd {
    background: var(--teal);
    padding: 9px 0;
}

.site-hd .w-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

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

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

.hd-name-link:hover { text-decoration: none; }

.hd-site-name {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    font-style: normal;
    letter-spacing: -.3px;
    border-bottom: none;
    line-height: 1;
}

.hd-url-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: 4px 12px;
}

.hd-url-tag .url-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    font-weight: 600;
}

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

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

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

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

.zone-lbl {
    background: var(--teal);
    color: rgba(255,255,255,.92);
    font-size: .68rem;
    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,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
}

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

.nav-items a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 6px;
    border-radius: var(--rad2);
    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 a:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
    border-color: var(--teal-pale);
    text-decoration: none;
}

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

/* ===== SEARCH ===== */
.srch-panel {
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

.srch-panel input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    padding: 0 11px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .16s;
}

.srch-panel input[type="text"]:focus {
    border-color: var(--teal);
    background: var(--bg);
}

.srch-panel button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rad2);
    background: var(--teal);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.srch-panel button:hover { background: var(--teal-dark); }

.srch-panel button[value="1"] { background: var(--teal); }
.srch-panel button[value="1"]:hover { background: var(--teal-dark); }

.srch-panel button[value="2"] { background: var(--accent); }
.srch-panel button[value="2"]:hover { background: var(--teal-dark); }

/* ===== HOT TAGS ===== */
.hot-panel {
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

.hot-panel h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 5px;
}

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

.kw-list .kw {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    border: 1px solid var(--teal-pale);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.kw-list .kw:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal-dark);
    text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.blk-sect {
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

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

.blk-head h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--teal-dark);
}

.blk-head h3 a { color: var(--teal-dark); text-decoration: none; }
.blk-head h3 a:hover { color: var(--teal); text-decoration: none; }

.blk-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--teal-dark);
}

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

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

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

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

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

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

.card-desc {
    padding: 5px 7px 7px;
    border-top: 2px solid var(--teal-light);
}

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

.card-desc h5 a { color: var(--txt); text-decoration: none; }
.card-desc h5 a:hover { color: var(--teal); }

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

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

.pgn-inner a.pn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: var(--rad2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.pgn-inner a.pn:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal-dark);
}

.pgn-inner a.pn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--teal);
    border: 1px solid var(--teal-dark);
    border-radius: var(--rad2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    text-decoration: none;
}

/* ===== FOOTER ===== */
.flink-box {
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

.fl-list dd { display: inline; }

.fl-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .15s;
}

.fl-list a:hover {
    color: var(--teal);
    border-color: var(--teal-pale);
    background: var(--teal-light);
    text-decoration: none;
}

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

/* ===== DETAIL PAGES ===== */
.dtl-ttl {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-left: 4px solid var(--teal);
    border-radius: var(--rad);
    box-shadow: var(--shd1);
}

.dtl-ttl a {
    color: var(--teal);
    font-weight: 700;
    margin-right: 6px;
    text-decoration: none;
}

.dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    box-shadow: var(--shd1);
    margin: 4px 0;
}

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

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

/* ===== DL BUTTONS ===== */
.btn-row {
    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 22px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--rad2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .12s;
    text-decoration: none;
}

.op-btn:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.dl-tip {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.dl-tip a { color: var(--teal); font-weight: 600; }
.dl-tip a:hover { color: var(--teal-dark); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--teal-light);
    border: 1px solid var(--teal-pale);
    border-radius: var(--rad);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

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

.share-strip .s-btn:hover { background: var(--teal-dark); }

/* ===== VIS HELPERS ===== */
.v-pc { display: block; }
.v-mb { display: none; }

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

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

    .hd-site-name { font-size: 1.08rem; }
    .hd-url-tag .url-val { font-size: .92rem; }

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

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

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

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

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

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

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

    .card-thumb { aspect-ratio: 600 / 350; }
    .card-desc h5 { font-size: .72rem; }
    .blk-sect { padding: 9px 9px 7px; }
    .op-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .zone-lbl { font-size: 10px; }
    .nav-items a { font-size: 12px; }
    .srch-panel button { padding: 0 5px; font-size: .66rem; }
}
