/**
 * 新用户资料完善弹窗 — 样式（yuyuw-mb-gadget-profile-popup）
 *
 * 设计口径：浅色、单卡居中、留白充足；主色一处（蓝），红只用在「必填」标记上。
 * 所有类名带 ypp- 前缀，避免与主题样式打架；关键属性用 !important 兜住主题的全局 reset。
 *
 * 滚动这一块（本文件最要紧的几条）：
 *   .ypp-overlay  固定铺满、flex 居中，卡片最大高度吃 --ypp-vh（module.js 把真实
 *                 可视高度写进来，比 100vh 靠谱：手机上 100vh 按「工具栏收起来」算）
 *   .ypp-card     flex 纵向、overflow:hidden —— 卡片本身不滚，只负责把中间那块压扁
 *   .ypp-body-wrap flex:1 + min-height:0，唯一的作用是给底部渐隐（.ypp-more）当定位父级
 *   .ypp-body     flex:1 + min-height:0 + overflow-y:auto —— 全卡唯一的滚动容器。
 *                 这两个属性缺一个，它就会被内容撑破（表现：往下滑看得见、往回滑不动）
 *
 * 注意：光靠这几条 CSS 还不够。真正让「往回滑不动」的是**宿主的全局下拉刷新**
 * 抢走了 touchmove 并 preventDefault（见 module.js 顶部说明与 guardPullRefresh）。
 * 样式负责「有东西可滚」，脚本负责「滑动不被抢走」，两者缺一不可。
 *
 * # 各家内核的适配（iOS Safari / 安卓 WebView / 鸿蒙）—— 改动时别顺手删
 *
 *   · 间距一律用 margin，**不用 flex gap**：iOS 14 以下、安卓 7/8 自带 WebView 的
 *     flex 布局不认 gap（那是给 grid 的），一失效所有间距同时消失、元素挤成一堆
 *   · `inset` 简写要 iOS 14.5 / Chrome 87 起才有，四边都单独写了一遍
 *   · 全面屏安全区走 `env(safe-area-inset-*)`，每条都**带层叠回退**：不认 env 的内核
 *     整条声明作废、自动退回上一条，padding 不会变成 0
 *   · 输入框在触屏设备上字号提到 16px —— iOS 对小于 16px 的输入框会在聚焦时把
 *     整页放大，且不还原
 *   · `::placeholder` 另写一份 `-webkit-` 前缀，给安卓 7/8 自带 WebView
 *   · 按钮上 `touch-action: manipulation`，省掉老 iOS 那 300ms 点击延迟
 *   · 日期框各家默认样式差得远，统一拉齐（iOS 会自己塞内边距、值还右对齐）
 */

.ypp-overlay,
.ypp-overlay * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.ypp-overlay {
    position: fixed;
    /* inset 简写要 iOS 14.5 / Chrome 87 起才认；老内核不认就等于没定位，
       遮罩会塌到页面流里。四边单独写，再叠一条 inset 给新内核。 */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    /* 全面屏（iPhone 刘海 / 底部横条、鸿蒙手势条）：让出安全区。
       不支持 env() 的内核整条声明作废，自动退回上一条 18px。 */
    padding: calc(18px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
    background: rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overscroll-behavior: contain;
    opacity: 0;
    transition: opacity .22s ease;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
    /* 横屏时 iOS / 部分安卓内核对「看起来该大一点」的文字自作主张放大，弹窗版式会散 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 弹窗里的按钮不参与双击缩放，省掉 iOS 上那 300ms 的点击延迟 */
.ypp-overlay button {
    touch-action: manipulation;
}

.ypp-overlay.ypp-on {
    opacity: 1;
}

.ypp-card {
    position: relative;
    width: 100%;
    max-width: 348px;
    /* 设备不支持 dvh/自定义属性时退回 100vh */
    max-height: calc(100vh - 36px);
    /* 支持动态视口高度的：优先用 module.js 量的真实可视高度；没有就用 dvh */
    max-height: calc(var(--ypp-vh, 100vh) - 36px);
    /* 全面屏：遮罩已经让出安全区，卡片高度跟着减，
       否则卡片会比可用空间高，底部那排按钮被 home indicator 压住。
       不支持 env() 的内核整条作废，退回上一条。 */
    max-height: calc(var(--ypp-vh, 100vh) - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px 20px 16px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
    transform: translateY(14px) scale(.98);
    opacity: 0;
    transition: transform .26s cubic-bezier(.22, .8, .3, 1), opacity .26s ease;
    overflow: hidden;
}

.ypp-overlay.ypp-on .ypp-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ---------- 关闭按钮 ---------- */

.ypp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.ypp-close:active {
    background: #e2e8f0;
    color: #334155;
}

/* ---------- 头部 ---------- */

.ypp-head {
    padding-right: 34px;
}

.ypp-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: .2px;
}

.ypp-sub {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #7b8798;
}

/* ---------- 必填进度 ---------- */

/* 间距一律用 margin 不用 flex gap：gap 在 iOS 14 以下、安卓 7/8 自带 WebView
   的 flex 布局里不生效（那是给 grid 用的），一失效所有间距同时消失、元素全挤在
   一起。margin 没有这个问题。下面每一处都同理。 */

.ypp-progress {
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.ypp-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.ypp-progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    transition: width .3s ease;
}

.ypp-progress-text {
    flex: none;
    margin-left: 10px;
    font-size: 11.5px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* ---------- 必填说明条 ---------- */

.ypp-notice {
    display: flex;
    align-items: flex-start;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.ypp-notice-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    margin-right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .28);
}

.ypp-notice-text {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #1e3a8a;
    white-space: pre-line;
}

.ypp-notice-left {
    flex: none;
    align-self: center;
    margin-left: 9px;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(239, 68, 68, .26);
}

/* ---------- 表单主体（卡片里唯一的滚动区） ---------- */

/* 头部 / 进度 / 底部固定高度，中间那块吃掉剩余空间 */
.ypp-head,
.ypp-progress,
.ypp-foot {
    flex: none;
}

.ypp-body-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin-top: 14px;
}

.ypp-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100%;
    padding: 3px 3px 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* 下面还有内容时的底部渐隐：给用户一个「还能往下滑」的信号 */
.ypp-more {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 0;
    height: 26px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 72%, #fff 100%);
}

.ypp-body-wrap.ypp-scrollable .ypp-more {
    opacity: 1;
}

.ypp-body-wrap.ypp-at-end .ypp-more {
    opacity: 0;
}

/* ---------- 必填项：右上角角标 + 轻卡片 ---------- */

/* 所有字段统一左右内边距，必填项再叠一层卡片底 —— 这样控件左右边界仍然对齐 */
.ypp-field {
    position: relative;
    margin-bottom: 10px;
    padding: 0 12px;
}

.ypp-field[data-ypp-req="1"] {
    margin-bottom: 14px;
    padding: 15px 12px 13px;
    border: 1px solid #e0ebfc;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.ypp-corner {
    position: absolute;
    top: -9px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    padding: 2px 9px 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: .4px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(239, 68, 68, .3);
}

.ypp-corner-dot {
    flex: none;
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: .95;
}

.ypp-corner:not(.ypp-corner-done) .ypp-corner-dot {
    animation: ypp-blink 1.5s ease-in-out infinite;
}

.ypp-corner-done {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 10px rgba(16, 185, 129, .28);
}

@keyframes ypp-blink {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

/* 必填没填就点保存：抖一下告诉用户「是这里」 */
.ypp-shake {
    animation: ypp-shake .5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes ypp-shake {
    10%, 90% { transform: translateX(-1.5px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}

.ypp-avatar-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ypp-avatar-row[data-ypp-req="1"] {
    margin-bottom: 14px;
    padding: 15px 12px;
    border: 1px solid #e0ebfc;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.ypp-avatar {
    position: relative;
    flex: none;
    width: 68px;
    height: 68px;
    margin-right: 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    cursor: pointer;
    overflow: visible;
}

.ypp-avatar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed #cbd5e1;
    transition: border-color .2s ease;
}

.ypp-avatar-has::after {
    border: 0;
}

.ypp-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #eef2f7;
}

.ypp-avatar-cam {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, .4);
}

.ypp-avatar-loading .ypp-avatar-cam {
    animation: ypp-pulse 1s ease-in-out infinite;
}

@keyframes ypp-pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

.ypp-avatar-meta {
    min-width: 0;
}

.ypp-hint {
    margin: 5px 0 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #94a3b8;
}

.ypp-field:last-child {
    margin-bottom: 4px;
}

.ypp-label-line {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
}

.ypp-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.ypp-tag {
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.6;
}

.ypp-tag-req {
    background: #fef2f2;
    color: #ef4444;
}

.ypp-tag-req::before {
    content: "*";
    margin-right: 2px;
    font-weight: 700;
}

/* ---------- 控件 ---------- */

.ypp-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    line-height: 42px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

/* 日期框在各家内核里长得都不一样：iOS 会自己往左塞内边距、值还右对齐，
   安卓 WebView 给的又是另一套默认样式。统一成和文本输入一致的观感。 */
.ypp-input[type="date"] {
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}
.ypp-input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}
.ypp-input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: 0;
}

.ypp-textarea {
    height: auto;
    min-height: 76px;
    padding: 11px 13px;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
}

.ypp-input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

/*
 * iOS Safari 有一条硬规则：输入框字号小于 16px 时，聚焦会自作主张把整页放大，
 * 而且不会自动缩回去 —— 弹窗里的输入框几乎全是 14px，必踩。
 * 触屏设备统一提到 16px；鼠标设备保持 14px 的精致排版。
 * `hover/pointer` 查询老内核不认，整块忽略 → 保持 14px（那些内核本来也不缩放）。
 */
@media (hover: none) and (pointer: coarse) {
    .ypp-input {
        font-size: 16px;
    }
}

.ypp-input::placeholder {
    color: #b3bdca;
}

/* 安卓 7/8 自带 WebView 只认前缀写法，认不得标准 ::placeholder */
.ypp-input::-webkit-input-placeholder {
    color: #b3bdca;
}

.ypp-seg {
    display: flex;
}

.ypp-seg-item {
    flex: 1;
    height: 40px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .18s ease;
}

.ypp-seg-item + .ypp-seg-item {
    margin-left: 8px;
}

.ypp-seg-item.ypp-seg-on {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, .08);
    color: #2563eb;
    font-weight: 500;
}

/* ---------- 手机号 / 邮箱：填号码 → 发码 → 绑定 ---------- */

.ypp-bind .ypp-code-row,
.ypp-pwd .ypp-input + .ypp-input,
.ypp-pwd .ypp-code-row + .ypp-input {
    margin-top: 8px;
}

.ypp-code-row {
    display: flex;
}

.ypp-code-row .ypp-input {
    flex: 1;
}

.ypp-code-btn {
    flex: none;
    margin-left: 8px;
    padding: 0 12px;
    height: 42px;
    border: 1px solid rgba(59, 130, 246, .35);
    border-radius: 12px;
    background: rgba(59, 130, 246, .08);
    color: #2563eb;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .18s ease, background .18s ease;
}

.ypp-code-btn:disabled {
    opacity: .55;
    cursor: default;
}

.ypp-bind .ypp-hint,
.ypp-oauth .ypp-hint,
.ypp-pwd .ypp-pwd-tip {
    margin-top: 7px;
}

/* ---------- 手机 / 邮箱已绑定：只给状态 + 去哪儿换绑 ---------- */

.ypp-bind-done {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 13px;
    border: 1px dashed #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
}

.ypp-bind-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    color: #475569;
}

.ypp-link {
    flex: none;
    margin-left: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 12.5px;
    cursor: pointer;
}

/* ---------- 第三方账号：去绑定 / 已绑定 ---------- */

.ypp-oauth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ypp-oauth-state {
    font-size: 13.5px;
    color: #64748b;
}

.ypp-oauth-state.ypp-oauth-on {
    color: #10b981;
    font-weight: 500;
}

.ypp-oauth-btn {
    flex: none;
    margin-left: 10px;
    height: 36px;
    padding: 0 16px;
    border-radius: 11px;
    background: rgba(59, 130, 246, .09);
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
}

.ypp-oauth-qr {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    background: #fbfdff;
    text-align: center;
}

.ypp-qr-img {
    display: block;
    width: 168px;
    height: 168px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: #fff;
}

.ypp-qr-hint {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
}

.ypp-qr-ok {
    color: #10b981;
    font-weight: 500;
}

.ypp-qr-fail {
    color: #ef4444;
}

/* ---------- 底部 ---------- */

.ypp-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.ypp-foot-meta {
    min-height: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.ypp-foot-warn {
    display: block;
    margin-bottom: 3px;
    font-size: 11.5px;
    font-weight: 500;
    color: #ef4444;
}

.ypp-foot-warn[hidden] {
    display: none;
}

.ypp-timer {
    font-size: 11.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.ypp-actions {
    display: flex;
    align-items: center;
}

.ypp-btn {
    height: 46px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .18s ease, transform .12s ease, background .18s ease;
}

.ypp-btn:active {
    transform: scale(.985);
}

.ypp-btn-ghost {
    flex: none;
    margin-right: 10px;
    padding: 0 16px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
}

.ypp-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.ypp-btn-primary:disabled {
    opacity: .72;
}

.ypp-btn-loading {
    opacity: .72;
}

/* ---------- 完成态 ---------- */

.ypp-card-done {
    padding: 38px 26px 34px;
}

.ypp-done {
    text-align: center;
}

.ypp-done .ypp-title {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.ypp-done .ypp-sub {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.ypp-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
    animation: ypp-pop .36s cubic-bezier(.2, .9, .3, 1.35);
}

@keyframes ypp-pop {
    0% { transform: scale(.5); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.ypp-done-btn {
    margin-top: 26px;
    min-width: 148px;
    min-height: 44px;
    padding: 0 28px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
}

/* ---------- 轻提示 ---------- */

.ypp-toast {
    position: absolute;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 8px);
    max-width: 84%;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .86);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.ypp-toast-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ypp-toast-ok {
    background: rgba(22, 163, 74, .92);
}

/* ---------- 深色主题适配 ---------- */

@media (prefers-color-scheme: dark) {
    body.ls-dark .ypp-card,
    html.ls-dark .ypp-card,
    .ls-dark .ypp-card {
        background: #1e293b;
    }

    .ls-dark .ypp-title { color: #f8fafc; }
    .ls-dark .ypp-done .ypp-sub { color: #94a3b8; }
    .ls-dark .ypp-label { color: #cbd5e1; }
    .ls-dark .ypp-input {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
    .ls-dark .ypp-close { background: #334155; color: #cbd5e1; }
    .ls-dark .ypp-btn-ghost { background: #334155; color: #cbd5e1; }
    .ls-dark .ypp-avatar-row,
    .ls-dark .ypp-foot { border-color: #334155; }

    .ls-dark .ypp-more {
        background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, .92) 72%, #1e293b 100%);
    }

    .ls-dark .ypp-bind-done {
        border-color: #334155;
        background: #0f172a;
    }
    .ls-dark .ypp-bind-value { color: #cbd5e1; }
    .ls-dark .ypp-oauth-qr {
        border-color: #334155;
        background: #16202f;
    }

    /* 必填卡片与角标在深色下换一套底色，别让浅蓝底把白字压糊 */
    .ls-dark .ypp-field[data-ypp-req="1"],
    .ls-dark .ypp-avatar-row[data-ypp-req="1"] {
        border-color: #274060;
        background: linear-gradient(180deg, #17233a 0%, #16202f 100%);
    }
    .ls-dark .ypp-tag { background: #334155; color: #94a3b8; }
    .ls-dark .ypp-tag-req { background: rgba(239, 68, 68, .16); color: #fca5a5; }

    .ls-dark .ypp-notice {
        border-color: #274060;
        background: linear-gradient(135deg, #17233a 0%, #16202f 100%);
    }
    .ls-dark .ypp-notice-text { color: #bfdbfe; }
}
