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

:root {
    --cream: #f2efe9;
    --cream2: #edeae3;
    --cream3: #e4e0d8;
    --white: #ffffff;
    --ink: #111111;
    --ink2: #333333;
    --ink3: #666666;
    --ink4: #999999;
    --rule: #d8d4cc;
    --rule2: #c8c4bc;
    --rose: #c0392b;
    --rose-dk: #96281b;
    --rose-lt: #fdf0ee;
    --gold: #b8860b;
    --ev1: 0 1px 3px rgba(0,0,0,.06);
    --ev2: 0 2px 8px rgba(0,0,0,.09);
    --ev3: 0 4px 18px rgba(0,0,0,.12);
    --rx: 3px;
    --rx2: 2px;
    --rx3: 4px;
}

html { font-size: 15px; }

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

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

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

/* ===== SITE MASTHEAD ===== */
.site-masthead {
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    padding: 11px 0;
}

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

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

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

.masthead-name {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--ink);
    font-style: normal;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.url-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    padding: 5px 14px;
}

.url-capsule .uc-tag {
    font-size: 0.64rem;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.url-capsule .uc-domain {
    font-size: 1.0rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .2px;
}

/* ===== BANNER ===== */
.promo-banner {
    margin: 5px 0 3px;
}
.promo-banner img { width: 100%; }

/* ===== CATEGORY NAVIGATION ===== */
.nav-board {
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--ink);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--ev1);
}

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

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

.zone-label {
    background: var(--ink);
    color: rgba(255,255,255,.85);
    font-size: .65rem;
    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,.12);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

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

.nav-items a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink2);
    padding: 4px 6px;
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    letter-spacing: .2px;
}

.nav-items a:hover {
    background: var(--cream2);
    color: var(--ink);
    border-color: var(--rule2);
}

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

/* ===== SEARCH BAR ===== */
.qry-bar {
    background: var(--white);
    border: 1.5px solid var(--rule);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--ev1);
}

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

.qry-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--rule2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--ink);
    background: var(--cream);
    outline: none;
    transition: border-color .18s;
}

.qry-bar input[type="text"]:focus {
    border-color: var(--ink);
    background: var(--white);
}

.qry-bar button {
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, color .16s;
    flex-shrink: 0;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.qry-bar button:hover {
    background: var(--white);
    color: var(--ink);
}

.qry-bar button[value="1"] {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}
.qry-bar button[value="1"]:hover {
    background: var(--rose-dk);
    border-color: var(--rose-dk);
}

.qry-bar button[value="2"] {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.qry-bar button[value="2"]:hover {
    background: #8a6308;
    border-color: #8a6308;
}

/* ===== TRENDING TAGS ===== */
.trending-strip {
    background: var(--white);
    border: 1.5px solid var(--rule);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--ev1);
}

.trending-strip h4 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

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

.pill-row .kw-pill {
    display: inline-block;
    background: var(--cream2);
    color: var(--ink2);
    border: 1px solid var(--rule);
    padding: 2px 10px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .16s;
}

.pill-row .kw-pill:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ===== CONTENT PANEL ===== */
.content-panel {
    background: var(--white);
    border: 1.5px solid var(--rule);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--ev1);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--ink);
}

.panel-head h3 {
    font-size: 1.0rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.panel-head h3 a { color: var(--ink); }
.panel-head h3 a:hover { color: var(--rose); }

.panel-head h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .3px;
}

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

.item-grid li {
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--cream);
    transition: box-shadow .2s, transform .2s;
}

.item-grid li:hover {
    box-shadow: var(--ev3);
    transform: translateY(-2px);
}

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

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

.item-cover:hover img { transform: scale(1.04); }

.item-label {
    padding: 5px 7px 7px;
    border-top: 1px solid var(--rule);
}

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

.item-label h5 a { color: var(--ink2); }
.item-label h5 a:hover { color: var(--rose); }

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

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

.pg-controls a.pga {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--white);
    border: 1.5px solid var(--rule2);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink2);
    text-decoration: none;
    transition: all .16s;
}

.pg-controls a.pga:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.pg-controls a.pga-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--ink);
    border: 1.5px solid var(--ink);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.foot-links-wrap {
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-top: 2px solid var(--ink);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--ev1);
}

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

.foot-links-list dd { display: inline; }

.foot-links-list a {
    display: inline-block;
    font-size: .75rem;
    color: var(--ink4);
    padding: 2px 9px;
    border: 1px solid var(--rule);
    background: var(--cream2);
    text-decoration: none;
    transition: all .16s;
    font-weight: 500;
}

.foot-links-list a:hover { color: var(--ink); border-color: var(--ink); }

.copy-notice {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .74rem;
}

/* ===== DETAIL PAGE ===== */
.dtl-hed {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--ink);
    box-shadow: var(--ev1);
}

.dtl-hed a {
    color: var(--rose);
    font-weight: 700;
    margin-right: 6px;
}

.dtl-body {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--white);
    border: 1.5px solid var(--rule);
    box-shadow: var(--ev1);
    margin: 5px 0;
}

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

.snap-box picture,
.snap-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.get-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.get-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 24px;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, color .18s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.get-btn:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

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

.app-hint a { color: var(--ink2); font-weight: 600; }
.app-hint a:hover { color: var(--rose); }

/* ===== SHARE BAR ===== */
.shr-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--cream2);
    border: 1.5px solid var(--rule);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.shr-row .sr-lbl { font-size: .75rem; color: var(--ink4); white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.shr-row .sr-url { font-size: .78rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.shr-row .sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, color .16s;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.shr-row .sr-btn:hover {
    background: var(--white);
    color: var(--ink);
}

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

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

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

    .masthead-name { font-size: 1.1rem; }
    .url-capsule .uc-domain { font-size: .9rem; }

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

    .zone-label {
        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;
        text-transform: none;
    }

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

    .nav-items a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        text-transform: none;
        letter-spacing: 0;
    }

    .qry-bar form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

    .qry-bar button {
        height: 34px;
        padding: 0 7px;
        font-size: .72rem;
        text-transform: none;
    }

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

    .item-cover { aspect-ratio: 600 / 350; }
    .item-label h5 { font-size: .72rem; }
    .content-panel { padding: 9px 9px 7px; }
    .get-btn { padding: 9px 14px; font-size: .82rem; }
}

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

@media (max-width: 380px) {
    .zone-label { font-size: 10px; }
    .nav-items a { font-size: 12px; }
    .qry-bar button { padding: 0 5px; font-size: .66rem; }
}
