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

:root {
    --pu1:      #7b2ff7;
    --pu2:      #a855f7;
    --pu3:      #c678f0;
    --pu-dk:    #5b1fd4;
    --pu-lt:    #f3e8ff;
    --pu-soft:  #faf5ff;
    --pk1:      #d946a8;
    --pk2:      #e879c0;
    --pk-lt:    #fdf0f8;
    --grad:     linear-gradient(135deg, #7b2ff7 0%, #c463d8 55%, #d946a8 100%);
    --grad-lt:  linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    --bg:       #ffffff;
    --bg-soft:  #f9f8ff;
    --bg-muted: #f0ebff;
    --ink:      #1a1028;
    --ink2:     #3d2b5e;
    --ink3:     #7c6fa0;
    --ink4:     #b0a8c8;
    --rule:     #e8e0f8;
    --rule2:    #d8cef0;
    --sh1: 0 1px 4px rgba(123,47,247,.07);
    --sh2: 0 4px 18px rgba(123,47,247,.12);
    --sh3: 0 8px 32px rgba(123,47,247,.2);
    --rd:   10px;
    --rd-sm: 6px;
    --rd-lg: 16px;
    --rd-xl: 24px;
    --rd-pill: 50px;
}

html { font-size: 15px; }

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

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

/* ===== WRAPPER ===== */
.up-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.up-header {
    background: var(--bg);
    border-bottom: 1.5px solid var(--rule);
    padding: 9px 0;
    box-shadow: 0 2px 12px rgba(123,47,247,.07);
}

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

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

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

.up-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.4px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.up-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--grad);
    border-radius: var(--rd-pill);
    padding: 5px 17px;
    box-shadow: 0 4px 14px rgba(123,47,247,.28);
}

.up-domain-pill .dp-tag {
    font-size: 0.62rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}

.up-domain-pill .dp-val {
    font-size: 1.07rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.up-banner {
    margin: 4px 0 3px;
}
.up-banner img { border-radius: var(--rd-lg); width: 100%; }

/* ===== CATEGORY NAV ===== */
.up-nav-board {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

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

.up-nav-zone {
    background: var(--grad);
    color: rgba(255,255,255,.88);
    font-size: .67rem;
    font-weight: 800;
    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: .4px;
    flex-shrink: 0;
}

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

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

.up-nav-links a:hover {
    background: var(--pu-lt);
    color: var(--pu1);
    border-color: #d8b4fe;
}

.up-nav-links a.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

/* ===== SEARCH ===== */
.up-search {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 9px 16px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.up-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.up-search input[type="text"]::placeholder { color: var(--ink4); }

.up-search input[type="text"]:focus {
    border-color: var(--pu2);
    box-shadow: 0 0 0 3px rgba(168,85,247,.15);
    background: var(--bg);
}

.up-search button {
    height: 38px;
    padding: 0 15px;
    border: none;
    border-radius: var(--rd-pill);
    background: var(--bg-muted);
    color: var(--ink2);
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    border: 1.5px solid var(--rule2);
}

.up-search button:hover {
    background: var(--pu-lt);
    color: var(--pu1);
    border-color: var(--pu2);
}

.up-search button[value="1"] {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(123,47,247,.25);
}

.up-search button[value="1"]:hover {
    box-shadow: 0 4px 18px rgba(123,47,247,.4);
    filter: brightness(1.08);
}

.up-search button[value="2"] {
    background: var(--pk1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(217,70,168,.22);
}

.up-search button[value="2"]:hover { filter: brightness(1.1); }

/* ===== HOT TAGS ===== */
.up-hotwords {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.up-hotwords h4 {
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink2);
    margin-bottom: 6px;
}

.up-hw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.up-hw-tags .hw-tag {
    display: inline-block;
    background: var(--pu-soft);
    color: var(--pu1);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-pill);
    padding: 2px 12px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.up-hw-tags .hw-tag:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(123,47,247,.2);
}

/* ===== CONTENT SECTION ===== */
.up-section {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 14px 15px 12px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.up-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--rule);
    position: relative;
}

.up-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.5px;
    width: 36px;
    height: 2.5px;
    background: var(--grad);
    border-radius: 3px;
}

.up-sect-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink);
}

.up-sect-hd h3 a { color: var(--ink); }
.up-sect-hd h3 a:hover { color: var(--pu1); }

.up-sect-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}

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

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

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

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

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

.up-thumb:hover img { transform: scale(1.05); }

.up-card-foot {
    padding: 6px 9px 9px;
}

.up-card-foot h5 {
    font-size: .77rem;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.up-card-foot h5 a { color: var(--ink2); }
.up-card-foot h5 a:hover { color: var(--pu1); }

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

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

.up-pages-row a.upg {
    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(--rule2);
    border-radius: var(--rd-sm);
    font-size: .83rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.up-pages-row a.upg:hover {
    background: var(--pu-lt);
    border-color: var(--pu2);
    color: var(--pu1);
}

.up-pages-row a.upg-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--grad);
    border: 1.5px solid transparent;
    border-radius: var(--rd-sm);
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 3px 10px rgba(123,47,247,.3);
}

/* ===== FOOTER ===== */
.up-ftr {
    background: var(--ink);
    border-radius: var(--rd-lg);
    padding: 10px 15px;
    margin: 4px 0;
}

.up-ftr .up-sect-hd { border-bottom-color: rgba(255,255,255,.1); }
.up-ftr .up-sect-hd::after { background: var(--grad); }
.up-ftr .up-sect-hd h4 { color: rgba(255,255,255,.55); }

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

.up-flinks dd { display: inline; }

.up-flinks a {
    display: inline-block;
    font-size: .75rem;
    color: rgba(255,255,255,.38);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    text-decoration: none;
    transition: all .15s;
}

.up-flinks a:hover {
    color: #e0cfff;
    border-color: rgba(168,85,247,.4);
    background: rgba(168,85,247,.12);
}

.up-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .74rem;
}

/* ===== DETAIL PAGES ===== */
.up-entry-head {
    line-height: 1.8;
    padding: 12px 18px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-left: 4px solid var(--pu1);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
}

.up-entry-head a {
    font-size: .76rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.up-entry-head b { color: var(--ink); }

.up-entry-detail {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink2);
}

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

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

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

.up-op-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(123,47,247,.3);
}

.up-op-btn:hover {
    filter: brightness(1.1);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(123,47,247,.42);
}

.up-hint {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.up-hint a { color: var(--ink3); font-weight: 600; }
.up-hint a:hover { color: var(--pu1); }

/* ===== SHARE BAR ===== */
.up-share {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pu-soft);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 9px 15px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.up-share .ush-lbl { font-size: .73rem; color: var(--ink3); white-space: nowrap; font-weight: 600; }
.up-share .ush-url { font-size: .78rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.up-share .ush-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(123,47,247,.22);
}

.up-share .ush-btn:hover { filter: brightness(1.1); }

/* ===== VISIBILITY ===== */
.up-donly { display: block; }
.up-monly { display: none; }

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

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

    .up-sitename { font-size: 1.08rem; }
    .up-domain-pill .dp-val { font-size: .9rem; }

    .up-nav-row { align-items: stretch; }

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

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

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

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

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

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

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

    .up-thumb { aspect-ratio: 600 / 350; }
    .up-card-foot h5 { font-size: .71rem; }
    .up-section { padding: 10px 10px 8px; }
    .up-op-btn { padding: 9px 18px; font-size: .83rem; }
}

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

@media (max-width: 380px) {
    .up-nav-zone { font-size: 10px; }
    .up-nav-links a { font-size: 12px; }
    .up-search button { padding: 0 6px; font-size: .67rem; }
}
