/* 交互修复补充样式 */
.outfit-ic{width:56px;height:56px;border-radius:18px;background:#EDE9FE;color:#7C3AED;display:grid;place-items:center;margin:0 auto;}
.outfit-ic svg{width:26px;height:26px;}
.outfit-ic.mint{background:#D7F7EA;color:#159778;}
.outfit-ic.gold{background:#FFF3D6;color:#B47B0A;}
.skin-art .outfit-ic{margin-top:10px;}

/* 分段胶囊：图标+文字居中 */
.segmented .seg{display:flex;align-items:center;justify-content:center;gap:4px;}
.segmented .seg svg{width:12px;height:12px;}

/* 身体数据可编辑输入 */
.field-edit{display:flex;align-items:baseline;gap:3px;}
.field-input{width:100%;min-width:0;border:0;background:transparent;font-family:inherit;font-size:20px;font-weight:800;color:inherit;outline:none;}
.field-box.accent .field-input{color:#7C3AED;}
.field-edit span{font-size:13px;font-weight:600;color:#94A3B8;}
.field-input::-webkit-outer-spin-button,.field-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

/* 身高滑杆 */
.ruler-range{width:100%;accent-color:#7C3AED;height:24px;margin:6px 0 0;cursor:pointer;}

/* 第15页 动作替换按钮 */
.swap-entry{width:24px;height:24px;border-radius:8px;background:#EDE9FE;color:#7C3AED;display:grid;place-items:center;flex:0 0 auto;}
.swap-entry svg{width:12px;height:12px;}

/* 深色设置中心（39） */
.screen.dark .settings-list{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.09);}
.screen.dark .setting-row + .setting-row{border-top-color:rgba(255,255,255,.07);}
.screen.dark .setting-row b{color:#F4EFFF;}
.screen.dark .setting-row .grow span{color:rgba(235,225,255,.5);}
.screen.dark .info-line{color:rgba(235,225,255,.55);}
.screen.dark .info-line svg{color:rgba(235,225,255,.4);}
.screen.dark .glass{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1);}
.screen.dark .section h3{color:#F4EFFF;}
.screen.dark .brand-name{color:#F4EFFF;}
.screen.dark .switch{background:#3A3350;}
.screen.dark .switch.on{background:#7C3AED;}
.screen.dark .card-title{color:#F4EFFF;}
.dmg{font-size:32px!important;text-align:center;line-height:1.15!important;letter-spacing:-.02em!important;display:block!important;margin:10px auto!important}.dmg small{font-size:16px!important;display:block;margin:4px 0 0!important}.about-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 16px;border-radius:24px;margin-top:2px;}

.item-ico svg{width:28px;height:28px;}
.outfit-ic svg{width:52px;height:52px;}
.outfit-ic{background:transparent!important;}

.w-step{display:inline-flex;align-items:center;gap:6px}
.w-step button{width:22px;height:22px;border-radius:8px;border:1px solid #E2E0F0;background:#fff;color:#1E1B4B;display:grid;place-items:center;cursor:pointer}
.w-step button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
.w-step b.num{min-width:76px;text-align:center;font-size:18px}
.w-input{width:64px;border:none;background:transparent;font-weight:800;font-size:20px;text-align:center;color:#1E1B4B;outline:none}
.advance-modal{position:fixed;inset:0;background:rgba(20,16,36,.55);display:grid;place-items:center;z-index:999}
.am-card{width:280px;background:#fff;border-radius:26px;padding:26px 20px 20px;text-align:center;box-shadow:0 24px 60px rgba(20,16,36,.3)}
.am-badge{width:64px;height:64px;border-radius:20px;margin:0 auto 12px;background:linear-gradient(140deg,#FDE68A,#F59E0B);display:grid;place-items:center;color:#fff}
.am-badge svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2}
.am-card h3{font-size:26px;color:#1E1B4B;margin:0 0 6px}
.am-card p{font-size:18px;color:#64748B;margin:0 0 16px;line-height:1.7}

/* 排版平衡 */
body{font-size:18px}
.h1{font-size:26px!important;line-height:1.2}
.plan-greeting{font-size:26px!important}
h2{font-size:26px}
.section h3{font-size:18px}
.card-title{font-size:18px}
.body-muted{font-size:18px!important}
.appbar .title{font-size:20px}
.appbar .sub{font-size:16px}
.num{font-size:18px}
.chip{font-size:16px}
.btn{font-size:18px}
.setting-row b{font-size:18px}

/* 文字溢出保护 */
.exercise-item span,.summary-act span,.setting-row .grow span,.skin-card span,.skin-card b,.item-card b,.item-card span,.adv-skill,.adv-card-copy p,.honor-copy p,.cal-day b,.date-cell b,.plan-hero-meta span,.recent-row .grow span,.lb-row b,.lb-row em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.exercise-item .grow,.summary-act .grow,.item-card .grow,.skin-card,.adv-card-copy{overflow:hidden}
.skin-card b,.skin-card span{max-width:130px;display:block}
.outfit-ic svg{width:48px!important;height:48px!important}

/* ===== Toast 通知 ===== */
.toast{position:fixed;top:60px;left:50%;transform:translateX(-50%);z-index:1000;background:#1E1B4B;color:#fff;padding:10px 20px;border-radius:999px;font-size:18px;font-weight:600;box-shadow:0 8px 28px rgba(20,16,36,.35);opacity:0;pointer-events:none;transition:opacity .3s;white-space:nowrap}
.toast.show{opacity:1;pointer-events:auto}

/* ===== 关于页（40）新组件 ===== */
.about-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 16px;border-radius:24px;margin-top:2px}
.token-row{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.swatch{width:22px;height:22px;border-radius:6px;flex:0 0 auto}
.token-row span{font-size:18px;color:#475569;min-width:82px}
.token-row b{font-size:18px;color:#1E1B4B;font-weight:700}
.icon-ref-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 6px}
.icon-ref{display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 2px}
.icon-ref span:first-child{color:#7C3AED}
.icon-ref span:first-child svg{width:20px;height:20px}
.icon-ref span:last-child{font-size:15px;color:#64748B;text-align:center;line-height:1.2}
.screen.dark .icon-ref span:first-child{color:#A78BFA}
.screen.dark .icon-ref span:last-child{color:rgba(235,225,255,.5)}

/* ===== 旅途日志（08） ===== */
.journey-list{display:flex;flex-direction:column;gap:8px}
.journey-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;border-radius:16px;border:1px solid #EDE9FE}
.journey-row .jr-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:#EDE9FE;color:#7C3AED}
.journey-row .jr-icon svg{width:16px;height:16px}
.journey-row .jr-icon.done{background:#D7F7EA;color:#159778}
.journey-row .grow b{font-size:18px;color:#1E1B4B}
.journey-row .grow span{font-size:16px;color:#94A3B8}
.journey-row.cur{border-color:#7C3AED;background:#F6F4FE}
.journey-row.locked{opacity:.45}
.screen.dark .journey-row{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
.screen.dark .journey-row .grow b{color:#F4EFFF}
.screen.dark .journey-row.cur{background:rgba(124,58,237,.12);border-color:#A78BFA}

/* ===== 补给箱（09）本地覆盖 ===== */
.loot-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:6px 0}
.loot-item{width:70px;display:flex;flex-direction:column;align-items:center;gap:4px}
.loot-circle{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#EDE9FE;color:#7C3AED}
.loot-circle svg{width:22px;height:22px}
.loot-circle.claimed{background:#E2E8F0;color:#94A3B8}
.loot-item b{font-size:16px;color:#1E1B4B}
.loot-item span{font-size:13px;color:#94A3B8}
.screen.dark .loot-circle{background:rgba(255,255,255,.06)}
.screen.dark .loot-circle.claimed{background:rgba(255,255,255,.04)}
.screen.dark .loot-item b{color:#F4EFFF}

/* ===== 商店页物品行 ===== */
.store-item-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #EDE9FE}
.store-item-row .store-item-img{width:44px;height:44px;border-radius:14px;flex:0 0 auto;display:grid;place-items:center}
.store-item-row .grow b{font-size:18px;color:#1E1B4B;display:block}
.store-item-row .grow span{font-size:16px;color:#94A3B8}
.store-item-row .store-cost{display:flex;align-items:center;gap:4px;font-size:18px;font-weight:700;color:#7C3AED;flex:0 0 auto}
.store-item-row .store-cost svg{width:14px;height:14px}
.screen.dark .store-item-row{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
.screen.dark .store-item-row .grow b{color:#F4EFFF}
/* ================= 18 做组竞技场：动作胶囊 ================= */
.arena-boss{position:relative}
.arena-boss-state{font-size:15px;letter-spacing:.12em;color:#9B93B8;text-transform:uppercase;margin-top:5px}
.arena-boss.defeated .arena-boss-state{color:#34D399}
.arena-boss.defeated .arena-boss-svg{filter:grayscale(1);opacity:.45}
.dmg-fly{position:absolute;right:16px;top:26%;font-size:26px;font-weight:800;color:#FB7185;pointer-events:none;animation:dmgFly .9s ease forwards;text-shadow:0 2px 10px rgba(0,0,0,.5)}
@keyframes dmgFly{0%{opacity:0;transform:translateY(6px) scale(.8)}25%{opacity:1;transform:translateY(0) scale(1.1)}100%{opacity:0;transform:translateY(-38px) scale(1)}}
.arena-ex-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.ex-caps{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;transition:border-color .25s,background .25s}
.ex-caps.open{background:rgba(255,255,255,.07);border-color:rgba(167,139,250,.35)}
.ex-caps-head{display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:56px;cursor:pointer}
.ex-caps.finished .ex-caps-head{cursor:default;pointer-events:none}
.ex-caps-ico{width:38px;height:38px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;background:rgba(167,139,250,.18);color:#C4B5FD}
.ex-caps-ico svg{width:18px;height:18px}
.ex-caps-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ex-caps-copy b{font-size:18px;font-weight:600;color:#F4EFFF;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.caps-sub{font-size:16px;color:#9B93B8}
.caps-dots{display:flex;gap:4px;flex:0 0 auto}
.caps-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.18)}
.caps-dots i.on{background:#34D399}
.caps-chev{color:#9B93B8;display:grid;place-items:center;transition:transform .25s;flex:0 0 auto}
.caps-chev svg{width:16px;height:16px}
.ex-caps.open .caps-chev{transform:rotate(90deg)}
.ex-caps-body{max-height:0;overflow:hidden;transition:max-height .25s ease,padding .25s ease;padding:0 14px}
.ex-caps.open .ex-caps-body{max-height:520px;padding:0 14px 12px}
.caps-pend{font-size:16px;color:#FBBF24;display:flex;align-items:center;gap:4px;margin-bottom:6px}
.caps-pend svg{width:12px;height:12px}
.ex-set{display:flex;align-items:center;gap:8px;padding:5px 0}
.es-idx{width:26px;height:26px;flex:0 0 auto;border-radius:9px;background:rgba(255,255,255,.08);color:#C7BFE4;font-size:16px;font-weight:700;display:grid;place-items:center}
.es-idx.warm{background:rgba(251,146,60,.16);color:#FB923C}
.es-field{flex:1;min-width:0;position:relative;display:block;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-radius:11px;padding:13px 8px 5px}
.es-field small{position:absolute;top:3px;left:9px;font-size:13px;color:#8C84AB;letter-spacing:.04em}
.es-field input{width:100%;background:none;border:0;outline:none;color:#F4EFFF;font-size:20px;font-weight:600;text-align:center;padding:0;font-family:inherit}
.es-field input:disabled{color:#8C84AB}
.ex-set.done .es-field{background:rgba(52,211,153,.14);border-color:rgba(52,211,153,.42)}
.ex-set.done .es-field input{color:#D6FBEC}
.es-check{width:44px;height:44px;flex:0 0 auto;border-radius:13px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#8C84AB;display:grid;place-items:center;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.es-check svg{width:20px;height:20px}
.ex-set.done .es-check{background:#34D399;border-color:#34D399;color:#04281C}
.es-time{width:36px;flex:0 0 auto;font-size:15px;color:#6FE3BA;text-align:right}
.ex-caps.finished{opacity:.6}

/* ================= 底部弹层（休息 / 体重） ================= */
.sheet-mask{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:80;opacity:0;transition:opacity .25s}
.sheet-mask.show{opacity:1}
.sheet-mask.hidden{display:none}
.rest-sheet{position:fixed;left:12px;right:12px;bottom:12px;z-index:81;border-radius:24px;padding:16px 18px 18px;background:rgba(20,18,32,.78);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.5);transform:translateY(130%);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.rest-sheet.show{transform:translateY(0)}
.rest-sheet.hidden{display:none}
.rs-top{display:flex;justify-content:space-between;align-items:center}
.rs-pill{display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.08);color:#C7BFE4;font-size:16px;font-weight:600;border:0;cursor:pointer;font-family:inherit}
.rs-pill svg{width:13px;height:13px}
.rs-pill.on{background:rgba(52,211,153,.2);color:#6FE3BA}
.rs-title{text-align:center;font-size:18px;font-weight:600;color:#C7BFE4;margin:10px 0 8px}
.rs-ring{position:relative;width:160px;height:160px;margin:0 auto}
.rs-ring svg{width:160px;height:160px;transform:rotate(-90deg)}
.rs-track{fill:none;stroke:rgba(255,255,255,.08);stroke-width:10}
.rs-bar{fill:none;stroke:#34D399;stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset .3s linear}
.rs-ring-copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.rs-ring-copy b{font-size:32px;font-weight:700;line-height:1;letter-spacing:.02em;color:#fff}
.rs-ring-copy span{font-size:18px;color:#8C84AB}
.rs-btns{display:flex;gap:10px;margin-top:14px}
.rs-btns button{flex:1;height:44px;border-radius:14px;background:rgba(255,255,255,.08);color:#F4EFFF;font-size:18px;font-weight:600;border:0;cursor:pointer;font-family:inherit}
.rs-btns .rs-done{background:#34D399;color:#04281C}
.rs-note{text-align:center;font-size:16px;color:#8C84AB;margin-top:10px;line-height:1.5}
.rs-undo{display:block;margin:6px auto 0;background:none;border:0;color:#8C84AB;font-size:16px;text-decoration:underline;padding:6px;cursor:pointer;font-family:inherit}
.rest-dock{position:fixed;right:16px;bottom:96px;z-index:82;width:64px;height:64px;border-radius:50%;background:rgba(20,18,32,.92);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.1);cursor:pointer}
.rest-dock.hidden{display:none}
.rest-dock b{font-size:16px;color:#6FE3BA;position:relative;z-index:2}
.dock-ring{position:absolute;inset:3px;border-radius:50%;pointer-events:none}
.dock-ring i{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from -90deg,#34D399 var(--p,180deg),rgba(255,255,255,.08) 0);-webkit-mask:radial-gradient(circle,transparent 25px,#000 26px);mask:radial-gradient(circle,transparent 25px,#000 26px)}

/* 体重录入弹层 */
.w-sheet .rs-title{color:#1E1B4B;margin:12px 0 10px}
.w-input-row{display:flex;gap:10px}
.w-field{flex:1;background:#F6F4FE;border:1px solid #E9E3FB;border-radius:14px;padding:8px 12px;display:block}
.w-field small{display:block;font-size:15px;color:#94A3B8;margin-bottom:2px}
.w-field input{width:100%;border:0;background:none;outline:none;font-size:26px;font-weight:700;color:#1E1B4B;font-family:inherit;padding:0}
.w-sheet .rs-btns .rs-done{display:flex;align-items:center;justify-content:center;gap:6px}
.w-sheet .rs-note{color:#94A3B8}

/* ================= 41 冒险商店 2 列卡片 ================= */
.adv-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.adv-item-card{background:#fff;border:1px solid #EDE9FE;border-radius:18px;padding:11px;display:flex;flex-direction:column;gap:5px;min-height:150px}
.adv-ico{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;margin-bottom:2px;background:#F1EDFB;color:#7C3AED}
.adv-ico svg{width:26px;height:26px}
.adv-ico.violet{background:#F1EDFB;color:#7C3AED}
.adv-ico.blue{background:#E0F2FE;color:#0284C7}
.adv-ico.rose{background:#FFE4E6;color:#E11D48}
.adv-ico.mint{background:#D7F7EA;color:#159778}
.adv-ico.amber{background:#FEF3C7;color:#B45309}
.adv-ico.gold{background:#FDE68A;color:#92400E}
.adv-item-card b{font-size:18px;font-weight:700;color:#1E1B4B;line-height:1.3}
.adv-desc{font-size:16px;color:#94A3B8;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.adv-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px}
.adv-cost{display:inline-flex;align-items:center;gap:3px;font-size:18px;font-weight:700;color:#7C3AED}
.adv-cost svg{width:13px;height:13px}
.adv-buy{height:28px;padding:0 12px;border-radius:999px;border:0;background:#7C3AED;color:#fff;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s}
.adv-buy:disabled,.adv-buy.is-bought{background:#D7F7EA;color:#159778;cursor:default}
.adv-buy.is-short{background:#FEE2E2;color:#DC2626}

/* ================= 加点按钮禁用态 ================= */
.attr-control .alloc-plus.disabled{background:#F1EDFB;color:#C4B5FD;box-shadow:none;cursor:default;opacity:.75}

/* ================= 商店皮肤网格 ================= */
.skin-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.skin-card{background:#fff;border:1px solid #EDE9FE;border-radius:18px;padding:11px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.skin-card .skin-art{width:100%;height:76px;border-radius:14px;background:#F6F4FE;display:grid;place-items:center;overflow:hidden}
.skin-card .skin-art svg{width:64px;height:64px}
.skin-card b{font-size:18px;font-weight:700;color:#1E1B4B}
.skin-card span{font-size:16px;color:#94A3B8}
.skin-card.owned{border-color:#A7F3D0;background:#F6FFFB}
.skin-card.locked{opacity:.72}
.skin-buy{width:100%;height:30px;border-radius:999px;border:0;background:#7C3AED;color:#fff;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit}
.skin-buy:disabled{background:#F1EDFB;color:#A78BFA;cursor:default}
.skin-buy.owned-btn{background:#D7F7EA;color:#159778}

/* 04 灵宠 2×2 */
.pet-card-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* 23 职业进阶路线入口 */
.advance-entry{display:flex;align-items:center;gap:10px;width:100%;padding:13px 14px;border:0;border-radius:18px;cursor:pointer;font-family:inherit}
.advance-entry .ae-ico{width:38px;height:38px;flex:0 0 auto;border-radius:12px;background:#F1EDFB;color:#7C3AED;display:grid;place-items:center}
.advance-entry .ae-ico svg{width:18px;height:18px}
.advance-entry .grow b{display:block;font-size:18px;font-weight:700;color:#1E1B4B}
.advance-entry .grow span{font-size:16px;color:#94A3B8}
.advance-entry .ae-arrow{color:#A78BFA;display:grid;place-items:center}
.advance-entry .ae-arrow svg{width:16px;height:16px}
/* 13 编排入口 · 章节头右侧按钮 */
.section .text-btn{display:inline-flex;align-items:center;gap:3px;margin:0;color:#7C3AED;font-weight:700;font-size:16px}
.section .text-btn svg{width:12px;height:12px}
/* 32 体重趋势端点强调 */
.weight-chart .chart-end{filter:drop-shadow(0 2px 5px rgba(123,92,230,.45))}

/* ===== 长页面：内容区像手机一样滑动 ===== */
.screen .content.is-scroll{
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-width:none;
  padding-bottom:26px;
  -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 18px),transparent);
  mask-image:linear-gradient(180deg,#000 calc(100% - 18px),transparent);
}
.screen .content.is-scroll::-webkit-scrollbar{width:0;height:0}
.screen .content.is-scroll::-webkit-scrollbar-thumb{background:transparent}
body.proto{overflow:hidden;height:100vh}
body.proto #stage{flex:0 0 auto}
