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

:root {
    --wa-green:     #25d366;
    --wa-green-dk:  #1aad52;
    --wa-green-lt:  #e9faf0;
    --wa-green-mid: #a8e9c4;
    --wa-green-bg:  rgba(37,211,102,.09);
    --wa-cream:     #f5f0e8;
    --wa-cream2:    #ede8df;
    --wa-cream3:    #e8e2d8;
    --bg:           #ffffff;
    --bg-soft:      #faf8f4;
    --bg-muted:     #f2ede5;
    --ink:          #1c1e21;
    --ink2:         #3a3d42;
    --ink3:         #6b6f78;
    --ink4:         #b0b4bc;
    --rule:         #e8e4dc;
    --rule2:        #d8d2c8;
    --sh1: 0 1px 4px rgba(0,0,0,.06);
    --sh2: 0 4px 18px rgba(0,0,0,.09);
    --sh3: 0 8px 32px rgba(37,211,102,.18);
    --rd:   12px;
    --rd-sm: 6px;
    --rd-lg: 18px;
    --rd-xl: 22px;
    --rd-pill: 50px;
}

html { font-size: 15px; }

body {
    background: var(--wa-cream);
    color: var(--ink);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.65;
}

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

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

/* ===== SITE HEADER ===== */
.wa-header {
    background: var(--bg);
    border-bottom: 1.5px solid var(--rule);
    padding: 10px 0;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

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

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

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

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

.wa-sitename em {
    color: var(--wa-green);
    font-style: normal;
}

.wa-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--wa-green);
    border-radius: var(--rd-pill);
    padding: 5px 18px;
    box-shadow: 0 3px 14px var(--wa-green-bg);
}

.wa-domain-tag .wdt-hint {
    font-size: 0.61rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    font-weight: 600;
}

.wa-domain-tag .wdt-url {
    font-size: 1.07rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.wa-nav {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.wa-nav-zone {
    background: var(--wa-green);
    color: rgba(255,255,255,.9);
    font-size: .67rem;
    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,.18);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.wa-nav-links a {
    font-size: .81rem;
    color: var(--ink2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

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

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

/* ===== SEARCH ===== */
.wa-search {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 10px 16px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.wa-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    padding: 0 18px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

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

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

.wa-search button {
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    background: var(--bg-muted);
    color: var(--ink2);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.wa-search button:hover {
    background: var(--wa-cream2);
    color: var(--ink);
}

.wa-search button[value="1"] {
    background: var(--wa-green);
    color: #fff;
    border-color: var(--wa-green);
    font-weight: 800;
    box-shadow: 0 2px 10px var(--wa-green-bg);
}

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

.wa-search button[value="2"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.wa-search button[value="2"]:hover {
    background: var(--ink2);
    border-color: var(--ink2);
}

/* ===== HOT TAGS ===== */
.wa-hotbar {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.wa-hotbar h4 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

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

.wa-tag-cloud .wtag {
    display: inline-block;
    background: var(--wa-green-lt);
    color: var(--wa-green-dk);
    border: 1.5px solid var(--wa-green-mid);
    border-radius: var(--rd-pill);
    padding: 2px 12px;
    font-size: .73rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.wa-tag-cloud .wtag:hover {
    background: var(--wa-green);
    color: #fff;
    border-color: var(--wa-green);
}

/* ===== CONTENT SECTION ===== */
.wa-section {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 14px 16px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.wa-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

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

.wa-sect-hd h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--ink);
}

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

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

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

.wa-grid li {
    border-radius: var(--rd-lg);
    overflow: hidden;
    border: 1.5px solid var(--rule);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.wa-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-3px);
    border-color: var(--wa-green-mid);
}

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

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

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

.wa-film-caption {
    padding: 6px 9px 9px;
    border-top: 1px solid var(--rule);
}

.wa-film-caption h5 {
    font-size: .76rem;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wa-film-caption h5 a { color: var(--ink2); }
.wa-film-caption h5 a:hover { color: var(--wa-green-dk); }

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

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

.wa-pager-row a.wapb {
    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(--rule2);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.wa-pager-row a.wapb:hover {
    background: var(--wa-green-lt);
    border-color: var(--wa-green);
    color: var(--wa-green-dk);
}

.wa-pager-row a.wapb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--wa-green);
    border: 1.5px solid var(--wa-green);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px var(--wa-green-bg);
}

/* ===== FOOTER ===== */
.wa-footer {
    background: var(--ink);
    border-radius: var(--rd-lg);
    padding: 10px 16px;
    margin: 4px 0;
}

.wa-footer .wa-sect-hd { border-bottom-color: rgba(255,255,255,.1); }
.wa-footer .wa-sect-hd::after { background: var(--wa-green); }
.wa-footer .wa-sect-hd h4 { color: rgba(255,255,255,.45); }

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

.wa-flinks dd { display: inline; }

.wa-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: rgba(255,255,255,.38);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    text-decoration: none;
    transition: all .15s;
}

.wa-flinks a:hover {
    color: var(--wa-green);
    border-color: rgba(37,211,102,.4);
    background: rgba(37,211,102,.1);
}

.wa-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.wa-entry-hd {
    line-height: 1.8;
    padding: 12px 18px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-left: 4px solid var(--wa-green);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
}

.wa-entry-hd a {
    color: var(--wa-green-dk);
    font-weight: 700;
    margin-right: 8px;
    font-size: .75rem;
}

.wa-entry-hd b { color: var(--ink); font-weight: 800; }

.wa-entry-specs {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink2);
}

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

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

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

.wa-op-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--wa-green);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--wa-green-bg);
}

.wa-op-btn:hover {
    background: var(--wa-green-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,211,102,.3);
}

.wa-client-tip {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

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

/* ===== SHARE BAR ===== */
.wa-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--wa-green-lt);
    border: 1.5px solid var(--wa-green-mid);
    border-radius: var(--rd-lg);
    padding: 9px 16px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.wa-share .wsh-lbl { font-size: .72rem; color: var(--wa-green-dk); white-space: nowrap; font-weight: 700; }
.wa-share .wsh-url { font-size: .77rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.wa-share .wsh-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--wa-green);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

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

/* ===== VISIBILITY ===== */
.wa-dsk { display: block; }
.wa-mob { display: none; }

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

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

    .wa-sitename { font-size: 1.08rem; }
    .wa-domain-tag .wdt-url { font-size: .9rem; }

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

    .wa-nav-zone {
        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;
    }

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

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

    .wa-search form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

    .wa-search button {
        height: 34px;
        padding: 0 9px;
        font-size: .73rem;
    }

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

    .wa-film-thumb { aspect-ratio: 600 / 350; }
    .wa-film-caption h5 { font-size: .71rem; }
    .wa-section { padding: 10px 10px 8px; }
    .wa-op-btn { padding: 9px 18px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .wa-nav-zone { font-size: 10px; }
    .wa-nav-links a { font-size: 12px; }
    .wa-search button { padding: 0 6px; font-size: .67rem; }
}
