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

:root {
    --cream: #f5f0e8;
    --cream2: #faf8f4;
    --cream3: #ede8de;
    --cream4: #e4ddd0;
    --white: #ffffff;
    --green: #25d366;
    --green-dk: #1aab52;
    --green-wa: #00a884;
    --green-lt: #e8f8ee;
    --green-glow: rgba(37,211,102,.25);
    --ink: #111b21;
    --ink2: #2c3e50;
    --ink3: #3b4a54;
    --txt: #111b21;
    --txt2: #374045;
    --txt3: #667781;
    --link: #00a884;
    --bdr: #d9d3c7;
    --bdr2: #c4bdb0;
    --sh1: 0 1px 3px rgba(0,0,0,.07);
    --sh2: 0 2px 10px rgba(0,0,0,.09);
    --sh3: 0 4px 20px rgba(0,0,0,.12);
    --r: 16px;
    --r2: 10px;
    --r3: 20px;
    --r4: 50px;
}

html { font-size: 15px; }

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

/* ===== WRAPPER ===== */
.wa-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.wa-topbar {
    background: var(--cream2);
    border-bottom: 1px solid var(--bdr);
    padding: 10px 0;
    box-shadow: var(--sh1);
}

.wa-topbar .wa-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.wa-brandname {
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--ink);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.wa-domain-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    border-radius: var(--r4);
    padding: 5px 16px;
}

.wa-domain-bubble .wdb-tag {
    font-size: 0.68rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}

.wa-domain-bubble .wdb-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.wa-navbox {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.wa-navrow:last-child { border-bottom: none; }

.wa-zone-dot {
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.25);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.wa-navlinks a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.wa-navlinks a:hover {
    background: var(--green-lt);
    color: var(--green-wa);
    border-color: rgba(37,211,102,.3);
}

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

/* ===== SEARCH ===== */
.wa-searchzone {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.wa-searchzone form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.wa-searchzone input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--bdr2);
    border-radius: var(--r4);
    padding: 0 18px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--cream2);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.wa-searchzone input[type="text"]:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.wa-searchzone button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--r4);
    background: var(--cream3);
    color: var(--txt2);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    font-family: inherit;
    border: 1.5px solid var(--bdr);
}

.wa-searchzone button:hover {
    background: var(--cream4);
    border-color: var(--bdr2);
}

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

.wa-searchzone button[value="2"] {
    background: var(--white);
    color: var(--green-wa);
    border: 1.5px solid var(--green-wa);
}
.wa-searchzone button[value="2"]:hover { background: var(--green-lt); }

/* ===== HOT TAGS ===== */
.wa-tagcloud {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.wa-tagcloud h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.wa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wa-tags .wa-tag {
    display: inline-block;
    background: var(--cream2);
    color: var(--txt2);
    border: 1px solid var(--bdr);
    border-radius: var(--r4);
    padding: 3px 12px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.wa-tags .wa-tag:hover {
    background: var(--green-lt);
    color: var(--green-wa);
    border-color: rgba(37,211,102,.35);
}

/* ===== CONTENT SECTION ===== */
.wa-module {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 14px 14px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.wa-mod-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream3);
    position: relative;
}

.wa-mod-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.wa-mod-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink);
}

.wa-mod-hd h3 a { color: var(--ink); }
.wa-mod-hd h3 a:hover { color: var(--green-wa); }

.wa-mod-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

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

.wa-filmgrid li {
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--cream2);
    transition: box-shadow .2s, transform .2s;
}

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

.wa-filmthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--cream3);
}

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

.wa-filmthumb:hover img { transform: scale(1.04); }

.wa-filminfo {
    padding: 5px 8px 7px;
}

.wa-filminfo 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;
}

.wa-filminfo h5 a { color: var(--txt); }
.wa-filminfo h5 a:hover { color: var(--green-wa); }

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

.wa-pglist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.wa-pglist a.wp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--white);
    border: 1.5px solid var(--bdr2);
    border-radius: var(--r4);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
}

.wa-pglist a.wp:hover {
    background: var(--green-lt);
    border-color: var(--green);
    color: var(--green-wa);
}

.wa-pglist a.wp-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--green);
    border: 1.5px solid var(--green-dk);
    border-radius: var(--r4);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 10px var(--green-glow);
}

/* ===== FOOTER ===== */
.wa-ftlinks {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 9px 14px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.wa-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wa-flinks dd { display: inline; }

.wa-flinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--r4);
    border: 1px solid var(--bdr);
    background: var(--cream2);
    text-decoration: none;
    transition: all .15s;
}

.wa-flinks a:hover {
    color: var(--green-wa);
    border-color: var(--green);
    background: var(--green-lt);
}

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

/* ===== DETAIL PAGES ===== */
.wa-dtl-head {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--bdr);
    border-left: 4px solid var(--green);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    font-weight: 600;
}

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

.wa-dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--sh1);
    margin: 4px 0;
}

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

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

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

.wa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 26px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--r4);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 3px 14px var(--green-glow);
}

.wa-action-btn:hover {
    background: var(--green-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px var(--green-glow);
}

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

.wa-tipline a { color: var(--ink3); font-weight: 600; }
.wa-tipline a:hover { color: var(--green-wa); }

/* ===== SHARE BAR ===== */
.wa-share-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream2);
    border: 1px solid var(--bdr);
    border-radius: var(--r3);
    padding: 8px 14px;
    margin: 4px 0;
    flex-wrap: wrap;
}

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

.wa-share-strip .wss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--r4);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
}

.wa-share-strip .wss-btn:hover { background: var(--green-dk); }

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

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

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

    .wa-brandname { font-size: 1.1rem; }
    .wa-domain-bubble .wdb-val { font-size: .94rem; }

    .wa-navrow { align-items: stretch; }

    .wa-zone-dot {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    /* Search: single row, no wrap */
    .wa-searchzone form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .wa-searchzone input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 10px;
    }

    .wa-searchzone button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

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

    .wa-filmthumb { aspect-ratio: 600 / 350; }
    .wa-filminfo h5 { font-size: .72rem; }
    .wa-module { padding: 9px 9px 7px; }
    .wa-action-btn { padding: 9px 18px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .wa-zone-dot { font-size: 10px; }
    .wa-navlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .wa-zone-dot { font-size: 10px; }
    .wa-navlinks a { font-size: 12px; }
    .wa-searchzone button { padding: 0 5px; font-size: .68rem; }
}
