/* Shared shell adapted from the supplied September 2026 design.
 * Keep existing navigation, search, account and drawer event selectors intact.
 * Page-specific layouts below retain their own structure. */
:root {
    --ui-v2-shell-width: 1440px;
    --ui-v2-mobile-gutter: 12px;
    --ui-v2-gutter: clamp(12px, 3vw, 28px);
    --ui-v2-surface: #17171e;
    --ui-v2-line: rgba(255, 255, 255, .07);
    --ui-v2-muted: #a9a9b6;
}

#app-header.app-header-shell {
    --dx-header-height: 64px;
    --ui-v2-header-bg: rgba(11, 11, 15, .72);
    position: sticky;
    top: 0;
    z-index: var(--dx-header-index);
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--ui-v2-header-bg);
    border-bottom: 1px solid var(--ui-v2-line);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
}
#app-header.app-header-shell .header {
    position: static;
    width: 100%;
    max-width: none;
    background: transparent;
}
#app-header.app-header-shell .app-header-container,
#app-footer .footer-container,
main.dx-container {
    width: 100%;
    max-width: var(--ui-v2-shell-width);
    margin-inline: auto;
    padding-inline: var(--ui-v2-gutter);
    box-sizing: border-box;
}
#app-header.app-header-shell .app-header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1.4vw, 18px);
    min-height: var(--dx-header-height);
    width: 100%;
    position: relative;
}
#app-header.app-header-shell .app-header-logo { flex: none; }
#app-header.app-header-shell .app-header-logo .app-logo {
    display: block;
    width: auto;
    height: 46px;
}
#app-header.app-header-shell .btn-menu-collapse,
#app-header.app-header-shell .btn-open-search { display: none; }
#app-header.app-header-shell .app-header-search {
    display: flex;
    flex: 1 1 180px;
    min-width: 0;
    margin-left: auto;
}
#app-header.app-header-shell .app-header-search-control {
    position: relative;
    width: 100%;
    height: 40px;
    border: 1px solid var(--ui-v2-line);
    border-radius: 999px;
    background: var(--ui-v2-surface);
}
#app-header.app-header-shell .input-control-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    z-index: 1;
    pointer-events: none;
}
#app-header.app-header-shell .app-header-search-icon { width: 16px; height: 16px; }
#app-header.app-header-shell .app-header-search-control .form-control {
    width: 100%;
    height: 100%;
    padding: 0 76px 0 40px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #f4f4f6;
    font-size: 13px;
}
#app-header.app-header-shell .form-control::placeholder { color: #6f6f7e; }
#app-header.app-header-shell .app-header-search-control:focus-within { border-color: rgba(255,255,255,.22); }
#app-header.app-header-shell .header-search-submit {
    position: absolute;
    top: 3px;
    right: 3px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: #1e1e27;
    color: var(--ui-v2-muted);
    font-size: 13px;
}
#app-header.app-header-shell .app-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.app-auth .auth-btn {
    height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
    font-size: 14px; font-weight: 600; color: var(--ui-v2-muted);
    background: transparent; border: 1px solid rgba(255,255,255,.14);
    cursor: pointer; transition: color .18s, border-color .18s;
}
.app-auth .auth-btn:hover, .app-auth .user-chip:hover { color: #fff; border-color: var(--dx-primary-color); }
.app-auth .user-chip {
    display: none; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px;
    border-radius: 999px; background: var(--ui-v2-surface); border: 1px solid rgba(255,255,255,.14);
    color: #f4f4f6; font-size: 14px; font-weight: 600; text-decoration: none;
}
.app-auth .user-chip__avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#ff2f6d,#ff6b3a); }
.app-auth .user-chip__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-auth .user-chip__name { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-auth .auth-logout { display: none; color: var(--ui-v2-muted); font-size: 13px; white-space: nowrap; }
.app-auth a:focus-visible, .app-auth button:focus-visible { outline: 2px solid var(--dx-primary-color); outline-offset: 3px; }
html.is-authed .app-auth .auth-btn { display: none; }
html.is-authed .app-auth .user-chip { display: inline-flex; }
html.is-authed .app-auth .auth-logout { display: inline-block; }
html.is-auth-pending .app-auth .auth-btn,
html.is-auth-pending .app-auth .user-chip,
html.is-auth-pending .app-auth .auth-logout { visibility: hidden; }
.drawer__auth { display: flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; }
.drawer__auth .auth-btn { flex: 1; height: 40px; }
.drawer__auth .user-chip { flex: 1; min-width: 0; height: 44px; }
#app-header .hot-search { top: calc(100% + 8px); }
#app-header .popover { border-radius: 12px; }
#app-header .popover-content { background: var(--ui-v2-surface); }
#app-header .app-header-mobile-label { display: none; }

#app-nav.app-nav-shell { position: relative; display: block; flex: 0 1 auto; min-width: 0; }
#app-nav .app-nav-container { width: 100%; }
#app-nav.app-nav-shell .app-nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#app-nav.app-nav-shell .app-nav-list::-webkit-scrollbar { display: none; }
#app-nav.app-nav-shell .app-nav-item-wrap { position: relative; flex: none; height: 64px; }
#app-nav.app-nav-shell .app-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    padding: 0 clamp(9px, 1vw, 14px);
    color: var(--ui-v2-muted);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    white-space: nowrap;
    border: 0;
    background: transparent;
}
#app-nav.app-nav-shell .app-nav-item-wrap.is-active > .app-nav-item { font-weight: 700; }
#app-nav.app-nav-shell .app-nav-item-wrap.is-active > .app-nav-item,
#app-nav.app-nav-shell .app-nav-item:hover { color: #f4f4f6; }
#app-nav .app-nav-item-wrap.is-active > .app-nav-item::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--dx-primary-color), #ff7a3d);
    border-radius: 2px 2px 0 0;
}
.dx-drawer { background: #141419; }
.dx-drawer .app-logo--drawer { height: 38px; width: auto; }
.dx-drawer .dx-collapse, .dx-drawer .bg-base5 { border-radius: 10px; }

#app-footer .footer-main {
    --footer-gap: clamp(20px, 3vw, 40px);
    background: #141419;
    border-top: 1px solid var(--ui-v2-line);
    margin-top: 24px;
    padding: clamp(24px, 2.5vw, 36px) 0 24px;
}
#app-footer .footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--footer-gap); }
#app-footer .footer-brand { min-width: 0; }
#app-footer .footer-logo { display: inline-block; vertical-align: top; }
#app-footer .footer-logo img { display: block; height: 54px; width: auto; }
#app-footer .footer-description { margin: 12px 0 0; max-width: 40ch; font-size: 13px; line-height: 1.8; color: var(--ui-v2-muted); }
#app-footer .footer-address { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--ui-v2-muted); }
#app-footer .footer-address p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 0 0 9px; }
#app-footer .footer-address span { flex-shrink: 0; }
#app-footer .footer-address a { min-width: 0; color: #ffb03a; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .18s; }
#app-footer .footer-address a:hover { color: #fff; }
#app-footer .footer-nav { grid-column: span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--footer-gap); }
#app-footer .footer-col-title { margin: 0 0 12px; color: #f4f4f6; font-weight: 650; font-size: 14px; line-height: 1.6; }
#app-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
#app-footer .footer-col li { margin-bottom: 8px; }
#app-footer .footer-col a { display: inline-block; padding-block: 2px; font-size: 13.5px; color: var(--ui-v2-muted); line-height: 1.6; transition: color .18s; }
#app-footer .footer-col a:hover { color: #ff6b95; }
#app-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#app-footer .footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: var(--ui-v2-surface); color: var(--ui-v2-muted); transition: color .18s, border-color .18s; }
#app-footer .footer-socials a:hover { color: #fff; border-color: #ff6b95; }
#app-footer .footer-main a:focus-visible { outline: 2px solid #ff6b95; outline-offset: 4px; border-radius: 3px; }
#app-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(28px, 3vw, 40px); padding-top: 18px; padding-right: 76px; border-top: 1px solid var(--ui-v2-line); color: var(--ui-v2-muted); font-size: 12.5px; line-height: 1.7; }
#app-footer .footer-age { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1.5px solid #ff2f6d; border-radius: 50%; color: #ff6b95; font-size: 11px; font-weight: 700; }
#app-footer .footer-notice { flex: 1; min-width: 160px; margin: 0; }
#app-footer .footer-copyright { margin: 0 0 0 auto; overflow-wrap: anywhere; }
@media (max-width: 719px) {
    #app-footer .footer-main { padding-top: 20px; }
    #app-footer .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    #app-footer .footer-nav { grid-column: auto; gap: 12px; }
    #app-footer .footer-logo img { height: 42px; }
    #app-footer .footer-logo { display: table; margin-inline: auto; }
    #app-footer .footer-description { margin-top: 8px; max-width: none; font-size: 12.5px; }
    #app-footer .footer-socials { margin-top: 12px; }
    #app-footer .footer-socials a { width: 36px; height: 36px; }
    #app-footer .footer-address { margin-top: 12px; font-size: 13px; }
    #app-footer .footer-address p { margin-bottom: 6px; column-gap: 4px; }
    #app-footer .footer-col-title { margin-bottom: 8px; font-size: 13.5px; }
    #app-footer .footer-col li { margin-bottom: 3px; }
    #app-footer .footer-col a { min-height: 32px; padding-block: 5px; font-size: 13px; }
    #app-footer .footer-bottom { margin-top: 36px; padding-top: 14px; padding-right: 64px; gap: 10px 12px; }
    #app-footer .footer-notice { min-width: 0; }
    #app-footer .footer-copyright { flex-basis: 100%; margin-left: auto; text-align: right; }
}
.app-shell-container { width: 100%; max-width: var(--ui-v2-shell-width); margin-inline: auto; box-sizing: border-box; }

@media (min-width: 768px) {
    /* Guest buttons and variable-length account names occupy the same header space. */
    #app-header.app-header-shell .app-header-actions { width: 144px; position: relative; }
    #app-header .app-header-actions .user-chip { max-width: 100%; min-width: 0; box-sizing: border-box; }
    #app-header .app-header-actions .user-chip__name { min-width: 0; }
    html.is-auth-pending #app-header .app-header-actions::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        height: 36px;
        border: 1px solid var(--ui-v2-line);
        border-radius: 999px;
        background: var(--ui-v2-surface);
        pointer-events: none;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    #app-header.app-header-shell .app-header-inner { gap: clamp(8px, 1.4vw, 18px); }
    #app-nav.app-nav-shell { order: 4; flex-basis: 100%; border-top: 1px solid var(--ui-v2-line); }
    #app-nav.app-nav-shell .app-nav-item-wrap { height: 44px; }
    #app-header.app-header-shell .app-header-search { max-width: 520px; }
}
@media (max-width: 767px) {
    #app-header.app-header-shell { --dx-header-height: 56px; }
    #app-header.app-header-shell .header { display: flex; flex-direction: column; }
    #app-header.app-header-shell .app-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
    #app-header.app-header-shell .app-header-logo { grid-column: 2; justify-self: center; }
    #app-header.app-header-shell .app-header-logo .app-logo { height: 38px; }
    #app-nav.app-nav-shell, #app-header.app-header-shell .app-header-search { display: none; }
    #app-header.app-header-shell .app-header-actions { justify-self: end; }
    #app-header .app-header-actions .auth-btn,
    html.is-authed #app-header .app-header-actions .user-chip { display: none; }
    #app-header.app-header-shell .btn-menu-collapse,
    #app-header.app-header-shell .btn-open-search {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        justify-self: start; padding: 4px; color: var(--ui-v2-muted); background: transparent; border: 0;
    }
    #app-header .app-header-mobile-label { display: block; font-size: 11px; line-height: 1; }
    #app-header .btn-menu-collapse svg { width: 20px; height: 20px; color: var(--ui-v2-muted); }
    #app-header .app-header-search-mobile-icon { width: 20px; height: 20px; }
    #app-header.app-header-shell .mobile-search {
        position: static; order: 1; display: none;
        height: 56px; padding: 8px 12px; gap: 8px;
        background: #141419; border-color: var(--ui-v2-line);
        visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    #app-header.app-header-shell .mobile-search.is-open { display: flex; visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
    #app-header .mobile-search .form-control { min-width: 0; background: var(--ui-v2-surface); border-radius: 999px; }
    #app-header .mobile-search .btn-search { height: 38px; border-radius: 999px; }
    .dx-drawer { --dx-drawer-width: 300px; padding: 18px; border-right: 1px solid var(--ui-v2-line); }
    .dx-drawer .dx-drawer-close { width: 38px; height: 30px; padding: 4px 8px; color: var(--ui-v2-muted); }
    .dx-drawer .dx-drawer-close svg { width: 18px; height: 18px; color: inherit; }
    .dx-drawer .grid { gap: 6px; }
    .dx-drawer .grid > a { background: var(--ui-v2-surface); font-size: 15px; }
    .dx-drawer .grid > a > .dx-collapse-toggle { width: 100%; padding: 12px 14px; background: transparent; }
    .dx-drawer .grid > a > .dx-collapse-toggle svg { display: none; }
}

/* --- 二级 subpanel（好色视频 / 精选分类共用） --- */
#app-nav.app-nav-shell .app-nav-subpanel-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: auto;
    width: auto;
    margin: 0;
    padding: 0;
    transform: none;
    background: transparent;
    font-size: 16px;
    z-index: 101;
}

#app-nav.app-nav-shell .app-nav-item-wrap:last-child > .app-nav-subpanel-wrap {
    left: auto;
    right: 0;
}

#app-nav.app-nav-shell .app-nav-item-wrap.has-items > .app-nav-subpanel-wrap {
    margin-top: 0;
    padding-top: 0;
}

#app-nav.app-nav-shell .has-items:focus-within > .app-nav-subpanel-wrap,
#app-nav.app-nav-shell .has-items:hover > .app-nav-subpanel-wrap,
#app-nav.app-nav-shell .has-items.is-enter > .app-nav-subpanel-wrap {
    display: block;
}

#app-nav.app-nav-shell .app-nav-subpanel {
    box-sizing: border-box;
    width: auto;
    min-width: 308px;
    max-width: min(760px, calc(100vw - 32px));
    height: auto;
    min-height: 165px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 20px 50px 25px 25px;
    border-radius: 8px;
    background: #17171e;
    border: 1px solid var(--ui-v2-line);
}

#app-nav.app-nav-shell .app-nav-subpanel__cols {
    height: 100%;
}

/* ≤6 项：保持 2 列 × 3 行的原有版式（好色视频） */
#app-nav.app-nav-shell .app-nav-subpanel__list {
    display: grid;
    grid-template-rows: repeat(3, minmax(24px, auto));
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, max-content);
    justify-content: space-between;
    column-gap: 32px;
    row-gap: 24px;
    align-content: start;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* >6 项：4 列按行铺开、行数不限，条目再多也能全部展示（精选分类） */
#app-nav.app-nav-shell .app-nav-subpanel-wrap--wide .app-nav-subpanel__list {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    justify-content: start;
    column-gap: 40px;
    row-gap: 18px;
}

#app-nav.app-nav-shell .app-nav-subpanel__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.48px;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
}

#app-nav.app-nav-shell .app-nav-subpanel__link:hover,
#app-nav.app-nav-shell .app-nav-subpanel__link.is-active {
    color: var(--dx-primary-color);
    background: transparent;
}

#app-nav.app-nav-shell .app-nav-subpanel__label {
    color: inherit;
}

#app-nav.app-nav-shell .app-nav-subpanel__icon {
    display: block;
    width: 18px !important;
    height: 18px !important;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
}

#app-nav.app-nav-shell .app-nav-subpanel__icon--on {
    display: none;
}

#app-nav.app-nav-shell .app-nav-subpanel__link:hover .app-nav-subpanel__icon:not(.app-nav-subpanel__icon--on),
#app-nav.app-nav-shell .app-nav-subpanel__link.is-active .app-nav-subpanel__icon:not(.app-nav-subpanel__icon--on) {
    display: none;
}

#app-nav.app-nav-shell .app-nav-subpanel__link:hover .app-nav-subpanel__icon--on,
#app-nav.app-nav-shell .app-nav-subpanel__link.is-active .app-nav-subpanel__icon--on {
    display: block;
}

/* ===== List page v2（PC / H5 共用列表主体） ===== */
@media (max-width: 767px) {
    .list-page-v2 .list-page-v2__layout {
        display: block;
        padding: 0;
    }

    .list-page-v2 .list-page-v2__title {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1.25;
    }

    .list-page-v2 .list-page-v2__desc {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.7;
    }

    .list-page-v2 .list-page-v2__toolbar {
        justify-content: flex-end;
        margin: 12px 0 8px;
    }

    .list-page-v2 .list-page-v2__primary-filters {
        display: none;
    }

    .list-page-v2 .list-page-v2__mobile-filters {
        display: grid;
    }

    .list-page-v2 .list-page-v2__filter-chip {
        min-height: 34px;
        padding: 0 15px;
        font-size: 13px;
    }

    .list-page-v2 .list-page-v2__count {
        font-size: 12px;
    }
}

.list-page-v2 {
    box-sizing: border-box;
    padding-bottom: 24px;
}

.list-page-v2__layout {
    display: block;
}

.list-page-v2__sidebar {
    flex: 0 0 191px;
    width: 191px;
    min-height: 610px;
    box-sizing: border-box;
    padding: 12px;
    background: var(--ui-v2-surface);
    border: 1px solid var(--ui-v2-line);
    border-radius: 14px;
}

.list-page-v2__sidebar-label {
    margin: 0 0 12px;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 0.94px;
    color: #999999;
}

.list-page-v2__sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-page-v2__sidebar-nav > li {
    width: 100%;
}

.list-page-v2__sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 20px 8px 10px;
    border-radius: 10px;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #cccccc;
    text-decoration: none;
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

.list-page-v2__sidebar-link:hover,
.list-page-v2__sidebar-link.is-active {
    color: var(--dx-primary-color);
    background: #8b8b8b1f;
}

/* 竖条：距链接右缘 12px */
.list-page-v2__sidebar-link:hover::after,
.list-page-v2__sidebar-link.is-active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 9999px;
    background: var(--dx-primary-color);
    opacity: 1;
}

.list-page-v2__sidebar-icon {
    display: block;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    object-fit: contain;
}

.list-page-v2__sidebar-icon--on {
    display: none;
}

.list-page-v2__sidebar-link:hover .list-page-v2__sidebar-icon:not(.list-page-v2__sidebar-icon--on),
.list-page-v2__sidebar-link.is-active .list-page-v2__sidebar-icon:not(.list-page-v2__sidebar-icon--on) {
    display: none;
}

.list-page-v2__sidebar-link:hover .list-page-v2__sidebar-icon--on,
.list-page-v2__sidebar-link.is-active .list-page-v2__sidebar-icon--on {
    display: block;
}

.list-page-v2__main {
    min-width: 0;
    padding-top: 0;
}

.list-page-v2__title {
    margin: 0 0 8px;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.8vw, 31px);
    line-height: 1.25;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.list-page-v2__desc {
    margin: 0;
    font-size: clamp(13.5px, 1.2vw, 15px);
    line-height: 1.7;
    color: var(--ui-v2-muted);
}

.list-page-v2__meta {
    padding: clamp(14px, 2vw, 22px) 0 clamp(16px, 2.4vw, 26px);
}

.list-page-v2__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    margin-bottom: clamp(14px, 1.8vw, 20px);
}

.list-page-v2__primary-filters,
.list-page-v2__mobile-filter-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.list-page-v2__mobile-filter-scroll {
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-page-v2__mobile-filter-scroll > .dx-tab-item {
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.list-page-v2__mobile-filter-scroll > .dx-tab-item::after {
    display: none;
}

.list-page-v2__mobile-filter-scroll > .dx-tab-item > .list-page-v2__filter-chip {
    color: var(--ui-v2-muted);
    border: 1px solid var(--ui-v2-line);
    background: var(--ui-v2-surface);
}

.list-page-v2__mobile-filter-scroll > .dx-tab-item.is-active > .list-page-v2__filter-chip {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--dx-primary-color), #ff5a3d);
    box-shadow: 0 6px 18px rgba(255, 47, 109, .2);
}

.list-page-v2__filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 20px;
    border: 1px solid var(--ui-v2-line);
    border-radius: 999px;
    background: var(--ui-v2-surface);
    color: var(--ui-v2-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}

.list-page-v2__filter-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
}

.list-page-v2__filter-chip.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--dx-primary-color), #ff5a3d);
    box-shadow: 0 6px 18px rgba(255, 47, 109, .2);
}

.list-page-v2__count {
    flex: none;
    color: #777785;
    font-size: 13px;
    white-space: nowrap;
}

.list-page-v2__mobile-filters {
    display: none;
    gap: 8px;
    min-width: 0;
    margin-bottom: 16px;
}

.list-page-v2__app-ads {
    margin-bottom: 20px;
}

.list-page-v2__app-ads-head {
    gap: 10px;
    margin-bottom: 10px;
}

.list-page-v2__app-ads-head p {
    margin: 0;
    font-size: 20px;
}

/*
 * 栅格小节标题（H2，video_list_v2.phtml）：PC 20px，比 H1 的 28px 低一级
 * @ai-modified 2026-07-30 列表页原本 h1→h3 跳级，补一个描述视频栅格的 H2
 */
.list-page-v2__section-title {
    margin: 0 0 15px;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #eeeeee;
    overflow-wrap: anywhere;
}

.list-page-v2__section-title--primary {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.list-page-v2__empty {
    margin: 0 0 15px;
    color: #999999;
}

.list-page-v2__body {
    min-width: 0;
    min-height: 1px;
}

.list-page-v2__pager-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(26px, 4vw, 42px);
    margin-bottom: clamp(6px, 2vw, 18px);
    width: 100%;
    overflow: hidden;
}

/* 分页色系：粉 #F93C79 / 深灰 #222222 */
.list-page-v2 .dx-pager .pager-item-left,
.list-page-v2 .dx-pager .pager-item-right,
.list-page-v2 .dx-pager .pager-item-left > .pager-item,
.list-page-v2 .dx-pager .pager-item-right > .pager-item,
.list-page-v2 .dx-pager .pager-item-left.pager-item,
.list-page-v2 .dx-pager .pager-item-right.pager-item {
    background-color: var(--dx-primary-color);
    color: #ffffff;
    border-radius: 4px;
}

.list-page-v2 .dx-pager .pager-item-left:hover,
.list-page-v2 .dx-pager .pager-item-right:hover,
.list-page-v2 .dx-pager .pager-item-left > .pager-item:hover,
.list-page-v2 .dx-pager .pager-item-right > .pager-item:hover {
    background-color: var(--dx-primary-color);
    color: #ffffff;
}

.list-page-v2 .dx-pager .pager-goto .form-control {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
}

.list-page-v2 .dx-pager .pager-goto-btn {
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #333333;
}

.list-page-v2 .dx-pager .pager-label {
    color: #cccccc;
}

/* ===== 404 page (error/404.phtml): reference layout, scoped to the error page. ===== */
.page-404 {
    padding: 0 var(--ui-v2-gutter) clamp(24px, 3vw, 36px);
    color: #f4f4f6;
}
.page-404__inner {
    padding: clamp(40px, 8vw, 90px) 0 clamp(32px, 4vw, 44px);
    text-align: center;
}
.page-404__title {
    margin: 0 0 10px;
    color: #f4f4f6;
    font-size: clamp(24px, 2.8vw, 31px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.page-404__desc {
    margin: 0;
    color: var(--ui-v2-muted);
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.6;
}
.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.page-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: var(--ui-v2-surface);
    color: var(--ui-v2-muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition: color .18s, border-color .18s, filter .18s;
}
.page-404__btn:hover {
    border-color: var(--dx-primary-color);
    color: #fff;
    text-decoration: none;
}
.page-404__btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--dx-primary-color), #ff5a3d);
    box-shadow: 0 8px 26px rgba(255, 47, 109, .28);
    color: #fff;
}
.page-404__btn--primary:hover { filter: brightness(1.08); }
.page-404 a:focus-visible { outline: 2px solid #ff6b95; outline-offset: 4px; }
.page-404__section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #f4f4f6;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 750;
    line-height: 1.35;
}
.page-404__section-title::before {
    content: '';
    flex: 0 0 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--dx-primary-color), #ff7a3d);
}
.page-404__grid.video-items-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-404__grid > li { min-width: 0; }
.page-404 .video-card-v2 {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
}
.page-404 .video-card-v2__thumb { border-radius: 14px; }
.page-404 .video-card-v2__info { gap: 8px; padding: 10px 0 0; }
.page-404 .video-card-v2__title a {
    display: block;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.page-404 > .inner-links:last-child { margin-bottom: 0; }
@media (max-width: 899px) {
    .page-404__grid.video-items-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
@media (max-width: 767px) {
    .page-404__btn { padding-inline: 22px; font-size: 14px; }
    .page-404 .video-card-v2__thumb { border-radius: 10px; }
    .page-404 .video-card-v2__title a { font-size: 13px; }
}
