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

:root {
    --bg: #ffffff;
    --bg-soft: #f4f7f8;
    --bg-muted: #e8eef0;
    --teal: #2bb5a0;
    --teal-dk: #1e9b88;
    --teal-lt: #e6f7f5;
    --coral: #e8392a;
    --coral-dk: #c82d1f;
    --coral-bg: #fef0ee;
    --slate: #2c3e50;
    --slate-dk: #1a252f;
    --slate-md: #3d5166;
    --txt: #1c2b36;
    --txt2: #4a5f6e;
    --txt3: #8fa3ae;
    --bdr: #dde6ea;
    --bdr2: #c8d6dc;
    --sh1: 0 1px 3px rgba(44,62,80,.06);
    --sh2: 0 3px 10px rgba(44,62,80,.10);
    --sh3: 0 6px 20px rgba(44,62,80,.14);
    --rd: 6px;
    --rd2: 4px;
    --rd3: 10px;
}

html { font-size: 15px; }

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

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

/* ===== PAGE WRAPPER ===== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.top-header {
    background: var(--bg);
    border-bottom: 3px solid var(--teal);
    padding: 10px 0;
    box-shadow: var(--sh1);
}

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

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

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

.brand-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--coral);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    border-radius: 24px;
    padding: 5px 15px;
}

.domain-badge .db-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

.domain-badge .db-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAVIGATION ===== */
.cate-nav {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

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

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

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

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

.zone-links a:hover {
    background: var(--teal-lt);
    color: var(--teal-dk);
    border-color: #a8ddd7;
}

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

/* ===== SEARCH AREA ===== */
.search-area {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.search-area input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--bdr2);
    border-radius: var(--rd2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s;
}

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

.search-area button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rd2);
    background: var(--slate);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .17s;
    flex-shrink: 0;
}

.search-area button:hover { background: var(--slate-md); }

.search-area button[value="1"] { background: var(--coral); }
.search-area button[value="1"]:hover { background: var(--coral-dk); }

.search-area button[value="2"] { background: var(--teal); }
.search-area button[value="2"]:hover { background: var(--teal-dk); }

/* ===== HOT TAGS ===== */
.trending-box {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.trending-box h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 5px;
}

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

.tag-row .tg {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--txt2);
    border: 1px solid var(--bdr2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .17s;
}

.tag-row .tg:hover {
    background: var(--teal-lt);
    color: var(--teal-dk);
    border-color: #a8ddd7;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd3);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

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

.block-header h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--slate);
}

.block-header h3 a { color: var(--slate); }
.block-header h3 a:hover { color: var(--teal); }

.block-header h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--slate);
}

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

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

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

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

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

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

.media-info {
    padding: 5px 7px 7px;
}

.media-info 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;
}

.media-info h5 a { color: var(--txt); }
.media-info h5 a:hover { color: var(--teal); }

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

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

.page-btns a.pbn {
    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(--bdr2);
    border-radius: var(--rd2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .17s;
}

.page-btns a.pbn:hover {
    background: var(--teal-lt);
    border-color: var(--teal);
    color: var(--teal-dk);
}

.page-btns a.pbn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: var(--rd2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.foot-links-area {
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

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

.flink-list dd { display: inline; }

.flink-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--bdr);
    background: var(--bg-soft);
    text-decoration: none;
    transition: all .17s;
}

.flink-list a:hover { color: var(--teal); border-color: var(--teal); }

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

/* ===== DETAIL PAGES ===== */
.detail-heading {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-left: 4px solid var(--teal);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
}

.detail-heading a {
    color: var(--teal);
    font-weight: 700;
    margin-right: 6px;
}

.detail-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    box-shadow: var(--sh1);
    margin: 5px 0;
}

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

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

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

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

.act-btn:hover {
    background: var(--coral);
    color: #fff;
    transform: translateY(-1px);
}

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

.client-hint a { color: var(--slate); font-weight: 600; }
.client-hint a:hover { color: var(--teal); }

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-soft);
    border: 1.5px solid var(--bdr);
    border-radius: var(--rd);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-strip .ss-lbl { font-size: .77rem; color: var(--txt3); 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(--teal);
    color: #fff;
    border: none;
    border-radius: var(--rd2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .17s;
    flex-shrink: 0;
}

.share-strip .ss-btn:hover { background: var(--coral); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .media-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; }

    .brand-title { font-size: 1.06rem; }
    .domain-badge .db-value { font-size: .9rem; }

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

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

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

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

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

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

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

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

    .media-cover { aspect-ratio: 600 / 350; }
    .media-info h5 { font-size: .72rem; }
    .content-block { padding: 9px 9px 7px; }
    .act-btn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .zone-tag { font-size: 10px; }
    .zone-links a { font-size: 12px; }
    .search-area button { padding: 0 5px; font-size: .68rem; }
}
