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

:root {
    --snow: #ffffff;
    --page-bg: #f4f4f8;
    --surface: #ffffff;
    --raised: #f9f9fc;
    --yp2: #6001d2;
    --yp2-mid: #7823e0;
    --yp2-dk: #4800a8;
    --yp2-wash: rgba(96,1,210,.08);
    --coal: #1a1a1a;
    --dim: #2c2c3a;
    --mute: #52525e;
    --faded: #8a8a98;
    --pale: #c0c0cc;
    --edge: #e4e4ee;
    --edge2: #d2d2e0;
    --el1: 0 1px 3px rgba(96,1,210,.06);
    --el2: 0 3px 12px rgba(96,1,210,.09);
    --el3: 0 6px 24px rgba(96,1,210,.13);
    --ro: 6px;
    --ro2: 4px;
    --ro3: 10px;
}

html { font-size: 15px; }

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

a { color: var(--dim); text-decoration: none; transition: color .15s; }
a:hover { color: var(--yp2); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.nx-cl::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.nx-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.nx-topnav {
    background: var(--snow);
    border-bottom: 1px solid var(--edge);
    padding: 10px 0;
    box-shadow: var(--el1);
}

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

.nx-logo-area {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

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

.nx-title {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--yp2);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
}

.nx-domain-node {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--raised);
    border: 1px solid var(--edge2);
    border-radius: 20px;
    padding: 4px 13px;
}

.nx-domain-node .ndn-tag {
    font-size: .67rem;
    color: var(--faded);
    white-space: nowrap;
}

.nx-domain-node .ndn-link {
    font-size: 1.07rem;
    font-weight: 800;
    color: var(--yp2);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.nx-navbar {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro3);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--el1);
}

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

.nx-navband:last-child { border-bottom: none; }

.nx-sector-lbl {
    background: var(--yp2);
    color: rgba(255,255,255,.88);
    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;
}

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

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

.nx-navlinks a:hover {
    background: var(--yp2-wash);
    color: var(--yp2);
    border-color: rgba(96,1,210,.18);
}

.nx-navlinks a.active {
    background: var(--yp2);
    color: #fff;
    border-color: var(--yp2);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.nx-finder {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro3);
    padding: 7px 11px;
    margin: 3px 0;
    box-shadow: var(--el1);
}

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

.nx-finder input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--edge2);
    border-radius: 18px;
    padding: 0 16px;
    font-size: .86rem;
    color: var(--coal);
    background: var(--page-bg);
    outline: none;
    transition: border-color .18s, background .18s;
}

.nx-finder input[type="text"]::placeholder { color: var(--pale); }
.nx-finder input[type="text"]:focus {
    border-color: var(--yp2);
    background: var(--snow);
}

.nx-finder button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--ro2);
    background: var(--dim);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.nx-finder button:hover { background: var(--coal); }

.nx-finder button[value="1"] {
    background: var(--yp2);
    color: #fff;
    font-weight: 700;
    border-radius: 18px;
}
.nx-finder button[value="1"]:hover { background: var(--yp2-dk); }

.nx-finder button[value="2"] {
    background: var(--snow);
    color: var(--yp2);
    font-weight: 700;
    border: 1.5px solid var(--yp2);
    border-radius: var(--ro2);
}
.nx-finder button[value="2"]:hover { background: var(--yp2-wash); }

/* ===== HOT TAGS ===== */
.nx-trending {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro3);
    padding: 6px 11px;
    margin: 3px 0;
    box-shadow: var(--el1);
}

.nx-trending h4 {
    font-size: .74rem;
    font-weight: 700;
    color: var(--faded);
    margin-bottom: 5px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.nx-trending h4 strong { color: var(--yp2); }

.nx-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nx-tagcloud .nxtg {
    display: inline-block;
    background: var(--raised);
    color: var(--mute);
    border: 1px solid var(--edge2);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: .73rem;
    text-decoration: none;
    transition: all .15s;
}

.nx-tagcloud .nxtg:hover {
    background: var(--yp2-wash);
    color: var(--yp2);
    border-color: rgba(96,1,210,.22);
}

/* ===== CONTENT SECTION ===== */
.nx-block {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro3);
    padding: 12px 12px 10px;
    margin: 3px 0;
    box-shadow: var(--el1);
}

.nx-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--edge);
    position: relative;
}

.nx-block-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--yp2);
    border-radius: 2px;
    margin-left: -12px;
}

.nx-block-head h3 {
    font-size: .96rem;
    font-weight: 800;
    color: var(--coal);
    padding-left: 2px;
}

.nx-block-head h3 a { color: var(--coal); }
.nx-block-head h3 a:hover { color: var(--yp2); }

.nx-block-head h4 {
    font-size: .94rem;
    font-weight: 800;
    color: var(--coal);
}

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

.nx-vidgrid li {
    border-radius: var(--ro);
    overflow: hidden;
    border: 1px solid var(--edge);
    background: var(--raised);
    transition: box-shadow .2s, border-color .2s;
}

.nx-vidgrid li:hover {
    box-shadow: var(--el3);
    border-color: rgba(96,1,210,.3);
}

.nx-imglink {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--page-bg);
}

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

.nx-imglink:hover img { transform: scale(1.04); }

.nx-imgtag {
    padding: 4px 6px 6px;
    border-top: 2px solid transparent;
    transition: border-color .2s;
}

.nx-vidgrid li:hover .nx-imgtag { border-top-color: var(--yp2); }

.nx-imgtag h5 {
    font-size: .75rem;
    font-weight: 400;
    color: var(--mute);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nx-imgtag h5 a { color: var(--mute); }
.nx-imgtag h5 a:hover { color: var(--yp2); }

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

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

.nx-pgrow a.nxpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--surface);
    border: 1.5px solid var(--edge2);
    border-radius: var(--ro2);
    font-size: .81rem;
    color: var(--mute);
    text-decoration: none;
    transition: all .15s;
}

.nx-pgrow a.nxpg:hover {
    background: var(--yp2-wash);
    border-color: var(--yp2);
    color: var(--yp2);
}

.nx-pgrow a.nxpg-sel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--yp2);
    border: 1.5px solid var(--yp2);
    border-radius: var(--ro2);
    font-size: .81rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.nx-flinks-row {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--el1);
}

.nx-fldl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nx-fldl dd { display: inline; }

.nx-fldl a {
    display: inline-block;
    font-size: .74rem;
    color: var(--pale);
    padding: 2px 8px;
    border-radius: var(--ro2);
    border: 1px solid var(--edge);
    background: var(--page-bg);
    text-decoration: none;
    transition: all .15s;
}

.nx-fldl a:hover { color: var(--yp2); border-color: rgba(96,1,210,.25); }

.nx-footer-copy {
    text-align: center;
    padding: 7px 0 13px;
    color: var(--pale);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.nx-detail-ttl {
    line-height: 1.8;
    text-align: center;
    padding: 11px 14px;
    font-size: .96rem;
    margin: 3px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-left: 4px solid var(--yp2);
    border-radius: var(--ro);
    box-shadow: var(--el1);
    color: var(--coal);
}

.nx-detail-ttl a {
    color: var(--yp2);
    font-weight: 700;
    margin-right: 6px;
}

.nx-detail-info {
    font-size: .88rem;
    line-height: 2;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--ro);
    box-shadow: var(--el1);
    margin: 3px 0;
    color: var(--mute);
}

.nx-screenshot {
    display: block;
    width: 100%;
    margin-top: 9px;
}

.nx-screenshot picture,
.nx-screenshot img {
    width: 100%;
    height: auto;
    border-radius: var(--ro2);
    display: block;
}

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

.nx-abtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--yp2);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    text-decoration: none;
    letter-spacing: .2px;
}

.nx-abtn:hover {
    background: var(--yp2-dk);
    color: #fff;
    transform: translateY(-1px);
}

.nx-client-tip {
    text-align: center;
    padding: 6px;
    font-size: .8rem;
}

.nx-client-tip a { color: var(--faded); font-weight: 600; }
.nx-client-tip a:hover { color: var(--yp2); }

/* ===== SHARE ===== */
.nx-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--raised);
    border: 1px solid var(--edge);
    border-radius: var(--ro);
    padding: 7px 12px;
    margin: 3px 0;
    flex-wrap: wrap;
}

.nx-share-bar .nsb-lbl { font-size: .73rem; color: var(--pale); white-space: nowrap; }
.nx-share-bar .nsb-url { font-size: .76rem; color: var(--mute); flex: 1; min-width: 0; word-break: break-all; }

.nx-share-bar .nsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--yp2);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.nx-share-bar .nsb-btn:hover { background: var(--yp2-dk); }

/* ===== VIS HELPERS ===== */
.nx-showpc { display: block; }
.nx-showmb { display: none; }

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

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

    .nx-title { font-size: 1.07rem; }
    .nx-domain-node .ndn-link { font-size: .9rem; }

    .nx-navband { align-items: stretch; }

    .nx-sector-lbl {
        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;
    }

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

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

    /* Search: NO wrap, all in one row */
    .nx-finder form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .nx-finder input[type="text"] {
        height: 32px;
        font-size: .77rem;
        padding: 0 9px;
        border-radius: 16px;
    }

    .nx-finder button {
        height: 32px;
        padding: 0 6px;
        font-size: .72rem;
    }

    .nx-vidgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .nx-imglink { aspect-ratio: 600 / 350; }
    .nx-imgtag h5 { font-size: .7rem; }
    .nx-block { padding: 8px 8px 6px; }
    .nx-abtn { padding: 8px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nx-sector-lbl { font-size: 10px; }
    .nx-navlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .nx-sector-lbl { font-size: 10px; }
    .nx-navlinks a { font-size: 12px; }
    .nx-finder button { padding: 0 4px; font-size: .66rem; }
}
