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

:root {
    --bg: #ffffff;
    --bg-soft: #f0f7f0;
    --bg-muted: #e4f0e4;
    --bg-card: #ffffff;
    --green: #2ea84f;
    --green-dk: #248a40;
    --green-bg: #eaf6ed;
    --green-border: #b2dfc0;
    --teal: #1a3f52;
    --teal-mid: #255068;
    --teal-lt: #2d6680;
    --txt: #1a2e22;
    --txt2: #3d5247;
    --txt3: #7a9e87;
    --line: #d8eadc;
    --line2: #c4dcc9;
    --s1: 0 1px 5px rgba(30,80,50,.07);
    --s2: 0 3px 12px rgba(30,80,50,.10);
    --s3: 0 6px 22px rgba(30,80,50,.15);
    --r: 8px;
    --r2: 6px;
    --r3: 12px;
}

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

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

/* ===== SITE HEADER ===== */
.site-head {
    background: var(--bg);
    border-bottom: 2px solid var(--green-border);
    padding: 9px 0;
    box-shadow: var(--s1);
}

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

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

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

.site-title-text {
    font-size: 1.30rem;
    font-weight: 900;
    color: var(--green);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.domain-capsule {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--teal);
    border-radius: 24px;
    padding: 4px 14px;
}

.domain-capsule .dc-hint {
    font-size: 0.68rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.domain-capsule .dc-addr {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-box {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

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

.zone-name {
    background: var(--teal);
    color: rgba(255,255,255,.80);
    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,.12);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    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 5px;
    border-radius: var(--r2);
    transition: all .18s;
    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(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}

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

/* ===== SEARCH ===== */
.srch-zone {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

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

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

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

.srch-zone button:hover { background: var(--teal-mid); }

.srch-zone button[value="1"] { background: var(--green); }
.srch-zone button[value="1"]:hover { background: var(--green-dk); }

.srch-zone button[value="2"] { background: #3a8f5f; }
.srch-zone button[value="2"]:hover { background: #2e7249; }

/* ===== HOT TAGS ===== */
.keyword-bar {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

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

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

.kw-list .kw {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--line2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.kw-list .kw:hover {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}

/* ===== CONTENT SECTION ===== */
.content-block {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r3);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

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

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

.block-header h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--teal);
}

.block-header h3 a { color: var(--teal); }
.block-header h3 a:hover { color: var(--green); }

.block-header h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--teal);
}

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

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

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

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

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

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

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

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

.media-desc h5 a { color: var(--txt); }
.media-desc h5 a:hover { color: var(--green); }

/* ===== PAGINATION ===== */
.page-nav {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

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

.page-btns a.pb {
    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(--line2);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.page-btns a.pb:hover {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
}

.page-btns a.pb-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green);
    border: 1.5px solid var(--green);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.foot-sect {
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

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

.flink-row dd { display: inline; }

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

.flink-row a:hover { color: var(--green); border-color: var(--green-border); }

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

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--r);
    box-shadow: var(--s1);
}

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

.detail-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--s1);
    margin: 5px 0;
}

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

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

/* ===== DL BUTTONS ===== */
.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

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

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

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

.tool-hint a { color: var(--teal); font-weight: 600; }
.tool-hint a:hover { color: var(--green); }

/* ===== SHARE ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

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

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

.share-row .sr-copy:hover { background: var(--green); }

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

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

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

    .site-title-text { font-size: 1.05rem; }
    .domain-capsule .dc-addr { font-size: .9rem; }

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

    .zone-name {
        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 5px;
        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-zone form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

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

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

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