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

:root {
    --bg-root: #f4f6f0;
    --bg-white: #ffffff;
    --bg-soft: #eef1ea;
    --bg-input: #f9fbf7;
    --green: #5cb800;
    --green-dk: #449000;
    --green-lt: #eaf5d8;
    --green-border: #c2e08a;
    --txt: #222222;
    --txt2: #444444;
    --txt3: #888899;
    --txt4: #aaaaaa;
    --line: #e2e8d8;
    --line2: #d0d9c0;
    --shadow-xs: 0 1px 3px rgba(80,110,40,.08);
    --shadow-sm: 0 2px 8px rgba(80,110,40,.10);
    --shadow-md: 0 4px 16px rgba(80,110,40,.13);
    --r: 8px;
    --r-sm: 5px;
    --r-lg: 12px;
}

html { font-size: 15px; }

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

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

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

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

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

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

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green-lt);
    border: 1px solid var(--green-border);
    border-radius: 22px;
    padding: 4px 14px;
}

.domain-tag .dt-lbl {
    font-size: 0.68rem;
    color: var(--txt3);
    white-space: nowrap;
}

.domain-tag .dt-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dk);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

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

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

.nav-group-lbl {
    background: var(--green);
    color: rgba(255,255,255,.95);
    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 var(--green-dk);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-items-grid a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 4px 5px;
    border-radius: var(--r-sm);
    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-grid a:hover {
    background: var(--green-lt);
    color: var(--green-dk);
    border-color: var(--green-border);
}

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

/* ===== SEARCH ===== */
.search-wrap {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 2px solid var(--green);
    border-radius: var(--r-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-input);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-wrap input[type="text"]::placeholder { color: var(--txt4); }

.search-wrap input[type="text"]:focus {
    border-color: var(--green-dk);
    box-shadow: 0 0 0 3px rgba(92,184,0,.12);
    background: var(--bg-white);
}

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

.search-wrap button:hover { background: #556247; }

.search-wrap button[value="1"] {
    background: var(--green);
    color: #fff;
}
.search-wrap button[value="1"]:hover { background: var(--green-dk); }

.search-wrap button[value="2"] {
    background: #e8a000;
    color: #fff;
}
.search-wrap button[value="2"]:hover { background: #c88000; }

/* ===== HOT TAGS ===== */
.hot-terms {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--shadow-xs);
}

.hot-terms h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--green-dk);
    margin-bottom: 5px;
}

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

.terms-list .tm {
    display: inline-block;
    background: var(--green-lt);
    color: var(--green-dk);
    border: 1px solid var(--green-border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.terms-list .tm:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green-dk);
}

/* ===== CONTENT SECTION ===== */
.section-box {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

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

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

.section-head h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--txt);
}

.section-head h3 a { color: var(--txt); }
.section-head h3 a:hover { color: var(--green-dk); }

.section-head h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt);
}

/* ===== 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(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.film-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--green-border);
}

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

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

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

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

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

.film-desc h5 a { color: var(--txt2); }
.film-desc h5 a:hover { color: var(--green-dk); }

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

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

.pages-list a.pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-white);
    border: 1px solid var(--line2);
    border-radius: var(--r-sm);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pages-list a.pg-num:hover {
    background: var(--green-lt);
    border-color: var(--green);
    color: var(--green-dk);
}

.pages-list a.pg-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green);
    border: 1px solid var(--green-dk);
    border-radius: var(--r-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.links-panel {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow-xs);
}

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

.frd-links dd { display: inline; }

.frd-links 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;
}

.frd-links a:hover { color: var(--green-dk); border-color: var(--green-border); background: var(--green-lt); }

.copy-bar {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--txt4);
    font-size: .76rem;
}

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

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

.entry-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-xs);
    margin: 4px 0;
}

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

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

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

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

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

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

.client-note a { color: var(--green-dk); font-weight: 600; }
.client-note a:hover { color: var(--green); }

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

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

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

.share-strip .ss-btn:hover { background: var(--green-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; }

    .logo-text { font-size: 1.08rem; font-style: normal; }
    .domain-tag .dt-val { font-size: .9rem; }

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

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

    .nav-items-grid 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 */
    .search-wrap form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

    .film-poster { aspect-ratio: 600 / 350; }
    .film-desc h5 { font-size: .72rem; }
    .section-box { padding: 9px 9px 7px; }
    .act-link { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .nav-group-lbl { font-size: 10px; }
    .nav-items-grid a { font-size: 12px; }
    .search-wrap button { padding: 0 5px; font-size: .68rem; }
}
