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

:root {
    --bg-page:    #f0f4f0;
    --bg-white:   #ffffff;
    --bg-soft:    #e8f0e8;
    --bg-card:    #ffffff;
    --bg-card2:   #f5f8f5;

    --green-deep: #0a3d2e;
    --green-dark: #0d5c3e;
    --green-mid:  #1a7a52;
    --green-muted:#2e8b64;
    --lime:       #b8d400;
    --lime-dk:    #96af00;
    --lime-lt:    #cde820;
    --teal:       #00897b;
    --teal-lt:    #4db6ac;

    --txt-hd:     #0a3d2e;
    --txt-main:   #1c2e1c;
    --txt-sub:    #3a5a3a;
    --txt-muted:  #7a9a7a;
    --bdr:        #d0e4d0;
    --bdr2:       #b0d0b0;

    --shade1: 0 1px 5px rgba(10,61,46,.07);
    --shade2: 0 3px 14px rgba(10,61,46,.11);
    --shade3: 0 6px 26px rgba(10,61,46,.16);

    --grad-hd:    linear-gradient(135deg, #0a3d2e 0%, #0d5c3e 60%, #1a7a52 100%);
    --grad-btn:   linear-gradient(135deg, #b8d400 0%, #cde820 100%);
    --grad-btn2:  linear-gradient(135deg, #0d5c3e 0%, #1a7a52 100%);
    --grad-teal:  linear-gradient(135deg, #00897b 0%, #4db6ac 100%);

    --radius:     10px;
    --radius-sm:  6px;
    --radius-lg:  16px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.hd-strip {
    background: var(--grad-hd);
    border-bottom: 3px solid var(--lime);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(10,61,46,.18);
}

.hd-strip .page-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.brand-name {
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--bg-white);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,212,0,.18);
    border: 1.5px solid rgba(184,212,0,.5);
    border-radius: 26px;
    padding: 4px 16px;
}

.domain-pill .dp-tag {
    font-size: 0.67rem;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
}

.domain-pill .dp-url {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lime-lt);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(184,212,0,.4);
}

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

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

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

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

.row-tag {
    background: var(--green-deep);
    color: rgba(255,255,255,.82);
    font-size: .65rem;
    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,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.row-links a {
    font-size: .82rem;
    color: var(--txt-sub);
    padding: 4px 5px;
    border-radius: var(--radius-sm);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.row-links a:hover {
    background: var(--bg-soft);
    color: var(--green-deep);
    border-color: var(--bdr2);
}

.row-links a.active {
    background: var(--green-deep);
    color: var(--lime-lt);
    border-color: transparent;
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.srch-panel {
    background: var(--bg-card);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.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: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-main);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.srch-panel input[type="text"]:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(26,122,82,.12);
    background: var(--bg-white);
}

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

.srch-panel button:hover { background: var(--green-dark); transform: translateY(-1px); }

.srch-panel button[value="1"] {
    background: var(--grad-btn);
    color: var(--green-deep);
}
.srch-panel button[value="1"]:hover { background: var(--lime-dk); color: var(--green-deep); }

.srch-panel button[value="2"] {
    background: var(--grad-btn2);
    color: #fff;
}
.srch-panel button[value="2"]:hover { background: var(--green-dark); }

/* ===== HOT TAGS ===== */
.htag-panel {
    background: var(--bg-card);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shade1);
}

.htag-panel h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 5px;
}

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

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

.htag-row .htag:hover {
    background: var(--green-deep);
    color: var(--lime-lt);
    border-color: var(--green-deep);
}

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

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

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

.block-head h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt-hd);
}

.block-head h3 a { color: var(--txt-hd); }
.block-head h3 a:hover { color: var(--green-mid); }

.block-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt-hd);
}

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

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

.media-grid li:hover {
    box-shadow: var(--shade3);
    transform: translateY(-2px);
    border-color: var(--bdr2);
}

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

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

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

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

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

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

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

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

.pager-list a.pgb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--txt-sub);
    text-decoration: none;
    transition: all .18s;
}

.pager-list a.pgb:hover {
    background: var(--bg-soft);
    border-color: var(--green-mid);
    color: var(--green-deep);
}

.pager-list a.pgb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green-deep);
    border: 1.5px solid var(--green-deep);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: var(--lime-lt);
    cursor: default;
}

/* ===== FOOTER ===== */
.ftr-box {
    background: var(--bg-card);
    border: 1.5px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shade1);
}

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

.ftr-links dd { display: inline; }

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

.ftr-links a:hover { color: var(--green-deep); border-color: var(--bdr2); }

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

/* ===== DETAIL PAGES ===== */
.dtl-hd {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1.5px solid var(--bdr);
    border-left: 4px solid var(--lime);
    border-radius: var(--radius);
    box-shadow: var(--shade1);
}

.dtl-hd a {
    color: var(--green-mid);
    font-weight: 700;
    margin-right: 6px;
}

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

.cap-zone {
    display: block;
    width: 100%;
    margin-top: 10px;
}

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

/* ===== DL BUTTONS ===== */
.act-btns {
    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(--green-deep);
    color: var(--lime-lt);
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(10,61,46,.2);
}

.act-btn:hover {
    background: var(--lime);
    color: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(10,61,46,.25);
}

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

.hint-tip a { color: var(--green-mid); font-weight: 600; }
.hint-tip a:hover { color: var(--green-deep); }

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

.link-strip .ls-lbl { font-size: .77rem; color: var(--txt-muted); white-space: nowrap; }
.link-strip .ls-url { font-size: .79rem; color: var(--txt-sub); flex: 1; min-width: 0; word-break: break-all; }

.link-strip .ls-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--green-deep);
    color: var(--lime-lt);
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.link-strip .ls-btn:hover { background: var(--lime); color: var(--green-deep); transform: translateY(-1px); }

/* ===== VISIBILITY HELPERS ===== */
.only-desk { display: block; }
.only-mobi { display: none; }

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

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

    .brand-name { font-size: 1.06rem; }
    .domain-pill .dp-url { font-size: .92rem; }

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

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

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

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

    /* Search: one row, no wrap */
    .srch-panel form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

    /* Film grid: 2 cols */
    .media-grid {
        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) {
    .row-tag { font-size: 10px; }
    .row-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .row-tag { font-size: 10px; }
    .row-links a { font-size: 12px; }
    .srch-panel button { padding: 0 5px; font-size: .68rem; }
}
