/* ============================================================
   css/panels/panels-points.css — 星光中心

   物件＝一只打开的首饰匣：外沿包金、内衬微微凹陷、三格嵌在里面。
   颜色一律读全局主题令牌（--bg-primary / --surface-solid / --text-* / --rose / --gold /
   --shadow-*），换主题自动跟着变，这份文件里不写死任何配色。

   硬约束：
     ① 文案只出现「星光 / 同行」，任何跟钱有关的字眼都不出现；
     ② 不写死高度：滚动交给外壳 .ui3-work-inner / .mysec-body，本文件只给内边距；
     ③ 触摸目标本体 ≥44；
     ④ 只动 transform / opacity / height，禁 filter: blur()，不放纯黑阴影；
     ⑤ 360 / 390 / 430 三档都不许横向溢出，<380 收紧；
     ⑥ 刷新只改文字与高度，绝不重建节点（DOM 防闪铁律）。
   ============================================================ */

/* 令牌同时挂在正文、内页、提示条上：内页与提示条是挂 #app 的兄弟节点，
   不在 .pts-page 里，缺了这一步它们会全部退回兜底色 */
.pts-page,
.pts-sheet,
.pts-tip {
    /* 浅色下用主题主色淡影，深色下翻成纯黑——否则深色主题里凹陷会「凸」出来 */
    --sl-shade: color-mix(in srgb, var(--rose-dark, #B89468) 30%, transparent);
    --sl-shade-soft: color-mix(in srgb, var(--rose-dark, #B89468) 15%, transparent);
    --sl-hilite: rgba(255, 255, 255, .92);
    --sl-ease: cubic-bezier(.16, 1, .3, 1);
    --sl-ease-soft: cubic-bezier(.4, 0, .2, 1);
}
[data-theme-mode="dark"] .pts-page,
[data-theme-mode="dark"] .pts-sheet,
[data-theme-mode="dark"] .pts-tip {
    --sl-shade: rgba(0, 0, 0, .55);
    --sl-shade-soft: rgba(0, 0, 0, .34);
    --sl-hilite: rgba(255, 255, 255, .07);
}

/* 金色提亮（只在这一页：正文 / 内页 / 提示条，别的页面一个字都不动）
   甲方 2026-11：「整个页面通用的那个金色，感觉很暗沉」。
   --pts-gold-src 取的是当前主题的 --gold，所以换主题照样跟着变，不是写死色值。 */
:root {
    --pts-gold-src: var(--gold, #C4A86A);
    --pts-gold-dark-src: var(--gold-dark, #A89050);
}
.pts-page,
.pts-sheet,
.pts-tip {
    /* 亮金：描边、光柱、细线、渐变高光（甲方 2026-11 二次反馈「还是太暗淡、像土棕色」
       → 不再往白色里兑，改成往蜜金/香槟金提：亮度上去、棕味下来） */
    --gold: color-mix(in srgb, var(--pts-gold-src) 40%, #FFF6E2);
    /* 深金：只给文字用。保住白底可读性，但混的是暖赭金而不是灰，去掉“土”味 */
    --gold-dark: color-mix(in srgb, var(--pts-gold-src) 86%, #A87D3A);
    --gold-light: color-mix(in srgb, #FFE6AE 26%, transparent);
}
/* 深色主题本来就偏亮，提亮幅度收一半，避免糊成一片白 */
[data-theme-mode="dark"] .pts-page,
[data-theme-mode="dark"] .pts-sheet,
[data-theme-mode="dark"] .pts-tip {
    --gold: color-mix(in srgb, var(--pts-gold-src) 58%, #FFF6E2);
    --gold-dark: color-mix(in srgb, var(--pts-gold-src) 90%, #C79A4E);
}
.pts-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 8px;
}

/* ===== 一、卷首 ===== */
.pts-hero {
    position: relative;
    text-align: center;
    padding: 2px 2px 0;
    overflow: hidden;
}
.pts-kicker {
    position: relative;
    font-family: var(--font-display, Georgia, serif);
    font-size: 9.5px;
    letter-spacing: .42em;
    text-indent: .42em;
    text-transform: uppercase;
    color: var(--gold-dark, #A89050);
}
.pts-title {
    position: relative;
    margin: 11px 0 0;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(29px, 8.2vw, 33px);
    font-weight: 400;
    letter-spacing: .2em;
    text-indent: .2em;
    line-height: 1.3;
    padding: 2px 0 0;
    background: linear-gradient(103deg,
        var(--gold-dark, #A89050) 0%,
        var(--gold, #C4A86A) 30%,
        color-mix(in srgb, var(--gold, #C4A86A) 52%, #fff) 50%,
        var(--gold, #C4A86A) 70%,
        var(--gold-dark, #A89050) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.pts-fleuron {
    display: block;
    width: 118px;
    height: 13px;
    margin: 9px auto 0;
    color: var(--gold, #C4A86A);
}
.pts-lede {
    position: relative;
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.85;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .14em;
}

/* ===== 二、星光匣 ===== */
.pts-casket { position: relative; padding-bottom: 11px; }
.pts-casket::after {
    content: "";
    position: absolute;
    left: 9px; right: 9px; bottom: 0;
    height: 11px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--surface-solid, #fff) 62%, var(--gold, #C4A86A) 38%) 0%,
        color-mix(in srgb, var(--surface-solid, #fff) 40%, var(--gold, #C4A86A) 60%) 52%,
        color-mix(in srgb, var(--surface-solid, #fff) 26%, var(--gold-dark, #A89050) 74%) 100%);
    box-shadow: var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1)),
                inset 0 1px 0 var(--sl-hilite);
}
.pts-rim {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    padding: 7px;
    background: linear-gradient(158deg,
        var(--surface-solid, #fff) 0%,
        color-mix(in srgb, var(--surface-solid, #fff) 93%, var(--gold, #C4A86A) 7%) 34%,
        color-mix(in srgb, var(--surface-solid, #fff) 86%, var(--gold, #C4A86A) 14%) 70%,
        color-mix(in srgb, var(--surface-solid, #fff) 78%, var(--gold, #C4A86A) 22%) 100%);
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 42%, transparent);
    box-shadow:
        inset 0 1px 0 var(--sl-hilite),
        inset 0 -1px 2px var(--sl-shade-soft),
        inset 1px 0 0 var(--sl-hilite),
        inset -1px 0 0 var(--sl-shade-soft),
        inset 0 0 0 3px color-mix(in srgb, var(--surface-solid, #fff) 82%, transparent),
        inset 0 0 0 4px color-mix(in srgb, var(--gold, #C4A86A) 22%, transparent),
        var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07)),
        var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1));
}
.pts-corner {
    position: absolute;
    width: 13px; height: 13px;
    border: 1.3px solid var(--gold, #C4A86A);
    opacity: .92;
    pointer-events: none;
}
.pts-corner.tl { left: 2px; top: 2px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.pts-corner.tr { right: 2px; top: 2px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.pts-corner.bl { left: 2px; bottom: 2px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.pts-corner.br { right: 2px; bottom: 2px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.pts-pad {
    position: relative;
    border-radius: 12px;
    padding: 11px 10px;
    overflow: hidden;
    background: radial-gradient(135% 92% at 50% -14%,
        var(--surface-solid, #fff) 0%,
        color-mix(in srgb, var(--surface-solid, #fff) 93%, var(--rose, #C8A87C) 7%) 40%,
        color-mix(in srgb, var(--surface-solid, #fff) 82%, var(--rose, #C8A87C) 18%) 76%,
        color-mix(in srgb, var(--surface-solid, #fff) 72%, var(--rose, #C8A87C) 28%) 100%);
    box-shadow:
        inset 0 5px 16px var(--sl-shade),
        inset 0 1px 2px var(--sl-shade),
        inset 0 -2px 6px var(--sl-hilite),
        inset 0 0 0 1px color-mix(in srgb, var(--gold, #C4A86A) 18%, transparent);
}
.pts-pad::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: radial-gradient(circle, var(--sl-hilite) 0 .8px, transparent 1.4px);
    background-size: 4px 4px;
    opacity: .3;
}

.pts-tray {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(6px, 2vw, 9px);
}
.pts-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: clamp(118px, 32vw, 138px);
    padding: 9px 4px 11px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    /* 长按中在格子上滑动不许被当成翻页 / 滚动：那样浏览器会发 pointercancel，长按当场断（甲方 2026-11） */
    touch-action: none;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg-chat, #FDFAF6) 84%, var(--gold, #C4A86A) 16%) 0%,
        color-mix(in srgb, var(--surface-solid, #fff) 93%, var(--gold, #C4A86A) 7%) 42%,
        var(--surface-solid, #fff) 100%);
    box-shadow:
        inset 0 4px 10px var(--sl-shade),
        inset 0 1px 1px var(--sl-shade),
        inset 2px 0 5px var(--sl-shade-soft),
        inset -2px 0 5px var(--sl-shade-soft),
        inset 0 -1px 0 var(--sl-hilite),
        0 1px 0 var(--sl-hilite);
}
/* 按下 / 松手一律不改这一格的任何样式（甲方 2026-11：「松手时字和里面的框都闪」）。
   这里原来有一层「按住才浮起来」的内金光，淡入淡出都要把这一格连着 6 层内阴影重画一遍，
   在手机上就是按下闪一下、松手闪一下。反馈交给声音和数字本身开始动，屏幕上一个像素都不动。 */

.pts-slot-name,
.pts-slot-num,
.pts-slot-unit { position: relative; z-index: 2; }
.pts-slot-name {
    font-size: 10px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .12em;
    text-indent: .12em;
    margin-bottom: auto;
    padding-top: 2px;
}
.pts-slot-num {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(21px, 6.2vw, 25px);
    line-height: 1;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 var(--sl-hilite);
    /* 数字只换字，不抖宽度：给个最小宽度 + 居中，位数变化时这一行不会左右跳（甲方「字在闪」） */
    display: inline-block;
    min-width: 2.6ch;
    text-align: center;
}
.pts-slot-unit {
    font-size: 9.5px;
    /* 「星光」两个字压在金色光柱上，用次要色 + 一道微高光才读得清（深色下光柱更亮） */
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    text-shadow: 0 1px 0 var(--sl-hilite);
    margin-top: 5px;
    letter-spacing: .1em;
    text-indent: .1em;
}

/* 光柱：高度＝余额（整块往下挪 --fall），颜色＝主题金 */
.pts-dust {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 100%;
    /* 只动 transform：这是独立合成层，长按每几十毫秒落一次都由 GPU 采样，不重排也不重绘。
       以前是每帧改 height＝每帧把这一格连着内阴影重画一遍，手机上一掉帧就是「下落时闪」。 */
    transform: translateY(var(--fall, 60%));
    /* 不写「常驻合成层提示」（第八轮取证）：安卓 PWA 上常驻贴图 + 圆角渐变 + 每几十毫秒位移，
       会让这一层反复重建贴图，肉眼就是「字和里面的框一起闪」。 */
    /* 顶端 18% 做柔光，往下到柱脚几乎均匀：整块下移时光柱顶边始终是它自己的圆顶 */
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--gold, #C4A86A) 40%, transparent) 0%,
        color-mix(in srgb, var(--gold, #C4A86A) 64%, transparent) 18%,
        color-mix(in srgb, var(--gold, #C4A86A) 66%, transparent) 100%);
    border-radius: 46% 46% 0 0 / 12px 12px 0 0;
    pointer-events: none;
    animation: ptsTwinkle 6.5s var(--sl-ease-soft) infinite;
}
.pts-dust::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(circle, color-mix(in srgb, var(--gold-light, rgba(196, 168, 106, .18)) 165%, transparent) 0 1px, transparent 1.6px),
        radial-gradient(circle, color-mix(in srgb, var(--gold, #C4A86A) 85%, transparent) 0 1.2px, transparent 1.9px);
    background-size: 24px 21px, 37px 31px;
    background-position: 3px 4px, 11px 14px;
    opacity: .7;
}
@keyframes ptsTwinkle {
    0%, 100% { opacity: .76; }
    50% { opacity: 1; }
}

/* 长按时往上升的星光（甲方 2026-11：按住要有星星光点，才够酷炫）：
   两层贴图错开速度往上飘，只在按下时跑，松手淡掉。
   只有 transform + opacity 在动，不新建节点、不碰这一格的框和字。 */
.pts-stars {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .55s var(--sl-ease-soft);
}
.pts-stars.on {
    opacity: 1;
    transition-duration: .16s;
}
.pts-stars::before,
.pts-stars::after {
    content: "";
    position: absolute;
    left: -14%; right: -14%;
    top: 0; height: 200%;
    background-image:
        radial-gradient(circle, var(--gold-light, rgba(214, 188, 126, .8)) 0 1.4px, transparent 2.1px),
        radial-gradient(circle, var(--gold, #C4A86A) 0 1.1px, transparent 1.7px);
    background-size: 19px 23px, 31px 37px;
    background-position: 4px 6px, 13px 17px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 60%, transparent 94%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 60%, transparent 94%);
    opacity: .8;
    animation: ptsStarsRise 1.7s linear infinite;
    animation-play-state: paused;
}
.pts-stars::after {
    background-size: 29px 41px;
    background-position: 9px 21px;
    opacity: .5;
    animation: ptsStarsRise2 2.6s linear infinite;
    animation-play-state: paused;
}
.pts-stars.on::before { animation-play-state: running; }
.pts-stars.on::after { animation-play-state: running; }
@keyframes ptsStarsRise {
    from { transform: translateY(0); }
    to { transform: translateY(-23px); }
}
@keyframes ptsStarsRise2 {
    from { transform: translateY(0); }
    to { transform: translateY(-41px); }
}



/* ===== 三、不够时自动补 + 直接填数字 ===== */
.pts-auto {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 3px;
}
.pts-auto-label {
    font-size: 12px;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    letter-spacing: .04em;
}
.pts-q {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    background: none;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .2s var(--sl-ease-soft), color .2s var(--sl-ease-soft);
}
.pts-q[aria-expanded="true"] {
    border-color: var(--gold, #C4A86A);
    color: var(--gold-dark, #A89050);
}
.pts-sw {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
    width: 44px; height: 26px;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-muted, rgba(34, 28, 20, .32)) 44%, var(--surface-solid, #fff));
    box-shadow: inset 0 2px 4px var(--sl-shade-soft);
    transition: background .28s var(--sl-ease-soft);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.pts-sw i {
    position: absolute;
    left: 2px; top: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff,
        color-mix(in srgb, var(--surface-solid, #fff) 88%, var(--gold, #C4A86A) 12%));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07)),
                inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .28s var(--sl-ease);
}
.pts-sw[aria-checked="true"] {
    background: linear-gradient(180deg, var(--gold, #C4A86A), var(--gold-dark, #A89050));
    box-shadow: inset 0 2px 4px color-mix(in srgb, var(--gold-dark, #A89050) 55%, transparent);
}
.pts-sw[aria-checked="true"] i { transform: translateX(18px); }

.pts-auto-note {
    margin: -6px 3px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--gold, #C4A86A) 7%, var(--surface-solid, #fff));
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 26%, transparent);
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    grid-template-rows: 0fr;
    /* 收起：不占高度、也不留空行 */
    display: none;
}
.pts-auto-note.on { display: block; animation: ptsNoteIn .3s var(--sl-ease) both; }
.pts-auto-note b {
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-weight: 400;
}
@keyframes ptsNoteIn {
    from { opacity: 0; transform: translate3d(0, -5px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 直接填数字：两格各填一个数，一次分好（甲方 2026-11：别再「填一个数 + 点一次按钮」来回倒） */
.pts-manual {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 12px 10px;
    border-radius: 11px;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
}
.pts-manual-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 0;
}
.pts-manual-row + .pts-manual-row {
    border-top: 1px solid var(--border-faint, rgba(180, 170, 155, .12));
}
.pts-manual-t {
    flex: 0 0 auto;
    width: 4.8em;
    font-size: 11.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .02em;
}
.pts-manual-u {
    flex: 0 0 auto;
    font-size: 10.5px;
    color: var(--text-muted, rgba(34, 28, 20, .32));
    letter-spacing: .06em;
}
.pts-manual-in {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border, rgba(180, 170, 155, .22));
    border-radius: 0;
    background: none;
    outline: none;
    padding: 5px 2px;
    font-family: var(--font-display, Georgia, serif);
    font-size: 16px;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    text-align: left;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    appearance: none;
}
.pts-manual-in::placeholder { color: var(--text-muted, rgba(34, 28, 20, .32)); }
.pts-manual-in:focus { border-bottom-color: var(--gold, #C4A86A); }
.pts-manual-ft {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
.pts-manual-left {
    min-width: 0;
    font-size: 10.5px;
    color: var(--text-muted, rgba(34, 28, 20, .38));
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pts-manual-left.over { color: var(--danger, #C2766A); }
.pts-manual-go {
    flex: 0 0 auto;
    min-width: 62px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 55%, transparent);
    background: color-mix(in srgb, var(--gold, #C4A86A) 8%, var(--surface-solid, #fff));
    color: var(--gold-dark, #A89050);
    font-family: inherit;
    font-size: 11.5px;
    letter-spacing: .06em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: transform .16s var(--sl-ease);
}
.pts-manual-go:active { transform: scale(.95); }

/* ===== 四、区块标题 ===== */
.pts-sec { display: flex; flex-direction: column; gap: 11px; }
.pts-sec-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 3px;
    gap: 10px;
}
.pts-sec-title {
    font-family: var(--font-display, Georgia, serif);
    font-size: 14.5px;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    letter-spacing: .24em;
    text-indent: .24em;
}
.pts-more {
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 10.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .1em;
    padding: 0 0 2px;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border, rgba(180, 170, 155, .22));
    border-radius: 0;
    outline: none;
    background: none;
    cursor: pointer;
}
.pts-more.plain { border-bottom: none; cursor: default; }

/* 标题右侧那颗问号：说明折在这里（音色卡用），点一下在下面就地展开 */
.pts-ask {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 42%, transparent);
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .2s var(--sl-ease-soft), background .2s var(--sl-ease-soft), transform .16s var(--sl-ease);
}
.pts-ask i {
    font-family: var(--font-display, Georgia, serif);
    font-style: italic;
    font-size: 11.5px;
    line-height: 1;
    color: var(--gold-dark, #A89050);
    transform: translateY(-.5px);
}
.pts-ask:active { transform: scale(.88); }
.pts-ask.on {
    border-color: color-mix(in srgb, var(--gold, #C4A86A) 72%, transparent);
    background: color-mix(in srgb, var(--gold, #C4A86A) 12%, transparent);
}

/* ===== 四·一、音色卡票券（票根 + 数字 + 撕线 + 等宽两个动作） ===== */
.pts-vcard {
    position: relative;
    padding: 15px 15px 13px;
    border-radius: 15px;
    background:
        radial-gradient(130% 100% at 6% -20%, var(--surface-solid, #fff) 0%, transparent 60%),
        linear-gradient(158deg,
            var(--surface-solid, #fff) 0%,
            color-mix(in srgb, var(--surface-solid, #fff) 92%, var(--rose, #C8A87C) 8%) 62%,
            color-mix(in srgb, var(--surface-solid, #fff) 84%, var(--rose, #C8A87C) 16%) 100%);
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 30%, transparent);
    box-shadow:
        inset 0 0 0 3px color-mix(in srgb, var(--surface-solid, #fff) 70%, transparent),
        var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
}
.pts-vcard-top { display: flex; align-items: center; gap: 13px; }
/* 票根：叠着的两张小卡（后一张向右下露一线边），卡面上两行小字 + 一道齿孔 */
.pts-vcard-stub {
    position: relative;
    flex: 0 0 auto;
    width: 41px;
    height: 30px;
}
.pts-vcard-stub::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 38px; height: 27px;
    border-radius: 5px;
    transform: translate(3px, 3px);
    background: linear-gradient(150deg, #fff, color-mix(in srgb, var(--gold, #C4A86A) 11%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #C4A86A) 30%, transparent);
}
.pts-vcard-stub i {
    position: absolute;
    left: 0; top: 0;
    width: 38px; height: 27px;
    border-radius: 5px;
    background:
        linear-gradient(color-mix(in srgb, var(--gold, #C4A86A) 40%, transparent),
                        color-mix(in srgb, var(--gold, #C4A86A) 40%, transparent)) 6px 10px / 15px 1.5px no-repeat,
        linear-gradient(color-mix(in srgb, var(--gold, #C4A86A) 26%, transparent),
                        color-mix(in srgb, var(--gold, #C4A86A) 26%, transparent)) 6px 15px / 9px 1.5px no-repeat,
        linear-gradient(150deg, #fff, color-mix(in srgb, var(--gold, #C4A86A) 22%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #C4A86A) 54%, transparent);
}
.pts-vcard-stub i::after {
    content: "";
    position: absolute;
    right: 8px; top: 5px; bottom: 5px;
    border-left: 1px dashed color-mix(in srgb, var(--gold, #C4A86A) 52%, transparent);
}
.pts-vcard-num {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.pts-vcard-num b {
    font-family: var(--font-display, Georgia, serif);
    font-size: 25px;
    line-height: 1;
    font-weight: 400;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-variant-numeric: tabular-nums;
}
.pts-vcard-num i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
}
.pts-vcard-used {
    font-style: normal;
    margin-left: 4px;
    font-size: 10px;
    letter-spacing: .05em;
    color: var(--text-muted, rgba(34, 28, 20, .32));
    white-space: nowrap;
}
.pts-vcard-used:empty { display: none; }
.pts-vcard-tear {
    height: 0;
    margin: 12px 2px 11px;
    border-top: 1px dashed color-mix(in srgb, var(--gold, #C4A86A) 24%, transparent);
}
.pts-vcard-act { display: flex; gap: 9px; }
.pts-vcard-act .pts-chip {
    flex: 1 1 0;
    min-height: 36px;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: .06em;
}
/* 问号展开的说明：就地长出来，不换页也不开浮层 */
.pts-vcard-tip {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0 3px;
    transition: max-height .34s var(--sl-ease), opacity .26s var(--sl-ease-soft), margin-top .3s var(--sl-ease);
}
.pts-vcard-tip.on { max-height: 240px; opacity: 1; margin-top: 4px; }
.pts-vcard-tip p {
    position: relative;
    margin: 0;
    padding-left: 11px;
    font-size: 11px;
    line-height: 1.95;
    letter-spacing: .02em;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
}
.pts-vcard-tip p::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gold, #C4A86A) 56%, transparent);
}

/* ===== 五、同行 ===== */
.pts-pass {
    position: relative;
    padding: 17px 17px 15px;
    border-radius: 13px;
    overflow: hidden;
    background:
        radial-gradient(120% 92% at 8% -10%, var(--surface-solid, #fff) 0%, transparent 62%),
        linear-gradient(152deg,
            var(--surface-solid, #fff) 0%,
            color-mix(in srgb, var(--surface-solid, #fff) 90%, var(--rose, #C8A87C) 10%) 54%,
            color-mix(in srgb, var(--surface-solid, #fff) 80%, var(--rose, #C8A87C) 20%) 100%);
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 38%, transparent);
    box-shadow:
        inset 0 0 0 3px color-mix(in srgb, var(--surface-solid, #fff) 74%, transparent),
        inset 0 0 0 4px color-mix(in srgb, var(--gold, #C4A86A) 18%, transparent),
        var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1));
}
.pts-pass::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--gold, #C4A86A), var(--gold-dark, #A89050));
}
.pts-seal {
    position: absolute;
    right: 15px; top: 15px;
    width: 44px; height: 44px;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-indent: .1em;
    /* 这枚印章是全页唯一留深金的地方：底色一淡，白字就糊了（用主题原色，不跟着提亮） */
    color: color-mix(in srgb, #fff 88%, var(--pts-gold-src, #C4A86A));
    background: radial-gradient(circle at 32% 24%,
        color-mix(in srgb, var(--pts-gold-src, #C4A86A) 62%, #fff) 0%,
        var(--pts-gold-src, #C4A86A) 46%,
        var(--pts-gold-dark-src, #A89050) 100%);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07)),
                inset 0 1px 2px rgba(255, 255, 255, .6),
                inset 0 -3px 5px rgba(0, 0, 0, .16);
}
.pts-seal::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
}
.pts-pass-l { position: relative; z-index: 2; padding-right: 54px; }
.pts-pass-state {
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--gold-dark, #A89050);
    margin-bottom: 8px;
}
.pts-pass-title {
    font-size: 16px;
    letter-spacing: .05em;
    color: var(--text-primary, rgba(34, 28, 20, .92));
}
.pts-pass-title em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    margin-left: 8px;
    letter-spacing: .06em;
}
.pts-pass-days {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.pts-pass-days b {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(25px, 6.8vw, 29px);
    line-height: 1;
    font-weight: 400;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-variant-numeric: tabular-nums;
}
.pts-pass-days span {
    font-size: 10.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .08em;
}
.pts-pass-bar {
    margin-top: 12px;
    height: 3px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--gold, #C4A86A) 18%, transparent);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.pts-pass-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transform-origin: left;
    background: linear-gradient(90deg, var(--gold-dark, #A89050), var(--gold, #C4A86A));
    transition: width .6s var(--sl-ease);
}
/* 同行卡底栏：左边一颗小药丸「续上同行」，右边一行文字「看看同行有什么 ›」 */
.pts-pass-ft {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--border-faint, rgba(180, 170, 155, .1));
}
/* 小药丸：看着只有 28 高，实际点得到的范围上下各撑 9px（≥44），不靠体积取胜 */
.pts-pass-buy {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 46%, transparent);
    background: color-mix(in srgb, var(--gold, #C4A86A) 9%, transparent);
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .1em;
    text-indent: .1em;
    color: var(--gold-dark, #A89050);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: transform .18s var(--sl-ease), background .2s var(--sl-ease), border-color .2s var(--sl-ease-soft);
}
.pts-pass-buy::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: -9px;
    bottom: -9px;
    border-radius: 999px;
}
.pts-pass-buy[hidden] { display: none; }
.pts-pass-buy:active {
    transform: scale(.95);
    background: color-mix(in srgb, var(--gold, #C4A86A) 18%, transparent);
}
@media (hover: hover) {
    .pts-pass-buy:hover {
        border-color: color-mix(in srgb, var(--gold, #C4A86A) 70%, transparent);
        background: color-mix(in srgb, var(--gold, #C4A86A) 15%, transparent);
    }
}
.pts-pass-more {
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
    margin: 0;
    padding: 8px 0;
    border: none;
    border-radius: 0;
    background: none;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    font-family: inherit;
    font-size: 11.5px;
    color: var(--gold-dark, #A89050);
    letter-spacing: .08em;
    cursor: pointer;
}
.pts-pass-more:active { opacity: .62; }

/* 同行没开的时候 */
.pts-pass.is-free .pts-seal {
    background: radial-gradient(circle at 32% 24%,
        color-mix(in srgb, var(--surface-solid, #fff) 84%, var(--text-muted, rgba(34, 28, 20, .32)) 16%),
        color-mix(in srgb, var(--surface-solid, #fff) 70%, var(--text-muted, rgba(34, 28, 20, .32)) 30%));
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07)),
                inset 0 0 0 1px var(--border, rgba(180, 170, 155, .22));
}
.pts-pass.is-free::before { background: var(--border, rgba(180, 170, 155, .22)); }

/* ===== 六、邀请（可折叠） ===== */
.pts-fold {
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
}
.pts-fold-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-size: 13px;
    letter-spacing: .06em;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.pts-fold-hd .hint {
    flex: 0 0 auto;
    font-size: 10.5px;
    color: var(--gold-dark, #A89050);
    letter-spacing: .02em;
}
.pts-chev {
    margin-left: auto;
    flex: 0 0 auto;
    width: 7px; height: 7px;
    border-right: 1.2px solid var(--gold-dark, #A89050);
    border-bottom: 1.2px solid var(--gold-dark, #A89050);
    transform: rotate(45deg) translateY(-2px);
    opacity: .85;
    transition: transform .32s var(--sl-ease);
}
.pts-fold.on .pts-chev { transform: rotate(-135deg) translateY(-2px); }
.pts-fold-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .36s var(--sl-ease);
}
.pts-fold.on .pts-fold-body { grid-template-rows: 1fr; }
.pts-fold-body > div { overflow: hidden; }
.pts-fold-inner { padding: 0 15px 15px; }
.pts-code-box {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    padding: 12px 13px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--gold, #C4A86A) 8%, var(--surface-solid, #fff));
    border: 1px dashed color-mix(in srgb, var(--gold, #C4A86A) 55%, transparent);
}
.pts-code-v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    letter-spacing: .16em;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pts-fold-note {
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
}
.pts-fold-note b {
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-weight: 400;
}

/* ===== 七、补充星光 ===== */
.pts-packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(6px, 2vw, 9px);
}
.pts-pack {
    position: relative;
    padding: 15px 6px 13px;
    text-align: center;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
    cursor: pointer;
    transition: transform .18s var(--sl-ease), box-shadow .18s var(--sl-ease);
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}
.pts-pack:active { transform: scale(.965); }
@media (hover: hover) {
    .pts-pack:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1)); }
}
.pts-pack::before {
    content: "";
    position: absolute;
    left: 8%; right: 8%;
    top: 0; height: 2px;
    background: linear-gradient(90deg, transparent,
        color-mix(in srgb, var(--gold, #C4A86A) 80%, transparent), transparent);
}
.pts-pack-num {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(16px, 4.6vw, 18px);
    color: var(--text-primary, rgba(34, 28, 20, .92));
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.pts-pack-unit {
    font-size: 9.5px;
    color: var(--text-muted, rgba(34, 28, 20, .32));
    letter-spacing: .12em;
    text-indent: .12em;
    margin-top: 5px;
}
.pts-pack-cap {
    margin-top: 8px;
    font-size: 9.5px;
    color: var(--gold-dark, #A89050);
    letter-spacing: .04em;
}
.pts-pack.best {
    border-color: color-mix(in srgb, var(--gold, #C4A86A) 60%, transparent);
    background: color-mix(in srgb, var(--gold, #C4A86A) 7%, var(--surface-solid, #fff));
    box-shadow: var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1));
}
.pts-pack.best::after {
    content: "最省";
    position: absolute;
    right: 5px; top: 7px;
    font-size: 8px;
    letter-spacing: .08em;
    /* 同印章：白字压在原色深金上，不跟着提亮 */
    color: color-mix(in srgb, #fff 88%, var(--pts-gold-src, #C4A86A));
    background: linear-gradient(140deg, var(--pts-gold-src, #C4A86A), var(--pts-gold-dark-src, #A89050));
    padding: 2px 4px;
    border-radius: 3px 0 3px 3px;
}

/* ===== 八、账页 ===== */
.pts-ledger {
    border-radius: 11px;
    padding: 3px 15px;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
}
.pts-led {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-faint, rgba(180, 170, 155, .1));
    font-size: 12.5px;
}
.pts-led:last-child { border-bottom: none; }
.pts-led-l {
    min-width: 0;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pts-led-l small {
    display: block;
    font-size: 10px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    margin-top: 4px;
    letter-spacing: .02em;
}
.pts-led-r {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 13px;
}
.pts-led-r.plus { color: var(--gold-dark, #A89050); }
.pts-led-r.minus { color: var(--text-secondary, rgba(34, 28, 20, .5)); }
.pts-led-more {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 11px 0;
    border: none;
    border-radius: 10px;
    background: none;
    font-family: inherit;
    font-size: 11.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .1em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.pts-empty {
    padding: 20px 14px;
    text-align: center;
}
.pts-empty-t {
    font-size: 12.5px;
    color: var(--text-primary, rgba(34, 28, 20, .92));
}
.pts-empty-s {
    margin-top: 6px;
    font-size: 10.5px;
    line-height: 1.8;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
}
.pts-loading {
    padding: 18px 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    letter-spacing: .1em;
}

/* ===== 九、兑换 ===== */
.pts-redeem {
    padding-top: 4px;
    text-align: center;
}
.pts-redeem-btn {
    display: inline-block;
    min-height: 44px;
    padding: 0 30px;
    line-height: 42px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-indent: .14em;
    color: var(--gold-dark, #A89050);
    background: color-mix(in srgb, var(--gold, #C4A86A) 8%, var(--surface-solid, #fff));
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 55%, transparent);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07)), inset 0 1px 0 var(--sl-hilite);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: transform .16s var(--sl-ease);
}
.pts-redeem-btn:active { transform: scale(.97); }
.pts-redeem-hint {
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted, rgba(34, 28, 20, .32));
    letter-spacing: .04em;
}

/* 兑换输入行（点「我有同行码」才展开） */
.pts-redeem-box { display: none; margin-top: 12px; }
.pts-redeem-box.on { display: block; animation: ptsNoteIn .3s var(--sl-ease) both; }
.pts-redeem-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
}
.pts-redeem-in {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 6px 2px;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    -webkit-appearance: none;
    appearance: none;
}
.pts-redeem-in::placeholder {
    color: var(--text-muted, rgba(34, 28, 20, .32));
    letter-spacing: .04em;
    text-transform: none;
}
.pts-redeem-msg {
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    word-break: break-word;
}
.pts-redeem-msg.ok { color: var(--gold-dark, #A89050); }
.pts-redeem-msg.err { color: var(--danger, #C07070); }

/* ===== 十、小药丸按钮（复制 / 分过去 / 重试） ===== */
.pts-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    background: var(--surface-solid, #fff);
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    font-family: inherit;
    font-size: 11px;
    letter-spacing: .04em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .2s var(--sl-ease-soft), color .2s var(--sl-ease-soft);
}
.pts-chip.gold {
    border-color: color-mix(in srgb, var(--gold, #C4A86A) 55%, transparent);
    color: var(--gold-dark, #A89050);
}

/* ===== 十一、提示条（浮在底部，不占版式） ===== */
.pts-tip {
    position: fixed;
    left: 50%;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(10px);
    max-width: min(440px, calc(100vw - 36px));
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .02em;
    text-align: center;
    color: var(--text-primary, rgba(34, 28, 20, .92));
    background: color-mix(in srgb, var(--surface-solid, #fff) 94%, var(--gold, #C4A86A) 6%);
    border: 1px solid color-mix(in srgb, var(--gold, #C4A86A) 34%, transparent);
    box-shadow: var(--shadow-md, 0 8px 28px rgba(160, 145, 130, .1));
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    transition: opacity .22s var(--sl-ease-soft), transform .22s var(--sl-ease);
}
.pts-tip.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.pts-tip.err { border-color: color-mix(in srgb, var(--danger, #C07070) 40%, transparent); }

/* ===== 十二、权益内页（全屏层：挂 #app，限宽居中） ===== */
.pts-sheet {
    position: fixed;
    top: 0; bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%) translateY(100%);
    visibility: hidden;
    z-index: 950;
    display: flex;
    flex-direction: column;
    background: linear-gradient(178deg,
        var(--surface-solid, #fff),
        var(--bg-chat, #FDFAF6) 34%,
        var(--bg-primary, #F9F5EF));
    box-shadow: var(--shadow-lg, 0 4px 18px rgba(160, 145, 130, .11));
    transition: transform .42s var(--sl-ease), visibility .42s var(--sl-ease);
}
.pts-sheet.on { transform: translateX(-50%) translateY(0); visibility: visible; }
.pts-sheet-hd {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: calc(15px + env(safe-area-inset-top, 0px)) 17px 12px;
    border-bottom: 1px solid var(--border-faint, rgba(180, 170, 155, .1));
}
.pts-sheet-back {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    background: var(--surface-solid, #fff);
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.pts-sheet-back::before {
    content: "";
    position: absolute;
    left: 12px; top: 11px;
    width: 7px; height: 7px;
    border-left: 1.2px solid var(--gold-dark, #A89050);
    border-bottom: 1.2px solid var(--gold-dark, #A89050);
    transform: rotate(45deg);
}
.pts-sheet-hd h3 {
    font-family: var(--font-display, Georgia, serif);
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--text-primary, rgba(34, 28, 20, .92));
}
.pts-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 18px 17px calc(40px + env(safe-area-inset-bottom, 0px));
}
.pts-sheet-body::-webkit-scrollbar { width: 0; }

.pts-rh {
    font-size: 10.5px;
    letter-spacing: .2em;
    text-indent: .2em;
    color: var(--gold-dark, #A89050);
    margin: 24px 0 11px;
}
.pts-rh:first-child { margin-top: 0; }
.pts-rgroup {
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--border, rgba(180, 170, 155, .22));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(160, 145, 130, .07));
}
.pts-rrow {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-faint, rgba(180, 170, 155, .1));
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-primary, rgba(34, 28, 20, .92));
}
.pts-rrow:last-child { border-bottom: none; }
.pts-rrow small {
    display: block;
    font-size: 10px;
    line-height: 1.7;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    margin-top: 3px;
}
.pts-cmp {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.pts-cmp th,
.pts-cmp td {
    padding: 10px 6px;
    text-align: left;
    border-bottom: 1px solid var(--border-faint, rgba(180, 170, 155, .1));
    vertical-align: top;
}
.pts-cmp th {
    font-weight: 400;
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
}
.pts-cmp th:nth-child(2), .pts-cmp td:nth-child(2),
.pts-cmp th:nth-child(3), .pts-cmp td:nth-child(3) {
    width: 68px;
    text-align: center;
}
.pts-cmp td { color: var(--text-primary, rgba(34, 28, 20, .92)); }
.pts-cmp tr:last-child td { border-bottom: none; }
.pts-cmp small {
    display: block;
    font-size: 9.5px;
    color: var(--text-secondary, rgba(34, 28, 20, .5));
    margin-top: 2px;
}
.pts-y { color: var(--gold-dark, #A89050); }
.pts-n { color: var(--text-muted, rgba(34, 28, 20, .32)); }

/* ===== 十三、窄屏收紧 ===== */
@media (max-width: 379px) {
    .pts-page { gap: 17px; }
    .pts-slot { height: 112px; padding: 8px 3px 10px; }
    .pts-slot-num { font-size: 20px; }
    .pts-slot-name { font-size: 9.5px; }
    .pts-pass { padding: 15px 14px 13px; }
    .pts-manual { padding: 9px 9px; gap: 5px; }
    .pts-manual-t { font-size: 10.5px; }
    .pts-manual-go { min-width: 46px; padding: 0 8px; font-size: 11px; }
    .pts-cmp th:nth-child(2), .pts-cmp td:nth-child(2),
    .pts-cmp th:nth-child(3), .pts-cmp td:nth-child(3) { width: 56px; }
}

/* 大屏（>400）让格子和字号略微放开，不撑满、不留横向溢出 */
@media (min-width: 401px) {
    .pts-slot { height: 142px; }
    .pts-slot-num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .pts-page *, .pts-page *::before, .pts-page *::after,
    .pts-sheet *, .pts-sheet *::before, .pts-sheet *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
