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

:root {
    --clr-bg: #ffffff;
    --clr-bg2: #f4f8f6;
    --clr-bg3: #e8f0ec;
    --clr-primary: #2d8f6f;
    --clr-primary-dk: #1e6b52;
    --clr-primary-lt: #3aab87;
    --clr-primary-bg: #eaf5f0;
    --clr-accent: #1a7a58;
    --clr-teal: #217a5c;
    --clr-teal-hd: #185c44;
    --clr-nav-bg: #2a8a6a;
    --clr-ink: #1c2826;
    --clr-ink2: #3d4f47;
    --clr-ink3: #8aa098;
    --clr-bdr: #d8e6df;
    --clr-bdr2: #c4d8ce;
    --shd1: 0 1px 3px rgba(30,80,60,.07);
    --shd2: 0 2px 10px rgba(30,80,60,.10);
    --shd3: 0 5px 20px rgba(30,80,60,.14);
    --rnd: 6px;
    --rnd2: 4px;
    --rnd3: 10px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE HEADER ===== */
.top-header {
    background: var(--clr-bg);
    border-bottom: 2px solid var(--clr-bdr);
    padding: 8px 0;
    box-shadow: var(--shd1);
}

.top-header .w-outer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

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

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

.identity-name {
    font-size: 1.30rem;
    font-weight: 800;
    color: var(--clr-primary);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -.3px;
}

.url-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-nav-bg);
    border-radius: 20px;
    padding: 3px 12px;
}

.url-capsule .uc-hint {
    font-size: 0.67rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.url-capsule .uc-domain {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nav-module {
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

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

.zone-tag {
    background: var(--clr-teal);
    color: rgba(255,255,255,.88);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 60px;
    min-width: 60px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.nav-slot a {
    font-size: .82rem;
    color: var(--clr-ink2);
    padding: 3px 5px;
    border-radius: var(--rnd2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-slot a:hover {
    background: var(--clr-primary-bg);
    color: var(--clr-primary);
    border-color: #a8d4c2;
}

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

/* ===== SEARCH BAR ===== */
.search-module {
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

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

.search-module input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1.5px solid var(--clr-bdr2);
    border-radius: var(--rnd2);
    padding: 0 11px;
    font-size: .87rem;
    color: var(--clr-ink);
    background: var(--clr-bg2);
    outline: none;
    transition: border-color .18s;
}

.search-module input[type="text"]:focus {
    border-color: var(--clr-primary);
    background: var(--clr-bg);
}

.search-module button {
    height: 34px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rnd2);
    background: var(--clr-teal);
    color: #fff;
    font-size: .80rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s;
    flex-shrink: 0;
}

.search-module button:hover { background: var(--clr-teal-hd); }
.search-module button[value="1"] { background: var(--clr-primary); }
.search-module button[value="1"]:hover { background: var(--clr-primary-dk); }
.search-module button[value="2"] { background: var(--clr-accent); }
.search-module button[value="2"]:hover { background: var(--clr-primary-dk); }

/* ===== HOT TAGS ===== */
.trend-box {
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--shd1);
}

.trend-box h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--clr-teal);
    margin-bottom: 5px;
}

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

.kw-list .kw-pill {
    display: inline-block;
    background: var(--clr-bg2);
    color: var(--clr-ink2);
    border: 1px solid var(--clr-bdr2);
    border-radius: 16px;
    padding: 2px 10px;
    font-size: .75rem;
    text-decoration: none;
    transition: all .16s;
}

.kw-list .kw-pill:hover {
    background: var(--clr-primary-bg);
    color: var(--clr-primary);
    border-color: #9ecfbe;
}

/* ===== CONTENT SECTION ===== */
.sect-card {
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd3);
    padding: 12px 12px 9px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

.sect-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--clr-bg3);
    position: relative;
}

.sect-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 38px;
    height: 2px;
    background: var(--clr-primary);
    border-radius: 2px;
}

.sect-head h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--clr-teal-hd);
}

.sect-head h3 a { color: var(--clr-teal-hd); }
.sect-head h3 a:hover { color: var(--clr-primary); }

.sect-head h4 {
    font-size: .93rem;
    font-weight: 800;
    color: var(--clr-teal-hd);
}

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

.media-items li {
    border-radius: var(--rnd);
    overflow: hidden;
    border: 1px solid var(--clr-bdr);
    background: var(--clr-bg2);
    transition: box-shadow .18s, transform .18s;
}

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

.cover-link {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--clr-bg3);
}

.cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s;
}

.cover-link:hover img { transform: scale(1.05); }

.item-label {
    padding: 5px 6px 6px;
}

.item-label h5 {
    font-size: .77rem;
    font-weight: 500;
    color: var(--clr-ink);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-label h5 a { color: var(--clr-ink); }
.item-label h5 a:hover { color: var(--clr-primary); }

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

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

.page-btns a.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr2);
    border-radius: var(--rnd2);
    font-size: .82rem;
    color: var(--clr-ink2);
    text-decoration: none;
    transition: all .16s;
}

.page-btns a.pbtn:hover {
    background: var(--clr-primary-bg);
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.page-btns a.pbtn-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
    border-radius: var(--rnd2);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.footer-link-box {
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

.ext-links dd { display: inline; }

.ext-links a {
    display: inline-block;
    font-size: .76rem;
    color: var(--clr-ink3);
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid var(--clr-bdr);
    background: var(--clr-bg2);
    text-decoration: none;
    transition: all .16s;
}

.ext-links a:hover { color: var(--clr-primary); border-color: var(--clr-primary); }

.site-copyright {
    text-align: center;
    padding: 7px 0 12px;
    color: var(--clr-ink3);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.entry-heading {
    line-height: 1.8;
    text-align: center;
    padding: 12px 14px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-left: 4px solid var(--clr-primary);
    border-radius: var(--rnd);
    box-shadow: var(--shd1);
}

.entry-heading a {
    color: var(--clr-primary);
    font-weight: 700;
    margin-right: 5px;
}

.entry-meta {
    font-size: .89rem;
    line-height: 1.95;
    padding: 14px 16px;
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    box-shadow: var(--shd1);
    margin: 4px 0;
}

.img-preview {
    display: block;
    width: 100%;
    margin-top: 9px;
}

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

/* ===== ACTION BUTTONS ===== */
.btn-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 11px 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 20px;
    background: var(--clr-teal);
    color: #fff;
    border: none;
    border-radius: var(--rnd2);
    font-size: .89rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.btn-action:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-1px);
}

.dl-notice {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.dl-notice a { color: var(--clr-teal); font-weight: 600; }
.dl-notice a:hover { color: var(--clr-primary); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-bg2);
    border: 1.5px solid var(--clr-bdr);
    border-radius: var(--rnd);
    padding: 7px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-strip .s-label { font-size: .76rem; color: var(--clr-ink3); white-space: nowrap; }
.share-strip .s-link-val { font-size: .78rem; color: var(--clr-ink2); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .s-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--clr-teal);
    color: #fff;
    border: none;
    border-radius: var(--rnd2);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.share-strip .s-copy-btn:hover { background: var(--clr-primary); }

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

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

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

    .identity-name { font-size: 1.04rem; }
    .url-capsule .uc-domain { font-size: .86rem; }

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

    .zone-tag {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .search-module form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .search-module input[type="text"] {
        height: 32px;
        font-size: .76rem;
        padding: 0 6px;
    }

    .search-module button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

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

    .cover-link { aspect-ratio: 600 / 350; }
    .item-label h5 { font-size: .71rem; }
    .sect-card { padding: 8px 8px 6px; }
    .btn-action { padding: 8px 13px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .zone-tag { font-size: 10px; }
    .nav-slot a { font-size: 12px; }
    .search-module button { padding: 0 4px; font-size: .67rem; }
}
