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

:root {
    --white: #ffffff;
    --surface: #f5f6fa;
    --surface2: #eceef5;
    --primary: #1a3a6b;
    --primary-dk: #102550;
    --primary-md: #254d8f;
    --accent: #e85d1a;
    --accent-dk: #c44810;
    --accent-lt: #fef1ea;
    --highlight: #f0a500;
    --body-txt: #18182e;
    --sub-txt: #484862;
    --muted-txt: #8888a6;
    --border: #e2e4ef;
    --border2: #d0d3e6;
    --sh1: 0 1px 5px rgba(26,58,107,.07);
    --sh2: 0 4px 14px rgba(26,58,107,.10);
    --sh3: 0 8px 28px rgba(26,58,107,.14);
    --rad: 9px;
    --rad-sm: 5px;
    --rad-lg: 15px;
}

html { font-size: 15px; }

body {
    background: var(--surface);
    color: var(--body-txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
    line-height: 1.65;
}

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

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

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

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

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

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

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

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

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

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

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

/* ===== CATEGORY NAV ===== */
.cat-nav-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

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

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

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

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

.cat-links-grid a {
    font-size: .82rem;
    color: var(--sub-txt);
    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-grid a:hover {
    background: var(--accent-lt);
    color: var(--accent);
    border-color: #f5b89e;
}

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

/* ===== SEARCH ===== */
.search-wrap {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 37px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rad-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--body-txt);
    background: var(--surface);
    outline: none;
    transition: border-color .2s;
}

.search-wrap input[type="text"]:focus {
    border-color: var(--accent);
    background: var(--white);
}

.search-wrap button {
    height: 37px;
    padding: 0 12px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    flex-shrink: 0;
}

.search-wrap button:hover { background: var(--primary-md); }

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

.search-wrap button[value="2"] { background: var(--highlight); }
.search-wrap button[value="2"]:hover { background: #c88200; }

/* ===== HOT TAGS ===== */
.hot-tags-wrap {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 13px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

.hot-tags-wrap h4 {
    font-size: .80rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

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

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

.tag-items .tag-item:hover {
    background: var(--accent-lt);
    color: var(--accent);
    border-color: #f5b89e;
}

/* ===== CONTENT SECTION ===== */
.content-block {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad-lg);
    padding: 14px 14px 11px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

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

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

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

.block-heading h3 a { color: var(--primary); }
.block-heading h3 a:hover { color: var(--accent); }

.block-heading h4 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--primary);
}

/* ===== FILM 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(--rad);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    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(--surface2);
}

.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(--body-txt);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

/* ===== PAGINATION ===== */
.pager-nav {
    margin: 15px 0 7px;
    display: flex;
    justify-content: center;
}

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

.pager-btns a.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: var(--rad-sm);
    font-size: .84rem;
    color: var(--sub-txt);
    text-decoration: none;
    transition: all .18s;
}

.pager-btns a.pg-btn:hover {
    background: var(--accent-lt);
    border-color: var(--accent);
    color: var(--accent);
}

.pager-btns a.pg-btn-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: var(--rad-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.foot-links-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 10px 14px;
    margin: 5px 0;
    box-shadow: var(--sh1);
}

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

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

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

.foot-link-list a:hover { color: var(--accent); border-color: var(--accent); }

.copyright-row {
    text-align: center;
    padding: 9px 0 15px;
    color: var(--muted-txt);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 14px 16px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
}

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

.detail-meta {
    font-size: .90rem;
    line-height: 1.95;
    padding: 16px 19px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    box-shadow: var(--sh1);
    margin: 5px 0;
}

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

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

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

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

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

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

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

/* ===== SHARE ===== */
.share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--rad);
    padding: 8px 14px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-row .share-label { font-size: .77rem; color: var(--muted-txt); white-space: nowrap; }
.share-row .share-url { font-size: .79rem; color: var(--sub-txt); flex: 1; min-width: 0; word-break: break-all; }

.share-row .share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--rad-sm);
    font-size: .80rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}

.share-row .share-copy-btn:hover { background: var(--accent); }

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

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

    .site-title { font-size: 1.08rem; }
    .domain-badge .badge-val { font-size: .90rem; }

    .cat-nav-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;
    }

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

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

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

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

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

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

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