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

:root {
    --surface: #ffffff;
    --surface-soft: #f3f2f8;
    --surface-muted: #eae8f4;
    --purple: #6264a7;
    --purple-dk: #464775;
    --purple-lt: #7b83eb;
    --purple-bg: #eef0fb;
    --accent: #9c4f96;
    --accent-lt: #c77fc2;
    --teal: #237b6a;
    --text-main: #201f1e;
    --text-sub: #484644;
    --text-dim: #8a8886;
    --border: #e1dfdd;
    --border2: #c8c6c4;
    --shd1: 0 1px 4px rgba(98,100,167,.08);
    --shd2: 0 3px 10px rgba(98,100,167,.13);
    --shd3: 0 6px 22px rgba(98,100,167,.18);
    --rad: 8px;
    --rad-sm: 4px;
    --rad-lg: 12px;
}

html { font-size: 15px; }

body {
    background: var(--surface-soft);
    color: var(--text-main);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Segoe UI',Arial,sans-serif;
    line-height: 1.6;
}

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

/* ===== CONTAINER ===== */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.site-head {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: var(--shd1);
}

.site-head .main-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

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

.site-title-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -.3px;
    text-decoration: none;
    font-style: normal;
    border-bottom: none;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--purple);
    border-radius: 20px;
    padding: 4px 13px;
}

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

.domain-badge .badge-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.cat-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

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

.zone-tag {
    background: var(--purple-dk);
    color: rgba(255,255,255,.85);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 60px;
    min-width: 60px;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    line-height: 1.35;
    letter-spacing: .3px;
    flex-shrink: 0;
    word-break: break-all;
}

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

.cat-links-area a {
    font-size: .82rem;
    color: var(--text-sub);
    padding: 3px 5px;
    border-radius: var(--rad-sm);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.cat-links-area a:hover {
    background: var(--purple-bg);
    color: var(--purple);
    border-color: #b8bce8;
}

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

/* ===== SEARCH BOX ===== */
.search-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--border2);
    border-radius: var(--rad-sm);
    padding: 0 11px;
    font-size: .88rem;
    color: var(--text-main);
    background: var(--surface-soft);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-box input[type="text"]:focus {
    border-color: var(--purple);
    background: var(--surface);
    box-shadow: 0 0 0 2px rgba(98,100,167,.15);
}

.search-box button {
    height: 36px;
    padding: 0 11px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--purple-dk);
    color: #fff;
    font-size: .81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.search-box button:hover { background: var(--purple); }

.search-box button[value="1"] { background: var(--purple); }
.search-box button[value="1"]:hover { background: var(--purple-lt); }

.search-box button[value="2"] { background: var(--accent); }
.search-box button[value="2"]:hover { background: var(--accent-lt); }

/* ===== HOT TAGS ===== */
.tag-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

.tag-block h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--purple-dk);
    margin-bottom: 5px;
}

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

.tag-items .tg {
    display: inline-block;
    background: var(--surface-soft);
    color: var(--text-sub);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.tag-items .tg:hover {
    background: var(--purple-bg);
    color: var(--purple);
    border-color: #b8bce8;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad-lg);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

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

.block-heading h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--purple-dk);
}

.block-heading h3 a { color: var(--purple-dk); }
.block-heading h3 a:hover { color: var(--purple); }

.block-heading h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--purple-dk);
}

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

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

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

.media-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--surface-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(--text-main);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.media-info h5 a { color: var(--text-main); }
.media-info h5 a:hover { color: var(--purple); }

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

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

.page-buttons a.pb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 33px;
    padding: 0 9px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--rad-sm);
    font-size: .83rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: all .18s;
}

.page-buttons a.pb:hover {
    background: var(--purple-bg);
    border-color: var(--purple);
    color: var(--purple);
}

.page-buttons a.pb-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 33px;
    padding: 0 9px;
    background: var(--purple);
    border: 1px solid var(--purple);
    border-radius: var(--rad-sm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.footer-links-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 9px 12px;
    margin: 4px 0;
    box-shadow: var(--shd1);
}

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

.fl-list dd { display: inline; }

.fl-list a {
    display: inline-block;
    font-size: .76rem;
    color: var(--text-dim);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    text-decoration: none;
    transition: all .18s;
}

.fl-list a:hover { color: var(--purple); border-color: var(--purple); }

.copyright-bar {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--text-dim);
    font-size: .75rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple);
    border-radius: var(--rad);
    box-shadow: var(--shd1);
}

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

.detail-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 14px 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    box-shadow: var(--shd1);
    margin: 4px 0;
}

.capture-wrap {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.capture-wrap picture,
.capture-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    display: block;
}

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

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

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

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

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

/* ===== SHARE BAR ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 12px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.share-strip .ss-label { font-size: .76rem; color: var(--text-dim); white-space: nowrap; }
.share-strip .ss-url { font-size: .79rem; color: var(--text-sub); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--purple-dk);
    color: #fff;
    border: none;
    border-radius: var(--rad-sm);
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

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

/* ===== VISIBILITY ===== */
.pc-only { display: block; }
.mob-only { display: none; }

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

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

    .site-title-text { font-size: 1.05rem; }
    .domain-badge .badge-val { font-size: .88rem; }

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

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

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

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

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

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

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

    .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; }
    .action-btn { padding: 9px 13px; font-size: .84rem; }
}

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

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