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

:root {
    --px-orange: #f26522;
    --px-orange-dk: #d4521a;
    --px-orange-bg: #fff5ef;
    --px-orange-lt: #ffd8c0;
    --px-text: #222222;
    --px-text2: #444444;
    --px-text3: #999999;
    --px-surface: #ffffff;
    --px-body: #f7f5f2;
    --px-muted: #f0ece6;
    --px-border: #e4ddd4;
    --px-border2: #d0c8bc;
    --px-sh1: 0 1px 3px rgba(0,0,0,.06);
    --px-sh2: 0 3px 12px rgba(0,0,0,.08);
    --px-sh3: 0 6px 22px rgba(0,0,0,.12);
    --px-r: 6px;
    --px-r2: 4px;
    --px-r3: 10px;
    --px-pill: 20px;
}

html { font-size: 15px; }

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

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

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

/* ===== HEADER ===== */
.px-topnav {
    background: var(--px-surface);
    border-bottom: 2px solid var(--px-orange);
    padding: 10px 0;
    box-shadow: var(--px-sh1);
}

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

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

.px-logolink {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.px-sitename {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--px-orange);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
}

.px-domaintag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--px-orange-bg);
    border: 1.5px solid var(--px-orange-lt);
    border-radius: var(--px-pill);
    padding: 4px 13px;
}

.px-domaintag .pdt-note {
    font-size: 0.67rem;
    color: var(--px-orange);
    white-space: nowrap;
    font-weight: 600;
}

.px-domaintag .pdt-url {
    font-size: 1.07rem;
    font-weight: 800;
    color: var(--px-orange-dk);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.px-catbox {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-top: 3px solid var(--px-orange);
    border-radius: var(--px-r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--px-sh1);
}

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

.px-catline:last-child { border-bottom: none; }

.px-catlbl {
    background: var(--px-text);
    color: rgba(255,255,255,.80);
    font-size: .67rem;
    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,.1);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.px-catitems a {
    font-size: .82rem;
    color: var(--px-text2);
    padding: 4px 5px;
    border-radius: var(--px-pill);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.px-catitems a:hover {
    background: var(--px-orange-bg);
    color: var(--px-orange);
    border-color: var(--px-orange-lt);
}

.px-catitems a.active {
    background: var(--px-orange);
    color: #fff;
    border-color: var(--px-orange);
    font-weight: 700;
}

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

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

.px-searchzone input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--px-border2);
    border-radius: var(--px-pill);
    padding: 0 16px;
    font-size: .88rem;
    color: var(--px-text);
    background: var(--px-muted);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.px-searchzone input[type="text"]:focus {
    border-color: var(--px-orange);
    box-shadow: 0 0 0 3px rgba(242,101,34,.12);
    background: var(--px-surface);
}

.px-searchzone button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--px-pill);
    background: var(--px-text);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.px-searchzone button:hover { background: #333; }

.px-searchzone button[value="1"] { background: var(--px-orange); }
.px-searchzone button[value="1"]:hover { background: var(--px-orange-dk); }

.px-searchzone button[value="2"] { background: #7a6a5a; }
.px-searchzone button[value="2"]:hover { background: #5a4a3a; }

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

.px-tagzone h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--px-orange);
    margin-bottom: 5px;
}

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

.px-taglist .px-taglnk {
    display: inline-block;
    background: var(--px-muted);
    color: var(--px-text2);
    border: 1px solid var(--px-border2);
    border-radius: var(--px-pill);
    padding: 2px 11px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.px-taglist .px-taglnk:hover {
    background: var(--px-orange-bg);
    color: var(--px-orange);
    border-color: var(--px-orange-lt);
}

/* ===== CONTENT BLOCK ===== */
.px-channel {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-r3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--px-sh1);
}

.px-channel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--px-border);
    position: relative;
}

.px-channel-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--px-orange);
    border-radius: 1px;
}

.px-channel-hd h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--px-text);
}

.px-channel-hd h3 a { color: var(--px-text); }
.px-channel-hd h3 a:hover { color: var(--px-orange); }

.px-channel-hd h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--px-text);
}

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

.px-postlist li {
    border-radius: var(--px-r);
    overflow: hidden;
    border: 1px solid var(--px-border);
    background: var(--px-body);
    transition: box-shadow .18s, transform .18s;
    min-width: 0;
}

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

.px-postimg {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--px-border);
}

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

.px-postimg:hover img { transform: scale(1.05); }

.px-posttxt {
    padding: 5px 8px 7px;
    border-top: 2px solid transparent;
    transition: border-color .15s;
}

.px-postlist li:hover .px-posttxt { border-top-color: var(--px-orange); }

.px-posttxt h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--px-text);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.px-posttxt h5 a { color: var(--px-text); }
.px-posttxt h5 a:hover { color: var(--px-orange); }

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

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

.px-pgrow a.px-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--px-surface);
    border: 1.5px solid var(--px-border2);
    border-radius: var(--px-pill);
    font-size: .84rem;
    color: var(--px-text2);
    text-decoration: none;
    transition: all .15s;
}

.px-pgrow a.px-pgbtn:hover {
    background: var(--px-orange-bg);
    border-color: var(--px-orange);
    color: var(--px-orange);
}

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

/* ===== FOOTER ===== */
.px-footlinks {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-r3);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--px-sh1);
}

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

.px-flnkrow dd { display: inline; }

.px-flnkrow a {
    display: inline-block;
    font-size: .77rem;
    color: var(--px-text3);
    padding: 2px 9px;
    border-radius: var(--px-pill);
    border: 1px solid var(--px-border);
    background: var(--px-muted);
    text-decoration: none;
    transition: all .15s;
}

.px-flnkrow a:hover { color: var(--px-orange); border-color: var(--px-orange); background: var(--px-orange-bg); }

.px-footcopy {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--px-text3);
    font-size: .76rem;
}

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

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

.px-dtl-meta {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 17px;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-r);
    box-shadow: var(--px-sh1);
    margin: 4px 0;
}

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

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

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

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

.px-opbtn:hover {
    background: var(--px-orange-dk);
    color: #fff;
    transform: translateY(-1px);
}

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

.px-clihint a { color: var(--px-text); font-weight: 600; }
.px-clihint a:hover { color: var(--px-orange); }

/* ===== SHARE BAR ===== */
.px-sharezone {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--px-muted);
    border: 1px solid var(--px-border);
    border-radius: var(--px-r3);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.px-sharezone .psz-lbl { font-size: .77rem; color: var(--px-text3); white-space: nowrap; }
.px-sharezone .psz-url { font-size: .79rem; color: var(--px-text2); flex: 1; min-width: 0; word-break: break-all; }

.px-sharezone .psz-cpbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--px-orange);
    color: #fff;
    border: none;
    border-radius: var(--px-pill);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.px-sharezone .psz-cpbtn:hover { background: var(--px-orange-dk); }

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

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

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

    .px-sitename { font-size: 1.12rem; }
    .px-domaintag .pdt-url { font-size: .9rem; }

    .px-catline { align-items: stretch; }

    .px-catlbl {
        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;
    }

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

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

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

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

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

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

    .px-postimg { aspect-ratio: 600 / 350; }
    .px-posttxt h5 { font-size: .72rem; }
    .px-channel { padding: 9px 9px 7px; }
    .px-opbtn { padding: 9px 14px; font-size: .84rem; }
}

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

@media (max-width: 380px) {
    .px-catlbl { font-size: 10px; }
    .px-catitems a { font-size: 12px; }
    .px-searchzone button { padding: 0 5px; font-size: .68rem; }
}
