/* ============================================================================
   NewYork 纽约 — 手机购物 APP 主题
   ----------------------------------------------------------------------------
   设计语言:清醒曼哈顿 — 暖白 / 石墨灰 / 出租车黄,克制的地铁导视细节。
   画布:320–480px 纯手机界面;大屏仅居中同一套界面。
   结构目录:
     01 令牌与全局桥接        02 基础与设备外壳
     03 顶栏 / 底部导航 / 面板  04 基础组件(按钮/徽章/字段/状态)
     05 商城(首页/详情/查单/维护)
     06 认证
     07 会员中心页面
     08 列表引擎(逐页卡片配方)
     09 列表周边(搜索/筛选/批量/分页)
     10 弹窗与动态组件(layer/popup/编辑器/上传/树选择)
     11 深色补充 / 动效偏好 / 无障碍
   ========================================================================== */

/* ==== 01 令牌与全局桥接 =================================================== */

:root {
    --ny-bg: #F6F4EF;
    --ny-surface: #FFFFFF;
    --ny-surface-2: #FAF8F3;
    --ny-surface-3: #F1EEE6;
    --ny-ink: #1B1A17;
    --ny-ink-2: #5C594F;
    --ny-ink-3: #8D897E;
    --ny-line: #E8E4DA;
    --ny-line-strong: #D8D3C6;
    --ny-yellow: #F5B301;
    --ny-yellow-deep: #DFA300;
    --ny-on-yellow: #201F1B;
    --ny-yellow-tint: rgba(245, 179, 1, .14);
    --ny-graphite: #23221E;
    --ny-on-graphite: #F8F6F0;
    --ny-green: #1F7A44;
    --ny-green-tint: rgba(31, 122, 68, .12);
    --ny-red: #BC2F26;
    --ny-red-tint: rgba(188, 47, 38, .1);
    --ny-blue: #2D66C4;
    --ny-blue-tint: rgba(45, 102, 196, .11);
    --ny-warn: #9A6B00;
    --ny-warn-tint: rgba(154, 107, 0, .12);
    --ny-scrim: rgba(20, 19, 16, .44);
    --ny-shadow-1: 0 1px 2px rgba(27, 26, 23, .05), 0 1px 1px rgba(27, 26, 23, .03);
    --ny-shadow-2: 0 6px 24px -8px rgba(27, 26, 23, .16);
    --ny-radius-s: 10px;
    --ny-radius: 14px;
    --ny-radius-l: 20px;
    --ny-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", "Microsoft Yahei", sans-serif;
    --ny-appbar-h: 52px;
    --ny-nav-h: 60px;
    --ny-sab: env(safe-area-inset-bottom, 0px);
    --ny-sat: env(safe-area-inset-top, 0px);
    --ny-dur: .22s;
    --ny-ease: cubic-bezier(.3, .72, .3, 1);
}

html[data-theme="dark"] {
    --ny-bg: #111112;
    --ny-surface: #1A1A1C;
    --ny-surface-2: #202023;
    --ny-surface-3: #27272B;
    --ny-ink: #ECEAE3;
    --ny-ink-2: #A8A499;
    --ny-ink-3: #7C786E;
    --ny-line: #2A2A2E;
    --ny-line-strong: #37373C;
    --ny-yellow: #F2B824;
    --ny-yellow-deep: #E0A400;
    --ny-on-yellow: #1B1A15;
    --ny-yellow-tint: rgba(242, 184, 36, .15);
    --ny-graphite: #ECEAE3;
    --ny-on-graphite: #1B1A17;
    --ny-green: #57B57F;
    --ny-green-tint: rgba(87, 181, 127, .14);
    --ny-red: #E06A61;
    --ny-red-tint: rgba(224, 106, 97, .13);
    --ny-blue: #7AA5E8;
    --ny-blue-tint: rgba(122, 165, 232, .13);
    --ny-warn: #D9A93F;
    --ny-warn-tint: rgba(217, 169, 63, .15);
    --ny-scrim: rgba(0, 0, 0, .58);
    --ny-shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --ny-shadow-2: 0 8px 26px -10px rgba(0, 0, 0, .55);
}

/* 共享 MUI 组件(md-components/component.css)统一桥接到曼哈顿配色。
   注意:md-tokens 使用 :root[data-theme="light"] (0,2,0) 定义,
   桥接必须保持同级特异性并晚于其加载才能生效。 */
:root[data-theme="light"],
:root[data-theme="dark"] {
    --md-bg: var(--ny-bg);
    --md-surface: var(--ny-surface);
    --md-on-surface: var(--ny-ink);
    --md-on-surface-med: var(--ny-ink-2);
    --md-on-surface-dis: var(--ny-ink-3);
    --md-outline: var(--ny-line-strong);
    --md-divider: var(--ny-line);
    --md-primary: var(--ny-blue);
    --md-primary-rgb: 45, 102, 196;
    --md-primary-hover: var(--ny-blue);
    --md-primary-container: var(--ny-blue-tint);
    --md-on-primary: #fff;
    --md-secondary: var(--ny-ink-2);
    --md-secondary-rgb: 92, 89, 79;
    --md-secondary-hover: var(--ny-ink);
    --md-on-secondary: var(--ny-surface);
    --md-success: var(--ny-green);
    --md-success-rgb: 31, 122, 68;
    --md-error: var(--ny-red);
    --md-error-rgb: 188, 47, 38;
    --md-warning: var(--ny-warn);
    --md-warning-rgb: 154, 107, 0;
    --md-info: var(--ny-blue);
    --md-info-rgb: 45, 102, 196;
    --md-scrim: var(--ny-scrim);
    --md-hover-overlay: rgba(27, 26, 23, .05);
    --md-selected-overlay: var(--ny-yellow-tint);
    --md-focus-ring: 0 0 0 3px var(--ny-yellow-tint);
    --md-font: var(--ny-font);
    --md-radius: var(--ny-radius-s);
    --md-radius-lg: var(--ny-radius);
    --md-radius-pill: 999px;
    --bs-link-color: var(--ny-blue);
    --bs-link-color-rgb: 45, 102, 196;
    --bs-link-hover-color: var(--ny-blue);
    --bs-body-color: var(--ny-ink);
    --bs-body-bg: var(--ny-bg);
}

:root[data-theme="dark"] {
    --bs-link-color-rgb: 122, 165, 232;
    --md-primary-rgb: 122, 165, 232;
    --md-secondary-rgb: 168, 164, 153;
    --md-success-rgb: 87, 181, 127;
    --md-error-rgb: 224, 106, 97;
    --md-warning-rgb: 217, 169, 63;
    --md-info-rgb: 122, 165, 232;
    --md-hover-overlay: rgba(236, 234, 227, .06);
    --md-on-primary: #14161C;
}

/* ==== 02 基础与设备外壳 =================================================== */

html {
    -webkit-text-size-adjust: 100%;
}

/* iPhone Chrome/Safari:公共用户样式给 html/body 设置 overflow-x:hidden，
   会把纵向 overflow 隐式计算成 auto 并建立额外滚动容器，fixed 底栏因此随页面滚动。
   clip 仍裁掉横向溢出，但不会创建滚动容器。 */
html,
body.ny-body {
    overflow-x: clip !important;
}

body.ny-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ny-bg);
    color: var(--ny-ink);
    font-family: var(--ny-font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: block;
    overflow-x: hidden;
}

/* 大屏:仅居中一台"手机" */
.ny-device-shell {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ny-bg);
    display: flex;
    flex-direction: column;
}

@media (min-width: 561px) {
    body.ny-body {
        background:
            radial-gradient(1200px 500px at 50% -160px, var(--ny-yellow-tint), transparent 62%),
            var(--ny-bg);
    }

    .ny-device-shell {
        box-shadow: 0 0 0 1px var(--ny-line), 0 24px 80px -32px rgba(27, 26, 23, .35);
    }

    html[data-theme="dark"] .ny-device-shell {
        box-shadow: 0 0 0 1px var(--ny-line), 0 24px 80px -32px rgba(0, 0, 0, .8);
    }
}

.ny-body *,
.ny-body *::before,
.ny-body *::after {
    box-sizing: border-box;
}

.ny-body img {
    max-width: 100%;
}

.ny-body a {
    color: inherit;
    text-decoration: none;
}

/* 中和 md-components 的 :root[data-theme] a 全局链接色(同特异性,晚加载生效) */
:root[data-theme] a {
    color: inherit;
    text-decoration: none;
}

.ny-body button {
    font-family: inherit;
}

/* APP 化:全局去除移动端点击链接/按钮时的灰色 tap 高亮(点 SKU 明细等看着像"选中")*/
.ny-body a,
.ny-body button,
.ny-body [role="button"],
.ny-body .sku-detail,
.ny-body label {
    -webkit-tap-highlight-color: transparent;
}

.ny-pjax {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.ny-page,
.ny-main {
    flex: 1 0 auto;
    width: 100%;
    padding: 16px 16px calc(var(--ny-nav-h) + var(--ny-sab) + 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.ny-auth-body .ny-pjax {
    min-height: calc(100dvh - var(--ny-appbar-h));
}

/* 老导航锚点(保留结构占位,不显示) */
.ny-page-anchor {
    display: none;
}

/* 全局网络加载遮罩(共享 .net-loading) */
.ny-body .net-loading {
    position: fixed;
    inset: 0;
    z-index: 19891015;
    background: color-mix(in srgb, var(--ny-bg) 62%, transparent);
    backdrop-filter: blur(2px);
}

.ny-body .net-loading .loading-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--ny-line-strong);
    border-top-color: var(--ny-yellow);
    animation: ny-rotate .8s linear infinite;
}

.ny-body .net-loading .loading-image {
    display: none;
}

@keyframes ny-rotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes ny-spin {
    to {
        transform: rotate(360deg);
    }
}

.ny-spin {
    animation: ny-spin 1s linear infinite;
    display: inline-block;
}

@keyframes ny-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ==== 03 顶栏 / 底部导航 / 底部面板 ======================================= */

.ny-appbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: calc(var(--ny-appbar-h) + var(--ny-sat));
    padding: var(--ny-sat) 12px 0 16px;
    background: color-mix(in srgb, var(--ny-bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--ny-line);
}

/* 会员中心是真正的 APP 固定顶栏：脱离页面滚动，并由设备外壳预留等高空间。 */
.ny-member-body .ny-device-shell {
    padding-top: calc(var(--ny-appbar-h) + var(--ny-sat));
}

.ny-member-body .ny-appbar {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
}

.ny-appbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
}

/* 会员中心顶栏已移除页面标题,品牌占位把外观按钮推到右侧 */
.ny-member-body .ny-appbar__brand {
    flex: 1;
    margin-right: 8px;
}

.ny-brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    display: grid;
    place-items: center;
}

.ny-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ny-appbar__brand > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.ny-appbar__brand strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw;
}

.ny-appbar__brand small {
    font-size: 11px;
    color: var(--ny-ink-3);
    letter-spacing: .04em;
}

.ny-appbar__context {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ny-ink);
}

/* 会员中心顶栏:品牌在左,当前页名靠右弱化 */
.ny-member-body .ny-appbar__context {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
}

.ny-appbar__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.ny-icon-button {
    appearance: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ny-ink);
    cursor: pointer;
    transition: background var(--ny-dur) var(--ny-ease);
}

.ny-icon-button:active {
    background: var(--md-hover-overlay);
}

.ny-icon-button .material-icons-outlined {
    font-size: 22px;
}

/* 顶栏"公告"按钮(图标+文字):暖黄 accent,点击弹出公告 sheet */
.ny-appbar-notice {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    margin-left: 4px;
    padding: 0 14px 0 10px;
    border: 0;
    border-radius: 999px;
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: background var(--ny-dur) var(--ny-ease);
}

.ny-appbar-notice .material-icons-outlined {
    font-size: 18px;
}

.ny-appbar-notice:active {
    background: color-mix(in srgb, var(--ny-yellow) 26%, transparent);
}

.ny-avatar-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-left: 4px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--ny-yellow);
    display: inline-flex;
}

.ny-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部导航 */
.ny-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 130;
    display: flex;
    align-items: stretch;
    background: color-mix(in srgb, var(--ny-surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--ny-line);
    padding-bottom: var(--ny-sab);
}

/* 真机 WebKit 不再让底栏依赖居中 transform 合成层；手机宽度下直接钉住视口两侧。 */
@media (max-width: 480px) {
    .ny-bottom-nav {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        transform: none;
    }
}

.ny-body .ny-bottom-nav a,
.ny-body .ny-bottom-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    flex: 1 1 0;
    min-height: var(--ny-nav-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ny-ink-3);
    cursor: pointer;
    position: relative;
    padding: 6px 0;
    transition: color var(--ny-dur) var(--ny-ease);
}

.ny-bottom-nav .material-icons-outlined {
    font-size: 24px;
    line-height: 1;
}

.ny-body .ny-bottom-nav .is-active,
.ny-body .ny-bottom-nav a.is-active {
    color: var(--ny-ink);
}

.ny-bottom-nav .is-active::before {
    content: "";
    position: absolute;
    top: 4px;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--ny-yellow);
}

/* 底部面板(sheet) */
.ny-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--ny-scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ny-dur) var(--ny-ease);
}

.ny-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ny-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 105%);
    width: 100%;
    max-width: 480px;
    z-index: 310;
    background: var(--ny-surface);
    border-radius: var(--ny-radius-l) var(--ny-radius-l) 0 0;
    box-shadow: var(--ny-shadow-2);
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 86dvh);
    padding-bottom: max(var(--ny-sab), 8px);
    transition: transform .28s var(--ny-ease), visibility .28s;
    visibility: hidden;
}

.ny-sheet.is-open {
    transform: translate(-50%, 0);
    visibility: visible;
}

.ny-sheet-handle {
    flex: 0 0 auto;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--ny-line-strong);
    margin: 8px auto 4px;
}

.ny-sheet-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 10px 20px;
    border-bottom: 1px solid var(--ny-line);
}

.ny-sheet-head > div:first-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ny-sheet-head strong {
    font-size: 16px;
    font-weight: 700;
}

.ny-sheet-head span:not(.material-icons-outlined) {
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-sheet-head button {
    appearance: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ny-ink-2);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ny-sheet-head button:active {
    background: var(--md-hover-overlay);
}

body.ny-sheet-open {
    overflow: hidden;
}

/* 外观模式选择 */
.ny-theme-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 8px;
    overflow-y: auto;
}

.ny-theme-options button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 8px 16px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur);
}

.ny-theme-options button > span:first-child {
    font-size: 22px;
    color: var(--ny-ink-2);
}

.ny-theme-options button > span:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.ny-theme-options button strong {
    font-size: 14px;
    font-weight: 600;
}

.ny-theme-options button small {
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-theme-options button i {
    font-style: normal;
    opacity: 0;
    color: var(--ny-on-yellow);
    background: var(--ny-yellow);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: opacity var(--ny-dur);
}

.ny-theme-options button.is-active {
    border-color: var(--ny-yellow);
    background: var(--ny-yellow-tint);
}

.ny-theme-options button.is-active i {
    opacity: 1;
}

/* 经营工作台面板 */
.ny-workbench-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
}

.ny-workbench-grid a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface-2);
    transition: background var(--ny-dur), border-color var(--ny-dur);
}

.ny-workbench-grid a:active {
    background: var(--ny-yellow-tint);
    border-color: var(--ny-yellow);
}

.ny-workbench-grid a .material-icons-outlined {
    font-size: 22px;
    color: var(--ny-ink-2);
}

.ny-workbench-grid a strong {
    font-size: 13px;
    font-weight: 600;
}

.ny-workbench-grid a small {
    font-size: 11px;
    color: var(--ny-ink-3);
    line-height: 1.35;
}

@media (max-width: 359px) {
    .ny-workbench-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==== 04 基础组件 ========================================================= */

/* 地铁导视圆标 */
.ny-route-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    flex: 0 0 auto;
}

.ny-route-mark--yellow {
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

/* 按钮 */
.ny-primary-button,
.ny-button {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s var(--ny-ease), opacity var(--ny-dur), background var(--ny-dur);
    -webkit-tap-highlight-color: transparent;
}

.ny-body .ny-primary-button,
.ny-body .ny-button--primary {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-primary-button {
    width: 100%;
}

.ny-primary-button:active,
.ny-button:active {
    transform: scale(.985);
}

.ny-primary-button:disabled,
.ny-button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.ny-body .ny-secondary-button,
.ny-body .ny-button--tonal {
    appearance: none;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ny-secondary-button:active,
.ny-button--tonal:active {
    background: var(--ny-surface-3);
}

.ny-button .material-icons-outlined,
.ny-primary-button .material-icons-outlined,
.ny-secondary-button .material-icons-outlined {
    font-size: 19px;
}

.ny-text-danger {
    appearance: none;
    border: 0;
    background: none;
    color: var(--ny-red);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    cursor: pointer;
    padding: 0;
}

.ny-body .ny-text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
    min-height: 44px;
}

.ny-text-link .material-icons-outlined {
    font-size: 16px;
}

/* 徽章(覆盖共享 a-badge / badge-soft) */
.ny-body .a-badge,
.ny-body .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    border: 0;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    vertical-align: middle;
}

.ny-body .a-badge-success,
.ny-body .badge-soft-success {
    background: var(--ny-green-tint);
    color: var(--ny-green);
}

.ny-body .a-badge-primary,
.ny-body .a-badge-info,
.ny-body .badge-soft-primary,
.ny-body .badge-soft-info {
    background: var(--ny-blue-tint);
    color: var(--ny-blue);
}

.ny-body .a-badge-warning,
.ny-body .badge-soft-warning {
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
}

.ny-body .a-badge-danger,
.ny-body .badge-soft-danger {
    background: var(--ny-red-tint);
    color: var(--ny-red);
}

.ny-body .a-badge-dark,
.ny-body .badge-soft-muted {
    background: var(--ny-surface-3);
    color: var(--ny-ink-3);
}

.ny-body .a-badge-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* 外框输入字段(模板静态表单用) */
.ny-outlined-field {
    position: relative;
    display: block;
}

.ny-outlined-field > span {
    position: absolute;
    top: -7px;
    left: 12px;
    padding: 0 5px;
    background: var(--ny-surface);
    font-size: 11px;
    font-weight: 600;
    color: var(--ny-ink-3);
    border-radius: 4px;
    z-index: 1;
    letter-spacing: .02em;
}

.ny-outlined-field input.form-control,
.ny-outlined-field input,
.ny-field input.layui-input,
.ny-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
    box-shadow: none;
}

.ny-outlined-field input:focus,
.ny-field input.layui-input:focus,
.ny-field select:focus {
    border-color: var(--ny-ink);
    box-shadow: 0 0 0 3px var(--ny-yellow-tint);
}

.ny-outlined-field input::placeholder,
.ny-field input::placeholder {
    color: var(--ny-ink-3);
}

.ny-outlined-field input:disabled,
.ny-field input.layui-input:disabled {
    background: var(--ny-surface-2);
    color: var(--ny-ink-3);
    -webkit-text-fill-color: var(--ny-ink-3);
    opacity: 1;
}

/* 会员中心字段(label 在上) */
.ny-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ny-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ny-ink-2);
}

/* 验证码 / 发送验证码复合字段 */
.ny-captcha-field {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ny-captcha-field .ny-outlined-field {
    flex: 1;
    min-width: 0;
}

.ny-captcha-field img,
.ny-captcha-field .image-code,
.ny-captcha-field .captcha-img {
    flex: 0 0 auto;
    width: 104px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--ny-radius-s);
    border: 1px solid var(--ny-line-strong);
    cursor: pointer;
    background: var(--ny-surface-2);
}

.ny-code-field {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.ny-code-field .ny-outlined-field,
.ny-code-field input.layui-input {
    flex: 1;
    min-width: 0;
}

.ny-code-field button {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface-2);
    color: var(--ny-ink);
    border-radius: var(--ny-radius-s);
    padding: 0 14px;
    min-height: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ny-code-field button:active {
    background: var(--ny-surface-3);
}

/* 勾选 */
.ny-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ny-ink-2);
    position: relative;
}

.ny-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ny-check span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--ny-line-strong);
    display: inline-grid;
    place-items: center;
    transition: all var(--ny-dur);
    flex: 0 0 auto;
}

.ny-check input:checked + span {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
}

.ny-check input:checked + span::after {
    content: "";
    width: 10px;
    height: 6px;
    border: 2px solid var(--ny-on-graphite);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translateY(-1px);
}

/* 面板与区块 */
.ny-panel {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    overflow: hidden;
}

.ny-panel-body {
    padding: 16px;
}

.ny-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ny-section-title h1,
.ny-section-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ny-section-title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-section-title > .material-icons-outlined {
    color: var(--ny-ink-3);
    font-size: 20px;
}

/* 状态卡(空/加载/错误/维护) */
.ny-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 40px 24px;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    color: var(--ny-ink-2);
}

.ny-state-card > .material-icons-outlined {
    font-size: 40px;
    color: var(--ny-ink-3);
}

.ny-state-card strong,
.ny-state-card h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ny-ink);
}

.ny-state-card p {
    margin: 0;
    font-size: 13px;
    color: var(--ny-ink-3);
    max-width: 32em;
}

.ny-state-card--large {
    padding: 72px 24px;
    gap: 12px;
    margin-top: 8vh;
}

.ny-state-card--large .material-icons-outlined {
    font-size: 52px;
}

.ny-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 32px 16px;
    color: var(--ny-ink-3);
}

.ny-empty .material-icons-outlined {
    font-size: 36px;
}

.ny-empty strong {
    color: var(--ny-ink-2);
    font-size: 14px;
}

.ny-empty p {
    margin: 0;
    font-size: 12px;
}

/* 分隔 */
.ny-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ny-ink-3);
    font-size: 12px;
    margin: 4px 0;
}

.ny-divider::before,
.ny-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ny-line);
}

/* 公告条 */
/* 店铺公告 sheet(由顶栏"公告"按钮打开) */
.ny-notice-sheet .ny-sheet-body {
    padding: 16px 20px 8px;
    overflow-y: auto;
}

.ny-notice-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ny-ink);
    overflow-wrap: anywhere;
}

/* ==== 05 商城 ============================================================= */

/* — 首页 — */
.ny-store-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 5px 0 13px;
    border-radius: 999px;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line-strong);
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
}

.ny-store-search:focus-within {
    border-color: var(--ny-ink);
}

.ny-store-search > .material-icons-outlined {
    color: var(--ny-ink-3);
    font-size: 20px;
}

.ny-store-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    outline: none;
    font-size: 15px;
    color: var(--ny-ink);
    height: 42px;
    font-family: inherit;
}

.ny-store-search input::placeholder {
    color: var(--ny-ink-3);
}

.ny-store-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.ny-search-submit {
    appearance: none;
    border: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ny-search-submit .material-icons-outlined {
    font-size: 19px;
}

.ny-search-submit:active {
    background: var(--ny-yellow-deep);
}

/* 首页顶部工具行:搜索 + 筛选 */
.ny-store-topbar {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ny-store-topbar .ny-store-search {
    flex: 1;
    min-width: 0;
}

.ny-body .ny-store-filter-trigger {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ny-dur);
    max-width: 42%;
}

.ny-body .ny-store-filter-trigger .material-icons-outlined {
    font-size: 18px;
    flex: 0 0 auto;
}

.ny-store-filter-trigger__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ny-body .ny-store-filter-trigger.is-on {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-body .ny-store-filter-trigger.is-on .material-icons-outlined {
    color: var(--ny-yellow);
}

/* 左侧筛选抽屉 */
.ny-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: max(0px, calc(50% - 240px));
    width: min(78vw, 300px);
    z-index: 320;
    background: var(--ny-surface);
    border-radius: 0 var(--ny-radius-l) var(--ny-radius-l) 0;
    box-shadow: var(--ny-shadow-2);
    display: flex;
    flex-direction: column;
    transform: translateX(-108%);
    transition: transform .28s var(--ny-ease), visibility .28s;
    visibility: hidden;
    padding-bottom: var(--ny-sab);
}

.ny-drawer.is-open {
    transform: none;
    visibility: visible;
}

.ny-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(12px + var(--ny-sat)) 8px 12px 18px;
    border-bottom: 1px solid var(--ny-line);
}

.ny-drawer-head > div:first-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ny-drawer-head strong {
    font-size: 16px;
    font-weight: 700;
}

.ny-drawer-head span:not(.material-icons-outlined) {
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-drawer-head button {
    appearance: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ny-ink-2);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ny-drawer-head button:active {
    background: var(--md-hover-overlay);
}

.ny-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ny-body .ny-drawer-body .switch-category {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 6px 12px;
    border-radius: var(--ny-radius-s);
    color: var(--ny-ink-2);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--ny-dur), color var(--ny-dur);
}

.ny-body .ny-drawer-body .switch-category:active {
    background: var(--ny-surface-3);
}

.ny-drawer-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background-size: cover;
    background-position: center;
    background-color: var(--ny-surface-3);
    border: 1px solid var(--ny-line);
    flex: 0 0 auto;
}

.ny-drawer-item-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: 0 0 auto;
}

.ny-drawer-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ny-drawer-item-count {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid var(--ny-line);
    border-radius: 999px;
    background: var(--ny-surface-3);
    color: var(--ny-ink-3);
    font-size: 9.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.01em;
    transition: color var(--ny-dur), background var(--ny-dur), border-color var(--ny-dur), opacity var(--ny-dur);
}

.ny-drawer-item-count.is-empty {
    opacity: .58;
}

.ny-drawer-item-check {
    font-size: 18px;
    color: transparent;
    flex: 0 0 auto;
    transition: color var(--ny-dur);
}

.ny-body .ny-drawer-body .switch-category:not(.is-primary) .ny-drawer-item-check {
    display: none;
}

.ny-body .ny-drawer-body .switch-category.is-primary {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-body .ny-drawer-body .switch-category.is-primary .ny-drawer-item-check {
    color: var(--ny-yellow);
}

.ny-body .ny-drawer-body .switch-category.is-primary .ny-drawer-item-count {
    color: inherit;
    background: color-mix(in srgb, currentColor 12%, transparent);
    border-color: color-mix(in srgb, currentColor 18%, transparent);
    opacity: 1;
}

/* 多级分类:父级行 + 展开箭头 */
.ny-cat-node--parent {
    display: flex;
    flex-direction: column;
}

.ny-body .ny-cat-parent {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 6px 12px;
    border-radius: var(--ny-radius-s);
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background var(--ny-dur);
}

.ny-body .ny-cat-parent:active {
    background: var(--ny-surface-3);
}

.ny-body .ny-cat-parent .ny-drawer-item-mark {
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    font-size: 18px;
}

.ny-cat-chevron {
    font-size: 20px;
    color: var(--ny-ink-3);
    flex: 0 0 auto;
    transition: transform var(--ny-dur) var(--ny-ease);
}

.ny-body .ny-cat-parent.is-expanded .ny-cat-chevron {
    transform: rotate(180deg);
}

.ny-body .ny-cat-parent.is-expanded .ny-drawer-item-count {
    color: var(--ny-warn);
    background: var(--ny-yellow-tint);
    border-color: color-mix(in srgb, var(--ny-yellow-deep) 24%, transparent);
    opacity: 1;
}

/* 子级容器:缩进 + 左侧层级线 */
.ny-cat-children {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 2px 0 2px 27px;
    padding-left: 10px;
    border-left: 1.5px solid var(--ny-line);
}

.ny-cat-children[hidden] {
    display: none;
}

.ny-cat-children .ny-drawer-item-icon,
.ny-cat-children .ny-drawer-item-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.ny-cat-children .ny-drawer-item-count {
    min-width: 24px;
    height: 20px;
    padding: 0 5px;
    font-size: 9px;
}

.ny-cat-children .ny-body .switch-category,
.ny-body .ny-cat-children .switch-category,
.ny-body .ny-cat-children .ny-cat-parent {
    min-height: 46px;
    font-size: 13.5px;
}

/* 商品流:纽约编辑画廊。双列大封面卡兼顾视觉焦点与手机端浏览密度。 */
.ny-store-home {
    gap: 12px;
    padding-top: 12px;
}

.ny-products-section {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ny-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ny-product-grid > a,
.ny-product-grid > .col-12 {
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    margin: 0 !important;
    flex: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.ny-product-grid .acg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-l);
    box-shadow: 0 8px 24px -14px rgba(27, 26, 23, .22), var(--ny-shadow-1);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    transition: transform .18s var(--ny-ease), box-shadow .18s var(--ny-ease), border-color .18s var(--ny-ease);
}

.ny-product-grid .acg-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 44px;
    background: linear-gradient(180deg, rgba(18, 17, 15, .25), transparent);
    pointer-events: none;
}

.ny-product-grid .acg-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 11px;
    bottom: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: var(--ny-yellow);
    opacity: .82;
    pointer-events: none;
}

.ny-product-grid > a:active .acg-card {
    transform: translateY(1px) scale(.985);
    border-color: var(--ny-line-strong);
    box-shadow: 0 3px 10px -7px rgba(27, 26, 23, .22);
}

.ny-product-grid > a:active .acg-thumb {
    transform: scale(1.015);
}

.ny-product-grid > a:focus-visible {
    outline: 0;
}

.ny-product-grid > a:focus-visible .acg-card {
    border-color: var(--ny-yellow);
    box-shadow: 0 0 0 2px var(--ny-yellow-tint), var(--ny-shadow-1);
}

/* 封面:3:2 编辑画幅,横图/竖图统一裁切但不变形,三行可完整落在一屏。 */
.ny-product-grid .acg-thumb {
    display: block;
    width: 100%;
    height: auto;
    flex: none;
    aspect-ratio: 3 / 2;
    border: 0;
    border-bottom: 1px solid var(--ny-line);
    border-radius: 0;
    background-color: var(--ny-surface-3);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform .22s var(--ny-ease), filter .22s var(--ny-ease), opacity .22s var(--ny-ease);
}

/* 信息区:双行标题 + 价格/销量底线。常规库存不再制造信息噪音。 */
.ny-product-grid .acg-card .p-3 {
    position: static;
    min-width: 0;
    min-height: 84px;
    display: grid !important;
    grid-template:
        "title title" 38px
        "price meta" 22px /
        minmax(0, 1fr) max-content;
    align-content: start;
    align-items: end;
    gap: 6px 8px;
    padding: 9px 10px 10px !important;
}

.ny-product-grid .goods-title {
    grid-area: title;
    margin: 0;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: -.01em;
    color: var(--ny-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 封面标签:石墨发货状态 + 出租车黄精选标。 */
.ny-product-grid .tags {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    margin: 0;
    pointer-events: none;
}

.ny-product-grid .tags .badge-soft,
.ny-product-grid .tags .a-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 1 auto;
    max-width: calc(100% - 34px);
    min-height: 23px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ny-product-grid .tags .badge-soft-success {
    color: #fff;
    background: rgba(23, 22, 19, .76);
}

.ny-product-grid .tags .badge-soft-success::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #64C78B;
    box-shadow: 0 0 0 2px rgba(100, 199, 139, .16);
}

.ny-product-grid .tags .badge-soft-success.is-online::before {
    background: #7AA5E8;
    box-shadow: 0 0 0 2px rgba(122, 165, 232, .18);
}

.ny-product-grid .tags .badge-soft-primary {
    flex: 0 0 auto;
    max-width: none;
    margin-left: auto;
    font-size: 10px;
    color: var(--ny-on-yellow);
    background: var(--ny-yellow);
    border-color: color-mix(in srgb, var(--ny-yellow-deep) 48%, transparent);
}

.ny-product-grid .stat-bottom {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: 62px;
    font-size: 10.5px;
    line-height: 1.25;
    color: var(--ny-ink-3);
    white-space: nowrap;
    overflow: hidden;
}

.ny-product-grid .stat-bottom span {
    display: none;
}

.ny-product-grid .stat-bottom span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ny-product-grid .stat-bottom span:first-child::after {
    content: none;
}

.ny-product-grid > a.has-low-stock .stat-bottom span:last-child {
    display: none;
}

.ny-product-grid > a.has-low-stock .stat-bottom span:first-child {
    display: block;
    color: var(--ny-warn);
    font-size: 10.5px;
    font-weight: 700;
}

.ny-product-grid > a.has-low-stock .stat-bottom span:first-child::after {
    content: none;
}

/* 价格:卡片底线左侧视觉锚点。 */
.ny-product-grid .stat-row {
    grid-area: price;
    position: static;
    transform: none;
    margin: 0 !important;
    display: flex;
    align-items: baseline;
    align-self: end;
}

.ny-product-grid .price {
    font-size: 19.5px;
    font-weight: 800;
    line-height: 1;
    color: var(--ny-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
}

.ny-product-grid .price .unit {
    font-size: 11px;
    font-weight: 700;
    margin-right: 2px;
    color: var(--ny-yellow-deep);
}

.ny-product-grid .soldout {
    opacity: 1;
    background: var(--ny-surface);
}

.ny-product-grid .soldout .acg-thumb {
    filter: grayscale(1);
    opacity: .5;
}

.ny-product-grid .soldout .goods-title,
.ny-product-grid .soldout .price {
    color: var(--ny-ink-3);
}

.ny-product-grid .soldout .tags {
    display: none;
}

.ny-product-grid .soldout-ribbon {
    position: absolute;
    z-index: 4;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(23, 22, 19, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.ny-product-grid .item-message {
    grid-column: 1 / -1;
    width: auto;
}

.ny-product-skeleton {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 195px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-l);
    background: var(--ny-surface);
}

.ny-product-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(100deg, transparent 28%, color-mix(in srgb, var(--ny-surface) 74%, transparent) 48%, transparent 68%);
    animation: ny-product-shimmer 1.25s ease-in-out infinite;
}

.ny-product-skeleton__media,
.ny-product-skeleton__title,
.ny-product-skeleton__meta {
    display: block;
    background: var(--ny-surface-3);
}

.ny-product-skeleton__media {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-bottom: 1px solid var(--ny-line);
}

.ny-product-skeleton__title {
    width: calc(100% - 28px);
    height: 12px;
    margin: 13px 10px 0;
    border-radius: 6px;
}

.ny-product-skeleton__meta {
    width: 54%;
    height: 9px;
    margin: 12px 10px 0;
    border-radius: 5px;
}

@keyframes ny-product-shimmer {
    to {
        transform: translateX(110%);
    }
}

/* 搜索/筛选空结果:一个明确、安静且可恢复的原生空态。 */
.ny-product-empty {
    grid-column: 1 / -1;
    width: auto;
    min-height: 134px;
    margin: 0;
    padding: 40px 18px;
    color: var(--ny-ink-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-l);
}

.ny-product-empty .material-icons-outlined {
    margin-bottom: 4px;
    color: var(--ny-yellow-deep);
    font-size: 26px;
    line-height: 1;
}

.ny-product-empty strong {
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 700;
}

.ny-product-empty small {
    color: var(--ny-ink-3);
    font-size: 11px;
}

/* 共享脚本会额外弹一次“没有商品”，空态已就地说明时不重复打扰用户。 */
.ny-store-body:has(.ny-product-empty) .layui-layer-msg {
    display: none !important;
}

html[data-theme="dark"] .ny-product-grid .acg-card {
    box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .7), var(--ny-shadow-1);
}

@media (max-width: 359px) {
    .ny-store-home {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ny-product-grid {
        gap: 8px;
    }

    .ny-product-grid .acg-card .p-3 {
        min-height: 82px;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .ny-product-grid .stat-bottom {
        display: none;
    }

    .ny-product-grid .goods-title {
        font-size: 13.5px;
    }

    .ny-product-grid .price {
        font-size: 18px;
    }

    .ny-product-grid .tags {
        top: 7px;
        left: 7px;
        right: 7px;
    }

    .ny-product-grid .tags .badge-soft,
    .ny-product-grid .tags .a-badge {
        min-height: 21px;
        padding: 3px 7px;
        font-size: 9px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .ny-product-grid .acg-card,
    .ny-product-grid .acg-thumb {
        transition: none;
    }

    .ny-product-grid > a:active .acg-card,
    .ny-product-grid > a:active .acg-thumb {
        transform: none;
    }

    .ny-product-skeleton::after {
        animation: none;
    }
}

/* — 商品详情 — */
.ny-item-page {
    padding-top: 0;
    gap: 12px;
}

.ny-item-cover-card {
    position: relative;
    margin: 0 -16px;
}

.ny-body .ny-item-cover-card .item-cover {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--ny-surface-3);
    border-radius: 0;
}

.ny-cover-back,
.ny-cover-share {
    position: absolute;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--ny-surface) 84%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ny-ink);
    cursor: pointer;
    box-shadow: var(--ny-shadow-1);
}

.ny-cover-back {
    left: 12px;
}

.ny-cover-share {
    right: 12px;
}

.ny-cover-back .material-icons-outlined,
.ny-cover-share .material-icons-outlined {
    font-size: 20px;
}

.ny-item-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ny-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ny-item-summary h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.ny-purchase-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ny-purchase-section {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-field-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ny-field-heading strong {
    font-size: 14px;
    font-weight: 700;
}

.ny-field-heading small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

/* SKU 规格选择 */
.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ny-body .sku {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 14px;
    border-radius: var(--ny-radius-s);
    border: 1.5px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--ny-dur);
    position: relative;
}

.ny-body .sku em {
    font-style: normal;
    font-size: 12px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

.ny-body .sku.is-primary {
    border-color: var(--ny-graphite);
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-body .sku.is-primary em {
    color: var(--ny-yellow);
}

/* 自选卡密 */
.ny-select-card {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface-2);
    color: var(--ny-ink-2);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.ny-select-card .material-icons-outlined {
    color: var(--ny-yellow-deep);
    font-size: 20px;
    flex: 0 0 auto;
}

/* 数量步进(压制 index.css 的 .input-group.qty-group 粉色皮肤:含容器的粉色 box-shadow)
   统一为一枚 surface-2 药丸:按钮/输入框透明融入,数字两侧发丝分隔线,iOS 分段步进器观感 */
.ny-body .input-group.ny-quantity {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    align-self: flex-start;
    width: auto;
    max-width: 220px;
    /* 覆盖共享 .qty-group 的 gap:14px —— 段间贴合,分隔线才在按钮/输入框交界处 */
    gap: 0;
    border: 1px solid var(--ny-line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--ny-surface-2) !important;
    box-shadow: none !important;
    padding: 0;
}

.ny-body .input-group.ny-quantity > button {
    appearance: none;
    position: static;
    border: 0;
    border-radius: 0;
    width: 50px;
    height: auto;
    min-height: 46px;
    background: transparent !important;
    color: var(--ny-ink) !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: none !important;
    margin: 0;
    flex: 0 0 auto;
    transition: background var(--ny-dur);
}

.ny-body .input-group.ny-quantity > button:active {
    background: var(--ny-surface-3) !important;
}

.ny-body .input-group.ny-quantity > button .material-icons-outlined {
    font-size: 20px;
    color: var(--ny-ink-2);
}

.ny-body .input-group.ny-quantity > input.form-control {
    flex: 0 0 auto;
    width: 64px;
    min-height: 46px;
    border: 0;
    border-left: 1px solid var(--ny-line);
    border-right: 1px solid var(--ny-line);
    border-radius: 0;
    outline: none;
    box-shadow: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: transparent !important;
    color: var(--ny-ink) !important;
    padding: 0 6px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ny-body .input-group.ny-quantity > input::-webkit-outer-spin-button,
.ny-body .input-group.ny-quantity > input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* 批发价目(共享 wholesale-table) */
.ny-body .wholesale-table {
    width: 100%;
    margin-top: 10px !important;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--ny-ink-2);
    background: transparent;
}

.ny-body .wholesale-table th,
.ny-body .wholesale-table td {
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px dashed var(--ny-line);
    text-align: left;
    background: transparent;
    color: inherit;
}

.ny-body .wholesale-table thead th {
    color: var(--ny-ink-3);
    font-weight: 600;
    font-size: 11px;
}

/* 商品详情富文本 */
.ny-item-detail {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-rich-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ny-ink-2);
    overflow-wrap: anywhere;
}

.ny-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ny-radius-s);
}

.ny-rich-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* 底部购买坞 */
.ny-buy-dock {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 140;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(max(var(--ny-sab), 10px));
    background: color-mix(in srgb, var(--ny-surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--ny-line);
}

.ny-item-page ~ * .ny-bottom-nav,
body.ny-store-body:has(.ny-buy-dock) .ny-bottom-nav {
    display: none;
}

.ny-buy-dock .abacus {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 84px;
}

.ny-buy-dock .abacus small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-buy-dock .price {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ny-ink);
    display: flex;
    align-items: baseline;
}

.ny-buy-dock .price .unit {
    font-size: 13px;
    color: var(--ny-yellow-deep);
    margin-right: 1px;
}

.ny-buy-dock .ny-primary-button {
    flex: 1;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    font-weight: 700;
}

.ny-buy-dock .ny-primary-button:disabled {
    background: var(--ny-surface-3);
    color: var(--ny-ink-3);
    opacity: 1;
}

.ny-item-page {
    padding-bottom: calc(84px + var(--ny-sab));
}

body.ny-has-dock .ny-bottom-nav {
    display: none;
}

/* 商品控件(widget_render)与通用 bootstrap 控件 */
.ny-item-fields {
    gap: 16px;
}

.ny-item-fields .form-group,
.ny-item-fields .mb-3 {
    margin: 0 !important;
}

.ny-item-fields label:not(.ny-outlined-field) {
    font-size: 12px;
    font-weight: 600;
    color: var(--ny-ink-2);
    margin-bottom: 6px;
    display: block;
}

/* widget 文本/下拉字段(用户名等)→ 与 .ny-outlined-field 统一的 MUI 缺口标签:
   标签绝对定位压在输入框上边框、表面色背景"切断"边框。复选/单选组无直接 input,
   :has 不命中,仍走上面的堆叠标签。 */
.ny-item-fields > div:has(> input.form-control, > select.form-control, > textarea.form-control) {
    position: relative;
    margin: 0;
}

.ny-item-fields > div:has(> input.form-control, > select.form-control, > textarea.form-control) > label.form-label {
    position: absolute;
    top: -7px;
    left: 12px;
    width: auto;
    margin: 0;
    padding: 0 5px;
    background: var(--ny-surface);
    font-size: 11px;
    font-weight: 600;
    color: var(--ny-ink-3);
    border-radius: 4px;
    letter-spacing: .02em;
    z-index: 1;
    display: inline-block;
}

.ny-purchase-section input.form-control,
.ny-purchase-section select.form-control,
.ny-purchase-section textarea.form-control,
.ny-purchase-section select.form-select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 15px;
    outline: none;
    box-shadow: none;
}

.ny-purchase-section input.form-control:focus,
.ny-purchase-section textarea.form-control:focus {
    border-color: var(--ny-ink);
    box-shadow: 0 0 0 3px var(--ny-yellow-tint);
}

/* 支付方式面板 */
.ny-payment-sheet .cash-pay {
    overflow-y: auto;
    padding: 12px 16px 4px;
}

.ny-payment-sheet .pay-list,
.ny-topup-methods,
.ny-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ny-payment-sheet .pay-list .pay {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--ny-ink);
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur);
}

.ny-payment-sheet .pay-list .pay:active {
    border-color: var(--ny-yellow);
    background: var(--ny-yellow-tint);
}

.ny-payment-sheet .pay-list .pay img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.ny-payment-sheet .pay-list .pay::after {
    content: "arrow_forward_ios";
    font-family: "Material Icons Outlined";
    font-size: 14px;
    color: var(--ny-ink-3);
    margin-left: auto;
}

/* 充值页支付方式:iOS 内嵌分组列表(单容器 + 发丝分隔线);
   recharge.js 注入 .btn-pay 带内联粉色,需 !important 压制 */
.ny-body .ny-topup-methods {
    display: block;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    overflow: hidden;
    background: var(--ny-surface);
}

.ny-body .ny-topup-methods__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    color: var(--ny-ink-3);
    font-size: 13px;
}

.ny-body .ny-topup-methods__loading .material-icons-outlined {
    font-size: 18px;
    animation: ny-spin 1s linear infinite;
}

/* 支付方式加载完成后(recharge.js 注入 .btn-pay)移除占位 */
.ny-body .ny-topup-methods:has(.btn-pay) .ny-topup-methods__loading {
    display: none;
}

.ny-body .ny-topup-methods .btn-pay {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 9px 16px;
    border: 0;
    border-top: 1px solid var(--ny-line);
    border-radius: 0;
    background: transparent;
    color: var(--ny-ink) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4 !important;
    cursor: pointer;
    transition: background var(--ny-dur);
}

.ny-body .ny-topup-methods .btn-pay:first-of-type {
    border-top: 0;
}

.ny-body .ny-topup-methods .btn-pay:active {
    background: var(--ny-surface-2);
}

/* 支付图标:统一放进圆角浅底容器,消除大小不一的观感 */
.ny-body .ny-topup-methods .btn-pay .pay-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 auto;
    padding: 6px;
    border-radius: 10px;
    background: var(--ny-surface-3);
    border: 1px solid var(--ny-line);
    object-fit: contain;
    box-sizing: border-box;
}

/* 尾随选择指示器 */
.ny-body .ny-topup-methods .btn-pay::after {
    content: "radio_button_unchecked";
    font-family: "Material Icons Outlined";
    font-size: 22px;
    color: var(--ny-line-strong);
    margin-left: auto;
    flex: 0 0 auto;
    transition: color var(--ny-dur);
}

.ny-body .ny-topup-methods .btn-pay.checked {
    background: var(--ny-yellow-tint);
}

.ny-body .ny-topup-methods .btn-pay.checked .pay-icon {
    border-color: color-mix(in srgb, var(--ny-yellow) 50%, transparent);
}

.ny-body .ny-topup-methods .btn-pay.checked::after {
    content: "check_circle";
    color: var(--ny-yellow-deep);
}

.ny-payment-note {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 10px 0 2px;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-payment-note .material-icons-outlined {
    font-size: 14px;
}

/* — 订单查询页 — */
.ny-page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ny-page-heading h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.ny-page-heading p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-query-panel .order-query-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

/* 查询结果卡片(query.js 生成的 .order-item) */
.order-results .order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.ny-body .order-item {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: ny-rise .3s var(--ny-ease);
}

.ny-body .order-item .order-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ny-body .order-item .order-basic {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--ny-ink-3);
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.ny-body .order-item .order-no {
    font-size: 12px;
    color: var(--ny-ink-2);
    font-variant-numeric: tabular-nums;
}

.ny-body .order-item .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
}

.ny-body .order-item .status-paid {
    background: var(--ny-green-tint);
    color: var(--ny-green);
}

.ny-body .order-item .status-pending {
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
}

.ny-body .order-item .order-right {
    text-align: right;
    flex: 0 0 auto;
}

.ny-body .order-item .amount-label {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-body .order-item .amount-value {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-body .order-item .payment-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 4px;
    vertical-align: -3px;
}

.ny-body .order-item .goods-section {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: var(--ny-surface-2);
    border-radius: var(--ny-radius-s);
}

.ny-body .order-item .goods-image {
    width: 52px;
    height: 52px;
    border-radius: var(--ny-radius-s);
    object-fit: cover;
    flex: 0 0 auto;
}

.ny-body .order-item .goods-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ny-body .order-item .goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ny-body .order-item .card-section {
    border-top: 1px dashed var(--ny-line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-body .order-item .shipment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px !important;
    font-weight: 700;
}

.ny-body .order-item .shipment-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
}

.ny-body .order-item .shipment-badge.shipment-paid {
    background: var(--ny-green-tint);
    color: var(--ny-green);
}

.ny-body .order-item .card-display {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    border-radius: var(--ny-radius-s);
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
    -webkit-user-select: text;
}

html[data-theme="dark"] .ny-body .order-item .card-display {
    background: var(--ny-surface-3);
    color: var(--ny-ink);
}

.ny-body .order-item .password-form .input-group {
    display: flex;
    gap: 8px;
}

.ny-body .order-item .card-password-input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14px;
    outline: none;
}

.ny-body .order-item .view-card-btn {
    appearance: none;
    border: 0;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--ny-radius-s);
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ny-body .order-item .card-loading .loading-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ny-ink-3);
    font-size: 13px;
    justify-content: center;
    padding: 8px 0;
}

/* ==== 06 认证 ============================================================= */

.ny-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 8vh 24px calc(var(--ny-nav-h) + var(--ny-sab) + 32px);
    max-width: 420px;
    margin: 0 auto;
}

.ny-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ny-auth-brand .ny-brand-mark--large {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 6px;
}

.ny-auth-brand .ny-route-mark {
    position: absolute;
    right: 24px;
    top: calc(8vh + var(--ny-sat));
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

.ny-auth-main {
    position: relative;
}

.ny-auth-brand h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .01em;
}

.ny-auth-brand p {
    margin: 0;
    font-size: 13px;
    color: var(--ny-ink-3);
}

.ny-auth-icon {
    font-size: 40px;
    color: var(--ny-yellow-deep);
    background: var(--ny-yellow-tint);
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}

.ny-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ny-auth-form .ny-outlined-field > span {
    background: var(--ny-bg);
}

.ny-auth-form .ny-outlined-field input {
    background: transparent;
}

.ny-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -6px 0;
}

.ny-body .ny-form-meta a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ny-auth-submit {
    margin-top: 4px;
}

.ny-auth-hooks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-auth-hooks:empty {
    display: none;
}

.ny-auth-hooks a,
.ny-auth-hooks button {
    min-height: 48px;
}

.ny-auth-switch {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--ny-ink-3);
}

.ny-body .ny-auth-switch a {
    color: var(--ny-ink);
    font-weight: 700;
    margin-left: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ==== 07 会员中心页面 ===================================================== */

/* 页头:标题 + 单个主操作 */
.ny-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ny-page-intro h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .01em;
}

.ny-page-intro p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-page-intro__icon {
    display: none;
}

.ny-page-intro .ny-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
}

/* 安全中心页签 */
.ny-security-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 16px 0;
}

.ny-security-nav::-webkit-scrollbar {
    display: none;
}

.ny-body .ny-security-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--ny-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
    background: var(--ny-surface-2);
}

.ny-security-nav a .material-icons-outlined {
    font-size: 17px;
}

.ny-body .ny-security-nav a.is-active {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

/* 通用表单区块 */
.ny-form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ny-line);
}

.ny-form-section:last-of-type {
    border-bottom: 0;
}

.ny-form-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ny-form-section__head .material-icons-outlined {
    font-size: 20px;
    color: var(--ny-ink-2);
    background: var(--ny-surface-3);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ny-form-section__head strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.ny-form-section__head small {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ny-form-actions {
    display: flex;
    padding: 12px 0 2px;
}

.ny-form-actions .ny-button {
    flex: 1;
    width: 100%;
}

.ny-form-actions--center {
    position: static;
    background: none;
}

/* 安全设置(邮箱/手机/密码)*/
.ny-security-form-layout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.ny-compact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ny-security-guide {
    display: none;
}

/* 个人资料 */
.ny-profile-grid {
    display: flex;
    flex-direction: column;
    padding: 0 16px 16px;
}

.ny-profile-avatar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ny-line);
}

.ny-profile-avatar-card .ny-avatar-button {
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-width: 2px;
    background: none;
    border-style: solid;
    cursor: pointer;
    padding: 0;
}

.ny-profile-avatar-card .ny-avatar-button .material-icons-outlined {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    font-size: 13px;
    border-radius: 50%;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    display: grid;
    place-items: center;
}

.ny-profile-avatar-card strong {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.ny-profile-avatar-card span {
    font-size: 12px;
    color: var(--ny-ink-2);
    display: block;
}

.ny-profile-avatar-card small {
    font-size: 11px;
    color: var(--ny-ink-3);
    display: block;
}

/* 结算方式 / 支付方式选择列表 */
.ny-settlement-list,
.ny-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ny-body .ny-settlement-option,
.ny-body .ny-payment-method {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur);
    width: 100%;
}

.ny-body .ny-settlement-option img.pay-icon,
.ny-body .ny-payment-method img.pay-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.ny-body .ny-payment-method > span:first-child {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.ny-body .ny-payment-method > div {
    flex: 1;
    min-width: 0;
}

.ny-body .ny-payment-method strong {
    display: block;
    font-size: 14px;
}

.ny-body .ny-payment-method small {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
    font-weight: 500;
}

.ny-body .ny-settlement-option i,
.ny-body .ny-payment-method i {
    margin-left: auto;
    font-style: normal;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: transparent;
    border: 2px solid var(--ny-line-strong);
    transition: all var(--ny-dur);
    flex: 0 0 auto;
}

.ny-body .ny-settlement-option span {
    flex: 1;
}

.ny-body .ny-settlement-option.checked,
.ny-body .ny-payment-method.checked {
    border-color: var(--ny-yellow);
    background: var(--ny-yellow-tint);
}

.ny-body .ny-settlement-option.checked i,
.ny-body .ny-payment-method.checked i {
    background: var(--ny-yellow);
    border-color: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

.ny-body .ny-payment-method.is-unbound {
    opacity: .6;
}

.ny-payment-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-body .ny-payment-help a {
    color: var(--ny-blue);
    font-weight: 600;
}

.ny-payment-help .material-icons-outlined {
    font-size: 15px;
}

/* 微信收款二维码 */
.ny-qrcode-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ny-qrcode-field > div:first-child strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.ny-qrcode-field > div:first-child small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-body .wx_qrcode_temp,
.ny-body .wx_qrcode {
    appearance: none;
    width: 96px;
    height: 96px;
    min-width: 96px;
    border: 1.5px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface-2);
    color: var(--ny-ink-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    overflow: hidden;
}

.ny-body .wx_qrcode {
    border-style: solid;
    background-size: cover !important;
    background-position: center !important;
}

/* 金额输入 */
.ny-amount-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--ny-line-strong);
    border-radius: var(--ny-radius);
    padding: 6px 16px;
    background: var(--ny-surface);
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
}

.ny-amount-field:focus-within {
    border-color: var(--ny-ink);
    box-shadow: 0 0 0 3px var(--ny-yellow-tint);
}

.ny-amount-field > span {
    font-size: 18px;
    font-weight: 800;
    color: var(--ny-ink-2);
    flex: 0 0 auto;
}

.ny-amount-field > span.material-icons-outlined {
    font-size: 22px;
    color: var(--ny-yellow-deep);
}

.ny-amount-field input.layui-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: none;
    background: none !important;
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ny-ink);
    height: 52px;
    padding: 0;
    box-shadow: none !important;
}

.ny-amount-field em {
    font-style: normal;
    font-size: 12px;
    color: var(--ny-ink-3);
    flex: 0 0 auto;
}

.ny-amount-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-amount-meta button {
    appearance: none;
    border: 0;
    background: none;
    color: var(--ny-blue);
    font-weight: 700;
    font-size: 13px;
    min-height: 44px;
    cursor: pointer;
    padding: 0 4px;
}

.ny-amount-meta button:disabled {
    color: var(--ny-ink-3);
    cursor: not-allowed;
}

/* 表单步骤(01/02) */
.ny-form-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px dashed var(--ny-line);
}

.ny-form-step:last-of-type {
    border-bottom: 0;
}

.ny-form-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ny-form-step__head > span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ny-form-step__head strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.ny-form-step__head small {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
}

/* ============ 充值页(钱包)重构 ============ */
.ny-topup-main {
    padding-bottom: calc(var(--ny-nav-h) + 118px + var(--ny-sab));
}

.ny-topup {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ny-topup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* — 余额卡:石墨渐变 + 精致等级进度 — */
.ny-wallet-card {
    position: relative;
    border-radius: var(--ny-radius-l);
    padding: 20px;
    color: var(--ny-on-graphite);
    background:
        radial-gradient(120% 120% at 100% 0, rgba(245, 179, 1, .16), transparent 42%),
        linear-gradient(155deg, #2b2a24 0%, #1b1a16 62%, #141310 100%);
    box-shadow: 0 16px 34px -18px rgba(20, 19, 16, .5);
    overflow: hidden;
}

html[data-theme="dark"] .ny-wallet-card {
    color: var(--ny-ink);
    background:
        radial-gradient(120% 120% at 100% 0, rgba(242, 184, 36, .14), transparent 42%),
        var(--ny-surface-2);
    border: 1px solid var(--ny-line);
    box-shadow: none;
}

.ny-wallet-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ny-wallet-card__kicker {
    font-size: 12.5px;
    letter-spacing: .04em;
    opacity: .68;
}

.ny-body .ny-wallet-card__more {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
    color: inherit;
    opacity: .68;
    min-height: 32px;
}

.ny-wallet-card__more .material-icons-outlined {
    font-size: 16px;
}

.ny-wallet-card__amount {
    margin-top: 2px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.ny-wallet-card__cur {
    font-size: 22px;
    font-weight: 700;
    margin-right: 3px;
    color: var(--ny-yellow);
    vertical-align: 3px;
}

.ny-wallet-card__level {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ny-wallet-level__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ny-wallet-level__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
}

.ny-wallet-level__badge img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.ny-wallet-level__energy {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ny-wallet-level__energy small {
    font-size: 11px;
    font-weight: 500;
    opacity: .66;
    margin-left: 3px;
}

.ny-wallet-level__bar {
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 16%, transparent);
    overflow: hidden;
}

.ny-wallet-level__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ny-yellow-deep), var(--ny-yellow));
    transition: width .6s var(--ny-ease);
}

.ny-wallet-level__foot {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    opacity: .7;
}

.ny-wallet-level__foot b {
    font-weight: 700;
    opacity: 1;
    color: var(--ny-yellow);
}

/* — 面板 — */
.ny-topup-panel {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-l);
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ny-topup-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.ny-topup-panel__head > span {
    font-size: 15px;
    font-weight: 700;
}

.ny-topup-panel__head small {
    font-size: 11.5px;
    color: var(--ny-ink-3);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* — 金额输入主角 — */
.ny-amount-hero {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 14px;
    border-bottom: 2px solid var(--ny-line-strong);
    transition: border-color var(--ny-dur);
}

.ny-amount-hero:focus-within {
    border-color: var(--ny-yellow);
}

.ny-amount-hero__cur {
    font-size: 26px;
    font-weight: 800;
    color: var(--ny-yellow-deep);
    flex: 0 0 auto;
}

.ny-body .ny-amount-hero__input {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--ny-ink);
    font-variant-numeric: tabular-nums;
    font-family: inherit;
}

.ny-amount-hero__input::placeholder {
    color: var(--ny-ink-3);
}

/* 实时到账预览 */
.ny-topup-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--ny-ink-3);
}

.ny-topup-preview > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.ny-topup-preview > span + span::before {
    content: "";
    position: absolute;
    left: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ny-line-strong);
}

.ny-topup-preview b {
    font-weight: 800;
    color: var(--ny-ink);
    font-variant-numeric: tabular-nums;
}

.ny-topup-preview__gift b {
    color: var(--ny-warn);
}

/* 快捷金额:横向滑轨 */
.ny-quick-amounts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px;
    -webkit-overflow-scrolling: touch;
}

.ny-quick-amounts::-webkit-scrollbar {
    display: none;
}

.ny-body .uc-topup-preset {
    appearance: none;
    flex: 0 0 auto;
    min-width: 76px;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--ny-line-strong);
    border-radius: 999px;
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all var(--ny-dur);
}

.ny-body .uc-topup-preset small {
    font-size: 11px;
    margin-right: 1px;
    color: var(--ny-ink-3);
}

.ny-body .uc-topup-preset.active {
    border-color: var(--ny-graphite);
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-body .uc-topup-preset.active small {
    color: var(--ny-yellow);
}

/* 满赠芯片 */
.ny-topup-bonuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ny-body .uc-topup-bonus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ny-yellow-tint);
    color: var(--ny-warn);
    font-size: 12px;
    font-weight: 700;
}

.ny-body .uc-topup-bonus .material-icons-outlined {
    font-size: 15px;
}

.ny-limit-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-limit-note b {
    color: var(--ny-ink-2);
    font-weight: 700;
}

.ny-limit-note .material-icons-outlined {
    font-size: 15px;
    flex: 0 0 auto;
}

/* — 固定底部确认坞 — */
.ny-topup-dock {
    position: fixed;
    left: 50%;
    bottom: calc(var(--ny-nav-h) + var(--ny-sab));
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 125;
    background: color-mix(in srgb, var(--ny-surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--ny-line);
    padding: 8px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ny-topup-dock__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ny-ink-3);
    min-height: 16px;
}

.ny-topup-dock__status .material-icons-outlined {
    font-size: 15px;
}

.ny-topup-dock__status.is-ready {
    color: var(--ny-green);
}

.ny-topup-dock__status.is-waiting {
    color: var(--ny-warn);
}

.ny-topup-dock__bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ny-topup-dock__sum {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 0 0 auto;
    min-width: 84px;
}

.ny-topup-dock__sum small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-topup-dock__sum strong {
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ny-ink);
}

.ny-topup-dock__cur {
    font-size: 14px;
    color: var(--ny-yellow-deep);
    margin-right: 1px;
}

.ny-body .ny-topup-dock__btn {
    flex: 1;
    min-height: 50px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    font-weight: 800;
    font-size: 15.5px;
}

.ny-body .ny-topup-dock__btn:disabled {
    background: var(--ny-surface-3);
    color: var(--ny-ink-3);
    opacity: 1;
}

.ny-topup-dock__btn .material-icons-outlined {
    font-size: 19px;
}

/* 结算摘要(充值/兑现共用) */
.ny-receipt-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--ny-line);
}

.ny-receipt-total > span {
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-receipt-total strong {
    font-size: 30px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.ny-receipt-total strong small {
    font-size: 15px;
    margin-right: 2px;
    color: var(--ny-yellow-deep);
}

.ny-receipt-total em {
    font-style: normal;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-receipt-rows {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.ny-receipt-rows > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    font-size: 13px;
}

.ny-receipt-rows > div > span {
    color: var(--ny-ink-3);
}

.ny-receipt-rows strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ny-receipt-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--ny-radius-s);
    font-size: 12.5px;
    font-weight: 600;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    margin: 6px 0;
}

.ny-receipt-status .material-icons-outlined {
    font-size: 17px;
}

.ny-receipt-status.is-ready,
.ny-receipt-status.is-ok {
    background: var(--ny-green-tint);
    color: var(--ny-green);
}

.ny-receipt-status.is-error,
.ny-receipt-status.is-waiting {
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
}

.ny-receipt-note,
.ny-safe-note {
    display: flex;
    gap: 8px;
    font-size: 11.5px;
    color: var(--ny-ink-3);
    line-height: 1.6;
    margin-top: 6px;
}

.ny-receipt-note .material-icons-outlined,
.ny-safe-note .material-icons-outlined {
    font-size: 15px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.ny-receipt-note strong {
    display: block;
    color: var(--ny-ink-2);
    font-size: 12px;
}

.ny-submit-safe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-submit-safe .material-icons-outlined {
    font-size: 14px;
}

.ny-submit-button {
    width: 100%;
    margin-top: 8px;
}

.ny-topup-grid,
.ny-cash-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 等级成长路径 */
.ny-current-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--ny-ink-2);
    background: var(--ny-surface-3);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ny-level-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: none;
    position: relative;
}

.ny-level-track::-webkit-scrollbar {
    display: none;
}

.ny-level-node {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 74px;
    text-align: center;
    position: relative;
    opacity: .55;
}

.ny-level-node.is-unlocked {
    opacity: 1;
}

.ny-level-node > span {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--ny-line-strong);
    background: var(--ny-surface);
    display: grid;
    place-items: center;
}

.ny-level-node.is-unlocked > span {
    border-color: var(--ny-yellow);
}

.ny-level-node > span img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.ny-level-node > span i {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    display: grid;
    place-items: center;
}

.ny-level-node strong {
    font-size: 12px;
}

.ny-level-node small {
    font-size: 10px;
    color: var(--ny-ink-3);
}

.ny-level-node em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: var(--ny-on-yellow);
    background: var(--ny-yellow);
    border-radius: 999px;
    padding: 1px 8px;
}

.ny-level-node.is-current strong {
    color: var(--ny-ink);
}

/* 兑现页 */
.ny-subtabs {
    display: flex;
    padding: 6px;
    gap: 4px;
    background: var(--ny-surface-3);
    border-radius: 999px;
    margin-bottom: 4px;
}

.ny-body .ny-subtabs a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
    position: relative;
}

.ny-subtabs a .material-icons-outlined {
    font-size: 17px;
}

.ny-body .ny-subtabs a.is-active {
    background: var(--ny-surface);
    color: var(--ny-ink);
    box-shadow: var(--ny-shadow-1);
}

.ny-subtabs a em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    display: inline-grid;
    place-items: center;
}

.ny-cash-hero {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ny-cash-hero__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ny-cash-balance {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ny-cash-balance__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
    display: grid;
    place-items: center;
    font-size: 24px;
    flex: 0 0 auto;
}

.ny-cash-balance small {
    display: block;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-cash-balance strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.ny-cash-balance strong em {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-3);
    margin-left: 4px;
}

.ny-cash-balance p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ny-ink-3);
}

.ny-cash-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ny-cash-facts > * {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface-2);
    border: 1px solid var(--ny-line);
}

.ny-cash-facts .material-icons-outlined {
    font-size: 17px;
    color: var(--ny-ink-3);
}

.ny-cash-facts small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-cash-facts strong {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ny-cash-facts strong em {
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    color: var(--ny-ink-3);
    margin-left: 2px;
}

/* 店铺页:套餐选择 */
.ny-plan-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ny-body .ny-plan {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    padding: 16px;
    border: 1.5px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur);
}

.ny-body .ny-plan.checked {
    border-color: var(--ny-yellow);
    background: var(--ny-yellow-tint);
}

.ny-plan__badge {
    position: absolute;
    top: -1px;
    right: 14px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: .08em;
}

.ny-plan__check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--ny-line-strong);
    color: transparent;
    font-size: 15px;
    display: grid;
    place-items: center;
    transition: all var(--ny-dur);
}

.ny-body .ny-plan.checked .ny-plan__check {
    background: var(--ny-yellow);
    border-color: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

.ny-plan__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ny-plan__head img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.ny-plan__head strong {
    font-size: 15px;
    font-weight: 700;
    display: block;
}

.ny-plan__head small {
    font-size: 11px;
    color: var(--ny-ink-3);
    display: block;
}

.ny-plan__price {
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-plan__price small {
    font-size: 14px;
    color: var(--ny-yellow-deep);
    margin-right: 2px;
}

.ny-plan__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--ny-ink-2);
}

.ny-plan__features > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ny-plan__features i {
    font-size: 15px;
    color: var(--ny-green);
}

.ny-plan__features .is-off {
    color: var(--ny-ink-3);
}

.ny-plan__features .is-off i {
    color: var(--ny-ink-3);
}

.ny-plan__fee {
    margin-left: auto;
    gap: 6px;
}

.ny-plan__fee em {
    font-style: normal;
    color: var(--ny-ink-3);
}

.ny-plan__fee b {
    font-weight: 700;
}

.ny-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.ny-benefit-grid > div {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface-2);
    border: 1px solid var(--ny-line);
    font-size: 12px;
    color: var(--ny-ink-2);
    line-height: 1.6;
}

.ny-benefit-grid .material-icons-outlined {
    font-size: 19px;
    color: var(--ny-ink-3);
    flex: 0 0 auto;
    margin-top: 1px;
}

.ny-benefit-grid p {
    margin: 0;
}

.ny-benefit-grid strong {
    display: block;
    color: var(--ny-ink);
    font-size: 13px;
    margin-bottom: 1px;
}

/* 店铺总览 + 页签 */
.ny-business-overview {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    border-radius: var(--ny-radius-l);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.ny-business-overview::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 4px;
    border-radius: 0 var(--ny-radius-l) 0 4px;
    background: var(--ny-yellow);
}

html[data-theme="dark"] .ny-business-overview {
    background: var(--ny-surface-2);
    color: var(--ny-ink);
    border: 1px solid var(--ny-line);
}

.ny-business-overview__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ny-business-overview__identity > span {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 10%, transparent);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ny-business-overview__identity img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.ny-business-overview__identity small {
    display: block;
    font-size: 11px;
    opacity: .66;
}

.ny-business-overview__identity strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.ny-business-overview__identity em {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ny-yellow);
}

.ny-business-overview__identity em::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ny-business-overview__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ny-business-overview__features > div {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-radius: var(--ny-radius-s);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ny-business-overview__features .material-icons-outlined {
    font-size: 17px;
    opacity: .8;
}

.ny-business-overview__features small {
    font-size: 10px;
    opacity: .66;
}

.ny-business-overview__features strong {
    font-size: 12px;
    font-weight: 700;
}

.ny-business-overview__features .is-off {
    opacity: .55;
}

.ny-body .ny-business-overview .ny-button--tonal {
    border-color: color-mix(in srgb, currentColor 28%, transparent);
    background: none;
    color: inherit;
    align-self: flex-start;
    min-height: 44px;
}

/* 店铺设置页签 */
/* 该面板承载 sticky 标签栏;.ny-panel 基础的 overflow:hidden 会成为 sticky 的滚动上下文
   并令其错位(把标签栏下推、盖住内容),故这里放开为 visible,让 sticky 相对窗口正常吸顶。 */
.ny-body .ny-business-settings {
    overflow: visible;
}

.ny-business-tabs {
    display: flex;
    border-bottom: 1px solid var(--ny-line);
    background: var(--ny-surface);
    position: sticky;
    top: calc(var(--ny-appbar-h) + var(--ny-sat));
    z-index: 30;
    /* overflow:visible 后自行补顶部圆角,维持卡片圆角外观 */
    border-radius: var(--ny-radius) var(--ny-radius) 0 0;
}

.ny-business-tab-trigger {
    appearance: none;
    flex: 1;
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ny-ink-3);
    cursor: pointer;
    position: relative;
}

.ny-business-tab-trigger .material-icons-outlined {
    font-size: 20px;
}

.ny-business-tab-trigger.is-active {
    color: var(--ny-ink);
}

.ny-business-tab-trigger.is-active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 40px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--ny-yellow);
}

.ny-business-tab-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.ny-business-tab-panel.is-active {
    display: flex;
}

.ny-notice-field > div:first-child {
    margin-bottom: 8px;
}

.ny-notice-field strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.ny-notice-field small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

/* 开关行 */
.ny-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
}

.ny-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ny-switch-row > span {
    flex: 0 0 auto;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: var(--ny-line-strong);
    position: relative;
    transition: background var(--ny-dur);
}

.ny-switch-row > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--ny-shadow-1);
    transition: transform var(--ny-dur) var(--ny-ease);
}

.ny-switch-row input:checked + span {
    background: var(--ny-green);
}

.ny-switch-row input:checked + span::after {
    transform: translateX(18px);
}

.ny-switch-row strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ny-switch-row small {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
}

/* 域名卡片 */
.ny-domain-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface-2);
}

.ny-domain-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ny-domain-card__head .material-icons-outlined {
    font-size: 19px;
    color: var(--ny-ink-2);
}

.ny-domain-card__head > div {
    flex: 1;
    min-width: 0;
}

.ny-domain-card__head strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.ny-domain-card__head small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-status-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ny-status-chip.is-ok {
    background: var(--ny-green-tint);
    color: var(--ny-green);
}

.ny-status-chip.is-warn {
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
}

.ny-domain-row {
    display: flex;
    gap: 8px;
}

.ny-domain-row input.layui-input {
    flex: 1;
    min-width: 0;
}

.ny-domain-card input.layui-input,
.ny-domain-card select {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.ny-domain-row select {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    font-weight: 600;
}

.ny-cname {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ny-ink-3);
    flex-wrap: wrap;
}

.ny-cname button.clipboard {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed var(--ny-line-strong);
    background: var(--ny-surface);
    border-radius: 8px;
    min-height: 40px;
    padding: 4px 10px;
    color: var(--ny-ink);
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ny-cname code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.ny-cname .material-icons-outlined {
    font-size: 15px;
    color: var(--ny-ink-3);
}

.ny-locked-state .ny-panel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 48px 24px;
}

.ny-locked-state .material-icons-outlined {
    font-size: 44px;
    color: var(--ny-ink-3);
}

.ny-locked-state h1 {
    margin: 0;
    font-size: 17px;
}

.ny-locked-state p {
    margin: 0;
    font-size: 13px;
    color: var(--ny-ink-3);
}

/* 店铺内主站分类/商品小节 */
.ny-business-table-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-business-table-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ny-business-table-head strong {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.ny-business-table-head small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-business-table-head > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ny-mini-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ny-mini-action .material-icons-outlined {
    font-size: 15px;
}

.ny-mini-action:active {
    background: var(--ny-surface-3);
}

.ny-mini-action--danger {
    color: var(--ny-red);
    border-color: color-mix(in srgb, var(--ny-red) 34%, transparent);
}

.ny-mini-action--primary {
    color: var(--ny-on-graphite);
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
}

/* — 我的(Dashboard) — */
.ny-me-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 2px;
}

.ny-me-head .ny-avatar-button {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-width: 2px;
}

.ny-me-head__info {
    flex: 1;
    min-width: 0;
}

.ny-me-head__info h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ny-me-head__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.ny-me-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px 2px 3px;
    border-radius: 999px;
    background: var(--ny-yellow-tint);
    color: var(--ny-warn);
    font-size: 11px;
    font-weight: 700;
}

.ny-me-level img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.ny-me-head > a.ny-icon-button {
    color: var(--ny-ink-3);
}

/* 钱包条 */
.ny-me-wallet {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    border-radius: var(--ny-radius-l);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.ny-me-wallet::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 4px;
    border-radius: 0 var(--ny-radius-l) 0 4px;
    background: var(--ny-yellow);
}

html[data-theme="dark"] .ny-me-wallet {
    background: var(--ny-surface-2);
    color: var(--ny-ink);
    border: 1px solid var(--ny-line);
}

.ny-me-wallet__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ny-me-wallet__grid a,
.ny-me-wallet__grid > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 52px;
    justify-content: center;
}

.ny-me-wallet__grid small {
    font-size: 11px;
    opacity: .66;
}

.ny-me-wallet__grid strong {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ny-me-wallet__grid strong small {
    font-size: 11px;
    opacity: 1;
    color: var(--ny-yellow);
    margin-right: 1px;
}

.ny-me-wallet__actions {
    display: flex;
    gap: 8px;
}

.ny-me-wallet__actions a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ny-me-wallet__actions a:first-child {
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

.ny-me-wallet__actions a:not(:first-child) {
    border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}

.ny-me-wallet__actions .material-icons-outlined {
    font-size: 17px;
}

/* 消费概览行 */
.ny-consume-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ny-consume-grid > div {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ny-consume-grid .material-icons-outlined {
    font-size: 18px;
    color: var(--ny-ink-3);
}

.ny-consume-grid small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-consume-grid strong {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ny-consume-grid strong em {
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    color: var(--ny-ink-3);
    margin-left: 2px;
}

.ny-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ny-section-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ny-section-heading .ny-section-note {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-section > .ny-section-heading {
    margin-bottom: 0;
}

.ny-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 经营区(商家) */
.ny-business-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ny-business-stats > div,
.ny-business-stats > a {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ny-business-stats span {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-business-stats strong {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-operation-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ny-operation-strip a {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    min-height: 76px;
    justify-content: center;
}

.ny-operation-strip .material-icons-outlined {
    font-size: 20px;
    color: var(--ny-ink-2);
}

.ny-operation-strip small {
    font-size: 10px;
    color: var(--ny-ink-3);
}

.ny-operation-strip strong {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-operation-strip strong em {
    font-style: normal;
    font-size: 9px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-operation-strip a.is-alert {
    border-color: color-mix(in srgb, var(--ny-yellow) 55%, transparent);
    background: var(--ny-yellow-tint);
}

.ny-operation-strip a.is-alert .material-icons-outlined,
.ny-operation-strip a.is-alert strong {
    color: var(--ny-warn);
}

/* 7 日走势 */
.ny-spark {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 4px 0 0;
}

.ny-spark__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.ny-spark__value {
    font-size: 9px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ny-spark__track {
    width: 100%;
    max-width: 26px;
    height: 72px;
    border-radius: 6px;
    background: var(--ny-surface-3);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ny-spark__track span {
    display: block;
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: var(--ny-yellow);
    min-height: 3px;
}

.ny-spark__label {
    font-size: 9px;
    color: var(--ny-ink-3);
}

/* 最近卖出 / 最近推广订单列表 */
.ny-activity-list,
.ny-list {
    display: flex;
    flex-direction: column;
}

.ny-activity-item,
.ny-list__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ny-line);
}

.ny-activity-item:last-child,
.ny-list__row:last-child {
    border-bottom: 0;
}

.ny-activity-item img,
.ny-list__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--ny-radius-s);
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--ny-surface-3);
}

.ny-activity-item > div:nth-child(2),
.ny-list__main {
    flex: 1;
    min-width: 0;
}

.ny-activity-item strong,
.ny-list__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ny-activity-item span,
.ny-list__time {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

.ny-activity-item__amount,
.ny-list__end {
    text-align: right;
    flex: 0 0 auto;
}

.ny-activity-item__amount strong,
.ny-list__amount {
    display: block;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-activity-item__amount span,
.ny-list__gain {
    display: block;
    font-size: 11px;
    color: var(--ny-green);
    font-weight: 600;
}

/* 开店入口(会员,不打扰) */
.ny-business-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius);
    background: var(--ny-surface-2);
}

.ny-business-entry__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
    display: grid;
    place-items: center;
    font-size: 21px;
    flex: 0 0 auto;
}

.ny-business-entry > div {
    flex: 1;
    min-width: 0;
}

.ny-business-entry h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.ny-business-entry small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-business-entry p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-business-entry .material-icons-outlined.ny-business-entry__go {
    color: var(--ny-ink-3);
}

/* 我的-设置列表 */
.ny-me-menu {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ny-body .ny-me-menu a,
.ny-body .ny-me-menu button {
    appearance: none;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ny-ink);
    border-bottom: 1px solid var(--ny-line);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.ny-me-menu a:last-child,
.ny-me-menu button:last-child {
    border-bottom: 0;
}

.ny-me-menu .material-icons-outlined:first-child {
    font-size: 20px;
    color: var(--ny-ink-2);
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--ny-surface-3);
    display: grid;
    place-items: center;
    font-weight: 400;
}

.ny-me-menu span:nth-child(2) {
    flex: 1;
}

.ny-me-menu small {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-me-menu .material-icons-outlined:last-child {
    font-size: 16px;
    color: var(--ny-ink-3);
}

.ny-body .ny-me-menu .ny-me-menu__danger {
    color: var(--ny-red);
}

.ny-me-menu .ny-me-menu__danger .material-icons-outlined:first-child {
    color: var(--ny-red);
    background: var(--ny-red-tint);
}

/* 账户安全事实 */
.ny-security-fact {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ny-line);
    font-size: 13px;
}

.ny-security-fact:last-of-type {
    border-bottom: 0;
}

.ny-security-fact > span {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-security-fact strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ny-security-fact small {
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

.ny-security-alert {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--ny-radius-s);
    background: var(--ny-warn-tint);
    color: var(--ny-warn);
    font-size: 12px;
    font-weight: 600;
}

.ny-security-alert .material-icons-outlined {
    font-size: 16px;
    margin-top: 1px;
}

/* — 推广中心 — */
.ny-promo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ny-promo__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.ny-promo__title .material-icons-outlined {
    font-size: 19px;
    color: var(--ny-yellow-deep);
}

.ny-promo__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ny-promo__url {
    display: block;
    padding: 12px 14px;
    border: 1px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--ny-ink-2);
    overflow-wrap: anywhere;
    user-select: all;
    -webkit-user-select: all;
}

.ny-body .ny-cta {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ny-body .ny-cta .material-icons-outlined {
    font-size: 18px;
}

.ny-promo__rule {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: var(--ny-radius-s);
    background: var(--ny-yellow-tint);
    font-size: 12px;
    line-height: 1.7;
    color: var(--ny-ink-2);
}

.ny-promo__rule .material-icons-outlined {
    color: var(--ny-yellow-deep);
    font-size: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.ny-promo__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: #fff;
    align-self: center;
}

.ny-promo__qr canvas,
.ny-promo__qr img {
    display: block;
}

.ny-promo__qrhint {
    font-size: 11px;
    color: #6b675e;
}

.ny-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ny-stat {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ny-stat__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-stat__label .material-icons-outlined {
    font-size: 16px;
}

.ny-stat__value {
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ny-stat__value .cur {
    font-size: 12px;
    color: var(--ny-yellow-deep);
    margin-right: 1px;
}

.ny-stat__unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--ny-ink-3);
    margin-left: 2px;
}

.ny-stat--warning .ny-stat__value {
    color: var(--ny-warn);
}

.ny-stat--success .ny-stat__value {
    color: var(--ny-green);
}

/* 通用卡片容器(推广/成员页等) */
.ny-card {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    overflow: hidden;
}

.ny-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 0;
    flex-wrap: wrap;
}

.ny-card__head > .material-icons-outlined {
    font-size: 18px;
    color: var(--ny-ink-2);
}

.ny-card__title {
    font-size: 15px;
    font-weight: 700;
}

.ny-card__tools {
    margin-left: auto;
}

.ny-hint {
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-card__body {
    padding: 14px 16px 16px;
}

.ny-blank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    color: var(--ny-ink-3);
    text-align: center;
}

.ny-blank .material-icons-outlined {
    font-size: 34px;
}

.ny-blank p {
    margin: 0;
    font-size: 12px;
}

.ny-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 0;
}

.ny-panel-heading > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ny-panel-heading > div:first-child > .material-icons-outlined {
    font-size: 19px;
    color: var(--ny-ink-2);
    flex: 0 0 auto;
}

.ny-panel-heading strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.ny-panel-heading small {
    display: block;
    font-size: 11px;
    color: var(--ny-ink-3);
}

.ny-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ny-ink-3);
}

/* ==== 08 列表引擎(原表格 → APP 列表) ==================================== */

/* 列表页外壳:面板退为透明,记录卡直接铺在画布上 */
.ny-list-page .ny-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.ny-list-page .ny-panel-heading {
    display: none;
}

.ny-list-page .ny-panel-body {
    padding: 0;
}

/* 原桌面批量工具栏永不直接显示(由底部批量栏代理) */
.ny-body .ny-toolbar {
    display: none !important;
}

/* bootstrap-table 外壳中性化 */
.ny-body .bootstrap-table {
    background: transparent;
}

.ny-body .bootstrap-table .fixed-table-container {
    border: 0 !important;
    background: transparent;
}

.ny-body .bootstrap-table .fixed-table-body {
    overflow: visible;
    background: transparent;
}

.ny-body .bootstrap-table .fixed-table-loading {
    background: transparent !important;
    color: var(--ny-ink-3);
}

/* 表格 → 卡片流 */
table.ny-listified {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
    display: block;
}

table.ny-listified > thead,
table.ny-listified .fixed-table-header {
    display: none !important;
}

table.ny-listified > tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

table.ny-listified > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    width: 100%;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    padding: 12px 14px;
    position: relative;
    animation: ny-rise .26s var(--ny-ease) backwards;
    /* 列表卡视为整体:点击/长按不选中文字,避免出现难看的选区 */
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 兜底:列表卡内所有元素都不选中文字、不出点击高亮、不出灰底
   (覆盖 md-components 的 hover-overlay、bootstrap table-hover 的 inset box-shadow) */
table.ny-listified,
table.ny-listified * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

table.ny-listified > tbody > tr,
table.ny-listified > tbody > tr > td {
    box-shadow: none !important;
}

/* 去除桌面 hover 灰底:component.css 有 !important 高特异性(0,5,3)的行 hover 皮肤,
   这里用 0,5,4 + !important 压过,让卡片 hover 时保持自身表面(无灰底) */
.ny-body .bootstrap-table .fixed-table-container table.ny-listified > tbody > tr:hover > td,
.ny-body .bootstrap-table .fixed-table-container table.ny-listified > tbody > tr:not(.no-records-found):hover > td {
    background: transparent !important;
    background-color: transparent !important;
}

/* 需要复制的内容(卡密展开、注入的明细行)保留可选 */
table.ny-listified tr.is-revealed td[data-f="secret"],
table.ny-listified tr.is-revealed td[data-f="secret"] *,
table.ny-listified .ny-i-extras,
table.ny-listified .ny-i-extras *,
table.ny-listified .ny-s-x,
table.ny-listified .ny-s-x * {
    -webkit-user-select: text;
    user-select: text;
}

table.ny-listified > tbody > tr.no-records-found {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    animation: none;
}

table.ny-listified td {
    display: block;
}

/* 高特异性中和 component.css 的 td 皮肤(不碰 display,槽位规则接管) */
table.ny-listified td,
.ny-body .bootstrap-table .fixed-table-container table.ny-listified > tbody > tr > td {
    border: 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 13px;
    color: var(--ny-ink);
    min-width: 0;
    overflow-wrap: anywhere;
    vertical-align: baseline;
    box-shadow: none !important;
}

/* 空值单元(chips/raw/meta/x 槽内容为 "-")整体隐藏 */
table.ny-listified td[data-ny-blank] {
    display: none !important;
}

/* drop 槽:彻底丢弃的字段(不入 x,故不触发"详情"展开按钮) */
table.ny-listified td.ny-s-drop {
    display: none !important;
}

/* 空状态 */
.ny-body .component-table-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 44px 16px;
    color: var(--ny-ink-3);
    font-size: 13px;
    background: var(--ny-surface);
    border: 1px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius);
}

.ny-body .component-table-empty__icon svg {
    width: 34px;
    height: 34px;
}

/* — 插槽 — */

/* 选择列:选择模式下才显示 */
table.ny-listified td.ny-s-select {
    display: none;
    order: -3;
    flex: 0 0 auto;
}

.is-selecting table.ny-listified td.ny-s-select {
    display: flex;
    align-items: center;
}

table.ny-listified td.ny-s-select input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    border: 2px solid var(--ny-line-strong);
    background: var(--ny-surface);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--ny-dur);
    position: relative;
}

table.ny-listified td.ny-s-select input[type="checkbox"]:checked {
    background: var(--ny-yellow);
    border-color: var(--ny-yellow);
}

table.ny-listified td.ny-s-select input[type="checkbox"]:checked::after {
    content: "";
    width: 11px;
    height: 6px;
    border: 2px solid var(--ny-on-yellow);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translateY(-1px);
}

/* 选择模式下整卡高亮 */
.is-selecting table.ny-listified > tbody > tr.selected {
    border-color: var(--ny-yellow);
    background: var(--ny-yellow-tint);
}

/* 主内容 */
table.ny-listified td.ny-s-hero {
    flex: 1 1 0;
    order: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

/* format.item / format.user 单元 */
.ny-body .table-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* md-components 给 .table-item 加了 hover-overlay 灰底 + 内边距(chip 样式),
       在列表卡里显得像随机灰块,清掉让图标+名称直接落在卡面上 */
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.ny-body .table-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ny-radius-s);
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--ny-surface-3);
    border: 1px solid var(--ny-line);
}

.ny-body .table-item-user .table-item-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.ny-body .table-item-cate .table-item-icon {
    width: 34px;
    height: 34px;
}

.ny-body .table-item-name {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* 尾随金额 */
table.ny-listified td.ny-s-amount {
    flex: 0 0 auto;
    order: 1;
    margin-left: auto;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    align-self: flex-start;
}

table.ny-listified td.ny-s-amount span[style],
table.ny-listified td.ny-s-amount b[style] {
    color: inherit !important;
    font-weight: inherit !important;
}

/* 状态槽 */
table.ny-listified td.ny-s-status {
    flex: 0 0 auto;
    order: 2;
    font-size: 12px;
}

/* 徽章项:同一 order 行内排布,多字段共行自动换行 */
table.ny-listified td.ny-s-chips {
    width: auto;
    flex: 0 1 auto;
    order: 3;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    font-size: 11.5px;
    color: var(--ny-ink-2);
}

table.ny-listified td.ny-s-chips:empty {
    display: none;
}

/* 辅助信息(订单号/时间) */
table.ny-listified td.ny-s-meta {
    width: auto;
    order: -2;
    font-size: 11.5px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

/* 开关槽 */
table.ny-listified td.ny-s-switch {
    flex: 0 0 auto;
    order: 1;
    margin-left: auto;
}

/* 操作行(页脚):由 ny-s-break 压到独立整行,按钮左对齐 */
table.ny-listified td.ny-s-act {
    order: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

table.ny-listified td.ny-s-act:first-of-type {
    margin-left: 0;
}

/* 页脚断行:100% 宽、零高,把 order≥8 的操作/详情整体推到卡片底部独立一行,
   并画一条发丝分隔线,让"内容 / 操作"分区清晰(取代原来操作浮在右侧留白的布局) */
table.ny-listified td.ny-s-break {
    order: 7;
    flex: 0 0 100%;
    width: 100%;
    height: 0;
    min-height: 0;
    margin: 4px 0 0;
    padding: 0 !important;
    border-top: 1px solid var(--ny-line);
    pointer-events: none;
}

/* 行操作按钮:统一克制的中性小胶囊,尺寸与状态徽章齐平,图标保留语义淡色 */
table.ny-listified .a-badge-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    height: 28px;
    padding: 0 11px;
    margin: 0 !important;
    border-radius: 999px;
    border: 1px solid var(--ny-line);
    background: var(--ny-surface-2);
    color: var(--ny-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ny-dur), border-color var(--ny-dur);
}

table.ny-listified .a-badge-glass:active {
    background: var(--ny-surface-3);
    border-color: var(--ny-line-strong);
}

/* 图标默认中性;语义类只给图标上淡色,按钮本身保持中性 */
table.ny-listified .a-badge-glass i,
table.ny-listified .a-badge-glass .material-icons-outlined {
    color: var(--ny-ink-3);
    font-size: 13px;
}

table.ny-listified .a-badge-glass.text-primary i {
    color: var(--ny-blue);
}

table.ny-listified .a-badge-glass.text-success i {
    color: var(--ny-green);
}

table.ny-listified .a-badge-glass.text-warning i {
    color: var(--ny-warn);
}

/* 删除:保留红色文字与淡红边框作危险信号 */
table.ny-listified .a-badge-glass.text-danger {
    color: var(--ny-red);
    border-color: color-mix(in srgb, var(--ny-red) 26%, transparent);
}

table.ny-listified .a-badge-glass.text-danger i {
    color: var(--ny-red);
}

table.ny-listified .a-badge-glass .btn-title:empty {
    display: none;
}

/* md-components 把 .a-badge-glass 统一做成 MUI outlined(边框/文字取 currentColor 语义色,
   !important 高特异性),蓝/绿彩边与暖色系冲突;这里用 0,4,2 特异性 + !important 拉回中性小胶囊 */
:root[data-theme] .ny-body table.ny-listified .a-badge-glass {
    border: 1px solid var(--ny-line) !important;
    border-radius: 999px !important;
    background: var(--ny-surface-2) !important;
    color: var(--ny-ink) !important;
    padding: 0 11px !important;
}

:root[data-theme] .ny-body table.ny-listified .a-badge-glass:active,
:root[data-theme] .ny-body table.ny-listified .a-badge-glass:hover {
    background: var(--ny-surface-3) !important;
    border-color: var(--ny-line-strong) !important;
}

:root[data-theme] .ny-body table.ny-listified .a-badge-glass.text-danger {
    color: var(--ny-red) !important;
    border-color: color-mix(in srgb, var(--ny-red) 28%, transparent) !important;
}

/* 次级信息:默认折叠 */
table.ny-listified td.ny-s-x {
    display: none;
    width: 100%;
    order: 9;
}

table.ny-listified > tbody > tr.is-open td.ny-s-x,
.ny-body .bootstrap-table .fixed-table-container table.ny-listified > tbody > tr.is-open > td.ny-s-x {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 8px 0 !important;
    border-bottom: 1px dashed var(--ny-line) !important;
    font-size: 12.5px;
    color: var(--ny-ink);
}

table.ny-listified > tbody > tr.is-open td.ny-s-x::before {
    content: attr(data-label);
    color: var(--ny-ink-3);
    flex: 0 0 auto;
    font-size: 12px;
}

table.ny-listified > tbody > tr.is-open td.ny-s-x:last-of-type {
    border-bottom: 0 !important;
}

table.ny-listified td.ny-s-x > * {
    text-align: right;
}

/* JS 注入的行extras(如订单联系方式) */
.ny-i-extras {
    display: none;
    width: 100%;
    order: 9;
    flex-direction: column;
}

tr.is-open .ny-i-extras {
    display: flex;
}

.ny-i-extras > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ny-line);
    font-size: 12.5px;
}

.ny-i-extras > div:last-child {
    border-bottom: 0;
}

.ny-i-extras > div > span:first-child {
    color: var(--ny-ink-3);
    flex: 0 0 auto;
    font-size: 12px;
}

.ny-i-extras > div > span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* 行操作收纳:主操作外的按钮进"更多"面板 */
table.ny-listified .ny-act-hidden {
    display: none !important;
}

/* 行操作菜单:iOS 分组内嵌列表(单圆角容器 + 发丝分隔线),取代原来逐条描边的厚重卡片 */
.ny-row-actions-list {
    display: flex;
    flex-direction: column;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    overflow: hidden;
}

.ny-row-actions-list button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 18px;
    border: 0;
    border-top: 1px solid var(--ny-line);
    background: transparent;
    color: var(--ny-ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background var(--ny-dur);
}

.ny-row-actions-list button:first-child {
    border-top: 0;
}

.ny-row-actions-list button:active {
    background: var(--ny-surface-3);
}

.ny-row-actions-list button i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--ny-ink-3);
    flex: 0 0 auto;
}

/* 危险操作(删除):红色文字与图标,按下时淡红底,与安全操作明显区分 */
.ny-row-actions-list button.is-danger {
    color: var(--ny-red);
}

.ny-row-actions-list button.is-danger i {
    color: var(--ny-red);
}

.ny-row-actions-list button.is-danger:active {
    background: color-mix(in srgb, var(--ny-red) 9%, transparent);
}

/* 行操作 sheet 正文内边距(基础 .ny-sheet-body 无 padding,否则分组列表贴边) */
.ny-sheet--row-actions .ny-sheet-body {
    padding: 14px 16px;
    overflow-y: auto;
}

/* 展开按钮(JS 注入):始终推到页脚行最右侧 */
table.ny-listified td.ny-s-expand {
    order: 8;
    flex: 0 0 auto;
    margin-left: auto;
}

.ny-expand-btn {
    appearance: none;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 40px;
    padding: 0 8px;
    color: var(--ny-ink-3);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
}

.ny-expand-btn .material-icons-outlined {
    font-size: 17px;
    transition: transform var(--ny-dur) var(--ny-ease);
}

tr.is-open .ny-expand-btn .material-icons-outlined {
    transform: rotate(180deg);
}

/* md-pair 键值对(共享 formatter 输出) */
.ny-body .md-pair {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ny-body .md-pair__row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 12px;
}

.ny-body .md-pair__k {
    flex: 0 0 auto;
    color: var(--ny-ink-3);
    font-size: 11px;
}

.ny-body .md-pair__v {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ny-ink);
}

.ny-body .md-pair__v--muted {
    color: var(--ny-ink-3);
}

/* — 配方:资金流水(账单/兑现记录) — */
.ny-body [data-ny-list="bill"] tbody > tr,
.ny-body [data-ny-list="cash-record"] tbody > tr {
    padding: 12px 14px;
    row-gap: 4px;
}

.ny-body [data-ny-list="bill"] td[data-f="log"] {
    order: 0;
    flex: 1 1 60%;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ny-body [data-ny-list="bill"] td[data-f="amount"] {
    font-size: 16px;
}

.ny-body [data-ny-list="bill"] td[data-f="create_time"],
.ny-body [data-ny-list="cash-record"] td[data-f="create_time"] {
    order: 3;
    width: auto;
    margin-right: auto;
}

.ny-body [data-ny-list="bill"] td[data-f="type"],
.ny-body [data-ny-list="bill"] td[data-f="currency"] {
    order: 4;
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--ny-ink-2);
}

.ny-body [data-ny-list="cash-record"] td[data-f="amount"] {
    order: 1;
    margin-left: auto;
    font-size: 16px;
    font-weight: 800;
}

.ny-body [data-ny-list="cash-record"] td[data-f="amount"] b {
    color: inherit !important;
}

.ny-body [data-ny-list="cash-record"] td[data-f="card"] {
    order: 0;
    flex: 1 1 50%;
    font-size: 13.5px;
    font-weight: 600;
}

.ny-body [data-ny-list="cash-record"] td[data-f="status"] {
    order: 4;
    flex: 0 0 auto;
}

/* — 配方:订单卡(商家订单/购买记录/最近购买) — */
.ny-body [data-ny-list="order"] tbody > tr,
.ny-body [data-ny-list="purchase"] tbody > tr,
.ny-body [data-ny-list="recent"] tbody > tr {
    padding: 12px 14px 10px;
    row-gap: 8px;
}

.ny-body [data-ny-list="order"] td[data-f="trade_no"],
.ny-body [data-ny-list="purchase"] td[data-f="trade_no"],
.ny-body [data-ny-list="recent"] td[data-f="trade_no"] {
    order: -2;
    flex: 1 1 60%;
    min-width: 0;
    font-size: 11px;
    color: var(--ny-ink-3);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    padding-bottom: 6px !important;
    border-bottom: 1px dashed var(--ny-line) !important;
}

.ny-body [data-ny-list="order"] td[data-f="trade_no"]::before,
.ny-body [data-ny-list="purchase"] td[data-f="trade_no"]::before,
.ny-body [data-ny-list="recent"] td[data-f="trade_no"]::before {
    content: "N°";
    color: var(--ny-yellow-deep);
    font-weight: 800;
    margin-right: 4px;
}

.ny-body [data-ny-list="order"] td[data-f="status"],
.ny-body [data-ny-list="purchase"] td[data-f="status"],
.ny-body [data-ny-list="recent"] td[data-f="status"] {
    order: -2;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding-bottom: 6px !important;
    border-bottom: 1px dashed var(--ny-line) !important;
    align-self: stretch;
    display: flex !important;
    align-items: center;
}

.ny-body [data-ny-list="order"] td[data-f="commodity"],
.ny-body [data-ny-list="purchase"] td[data-f="commodity"],
.ny-body [data-ny-list="recent"] td[data-f="commodity"] {
    order: 0;
    flex: 1 0 56%;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    width: auto;
    margin-top: 4px;
}

.ny-body [data-ny-list="order"] td[data-f="amount"],
.ny-body [data-ny-list="purchase"] td[data-f="amount"],
.ny-body [data-ny-list="recent"] td[data-f="amount"] {
    order: 1;
    margin-left: auto;
    font-size: 16px;
    font-weight: 800;
    align-self: center;
}

.ny-body [data-ny-list="order"] td.ny-s-chips,
.ny-body [data-ny-list="purchase"] td.ny-s-chips,
.ny-body [data-ny-list="recent"] td.ny-s-chips {
    order: 3;
}

/* 支付方式小签 */
.ny-body .pay-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--ny-ink-2);
    background: var(--ny-surface-3);
    border-radius: 999px;
    padding: 3px 10px 3px 4px;
}

.ny-body .pay-item .item-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 50%;
}

/* — 配方:商品管理 — */
.ny-body [data-ny-list="commodity"] tbody > tr {
    row-gap: 7px;
    padding: 12px 14px;
}

.ny-body [data-ny-list="commodity"] td[data-f="name"] {
    order: 0;
    flex: 1 1 60%;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.ny-body [data-ny-list="commodity"] td[data-f="status"] {
    order: 1;
    margin-left: auto;
    align-self: center;
}

/* 身份行(名称+开关)与事实带(分类/价格/库存)之间强制断行,开关独占右上角 */
.ny-body [data-ny-list="commodity"] tbody > tr::after {
    content: "";
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    height: 0;
}

/* 事实带:内联文本(弱标签 + 中点分隔),克制优雅,不做药丸(避开 td 中和器) */
.ny-body [data-ny-list="commodity"] td[data-f="category.name"],
.ny-body [data-ny-list="commodity"] td[data-f="price"],
.ny-body [data-ny-list="commodity"] td[data-f="user_price"],
.ny-body [data-ny-list="commodity"] td[data-f="card_count"] {
    flex: 0 0 auto;
    align-self: center;
    font-size: 12.5px;
    white-space: nowrap;
}

.ny-body [data-ny-list="commodity"] td[data-f="category.name"] {
    order: 3;
    font-weight: 700;
    color: var(--ny-ink);
}

.ny-body [data-ny-list="commodity"] td[data-f="price"] {
    order: 4;
}

.ny-body [data-ny-list="commodity"] td[data-f="user_price"] {
    order: 5;
}

.ny-body [data-ny-list="commodity"] td[data-f="card_count"] {
    order: 6;
}

.ny-body [data-ny-list="commodity"] td[data-f="price"],
.ny-body [data-ny-list="commodity"] td[data-f="user_price"],
.ny-body [data-ny-list="commodity"] td[data-f="card_count"] {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ny-ink);
}

/* 弱标签前缀,前置中点分隔,自然串成一行 */
.ny-body [data-ny-list="commodity"] td[data-f="price"]::before,
.ny-body [data-ny-list="commodity"] td[data-f="user_price"]::before,
.ny-body [data-ny-list="commodity"] td[data-f="card_count"]::before {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-body [data-ny-list="commodity"] td[data-f="price"]::before {
    content: "· 零售 ¥";
}

.ny-body [data-ny-list="commodity"] td[data-f="user_price"]::before {
    content: "· 会员 ¥";
}

.ny-body [data-ny-list="commodity"] td[data-f="card_count"]::before {
    content: "· 库存 ";
}

.ny-body [data-ny-list="commodity"] td[data-f="card_count"] .add-card {
    color: var(--ny-green) !important;
    font-weight: 700;
    margin-left: 6px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}

.ny-body [data-ny-list="commodity"] td[data-f="share_url"],
.ny-body [data-ny-list="category"] td[data-f="share_url"] {
    order: 8;
    display: flex;
}

.ny-body [data-ny-list="commodity"] td[data-f="operation"],
.ny-body [data-ny-list="category"] td[data-f="operation"] {
    order: 8;
}

/* — 配方:商品分类(树形) — */
.ny-body [data-ny-list="category"] tbody > tr {
    padding: 10px 14px;
    row-gap: 6px;
    border-radius: var(--ny-radius);
}

.ny-body [data-ny-list="category"] td[data-f="icon"] {
    order: -1;
    flex: 0 0 auto;
}

.ny-body [data-ny-list="category"] td[data-f="icon"] img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--ny-line);
    background: var(--ny-surface-3);
}

.ny-body [data-ny-list="category"] td[data-f="name"] {
    order: 0;
    flex: 1 1 42%;
    min-width: 120px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 36px;
}

.ny-body [data-ny-list="category"] td[data-f="status"] {
    order: 1;
    margin-left: auto;
}

.ny-body [data-ny-list="category"] td[data-f="sort"] {
    order: 9;
}

/* 树形层级(商品分类 / 主站分类):按真实深度逐级缩进,子卡收窄靠右
   (width:auto 防 100%+margin 溢出;calc(--ny-depth) 适配任意深度) */
.ny-body [data-ny-list="category"] tbody {
    --ny-tree-step: 24px;
}

.ny-body [data-ny-list="master-cate"] tbody {
    --ny-tree-step: 20px;
}

.ny-body [data-ny-list="category"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"]),
.ny-body [data-ny-list="master-cate"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"]) {
    width: auto;
    align-self: stretch;
    margin-left: calc(var(--ny-depth, 1) * var(--ny-tree-step, 22px));
}

/* 子卡叠一层更浅的表面 + 左黄杠,进一步强调"这是下级" */
.ny-body [data-ny-list="category"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"]),
.ny-body [data-ny-list="master-cate"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"]) {
    background: var(--ny-surface-2);
    border-left: 2.5px solid color-mix(in srgb, var(--ny-yellow) 60%, var(--ny-line-strong));
}

/* 左侧 └ 连接线,画在缩进留白里,表明"归属于上一级" */
.ny-body [data-ny-list="category"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"])::before,
.ny-body [data-ny-list="master-cate"] tbody > tr[data-ny-depth]:not([data-ny-depth="0"])::before {
    content: "";
    position: absolute;
    left: -13px;
    top: -9px;
    width: 10px;
    height: calc(50% + 9px);
    border-left: 1.6px solid var(--ny-line-strong);
    border-bottom: 1.6px solid var(--ny-line-strong);
    border-bottom-left-radius: 9px;
    opacity: .6;
    pointer-events: none;
}

/* 展开控件:父级为可点的圆角小切换,叶子(空 expander)整体隐藏,不再出现灰圆占位 */
.ny-body [data-ny-list="category"] td[data-f="name"] .treegrid-expander,
.ny-body [data-ny-list="master-cate"] td[data-f="name"] .treegrid-expander {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ny-surface-3);
    border: 1px solid var(--ny-line);
    color: var(--ny-ink-2);
    margin-right: 9px;
    cursor: pointer;
    transition: background var(--ny-dur), color var(--ny-dur);
}

.ny-body [data-ny-list="category"] td[data-f="name"] .treegrid-expander:active,
.ny-body [data-ny-list="master-cate"] td[data-f="name"] .treegrid-expander:active {
    background: var(--ny-surface-2);
}

.ny-body [data-ny-list="category"] td[data-f="name"] .treegrid-expander:empty,
.ny-body [data-ny-list="master-cate"] td[data-f="name"] .treegrid-expander:empty {
    display: none !important;
}

.ny-body [data-ny-list="category"] td[data-f="name"] .treegrid-expander i,
.ny-body [data-ny-list="master-cate"] td[data-f="name"] .treegrid-expander i {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1;
}

.ny-body .treegrid-indenter {
    display: none !important;
}

/* 排序输入(metadata-text) */
table.ny-listified .metadata-text {
    width: 88px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--ny-line-strong);
    border-radius: 9px;
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 13px;
    outline: none;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* — 配方:卡密 — */
.ny-body [data-ny-list="card"] tbody > tr {
    row-gap: 8px;
}

.ny-body [data-ny-list="card"] td[data-f="secret"] {
    order: 0;
    flex: 1 1 100%;
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ny-ink);
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px dashed var(--ny-line) !important;
    border-radius: 0;
    padding: 2px 0 12px !important;
    max-height: 74px;
    overflow: hidden;
    position: relative;
    transition: filter var(--ny-dur);
}

.ny-mask-on td[data-f="secret"] {
    filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
}

tr.is-revealed td[data-f="secret"] {
    filter: none !important;
    user-select: text;
    -webkit-user-select: text;
    max-height: none;
}

.ny-body [data-ny-list="card"] td[data-f="status"] {
    order: 2;
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 12px;
}

.ny-body [data-ny-list="card"] td[data-f="commodity"] {
    order: 3;
    flex: 1 1 auto;
    font-size: 12px;
    color: var(--ny-ink-2);
}

.ny-body [data-ny-list="card"] td[data-f="commodity"] .table-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.ny-body [data-ny-list="card"] td[data-f="commodity"] .table-item-name {
    -webkit-line-clamp: 1;
    font-size: 12px;
}

/* — 配方:代券 — */
.ny-body [data-ny-list="coupon"] tbody > tr {
    row-gap: 7px;
}

.ny-body [data-ny-list="coupon"] td[data-f="code"] {
    order: 0;
    flex: 1 1 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .02em;
    align-self: center;
}

.ny-body [data-ny-list="coupon"] td[data-f="money"] {
    order: 1;
    margin-left: auto;
    align-self: center;
    font-size: 14px;
}

.ny-body [data-ny-list="coupon"] td[data-f="money"] .a-badge {
    font-size: 13px;
    padding: 4px 12px;
}

.ny-body [data-ny-list="coupon"] td[data-f="status"] {
    order: 2;
    flex: 0 0 auto;
    align-self: center;
}

.ny-body [data-ny-list="coupon"] td[data-f="mode"] {
    order: 2;
    flex: 0 0 auto;
    align-self: center;
}

/* 身份行(码/面值/状态/类型)与事实带(适用范围/有效期/剩余)之间断行 */
.ny-body [data-ny-list="coupon"] tbody > tr::after {
    content: "";
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    height: 0;
}

/* 事实带:适用范围 + 有效期 + 剩余/已用,内联成一行 */
.ny-body [data-ny-list="coupon"] td[data-f="commodity"] {
    order: 4;
    flex: 0 1 auto;
    font-size: 12px;
    color: var(--ny-ink-2);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    align-self: center;
}

.ny-body [data-ny-list="coupon"] td[data-f="expire_time"] {
    order: 5;
    flex: 0 0 auto;
    align-self: center;
}

.ny-body [data-ny-list="coupon"] td[data-f="life"],
.ny-body [data-ny-list="coupon"] td[data-f="use_life"] {
    order: 6;
    flex: 0 0 auto;
    align-self: center;
    font-size: 11.5px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

.ny-body [data-ny-list="coupon"] td[data-f="use_life"] {
    order: 7;
}

.ny-body [data-ny-list="coupon"] td[data-f="life"]::before {
    content: "· 剩余 ";
}

.ny-body [data-ny-list="coupon"] td[data-f="use_life"]::before {
    content: "· 已用 ";
}

/* — 配方:我的下级 — */
.ny-body [data-ny-list="member"] tbody > tr {
    row-gap: 8px;
}

.ny-body [data-ny-list="member"] td[data-f="avatar"] {
    order: 0;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 600;
}

.ny-body [data-ny-list="member"] td[data-f="status"] {
    order: 1;
    margin-left: auto;
    font-size: 12px;
}

.ny-body [data-ny-list="member"] td[data-f="group"] {
    order: 3;
    flex: 0 0 auto;
    font-size: 12px;
}

.ny-body [data-ny-list="member"] td[data-f="group"] .table-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.ny-body [data-ny-list="member"] td[data-f="balance"],
.ny-body [data-ny-list="member"] td[data-f="recharge"],
.ny-body [data-ny-list="member"] td[data-f="coin"] {
    order: 4;
    flex: 1 1 calc(33% - 8px);
    background: var(--ny-surface-2);
    border: 1px solid var(--ny-line);
    border-radius: 9px;
    padding: 6px 10px !important;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
}

.ny-body [data-ny-list="member"] td[data-f="balance"]::before {
    content: "余额";
    font-size: 10px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-body [data-ny-list="member"] td[data-f="recharge"]::before {
    content: "总充值";
    font-size: 10px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-body [data-ny-list="member"] td[data-f="coin"]::before {
    content: "硬币";
    font-size: 10px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-body [data-ny-list="member"] td[data-f="operation"] {
    order: 8;
}

/* — 配方:推广收益(紧凑 2 行)— */
/* 行1:图标 + 名称   行2:收益 · 类别 · 游客价 · 拿货价 …… 收益率(全部行内) */
.ny-body [data-ny-list="promote"] tbody > tr {
    row-gap: 6px;
    padding: 11px 14px;
    align-items: center;
}

/* 行1:名称独占一行 */
.ny-body [data-ny-list="promote"] td[data-f="name"] {
    order: 0;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
}

.ny-body [data-ny-list="promote"] td[data-f="name"] .table-item-icon {
    width: 34px;
    height: 34px;
}

.ny-body [data-ny-list="promote"] td[data-f="name"] .table-item-name {
    -webkit-line-clamp: 1;
}

/* 行2:所有元素统一垂直居中(混排文字与类别芯片时才对得齐),收益率靠右 */
.ny-body [data-ny-list="promote"] tbody > tr > td {
    align-self: center;
}

.ny-body [data-ny-list="promote"] td[data-f="profit"],
.ny-body [data-ny-list="promote"] td[data-f="guest_price"],
.ny-body [data-ny-list="promote"] td[data-f="my_price"] {
    order: 1;
    flex: 0 0 auto;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--ny-ink);
}

/* 标签(收益/游客/拿货)统一为小号弱化前缀 */
.ny-body [data-ny-list="promote"] td[data-f="profit"]::before,
.ny-body [data-ny-list="promote"] td[data-f="guest_price"]::before,
.ny-body [data-ny-list="promote"] td[data-f="my_price"]::before {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ny-ink-3);
}

.ny-body [data-ny-list="promote"] td[data-f="profit"]::before {
    content: "收益 ";
}

.ny-body [data-ny-list="promote"] td[data-f="race"] {
    order: 2;
    flex: 0 0 auto;
    font-size: 12px;
}

.ny-body [data-ny-list="promote"] td[data-f="sku_count"] {
    order: 3;
    flex: 0 0 auto;
    font-size: 12px;
}

.ny-body [data-ny-list="promote"] td[data-f="sku_count"] a {
    color: var(--ny-blue);
    font-weight: 600;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 游客价/拿货价:行内弱化短标签,前置中点分隔 */
.ny-body [data-ny-list="promote"] td[data-f="guest_price"] {
    order: 4;
}

.ny-body [data-ny-list="promote"] td[data-f="my_price"] {
    order: 5;
}

.ny-body [data-ny-list="promote"] td[data-f="guest_price"]::before {
    content: "· 游客 ";
}

.ny-body [data-ny-list="promote"] td[data-f="my_price"]::before {
    content: "· 拿货 ";
}

.ny-body [data-ny-list="promote"] td[data-f="rate"] {
    order: 6;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 12px;
}

/* — 配方:店铺内主站分类/商品(紧凑行) — */
.ny-body [data-ny-list="master-cate"] tbody > tr,
.ny-body [data-ny-list="master-item"] tbody > tr {
    padding: 10px 12px;
    row-gap: 6px;
    border-radius: var(--ny-radius-s);
}

.ny-body [data-ny-list="master-cate"] td[data-f="icon"] img,
.ny-body [data-ny-list="master-item"] td[data-f="cover"] img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--ny-line);
}

.ny-body [data-ny-list="master-cate"] td[data-f="icon"],
.ny-body [data-ny-list="master-item"] td[data-f="cover"] {
    order: -1;
    flex: 0 0 auto;
}

.ny-body [data-ny-list="master-cate"] td[data-f="name"],
.ny-body [data-ny-list="master-item"] td[data-f="name"] {
    order: 0;
    flex: 1 1 40%;
    min-width: 110px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 32px;
}

.ny-body [data-ny-list="master-cate"] td[data-f="status"],
.ny-body [data-ny-list="master-item"] td[data-f="status"] {
    order: 1;
    margin-left: auto;
}

.ny-body [data-ny-list="master-cate"] td[data-f="operation"],
.ny-body [data-ny-list="master-item"] td[data-f="operation"] {
    order: 2;
    flex: 0 0 auto;
}

.ny-body [data-ny-list="master-item"] td[data-f="price"],
.ny-body [data-ny-list="master-item"] td[data-f="user_price"] {
    order: 3;
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--ny-ink-3);
    font-variant-numeric: tabular-nums;
}

.ny-body [data-ny-list="master-item"] td[data-f="price"]::before {
    content: "游客 ¥";
}

.ny-body [data-ny-list="master-item"] td[data-f="user_price"]::before {
    content: "会员 ¥";
}

.ny-body [data-ny-list="master-cate"] .a-badge-glass,
.ny-body [data-ny-list="master-item"] .a-badge-glass {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

/* — 配方:自选卡密(商品详情弹窗) — */
.ny-body [data-ny-list="draft"] tbody > tr {
    padding: 10px 14px;
}

.ny-body [data-ny-list="draft"] td.ny-s-select {
    display: flex !important;
}

.ny-body [data-ny-list="draft"] td[data-f="draft"] {
    order: 0;
    flex: 1 1 0;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ny-body [data-ny-list="draft"] td[data-f="draft_premium"] {
    order: 1;
    flex: 0 0 auto;
    margin-left: auto;
}

/* — 最近购买(我的页,精简) — */
.ny-body [data-ny-list="recent"] .fixed-table-pagination,
.ny-body [data-ny-list="recent"] .ny-listbar {
    display: none !important;
}

.ny-body [data-ny-list="recent"] tbody > tr {
    border-radius: var(--ny-radius-s);
    padding: 10px 12px;
}

/* ==== 09 列表周边(搜索/筛选/状态/批量/分页) ============================= */

/* 工具条 */
.ny-listbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* 单字段列表:唯一搜索项已由快捷搜索代理,原始搜索表单不再需要;
   component.css 用 display:flex !important 强制显示,这里同权级覆盖隐藏 */
.ny-body .bootstrap-table .table-search.ny-search-proxied {
    display: none !important;
}

.ny-quick-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    min-width: 0;
}

.ny-quick-search:focus-within {
    border-color: var(--ny-ink);
    box-shadow: 0 0 0 3px var(--ny-yellow-tint);
}

.ny-quick-search .material-icons-outlined {
    font-size: 18px;
    color: var(--ny-ink-3);
    flex: 0 0 auto;
}

.ny-quick-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    font-size: 13.5px;
    color: var(--ny-ink);
    height: 42px;
    font-family: inherit;
}

.ny-quick-search input::placeholder {
    color: var(--ny-ink-3);
}

.ny-quick-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.ny-quick-search button {
    appearance: none;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.ny-quick-search button .material-icons-outlined {
    font-size: 17px;
    color: inherit;
}

.ny-listbar-caption {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--ny-ink-3);
    font-size: 12px;
}

.ny-listbar-caption .material-icons-outlined {
    font-size: 18px;
}

.ny-tool-chip {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all var(--ny-dur);
}

.ny-tool-chip .material-icons-outlined {
    font-size: 17px;
}

.ny-tool-chip b {
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    display: inline-grid;
    place-items: center;
}

.ny-tool-chip b[hidden] {
    display: none;
}

.ny-tool-chip.is-on {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

/* 状态段控(table-switch-state) */
.ny-body .table-switch-state {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 0 10px;
    padding: 2px;
}

.ny-body .table-switch-state::-webkit-scrollbar {
    display: none;
}

.ny-body .table-switch-state button {
    appearance: none;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--ny-line);
    background: var(--ny-surface);
    color: var(--ny-ink-2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ny-dur);
}

.ny-body .table-switch-state button.active {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-body .table-switch-state button .a-badge,
.ny-body .table-switch-state button span[style] {
    all: unset;
    color: inherit !important;
    font: inherit;
}

/* 筛选面板内的原查询表单 */
.ny-sheet--filters .ny-sheet-body,
.ny-sheet--bulk .ny-sheet-body {
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.ny-sheet--filters form.table-search {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin: 0 !important;
    padding: 4px 0 0;
}

.ny-sheet--filters .layui-input-inline {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative;
}

.ny-sheet--filters .layui-input-inline.hide {
    display: none !important;
}

/* 波浪号间隔(日期区间) */
.ny-sheet--filters .layui-input-inline[style*="width: 10px"] {
    width: 100% !important;
    text-align: left !important;
    color: var(--ny-ink-3);
    font-size: 11px;
    margin: -8px 0 !important;
    padding-left: 4px;
}

.ny-sheet--filters .mui-sf .layui-input,
.ny-sheet--filters .mui-sf input[type="text"] {
    width: 100% !important;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ny-line-strong) !important;
    border-radius: var(--ny-radius-s) !important;
    background: var(--ny-surface) !important;
    color: var(--ny-ink) !important;
    font-size: 14px;
    outline: none;
    box-shadow: none !important;
}

.ny-sheet--filters .mui-sf .layui-input:focus {
    border-color: var(--ny-ink) !important;
    box-shadow: 0 0 0 3px var(--ny-yellow-tint) !important;
}

.ny-sheet--filters .mui-sf__label {
    position: absolute;
    top: -7px;
    left: 12px;
    padding: 0 5px;
    background: var(--ny-surface);
    font-size: 11px;
    font-weight: 600;
    color: var(--ny-ink-3);
    z-index: 2;
    border-radius: 4px;
    pointer-events: none;
    margin: 0;
}

/* layui select 在筛选面板中的原生化 */
.ny-sheet--filters .layui-form-select .layui-select-title .layui-input {
    cursor: pointer;
}

.ny-sheet--filters .layui-form-select dl {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-s);
    box-shadow: var(--ny-shadow-2);
    max-height: 260px;
}

.ny-sheet--filters .layui-form-select dl dd,
.ny-sheet--filters .layui-form-select dl dt {
    color: var(--ny-ink);
    background: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 13.5px;
}

.ny-sheet--filters .layui-form-select dl dd:hover {
    background: var(--md-hover-overlay);
}

.ny-sheet--filters .layui-form-select dl dd.layui-this {
    background: var(--ny-yellow-tint);
    color: var(--ny-ink);
    font-weight: 700;
}

/* 筛选按钮组(查询/清除) */
.ny-filter-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 12px 0 4px;
    background: linear-gradient(to top, var(--ny-surface) 70%, transparent);
}

.ny-filter-actions .ny-filter-reset {
    appearance: none;
    flex: 0 0 auto;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink-2);
    border-radius: 999px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ny-filter-actions .ny-filter-apply {
    flex: 1;
}

/* 原查询按钮藏起(由"查看结果"代理) */
.ny-sheet--filters .query-button,
.ny-sheet--filters .table-search > .layui-input-inline:has(.query-button) {
    display: none !important;
}

/* 批量操作面板 */
.ny-bulk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ny-bulk-list button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 16px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ny-bulk-list button:active {
    background: var(--ny-surface-3);
}

.ny-bulk-list button .material-icons-outlined {
    font-size: 20px;
    color: var(--ny-ink-2);
}

.ny-bulk-list button.is-danger {
    color: var(--ny-red);
    border-color: color-mix(in srgb, var(--ny-red) 30%, transparent);
}

.ny-bulk-list button.is-danger .material-icons-outlined {
    color: var(--ny-red);
}

/* 选择模式底部条 */
.ny-selectbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 110%);
    width: 100%;
    max-width: 480px;
    z-index: 140;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px calc(max(var(--ny-sab), 10px));
    background: color-mix(in srgb, var(--ny-surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--ny-line);
    transition: transform .26s var(--ny-ease);
}

body.ny-selecting .ny-selectbar {
    transform: translate(-50%, 0);
}

.ny-selectbar__count {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-2);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ny-selectbar__count b {
    font-size: 15px;
    color: var(--ny-ink);
}

.ny-selectbar button {
    appearance: none;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    border-radius: 999px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ny-selectbar button.ny-selectbar__go {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

.ny-selectbar button:disabled {
    opacity: .5;
}

/* 分页:隐藏桌面控件,重排为手机分页 */
.ny-body .fixed-table-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 0 2px;
    background: transparent;
}

.ny-body .fixed-table-pagination .pagination-detail {
    display: none !important;
}

.ny-body .fixed-table-pagination .float-right.pagination,
.ny-body .fixed-table-pagination > .pagination {
    float: none !important;
    margin: 0;
}

.ny-body .fixed-table-pagination ul.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ny-body .fixed-table-pagination ul.pagination li {
    display: none;
}

.ny-body .fixed-table-pagination ul.pagination li.page-pre,
.ny-body .fixed-table-pagination ul.pagination li.page-next,
.ny-body .fixed-table-pagination ul.pagination li.active {
    display: flex;
}

.ny-body .fixed-table-pagination ul.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ny-body .fixed-table-pagination ul.pagination li.active a {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
    pointer-events: none;
}

.ny-body .fixed-table-pagination ul.pagination li.page-pre a,
.ny-body .fixed-table-pagination ul.pagination li.page-next a {
    font-size: 0;
    padding: 0;
}

.ny-body .fixed-table-pagination ul.pagination li.page-pre a::before {
    content: "chevron_left";
    font-family: "Material Icons Outlined";
    font-size: 20px;
}

.ny-body .fixed-table-pagination ul.pagination li.page-next a::before {
    content: "chevron_right";
    font-family: "Material Icons Outlined";
    font-size: 20px;
}

.ny-body .fixed-table-pagination ul.pagination li.disabled a {
    opacity: .38;
    pointer-events: none;
}

/* ==== 10 弹窗与动态组件 =================================================== */

/* 遮罩 */
.ny-body .layui-layer-shade {
    background: var(--ny-scrim) !important;
    opacity: 1 !important;
}

/* 悬浮 tips(桌面 hover 交互):纯手机主题不使用 */
.ny-body .layui-layer-tips {
    display: none !important;
}

/* 装饰吉祥物:与主题风格不符,移除 */
.ny-body .component-popup-acg {
    display: none !important;
}

/* form.js / search.js 的 hide 语义 */
.ny-body .hide {
    display: none !important;
}

/* 弹窗主按钮强制石墨(component.css 内有更高特异性 + !important 皮肤) */
:root[data-theme] .ny-body .layui-layer-btn a.layui-layer-btn0,
.ny-body .layui-layer-btn .layui-layer-btn0 {
    background: var(--ny-graphite) !important;
    border-color: var(--ny-graphite) !important;
    color: var(--ny-on-graphite) !important;
}

:root[data-theme] .ny-body .layui-layer-btn a.layui-layer-btn0 i,
:root[data-theme] .ny-body .layui-layer-btn a.layui-layer-btn0 .fa-duotone {
    color: var(--ny-yellow) !important;
}

:root[data-theme] .ny-body .layui-layer-btn a:not(.layui-layer-btn0),
.ny-body .layui-layer-btn a:not(.layui-layer-btn0) {
    background: var(--ny-surface) !important;
    border-color: var(--ny-line-strong) !important;
    color: var(--ny-ink) !important;
}

:root[data-theme] .ny-body .layui-layer-btn a:not(.layui-layer-btn0) i {
    color: var(--ny-ink-3) !important;
}

/* 弹窗内联查询表单(如自选卡密) */
.ny-body .component-popup .table-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
}

.ny-body .component-popup .table-search .layui-input-inline {
    display: block;
    width: 100% !important;
    margin: 0;
    position: relative;
}

.ny-body .component-popup .table-search .mui-sf__label {
    position: absolute;
    top: 0;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 0 5px;
    overflow: hidden;
    background: var(--ny-surface);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--ny-ink-3);
    z-index: 2;
    border-radius: 4px;
    pointer-events: none;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: color var(--ny-dur);
}

.ny-body .component-popup .table-search .mui-sf:focus-within > .mui-sf__label {
    color: var(--ny-ink);
}

.ny-body .component-popup .table-search .mui-sf:focus-within > .mui-sf__label,
.ny-body .component-popup .table-search .mui-sf:has(input:not(:placeholder-shown)) > .mui-sf__label,
.ny-body .component-popup .table-search .mui-sf--select > .mui-sf__label {
    top: 0;
    max-width: calc(100% - 28px);
    transform: translateY(-50%);
}

.ny-body .component-popup .table-search .mui-sf:focus-within > .layui-input {
    border-color: var(--ny-ink) !important;
    box-shadow: 0 0 0 3px var(--ny-yellow-tint) !important;
}

.ny-body .component-popup .table-search .query-button {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    border: 0;
    background: var(--ny-surface-3);
    color: var(--ny-ink);
    font-size: 13.5px;
    font-weight: 700;
}

/* 选择框在弹窗自选列表中始终为圆形单选样式 */
.ny-body .component-popup table.ny-listified td.ny-s-select input[type="checkbox"] {
    border-radius: 50% !important;
}

/* 通用 layer 基础 */
.ny-body .layui-layer {
    border-radius: var(--ny-radius-l);
    background: var(--ny-surface);
    color: var(--ny-ink);
    box-shadow: var(--ny-shadow-2);
    max-width: 100vw;
    overflow: hidden;
}

.ny-body .layui-layer-title {
    background: var(--ny-surface);
    color: var(--ny-ink);
    border-bottom: 1px solid var(--ny-line);
    font-size: 16px;
    font-weight: 700;
    height: auto;
    min-height: 54px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    padding: 10px 56px 10px 18px;
}

.ny-body .layui-layer-title i,
.ny-body .layui-layer-title .fa-duotone {
    margin-right: 6px;
    color: var(--ny-ink-2);
}

.ny-body .layui-layer-setwin {
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
}

.ny-body .layui-layer-setwin a {
    position: static;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
}

.ny-body .layui-layer-setwin a:active {
    background: var(--md-hover-overlay);
}

.ny-body .layui-layer-setwin .layui-layer-min,
.ny-body .layui-layer-setwin .layui-layer-max {
    display: none !important;
}

.ny-body .layui-layer-setwin .layui-layer-close1,
.ny-body .layui-layer-setwin .layui-layer-close2 {
    background: none;
    font-size: 0;
}

.ny-body .layui-layer-setwin .layui-layer-close::before {
    content: "close";
    font-family: "Material Icons Outlined";
    font-size: 20px;
    color: var(--ny-ink-2);
}

.ny-body .layui-layer-content {
    background: var(--ny-surface);
    color: var(--ny-ink);
}

/* 提示条(layer.msg) */
.ny-body .layui-layer-msg {
    border-radius: 999px !important;
    background: var(--ny-graphite) !important;
    color: var(--ny-on-graphite) !important;
    border: 0 !important;
    box-shadow: var(--ny-shadow-2);
    min-width: 0;
}

.ny-body .layui-layer-msg .layui-layer-content {
    background: transparent !important;
    color: inherit !important;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 600;
}

/* 对话框(message.alert / ask) */
.ny-body .layui-layer-dialog {
    max-width: min(86vw, 340px);
    border-radius: var(--ny-radius-l);
}

.ny-body .layui-layer-dialog .layui-layer-content {
    padding: 20px 20px 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ny-ink);
    word-break: break-word;
}

.ny-body .layui-layer-dialog .layui-layer-content .layui-layer-face {
    display: none;
}

/* 按钮条 */
.ny-body .layui-layer-btn {
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(max(var(--ny-sab), 12px));
    background: var(--ny-surface);
    border-top: 1px solid var(--ny-line);
    text-align: initial;
}

.ny-body .layui-layer-btn a {
    flex: 1;
    height: auto;
    min-height: 48px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
}

.ny-body .layui-layer-btn .layui-layer-btn0 {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
    order: 2;
}

.ny-body .layui-layer-btn .layui-layer-btn0 i,
.ny-body .layui-layer-btn a i {
    color: inherit !important;
}

/* 全屏页面型弹窗(手机上 area=100%) */
.ny-body .layui-layer-page,
.ny-body .layui-layer.component-popup {
    display: flex;
    flex-direction: column;
}

.ny-body .layui-layer-page .layui-layer-content,
.ny-body .layui-layer.component-popup .layui-layer-content {
    flex: 1 1 auto;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 视口级全屏(width:100%) → 贴边直角 + 安全区 */
.ny-body .layui-layer[style*="width: 100%"],
.ny-body .layui-layer[style*="width:100%"] {
    border-radius: 0;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100vw !important;
}

.ny-body .layui-layer[style*="width: 100%"] .layui-layer-title {
    padding-top: calc(10px + var(--ny-sat));
}

/* 多页签弹窗:页签横向滚动 */
.ny-body .layui-layer-tab .layui-layer-title {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 56px 0 10px;
    min-height: 52px;
}

.ny-body .layui-layer-tab .layui-layer-title::-webkit-scrollbar {
    display: none;
}

.ny-body .layui-layer-tab .layui-layer-title span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    /* component.css 在 <768px 用 max-width:34px!important 把标签裁成三个字;
       这里同权级 + 更高特异性 (0,3,1) 夺回,让全名显示、标题栏横向滚动 */
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ny-ink-3);
    background: transparent;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.ny-body .layui-layer-tab .layui-layer-title span.layui-this {
    color: var(--ny-ink);
    background: transparent;
    height: auto;
}

.ny-body .layui-layer-tab .layui-layer-title span.layui-this::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--ny-yellow);
}

/* — 弹窗表单(component/form.js 生成) — */
.ny-body .component-popup .layui-form,
.ny-body .component-popup .layui-form-pane {
    padding: 18px 16px 10px;
}

.ny-body .component-popup .layui-form-pane .layui-form-item {
    display: block;
    margin: 0 0 20px;
    border: 0;
    background: none;
    position: relative;
}

/* 文本类字段:MUI outlined + 悬浮标签 */
.ny-body .component-popup .layui-form-item.mui-float > .layui-form-label {
    position: absolute;
    top: -8px;
    left: 12px;
    z-index: 2;
    width: auto;
    height: auto;
    padding: 0 5px;
    margin: 0;
    background: var(--ny-surface);
    border: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--ny-ink-3);
    line-height: 1.4;
    border-radius: 4px;
    pointer-events: none;
    text-align: left;
}

.ny-body .component-popup .layui-form-item.mui-float.mui-focused > .layui-form-label {
    color: var(--ny-ink);
}

/* _material.css(后台完整 Material)自带 top:9px + transform 上浮的浮动标签系统;
   与本主题的静态缺口标签(top:-8px)叠加,会把标签再 translateY(-18px) 顶飞、错位。
   这里中和它在标签上的 transform,并恢复占位符可见 —— 回到本主题一致的静态缺口标签。 */
.ny-body .component-popup .layui-form-item.mui-float > .layui-form-label,
.ny-body .component-popup .layui-form-item.mui-float.mui-filled > .layui-form-label,
.ny-body .component-popup .layui-form-item.mui-float.mui-focused > .layui-form-label {
    transform: none !important;
}

.ny-body .component-popup .layui-form-item.mui-float .layui-input::placeholder,
.ny-body .component-popup .layui-form-item.mui-float .layui-textarea::placeholder {
    color: var(--ny-ink-3) !important;
}

/* 堆叠字段(开关/单选/上传/编辑器):标签置顶 */
.ny-body .component-popup .layui-form-item.ny-control-stack > .layui-form-label,
.ny-body .component-popup .layui-form-item:not(.mui-float) > .layui-form-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0 2px 8px;
    margin: 0;
    border: 0;
    background: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ny-ink-2);
    text-align: left;
    line-height: 1.5;
}

.ny-body .component-popup .layui-form-item .layui-input-block {
    margin: 0;
    min-height: 0;
}

.ny-body .component-popup .layui-input,
.ny-body .component-popup .layui-textarea,
.ny-body .component-popup .layui-select-title input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
}

.ny-body .component-popup .layui-textarea {
    min-height: 56px !important;
    line-height: 1.6;
    resize: vertical;
}

.ny-body .component-popup .layui-form-pane .layui-form-item {
    margin-bottom: 24px;
}

.ny-body .component-popup .layui-input:focus,
.ny-body .component-popup .layui-textarea:focus {
    border-color: var(--ny-ink);
    box-shadow: 0 0 0 3px var(--ny-yellow-tint);
}

.ny-body .component-popup .layui-input::placeholder,
.ny-body .component-popup .layui-textarea::placeholder {
    color: var(--ny-ink-3);
}

/* 表单提示文字 */
.ny-body .component-popup .layui-form-mid,
.ny-body .component-popup .layui-word-aux {
    color: var(--ny-ink-3) !important;
    font-size: 11.5px;
    padding: 6px 2px 0 !important;
    margin: 0 !important;
    display: block;
    float: none;
    line-height: 1.6;
}

/* layui 单选 → 触控芯片:统一圆角矩形 + 定宽下限,短标签不再挤成小椭圆。
   用 :root[data-theme] 前缀 (0,4,0) 压过 md-components 的 .layui-form-radio{margin:0 22px 0 0;padding:6px 0}
   (0,3,0) —— 否则换行后上下 margin 被清零,两行芯片黏在一起。 */
:root[data-theme] .ny-body .layui-form-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    min-width: 78px;
    margin: 6px 10px 6px 0;
    padding: 0 20px;
    border-radius: 12px;
    border: 1.5px solid var(--ny-line);
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur), color var(--ny-dur), transform var(--ny-dur);
}

.ny-body .layui-form-radio:active {
    transform: scale(.97);
}

/* md-components 用 :root[data-theme] .layui-form-radio > i/div (0,3,1) 把圆点做成 MUI 蓝圈、
   把标签 <div> 染成 on-surface 深色;这里同样用 :root[data-theme] 前缀提到 (0,4,1) 夺回:
   隐藏蓝圈,标签继承芯片文字色。 */
:root[data-theme] .ny-body .layui-form-radio > i {
    display: none !important;
}

:root[data-theme] .ny-body .layui-form-radio > div {
    color: inherit;
    font-size: 13.5px;
    font-weight: inherit;
    line-height: 1.3;
}

/* 选中:出租车黄描边 + 暖黄实底 + 加粗深色文字,克制醒目,替代原来生硬的纯黑药丸。
   基础规则已提到 (0,4,0),这里选中态必须同步提到 (0,4,1) 才能压过基础的灰底。 */
:root[data-theme] .ny-body .layui-form-radio.layui-form-radioed {
    border-color: var(--ny-yellow);
    background: color-mix(in srgb, var(--ny-yellow) 15%, var(--ny-surface));
    color: var(--ny-ink);
    font-weight: 700;
}

:root[data-theme] .ny-body .layui-form-radio.layui-form-radioed > div {
    color: var(--ny-ink);
    font-weight: 700;
}

.ny-body .layui-form-checkbox {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 5px 10px 5px 0;
    padding: 0 18px;
    border-radius: 12px;
    border: 1.5px solid var(--ny-line);
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur), color var(--ny-dur), transform var(--ny-dur);
}

.ny-body .layui-form-checkbox:active {
    transform: scale(.97);
}

.ny-body .layui-form-checkbox.layui-form-checked {
    border-color: var(--ny-yellow);
    background: color-mix(in srgb, var(--ny-yellow) 15%, var(--ny-surface));
    color: var(--ny-ink);
}

/* 同 radio:提到 :root[data-theme] 前缀 (0,4,1) 压过 md-components 的深色标签覆盖 */
:root[data-theme] .ny-body .layui-form-checkbox.layui-form-checked span,
:root[data-theme] .ny-body .layui-form-checkbox span {
    background: none;
    color: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0;
    height: auto;
    line-height: inherit;
    float: none;
}

:root[data-theme] .ny-body .layui-form-checkbox.layui-form-checked span {
    font-weight: 700;
}

:root[data-theme] .ny-body .layui-form-checkbox > i {
    display: none !important;
}

/* layui 开关 → iOS 风格 */
.ny-body .layui-form-switch {
    position: relative;
    min-width: 48px;
    height: 29px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--ny-line-strong);
    transition: background var(--ny-dur);
    display: inline-flex;
    align-items: center;
}

.ny-body .layui-form-switch i {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left var(--ny-dur) var(--ny-ease);
}

.ny-body .layui-form-switch em {
    display: none !important;
}

.ny-body .layui-form-switch.layui-form-onswitch {
    background: var(--ny-green) !important;
    border: 0 !important;
}

.ny-body .layui-form-switch.layui-form-onswitch i {
    left: calc(100% - 26px);
    background: #fff !important;
}

/* 文字版开关(layui-switch-text)与普通开关同宽处理 */
.ny-body .layui-switch-text .layui-form-switch {
    min-width: 48px;
}

/* layui select 下拉 */
.ny-body .layui-form-select dl {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-s);
    box-shadow: var(--ny-shadow-2);
    padding: 6px 0;
}

.ny-body .layui-form-select dl dd,
.ny-body .layui-form-select dl dt {
    color: var(--ny-ink);
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 13.5px;
    background: transparent;
    padding: 0 14px;
}

.ny-body .layui-form-select dl dd:hover {
    background: var(--md-hover-overlay);
}

.ny-body .layui-form-select dl dd.layui-this {
    background: var(--ny-yellow-tint);
    color: var(--ny-ink);
    font-weight: 700;
}

.ny-body .layui-form-select .layui-edge {
    border-top-color: var(--ny-ink-3);
}

/* laydate 日期面板 */
.ny-body .layui-laydate {
    background: var(--ny-surface);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    box-shadow: var(--ny-shadow-2);
    color: var(--ny-ink);
    font-family: inherit;
}

.ny-body .layui-laydate .layui-laydate-header {
    border-bottom: 1px solid var(--ny-line);
}

.ny-body .layui-laydate .layui-laydate-header i,
.ny-body .layui-laydate .layui-laydate-header span {
    color: var(--ny-ink-2);
}

.ny-body .layui-laydate-content th {
    color: var(--ny-ink-3);
}

.ny-body .layui-laydate-content td {
    color: var(--ny-ink);
    border-radius: 8px;
}

.ny-body .layui-laydate-content td.laydate-selected,
.ny-body .layui-laydate-content td:hover {
    background: var(--ny-yellow-tint) !important;
    color: var(--ny-ink) !important;
}

.ny-body .layui-laydate-content td.layui-this {
    background: var(--ny-graphite) !important;
    color: var(--ny-on-graphite) !important;
}

.ny-body .layui-laydate-content td.laydate-day-prev,
.ny-body .layui-laydate-content td.laydate-day-next {
    color: var(--ny-ink-3);
    opacity: .5;
}

.ny-body .layui-laydate-footer {
    border-top: 1px solid var(--ny-line);
}

.ny-body .layui-laydate-footer span {
    color: var(--ny-ink-2);
    border-radius: 8px;
    border-color: var(--ny-line-strong);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
}

.ny-body .layui-laydate-list {
    background: var(--ny-surface);
}

.ny-body .layui-laydate-list li {
    color: var(--ny-ink);
}

.ny-body .layui-laydate-list li.layui-this {
    background: var(--ny-graphite) !important;
    color: var(--ny-on-graphite) !important;
}

/* 上传/图片选择(form.js image 字段与相册) */
.ny-body .component-popup .image-render,
.ny-body .component-popup .file-render {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ny-body .component-popup .image-render img {
    max-height: 64px;
    border-radius: var(--ny-radius-s);
    border: 1px solid var(--ny-line);
    background: var(--ny-surface-2);
}

.ny-body .component-popup .layui-upload-drag {
    background: var(--ny-surface-2);
    border: 1.5px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius);
    color: var(--ny-ink-2);
    padding: 20px;
    width: 100%;
}

.ny-body .layui-upload-drag .layui-icon {
    color: var(--ny-yellow-deep);
}

/* 树选择 */
.ny-body .layui-tree,
.ny-body .layui-tree-entry {
    color: var(--ny-ink);
    font-size: 14px;
}

.ny-body .layui-tree-entry {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.ny-body .layui-tree-txt {
    color: inherit;
}

.ny-body .layui-tree-iconClick {
    color: var(--ny-ink-3);
}

/* treeSelect 下拉容器 */
.ny-body .layui-treeselect,
.ny-body div[id^="treeSelect"] {
    background: var(--ny-surface);
    border-color: var(--ny-line) !important;
    color: var(--ny-ink);
}

/* xm-select */
.ny-body xm-select {
    min-height: 50px !important;
    border: 1px solid var(--ny-line-strong) !important;
    border-radius: var(--ny-radius-s) !important;
    background: var(--ny-surface) !important;
    color: var(--ny-ink) !important;
}

.ny-body xm-select .xm-body {
    background: var(--ny-surface) !important;
    border: 1px solid var(--ny-line) !important;
    border-radius: var(--ny-radius-s) !important;
    color: var(--ny-ink) !important;
}

.ny-body xm-select .xm-option {
    min-height: 44px;
}

/* EditorV2 / CodeMirror / wangEditor */
.ny-body .editor-wrapper,
.ny-body .editorv2 {
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    overflow: hidden;
    background: var(--ny-surface);
}

/* ev2 工具栏:强制单行(bar nowrap),格式按钮溢出时收进"更多"下拉(见 Theme.js);
   预览/HTML 组固定在右侧不再随手推到第二行悬空。 */
.ny-body .ev2-bar {
    flex-wrap: nowrap !important;
    overflow: visible;
}

.ny-body .ev2-bar .ev2-tools {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

:root[data-theme] .ny-body .ev2-actions {
    margin-left: 0;
    flex: 0 0 auto;
}

/* "更多"触发 + 下拉容器 */
.ny-body .ny-ev2-more-wrap {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
}

.ny-body .ny-ev2-more .material-icons-outlined {
    font-size: 20px;
}

.ny-body .ny-ev2-more.is-on {
    background: var(--ny-surface-3);
    color: var(--ny-ink);
}

.ny-body .ny-ev2-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 178px;
    max-height: 58vh;
    overflow: auto;
    padding: 6px;
    background: var(--ny-surface);
    border: 1px solid var(--ny-line-strong);
    border-radius: var(--ny-radius-s);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    animation: ny-rise .18s var(--ny-ease) backwards;
}

.ny-body .ny-ev2-menu[hidden] {
    display: none;
}

/* 菜单项:格式按钮横排 + 文字标签(取 title) */
.ny-body .ny-ev2-menu .ev2-tb {
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 0 12px !important;
    border-radius: 8px !important;
}

.ny-body .ny-ev2-menu .ev2-tb::after {
    content: attr(title);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ny-ink);
    white-space: nowrap;
}

.ny-body .CodeMirror {
    background: var(--ny-surface) !important;
    color: var(--ny-ink) !important;
    font-size: 13px;
    min-height: 180px;
}

.ny-body .CodeMirror-gutters {
    background: var(--ny-surface-2) !important;
    border-right: 1px solid var(--ny-line) !important;
}

.ny-body .CodeMirror-linenumber {
    color: var(--ny-ink-3) !important;
}

.ny-body .CodeMirror-cursor {
    border-left-color: var(--ny-ink) !important;
}

.ny-body .w-e-text-container,
.ny-body .w-e-toolbar {
    background: var(--ny-surface) !important;
    color: var(--ny-ink) !important;
    border-color: var(--ny-line) !important;
}

/* 卡密/优惠券结果弹窗(.md-secret) */
.ny-body .md-secret {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    height: 100%;
}

.ny-body .md-secret__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ny-body .md-secret__code {
    flex: 1;
    min-height: 120px;
    max-height: 52vh;
    overflow: auto;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    border-radius: var(--ny-radius-s);
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
    -webkit-user-select: text;
}

html[data-theme="dark"] .ny-body .md-secret__code {
    background: var(--ny-surface-3);
    color: var(--ny-ink);
}

.ny-body .md-secret__bar {
    display: flex;
    gap: 10px;
}

.ny-body .md-secret__btn {
    appearance: none;
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--ny-line-strong);
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ny-body .md-secret__btn--primary {
    background: var(--ny-graphite);
    border-color: var(--ny-graphite);
    color: var(--ny-on-graphite);
}

/* md-detail(列详情弹窗) */
.ny-body .md-detail {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ny-body .md-detail__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--ny-line);
    font-size: 13px;
}

.ny-body .md-detail__row:last-child {
    border-bottom: 0;
}

.ny-body .md-detail__label {
    color: var(--ny-ink-3);
    flex: 0 0 auto;
    font-size: 12px;
}

.ny-body .md-detail__value {
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* SKU 收益明细弹窗 */
.ny-body .uc-skupop {
    padding: 14px 16px;
    overflow: auto;
    height: 100%;
}

.ny-body .uc-skupop__meta {
    font-size: 13px;
    color: var(--ny-ink-2);
    margin-bottom: 10px;
}

.ny-body .uc-skupop__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 480px;
}

.ny-body .uc-skupop {
    overflow-x: auto;
}

.ny-body .uc-skupop__table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--ny-line);
    white-space: nowrap;
}

.ny-body .uc-skupop__table thead td {
    color: var(--ny-ink-3);
    font-weight: 600;
}

.ny-body .uc-skupop__delta.up {
    color: var(--ny-green);
}

.ny-body .uc-skupop__delta.down {
    color: var(--ny-red);
}

/* 上传卡密说明块 */
.ny-body .uc-cardtip {
    background: var(--ny-surface-2);
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-s);
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--ny-ink-2);
    line-height: 1.7;
}

.ny-body .uc-cardtip p {
    margin: 0 0 8px;
}

.ny-body .uc-cardtip__code {
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px;
    overflow-x: auto;
    margin: 8px 0;
    line-height: 1.7;
}

html[data-theme="dark"] .ny-body .uc-cardtip__code {
    background: var(--ny-surface-3);
    color: var(--ny-ink);
}

.ny-body .uc-cardtip__legend {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ny-body .uc-cardtip__legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ny-body .uc-cardtip__warn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ny-warn);
    font-weight: 600;
}

.ny-body .uc-cardtip__warn .material-icons-outlined {
    font-size: 16px;
}

/* 订单查询密码/发货 textarea in layer */
.ny-body .layui-layer-page textarea.layui-input {
    border: 0;
    border-radius: 0 !important;
    min-height: 100%;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    background: var(--ny-surface);
    color: var(--ny-ink);
    outline: none;
    width: 100%;
    resize: none;
}

/* widget 查看弹窗 */
.ny-body .more-table .layui-table {
    width: 100%;
    background: transparent;
    color: var(--ny-ink);
    border-collapse: collapse;
}

.ny-body .more-table .layui-table td {
    border: 0;
    border-bottom: 1px dashed var(--ny-line);
    padding: 10px 8px;
    font-size: 13px;
    background: transparent;
}

/* toastr 通知 */
.ny-body #toast-container {
    top: calc(var(--ny-appbar-h) + var(--ny-sat) + 8px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.ny-body #toast-container > div {
    pointer-events: auto;
    width: min(92%, 420px);
    margin: 0 auto 8px;
    border-radius: var(--ny-radius);
    box-shadow: var(--ny-shadow-2);
    opacity: 1;
    padding: 14px 18px 14px 46px;
    font-size: 13.5px;
    background-color: var(--ny-surface);
    color: var(--ny-ink);
    border: 1px solid var(--ny-line);
}

.ny-body #toast-container > .toast-success {
    background-color: var(--ny-surface);
    border-left: 4px solid var(--ny-green);
}

.ny-body #toast-container > .toast-error {
    background-color: var(--ny-surface);
    border-left: 4px solid var(--ny-red);
}

.ny-body #toast-container > .toast-info {
    border-left: 4px solid var(--ny-blue);
}

.ny-body #toast-container > .toast-warning {
    border-left: 4px solid var(--ny-warn);
}

.ny-body .toast-message {
    color: inherit;
}

.ny-body .toast-title {
    color: inherit;
    font-weight: 700;
}

/* ==== 11 深色补充 / 动效偏好 / 无障碍 ==================================== */

/* 客服等悬浮控件避让底栏(常见第三方类名兜底) */
.ny-body .kefu-float,
.ny-body .service-float,
.ny-body [class*="kefu"][style*="fixed"],
.ny-body .float-btn {
    bottom: calc(var(--ny-nav-h) + var(--ny-sab) + 16px) !important;
}

/* 深色:表单控件配色跟随 */
html[data-theme="dark"] .ny-body input,
html[data-theme="dark"] .ny-body textarea,
html[data-theme="dark"] .ny-body select {
    color-scheme: dark;
}

html[data-theme="light"] .ny-body input,
html[data-theme="light"] .ny-body textarea,
html[data-theme="light"] .ny-body select {
    color-scheme: light;
}

/* 文本选择 */
.ny-body ::selection {
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
}

/* 列表卡不应被选中;即便某些浏览器绕过 user-select:none 强行选中,
   也让选区高亮透明,彻底杜绝灰色底色(卡密弹窗 .md-secret 在表格外,不受影响) */
.ny-body table.ny-listified ::selection,
.ny-body table.ny-listified *::selection {
    background: transparent !important;
    color: inherit !important;
}

.ny-body table.ny-listified ::-moz-selection,
.ny-body table.ny-listified *::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* 滚动条(桌面预览) */
.ny-body ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ny-body ::-webkit-scrollbar-thumb {
    background: var(--ny-line-strong);
    border-radius: 3px;
}

.ny-body ::-webkit-scrollbar-track {
    background: transparent;
}

/* 焦点可见(键盘导航):按钮/链接等保留黄色描边 */
.ny-body :focus-visible {
    outline: 2px solid var(--ny-yellow-deep);
    outline-offset: 2px;
}

/* 文本类控件本身已有边框/光标指示聚焦,点击时不再叠加黄色焦点框(搜索框、表单输入等) */
.ny-body input:focus-visible,
.ny-body textarea:focus-visible,
.ny-body select:focus-visible,
.ny-body .layui-input:focus-visible {
    outline: none;
    outline-offset: 0;
}

/* 键盘弹出时(小视口高度)压缩非必要留白 */
@media (max-height: 520px) {
    .ny-auth-main {
        padding-top: 24px;
    }

    .ny-auth-brand .ny-brand-mark--large {
        display: none;
    }
}

/* — 引擎补充 — */

/* 收支颜色与符号 */
table.ny-listified td.ny-amount-pos,
table.ny-listified td.ny-amount-pos * {
    color: var(--ny-green) !important;
}

table.ny-listified td.ny-amount-neg,
table.ny-listified td.ny-amount-neg * {
    color: var(--ny-red) !important;
}

table.ny-listified td.ny-amount-pos::before {
    content: "+";
    font-weight: 800;
}

table.ny-listified td.ny-amount-neg::before {
    content: "−";
    font-weight: 800;
}

/* 数量小签 */
table.ny-listified td[data-f="card_num"] {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--ny-ink-2);
    background: var(--ny-surface-3);
    border-radius: 999px;
    padding: 3px 10px !important;
    font-weight: 600;
}

table.ny-listified td[data-f="card_num"]::before {
    content: "× ";
    color: var(--ny-ink-3);
}

/* raw 槽默认 */
table.ny-listified td.ny-s-raw {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--ny-ink-2);
}

/* 展开时空值行不显示 */
table.ny-listified > tbody > tr.is-open td.ny-s-x[data-ny-blank] {
    display: none !important;
}

/* 表格内部残留的空工具容器 */
table.ny-listified > div {
    display: none;
}

/* 选择模式下隐藏底部导航,避免双层栏 */
body.ny-selecting .ny-bottom-nav {
    visibility: hidden;
}

/* ==== 12 我的工单：纯手机 APP 流程 ======================================= */

/* 我的页入口与未读数 */
.ny-me-menu .ny-ticket-entry > small {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.ny-ticket-entry-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.ny-ticket-entry-badge[hidden] { display: none; }

/* 创建与会话是沉浸式子流程，不保留全局 Tab Bar */
.ny-pjax:has(.ny-ticket-focus-page) ~ .ny-bottom-nav,
body.ny-ticket-focus-active .ny-bottom-nav { display: none; }
.ny-ticket-focus-page .ny-main { padding-bottom: calc(92px + var(--ny-sab)); }

.ny-ticket-screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
}

.ny-ticket-screen-head > div { min-width: 0; }
.ny-ticket-screen-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--ny-yellow-deep);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .18em;
}
.ny-ticket-screen-head h1 { margin: 0; color: var(--ny-ink); font-size: 24px; font-weight: 850; letter-spacing: -.025em; line-height: 1.18; }
.ny-ticket-screen-head p { margin: 4px 0 0; color: var(--ny-ink-3); font-size: 12px; }
.ny-ticket-refresh { flex: 0 0 auto; border: 1px solid var(--ny-line); background: var(--ny-surface); }
.ny-ticket-refresh:active .material-icons-outlined { transform: rotate(120deg); }

/* 列表：概览、搜索与状态筛选 */
.ny-ticket-overview {
    position: relative;
    min-height: 100px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    border-radius: var(--ny-radius-l);
    background:
        radial-gradient(circle at 96% -12%, var(--ny-yellow-tint), transparent 42%),
        var(--ny-graphite);
    color: var(--ny-on-graphite);
    box-shadow: var(--ny-shadow-2);
}

html[data-theme="dark"] .ny-ticket-overview { border: 1px solid var(--ny-line-strong); background: linear-gradient(145deg, var(--ny-surface-3), var(--ny-surface)); color: var(--ny-ink); }
.ny-ticket-overview .ny-route-mark { width: 38px; height: 38px; font-size: 15px; }
.ny-ticket-overview__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-overview__main > small { color: color-mix(in srgb, var(--ny-on-graphite) 62%, transparent); font-size: 10px; }
.ny-ticket-overview__main > strong { margin-top: 2px; display: flex; align-items: baseline; gap: 6px; font-size: 29px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ny-ticket-overview__main > strong em { color: color-mix(in srgb, var(--ny-on-graphite) 72%, transparent); font-size: 11px; font-style: normal; font-weight: 550; }
.ny-ticket-overview__side { min-width: 70px; padding-left: 14px; display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid color-mix(in srgb, var(--ny-on-graphite) 15%, transparent); }
.ny-ticket-overview__side span { color: color-mix(in srgb, var(--ny-on-graphite) 58%, transparent); font-size: 10px; }
.ny-ticket-overview__side strong { font-size: 22px; font-weight: 820; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .ny-ticket-overview__main > small,
html[data-theme="dark"] .ny-ticket-overview__main > strong em,
html[data-theme="dark"] .ny-ticket-overview__side span { color: var(--ny-ink-3); }
html[data-theme="dark"] .ny-ticket-overview__side { border-left-color: var(--ny-line-strong); }

.ny-ticket-search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ny-ticket-search {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ny-line);
    border-radius: 14px;
    background: var(--ny-surface);
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
}
.ny-ticket-search:focus-within { border-color: var(--ny-ink); box-shadow: 0 0 0 3px var(--ny-yellow-tint); }
.ny-ticket-search > .material-icons-outlined { position: absolute; left: 13px; color: var(--ny-ink-3); font-size: 20px; pointer-events: none; }
.ny-ticket-search input { width: 100%; height: 46px; padding: 0 44px 0 42px; border: 0; outline: 0; background: transparent; color: var(--ny-ink); font-size: 14px; }
.ny-ticket-search input::placeholder { color: var(--ny-ink-3); }
.ny-ticket-search button { position: absolute; right: 3px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ny-ink-3); }
.ny-ticket-search button[hidden] { display: none; }
.ny-ticket-search button .material-icons-outlined { font-size: 18px; }

.ny-ticket-filter-trigger {
    appearance: none;
    flex: 0 0 auto;
    height: 48px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ny-line-strong);
    border-radius: 14px;
    background: var(--ny-surface);
    color: var(--ny-ink);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur), color var(--ny-dur), transform .12s var(--ny-ease);
}
.ny-ticket-filter-trigger .material-icons-outlined { flex: 0 0 auto; font-size: 18px; }
.ny-ticket-filter-trigger:active { transform: scale(.97); }
.ny-ticket-filter-trigger:focus-visible { outline: 3px solid var(--ny-yellow-tint); outline-offset: 2px; }
.ny-ticket-filter-trigger.is-on { border-color: var(--ny-graphite); background: var(--ny-graphite); color: var(--ny-on-graphite); }
.ny-ticket-filter-trigger.is-on .material-icons-outlined { color: var(--ny-yellow); }

.ny-sheet--ticket-filter .ny-sheet-head { padding-bottom: 9px; }
.ny-ticket-filter-options {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}
.ny-ticket-filter-option {
    appearance: none;
    width: 100%;
    min-height: 62px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 19px;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ny-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--ny-dur), background var(--ny-dur), transform .12s var(--ny-ease);
}
.ny-ticket-filter-option:active { transform: scale(.985); background: var(--ny-surface-2); }
.ny-ticket-filter-option:focus-visible { outline: 3px solid var(--ny-yellow-tint); outline-offset: -1px; }
.ny-ticket-filter-option__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
}
.ny-ticket-filter-option__icon .material-icons-outlined { font-size: 20px; }
.ny-ticket-filter-option > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-filter-option strong { overflow: hidden; font-size: 13.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-filter-option small { margin-top: 2px; overflow: hidden; color: var(--ny-ink-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-filter-option > em {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ny-ticket-filter-option > i { opacity: 0; color: var(--ny-ink); font-size: 18px; transition: opacity var(--ny-dur); }
.ny-ticket-filter-option.is-active { border-color: color-mix(in srgb, var(--ny-yellow) 62%, var(--ny-line)); background: var(--ny-yellow-tint); }
.ny-ticket-filter-option.is-active .ny-ticket-filter-option__icon { background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-filter-option.is-active > em { background: var(--ny-graphite); color: var(--ny-on-graphite); }
.ny-ticket-filter-option.is-active > i { opacity: 1; }

/* 工单信息流 */
.ny-ticket-feed { min-height: 260px; }
.ny-ticket-feed__list { display: flex; flex-direction: column; gap: 10px; }
.ny-ticket-card {
    position: relative;
    padding: 14px 14px 12px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    box-shadow: var(--ny-shadow-1);
    transition: transform .12s var(--ny-ease), border-color var(--ny-dur), background var(--ny-dur);
}
.ny-ticket-card:active { transform: scale(.988); background: var(--ny-surface-2); }
.ny-ticket-card.has-unread { border-color: color-mix(in srgb, var(--ny-yellow) 62%, var(--ny-line)); }
.ny-ticket-card.has-unread::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--ny-yellow); }
.ny-ticket-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ny-ticket-card__type { display: inline-flex; align-items: center; gap: 5px; color: var(--ny-ink-2); font-size: 10.5px; font-weight: 700; }
.ny-ticket-card__type .material-icons-outlined { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--ny-surface-3); font-size: 14px; }
.ny-ticket-card__number { max-width: 55%; overflow: hidden; color: var(--ny-ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-card h2 { margin: 10px 0 0; overflow: hidden; color: var(--ny-ink); font-size: 15px; font-weight: 750; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-card > p { margin: 4px 0 0; overflow: hidden; color: var(--ny-ink-2); font-size: 11.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-card > p b { color: var(--ny-ink-3); font-weight: 600; }
.ny-ticket-card__meta { margin-top: 10px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.ny-ticket-card__meta > span { min-width: 0; height: 25px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; border-radius: 999px; background: var(--ny-surface-2); color: var(--ny-ink-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-card__meta > span:first-child { flex: 0 0 auto; color: var(--ny-warn); background: var(--ny-warn-tint); font-weight: 700; }
.ny-ticket-card__meta > span.is-guest { color: var(--ny-warn); background: var(--ny-warn-tint); font-weight: 650; }
.ny-ticket-card.is-reply .ny-ticket-card__meta > span:first-child { color: var(--ny-blue); background: var(--ny-blue-tint); }
.ny-ticket-card.is-resolved .ny-ticket-card__meta > span:first-child { color: var(--ny-green); background: var(--ny-green-tint); }
.ny-ticket-card.is-closed .ny-ticket-card__meta > span:first-child { color: var(--ny-ink-3); background: var(--ny-surface-3); }
.ny-ticket-card__meta .material-icons-outlined { flex: 0 0 auto; font-size: 12px; }
.ny-ticket-card footer { min-height: 32px; margin-top: 8px; padding-top: 8px; display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--ny-line); }
.ny-ticket-card footer time { flex: 1; color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-card footer em { height: 23px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ny-yellow-tint); color: var(--ny-warn); font-size: 9px; font-style: normal; font-weight: 750; }
.ny-ticket-card footer > .material-icons-outlined { color: var(--ny-ink-3); font-size: 17px; }

.ny-ticket-skeletons { display: flex; flex-direction: column; gap: 10px; }
.ny-ticket-skeletons[hidden] { display: none; }
.ny-ticket-skeleton { position: relative; height: 152px; overflow: hidden; border: 1px solid var(--ny-line); border-radius: var(--ny-radius); background: var(--ny-surface); }
.ny-ticket-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ny-ink) 5%, transparent), transparent); animation: ny-ticket-shimmer 1.25s infinite; }
@keyframes ny-ticket-shimmer { to { transform: translateX(100%); } }

.ny-ticket-state { min-height: 310px; padding: 42px 22px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.ny-ticket-state[hidden] { display: none; }
.ny-ticket-state > .material-icons-outlined { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 19px; background: var(--ny-yellow-tint); color: var(--ny-yellow-deep); font-size: 29px; }
.ny-ticket-state strong { margin-top: 14px; color: var(--ny-ink); font-size: 16px; }
.ny-ticket-state p { max-width: 270px; margin: 5px 0 16px; color: var(--ny-ink-3); font-size: 12px; line-height: 1.6; }
.ny-ticket-state a, .ny-ticket-state button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; border: 1px solid var(--ny-line-strong); border-radius: 999px; background: var(--ny-surface); color: var(--ny-ink); font-size: 12px; font-weight: 700; }
.ny-ticket-load-more { width: 100%; min-height: 46px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--ny-line); border-radius: var(--ny-radius); background: var(--ny-surface); color: var(--ny-ink-2); font-size: 12px; font-weight: 650; }
.ny-ticket-load-more[hidden] { display: none; }
.ny-ticket-load-more .material-icons-outlined { font-size: 18px; }

.ny-ticket-fab {
    position: fixed;
    z-index: 125;
    right: max(16px, calc((100vw - 480px) / 2 + 16px));
    bottom: calc(var(--ny-nav-h) + var(--ny-sab) + 16px);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow) !important;
    box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--ny-yellow) 58%, transparent);
}
.ny-ticket-fab:active { transform: scale(.96); }
.ny-ticket-fab .material-icons-outlined { font-size: 24px; }

/* 子页面顶栏与进度 */
.ny-ticket-create-main, .ny-ticket-detail-main { padding-top: 0; gap: 14px; }
.ny-ticket-detail-page .ny-main { padding-bottom: calc(var(--ny-ticket-dock-height, calc(92px + var(--ny-sab))) + 18px); }
.ny-ticket-subbar {
    position: sticky;
    top: calc(var(--ny-appbar-h) + var(--ny-sat));
    z-index: 90;
    min-height: 54px;
    margin: 0 -16px;
    padding: 4px 8px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    border-bottom: 1px solid var(--ny-line);
    background: color-mix(in srgb, var(--ny-bg) 92%, transparent);
    backdrop-filter: saturate(1.3) blur(14px);
    -webkit-backdrop-filter: saturate(1.3) blur(14px);
}
.ny-ticket-subbar > a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ny-ink); }
.ny-ticket-subbar > a:active { background: var(--ny-surface-3); }
.ny-ticket-subbar > a .material-icons-outlined { font-size: 21px; }
.ny-ticket-subbar > div { min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1.25; text-align: center; }
.ny-ticket-subbar strong { max-width: 100%; overflow: hidden; color: var(--ny-ink); font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-subbar small { max-width: 100%; margin-top: 2px; overflow: hidden; color: var(--ny-ink-3); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-step-count { justify-self: center; color: var(--ny-ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ny-ticket-step-count b { color: var(--ny-ink); font-size: 15px; }

.ny-ticket-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px 4px 5px; }
.ny-ticket-progress::before { content: ""; position: absolute; top: 16px; left: 17%; right: 17%; height: 2px; background: var(--ny-line); }
.ny-ticket-progress button { position: relative; z-index: 1; padding: 0; display: flex; align-items: center; flex-direction: column; gap: 5px; border: 0; background: transparent; color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-progress button i { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ny-line); border-radius: 50%; background: var(--ny-bg); color: var(--ny-ink-3); font-size: 10px; font-style: normal; font-weight: 750; }
.ny-ticket-progress button.is-active { color: var(--ny-ink); font-weight: 700; }
.ny-ticket-progress button.is-active i { border-color: var(--ny-yellow); background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-progress button.is-done i { border-color: var(--ny-graphite); background: var(--ny-graphite); color: var(--ny-on-graphite); }

.ny-ticket-create-form { display: block; }
.ny-ticket-step-panel { display: flex; flex-direction: column; gap: 18px; animation: ny-ticket-panel-in .22s var(--ny-ease); }
.ny-ticket-step-panel[hidden] { display: none; }
@keyframes ny-ticket-panel-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.ny-ticket-step-head { display: flex; align-items: center; gap: 12px; }
.ny-ticket-step-head > div { min-width: 0; }
.ny-ticket-step-head h2 { margin: 0; color: var(--ny-ink); font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.ny-ticket-step-head p { margin: 3px 0 0; color: var(--ny-ink-3); font-size: 11px; line-height: 1.5; }

/* 创建：选择卡 */
.ny-ticket-choice-list { display: flex; flex-direction: column; gap: 9px; }
.ny-ticket-choice-list > button {
    appearance: none;
    min-height: 78px;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    text-align: left;
}
.ny-ticket-choice-list > button > .material-icons-outlined:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--ny-surface-3); color: var(--ny-ink-2); font-size: 21px; }
.ny-ticket-choice-list > button > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-choice-list strong { font-size: 14px; font-weight: 750; }
.ny-ticket-choice-list small { margin-top: 3px; color: var(--ny-ink-3); font-size: 10.5px; line-height: 1.45; }
.ny-ticket-choice-list > button > i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--ny-line-strong); border-radius: 50%; color: transparent; font-size: 14px; font-style: normal; }
.ny-ticket-choice-list > button.is-active { border-color: var(--ny-yellow); background: var(--ny-yellow-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ny-yellow) 28%, transparent); }
.ny-ticket-choice-list > button.is-active > .material-icons-outlined:first-child { background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-choice-list > button.is-active > i { border-color: var(--ny-graphite); background: var(--ny-graphite); color: var(--ny-on-graphite); }

.ny-ticket-field-group { display: flex; flex-direction: column; gap: 10px; }
.ny-ticket-field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ny-ticket-field-heading strong { color: var(--ny-ink); font-size: 13px; font-weight: 720; }
.ny-ticket-field-heading small { color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-field-heading small b { color: var(--ny-ink-2); }
.ny-ticket-priority { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ny-ticket-priority button { appearance: none; min-height: 65px; padding: 9px 8px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--ny-line); border-radius: 12px; background: var(--ny-surface); color: var(--ny-ink); text-align: left; }
.ny-ticket-priority button > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--ny-ink-3); box-shadow: 0 0 0 4px var(--ny-surface-3); }
.ny-ticket-priority button:nth-child(2) > i { background: var(--ny-warn); box-shadow: 0 0 0 4px var(--ny-warn-tint); }
.ny-ticket-priority button:nth-child(3) > i { background: var(--ny-red); box-shadow: 0 0 0 4px var(--ny-red-tint); }
.ny-ticket-priority button > span { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-priority strong { font-size: 12px; }
.ny-ticket-priority small { color: var(--ny-ink-3); font-size: 8.5px; white-space: nowrap; }
.ny-ticket-priority button.is-active { border-color: var(--ny-graphite); background: var(--ny-surface-2); box-shadow: inset 0 0 0 1px var(--ny-graphite); }

/* 创建：关联与字段 */
.ny-ticket-picker-field {
    appearance: none;
    width: 100%;
    min-height: 72px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius);
    background: var(--ny-surface);
    color: var(--ny-ink);
    text-align: left;
}
.ny-ticket-picker-field:active { background: var(--ny-surface-2); }
.ny-ticket-picker-field > .material-icons-outlined:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ny-yellow-tint); color: var(--ny-yellow-deep); font-size: 20px; }
.ny-ticket-picker-field > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-picker-field small { color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-picker-field strong { margin-top: 2px; overflow: hidden; color: var(--ny-ink); font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-picker-field > i { color: var(--ny-ink-3); font-size: 18px; font-style: normal; }
.ny-ticket-selection-clear { min-height: 40px; margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--ny-red); font-size: 11px; font-weight: 650; }
.ny-ticket-selection-clear[hidden] { display: none; }

.ny-ticket-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: var(--ny-surface-3); }
.ny-ticket-mode-switch button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ny-ink-3); font-size: 11px; font-weight: 650; }
.ny-ticket-mode-switch button.is-active { background: var(--ny-surface); color: var(--ny-ink); box-shadow: var(--ny-shadow-1); }

.ny-ticket-input-field, .ny-ticket-textarea-field { position: relative; display: flex; flex-direction: column; gap: 7px; }
.ny-ticket-input-field > span, .ny-ticket-textarea-field > span { color: var(--ny-ink-2); font-size: 11px; font-weight: 650; }
.ny-ticket-input-field input, .ny-ticket-textarea-field textarea {
    width: 100%;
    border: 1px solid var(--ny-line-strong);
    border-radius: 13px;
    outline: 0;
    background: var(--ny-surface);
    color: var(--ny-ink);
    font: inherit;
    transition: border-color var(--ny-dur), box-shadow var(--ny-dur);
}
.ny-ticket-input-field input { min-height: 52px; padding: 0 48px 0 13px; font-size: 14px; }
.ny-ticket-textarea-field textarea { min-height: 168px; padding: 13px; resize: none; font-size: 14px; line-height: 1.7; }
.ny-ticket-input-field input:focus, .ny-ticket-textarea-field textarea:focus { border-color: var(--ny-ink); box-shadow: 0 0 0 3px var(--ny-yellow-tint); }
.ny-ticket-input-field input::placeholder, .ny-ticket-textarea-field textarea::placeholder { color: var(--ny-ink-3); }
.ny-ticket-input-field > em { position: absolute; right: 12px; bottom: 16px; color: var(--ny-ink-3); font-size: 9px; font-style: normal; }
.ny-ticket-input-field > em b { font-weight: 600; }
.ny-ticket-inline-help { margin: 8px 2px 0; display: flex; align-items: flex-start; gap: 6px; color: var(--ny-ink-3); font-size: 10px; line-height: 1.55; }
.ny-ticket-inline-help .material-icons-outlined { flex: 0 0 auto; margin-top: 1px; font-size: 14px; }

.ny-ticket-proof-block, .ny-ticket-attachments { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.ny-ticket-upload-card {
    appearance: none;
    width: 100%;
    min-height: 78px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px dashed var(--ny-line-strong);
    border-radius: var(--ny-radius);
    background: var(--ny-surface-2);
    color: var(--ny-ink);
    text-align: left;
}
.ny-ticket-upload-card[hidden] { display: none; }
.ny-ticket-upload-card > .material-icons-outlined { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--ny-yellow-tint); color: var(--ny-yellow-deep); font-size: 21px; }
.ny-ticket-upload-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-upload-card strong { font-size: 13px; }
.ny-ticket-upload-card small { margin-top: 3px; color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-upload-card > i { padding: 6px 9px; border-radius: 999px; background: var(--ny-surface); color: var(--ny-ink-2); font-size: 9px; font-style: normal; font-weight: 700; }
.ny-ticket-upload-card.is-loading > .material-icons-outlined, .ny-ticket-add-images:disabled .material-icons-outlined { animation: ny-spin 1s linear infinite; }

.ny-ticket-proof-preview { min-height: 72px; padding: 8px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 40px; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--ny-green) 24%, var(--ny-line)); border-radius: var(--ny-radius); background: var(--ny-green-tint); }
.ny-ticket-proof-preview[hidden] { display: none; }
.ny-ticket-proof-preview img { width: 58px; height: 54px; border-radius: 10px; object-fit: cover; }
.ny-ticket-proof-preview > span { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-proof-preview strong { color: var(--ny-ink); font-size: 12px; }
.ny-ticket-proof-preview small { overflow: hidden; color: var(--ny-ink-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-proof-preview > button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ny-red); }
.ny-ticket-proof-preview > button .material-icons-outlined { font-size: 18px; }

.ny-ticket-create-summary { display: flex; gap: 6px; margin-top: -3px; overflow-x: auto; scrollbar-width: none; }
.ny-ticket-create-summary::-webkit-scrollbar { display: none; }
.ny-ticket-create-summary span { flex: 0 0 auto; height: 27px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ny-surface-3); color: var(--ny-ink-2); font-size: 9.5px; font-weight: 650; }
.ny-ticket-create-summary span:first-child { background: var(--ny-yellow-tint); color: var(--ny-warn); }

.ny-ticket-attachment-grid, .ny-ticket-composer__attachments { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ny-ticket-attachment-grid::-webkit-scrollbar, .ny-ticket-composer__attachments::-webkit-scrollbar { display: none; }
.ny-ticket-attachment-grid > div, .ny-ticket-composer__attachments > div { position: relative; flex: 0 0 auto; width: 70px; height: 70px; }
.ny-ticket-attachment-grid > div > button:first-child, .ny-ticket-composer__attachments > div > button:first-child { width: 70px; height: 70px; padding: 0; overflow: hidden; border: 1px solid var(--ny-line); border-radius: 12px; background: var(--ny-surface-3); }
.ny-ticket-attachment-grid img, .ny-ticket-composer__attachments img { width: 100%; height: 100%; object-fit: cover; }
.ny-ticket-attachment-grid > div > button:last-child, .ny-ticket-composer__attachments > div > button:last-child { position: absolute; top: -5px; right: -5px; width: 23px; height: 23px; padding: 0; display: grid; place-items: center; border: 2px solid var(--ny-bg); border-radius: 50%; background: var(--ny-graphite); color: var(--ny-on-graphite); }
.ny-ticket-attachment-grid > div > button:last-child .material-icons-outlined, .ny-ticket-composer__attachments > div > button:last-child .material-icons-outlined { font-size: 13px; }
.ny-ticket-add-images { align-self: flex-start; min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ny-line-strong); border-radius: 999px; background: var(--ny-surface); color: var(--ny-ink-2); font-size: 11px; font-weight: 650; }
.ny-ticket-add-images[hidden] { display: none; }
.ny-ticket-add-images .material-icons-outlined { font-size: 17px; }
.ny-ticket-privacy-note { padding: 11px 12px; display: flex; align-items: flex-start; gap: 8px; border-radius: 12px; background: var(--ny-blue-tint); color: var(--ny-blue); }
.ny-ticket-privacy-note .material-icons-outlined { flex: 0 0 auto; font-size: 17px; }
.ny-ticket-privacy-note p { margin: 0; font-size: 10px; line-height: 1.55; }

/* 创建底部操作 Dock */
.ny-ticket-action-dock {
    position: fixed;
    z-index: 145;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    min-height: calc(74px + var(--ny-sab));
    padding: 10px 16px calc(10px + var(--ny-sab));
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--ny-line);
    background: color-mix(in srgb, var(--ny-surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.ny-ticket-action-dock button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; font-size: 13px; font-weight: 720; }
.ny-ticket-action-dock button[hidden] { display: none; }
.ny-ticket-dock-back { flex: 0 0 auto; border: 1px solid var(--ny-line-strong); background: var(--ny-surface); color: var(--ny-ink-2); }
.ny-ticket-dock-next, .ny-ticket-dock-submit { flex: 1; border: 1px solid var(--ny-graphite); background: var(--ny-graphite); color: var(--ny-on-graphite); }
.ny-ticket-dock-submit { border-color: var(--ny-yellow); background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-action-dock .material-icons-outlined { font-size: 18px; }
.ny-ticket-action-dock button:disabled { opacity: .55; }
.ny-ticket-dock-submit:disabled .material-icons-outlined { animation: ny-spin 1s linear infinite; }

/* 商品/订单原生底部选择器 */
body.ny-ticket-picker-open { overflow: hidden; }
.ny-ticket-picker-backdrop { position: fixed; inset: 0; z-index: 315; border: 0; background: var(--ny-scrim); animation: ny-ticket-fade-in .2s ease; }
.ny-ticket-picker-backdrop[hidden], .ny-ticket-picker[hidden] { display: none; }
.ny-ticket-picker {
    position: fixed;
    z-index: 320;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    max-height: min(84dvh, 720px);
    padding-bottom: max(var(--ny-sab), 8px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: var(--ny-surface);
    box-shadow: var(--ny-shadow-2);
    animation: ny-ticket-sheet-in .26s var(--ny-ease);
}
@keyframes ny-ticket-sheet-in { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes ny-ticket-fade-in { from { opacity: 0; } }
.ny-ticket-picker__handle { width: 38px; height: 4px; margin: 8px auto 4px; flex: 0 0 auto; border-radius: 999px; background: var(--ny-line-strong); }
.ny-ticket-picker > header { min-height: 58px; padding: 5px 8px 9px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ny-line); }
.ny-ticket-picker > header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-picker > header strong { color: var(--ny-ink); font-size: 16px; }
.ny-ticket-picker > header small { color: var(--ny-ink-3); font-size: 10px; }
.ny-ticket-picker > header > button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ny-ink-2); }
.ny-ticket-picker__search { position: relative; min-height: 46px; margin: 12px 14px 8px; display: flex; align-items: center; border-radius: 13px; background: var(--ny-surface-3); }
.ny-ticket-picker__search > .material-icons-outlined { position: absolute; left: 12px; color: var(--ny-ink-3); font-size: 19px; }
.ny-ticket-picker__search input { width: 100%; height: 46px; padding: 0 42px 0 40px; border: 0; outline: 0; background: transparent; color: var(--ny-ink); font-size: 13px; }
.ny-ticket-picker__search button { position: absolute; right: 3px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ny-ink-3); }
.ny-ticket-picker__search button[hidden] { display: none; }
.ny-ticket-picker__search button .material-icons-outlined { font-size: 17px; }
.ny-ticket-picker__list { min-height: 170px; padding: 0 14px; overflow-y: auto; overscroll-behavior: contain; }
.ny-ticket-picker-item { appearance: none; width: 100%; min-height: 68px; padding: 8px 2px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid var(--ny-line); background: transparent; color: var(--ny-ink); text-align: left; }
.ny-ticket-picker-item img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; background: var(--ny-surface-3); }
.ny-ticket-picker-item > span { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-picker-item strong { overflow: hidden; font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-picker-item small { margin-top: 3px; overflow: hidden; color: var(--ny-ink-3); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-picker-item > .material-icons-outlined { color: var(--ny-ink-3); font-size: 17px; }
.ny-ticket-picker-loading, .ny-ticket-picker-empty { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--ny-ink-3); font-size: 11px; text-align: center; }
.ny-ticket-picker-loading .material-icons-outlined { animation: ny-spin 1s linear infinite; }
.ny-ticket-picker-empty .material-icons-outlined { font-size: 34px; }
.ny-ticket-picker-empty strong { color: var(--ny-ink-2); font-size: 13px; }
.ny-ticket-picker-empty span { font-size: 10px; }
.ny-ticket-picker__more { min-height: 42px; margin: 5px 14px 8px; border: 1px solid var(--ny-line); border-radius: 999px; background: var(--ny-surface-2); color: var(--ny-ink-2); font-size: 11px; font-weight: 650; }
.ny-ticket-picker__more[hidden] { display: none; }

/* 详情：状态与工单信息 */
.ny-ticket-detail-loading { min-height: 58vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.ny-ticket-detail-loading[hidden] { display: none; }
.ny-ticket-detail-loading > .material-icons-outlined { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 21px; background: var(--ny-yellow-tint); color: var(--ny-yellow-deep); font-size: 30px; animation: ny-ticket-breathe 1.2s ease-in-out infinite alternate; }
@keyframes ny-ticket-breathe { to { transform: translateY(-5px); box-shadow: 0 12px 24px -10px var(--ny-yellow); } }
.ny-ticket-detail-loading strong { margin-top: 14px; color: var(--ny-ink); font-size: 15px; }
.ny-ticket-detail-loading small { margin-top: 3px; color: var(--ny-ink-3); font-size: 10px; }
.ny-ticket-detail-error { min-height: 58vh; }
.ny-ticket-detail-content { display: flex; flex-direction: column; gap: 12px; }
.ny-ticket-detail-content[hidden] { display: none; }
.ny-ticket-detail-card { padding: 15px; border: 1px solid var(--ny-line); border-radius: var(--ny-radius-l); background: var(--ny-surface); box-shadow: var(--ny-shadow-1); }
.ny-ticket-detail-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ny-ticket-detail-card__top > div { display: flex; align-items: center; gap: 6px; }
.ny-ticket-detail-card__top time { flex: 0 0 auto; color: var(--ny-ink-3); font-size: 9px; }
.ny-ticket-status, .ny-ticket-live { height: 27px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 9.5px; font-weight: 720; }
.ny-ticket-status.is-waiting { background: var(--ny-warn-tint); color: var(--ny-warn); }
.ny-ticket-status.is-reply { background: var(--ny-blue-tint); color: var(--ny-blue); }
.ny-ticket-status.is-resolved { background: var(--ny-green-tint); color: var(--ny-green); }
.ny-ticket-status.is-closed { background: var(--ny-surface-3); color: var(--ny-ink-3); }
.ny-ticket-live { background: var(--ny-green-tint); color: var(--ny-green); }
.ny-ticket-live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); animation: ny-ticket-live 1s ease-in-out infinite alternate; }
.ny-ticket-live.is-archived { background: var(--ny-surface-3); color: var(--ny-ink-3); }
.ny-ticket-live.is-archived i { animation: none; box-shadow: none; }
@keyframes ny-ticket-live { to { opacity: .42; } }
.ny-ticket-detail-card h1 { margin: 14px 0 8px; color: var(--ny-ink); font-size: 20px; font-weight: 820; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ny-ticket-detail-tags { display: flex; gap: 6px; }
.ny-ticket-detail-tags span { height: 25px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ny-surface-3); color: var(--ny-ink-2); font-size: 9px; font-weight: 650; }
.ny-ticket-context-toggle { width: 100%; min-height: 58px; margin-top: 14px; padding: 9px 0 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--ny-line); background: transparent; color: var(--ny-ink); text-align: left; }
.ny-ticket-context-toggle > .material-icons-outlined:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ny-surface-3); color: var(--ny-ink-2); font-size: 17px; }
.ny-ticket-context-toggle > span { display: flex; flex-direction: column; }
.ny-ticket-context-toggle strong { font-size: 12px; }
.ny-ticket-context-toggle small { color: var(--ny-ink-3); font-size: 9px; }
.ny-ticket-context-toggle > i { color: var(--ny-ink-3); font-size: 19px; font-style: normal; transition: transform var(--ny-dur); }
.ny-ticket-context-toggle.is-open > i { transform: rotate(180deg); }
.ny-ticket-context-panel { padding-top: 11px; animation: ny-ticket-context-in .2s var(--ny-ease); }
.ny-ticket-context-panel[hidden] { display: none; }
@keyframes ny-ticket-context-in { from { opacity: 0; transform: translateY(-5px); } }
.ny-ticket-context-rows { padding: 4px 11px; border-radius: 12px; background: var(--ny-surface-2); }
.ny-ticket-context-rows > div { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ny-line); }
.ny-ticket-context-rows > div:last-child { border-bottom: 0; }
.ny-ticket-context-rows span { color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-context-rows strong { max-width: 66%; overflow: hidden; color: var(--ny-ink-2); font-size: 10px; font-weight: 650; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-related, .ny-ticket-proof-view { min-height: 64px; margin-top: 8px; padding: 8px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--ny-line); border-radius: 12px; background: var(--ny-surface-2); color: var(--ny-ink); text-align: left; }
.ny-ticket-related.is-guest { border-color: color-mix(in srgb, var(--ny-warn) 28%, var(--ny-line)); background: var(--ny-warn-tint); }
.ny-ticket-related[hidden], .ny-ticket-proof-view[hidden] { display: none; }
.ny-ticket-related img, .ny-ticket-proof-view img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--ny-surface-3); }
.ny-ticket-related > .material-icons-outlined { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--ny-yellow-tint); color: var(--ny-yellow-deep); }
.ny-ticket-related > span, .ny-ticket-proof-view > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-related small, .ny-ticket-proof-view small { color: var(--ny-ink-3); font-size: 9px; }
.ny-ticket-related strong, .ny-ticket-proof-view strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-related em { overflow: hidden; color: var(--ny-ink-3); font-size: 8.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-proof-view { width: 100%; }
.ny-ticket-proof-view > i { color: var(--ny-ink-3); font-size: 19px; font-style: normal; }

/* 会话气泡 */
.ny-ticket-conversation { padding: 13px 12px 18px; border: 1px solid var(--ny-line); border-radius: var(--ny-radius-l); background: var(--ny-surface); }
.ny-ticket-conversation__head { min-height: 44px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ny-ticket-conversation__head > div { display: flex; flex-direction: column; }
.ny-ticket-conversation__head strong { font-size: 13px; }
.ny-ticket-conversation__head small { color: var(--ny-ink-3); font-size: 9px; }
.ny-ticket-conversation__head > .material-icons-outlined { color: var(--ny-ink-3); font-size: 16px; }
.ny-ticket-history-more { min-height: 36px; margin: 0 auto 15px; padding: 0 12px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--ny-line); border-radius: 999px; background: var(--ny-surface-2); color: var(--ny-ink-3); font-size: 9.5px; }
.ny-ticket-history-more[hidden] { display: none; }
.ny-ticket-history-more .material-icons-outlined { font-size: 15px; }
.ny-ticket-messages { display: flex; flex-direction: column; gap: 16px; }
.ny-ticket-message { display: flex; flex-direction: column; max-width: 84%; }
.ny-ticket-message.is-user { align-self: flex-end; align-items: flex-end; }
.ny-ticket-message.is-admin { align-self: flex-start; align-items: flex-start; }
.ny-ticket-message__meta { width: 100%; min-width: 0; min-height: 22px; margin-bottom: 3px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ny-ticket-message__meta strong { min-width: 0; max-width: 48%; overflow: hidden; color: var(--ny-ink-2); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ny-ticket-message__meta > span { height: 18px; padding: 0 5px; display: inline-flex; align-items: center; border-radius: 5px; background: var(--ny-yellow-tint); color: var(--ny-warn); font-size: 7.5px; font-weight: 720; }
.ny-ticket-message__meta > .ny-ticket-final { gap: 2px; background: var(--ny-green-tint); color: var(--ny-green); }
.ny-ticket-final .material-icons-outlined { font-size: 10px; }
.ny-ticket-message__meta time { margin-left: auto; color: var(--ny-ink-3); font-size: 8px; }
.ny-ticket-message.is-user .ny-ticket-message__meta { justify-content: flex-end; }
.ny-ticket-message.is-user .ny-ticket-message__meta time { margin-left: 0; order: -1; }
.ny-ticket-message__bubble { max-width: 100%; padding: 10px 12px; border: 1px solid var(--ny-line); border-radius: 5px 15px 15px; background: var(--ny-surface-2); color: var(--ny-ink); }
.ny-ticket-message.is-user .ny-ticket-message__bubble { border-color: var(--ny-graphite); border-radius: 15px 5px 15px 15px; background: var(--ny-graphite); color: var(--ny-on-graphite); }
html[data-theme="dark"] .ny-ticket-message.is-user .ny-ticket-message__bubble { border-color: var(--ny-yellow); background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-event { align-self: center; width: min(92%, 330px); padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; border-radius: 11px; background: var(--ny-surface-2); color: var(--ny-ink-2); }
.ny-ticket-event > .material-icons-outlined { flex: 0 0 auto; margin-top: 1px; color: var(--ny-ink-3); font-size: 15px; }
.ny-ticket-event > div { min-width: 0; display: flex; flex-direction: column; }
.ny-ticket-event strong { font-size: 9px; }
.ny-ticket-event time { color: var(--ny-ink-3); font-size: 7.5px; }
.ny-ticket-event.is-closed { background: var(--ny-warn-tint); color: var(--ny-warn); }

.ny-ticket-message-content { color: inherit; font-size: 12px; line-height: 1.72; overflow-wrap: anywhere; }
.ny-ticket-message-content > *:first-child { margin-top: 0 !important; }
.ny-ticket-message-content > *:last-child { margin-bottom: 0 !important; }
.ny-ticket-message-content p { margin: 0 0 8px; }
.ny-ticket-message-content h1, .ny-ticket-message-content h2, .ny-ticket-message-content h3, .ny-ticket-message-content h4 { margin: 12px 0 6px; color: inherit; font-size: 1em; font-weight: 750; }
.ny-ticket-message-content ul, .ny-ticket-message-content ol { margin: 0 0 8px; padding-left: 1.6em; }
.ny-ticket-message-content blockquote { margin: 0 0 8px; padding: 6px 8px; border-left: 3px solid currentColor; border-radius: 0 7px 7px 0; background: color-mix(in srgb, currentColor 7%, transparent); opacity: .9; }
.ny-ticket-message-content code { padding: .1em .32em; border-radius: 4px; background: color-mix(in srgb, currentColor 9%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 85%; }
.ny-ticket-message-content pre { max-width: 100%; margin: 0 0 8px; padding: 9px; overflow-x: auto; border-radius: 8px; background: color-mix(in srgb, currentColor 8%, transparent); }
.ny-ticket-message-content pre code { padding: 0; background: none; }
.ny-ticket-message-content a { color: var(--ny-blue); text-decoration: underline; }
.ny-ticket-message.is-user .ny-ticket-message-content a { color: inherit; }
.ny-ticket-message-content img { display: block; width: auto; max-width: min(100%, 260px); max-height: 300px; margin: 7px 0; border-radius: 10px; object-fit: contain; cursor: zoom-in; }
.ny-ticket-message-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ny-ticket-message-content th, .ny-ticket-message-content td { padding: 5px 7px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); white-space: nowrap; }
.ny-ticket-event .ny-ticket-message-content { font-size: 9.5px; }

/* 固定回复栏 / 已结束栏 */
.ny-ticket-composer, .ny-ticket-closed-dock {
    position: fixed;
    z-index: 145;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 8px 10px calc(8px + var(--ny-sab));
    border-top: 1px solid var(--ny-line);
    background: color-mix(in srgb, var(--ny-surface) 95%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.ny-ticket-composer[hidden], .ny-ticket-closed-dock[hidden] { display: none; }
.ny-ticket-composer__attachments { padding: 4px 4px 9px; }
.ny-ticket-composer__bar { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: end; gap: 6px; }
.ny-ticket-composer__bar > button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ny-surface-3); color: var(--ny-ink-2); }
.ny-ticket-composer__bar > button .material-icons-outlined { font-size: 20px; }
.ny-ticket-composer__bar textarea { width: 100%; min-height: 42px; max-height: 104px; padding: 10px 12px; overflow-y: auto; border: 1px solid var(--ny-line); border-radius: 18px; outline: 0; resize: none; background: var(--ny-surface-2); color: var(--ny-ink); font: inherit; font-size: 13px; line-height: 1.5; }
.ny-ticket-composer__bar textarea:focus { border-color: var(--ny-line-strong); }
.ny-ticket-composer__bar > button.ny-ticket-composer__send { background: var(--ny-yellow); color: var(--ny-on-yellow); }
.ny-ticket-composer__bar > button.ny-ticket-composer__send:disabled { background: var(--ny-surface-3); color: var(--ny-ink-3); opacity: .66; }
.ny-ticket-composer__send.is-loading .material-icons-outlined { animation: ny-spin 1s linear infinite; }
.ny-ticket-composer__bar > button.is-loading { opacity: .62; }
.ny-ticket-composer__bar > button.is-loading .material-icons-outlined { animation: ny-spin 1s linear infinite; }
.ny-ticket-composer > small { display: block; margin: 4px 50px 0; color: var(--ny-ink-3); font-size: 8px; text-align: center; }
.ny-ticket-closed-dock { min-height: calc(72px + var(--ny-sab)); display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.ny-ticket-closed-dock > .material-icons-outlined { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ny-surface-3); color: var(--ny-ink-3); font-size: 19px; }
.ny-ticket-closed-dock > span:nth-child(2) { display: flex; flex-direction: column; }
.ny-ticket-closed-dock strong { font-size: 11px; }
.ny-ticket-closed-dock small { color: var(--ny-ink-3); font-size: 8.5px; }
.ny-ticket-closed-dock a { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ny-yellow); color: var(--ny-on-yellow); font-size: 10px; font-weight: 750; }

/* 全屏图片预览与轻提示 */
body.ny-ticket-viewing { overflow: hidden; }
.ny-ticket-viewer { position: fixed; inset: 0; z-index: 19892000; background: #090909; color: #fff; }
.ny-ticket-viewer[hidden] { display: none; }
.ny-ticket-viewer__backdrop { position: absolute; inset: 0; border: 0; background: transparent; }
.ny-ticket-viewer > header { position: absolute; z-index: 2; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; min-height: calc(54px + var(--ny-sat)); padding: var(--ny-sat) 8px 0 16px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(rgba(0,0,0,.78), transparent); }
.ny-ticket-viewer > header > span { font-size: 13px; font-weight: 700; }
.ny-ticket-viewer > header > button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.ny-ticket-viewer > div { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(58px + var(--ny-sat)) 12px calc(24px + var(--ny-sab)); pointer-events: none; }
.ny-ticket-viewer > div img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: auto; touch-action: pinch-zoom; }
.ny-ticket-toast { position: fixed; z-index: 19893000; top: calc(var(--ny-sat) + 62px); left: 50%; transform: translate(-50%, -10px); max-width: min(360px, calc(100vw - 32px)); padding: 10px 14px; visibility: hidden; opacity: 0; border: 1px solid var(--ny-line-strong); border-radius: 999px; background: var(--ny-graphite); color: var(--ny-on-graphite); box-shadow: var(--ny-shadow-2); font-size: 11px; font-weight: 650; text-align: center; transition: opacity .18s, transform .18s, visibility .18s; }
.ny-ticket-toast.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.ny-ticket-toast.is-error { background: var(--ny-red); color: #fff; }
.ny-ticket-toast.is-success { background: var(--ny-green); color: #fff; }

@media (max-width: 359px) {
    .ny-ticket-overview { padding: 14px; }
    .ny-ticket-overview__main > strong { font-size: 25px; }
    .ny-ticket-overview__side { min-width: 61px; padding-left: 10px; }
    .ny-ticket-priority button { padding-inline: 6px; gap: 6px; }
    .ny-ticket-priority small { font-size: 7.5px; }
    .ny-ticket-message { max-width: 90%; }
    .ny-ticket-subbar { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .ny-ticket-step-panel, .ny-ticket-picker, .ny-ticket-picker-backdrop, .ny-ticket-context-panel,
    .ny-ticket-skeleton::after, .ny-ticket-live i, .ny-ticket-detail-loading > .material-icons-outlined { animation: none !important; }
}

/* 列表计数 */
.ny-list-total {
    font-weight: 600;
    font-size: 11px;
    color: var(--ny-ink-3);
    white-space: nowrap;
}

/* 批量面板代理按钮继承 .ny-bulk-list button 样式 */
.ny-bulk-list .ny-bulk-proxy .material-icons-outlined {
    font-size: 20px;
}

/* 店铺主站商品弹层 */
.ny-body .ny-business-popup-layer .layui-layer-content {
    padding: 12px 14px calc(max(var(--ny-sab), 12px));
    overflow-y: auto !important;
}

.ny-body .is-ny-business-popup-mounted {
    margin: 0;
}

/* ==== 12 消息通知：手机收件箱 / 抽屉阅读器 =============================== */

/* 商城动作较多，品牌主动让出空间；通知始终保留 44px 触控区。 */
.ny-store-appbar .ny-appbar__brand {
    flex: 1 1 0;
    gap: 8px;
    overflow: hidden;
}

.ny-store-appbar {
    padding-left: 12px;
}

.ny-store-appbar .ny-appbar-notice {
    padding-right: 8px;
    padding-left: 6px;
}

.ny-appbar__actions {
    flex: 0 0 auto;
}

.ny-message-button {
    position: relative;
    isolation: isolate;
}

.ny-message-button[aria-expanded="true"] {
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
}

.ny-message-badge {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--ny-bg);
    border-radius: 999px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 7px color-mix(in srgb, var(--ny-yellow) 34%, transparent);
    transform-origin: center;
    transition: opacity var(--ny-dur), transform var(--ny-dur);
}

.ny-message-badge.is-empty {
    opacity: 0;
    transform: scale(.55);
    pointer-events: none;
}

.uc-message-btn.is-ringing .uc-message-btn__icon {
    transform-origin: 50% 12%;
    animation: ny-message-ring .72s cubic-bezier(.36, .07, .19, .97);
}

@keyframes ny-message-ring {
    0%, 100% { transform: rotate(0); }
    18% { transform: rotate(15deg); }
    36% { transform: rotate(-12deg); }
    54% { transform: rotate(9deg); }
    72% { transform: rotate(-5deg); }
}

.ny-message-sheet {
    height: auto;
    min-height: 0;
    max-height: min(76vh, 640px);
    max-height: min(76dvh, 640px, calc(100dvh - var(--ny-sat) - 8px));
    overflow: hidden;
    overscroll-behavior: contain;
}

.ny-message-sheet.is-reading {
    height: min(86vh, 720px);
    height: min(86dvh, 720px);
    max-height: min(86vh, 720px);
    max-height: min(86dvh, 720px, calc(100dvh - var(--ny-sat) - 8px));
}

.ny-message-sheet.is-dragging {
    transform: translate(-50%, var(--ny-message-drag-y, 0));
    transition: none;
}

.ny-message-list-view,
.ny-message-reader {
    flex: 1 1 auto;
    min-height: 0;
}

.ny-message-list-view {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}

.ny-message-list-view[hidden],
.ny-message-reader[hidden],
.ny-message-reader__footer[hidden],
.ny-message-reader__footer a[hidden] {
    display: none !important;
}

.ny-message-sheet__head {
    padding-left: 18px;
}

.ny-message-sheet__head > div:first-child {
    flex: 1 1 auto;
}

.ny-message-sheet__count {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ny-yellow-tint);
    color: var(--ny-warn) !important;
    font-size: 10px !important;
    font-weight: 760;
    white-space: nowrap;
}

.ny-message-sheet__count.is-empty {
    background: var(--ny-surface-3);
    color: var(--ny-ink-3) !important;
}

.ny-message-recent {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(56vh, 468px);
    max-height: min(56dvh, 468px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ny-message-recent::-webkit-scrollbar {
    display: none;
}

.ny-message-item {
    appearance: none;
    width: 100%;
    min-height: 78px;
    padding: 10px 15px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid var(--ny-line);
    background: transparent;
    color: var(--ny-ink);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--ny-dur), opacity var(--ny-dur);
}

.ny-message-item.is-unread {
    background: linear-gradient(90deg, var(--ny-yellow-tint), transparent 82%);
}

.ny-message-item:active {
    background: var(--ny-surface-3);
}

.ny-message-item.is-loading {
    opacity: .58;
    pointer-events: none;
}

.ny-message-item__icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ny-surface-3);
    color: var(--ny-ink-2);
}

.ny-message-item.is-unread .ny-message-item__icon {
    background: var(--ny-yellow-tint);
    color: var(--ny-yellow-deep);
}

.ny-message-item__icon .material-icons-outlined {
    font-size: 20px;
}

.ny-message-item__icon i {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ny-yellow);
    opacity: 0;
}

.ny-message-item.is-unread .ny-message-item__icon i {
    opacity: 1;
}

.ny-message-item__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ny-message-item__copy strong {
    overflow: hidden;
    color: var(--ny-ink);
    font-size: 13px;
    font-weight: 660;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ny-message-item.is-unread .ny-message-item__copy strong {
    font-weight: 810;
}

.ny-message-item__copy small {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ny-ink-2);
    font-size: 10.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ny-message-item__copy time {
    margin-top: 3px;
    color: var(--ny-ink-3);
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
}

.ny-message-item__arrow {
    color: var(--ny-ink-3);
    font-size: 19px;
}

.ny-message-sheet__all {
    flex: 0 0 auto;
    min-height: 56px;
    margin: 8px 12px 0;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    border-radius: 15px;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite) !important;
    font-size: 13px;
    font-weight: 720;
    -webkit-tap-highlight-color: transparent;
}

.ny-message-sheet__all:active {
    opacity: .82;
}

.ny-message-sheet__all .material-icons-outlined {
    font-size: 19px;
}

.ny-message-sheet__all .material-icons-outlined:last-child {
    justify-self: end;
}

.ny-message-skeletons {
    padding: 2px 15px 10px;
}

.ny-message-skeleton {
    min-height: 78px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--ny-line);
}

.ny-message-skeleton > i,
.ny-message-skeleton b,
.ny-message-skeleton small,
.ny-message-skeleton em {
    display: block;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--ny-surface-3) 28%, var(--ny-line) 42%, var(--ny-surface-3) 58%);
    background-size: 220% 100%;
    animation: ny-message-shimmer 1.25s ease-in-out infinite;
}

.ny-message-skeleton > i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.ny-message-skeleton > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ny-message-skeleton b { width: 54%; height: 11px; }
.ny-message-skeleton small { width: 88%; height: 8px; }
.ny-message-skeleton em { width: 28%; height: 7px; }

@keyframes ny-message-shimmer {
    to { background-position-x: -220%; }
}

.ny-message-state {
    min-height: 220px;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--ny-ink-3);
    text-align: center;
}

.ny-message-state > .material-icons-outlined {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--ny-surface-3);
    font-size: 27px;
}

.ny-message-state strong {
    margin-top: 12px;
    color: var(--ny-ink);
    font-size: 14px;
}

.ny-message-state small {
    margin-top: 3px;
    font-size: 10.5px;
}

.ny-message-state button {
    appearance: none;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--ny-graphite);
    color: var(--ny-on-graphite);
    font-size: 12px;
    font-weight: 700;
}

.ny-message-state button .material-icons-outlined {
    font-size: 17px;
}

/* 详情是同一抽屉内的推进页面，不打开网页弹窗。 */
.ny-message-reader {
    display: flex;
    flex-direction: column;
    animation: ny-message-reader-in .24s var(--ny-ease);
}

@keyframes ny-message-reader-in {
    from { opacity: .45; transform: translateX(18px); }
}

.ny-message-reader__head {
    flex: 0 0 auto;
    min-height: 68px;
    padding: 6px 8px 9px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--ny-line);
}

.ny-message-reader__head > button {
    appearance: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ny-ink-2);
}

.ny-message-reader__head > button:active {
    background: var(--ny-surface-3);
}

.ny-message-reader__head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ny-message-reader__head > div > span {
    color: var(--ny-yellow-deep);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .18em;
}

.ny-message-reader__head h2 {
    max-width: 100%;
    margin: 1px 0 0;
    overflow: hidden;
    color: var(--ny-ink);
    font-size: 14px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ny-message-reader__head time {
    margin-top: 1px;
    color: var(--ny-ink-3);
    font-size: 8.5px;
    font-variant-numeric: tabular-nums;
}

.ny-message-reader__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 18px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: var(--ny-ink);
    font-size: 13px;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.ny-message-reader__content > *:first-child { margin-top: 0 !important; }
.ny-message-reader__content > *:last-child { margin-bottom: 0 !important; }
.ny-message-reader__content p { margin: 0 0 13px; }
.ny-message-reader__content h1,
.ny-message-reader__content h2,
.ny-message-reader__content h3,
.ny-message-reader__content h4,
.ny-message-reader__content h5,
.ny-message-reader__content h6 { margin: 20px 0 9px; color: var(--ny-ink); font-size: 1.12em; font-weight: 800; }
.ny-message-reader__content ul,
.ny-message-reader__content ol { margin: 0 0 13px; padding-left: 1.65em; }
.ny-message-reader__content blockquote { margin: 0 0 13px; padding: 9px 12px; border-left: 3px solid var(--ny-yellow); border-radius: 0 10px 10px 0; background: var(--ny-yellow-tint); color: var(--ny-ink-2); }
.ny-message-reader__content code { padding: .12em .36em; border-radius: 5px; background: var(--ny-surface-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 86%; }
.ny-message-reader__content pre { max-width: 100%; margin: 0 0 13px; padding: 12px; overflow-x: auto; border-radius: 11px; background: var(--ny-graphite); color: var(--ny-on-graphite); }
.ny-message-reader__content pre code { padding: 0; background: none; }
.ny-message-reader__content a { color: var(--ny-blue) !important; text-decoration: underline; text-underline-offset: 2px; }
.ny-message-reader__content img { display: block; width: auto; max-width: 100%; max-height: 48dvh; margin: 13px auto; border-radius: 13px; object-fit: contain; cursor: zoom-in; }
.ny-message-reader__content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ny-message-reader__content th,
.ny-message-reader__content td { padding: 7px 9px; border: 1px solid var(--ny-line-strong); white-space: nowrap; }

.ny-message-reader__footer {
    flex: 0 0 auto;
    padding: 8px 12px 0;
    border-top: 1px solid var(--ny-line);
}

.ny-message-reader__footer a {
    min-height: 52px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    background: var(--ny-yellow);
    color: var(--ny-on-yellow) !important;
    font-size: 13px;
    font-weight: 780;
}

.ny-message-reader__footer a .material-icons-outlined {
    font-size: 19px;
}

/* 完整消息中心：状态分段、选择模式、卡片列表和分页保持 APP 操作。 */
.ny-message-main {
    gap: 12px;
}

.ny-message-intro {
    min-height: 76px;
    padding: 14px 15px;
    border: 1px solid var(--ny-line);
    border-radius: var(--ny-radius-l);
    background: linear-gradient(135deg, var(--ny-surface), var(--ny-yellow-tint));
    box-shadow: var(--ny-shadow-1);
}

.ny-message-intro .ny-ticket-screen-kicker {
    display: block;
    margin-bottom: 1px;
}

.ny-message-intro__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ny-message-clear {
    background: var(--ny-surface);
    color: var(--ny-ink-2);
    box-shadow: 0 0 0 1px var(--ny-line);
}

.ny-message-table-wrap .bootstrap-table {
    margin-top: 0;
}

.ny-body [data-ny-list="message"] tbody > tr {
    min-height: 104px;
    padding: 13px 14px;
}

.ny-body [data-ny-list="message"] tbody > tr.is-unread {
    border-color: color-mix(in srgb, var(--ny-yellow) 44%, var(--ny-line));
    background: linear-gradient(100deg, var(--ny-yellow-tint), var(--ny-surface) 70%);
}

.ny-body [data-ny-list="message"] td[data-f="title"] {
    flex: 1 1 calc(100% - 76px);
    min-width: 0;
}

.ny-body [data-ny-list="message"] td[data-f="read_time"] {
    order: 1;
    align-self: flex-start;
    margin-left: auto;
}

.ny-body [data-ny-list="message"] td[data-f="create_time"] {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    padding-left: 17px !important;
    font-size: 9.5px;
}

.ny-body [data-ny-list="message"] td[data-f="create_time"]::before {
    content: "schedule";
    margin-right: 4px;
    color: var(--ny-ink-3);
    font-family: "Material Icons Outlined";
    font-size: 13px;
    vertical-align: -2px;
}

.uc-message-cell {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.uc-message-cell__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--ny-line-strong);
}

.uc-message-cell.is-unread .uc-message-cell__dot {
    background: var(--ny-yellow);
    box-shadow: 0 0 0 4px var(--ny-yellow-tint);
}

.uc-message-cell__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.uc-message-cell__copy strong {
    overflow: hidden;
    color: var(--ny-ink);
    font-size: 13px;
    font-weight: 660;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-message-cell.is-unread .uc-message-cell__copy strong {
    font-weight: 820;
}

.uc-message-cell__copy small {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ny-ink-2);
    font-size: 10.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.uc-message-status {
    min-height: 25px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: var(--ny-surface-3);
    color: var(--ny-ink-3);
    font-size: 9.5px;
    font-weight: 720;
    white-space: nowrap;
}

.uc-message-status .material-icons-outlined {
    font-size: 13px;
}

.uc-message-status.is-unread {
    background: var(--ny-yellow-tint);
    color: var(--ny-warn);
}

.ny-body [data-ny-list="message"] td[data-f="operation"] {
    width: auto;
}

.ny-body [data-ny-list="message"] .a-badge-glass {
    min-height: 36px;
    height: 36px;
    padding-inline: 13px !important;
}

.ny-body [data-ny-list="message"] .a-badge-glass.is-loading {
    opacity: .52;
    pointer-events: none;
}

.ny-message-page .table-switch-state {
    margin-bottom: 9px;
}

:root[data-theme] .ny-body .ny-message-page .table-switch-state button.active {
    border-color: var(--ny-graphite) !important;
    background: var(--ny-graphite) !important;
    color: var(--ny-on-graphite) !important;
}

.ny-message-page .fixed-table-pagination {
    margin-top: 2px;
}

.ny-message-button:focus-visible,
.ny-message-item:focus-visible,
.ny-message-sheet__all:focus-visible,
.ny-message-reader__head button:focus-visible,
.ny-message-reader__footer a:focus-visible,
.ny-message-state button:focus-visible,
.ny-message-clear:focus-visible {
    outline: 2px solid var(--ny-yellow);
    outline-offset: 2px;
}

@media (max-width: 359px) {
    .ny-appbar {
        gap: 4px;
        padding-right: 6px;
        padding-left: 10px;
    }

    .ny-store-appbar .ny-appbar__brand {
        gap: 6px;
    }

    .ny-store-appbar .ny-brand-mark {
        width: 30px;
        height: 30px;
    }

    .ny-store-appbar .ny-appbar__brand small {
        display: none;
    }

    .ny-appbar__actions {
        gap: 0;
    }

    .ny-store-appbar .ny-appbar-notice {
        width: 44px;
        height: 44px;
        margin-left: 0;
        padding: 0;
        justify-content: center;
        background: transparent;
    }

    .ny-appbar-notice > span:last-child {
        display: none;
    }

    .ny-appbar-notice .material-icons-outlined {
        font-size: 22px;
    }

    .ny-message-sheet__head {
        padding-left: 14px;
    }

    .ny-message-sheet__count {
        padding-inline: 7px;
    }

    .ny-message-item {
        padding-inline: 12px;
        gap: 9px;
    }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {

    .ny-body *,
    .ny-body *::before,
    .ny-body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .ny-body .net-loading .loading-view {
        animation: none;
        border-top-color: var(--ny-line-strong);
    }

    .uc-message-btn.is-ringing .uc-message-btn__icon,
    .ny-message-skeleton > i,
    .ny-message-skeleton b,
    .ny-message-skeleton small,
    .ny-message-skeleton em,
    .ny-message-reader {
        animation: none !important;
    }
}
