/* ============================================================
 * 纵横八方 - 手机竖屏布局样式
 * 结构：顶部状态栏 → 江湖见闻 → 场景区 → 主操作区 → 底部导航
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

html, body {
    height: 100%;
    background: #0b0b12;
    color: #d8cfb4;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow: hidden;
    font-size: 15px;
}

#game {
    height: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #12121f 0%, #0b0b12 100%);
    position: relative;
}

/* ================= 顶部状态栏 ================= */
/* 结构：第一行 名字/等级/经验（左）+ 天气（右上角）→ 第二行 生命/货币（左）+ 临时buff（右）
 * → 第三行 仅城区显示主城名。整块竖排，适配手机竖屏；每行内部不换行 */
.status-bar {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 7px 10px;
    background: #161628;
    border-bottom: 1px solid #2e2840;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    min-height: 52px;
    overflow: hidden;
}
.status-bar:active { background: #1e1e34; }
/* 单行容器：禁止换行，窄屏时靠压缩字号而不是折行 */
.sb-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}
.sb-row-top { justify-content: flex-start; }   /* 名字 / 等级 / 经验：靠左，天气靠右 */
.sb-row-main { justify-content: flex-start; }  /* 生命 / 货币：靠左，临时buff 靠右 */
.sb-row-env { justify-content: flex-start; }   /* 城区名：靠左 */
.sb-item {
    padding: 3px 7px;
    border-radius: 4px;
    background: #221f33;
    white-space: nowrap;
    flex: none;
}
/* 玩家名字：最长 7 字；第一行还要放天气，超长时省略而不是把天气挤出去 */
.sb-name {
    color: #f0c674;
    font-weight: 700;
    font-size: 13px;
    max-width: 32%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
}
/* 人物头顶爵位称号：紧凑显示在名字前，不抢天气与等级空间 */
.sb-noble {
    flex: none;
    line-height: 1;
    transform: scale(.9);
    transform-origin: left center;
}
.sb-noble .noble-badge {
    font-size: 9.5px;
    padding: 0 4px;
    margin-right: 0;
    line-height: 1.45;
    vertical-align: 1px;
}
/* 等级 + 经验条合成一个胶囊：🏅 Lv.3 ▮149.1/300▮（中间不再放 ✨ 图标） */
.sb-lvwrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 7px;
    flex: none;
}
.sb-lv { color: #f0c674; font-weight: 700; }
/* 经验值：进度条样式（和生命条同一套视觉语言，青色系） */
.sb-exp {
    display: inline-flex;
    align-items: center;
    color: #9fd6cf;
}
.sb-exp .exp-bar {
    position: relative;
    flex: 1 1 auto;
    height: 18px;
    min-width: 98px;
    border-radius: 8px;
    background: #151327;
    border: 1px solid #2c4a4a;
    overflow: hidden;
}
.sb-exp .exp-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #2f8a8c, #9fd6cf);
    transition: width .25s ease;
}
.sb-exp .exp-num {
    position: relative;
    display: block;
    font-style: normal;
    font-size: 11.5px;
    line-height: 18px;
    text-align: center;
    color: #eaf7f5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
}
/* 生命值：加宽做成小血条，比纯数字更直观（低血量变红） */
.sb-hp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    min-width: 160px;
    color: #7ee08a;
}
.sb-hp .hp-heart { font-size: 12px; line-height: 1; }
/* ❤ 后面的 HP 字样：血条形式不变，只加标识 */
.sb-hp .hp-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #7ee08a;
    line-height: 1;
}
.sb-hp .hp-bar {
    position: relative;
    flex: 1 1 auto;
    height: 18px;
    min-width: 98px;
    border-radius: 8px;
    background: #151327;
    border: 1px solid #2f4a35;
    overflow: hidden;
}
.sb-hp .hp-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #3fa869, #7ee08a);
    transition: width .25s ease;
}
.sb-hp .hp-fill.low { background: linear-gradient(90deg, #b8452f, #e2724f); }
.sb-hp .hp-num {
    position: relative;
    display: block;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    color: #eef7ee;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
}
.sb-hp.low .hp-bar { border-color: #6a2e22; }
.sb-hp.low .hp-tag { color: #e2724f; }
.sb-hp.low .hp-heart { animation: hp-warn 1s steps(2, end) infinite; }
@keyframes hp-warn { 50% { opacity: .35; } }
.sb-money { color: #b8c9e8; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
/* 地区（主城名）：默认靠右，紧挨天气左侧；不占满整行时也不换行 */
.sb-place {
    color: #c9a961;
    flex: none;
    max-width: 34%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-env { margin-left: auto; }
/* 临时 buff 按键：靠右（推到第二行末尾），带时效加成数量；没有时效加成时变暗 */
.sb-buff {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid #3a3428;
    background: #221f33;
    color: #c9a961;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    flex: none;
}
.sb-buff.active { border-color: #e6c96e; color: #f0c674; box-shadow: 0 0 7px rgba(230, 201, 110, .45); }
.sb-buff.idle { opacity: .55; }
.sb-buff-ico { font-size: 13px; }
#sb-buff-count { font-size: 14px; }
/* 极窄屏（老手机竖屏）再压一档，保证一行放得下 */
@media (max-width: 400px) {
    .status-bar { font-size: 11px; padding: 6px 8px; }
    .sb-money { font-size: 10.5px; }
    .sb-name { font-size: 12px; }
    /* 窄屏血条缩窄，避免把货币挤没 */
    .sb-hp { min-width: 120px; padding: 2px 6px; }
    .sb-hp .hp-bar { min-width: 66px; }
    .sb-hp .hp-num { font-size: 10.5px; }
    .sb-hp .hp-tag { font-size: 9px; letter-spacing: 0; }
    /* 窄屏经验条同步缩窄（经验条已并进等级胶囊里，这里只压条和数字） */
    .sb-lvwrap { padding: 2px 6px; gap: 4px; }
    .sb-exp .exp-bar { min-width: 62px; }
    .sb-exp .exp-num { font-size: 10px; }
    .sb-place { max-width: 26%; font-size: 10.5px; }
}
@keyframes blink { 50% { opacity: 0.35; } }

/* ================= 场景区 ================= */
.scene-panel {
    flex: none;
    padding: 8px 10px 2px;
    border-bottom: 1px solid #221f33;
}
.scene-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13px;
}
#scene-region { color: #e8b85c; font-weight: 600; }
.scene-land { color: #7d745e; font-size: 11.5px; flex: 0 1 auto; }
.scene-head-spacer { flex: 1; min-width: 0; }
.scroll-btn {
    flex: none;
    min-height: 34px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #4a3f2a;
    background: #221f33;
    color: #e8d7a8;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .08s ease, background .08s ease, border-color .08s ease,
                box-shadow .08s ease, color .08s ease;
}
.scroll-btn:hover:not(:disabled) {
    border-color: #7a6335;
    background: #2a263e;
}
.scroll-btn:active:not(:disabled),
.scroll-btn.scroll-pressing {
    transform: translateY(1px) scale(.94);
    border-color: #f0c96a;
    background: linear-gradient(180deg, #4b3a18, #2a2311);
    color: #fff0bd;
    box-shadow: 0 0 0 1px rgba(240, 201, 106, .225),
                0 0 14px rgba(240, 190, 90, .38),
                inset 0 2px 7px rgba(0, 0, 0, .62);
    filter: brightness(1.08);
}
.scroll-btn.cooling { color: #7d745e; border-color: #2a2438; }
.scroll-btn:disabled { opacity: 0.45; cursor: default; }
/* 任务面板入口（与回城按钮并排） */
.quest-btn { border-color: #4a3f6a; background: #221c2e; color: #d8c0e8; }

/* 江湖信箱入口：地图左侧的独立图标按钮 */
.scroll-btn.mail-btn {
    position: relative;
    width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #d9c58b;
}
.scroll-btn.mail-btn:hover:not(:disabled) { color: #ffe7a3; }
.mail-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid #6b3628;
    background: #c44832;
    color: #fff3e6;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(196, 72, 50, .55);
}
.mail-badge.is-empty { display: none; }

/* NPC 区域（紧凑化：原 150px → 90px，减少屏幕占用） */
.scene-npcs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
    min-height: 80px;
    max-height: 90px;
    overflow-y: auto;
    align-content: flex-start;
}

/* 怪物区域（紧凑化：原 138px → 92px） */
.scene-monsters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 80px;
    max-height: 92px;
    overflow-y: auto;
    align-content: flex-start;
    margin-bottom: 4px;
}
/* 怪物区与采集区之间的分隔虚线：怪物最多显示两行 */
.scene-monsters.has-divider {
    min-height: 86px;
    border-bottom: 1px dashed rgba(180, 150, 90, .42);
    transform: translateY(3px);
}
/* 采集区随分隔线一起下移，保持虚线上下留白一致 */
.scene-monsters.has-divider + .scene-gathers {
    transform: translateY(3px);
}

/* 采集/矿脉区域：夹在分隔虚线与下一区之间，垂直居中 */
.scene-gathers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 48px;
    max-height: 48px;
    overflow-y: auto;
    align-content: center;
}
.res-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12.5px;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #d8cfb4;
    transition: transform 0.08s;
}
.res-chip:active { transform: scale(0.96); }
.res-chip.gathering {
    background: linear-gradient(180deg, #5a4a18, #3a2f0c) !important;
    border-color: #d4b04a !important;
    color: #fff3a8 !important;
    box-shadow: 0 0 10px rgba(212, 176, 74, 0.4) inset;
    cursor: progress;
}
.res-chip:disabled { cursor: progress; }
.res-chip.monster { border-color: #7a2f2f; background: #2a1618; color: #ff9c9c; }
/* 精英怪：醒目紫金边框 */
.res-chip.monster.elite {
    border-color: #a86fd6;
    background: linear-gradient(180deg, #2e1b3d, #22172e);
    color: #e2b6ff;
    box-shadow: 0 0 8px rgba(168, 111, 214, .45);
    font-weight: bold;
}
/* BOSS：高辨识度金红描边 */
.res-chip.monster.boss {
    border-color: #ff7a3d;
    background: linear-gradient(180deg, #4a1408, #2c0b06);
    color: #ffd27d;
    box-shadow: 0 0 10px rgba(255, 122, 61, .6);
    font-weight: bold;
    letter-spacing: .5px;
}
.res-chip.monster.boss .tag { color: #ffb04a; border-color: #ff7a3d; }
.res-chip.monster.elite .tag { color: #d9a6ff; border-color: #a86fd6; }
/* BOSS 复活冷却倒计时 */
.res-chip.boss-cd {
    border-style: dashed;
    border-color: #8a5a2a;
    background: #1c1410;
    color: #d4a86a;
    cursor: default;
}
.res-chip.boss-cd:active { transform: none; }
/* 野怪刷新状态：数量 / 最近复活 / 清剿压力 */
.monster-spawn-status {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 2px 1px;
    margin-bottom: 4px;
    border-top: 1px dashed rgba(180, 150, 90, 0.24);
    color: #b8aa8c;
    font-size: 11.5px;
    line-height: 1.35;
    pointer-events: none;
}
.monster-spawn-status b { color: #ffd27a; font-weight: 700; }
.monster-spawn-status .mss-cd { color: #e8a66f; }
.monster-spawn-status .mss-pressure { color: #e5897d; }
.res-chip.herb { border-color: #2f6a3a; background: #14231a; color: #9ce0a8; }
.res-chip.ore { border-color: #4a4a6a; background: #1a1a28; color: #b8c9e8; }
.res-chip.quest-entry { border-color: #4a3f2a; background: #221c2e; color: #d8c0e8; }
.res-chip.quest-target { box-shadow: 0 0 0 1px #e8b85c inset; }
.res-chip.cooling { opacity: 0.55; }
.res-chip.empty { border-style: dashed; border-color: #2a2438; background: transparent; color: #625b4c; }
.res-chip .tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}
.scene-empty { color: #625b4c; font-size: 12.5px; padding: 8px 2px; }

/* NPC 芯片（紧凑化：减少 padding/高度，让场景更省空间） */
.npc-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #4a3a5a;
    background: #1e1a2e;
    color: #d8c0e8;
    line-height: 1.2;
}
.npc-chip:active { transform: scale(0.96); }

/* 场景里的模拟玩家：统一显示「附近：玩家1（名字），玩家2（名字）」，不带 NPC / 玩家头像 */
.scene-nearby-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
    min-height: 34px;
    padding: 4px 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.2;
    border: 0;
    background: none;
    box-shadow: none;
    color: #d9f3f6;
}
/* 「附近」固定在 NPC 栏第二行：没有 NPC 溢出时整行铺开 */
.scene-nearby-group.nearby-full-row {
    flex: 0 0 100%;
    width: 100%;
}
/* NPC 已占第二行时，附近接在最后一个 NPC 后面，不再另起一行 */
.scene-nearby-group.nearby-row-inline {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}
/* 场景没有 NPC 时，用一行等高的占位把「附近」顶到第二行 */
.scene-npc-row-spacer {
    flex: 0 0 100%;
    width: 100%;
    height: 34px;
    pointer-events: none;
}
.nearby-prefix {
    color: #f0c76a;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(240, 199, 106, .35);
}
.nearby-colon {
    color: #f0c76a;
    margin-right: 1px;
}
.nearby-comma {
    color: #8aa3aa;
}
/* 场景标题中的附近玩家：无底色、无边框，仅保留异色字体 */
.scene-nearby-inline {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 2px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #d9f3f6;
    font-size: 11.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
}
.scene-nearby-inline .nearby-prefix {
    flex: none;
    color: #f0c76a;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 0 8px rgba(240, 199, 106, .35);
}
.scene-nearby-inline .nearby-colon {
    flex: none;
    margin-right: 1px;
    color: #f0c76a;
}
.scene-nearby-inline .scene-player-chip {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.25;
    padding: 0;
    background: none;
}
.scene-nearby-inline .player-name { color: #8fd8e8; }
.scene-nearby-inline .nearby-comma { flex: none; }
.scene-nearby-inline .nearby-none {
    flex: none;
    color: #7f979e;
    font-size: 11.5px;
    letter-spacing: .5px;
}
.nearby-more-btn {
    flex: none;
    padding: 0 2px;
    border: 0;
    background: none;
    color: #9fe6f2;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}
.nearby-more-btn:hover { color: #dffaff; }
.nearby-more-btn:active { transform: scale(.96); }

/* 附近玩家列表弹窗 */
.nearby-list-panel { padding: 2px 0 0; }
.nearby-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 8px;
    border-bottom: 1px dashed rgba(201, 169, 97, .16);
}
.nearby-list-head span { color: #8c8573; font-size: 10px; }
.nearby-list-head b { color: #ffe09a; font-size: 12px; font-weight: 600; }
.nearby-list-scroll {
    display: grid;
    gap: 5px;
    max-height: 58vh;
    padding-top: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.nearby-list-player {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 7px 9px;
    border: 1px solid rgba(201, 169, 97, .14);
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(45, 43, 42, .72), rgba(24, 25, 37, .8));
    color: #d9f3f6;
    text-align: left;
    cursor: pointer;
}
.nearby-list-player:hover {
    border-color: rgba(139, 211, 224, .35);
    background: linear-gradient(120deg, rgba(52, 53, 50, .82), rgba(28, 31, 43, .9));
}
.nearby-list-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 211, 224, .24);
    border-radius: 50%;
    background: rgba(96, 168, 182, .08);
    font-size: 19px;
}
.nearby-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nearby-list-main b {
    color: #9fe6f2;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nearby-list-main small { color: #8f8876; font-size: 9px; }
.nearby-list-arrow {
    flex: none;
    color: #c9a961;
    font-size: 18px;
    line-height: 1;
}
.scene-player-chip {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 1px 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #d9f3f6;
    font-size: 12px;
    line-height: 1.3;
}
.scene-player-chip:active { transform: scale(0.96); color: #fff; }
.scene-player-chip .player-label {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    min-width: 0;
}
.scene-player-chip .player-name {
    color: #d9f3f6;
}
/* 时空裂缝入口：秘境里的独立交互入口，不套 NPC 身份 */
.rift-portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #547f9f;
    background: linear-gradient(135deg, rgba(25, 46, 70, .96), rgba(18, 30, 48, .98));
    color: #d9ecff;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 0 12px rgba(80, 166, 220, .18), inset 0 0 10px rgba(80, 166, 220, .08);
    cursor: pointer;
}
.rift-portal-chip:active { transform: scale(0.96); }
.rift-portal-chip .rift-portal-icon {
    font-size: 16px;
    flex: none;
    filter: drop-shadow(0 0 5px rgba(103, 195, 255, .5));
    animation: riftPortalTurn 6s linear infinite;
}
.rift-portal-chip .rift-portal-label { font-weight: 600; letter-spacing: .3px; }
.rift-portal-chip .rift-portal-enter {
    flex: none;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(255, 213, 122, .65);
    color: #ffdf9a;
    font-size: 10px;
}
@keyframes riftPortalTurn {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 场景 NPC 图标：默认随文字，店铺 / 码头 / 副本等功能入口放大装饰 */
.npc-label { display: flex; align-items: center; gap: 4px; min-width: 0; }
.npc-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    line-height: 1;
}
.npc-ico-deco {
    width: 22px;
    height: 22px;
    font-size: 19px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.npc-ico-deco .fish-icon {
    width: 22px;
    height: 22px;
    margin-right: 0;
    vertical-align: middle;
}
.q-mark { font-size: 12px; padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.q-mark.new { color: #f0c674; font-weight: 700; }
.q-mark.ready { color: #8fe08a; font-weight: 700; }
.q-mark.doing { color: #7d745e; }
/* NPC 头顶任务标记：! 可接（大黄） / ? 可交（大黄） / ? 进行中（淡银） */
.npc-chip .q-mark {
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0 0 0 4px;
    border-radius: 0;
    background: transparent;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 6px rgba(0, 0, 0, .85);
}
.npc-chip .q-mark.new {
    color: #ffd23f;
    background: transparent;
    animation: npcMarkPulse 1.4s ease-in-out infinite;
}
.npc-chip .q-mark.ready {
    color: #ffd23f;
    background: transparent;
    animation: npcMarkPulse 1.4s ease-in-out infinite;
}
.npc-chip .q-mark.doing {
    color: #cfcbbf;
    opacity: .85;
    background: transparent;
    font-weight: 700;
}
@keyframes npcMarkPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ================= 主操作区（方向键） ================= */
.action-panel {
    flex: none;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #221f33;
}

/* 方向区：左侧自动索敌/采集 + 右侧十字键 */
.move-area {
    display: flex;
    align-items: stretch;
    gap: 6px;
    max-width: 416px;
    margin: 0 auto;
    width: 100%;
}
.auto-tools {
    flex: none;
    width: 66px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auto-tool-btn {
    flex: 1;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #c9b98a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    padding: 2px 4px;
    min-height: 52px;
}
.auto-tool-btn.active {
    background: #7a1f1f;
    border-color: #c04040;
    color: #fff;
}
.auto-tool-btn:active { background: #3a2e18; }
.auto-tool-btn.active:active { background: #8f2626; }

/* 十字方向键：显示方向 + 目标区域名 */
.dpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 52px);
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}
.dpad-btn {
    border: 1px solid #3a3226;
    background: #1e1e30;
    color: #e8b85c;
    font-size: 15px;
    border-radius: 8px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 3px 4px;
    overflow: hidden;
}
.dpad-btn:active { background: #3a2e18; }
.dpad-btn:disabled { opacity: 0.3; }
.dpad-btn .dp-dir { font-weight: 700; line-height: 1.1; }
.dpad-btn .dp-name {
    font-size: 10px;
    color: #9c917a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}
.dpad-btn.cross .dp-name { color: #e8a85c; }
.dpad-btn.cross { border-color: #7a5a2a; }
.dpad-btn.fog { border-color: #4a4a5e; background: #171722; opacity: 0.75; }
.dpad-btn.fog .dp-name { color: #8b8fa6; }
.dpad-btn.up { grid-column: 2; grid-row: 1; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 2; }
.dpad-btn.right { grid-column: 3; grid-row: 2; }

/* 自动移动开关（方向键左上角） */
.auto-move-btn {
    grid-column: 1;
    grid-row: 1;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #9c917a;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px;
    overflow: hidden;
}
.auto-move-btn .am-main { font-size: 13px; line-height: 1.1; }
.auto-move-btn .am-label {
    font-size: 9px;
    line-height: 1.15;
    color: inherit;
    white-space: nowrap;
}
.auto-move-btn.on {
    color: #ff5a5a;
    border-color: #a02a2a;
    background: #2a1818;
    animation: autoPulse 1.2s ease-in-out infinite;
}
@keyframes autoPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 90, 90, 0); }
    50%      { box-shadow: 0 0 10px rgba(255, 90, 90, 0.5); }
}

/* 方向键读秒态（点击后 2 秒读秒，淡黄色 + 剩余秒数） */
.dpad-btn.moving {
    background: #e9d8a6;
    border-color: #c9b171;
    color: #2a2410;
    pointer-events: none;
}
.dpad-btn.moving .dp-dir { color: #2a2410; }
.dpad-btn.moving .dp-name { color: #4a3c14; font-weight: 700; }

/* 地图导航按钮 */
.map-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #2a3a4a;
}
.map-nav-hint {
    font-size: 11px;
    color: #9aa;
}

/* ================= 底部导航（江湖见闻下方） ================= */
.main-btns {
    flex: none;
    display: grid;
    /* 8 个按钮：4 + 4 两行，每个按钮跨 3 列 */
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    padding: 8px 10px 10px;
    border-top: 1px solid #221f33;
    background: #101019;
}
.main-btn {
    position: relative;
    overflow: hidden;
    grid-column: span 3;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #4a3f2a;
    background: linear-gradient(180deg, #272238 0%, #191727 100%);
    color: #c9bf9e;
    font-size: 13px;
    box-shadow: 0 3px 0 #0c0a13, 0 5px 12px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s ease, border-color .14s ease, filter .14s ease;
}
.main-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent, rgba(240, 198, 116, .14), transparent);
    transform: translateX(-130%);
    transition: transform .45s ease;
    pointer-events: none;
}
.main-btn:hover {
    border-color: #6d5932;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #0c0a13, 0 7px 16px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.main-btn:hover::before { transform: translateX(130%); }

/* 商铺购买列表：单列排列，避免双排拥挤 */
.bag-grid.shop-single {
    grid-template-columns: 1fr;
}
.main-btn:active,
.main-btn.nav-pressing {
    background: linear-gradient(180deg, #1c182d 0%, #16141f 100%);
    color: #e8b85c;
    border-color: #8a7138;
    transform: translateY(2px) scale(.985);
    box-shadow: 0 1px 0 #0c0a13, inset 0 4px 10px rgba(0, 0, 0, .48);
    filter: brightness(.9);
}
.main-btn.nav-pressing { pointer-events: none; }

/* ================= 江湖见闻（加长版） ================= */
.log-panel {
    flex: 1;
    min-height: 200px;          /* 加长：原 160px → 200px，更多屏幕占用 */
    max-height: 60vh;           /* 加长：原 50vh → 60vh */
    display: flex;
    gap: 8px;
    padding: 8px 10px 6px;
}
.log-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
/* ---------- 右侧快捷栏（原「新手提示」位置，现只承载光环入口） ---------- */
.side-quick-panel {
    flex: none;
    width: 118px;
    padding: 12px 8px;
    border: 1px solid #3a3226;
    border-radius: 8px;
    background: #171725;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.side-quick-btn {
    width: 100%;
    padding: 9px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 9px;
    border: 1px solid #6b5527;
    background:
        radial-gradient(circle at 50% 22%, rgba(240,198,116,.22) 0%, rgba(240,198,116,0) 68%),
        linear-gradient(180deg, #2a2438 0%, #1d1929 100%);
    box-shadow: inset 0 0 10px rgba(240,198,116,.14), 0 0 0 1px rgba(240,198,116,.06);
    color: #f0c674;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.side-quick-btn:hover {
    border-color: #e6c96e;
    box-shadow: inset 0 0 14px rgba(240,198,116,.24), 0 0 10px rgba(240,198,116,.22);
}
.side-quick-btn:active { transform: scale(.97); }
.sq-ico {
    font-size: 17px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(240,198,116,.85), 0 0 16px rgba(240,198,116,.45);
    animation: sqGlow 2.6s ease-in-out infinite;
}
.sq-text { font-size: 11.5px; letter-spacing: 1px; color: #e8d8a8; }
.sq-deco { font-size: 9px; letter-spacing: 1px; color: #5a5136; }
@keyframes sqGlow {
    0%, 100% { opacity: .78; }
    50% { opacity: 1; }
}
.log-title {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #c9a961;
    padding-bottom: 5px;
    border-bottom: 1px solid #221f33;
    margin-bottom: 6px;
}
/* 江湖见闻标题行：左侧标题 + 游戏内动态时钟，右侧查看见闻按钮 */
.log-title-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.log-game-clock {
    flex: none;
    padding: 2px 8px 2px 7px;
    border: 1px solid #3a4657;
    border-radius: 6px;
    background: #151b24;
    color: #e8d29b;
    font-size: 11.5px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
    white-space: nowrap;
}
.log-history-btn {
    flex: none;
    padding: 2px 8px;
    font-size: 11px;
    color: #c9a961;
    background: #1a1a2e;
    border: 1px solid #3a3226;
    border-radius: 6px;
    cursor: pointer;
}
.log-history-btn:active { background: #3a2e18; color: #e8b85c; }
.log-history-list {
    max-height: 54vh;
    overflow-y: auto;
}
.log-history-list .log-line { font-size: 12.5px; line-height: 1.75; }
.log-time { color: #5f594a; font-size: 11px; margin-right: 6px; }
.log-content {
    flex: 1;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.75;
    color: #a89e86;
    -webkit-overflow-scrolling: touch;
}
.log-content::-webkit-scrollbar { width: 3px; }
.log-content::-webkit-scrollbar-thumb { background: #3a3226; border-radius: 2px; }
.log-line { padding: 1px 0; word-break: break-all; }
.log-line.win { color: #8fe08a; }
.log-line.lose { color: #ff7b7b; }
.log-line.gain { color: #e8c46a; }
.log-line.dim { color: #5f594a; }
.log-line.chime {
    color: #ffd27a;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(232, 184, 92, .22);
}
/* ---------- 江湖见闻 · 本地聊天输入 ---------- */
.log-chat-row {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.log-chat-input {
    flex: 1;
    min-width: 0;
    height: 28px;
    padding: 3px 9px;
    border: 1px solid #3a3226;
    border-radius: 6px;
    background: #151522;
    color: #d8cfb6;
    font-size: 12px;
    outline: none;
}
.log-chat-input::placeholder { color: #6b665a; }
.log-chat-input:focus { border-color: #8a7138; box-shadow: 0 0 0 1px rgba(232, 184, 92, .18); }
.log-chat-send {
    flex: none;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #4a3f2a;
    border-radius: 6px;
    background: #1a1a2e;
    color: #c9a961;
    font-size: 11px;
    cursor: pointer;
}
.log-chat-send:active { background: #3a2e18; color: #e8b85c; }
.log-line.chat-me {
    color: #d9d0b8;
    border-left: 2px solid #4a3f2a;
    padding-left: 6px;
    margin: 1px 0;
}
/* 爵位聊天光环：按爵位等级渐强，最高级镇海王有专属流光 */
.log-line.chat-me.noble-chat-xunjue {
    border-left-color: #9fb0c4;
    text-shadow: 0 0 6px rgba(159, 176, 196, .28);
}
.log-line.chat-me.noble-chat-zijue {
    border-left-color: #4e9fb8;
    text-shadow: 0 0 7px rgba(78, 159, 184, .34);
}
.log-line.chat-me.noble-chat-bojue {
    border-left-color: #8b7ab8;
    text-shadow: 0 0 8px rgba(139, 122, 184, .36);
}
.log-line.chat-me.noble-chat-houjue {
    border-left-color: #c76b94;
    text-shadow: 0 0 9px rgba(199, 107, 148, .38);
}
.log-line.chat-me.noble-chat-gongjue {
    border-left-color: #c9a35a;
    text-shadow: 0 0 10px rgba(201, 163, 90, .42);
}
.log-line.chat-me.noble-chat-zhenhaiwang {
    border-left-color: #e0b21c;
    color: #ffe9a6;
    background: linear-gradient(90deg, rgba(224, 178, 28, .16), rgba(224, 178, 28, 0));
    text-shadow: 0 0 10px rgba(255, 216, 96, .7), 0 0 20px rgba(224, 178, 28, .38);
    animation: nobleChatGlow 2.8s ease-in-out infinite;
}
@keyframes nobleChatGlow {
    0%, 100% { box-shadow: inset 0 0 0 rgba(224, 178, 28, 0); }
    50% { box-shadow: inset 0 0 12px rgba(224, 178, 28, .22); }
}
/* 江湖见闻 · NPC 对话：与玩家发言区分，任务提示用暖金色 */
.log-line.npc-chat {
    color: #c9d8c9;
    border-left: 2px solid #6e8f74;
    padding-left: 6px;
    margin: 1px 0;
    background: linear-gradient(90deg, rgba(110, 143, 116, .10), rgba(110, 143, 116, 0));
}
.log-line.npc-chat.quest-hint {
    color: #f0d79a;
    border-left-color: #c9a35a;
    background: linear-gradient(90deg, rgba(201, 163, 90, .14), rgba(201, 163, 90, 0));
}

/* ================= 弹窗 ================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 14px;
}
.modal.hidden { display: none; }
.item-modal { z-index: 130; }
.modal-card {
    width: 100%;
    max-width: 500px;
    max-height: 86vh;
    background: #141422;
    border: 1px solid #4a3f2a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pop 0.18s ease-out;
}
@keyframes pop { from { transform: translateY(12px) scale(0.97); } }
/* 背包 / 珠宝店 / 商铺：固定高度，切换分类时不因物品多少改变弹窗尺寸 */
.modal-card.fixed-h { height: 86vh; }
/* 任务面板：固定高度，任务条数变化或折叠展开都不会改变面板尺寸 */
.modal-card.fixed-h.quest-panel { height: 600px; max-height: 86vh; }
/* 仓库面板：固定高度，切换分类或存取物品时不再上下跳动 */
.modal-card.fixed-h.wh-panel { height: 580px; max-height: 86vh; }
.modal-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #2a2438;
    color: #e8b85c;
    font-size: 16px;
    font-weight: 600;
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #3a3226;
    background: #221f33;
    color: #c9bf9e;
    font-size: 15px;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.8;
    /* Firefox 滚动条：深色轨道 + 深色滑块，避免浅色条压暗色弹窗 */
    scrollbar-width: thin; scrollbar-color: #3d465c #101720;
}
.modal-foot {
    flex: none;
    padding: 10px 14px;
    border-top: 1px solid #2a2438;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.modal-foot:empty { display: none; }

/* 放生等危险操作的淡红色确认按键 */
.act-btn.danger-light {
    color: #ff9b9b;
    border-color: #a04c4c;
    background: rgba(255, 90, 90, 0.12);
}
.act-btn.danger-light:active { background: rgba(255, 90, 90, 0.24); }

/* 坐骑锁定标记 */
.mount-lock-badge { margin-left: 6px; font-size: 11px; color: #ff9b9b; }

/* 通用小按钮 */
.act-btn.ml-act {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .38), 0 6px 14px rgba(0, 0, 0, .22);
    transition: transform .1s cubic-bezier(.2, .7, .3, 1.2), box-shadow .12s ease, filter .12s ease;
}
.act-btn.ml-act::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(201, 162, 75, .85), rgba(255, 235, 175, .95));
}
.act-btn.ml-act.ml-counting {
    pointer-events: none;
    opacity: .92;
}
.act-btn.ml-act.ml-counting::before {
    opacity: 1;
    animation: mlWaitFill var(--ml-wait, 1s) linear forwards;
}
@keyframes mlWaitFill {
    to { transform: scaleX(1); }
}
.act-btn.ml-act::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(255, 235, 175, .5), rgba(255, 235, 175, 0) 62%);
    transition: opacity .22s ease;
}
.act-btn.ml-act:active {
    transform: translateY(3px) scale(.99);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), inset 0 2px 9px rgba(0, 0, 0, .55);
    filter: brightness(.93);
}
.act-btn.ml-act.ml-flash::after {
    opacity: 1;
    transition: opacity .04s ease;
}
.act-btn.ml-act.ml-pulse {
    animation: mlTapBack .3s ease-out;
}
@keyframes mlTapBack {
    0% { transform: translateY(3px) scale(.97); }
    55% { transform: translateY(-1px) scale(1.012); }
    100% { transform: translateY(0) scale(1); }
}

/* ---------- 支线 / 公告栏「接取任务」按钮：金石质感 + 2 秒蓄力 ---------- */
.act-btn.ml-act.side-accept {
    min-height: 44px;
    border: 1px solid rgba(232, 194, 112, .92);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 247, 211, .16), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #5b431e 0%, #3b2b15 52%, #241a0d 100%);
    color: #fff0bf;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .68);
    box-shadow:
        0 3px 0 #130e07,
        0 8px 20px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 247, 211, .28),
        inset 0 -1px 0 rgba(0, 0, 0, .42);
}
.act-btn.ml-act.side-accept .sa-ico {
    display: inline-block;
    margin-right: 6px;
    color: #ffe28f;
    text-shadow: 0 0 9px rgba(255, 200, 90, .6);
    transform: translateY(-.5px);
}
.act-btn.ml-act.side-accept .sa-lock {
    display: inline-block;
    margin-right: 6px;
    color: #a89a7c;
}
@media (hover: hover) {
    .act-btn.ml-act.side-accept:not(:disabled):hover {
        filter: brightness(1.08);
        box-shadow:
            0 3px 0 #130e07,
            0 9px 24px rgba(255, 190, 80, .12),
            0 8px 20px rgba(0, 0, 0, .38),
            inset 0 1px 0 rgba(255, 247, 211, .34);
    }
}
.act-btn.ml-act.side-accept:disabled {
    filter: saturate(.55);
    box-shadow: 0 2px 0 #130e07, inset 0 1px 0 rgba(255, 247, 211, .08);
}
.act-btn.ml-act.side-accept.ml-counting {
    opacity: 1;
    transform: translateY(3px) scale(.992);
    filter: brightness(.97);
    box-shadow:
        0 0 0 1px rgba(255, 214, 126, .3),
        inset 0 3px 10px rgba(0, 0, 0, .58);
}
.act-btn.ml-act.side-accept.ml-counting::before {
    height: 3px;
    background: linear-gradient(90deg, #8b5b1f, #ffd36a, #fff3c4);
    box-shadow: 0 0 10px rgba(255, 200, 90, .5);
}
.act-btn.ml-act.side-accept.ml-counting::after {
    opacity: 1;
    background: linear-gradient(100deg, transparent 18%, rgba(255, 240, 190, .26) 46%, transparent 74%);
    background-size: 220% 100%;
    animation: saAcceptSweep 1.05s linear infinite;
}
.act-btn.ml-act.side-accept.ml-counting .sa-ico {
    animation: saAcceptStar 1s ease-in-out infinite;
}
@keyframes saAcceptSweep {
    from { background-position: 180% 0; }
    to { background-position: -80% 0; }
}
@keyframes saAcceptStar {
    0%, 100% { transform: scale(1) translateY(-.5px); opacity: .9; }
    50% { transform: scale(1.18) translateY(-.5px); opacity: 1; }
}

.act-btn.ml-act:focus-visible {
    outline: 2px solid #c9a24b;
    outline-offset: 2px;
}
.act-btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #4a3f2a;
    background: #2a2438;
    color: #e8d7a8;
    font-size: 13px;
    flex: 1;
    min-width: 96px;
}
.act-btn:active { background: #3a2e18; }
.act-btn.small { flex: none; min-width: 64px; font-size: 12px; padding: 6px 12px; }
.act-btn.on { border-color: #c9a961; color: #f0c674; background: rgba(201, 169, 97, 0.14); }
.act-btn:disabled { opacity: 0.35; }

/* ================= 角色详情 ================= */
.detail-sec { margin-bottom: 14px; }
.board-meta {
    padding: 8px 10px;
    border: 1px solid rgba(201, 169, 97, 0.28);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(40, 33, 19, 0.62), rgba(18, 16, 24, 0.62));
}
.detail-sec h4 {
    font-size: 13px;
    color: #c9a961;
    margin-bottom: 6px;
    border-left: 3px solid #c9a961;
    padding-left: 6px;
}
/* 可折叠区块（基础信息 / 属性加点 / 钱币明细） */
.fold-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.fold-head:active { color: #f0c674; }
.fold-caret { color: #c9a961; font-size: 11px; margin-left: 6px; }
.fold-body { margin-top: 2px; }
.fold-body.hidden { display: none; }
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
    color: #bcb39a;
    border-bottom: 1px dashed #232033;
}
.detail-row b { color: #f0c674; font-weight: 600; }
/* 角色详情常驻属性：两列网格，同样 8 行信息只占 4 行高度 */
.detail-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
.detail-grid2 .detail-row {
    min-width: 0;
    border-bottom: 1px dashed #232033;
}
/* 左边标签超长时省略，右侧数值不换行、右对齐 */
.detail-grid2 .detail-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-grid2 .detail-row > b {
    flex: none;
    margin-left: 8px;
    text-align: right;
    white-space: nowrap;
}
/* 单独居中一行（如累计击杀）：上下也留一点呼吸距离，和称号行一致 */
.detail-row.detail-center {
    justify-content: center;
    gap: 8px;
    border-bottom: none;
    margin: 6px 0;
    padding: 3px 0;
}
.detail-row.detail-center > b { margin-left: 0; }
/* 称号行：紧跟在名字/编号下面，单行居中，上下留一点呼吸距离 */
.detail-title {
    cursor: pointer;
    margin: 6px 0;
    padding: 3px 0;
}
.detail-title .dt-label {
    color: #8a8296;
    font-size: 12px;
    letter-spacing: 1px;
}
.detail-title .dt-name {
    color: #e6c96e;
    font-weight: 700;
    letter-spacing: .5px;
}
.detail-title .dt-name.none { color: #6f6880; font-weight: 400; font-size: 12px; }
.detail-title:active .dt-name { color: #fff; }
/* 称号面板：每个称号一张卡 */
.title-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.title-card {
    padding: 8px 10px;
    border-radius: 8px;
    background: #1b1b2e;
    border: 1px solid #322c45;
}
.title-card.equipped { border-color: #e6c96e; box-shadow: 0 0 6px rgba(230, 201, 110, .3); }
.title-card.locked { opacity: .62; }
.title-card .tt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.title-card .tt-name { color: #e6c96e; font-weight: 700; font-size: 13.5px; }
.title-card .tt-attr { color: #8fe08a; font-size: 12px; }
.title-card .tt-head > button, .title-card .tt-flag { margin-left: auto; }
.title-card .tt-flag { color: #e6c96e; font-size: 12px; }
.title-card .tt-flag.dim { color: #6f6880; }
.title-card .tt-desc { margin-top: 4px; color: #bcb39a; font-size: 12.5px; line-height: 1.7; }
.title-card .tt-cond { margin-top: 3px; color: #7f7890; font-size: 11.5px; }
/* 角色详情属性行前的小图标（等级/经验/生命/攻击/防御/敏捷） */
.d-ico {
    display: inline-block;
    width: 16px;
    margin-right: 4px;
    font-style: normal;
    text-align: left;
    opacity: .9;
}
/* 特殊属性词条：可点查看说明（? 图标 + 虚线下划线的词条名） */
.q-mark {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    margin-right: 3px;
    border-radius: 50%;
    background: #3a3428;
    color: #c9a961;
    font-size: 10px;
    font-style: normal;
    text-align: center;
    cursor: pointer;
}
.attr-link {
    font-style: normal;
    border-bottom: 1px dashed #5a5138;
    cursor: pointer;
}
.attr-link:active, .q-mark:active { color: #fff; }
/* 说明弹窗里的正文 */
.attr-desc-box {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #1b1b2e;
    border: 1px dashed #3a3428;
    color: #cfc7b4;
    font-size: 13px;
    line-height: 1.8;
}
/* 名字前的装饰图标（详情里可点击更换） */.detail-av {
    display: inline-block;
    margin-right: 4px;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border-bottom: 1px dashed #5a5138;
}
.detail-av:active { color: #fff; }
/* 顶栏名字前的装饰图标 */
.sb-av {
    flex: none;
    font-size: 15px;
    line-height: 1;
    margin-right: -2px;
}
/* 更换图标面板：7 个身份图标 + 默认 */
.av-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 6px 0 2px;
}
.av-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid #423a2c;
    background: rgba(28, 25, 36, 0.9);
    color: #d8c8a6;
    font-size: 13px;
    cursor: pointer;
}
.av-cell.on { border-color: #e6c96e; color: #f0c674; box-shadow: 0 0 6px rgba(230, 201, 110, .3); }
.av-cell-ico { font-size: 18px; line-height: 1; }
.av-cell-name { letter-spacing: 1px; }
/* 角色详情「详细信息」里的子分类标题（当前只有"特殊属性"） */
.detail-sub-head {
    margin: 12px 0 4px;
    padding-top: 8px;
    border-top: 1px dashed #3a3428;
    color: #c9a961;
    font-size: 12px;
    letter-spacing: 2px;
}
.equip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #232033;
    font-size: 12.5px;
}
.equip-row .slot-name { color: #8f866f; flex: none; width: 66px; }
.equip-row .equip-name { flex: 1; color: #cfc5a8; word-break: break-all; }
.equip-row .equip-name.suit { border-left-color: #3a78b8; }
.equip-row .equip-name.none { color: #5f594a; }
/* 已穿戴装备可点击查看详情 */
.equip-row.clickable { cursor: pointer; }
.equip-row.clickable:hover { background: rgba(201, 169, 97, 0.08); }
.equip-row.clickable:hover .equip-name { color: #f0c674; }
.eqd-owner-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -2px 0 6px;
    padding: 4px 7px;
    border-left: 2px solid #f0c76a;
    background: rgba(240, 199, 106, .06);
    color: #d9f3f6;
    font-size: 11px;
}
.eqd-owner-line em {
    color: #8aa3aa;
    font-size: 10px;
    font-style: normal;
}

/* 耐久耗尽（已损坏）：角色详情穿戴装备名字前的红字「（坏）」 */
.eq-broken { color: #ff7b7b; font-weight: 600; margin-right: 1px; }

.point-box {
    background: #1a1a2e;
    border: 1px solid #3a3226;
    border-radius: 8px;
    padding: 10px 12px;
}
.point-left { color: #f0c674; font-weight: 700; margin-bottom: 8px; }
.point-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #232033;
}
.point-line:last-child { border-bottom: none; }
.point-line .p-label { color: #d8cfb4; font-size: 13px; }
.point-line .p-value { color: #8fe08a; font-size: 13px; margin-left: 4px; }
.plus-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #4a7a4a;
    background: #18301c;
    color: #9ce0a8;
    font-size: 22px;
    line-height: 1;
    flex: none;
}
.plus-btn:active { background: #24502a; }
.plus-btn:disabled { opacity: 0.3; border-color: #3a3226; background: #1a1a2e; color: #5f594a; }
/* 快捷加点按钮组：+1 / +3 / +5 / +10 */
.plus-group { display: flex; gap: 4px; flex: none; }
.plus-btn.quick { width: 38px; height: 30px; font-size: 12px; border-radius: 6px; }

/* ================= 背包（紧凑小方块） ================= */
/* 背包页签：装备 / 道具 / 宝石 / 材料 */
.bag-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.bag-tab {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 34px;
    padding: 7px 0;
    font-size: 12.5px;
    color: #a89d83;
    background: linear-gradient(180deg, #232033 0%, #15151f 100%);
    border: 1px solid #3a3226;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 0 #0b0912, 0 3px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform .12s cubic-bezier(.2, .8, .3, 1), box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}
.bag-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent, rgba(240, 198, 116, .13), transparent);
    transform: translateX(-130%);
    transition: transform .38s ease;
    pointer-events: none;
}
.bag-tab:not(.on):hover {
    border-color: #665530;
    color: #d5c59f;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #0b0912, 0 5px 12px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.bag-tab:not(.on):hover::before { transform: translateX(130%); }
.bag-tab.on {
    color: #1a1208;
    background: linear-gradient(180deg, #f0d090 0%, #c9a961 100%);
    border-color: #f0d090;
    font-weight: bold;
    box-shadow: 0 2px 0 #6b5325, 0 4px 10px rgba(201, 169, 97, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.bag-tab:active,
.bag-tab.tab-pressing {
    transform: translateY(2px) scale(.98);
    filter: brightness(.88);
    box-shadow: 0 1px 0 #0b0912, inset 0 3px 8px rgba(0, 0, 0, .42);
}
.bag-tab.tab-pressing { pointer-events: none; }

/* 背包装备竖列列表（无方格） */
.bag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bag-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    background: #1a1a2e;
    border: 1px solid #2a2438;
    /* 装备统一白色左边框（不再按套装/品质改色） */
    border-left: 3px solid #ffffff;
    border-radius: 6px;
    color: #cfc5a8;
    font-size: 12.5px;
    cursor: pointer;
    text-align: left;
}
/* hover 只改其余三边，保留左侧品质／白色边框不被盖掉 */
.bag-row:hover { border-top-color: #c9a961; border-right-color: #c9a961; border-bottom-color: #c9a961; }
.bag-row.suit { border-left-color: #ffffff; }
.bag-row .br-name { flex: 1; color: #e6dcc0; }
/* 背包装备行前置的部位图标（⚔️ 武器 / ⛑️ 头部 / 👕 上衣 / 🎗️ 腰带 / 👢 鞋子 / 💍 饰品） */
.bag-row .br-icon {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
    width: 18px;
    text-align: center;
    opacity: 1;
    /* 强制走彩色 emoji 字形，避免被当成黑白符号 */
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.bag-row .br-sub { font-size: 11px; color: #6f6856; }
.bag-row .br-lock { font-size: 10px; line-height: 1; }

/* 铁匠铺修理：一行一件装备，左侧「已装备」标记 + 品质标签 */
.repair-row { gap: 10px; }
.repair-row .br-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.repair-row .br-sub { flex: 0 0 auto; white-space: nowrap; }
.repair-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #7d745e;
}
.repair-slot { font-size: 10px; color: #8a8170; }
.repair-dur {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.repair-dur-label { font-size: 9.5px; color: #6f6856; margin-right: 1px; }
.repair-dur-cur { font-weight: 700; }
.repair-dur-cur.ok { color: #7fe0a8; }
.repair-dur-cur.mid { color: #ffa96b; }
.repair-dur-cur.low { color: #ff6b6b; }
.repair-dur-sep { color: #b8ae94; margin: 0 1px; }
.repair-dur-max { color: #8fb4d8; font-weight: 600; }
/* 修理费用：亮金色高亮，与耐久数字拉开层级 */
.repair-cost {
    padding: 1px 6px;
    border: 1px solid rgba(255, 212, 120, .35);
    border-radius: 999px;
    background: rgba(232, 184, 92, .14);
    color: #ffe08a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 0 8px rgba(232, 184, 92, .1);
}
/* 强化 / 打磨行：当前等级金色高亮，上限蓝灰色 */
.forge-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.forge-stat-label { font-size: 9.5px; color: #6f6856; margin-right: 1px; }
.forge-stat-cur { color: #ffe08a; font-weight: 700; }
.forge-stat-max { color: #8fb4d8; font-weight: 600; }
/* 强化 / 打磨分组：已装备在上，背包收进可展开小分类 */
.forge-group-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 2px 5px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a99d80;
}
.forge-group-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 184, 92, .28), rgba(232, 184, 92, 0));
}
.forge-group-count {
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(232, 184, 92, .1);
    color: #8d8269;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0;
}
.forge-fold { margin-top: 8px; }
.forge-fold > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 7px 10px;
    border: 1px solid rgba(232, 184, 92, .22);
    border-radius: 8px;
    background: rgba(232, 184, 92, .055);
    color: #cfc2a2;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}
.forge-fold > summary::-webkit-details-marker { display: none; }
.forge-fold > summary::after {
    content: '＋';
    margin-left: auto;
    color: #e8b85c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.forge-fold[open] > summary { margin-bottom: 6px; }
.forge-fold[open] > summary::after { content: '－'; }
.forge-fold-count {
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(232, 184, 92, .1);
    color: #8d8269;
    font-size: 9.5px;
}
.repair-row .eq-qtag { border-width: 1px !important; }
.repair-worn-tag {
    display: inline-block;
    padding: 1px 6px;
    margin-right: 5px;
    border: 1px solid rgba(232, 184, 92, .55);
    border-radius: 999px;
    background: rgba(232, 184, 92, .12);
    color: #e8b85c;
    font-size: 10px;
    line-height: 1.4;
    vertical-align: 1px;
}
.bag-row.repair-row.selected {
    border-top-color: #e8b85c;
    border-right-color: #e8b85c;
    border-bottom-color: #e8b85c;
    background: #2a2418;
    box-shadow: inset 0 0 0 1px #e8b85c;
}
/* 商铺出售：装备一行一件竖排，名称过长时单行省略，不折成难看的双行 */
.shop-sell-eq-row .br-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-eq-meta { gap: 8px; }
.shop-eq-price { color: #e8b85c; font-weight: 700; font-size: 11px; }
/* 垂钓渔获双列：每格名称在上、重量/品质/价格在下，避免横排被挤断 */
.bag-grid.two-col.fish-grid .bag-row {
    flex-direction: column; align-items: flex-start; gap: 2px;
    min-width: 0; padding: 7px 9px;
}
.bag-grid.two-col.fish-grid .bag-row .br-name {
    flex: none; width: 100%; font-size: 12px; line-height: 1.35;
    white-space: normal; word-break: break-all;
}
.bag-grid.two-col.fish-grid .bag-row .br-sub { font-size: 10px; line-height: 1.35; }

.bag-sec { margin-bottom: 14px; }
.bag-sec h4 {
    font-size: 13px; color: #c9a961; margin-bottom: 6px;
    border-left: 3px solid #c9a961; padding-left: 6px;
}
.bag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}
.bag-tile {
    position: relative;
    min-height: 74px;
    padding: 6px 4px;
    background: #1a1a2e;
    border: 1px solid #2a2438;
    /* 道具 / 材料 / 宝石统一左侧品质边框：默认白色（普通），运行时按品质改色 */
    border-left: 3px solid #ffffff;
    border-radius: 8px;
    color: #cfc5a8;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: border-color .15s, transform .1s;
    line-height: 1.25;
}
/* hover 只改其余三边，保留左侧品质边框色 */
.bag-tile:hover { border-top-color: #c9a961; border-right-color: #c9a961; border-bottom-color: #c9a961; transform: translateY(-1px); }
.bag-tile:active { transform: translateY(0); }
/* NPC 弹窗中 bag-tile 的选中高亮（原 .select-item.selected 效果） */
.bag-tile.selected { border-color: #e8b85c; background: #2a2418; box-shadow: 0 0 0 1px #e8b85c inset; }
.bag-tile.suit { border-color: #3a78b8; box-shadow: 0 0 6px rgba(58,120,184,.35) inset; }
/* 强化 / 打磨选装备：已穿戴装备的高亮徽标 */
.bag-tile.is-worn {
    box-shadow: inset 0 0 0 1px rgba(79,214,149,.58), inset 0 0 10px rgba(79,214,149,.12);
}
.bag-tile .bt-worn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    color: #062116;
    background: linear-gradient(180deg, #a8ffd4 0%, #4fd695 100%);
    border: 1px solid #c8ffe5;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .4px;
    white-space: nowrap;
    box-shadow: 0 0 7px rgba(79,214,149,.52), inset 0 1px 0 rgba(255,255,255,.55);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.bag-tile .bt-name { font-size: 12px; color: #e6dcc0; }
.bag-tile .bt-sub { font-size: 10px; color: #6f6856; margin-top: 2px; }
.bag-tile .bt-count {
    position: absolute;
    right: 4px; bottom: 2px;
    font-size: 11px; color: #e8b85c; font-weight: bold;
}
.bag-empty { color: #5f594a; font-size: 12.5px; padding: 4px 2px; grid-column: 1 / -1; }

/* 横排两列紧凑排列：每行两件，中间细分隔线，隐藏图标以节省空间 */
.bag-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.bag-grid.two-col > .bag-tile:nth-child(odd):not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18%; bottom: 18%; right: -5px;
    width: 1px;
    background: rgba(201, 169, 97, .22);
}
.bag-tile.compact {
    min-height: 32px;
    padding: 5px 9px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-align: left;
    border-radius: 6px;
}
.bag-tile.compact .bt-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bag-tile.compact .bt-sub { margin-top: 0; font-size: 10px; }
.bag-tile.compact .bt-count {
    position: static;
    margin-left: auto;
    font-size: 12px;
    color: #e8b85c;
    white-space: nowrap;
    flex: 0 0 auto;
}
.bag-tile.compact .bt-lock { position: static; font-size: 10px; }

/* 商铺购买：只显示名称与售价，点击查看详情 */
.shop-buy-tile { cursor: pointer; }
.shop-buy-tile:hover { border-color: rgba(232, 184, 92, .55); }

/* 商铺出售装备：给品质标签留出换行空间，避免标签把装备名挤掉 */
.bag-tile.compact.shop-eq-tile { min-height: 40px; align-items: flex-start; }
.bag-tile.compact.shop-eq-tile .bt-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
}
.bag-tile.compact.shop-eq-tile .eq-qtag {
    margin-left: 0;
    margin-right: 3px;
    border-width: 1px !important;
}
.bag-tile.compact.shop-eq-tile .bt-count { padding-top: 1px; }
/* 仓库/存入装备：品质标签保留明显品质描边和底色；非紧凑格子允许名字换行 */
.bag-tile.shop-eq-tile .eq-qtag { border-width: 1px !important; }
.bag-tile.shop-eq-tile:not(.compact) .bt-name {
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
}
.bag-tile.shop-eq-tile:not(.compact) .eq-qtag {
    margin-left: 0;
    margin-right: 3px;
}
.shop-buy-tile .bt-price {
    margin-left: auto;
    font-size: 12px;
    color: #e8b85c;
    white-space: nowrap;
}

/* 购买详情：数量加减 */
.shop-buy-panel .shop-qty-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}
.shop-buy-panel .qty-btn {
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(201, 169, 97, .45);
    background: rgba(201, 169, 97, .12);
    color: #f0e6cf;
    font-size: 12px;
}
.shop-buy-panel .qty-num {
    min-width: 46px;
    text-align: center;
    font-size: 15px;
    color: #f0c674;
    background: rgba(0, 0, 0, .25);
    border-radius: 6px;
    padding: 3px 6px;
}

/* 可折叠分区标题 */
.bag-sec .sec-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: #15151f;
    border: 1px solid #2a2438;
    border-radius: 6px;
    color: #c9a961;
    font-size: 13px;
    cursor: pointer;
}
.bag-sec .sec-toggle .sec-arrow { font-size: 11px; color: #8f8672; }
.bag-sec .sec-body.hidden { display: none; }

/* 锁定标识（图标右上角小锁） */
.bag-tile .bt-lock {
    position: absolute;
    right: 3px; top: 2px;
    font-size: 10px;
    line-height: 1;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.8));
}

/* 背包装备排序切换 */
.bag-sort {
    display: flex;
    gap: 6px;
    margin: 6px 0 8px;
}
.bag-sort .sort-btn {
    flex: 1;
    padding: 5px 0;
    font-size: 12px;
    color: #8f8672;
    background: #15151f;
    border: 1px solid #2a2438;
    border-radius: 6px;
    cursor: pointer;
}
.bag-sort .sort-btn.on {
    color: #1a1208;
    background: linear-gradient(180deg, #e8c67c, #c9a961);
    border-color: #e8c67c;
    font-weight: bold;
}

/* ================= 背包道具页小分类 ================= */
.bag-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 10px;
}
.bag-subtab {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    color: #8f8672;
    background: #15151f;
    border: 1px solid #2a2438;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: color .14s, border-color .14s, background .14s, transform .1s;
}
.bag-subtab span {
    min-width: 18px;
    padding: 0 4px;
    color: #6f6856;
    background: rgba(255, 255, 255, .03);
    border-radius: 8px;
    font-size: 10px;
    text-align: center;
}
.bag-subtab:hover {
    color: #d5c59f;
    border-color: #665530;
}
.bag-subtab.on {
    color: #f0c674;
    background: linear-gradient(180deg, #2a2418, #201c14);
    border-color: #c9a961;
    font-weight: bold;
    box-shadow: inset 0 0 0 1px rgba(240, 198, 116, .22);
}
.bag-subtab.on span { color: #f0c674; background: rgba(240, 198, 116, .12); }
.bag-subtab.tab-pressing {
    transform: translateY(1px) scale(.98);
    filter: brightness(.9);
    pointer-events: none;
}
.bag-subhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0 7px;
    padding-left: 7px;
    border-left: 3px solid #c9a961;
}
.bag-subhead .bsh-name { font-size: 13px; color: #f0c674; font-weight: 600; }
.bag-subhead .bsh-count { font-size: 10.5px; color: #6f6856; }

/* 装备对比数值升降 */
.cmp-up { color: #7ddb8a; }
.cmp-down { color: #e07070; }
.cmp-same { color: #6f6856; }

/* ================= 商铺 / 珠宝店 / 铁匠铺 ================= */
.shop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #2a2438;
    border-radius: 8px;
    background: #1a1a2e;
    margin-bottom: 6px;
    font-size: 12.5px;
}
.shop-item .si-info { flex: 1; color: #cfc5a8; }
.shop-item .si-info small { display: block; color: #7d745e; font-size: 11px; }
.shop-item .si-tag { color: #7d745e; font-size: 11px; flex: none; }

/* 任务面板 / NPC 委托 */
.set-tip {
    color: #7d745e;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.6;
}
/* 光环列表：紧凑行 + 图标 + 层次（名称 > 效果 > 剩余） */
.aura-list { display: flex; flex-direction: column; gap: 7px; }
.aura-item {
    position: relative;
    padding: 7px 10px 8px 12px;
    border-radius: 9px;
    background: linear-gradient(180deg, #1e1d33 0%, #191827 100%);
    border: 1px solid #322c45;
    border-left: 2px solid #8a6f2f;
}
.aura-head {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 统一符号 ✦：放大 + 金色发光（和右侧栏「光环」按钮同一套观感，带缓慢呼吸） */
.aura-ico {
    flex: none;
    font-size: 20px;
    line-height: 1;
    color: #f0c674;
    text-shadow: 0 0 8px rgba(240, 198, 116, .9), 0 0 16px rgba(240, 198, 116, .5);
    animation: sqGlow 2.6s ease-in-out infinite;
}
.aura-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #f0d27a;
    cursor: pointer;
    text-shadow: 0 1px 0 #000;
}
.aura-name:active { color: #fff; }
/* 剩余/永久：小胶囊标签 */
.aura-remain {
    flex: none;
    font-size: 10px;
    line-height: 1.4;
    color: #cdbb8d;
    background: #2a2340;
    border: 1px solid #453a63;
    border-radius: 999px;
    padding: 1px 7px;
}
.aura-eff {
    margin-top: 5px;
    padding-left: 20px;
    font-size: 11px;
    line-height: 1.55;
}
/* 「【效果】」前缀：统一金色，和名称呼应 */
.aura-eff-label { color: #e6c96e; font-size: 11px; font-weight: 700; }
.aura-eff-val { color: #a9a3bb; }
/* 详情页顶部：大图标 + 名称 + 副标题 */
.aura-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: radial-gradient(120px 60px at 18% 50%, rgba(240, 210, 122, .16), transparent 70%), #1d1c2f;
    border: 1px solid #3a3352;
}
.aura-hero-ico {
    flex: none;
    font-size: 30px;
    line-height: 1;
    color: #f0c674;
    text-shadow: 0 0 10px rgba(240, 198, 116, .95), 0 0 22px rgba(240, 198, 116, .6), 0 0 36px rgba(240, 198, 116, .3);
    animation: sqGlow 2.6s ease-in-out infinite;
}
.aura-hero-txt { min-width: 0; }
.aura-hero-name {
    font-size: 15px;
    font-weight: 700;
    color: #f0d27a;
    letter-spacing: .4px;
    text-shadow: 0 1px 0 #000;
}
.aura-hero-sub {
    margin-top: 3px;
    font-size: 11px;
    color: #8a8296;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 详情页整行效果（左对齐，不右对齐到边） */
.aura-eff-line {
    margin: 2px 0 8px;
    padding-left: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #b9b2c9;
}
.aura-eff-line b { color: #f0c674; font-weight: 700; }
/* 说明行：标签带小图标，正文更暗一档，弱于效果 */
.detail-row.aura-sub { border-bottom: none; align-items: flex-start; }
.aura-sub > span:first-child {
    flex: none;
    width: 62px;
    font-size: 12px;
    color: #9c927a;
}
/* 说明标签前的小符号，同样发光但小一号 */
.aura-dot {
    font-style: normal;
    font-size: 14px;
    margin-right: 2px;
    color: #f0c674;
    text-shadow: 0 0 6px rgba(240, 198, 116, .85), 0 0 12px rgba(240, 198, 116, .45);
}
.aura-sub-val {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
    color: #8e8899;
    white-space: normal;
}
.quest-item { align-items: flex-start; }
.quest-item .si-info { line-height: 1.6; }
.q-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.npc-head {
    font-size: 13.5px;
    color: #d8c0e8;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #2a2438;
}
/* 任务 NPC 的对话（会用玩家昵称称呼） */
.npc-say {
    font-size: 13px;
    line-height: 1.7;
    color: #a9c8e8;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(40, 48, 62, 0.55);
    border-left: 2px solid #4f7099;
}
.npc-say-name {
    color: #f0c674;
    font-weight: 700;
    margin-right: 2px;
}
.act-btn.ghost {
    background: transparent;
    border-color: #3a3226;
    color: #8f866f;
}

.select-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #2a2438;
    border-radius: 8px;
    background: #1a1a2e;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: #cfc5a8;
    min-height: 46px;
}
.select-item.selected { border-color: #e8b85c; background: #2a2418; box-shadow: 0 0 0 1px #e8b85c inset; }
.select-item .si-tag { color: #7d745e; font-size: 11px; flex: none; }
.select-item .si-info { flex: 1; word-break: break-all; }

.hole-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.hole-chip {
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #a89e86;
    font-size: 12px;
}
.hole-chip.selected { border-color: #e8b85c; color: #e8b85c; }
.hole-chip.filled { border-color: #3d6a7a; color: #8fd3e8; }
.hole-chip.locked { opacity: 0.35; }

/* ================= 设置开关（方格样式） ================= */
/* 折叠分组：江湖见闻显示 */
.set-group {
    margin: 4px 0 8px;
    border: 1px solid #2e2840;
    border-radius: 8px;
    overflow: hidden;
}
.set-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    background: #1c1a2a;
    color: #e8d7a8;
    font-size: 13.5px;
    cursor: pointer;
}
.set-group-head:active { background: #241f33; }
.set-caret { color: #c9a961; font-size: 11px; }
.set-group-body { padding: 0 10px; }
.set-group-body.hidden { display: none; }
.set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px dashed #232033;
    cursor: pointer;
}
.set-row .set-label { font-size: 14px; color: #d8cfb4; }
.set-row .set-desc { font-size: 11px; color: #7d745e; margin-top: 2px; }
.switch {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #2a2438;
    border: 2px solid #3a3226;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.switch::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.18s;
}
.switch.on { background: #2f5a34; border-color: #4a7a4a; }
.switch.on::after { background: #9ce0a8; }

/* ================= 战斗弹窗 ================= */
.battle-card { max-width: 480px; }
.battle-top {
    padding: 14px 14px 10px;
    border-bottom: 1px solid #2a2438;
}
.battle-monster {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #ff9c9c;
    font-weight: 600;
}
.bm-lv { font-size: 12px; color: #7d745e; font-weight: 400; }
/* 环境增强提示：怪物名称下方，说明深夜 / 天气原因与实际全属性加成 */
.bm-weather-buff {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 3px 8px;
    border: 1px solid rgba(240, 198, 116, 0.35);
    border-left: 3px solid #f0c674;
    border-radius: 5px;
    background: rgba(201, 169, 97, 0.1);
    color: #f0c674;
    font-size: 12px;
    line-height: 1.45;
}
.bm-weather-buff.hidden { display: none; }
.bm-weather-buff .bm-weather-reason { color: #ffd98a; font-weight: 600; }
.bm-weather-buff .bm-weather-sep { color: #8d7a4e; }
.bm-weather-buff .bm-weather-pct { color: #ffb05e; font-weight: 700; }
/* 怪物战斗特性：最多 5 枚标签，每条独立 5% 触发 */
.bm-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 8px;
}
.bm-trait {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid #5b4726;
    background: linear-gradient(180deg, #332915, #241d10);
    color: #e8cf8a;
    box-shadow: inset 0 1px 0 rgba(255, 231, 160, .08);
    cursor: help;
}
.bm-trait.resist {
    border-color: #2f5442;
    background: linear-gradient(180deg, #1c3026, #14231b);
    color: #9fd7b0;
    box-shadow: inset 0 1px 0 rgba(180, 255, 205, .08);
}
.hp-wrap { position: relative; }
.hp-track {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: #221f33;
    overflow: hidden;
}
/* 受击时只让“剩余血量”填充段剧烈震动，空槽与背景保持静止 */
.hp-fill.hp-damage-shake {
    animation: hpRemainderShake .42s cubic-bezier(.18, .78, .2, 1);
    will-change: transform, filter;
}
.hp-track.hp-heal {
    box-shadow: 0 0 0 1px rgba(132, 232, 146, .7), 0 0 12px rgba(88, 210, 110, .42);
}
.hp-track.hp-heal::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(172, 255, 184, .58), transparent);
    animation: hpHealGlow .45s ease-out;
}
.hp-heal-point {
    position: absolute;
    z-index: 3;
    top: -2px;
    bottom: -2px;
    width: 34px;
    margin-left: -17px;
    border-radius: 6px;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(214, 255, 218, .96), rgba(96, 230, 116, .52) 45%, transparent 75%);
    box-shadow: 0 0 12px rgba(105, 236, 126, .85);
    animation: hpHealPointBloom .42s ease-out;
}
/* 飘血 / 回血数字：在血条正上方浮起 */
.hp-float-layer {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: calc(100% + 1px);
    height: 0;
    pointer-events: none;
}
.hp-float-num {
    position: absolute;
    bottom: 0;
    transform: translate(-50%, 4px);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    animation: hpFloatUp .78s cubic-bezier(.15, .72, .25, 1) forwards;
}
.hp-float-num.dmg {
    color: #ffe0c2;
    text-shadow: 0 1px 0 #4d1710, 0 0 8px rgba(255, 82, 44, .85);
}
.hp-float-num.heal {
    color: #b8ffc2;
    text-shadow: 0 1px 0 #0d3d16, 0 0 8px rgba(88, 232, 112, .85);
}
@keyframes hpRemainderShake {
    0% { transform: translateX(0); filter: brightness(1); }
    9% { transform: translateX(-12px) translateY(2px); filter: brightness(2.15); }
    19% { transform: translateX(12px) translateY(-2px); filter: brightness(1.75); }
    30% { transform: translateX(-10px) translateY(1px); }
    42% { transform: translateX(9px); }
    55% { transform: translateX(-7px); }
    68% { transform: translateX(5px); }
    82% { transform: translateX(-3px); }
    92% { transform: translateX(1px); filter: brightness(1.15); }
    100% { transform: translateX(0); filter: brightness(1); }
}
@keyframes hpHealGlow {
    0% { opacity: .2; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes hpHealPointBloom {
    0% { opacity: 0; transform: scale(.5); }
    30% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.45); }
}
@keyframes hpFloatUp {
    0% { opacity: 0; transform: translate(-50%, 5px) scale(.72); }
    16% { opacity: 1; transform: translate(-50%, -2px) scale(1.16); }
    40% { opacity: 1; transform: translate(-50%, -9px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -25px) scale(.94); }
}
/* ===== 连战：场景怪物震卡 + 顶部自身 HP 震感 / 飘字 ===== */
.combat-float-layer {
    position: fixed;
    z-index: 10000;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.combat-float-num {
    position: absolute;
    transform: translate(-50%, 4px);
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    animation: combatFloatUp .82s cubic-bezier(.15, .72, .25, 1) forwards;
}
.combat-float-num.dmg {
    color: #ffe0c2;
    text-shadow: 0 1px 0 #4d1710, 0 0 9px rgba(255, 82, 44, .9);
}
.combat-float-num.heal {
    color: #b8ffc2;
    text-shadow: 0 1px 0 #0d3d16, 0 0 9px rgba(88, 232, 112, .9);
}
.res-chip.monster.chip-hit {
    animation: chipHitShake .38s cubic-bezier(.18, .8, .2, 1);
    box-shadow: 0 0 0 1px rgba(255, 92, 62, .8), 0 0 14px rgba(255, 72, 42, .5);
}
#sb-hp.top-hp-hit .hp-fill {
    animation: topHpFillShake .42s cubic-bezier(.18, .8, .2, 1);
    will-change: transform, filter;
}
#sb-hp.top-hp-hit .hp-bar {
    box-shadow: 0 0 0 1px rgba(255, 88, 62, .85), 0 0 12px rgba(230, 50, 34, .5);
}
#sb-hp.top-hp-heal .hp-fill {
    animation: topHpHealPulse .5s ease-out;
}
#sb-hp.top-hp-heal .hp-bar {
    box-shadow: 0 0 0 1px rgba(110, 230, 132, .75), 0 0 12px rgba(80, 210, 105, .42);
}
@keyframes chipHitShake {
    0% { transform: translate(0, 0) rotate(0); }
    14% { transform: translate(-6px, 1px) rotate(-1deg); }
    29% { transform: translate(6px, -1px) rotate(1deg); }
    45% { transform: translate(-5px, 0) rotate(-.8deg); }
    62% { transform: translate(4px, 0) rotate(.6deg); }
    80% { transform: translate(-2px, 0); }
    100% { transform: translate(0, 0) rotate(0); }
}
@keyframes topHpFillShake {
    0% { transform: translateX(0); filter: brightness(1); }
    12% { transform: translateX(-7px); filter: brightness(1.9); }
    25% { transform: translateX(7px); filter: brightness(1.55); }
    38% { transform: translateX(-6px); }
    52% { transform: translateX(5px); }
    68% { transform: translateX(-3px); }
    84% { transform: translateX(2px); }
    100% { transform: translateX(0); filter: brightness(1); }
}
@keyframes topHpHealPulse {
    0% { filter: brightness(1); }
    30% { filter: brightness(1.75) saturate(1.25); }
    100% { filter: brightness(1); }
}
@keyframes combatFloatUp {
    0% { opacity: 0; transform: translate(-50%, 4px) scale(.72); }
    15% { opacity: 1; transform: translate(-50%, -3px) scale(1.2); }
    42% { opacity: 1; transform: translate(-50%, -11px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -28px) scale(.94); }
}
.hp-fill { height: 100%; width: 100%; transition: width 0.2s; }
.hp-fill.monster { background: linear-gradient(90deg, #a83b3b, #e05c5c); }
.hp-fill.player { background: linear-gradient(90deg, #2f7a3a, #6fd07a); }
.hp-text { font-size: 11px; color: #7d745e; text-align: right; margin-top: 3px; }
.battle-self {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #8fe08a;
}
.battle-self .hp-wrap { flex: 1; min-width: 0; }
.battle-self .hp-track { flex: 1; }
.battle-log {
    height: 200px;             /* 加长：原 150px → 200px，最低能显示 8+ 行完整回合 */
    overflow-y: auto;
    padding: 6px 14px 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #a89e86;
    background: #101019;
}
/* 副本战斗隐藏逃跑按钮（无逃跑功能） */
.battle-modal.in-dungeon #btn-flee { display: none; }
.battle-log .bl-line { padding: 1px 0; }
.battle-log .bl-line.hit { color: #e8c46a; }
.battle-log .bl-line.hurt { color: #ff8f8f; }
.battle-potions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px;
}
.battle-potions:empty { padding: 0; }
.battle-potions.hidden { display: none; }
.potion-btn {
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #9ce0a8;
    font-size: 12px;
}
.potion-btn:disabled { opacity: 0.4; }
.battle-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 14px 16px;
}
.battle-btn {
    min-height: 50px;
    border-radius: 10px;
    border: 1px solid #4a3f2a;
    font-size: 15px;
    font-weight: 600;
    background: #221f33;
    color: #d8cfb4;
}
.battle-btn.attack { background: #3a2418; border-color: #a86a3a; color: #ffc98a; }
.battle-btn.potion { background: #18301c; border-color: #4a7a4a; color: #9ce0a8; }
.battle-btn.flee { background: #241a2e; border-color: #5a4a7a; color: #c0a8e8; }
.battle-btn:disabled { opacity: 0.4; }
.battle-btn.attacking {
    background: #5a4a18 !important;
    border-color: #d4b04a !important;
    color: #fff3a8 !important;
    box-shadow: 0 0 12px rgba(212, 176, 74, 0.35) inset;
    opacity: 1 !important;
}
.battle-btn.flee.fleeing {
    background: #34264a !important;
    border-color: #9a7ad8 !important;
    color: #e8dcff !important;
    box-shadow: 0 0 12px rgba(154, 122, 216, 0.35) inset;
    opacity: 1 !important;
}
.battle-btn:active { transform: scale(0.97); }

/* ================= 开始界面 ================= */
.home-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, #1c1c32, #08080e 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 20px 12px max(14px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 300;
}
.home-screen.hidden { display: none; }
.home-inner {
    width: 100%;
    max-width: 720px;
    min-height: calc(100vh - 34px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: clamp(28px, 6vh, 64px);
    padding: 8px 0 18px;
}
.home-inner h1 {
    color: #e8b85c;
    font-size: 46px;
    letter-spacing: 12px;
    text-shadow: 0 0 24px rgba(232, 184, 92, 0.35);
    margin-bottom: 10px;
}
.home-sub { color: #7d745e; letter-spacing: 5px; font-size: 12px; margin-bottom: 40px; }
.enter-btn {
    min-height: 54px;
    padding: 0 44px;
    border-radius: 28px;
    border: 1px solid #c9a961;
    background: linear-gradient(180deg, #3a2e18, #241c10);
    color: #f0c674;
    font-size: 17px;
    letter-spacing: 3px;
}
.enter-btn:active { background: #4a3a20; }

/* ============ 创建角色界面（新玩家首次进入） ============ */
.creator-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, #1c1c32, #07070c 72%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 14px 34px;
    z-index: 400;
}
.creator-screen.hidden { display: none; }
.creator-card {
    width: min(94vw, 460px);
    margin: auto;
    padding: 22px 18px 20px;
    border-radius: 16px;
    border: 1px solid #6b5a33;
    background: rgba(18, 16, 24, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}
.creator-title {
    color: #e8b85c;
    font-size: 26px;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 0 0 18px rgba(232, 184, 92, 0.3);
}
.creator-sub {
    color: #7d745e;
    font-size: 12px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 18px;
}
.creator-sec { margin-bottom: 18px; }
.creator-sec-head {
    color: #f0c674;
    font-size: 15px;
    letter-spacing: 2px;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #3a3244;
}
.creator-desc { color: #9c927a; font-size: 12.5px; margin-bottom: 8px; }
.creator-name-row { display: flex; gap: 8px; align-items: stretch; }
/* 创建界面里名字前的装饰图标（跟随选中的出身身份） */
.creator-avatar {
    flex: none;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #4a4436;
    background: #0e0d14;
    color: #f0c674;
}
/* 出身身份选项：图标 + 名称 */
.creator-opt-av { display: flex; align-items: center; justify-content: center; gap: 6px; }
.creator-opt-ico { font-size: 16px; line-height: 1; }
.creator-opt-name { letter-spacing: 2px; }
/* 头像形象（男/女）切换 */
.creator-sex-row { display: flex; gap: 8px; margin-top: 8px; }
.creator-sex {
    flex: 1;
    min-height: 36px;
    border-radius: 9px;
    border: 1px solid #423a2c;
    background: rgba(28, 25, 36, .9);
    color: #b8ad93;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
}
.creator-sex.selected { border-color: #e6c96e; color: #f0c674; background: #2f2a1e; }
.creator-input {
    flex: 1;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #4a4436;
    background: #0e0d14;
    color: #f0e6d2;
    font-size: 15px;
    letter-spacing: 1px;
    outline: none;
}
.creator-input:focus { border-color: #c9a961; box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.15); }
/* 昵称含敏感词 / 超长 / 非法字符：输入框与提示一起转红，同时禁用【踏入江湖】 */
.creator-input.bad { border-color: #d5534b; box-shadow: 0 0 0 2px rgba(213, 83, 75, 0.18); }
.creator-input.bad:focus { border-color: #d5534b; box-shadow: 0 0 0 2px rgba(213, 83, 75, 0.28); }
.creator-mini-btn {
    min-width: 64px;
    border-radius: 10px;
    border: 1px solid #6b5a33;
    background: linear-gradient(180deg, #33291a, #201a10);
    color: #f0c674;
    font-size: 14px;
    letter-spacing: 2px;
}
.creator-mini-btn:active { background: #453722; }
.creator-tip { margin-top: 7px; color: #8f8770; font-size: 11.5px; line-height: 1.6; }
/* 敏感词提示红字 */
.creator-tip.bad { color: #f0716a; font-weight: 600; }
.creator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.creator-opt {
    min-height: 46px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid #423a2c;
    background: rgba(28, 25, 36, 0.9);
    color: #d8c8a6;
    font-size: 14px;
    letter-spacing: 2px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.creator-opt:active { background: #2f2a1e; }
.creator-opt.selected {
    border-color: #e8b85c;
    background: linear-gradient(180deg, #3d3018, #241c10);
    color: #ffd98a;
    box-shadow: 0 0 12px rgba(232, 184, 92, 0.25) inset;
}
.creator-start {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border-radius: 25px;
    border: 1px solid #c9a961;
    background: linear-gradient(180deg, #3a2e18, #241c10);
    color: #f0c674;
    font-size: 16px;
    letter-spacing: 4px;
    opacity: 0.5;
}
.creator-start.ready { opacity: 1; box-shadow: 0 0 18px rgba(232, 184, 92, 0.22); }
.creator-start:disabled { cursor: not-allowed; }
.creator-start:active:not(:disabled) { background: #4a3a20; }
.creator-final-card { text-align: center; }
.creator-final-text {
    color: #e6dcc6;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 1px;
    margin: 10px 0;
}
/* 提示卡首行里的玩家昵称：金色高亮，直接接在句首，不带括号 */
.creator-final-name {
    color: #ffd777;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 200, 90, .35);
}
.creator-final-card .creator-start { margin-top: 18px; opacity: 1; }

/* ---- 开始页：更新公告 ---- */
.home-links { display: flex; gap: 14px; justify-content: center; margin-top: 16px; }
.home-link {
    padding: 7px 16px;
    border-radius: 16px;
    border: 1px solid #4a4436;
    background: none;
    color: #b8a887;
    font-size: 12px;
    letter-spacing: 1px;
}
.home-link:active { background: #2a2519; }

/* 健康游戏忠告：开始页固定展示全文 */
.health-advisory {
    width: min(100%, 880px);
    margin: 18px auto clamp(167px, calc(6.5vh + 123px), 210px);
    padding: 21px 26px 23px;
    border: 1px solid rgba(201, 169, 97, 0.38);
    border-radius: 12px;
    background: rgba(14, 13, 20, 0.86);
    box-shadow: 0 9px 28px rgba(0, 0, 0, 0.34);
    text-align: center;
    flex: 0 0 auto;
}
.ha-title {
    margin-bottom: 13px;
    color: #e8b85c;
    font-size: 19.5px;
    font-weight: bold;
    letter-spacing: 6px;
    text-align: center;
}
.ha-text p {
    margin: 2px 0;
    color: #e0d4b8;
    font-size: 19px;
    line-height: 2.1;
    letter-spacing: 1px;
    text-align: center;
}
@media (max-width: 520px) {
    .home-screen { padding: 16px 10px max(12px, env(safe-area-inset-bottom)); }
    .home-inner { min-height: calc(100vh - 28px); }
    .health-advisory {
        margin: 14px auto clamp(167px, calc(6.5vh + 123px), 210px);
        padding: 17px 14px 19px;
    }
    .ha-title { font-size: 18px; }
    .ha-text p { font-size: 17.5px; line-height: 2.0; letter-spacing: 0.8px; }
}
.home-update {
    width: min(92vw, 440px);
    max-height: 42vh;
    overflow-y: auto;
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #6b5a33;
    background: rgba(20, 18, 28, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
}
.home-update.hidden { display: none; }
.hu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hu-title { flex: 1; color: #f0c674; font-size: 14px; font-weight: bold; }
.hu-ver { color: #8f8770; font-size: 11px; }
.hu-close { padding: 0 4px; border: none; background: none; color: #8f8770; font-size: 16px; }
.hu-list { margin: 0 0 10px; padding-left: 18px; color: #d8d0bc; font-size: 12.5px; line-height: 1.85; }
.hu-list li { margin-bottom: 2px; }
.hu-tip {
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid rgba(90, 170, 120, 0.25);
    background: rgba(60, 120, 80, 0.12);
    color: #7ec8a0;
    font-size: 11.5px;
    line-height: 1.6;
}
.hu-ok {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border-radius: 20px;
    border: 1px solid #c9a961;
    background: linear-gradient(180deg, #3a2e18, #241c10);
    color: #f0c674;
    font-size: 14px;
    letter-spacing: 2px;
}
.hu-ok:active { background: #4a3a20; }

/* ================= Toast ================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    background: rgba(20, 20, 34, 0.95);
    border: 1px solid #4a3f2a;
    color: #e8d7a8;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 22px;
    z-index: 400;
    max-width: 86%;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.2s;
}
.toast.hidden { opacity: 0; visibility: hidden; }

/* 物品使用结果提示（中上方显示，避免遮挡底部操作区） */
.toast.toast-top {
    bottom: auto;
    top: 22%;
    transform: translateX(-50%);
}

/* ================= 七大独立副本固定页 ================= */
#game.hidden, .dungeon-screen.hidden { display: none; }
.dungeon-screen {
    height: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #2b1820 0%, #11111d 48%, #090910 100%);
    overflow: hidden;
}
.dungeon-header { text-align: center; flex: none; }
.dungeon-header h2 { color: #ff6666; font-size: 25px; letter-spacing: 3px; }
.dungeon-header p { color: #9c927a; font-size: 12px; line-height: 1.7; margin-top: 10px; }
.dungeon-status {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    padding: 12px;
    border: 1px solid #553038;
    border-radius: 9px;
    background: #1d1620;
}
#dungeon-wave { color: #f0c674; }
#dungeon-hp { color: #7ee08a; font-size: 13px; }
.dungeon-monsters { flex: 1; min-height: 0; overflow-y: auto; }
.dungeon-monster {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #393043;
    border-radius: 9px;
    background: #191824;
    opacity: .62;
}
.dungeon-monster.current { opacity: 1; border-color: #b54b55; box-shadow: 0 0 12px rgba(181, 75, 85, .2); }
.dungeon-monster.elite.current { border-color: #a86fd6; }
.dungeon-monster.boss.current { border-color: #ff7a3d; }
.dungeon-monster.defeated { opacity: .42; }
.dungeon-monster-head { display: flex; justify-content: space-between; gap: 10px; color: #e8d7a8; }
.dungeon-monster-head span { color: #c9a961; font-size: 12px; }
.dungeon-monster-info { color: #9c927a; font-size: 12px; line-height: 1.8; margin-top: 6px; }

/* ========== 泉州 D01：回合文字探索 ========== */
.dstory-wrap {
    display: flex; flex-direction: column;
    min-height: 100%; box-sizing: border-box;
    padding: 8px 2px 18px;
}
.dstory-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dstory-badge {
    padding: 4px 10px; border: 1px solid #3a3228; border-radius: 4px;
    color: #746a58; font-size: 12px; background: rgba(0,0,0,.18);
}
.dstory-badge.on { color: #ffd77a; border-color: #8d6c2f; background: rgba(141,108,47,.14); box-shadow: 0 0 10px rgba(255,215,122,.08); }
.dstory-text {
    color: #e9dcc2; font-size: 14px; line-height: 2.05;
    padding: 14px 16px; border-left: 3px solid #8d6c2f;
    background: linear-gradient(90deg, rgba(141,108,47,.12), rgba(0,0,0,.05));
    border-radius: 4px;
}
.dstory-hint { margin-top: 8px; color: #a99a7e; font-size: 12px; line-height: 1.8; }
.dstory-reward-tip { color: #8fd18b; }
.dstory-options { display: grid; gap: 10px; margin-top: 16px; }
.dstory-option {
    display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
    padding: 12px 14px; border: 1px solid #4a3d2b; border-radius: 6px;
    background: linear-gradient(180deg, #221c16, #15110e); color: #e8d7a8;
    cursor: pointer; transition: border-color .18s, transform .18s, background .18s;
}
.dstory-option:hover { border-color: #b58a3e; background: #2a2117; transform: translateY(-1px); }
.dstory-option.primary { border-color: #6f5a2e; }
.dstory-option.danger { border-color: #7d3b37; background: linear-gradient(180deg, #2a1715, #17100e); }
.dstory-option.danger:hover { border-color: #c15b4d; }
.dstory-option.subtle { opacity: .86; }
.dstory-key {
    flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #6f5a2e; border-radius: 4px; color: #ffd77a;
    font-weight: 700; font-size: 15px; background: rgba(111,90,46,.12);
}
.dstory-main { flex: 1; min-width: 0; }
.dstory-main strong { display: block; font-size: 14px; line-height: 1.6; }
.dstory-main em { display: block; margin-top: 3px; color: #a99a7e; font-size: 12px; font-style: normal; line-height: 1.7; }
.dstory-leave {
    display: block; width: 100%; margin-top: 12px; padding: 9px;
    border: 1px dashed #4a3d2b; border-radius: 5px; background: transparent;
    color: #94836a; font-size: 12px; cursor: pointer;
}
.dstory-leave:hover { color: #d8b56a; border-color: #8d6c2f; }
.dstory-loot {
    margin-top: 14px; padding: 12px 14px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    border: 2px solid rgba(226,186,90,.62); border-left: 4px solid #f0c45c;
    border-radius: 7px;
    background: linear-gradient(100deg, rgba(160,117,38,.30), rgba(70,49,18,.16) 58%, rgba(0,0,0,.10));
    color: #f4e3b3; font-size: 14px; line-height: 1.8;
    box-shadow: 0 0 0 1px rgba(240,196,92,.10) inset, 0 0 18px rgba(240,196,92,.16);
}
.dstory-loot-title { color: #ffe08a; font-weight: 800; font-size: 14px; letter-spacing: .8px; white-space: nowrap; text-shadow: 0 0 10px rgba(255,205,90,.35); }
.dstory-loot-items { display: flex; flex-wrap: wrap; gap: 6px; }
.dstory-loot-item {
    padding: 3px 9px; border-radius: 4px;
    border: 1px solid rgba(240,196,92,.5);
    background: rgba(240,196,92,.16); color: #fff0c9;
}
.dstory-loot-item b { color: #ffd76a; margin-left: 2px; }
.dstory-loot-empty { color: #a99269; }
.dstory-foot { margin-top: auto; padding-top: 12px; }

/* 副本按钮统一按压反馈：普通按钮 0.1 秒；剧情分支选项 1 秒，不显示读秒文字 */
.dungeon-fight, .dungeon-exit, .mode-btn, .dstory-option, .dungeon-enter-entry-btn,
.dungeon-confirm-btn, .dungeon-back-btn {
    transition: transform .08s ease, filter .08s ease, border-color .18s ease, background .18s ease;
}
.dungeon-fight.pressed, .dungeon-exit.pressed, .mode-btn.pressed, .dstory-option.pressed,
.dungeon-enter-entry-btn.pressed, .dungeon-confirm-btn.pressed, .dungeon-back-btn.pressed,
.dungeon-fight:active, .dungeon-exit:active, .mode-btn:active, .dstory-option:active {
    transform: translateY(1px) scale(.985);
    filter: brightness(.82);
}
.dungeon-fight.pressed, .dungeon-exit.pressed, .mode-btn.pressed,
.dungeon-enter-entry-btn.pressed, .dungeon-confirm-btn.pressed, .dungeon-back-btn.pressed {
    opacity: .9;
}

.dungeon-actions {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
}
.dungeon-mode-switch {
    display: flex;
    gap: 4px;
    border: 1px solid #3a3226;
    border-radius: 6px;
    padding: 3px;
    background: #101019;
    order: 0;
}
.mode-btn {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #7d745e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mode-btn.active {
    background: #3a3226;
    color: #f0c674;
}
.mode-btn.auto.active { background: #1a3a2a; color: #8fe08a; }
.mode-btn.manual.active { background: #2a1a3a; color: #c0a0e8; }
.dungeon-fight {
    border: 1px solid #a9434d;
    background: #4a1c24;
    color: #ff9c9c;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
}
.dungeon-exit {
    border: 1px solid #4a3f2a;
    background: #24202b;
    color: #d8cfb4;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
}
/* 结算详情：每只怪物掉落明细 */
.dungeon-detail-row .ddr-src { font-weight: 600; color: #e8c46a; font-size: 13px; }
.dungeon-detail-row .ddr-meta { display: flex; gap: 14px; font-size: 12px; color: #a89e86; margin-top: 2px; }
.dungeon-detail-row .ddr-items { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.dungeon-detail-row .ddr-item { font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: #1a1a2e; color: #8fe08a; }
.battle-modal.in-dungeon #btn-flee { display: none; }
.dungeon-log {
    flex: none;
    max-height: 120px;
    overflow-y: auto;
    padding: 6px 10px;
    margin-top: 6px;
    border: 1px solid #3a3226;
    border-radius: 8px;
    background: #12121e;
    font-size: 12px;
    line-height: 1.55;
    color: #a89e86;
    scrollbar-width: thin;
}
/* 文字探索：见闻面板放到选项下方、离开副本上方 */
.dstory-log-slot .dungeon-log { margin-top: 16px; }
.dungeon-log:empty { display: none; }
.dungeon-log.hidden { display: none; }
.dungeon-log .dl-line { padding: 1px 0; word-break: break-all; }
.dungeon-log .dl-line.gain { color: #8fe08a; }
.dungeon-log .dl-line.hurt { color: #ff7b7b; }
.dungeon-log .dl-line.dim { color: #7d745e; }
.dungeon-log .dl-line.win { color: #e8c46a; }
.dungeon-entry p { color: #9c927a; line-height: 1.7; margin: 8px 0 12px; }
.dungeon-suit, .dungeon-suit .br-name, .dungeon-suit .equip-name,
.equip-name.dungeon-suit, .bag-row.dungeon-suit .br-name { color: #ff6666 !important; }
.loot-name.dungeon-suit { color: #ff6666; }

/* 装备名称品质色：与品质左边框同色；副本装备仍使用 .dungeon-suit 红色 */
.eq-name-common { color: #ffffff !important; }
.eq-name-good { color: #6aa8ff !important; }
.eq-name-rare { color: #b06fd6 !important; }
.eq-name-peerless { color: #e870a0 !important; }
/* 装备品质标签：与宠物/坐骑标签同款方牌 */
.eq-qtag {
    display: inline;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 11.5px;
    line-height: inherit;
    font-weight: 400;
    white-space: nowrap;
}
/* 装备详情大标题：与宠物/坐骑详情大标签同尺寸 */
.eq-qtag.big {
    display: inline-block;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 23.4px;
}
/* 副本结算物品：可点击查看详情 */
.dungeon-reward { cursor: pointer; }

/* 大屏适配：居中窄栏，符合手机竖屏比例 */
@media (min-width: 620px) {
    #game { box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); border-left: 1px solid #1e1b2a; border-right: 1px solid #1e1b2a; }
}

/* 超矮屏压缩 */
@media (max-height: 680px) {
    .dpad { grid-template-rows: repeat(2, 46px); }
    .dpad-btn { min-height: 46px; }
    .auto-tool-btn { min-height: 46px; }
    .main-btn, .city-btn { min-height: 42px; }
    .battle-log { height: 118px; }
}

/* ================= GM 控制台 ================= */
.gm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #232033;
    font-size: 13px;
    color: #bcb39a;
}
.gm-npc-row > span:first-child { flex: 1; min-width: 0; }
.gm-npc-pos { color: #7f7866; font-size: 11.5px; }
.gm-btns {
    display: flex;
    gap: 6px;
}
.gm-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #3a3226;
    background: #1a1a2e;
    color: #d8cfb4;
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
}
.gm-input:focus { border-color: #c9a961; }
.gm-search-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.gm-search-row .gm-input { flex: 1; }
.gm-search-row .gm-qty {
    flex: none;
    width: 72px;
    text-align: center;
}
.gm-list-tip {
    color: #7d745e;
    font-size: 11.5px;
    margin-bottom: 6px;
}
.gm-items {
    max-height: 240px;
    overflow-y: auto;
}

/* GM 地图选点传送 */
.gm-map-grid {
    display: grid;
    gap: 4px;
    max-height: 320px;
    overflow: auto;
    padding: 6px;
    margin: 6px 0 8px;
    border: 1px solid #2b2638;
    border-radius: 6px;
    background: rgba(12, 16, 27, .55);
}
.gm-map-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 34px;
    padding: 3px 2px;
    border: 1px solid #343044;
    border-radius: 4px;
    background: #1c1b2c;
    color: #cfc4a0;
    cursor: pointer;
    overflow: hidden;
}
.gm-map-cell:hover {
    border-color: #c9a961;
    background: #2a2433;
}
.gm-map-cell.current {
    border-color: #ffd765;
    box-shadow: 0 0 0 1px rgba(255, 215, 101, .35), 0 0 10px rgba(255, 174, 41, .22);
}
.gm-map-cell.safe {
    background: rgba(35, 64, 57, .85);
    border-color: #3d6d5c;
}
.gm-map-cell.boss {
    background: rgba(64, 38, 32, .85);
    border-color: #7a4d3b;
}
.gm-map-cell.empty {
    border-color: #232031;
    background: rgba(18, 17, 30, .35);
    color: #3d3750;
    cursor: default;
}
.gm-map-cell.empty:hover {
    border-color: #232031;
    background: rgba(18, 17, 30, .35);
}
.gm-map-name {
    max-width: 100%;
    overflow: hidden;
    color: #d8cfb4;
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.gm-map-cell small {
    color: #7f7866;
    font-size: 8px;
    line-height: 1.1;
}
.gm-map-coord {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: #7d745e;
    font-size: 11.5px;
}
.gm-map-coord .gm-input {
    width: 74px;
    margin-bottom: 0;
    padding: 6px 8px;
}
.gm-map-tip {
    color: #7d745e;
    font-size: 11.5px;
    line-height: 1.55;
    margin-top: 6px;
}

/* ================= 宠物系统 ================= */
.pet-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 8px 0;
    font-size: 12px;
    color: #9c927a;
}
.pet-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.pet-card {
    border: 1px solid #3a3226;
    border-radius: 8px;
    background: #17172a;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.pet-card.on {
    border-color: #c9a961;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.25) inset;
}
.pet-line {
    font-size: 12.5px;
    color: #c9bf9e;
    line-height: 1.7;
}
.pet-line.dim { color: #7d745e; font-size: 12px; }
.pet-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pet-head { display: flex; align-items: center; gap: 8px; }
.pet-name { font-size: 14px; color: #e8d7a8; font-weight: 600; }
.pet-lv { margin-left: auto; color: #9c927a; font-size: 12px; }
.pet-detail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 10px;
    border-bottom: 1px dashed #2a2438;
    margin-bottom: 8px;
}
.pet-tag {
    font-size: 11.5px;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #4a3f2a;
    color: #9c927a;
}
.pet-tag.big { font-size: 13px; padding: 2px 8px; font-weight: 600; }
.pet-tag.super {
    color: #f0c674;
    border-color: #c9a961;
    background: rgba(201, 169, 97, 0.12);
}
.pet-tag.double {
    color: #ff9d5c;
    border-color: #ff7a3d;
    background: rgba(255, 122, 61, 0.16);
    box-shadow: 0 0 6px rgba(255, 122, 61, 0.35);
}
/* ---------- 稀有度标签：绝世（粉）/ 稀有（紫）/ 良好（蓝） ---------- */
.pet-tag.peerless {
    color: #ff7eb9;
    border-color: #ff4f9b;
    background: rgba(255, 79, 155, 0.16);
    box-shadow: 0 0 6px rgba(255, 79, 155, 0.35);
}
.pet-tag.rare {
    color: #c79bff;
    border-color: #a96bff;
    background: rgba(169, 107, 255, 0.16);
    box-shadow: 0 0 6px rgba(169, 107, 255, 0.3);
}
.pet-tag.good {
    color: #7bb8ff;
    border-color: #4f9bff;
    background: rgba(79, 155, 255, 0.14);
}
/* ---------- 稀有度卡片边框 ---------- */
.pet-card.rarity-peerless {
    border-color: #ff4f9b;
    box-shadow: 0 0 8px rgba(255, 79, 155, 0.25) inset;
}
.pet-card.rarity-rare {
    border-color: #a96bff;
    box-shadow: 0 0 8px rgba(169, 107, 255, 0.22) inset;
}
.pet-card.rarity-good {
    border-color: #4f9bff;
    box-shadow: 0 0 8px rgba(79, 155, 255, 0.2) inset;
}
.pet-full { color: #ff9d5c; }
.pet-skill-box {
    border-top: 1px dashed #2a2438;
    margin-top: 8px;
    padding-top: 8px;
}
.pet-skill {
    font-size: 12px;
    color: #bcb39a;
    line-height: 1.7;
    padding: 4px 0;
    border-bottom: 1px dashed #232033;
}
.pet-skill:last-child { border-bottom: none; }
.pet-skill .sk-name { color: #e8d7a8; font-weight: 600; }
.pet-skill .sk-type {
    margin-left: 6px;
    font-size: 11px;
    color: #7fae7f;
}
.pet-skill .sk-desc { display: block; color: #7d745e; font-size: 11.5px; }

/* ================= 宠物详情：灵兽面板（新版） ================= */
.pet-detail-shell {
    position: relative;
    margin: -2px 0 2px;
    padding: 12px;
    border: 1px solid rgba(201, 169, 97, .26);
    border-radius: 12px;
    background:
        radial-gradient(120% 70% at 50% -15%, rgba(201, 169, 97, .08), transparent 55%),
        linear-gradient(180deg, #171827 0%, #11121e 100%);
    box-shadow: inset 0 0 32px rgba(201, 169, 97, .045), 0 8px 22px rgba(0, 0, 0, .22);
    overflow: hidden;
}
.pet-detail-shell.q2 { border-color: rgba(79, 155, 255, .38); box-shadow: inset 0 0 30px rgba(79, 155, 255, .05); }
.pet-detail-shell.q4 { border-color: rgba(169, 107, 255, .4); box-shadow: inset 0 0 30px rgba(169, 107, 255, .07); }
.pet-detail-shell.q6 { border-color: rgba(255, 211, 106, .5); box-shadow: inset 0 0 38px rgba(255, 211, 106, .08), 0 8px 24px rgba(0, 0, 0, .28); }

.pet-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 11px;
    border: 1px solid rgba(226, 198, 125, .2);
    border-radius: 10px;
    background:
        radial-gradient(circle at 12% 30%, rgba(201, 169, 97, .17), transparent 48%),
        linear-gradient(118deg, rgba(43, 40, 47, .96), rgba(20, 21, 34, .96) 72%);
    overflow: hidden;
}
.pet-detail-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -24%;
    width: 62%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 220, 138, .075), transparent 68%);
    transform: rotate(-16deg);
    pointer-events: none;
}
.pet-detail-hero::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 132, .34), transparent);
    pointer-events: none;
}
.pet-detail-avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(237, 205, 126, .48);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 220, 140, .2), transparent 54%),
        rgba(15, 16, 27, .82);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, .55), 0 0 16px rgba(201, 169, 97, .13);
    font-size: 30px;
    line-height: 1;
}
.pet-detail-avatar-star {
    position: absolute;
    top: -8px;
    right: -5px;
    color: #ffe6a2;
    font-size: 11px;
    font-style: normal;
    text-shadow: 0 0 9px rgba(255, 215, 110, .8);
}
.pet-detail-identity {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}
.pet-detail-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pet-detail-name-row b {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .6px;
    text-shadow: 0 0 12px rgba(255, 218, 138, .16);
}
.pet-detail-status {
    flex: none;
    padding: 2px 7px;
    border: 1px solid rgba(164, 156, 132, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #a9a28e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
}
.pet-detail-status.on {
    border-color: rgba(255, 211, 106, .48);
    background: rgba(255, 211, 106, .12);
    color: #ffe08f;
    box-shadow: 0 0 10px rgba(255, 211, 106, .12);
}
.pet-detail-meta {
    margin-top: 4px;
    color: #a69d87;
    font-size: 10px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pet-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.pet-detail-tags .pet-tag { font-size: 10px; line-height: 1.5; }
.pet-detail-level {
    position: relative;
    z-index: 1;
    flex: 0 0 48px;
    min-width: 48px;
    padding-left: 9px;
    border-left: 1px solid rgba(201, 169, 97, .17);
    text-align: center;
}
.pet-detail-level span {
    display: block;
    color: #918a76;
    font-size: 8px;
    letter-spacing: 1px;
}
.pet-detail-level b {
    display: block;
    color: #ffe29b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(255, 211, 106, .22);
}
.pet-detail-level em {
    display: inline-block;
    margin-top: 1px;
    padding: 0 4px;
    border: 1px solid rgba(255, 211, 106, .3);
    border-radius: 3px;
    color: #f4d489;
    font-size: 8px;
    font-style: normal;
}

.pet-detail-talent {
    margin-top: 9px;
    padding: 9px 10px 8px;
    border: 1px solid rgba(201, 169, 97, .16);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(36, 35, 45, .62), rgba(20, 21, 33, .62));
}
.pet-detail-talent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}
.pet-detail-talent-head span {
    color: #e7d4a1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.pet-detail-talent-head em {
    color: #8f8978;
    font-size: 9px;
    font-style: normal;
}
.pet-detail-talent-head em b { color: #ffe09a; font-size: 11px; }
.pet-detail-talent-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}
.pet-detail-talent-row.wuxing { margin-bottom: 8px; }
.pet-detail-talent-label {
    color: #b9ae93;
    font-size: 10px;
}
.pet-detail-talent-track {
    position: relative;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 99px;
    background: rgba(6, 7, 12, .6);
    overflow: hidden;
}
.pet-detail-talent-track i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8d6b32, #e7c77a 62%, #ffe8aa);
    box-shadow: 0 0 8px rgba(255, 211, 106, .28);
}
.pet-detail-talent-row.wuxing .pet-detail-talent-track i {
    background: linear-gradient(90deg, #3f7d8d, #72c4d0 62%, #b8f1f4);
    box-shadow: 0 0 8px rgba(104, 208, 220, .25);
}
.pet-detail-talent-row > b {
    color: #f3d895;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}
.pet-detail-talent-row.wuxing > b { color: #a9e6ec; }
.pet-detail-talent-row > b.full { color: #ffe28d; }
.pet-detail-talent-row > b small {
    margin-left: 2px;
    color: inherit;
    font-size: 8px;
    font-weight: 400;
}
.pet-detail-exp {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding-top: 7px;
    border-top: 1px dashed rgba(201, 169, 97, .12);
}
.pet-detail-exp > span { color: #8e8775; font-size: 9px; }
.pet-detail-exp-track {
    height: 4px;
    border-radius: 99px;
    background: rgba(6, 7, 12, .65);
    overflow: hidden;
}
.pet-detail-exp-track i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #506d88, #89c3de);
}
.pet-detail-exp > b { color: #9fb7c4; font-size: 9px; font-weight: 500; white-space: nowrap; }

.pet-detail-section {
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(201, 169, 97, .14);
    border-radius: 9px;
    background: rgba(24, 25, 38, .55);
}
.pet-detail-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.pet-detail-sec-head b {
    position: relative;
    padding-left: 8px;
    color: #e7d4a1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.pet-detail-sec-head b::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 10px;
    margin-top: -5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ffe6a4, #9f7336);
    box-shadow: 0 0 6px rgba(255, 211, 106, .3);
}
.pet-detail-sec-head span { color: #837d6c; font-size: 9px; white-space: nowrap; }

.pet-detail-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}
.pet-detail-stat {
    min-width: 0;
    padding: 6px 4px 5px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    text-align: center;
    overflow: hidden;
}
.pet-detail-stat i {
    display: block;
    height: 12px;
    color: #857b62;
    font-size: 9px;
    font-style: normal;
    line-height: 1;
}
.pet-detail-stat b {
    display: block;
    margin-top: 3px;
    color: #e9dfc7;
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
}
.pet-detail-stat b small { color: #a19a87; font-size: 8px; font-weight: 400; }
.pet-detail-stat span {
    display: block;
    margin-top: 2px;
    color: #817b6b;
    font-size: 8px;
    letter-spacing: .5px;
}
.pet-detail-stat.atk b { color: #ffbe86; }
.pet-detail-stat.def b { color: #91c7ff; }
.pet-detail-stat.min b { color: #9fe3b3; }
.pet-detail-stat.dodge b { color: #bca5ff; }
.pet-detail-stat.hp b { color: #ff9d9d; }

.pet-detail-skill-list {
    display: grid;
    gap: 5px;
}
.pet-detail-skill {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
.pet-detail-skill-ico {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 97, .26);
    border-radius: 50%;
    background: rgba(201, 169, 97, .09);
    color: #f3d58f;
    font-size: 11px;
}
.pet-detail-skill-main { flex: 1; min-width: 0; }
.pet-detail-skill-name {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pet-detail-skill-name b { color: #eadcb8; font-size: 11px; font-weight: 600; }
.pet-detail-skill-name span {
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.5;
}
.pet-detail-skill-name span.active { color: #ffd88c; border-color: rgba(255, 211, 106, .3); background: rgba(255, 211, 106, .09); }
.pet-detail-skill-name span.passive { color: #9bb9c8; border-color: rgba(128, 181, 203, .24); background: rgba(128, 181, 203, .07); }
.pet-detail-skill-desc {
    margin-top: 3px;
    color: #908873;
    font-size: 9px;
    line-height: 1.55;
}
.pet-detail-empty {
    padding: 11px 9px;
    border: 1px dashed rgba(255, 255, 255, .09);
    border-radius: 7px;
    background: rgba(255, 255, 255, .018);
    color: #7d7665;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.pet-detail-feed-box {
    margin: 0;
    padding: 8px;
    border-color: rgba(201, 169, 97, .14);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(53, 50, 37, .28), rgba(31, 31, 30, .2));
}
.pet-detail-feed-box .pet-feed-note { color: #7f7968; }

.pet-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
}
.pet-detail-actions .pet-action {
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-color: rgba(201, 169, 97, .22);
    background: linear-gradient(180deg, rgba(53, 49, 40, .76), rgba(28, 28, 39, .88));
    color: #d8c9a4;
    font-size: 11px;
    line-height: 1.3;
}
.pet-detail-actions .pet-action small { color: #948b76; font-size: 8px; font-weight: 400; }
.pet-detail-actions .pet-action:hover {
    border-color: rgba(255, 211, 106, .42);
    background: linear-gradient(180deg, rgba(71, 63, 46, .82), rgba(32, 32, 44, .9));
}
.pet-detail-actions .pet-action.wash {
    grid-column: 1 / -1;
    border-color: rgba(255, 225, 139, .58);
    background: linear-gradient(180deg, #e4c777 0%, #c39a4f 56%, #a67c37 100%);
    color: #2b210f;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(201, 169, 97, .18), inset 0 1px 0 rgba(255, 246, 208, .55);
    text-shadow: 0 1px 0 rgba(255, 244, 203, .28);
}
.pet-detail-actions .pet-action.wash small { color: #4a381a; }
.pet-detail-actions .pet-action.wash:hover { filter: brightness(1.06); }
.pet-detail-actions .pet-action.on {
    border-color: rgba(255, 211, 106, .58);
    background: linear-gradient(180deg, rgba(119, 94, 44, .6), rgba(51, 45, 32, .82));
    color: #ffe29a;
    box-shadow: inset 0 0 10px rgba(255, 211, 106, .1);
}
.pet-detail-actions .pet-action.danger-light {
    border-color: rgba(197, 99, 85, .3);
    color: #dfa394;
    background: linear-gradient(180deg, rgba(85, 40, 37, .38), rgba(40, 26, 30, .65));
}
.pet-detail-actions .pet-action.ghost {
    border-color: rgba(255, 255, 255, .1);
    color: #a6a08e;
    background: rgba(255, 255, 255, .025);
}
.pet-detail-action-note {
    margin-top: 7px;
    color: #7e7765;
    font-size: 9px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 430px) {
    .pet-detail-shell { padding: 9px; }
    .pet-detail-hero { gap: 8px; padding: 10px 8px; }
    .pet-detail-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 25px; }
    .pet-detail-name-row b { font-size: 16px; }
    .pet-detail-meta { font-size: 9px; }
    .pet-detail-level { flex-basis: 40px; min-width: 40px; padding-left: 7px; }
    .pet-detail-level b { font-size: 20px; }
    .pet-detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pet-detail-stat.hp { grid-column: span 3; }
    .pet-detail-stat b { font-size: 14px; }
}


/* ================= 坐骑系统 ================= */
/* 稀有度标签：普通白 / 优秀蓝 / 稀有紫 / 史诗淡金 / 传说红 / 神话彩 */
/* 外形与宠物标签统一：4px 方角、11.5px 字、1px 6px 内边距、1px 细边框 */
.mount-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #4a3f2a;
    font-size: 11.5px;
    font-weight: 400;
    color: #9c927a;
    background: transparent;
}
.pet-head .mount-tag,
.pet-detail-head .mount-tag { margin-left: 0; }
/* 坐骑详情大标签：与宠物详情 .pet-tag.big 同尺寸 */
.mount-tag.big { font-size: 13px; padding: 2px 8px; font-weight: 600; }
/* 角色详情行：与同排宠物标签同高，宽度由【标签】内容自然撑开 */
.equip-row .mount-tag {
    display: inline;
    min-width: 0;
    text-align: center;
}
.mount-tag.common {
    color: #ffffff;
    border-color: #8a8a8a;
    background: rgba(255, 255, 255, 0.10);
}
.mount-tag.fine {
    color: #7bb8ff;
    border-color: #4f9bff;
    background: rgba(79, 155, 255, 0.16);
}
.mount-tag.rare {
    color: #c79bff;
    border-color: #a96bff;
    background: rgba(169, 107, 255, 0.16);
    box-shadow: 0 0 6px rgba(169, 107, 255, 0.3);
}
.mount-tag.epic {
    color: #ead79a;
    border-color: #c9a961;
    background: rgba(201, 169, 97, 0.18);
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.3);
}
.mount-tag.legend {
    color: #ff5a5a;
    border-color: #ff4f4f;
    background: rgba(255, 90, 90, 0.16);
    box-shadow: 0 0 6px rgba(255, 79, 79, 0.35);
}
/* 神话：彩底彩字；不支持 background-clip 的环境回退为金色文字 */
.mount-tag.myth {
    color: #ffd24d;
    border-color: #ffd24d;
    background: linear-gradient(90deg, #ff5a5a, #ffd24d, #67e8b0, #7bb8ff, #c79bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-shadow: 0 0 8px rgba(255, 210, 77, 0.45);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .mount-tag.myth {
        color: #ffd24d;
        -webkit-text-fill-color: #ffd24d;
        background: rgba(255, 210, 77, 0.18);
    }
}
/* 稀有度卡片边框 */
.mount-card.rarity-fine { border-color: #4f9bff; box-shadow: 0 0 8px rgba(79, 155, 255, 0.2) inset; }
.mount-card.rarity-rare { border-color: #a96bff; box-shadow: 0 0 8px rgba(169, 107, 255, 0.22) inset; }
.mount-card.rarity-epic { border-color: #c9a961; box-shadow: 0 0 8px rgba(201, 169, 97, 0.22) inset; }
.mount-card.rarity-legend { border-color: #ff4f4f; box-shadow: 0 0 8px rgba(255, 79, 79, 0.25) inset; }
.mount-card.rarity-myth {
    border-color: #ffd24d;
    box-shadow: 0 0 10px rgba(255, 210, 77, 0.35) inset;
}
.mount-card.rarity-common { border-color: #8a8a8a; }
/* 药草喂养按钮网格 */
.mount-feed-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}
.mount-feed-grid .act-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}
.mount-feed-grid small {
    color: #9c927a;
    font-size: 10.5px;
}

/* ================= 大区迷雾地图 ================= */
.map-btn { border-color: #2f5a6a; background: #17242e; color: #a8dbe8; }

.map-card {
    width: min(760px, 96vw);
    height: min(84vh, 900px);
    background: #0d1220;
    border: 1px solid #2f4a5a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pop 0.18s ease-out;
    position: relative;
}
.map-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #1d2b3a;
    color: #a8dbe8;
    font-size: 15px;
    font-weight: 600;
}
.map-tabs {
    flex: none;
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    border-bottom: 1px solid #131f2c;
    scrollbar-width: thin;
}
.map-tab {
    flex: none;
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid #24404f;
    background: #111b26;
    color: #7fa6b5;
    font-size: 12px;
    white-space: nowrap;
}
.map-tab.active {
    border-color: #3fa9c9;
    background: rgba(63, 169, 201, 0.18);
    color: #c9f0fb;
}
.map-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #080d18;
    touch-action: none;
}
.map-canvas-wrap canvas {
    display: block;
    cursor: grab;
    touch-action: none;
}
.map-canvas-wrap canvas:active { cursor: grabbing; }
/* 七域航线总览：只读预览，不接入原有迷雾 / 标记 / 导航 */
.map-world-view {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 22% 18%, rgba(31, 74, 96, 0.32), transparent 46%),
        radial-gradient(ellipse at 78% 82%, rgba(34, 64, 82, 0.28), transparent 52%),
        linear-gradient(155deg, #07131d 0%, #08101a 58%, #060b13 100%);
}
.map-world-view.hidden { display: none; }
.map-world-caption {
    position: absolute;
    left: 10px;
    top: 9px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #07131d;
    border: 1px solid rgba(64, 116, 136, 0.22);
    pointer-events: none;
}
.map-world-caption strong {
    color: #b9e7f2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}
.map-world-caption span {
    color: #587887;
    font-size: 10.5px;
    letter-spacing: 0.4px;
}
.map-world-svg {
    position: absolute;
    inset: 0;
    cursor: grab;
    touch-action: none;
}
.map-world-svg:active { cursor: grabbing; }
.map-world-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}
/* 放大时接管 SVG 文字，用浏览器原生文本重新排版：
 * 只覆盖在画布范围内，不改变地图尺寸，也不会超出手机屏幕。 */
.map-world-labels {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    display: none;
}
.map-world-labels.show { display: block; }
.map-world-label {
    position: absolute;
    white-space: nowrap;
    line-height: 1;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    transform-origin: left top;
}
.map-world-label span { font-family: inherit; }
.map-card.world-mode #map-canvas { display: none; }
.map-card.world-mode .map-hint,
.map-card.world-mode .map-quest-legend { display: none; }
.map-tab-world {
    border-color: #4d6a3f;
    background: #18241b;
    color: #c1dfa8;
}
.map-tab-world.active {
    border-color: #9fc66d;
    background: rgba(159, 198, 109, 0.17);
    color: #e6f5cc;
}
.map-world-info {
    color: #8ba6b2;
    font-size: 12px;
    line-height: 1.65;
}
.map-world-info b { color: #cfe7ef; font-weight: 600; }
.map-world-info .world-route-line { color: #e1c77c; }
.map-world-info .world-unknown { color: #89b9c9; }
.map-hint {
    position: absolute;
    left: 10px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(8, 13, 24, 0.72);
    color: #5f7c8a;
    font-size: 11px;
    pointer-events: none;
}
/* 大地图任务怪图例（仅在当前大区有已追踪任务怪标记时显示） */
.map-quest-legend {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, .28);
    background: rgba(8, 13, 24, 0.84);
    color: #fbbf24;
    font-size: 11px;
    line-height: 1.4;
    pointer-events: none;
}
.map-quest-legend.hidden { display: none; }
/* 大地图怪物气息图例：只在玩家附近有怪物格时显示 */
.map-monster-legend {
    position: absolute;
    right: 10px;
    bottom: 34px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(8, 13, 24, 0.84);
    color: #fca5a5;
    font-size: 11px;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .15s, background .15s, transform .15s;
}
.map-monster-legend:hover {
    border-color: rgba(248, 113, 113, 0.75);
    background: rgba(28, 16, 22, 0.92);
    transform: translateY(-1px);
}
.map-monster-legend:active { transform: translateY(0); }
.map-legend-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin-left: 2px;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #ffd1d1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: 1px;
}
.map-monster-legend.hidden { display: none; }
.map-card.world-mode .map-monster-legend { display: none; }

/* 附近怪物气息说明：从地图图例点开的轻量弹层 */
.map-aura-help {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 8, 15, 0.76);
    backdrop-filter: blur(2px);
}
.map-aura-help.hidden { display: none; }
.aura-help-card {
    width: min(420px, 100%);
    max-height: 78%;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.42);
    background:
        radial-gradient(circle at 12% 0%, rgba(127, 29, 29, 0.22), transparent 46%),
        linear-gradient(160deg, #111624 0%, #0b111c 100%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 18px rgba(248, 113, 113, 0.10);
}
.aura-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(248, 113, 113, 0.18);
    color: #ffd3d3;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}
.aura-help-body {
    padding: 12px 16px 8px;
    color: #b8c6cc;
    font-size: 12.5px;
    line-height: 1.75;
}
.aura-help-body p { margin: 0 0 8px; }
.aura-help-body strong { color: #ffd1d1; font-weight: 600; }
.aura-help-body ul {
    margin: 6px 0 10px;
    padding-left: 18px;
}
.aura-help-body li { margin: 5px 0; }
.aura-help-body li::marker { color: #f87171; }
.aura-help-ok {
    display: block;
    margin: 0 16px 14px auto;
    padding: 6px 18px;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.34);
    color: #ffe4e4;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.aura-help-ok:hover { background: rgba(153, 27, 27, 0.46); }
.map-info {
    flex: none;
    padding: 8px 12px;
    border-top: 1px solid #131f2c;
    font-size: 12.5px;
    color: #b8c6cc;
    min-height: 62px;
    max-height: 118px;
    overflow-y: auto;
}
.map-info-empty { color: #5f7c8a; font-size: 12px; padding: 6px 0; }
.map-cell-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-cell-name { color: #e8d7a8; font-size: 14px; font-weight: 600; }
.map-cell-tag {
    padding: 1px 7px;
    border-radius: 8px;
    background: #16283a;
    color: #7fd0e8;
    font-size: 11px;
}
.map-cell-coord { color: #5f7c8a; font-size: 11.5px; }
.map-cell-desc { color: #8a9aa2; font-size: 12px; margin-top: 3px; line-height: 1.5; }
.map-mark-edit { display: flex; gap: 6px; margin-top: 7px; }
.map-mark-input {
    flex: 1;
    min-width: 0;
    padding: 6px 9px;
    border-radius: 7px;
    border: 1px solid #2a3a46;
    background: #0b131c;
    color: #dbe7ea;
    font-size: 12.5px;
}
.map-mark-input::placeholder { color: #4c6470; }
.map-foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #131f2c;
}
.map-progress { margin-left: auto; color: #5f7c8a; font-size: 12px; }
.map-color-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    flex-wrap: wrap;
}
.map-color-label { color: #7fa6b5; font-size: 12px; }
.map-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
}
.map-color-dot.active { border-color: #ffffff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.map-color-input {
    width: 28px;
    height: 22px;
    padding: 0;
    border: 1px solid #2a3a46;
    border-radius: 5px;
    background: #0b131c;
}


/* ============================================================
 * 搜索 / 战利品弹窗
 * ============================================================ */
.loot-card { max-width: 440px; z-index: 140; }
.loot-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}
.loot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #1a1a2b;
    border: 1px solid #3a3226;
    border-radius: 8px;
    color: #d8cfb8;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.loot-item:hover { border-color: #c9a961; background: #22223a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28); }
.loot-item:active { transform: translateY(1px) scale(0.985); filter: brightness(0.88); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4); }
.loot-item .loot-name { flex: 1; }
.loot-item .loot-count { color: #8f866f; }
.loot-item.rarity-3 { border-color: #3f6a8f; }
.loot-item.rarity-4 { border-color: #8f5bb5; color: #cfa8e8; }
.loot-item.rarity-5 { border-color: #c9a961; color: #f0c674; box-shadow: 0 0 8px rgba(201, 169, 97, 0.25); }
.loot-empty { text-align: center; color: #8f866f; padding: 30px 0; font-size: 13px; }
.loot-tip { color: #8f866f; font-size: 13px; }
.loot-luck { color: #f0c674; font-size: 13px; }

/* 拾取按钮：0.8 秒阻尼读秒（不显示文字），按压下沉 + 内阴影反馈 */
.act-btn.loot-pick-btn {
    position: relative;
    overflow: hidden;
    border-color: #6d5b2f;
    background: linear-gradient(180deg, #3a3149 0%, #2a2438 100%);
    box-shadow: 0 3px 0 #17131f, 0 5px 14px rgba(0, 0, 0, 0.32);
    transition: transform 0.14s cubic-bezier(.2, .8, .3, 1), box-shadow 0.14s ease, filter 0.14s ease;
}
.act-btn.loot-pick-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 231, 170, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left 0.45s ease;
    pointer-events: none;
}
.act-btn.loot-pick-btn:hover::after { left: 130%; }
.act-btn.loot-pick-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 1px 0 #17131f, inset 0 2px 7px rgba(0, 0, 0, 0.42);
}
.act-btn.loot-pick-btn.is-cooling {
    transform: translateY(3px) scale(0.96);
    filter: brightness(0.78);
    box-shadow: 0 1px 0 #17131f, inset 0 4px 12px rgba(0, 0, 0, 0.58);
    pointer-events: none;
}

/* ============================================================
 * 航海跑商（码头 / 商行 / 航线 / 货船 / 航行 / 事件）
 * ============================================================ */
.sea-menu { display: flex; flex-direction: column; gap: 8px; }
.sea-opt { width: 100%; flex: none; }
.sea-desc { font-size: 12.5px; color: #bcb39a; line-height: 1.7; }
.sea-sub { font-size: 11.5px; color: #9c927a; }
.sea-sub.dim { color: #7d745e; }
.sea-gold { color: #f0c674; }
.sea-lose { color: #e07a5f; }
.sea-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #232033;
}
.sea-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sea-row-main b { color: #e8d7a8; font-size: 13px; font-weight: 600; }
.sea-row-btns { display: flex; gap: 6px; flex: none; }
.sea-input { width: 84px; padding: 6px 8px; text-align: center; color: #e8d7a8; background: #241c14; border: 1px solid #6b5637; border-radius: 6px; font-size: 13px; }
.sea-tag { font-size: 11px; color: #7d745e; }
.sea-tag.on { color: #8fe08a; }
.sea-route {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #2f2942;
    background: #1b1b2c;
    color: #d8cfb4;
    width: 100%;
}
.sea-route .sr-name { font-size: 13.5px; font-weight: 600; color: #e8d7a8; }
.sea-route .sr-sub { font-size: 11.5px; color: #9c927a; }
.sea-route.on { border-color: #c9a961; background: rgba(201, 169, 97, 0.14); }
.sea-route.off { opacity: 0.4; }
.sea-event-title {
    font-size: 16px;
    font-weight: 700;
    color: #e8b85c;
    text-align: center;
    margin-bottom: 10px;
}
.sea-event-desc {
    font-size: 13.5px;
    line-height: 1.9;
    color: #d8cfb4;
    margin-bottom: 16px;
    white-space: pre-wrap;
}
.sea-event-btns { display: flex; flex-direction: column; gap: 9px; }

/* 航行界面 · 江湖见闻滚动日志 */
.sea-log {
    max-height: 150px;
    overflow-y: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid #232033;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sea-log-line {
    font-size: 11.5px;
    line-height: 1.6;
    color: #a99f86;
    word-break: break-all;
}

/* 航行界面：与主页面同宽（最大 560px）、铺满高度、不透明、不可退出 */
.modal.sea-modal { background: #0b0b12; padding: 0; overflow: hidden; }
.modal-card.sea-full {
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 100%;
    background: #141422;
    border: none;
    border-radius: 0;
}
.modal-card.sea-full .modal-body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding: 10px 12px;
    min-width: 0;
}
/* 防止任何一行内容把弹窗撑宽（手机窄屏适配） */
.modal-card.sea-full .detail-row { gap: 10px; }
.modal-card.sea-full .detail-row span { flex: none; }
.modal-card.sea-full .detail-row b {
    min-width: 0;
    text-align: right;
    word-break: break-all;
}
.modal-card.sea-full .detail-sec,
.modal-card.sea-full .sea-menu,
.modal-card.sea-full .sea-log { min-width: 0; max-width: 100%; }
.modal-card.sea-full .sea-log {
    flex: 0 0 auto;
    max-height: 118px;
    min-height: 0;
}
/* 底部按键常驻固定，见闻再长也不会被顶出屏幕 */
.modal-card.sea-full .sea-menu-bottom {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin-top: 8px;
    padding: 8px 0 2px;
    background: #141422;
    box-shadow: 0 -10px 14px rgba(0, 0, 0, 0.45);
}
.sea-menu-bottom { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* 继续航行读秒：淡黄色按键 */
.act-btn.cooling,
.act-btn.cooling:active {
    background: #f5e2a8;
    border-color: #e6c96e;
    color: #4a3a12;
    font-weight: 600;
}
.act-btn:disabled { opacity: 1; }

/* ================= 钓鱼面板（近海 / 远海共用） ================= */
.sb-env { color: #9fd6cf; }
.fish-head { padding: 4px 2px 8px; border-bottom: 1px solid #221f33; }
.fish-title { font-size: 16px; font-weight: 700; color: #f0c674; }
.fish-env { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fish-chip { font-size: 12px; color: #b8c9e8; background: #221f33; border-radius: 4px; padding: 2px 8px; }
.fish-desc { font-size: 12px; color: #8c8474; line-height: 1.6; }
.fish-stage { padding: 10px 2px; display: flex; flex-direction: column; gap: 10px; }
.fish-label { font-size: 12px; color: #8c8474; }
.fish-hook {
    padding: 14px 10px; text-align: center;
    background: #1b1b2e; border: 1px dashed #3a3226; border-radius: 8px; color: #cfc7b4;
}
.fish-hook.hooked { color: #f0c674; border-color: #e6c96e; animation: blink 1s infinite; }
/* 抛竿见闻：上侧标题 + 中间状态文字 */
.fish-read-title { font-size: 14px; font-weight: 700; color: #f0c674; letter-spacing: 1px; }
.fish-read-text {
    padding: 14px 12px; min-height: 56px;
    background: #1b1b2e; border: 1px dashed #3a3226; border-radius: 8px;
    color: #cfc7b4; font-size: 14px; line-height: 1.8;
}
.fish-read-text.warn { color: #e08a8a; border-color: #5a3030; }
.fish-cast-text { color: #b8c9e8; font-size: 13px; line-height: 1.8; padding: 10px 12px; background: #1b1b2e; border-radius: 8px; }
.fish-history-list { display: flex; flex-direction: column; gap: 8px; }
/* 本局见闻固定高度：单行紧凑排布，预留 5 个回合的展示空间 */
.fish-log-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 204px;
    overflow-y: auto;
    padding: 8px;
    background: #141422;
    border: 1px solid #2e2a44;
    border-radius: 8px;
}
.fish-log-list .fish-tip { margin: auto; }
.fish-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.fish-history-row { padding: 10px 12px; background: #1b1b2e; border: 1px solid #2e2a44; border-radius: 8px; }
.fish-history-row.terminal { border-color: #79633a; }
.fish-history-meta, .fish-history-tags { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
/* 单行见闻：轮次 + 事件类型 + 文案压缩在同一行 */
.fish-log-row {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #1b1b2e;
    border: 1px solid #2e2a44;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}
.fish-log-row.terminal { border-color: #79633a; }
.fish-log-meta { flex: none; color: #f0c674; font-size: 12px; font-weight: 600; }
.fish-log-kind { flex: none; color: #9fd6cf; font-size: 11.5px; padding: 0 5px; border: 1px solid #2e4a48; border-radius: 3px; }
.fish-log-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cfc7b4; font-size: 12px; }
.fish-log-gain { flex: none; color: #7ee08a; font-size: 11.5px; }
.fish-waiting { display: none; }
.fish-waiting.on { display: flex; flex-direction: column; gap: 6px; }
.fish-history-meta, .fish-history-tags { color: #8c8474; font-size: 11px; }
.fish-history-tags { justify-content: flex-start; margin-top: 4px; color: #9fd6cf; }
.fish-wait-bar { height: 8px; background: #221f33; border-radius: 4px; overflow: hidden; }
.fish-wait-fill { height: 100%; width: 0; background: linear-gradient(90deg, #6aa8ff, #9fd6cf); transition: width .1s linear; }
/* 等待读秒时进度条轻微呼吸，提示还在等鱼讯 */
.fish-waiting.on .fish-wait-bar { animation: fishWaitPulse 1s ease-in-out infinite; }
/* 终局上鱼反馈：面板与进度条抖动，渔获卡片亮起 */
#modal-body.fish-bite .fish-stage { animation: fishBiteShake .42s cubic-bezier(.36,.07,.19,.97); }
#modal-body.fish-bite .fish-card { animation: fishCatchGlow .52s ease-out; }
#modal-body.fish-bite-big .fish-stage { animation: fishBiteShakeBig .52s cubic-bezier(.36,.07,.19,.97); }
#modal-body.fish-bite-big .fish-card {
    animation: fishCatchGlowBig .62s ease-out;
    box-shadow: 0 0 16px rgba(230, 201, 110, .55), inset 0 0 0 1px rgba(230, 201, 110, .35);
}
/* 抛竿 / 等待 / 继续垂钓按键按下反馈 */
.fish-main.fish-pressed { transform: scale(.97); filter: brightness(1.12); }
.fish-main { transition: transform .12s ease, filter .12s ease; }
@keyframes fishWaitPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(159, 214, 207, 0); }
    50% { box-shadow: 0 0 8px rgba(159, 214, 207, .5); }
}
@keyframes fishBiteShake {
    0%, 100% { transform: translate(0, 0); }
    18% { transform: translate(-3px, 1px); }
    36% { transform: translate(3px, -1px); }
    54% { transform: translate(-2px, 1px); }
    72% { transform: translate(2px, 0); }
}
@keyframes fishBiteShakeBig {
    0%, 100% { transform: translate(0, 0); }
    14% { transform: translate(-5px, 2px); }
    28% { transform: translate(5px, -2px); }
    42% { transform: translate(-4px, 1px); }
    58% { transform: translate(4px, -1px); }
    72% { transform: translate(-2px, 1px); }
    86% { transform: translate(2px, 0); }
}
@keyframes fishCatchGlow {
    0% { box-shadow: 0 0 0 rgba(230, 201, 110, 0); transform: scale(.98); }
    35% { box-shadow: 0 0 12px rgba(230, 201, 110, .35); transform: scale(1.01); }
    100% { box-shadow: 0 0 0 rgba(230, 201, 110, 0); transform: scale(1); }
}
@keyframes fishCatchGlowBig {
    0% { box-shadow: 0 0 0 rgba(230, 201, 110, 0); transform: scale(.97); }
    30% { box-shadow: 0 0 22px rgba(230, 201, 110, .65); transform: scale(1.025); }
    100% { box-shadow: 0 0 0 rgba(230, 201, 110, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    #modal-body.fish-bite .fish-stage,
    #modal-body.fish-bite .fish-card,
    #modal-body.fish-bite-big .fish-stage,
    #modal-body.fish-bite-big .fish-card,
    .fish-waiting.on .fish-wait-bar { animation: none; }
}
.fish-baits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fish-bait {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 8px 10px; background: #221f33; border: 1px solid #2e2a44; border-radius: 6px;
    color: #cfc7b4; cursor: pointer; text-align: left;
}
.fish-bait.on { border-color: #e6c96e; background: #2a2540; box-shadow: inset 0 0 0 1px #e6c96e; }
.fish-bait.empty { opacity: .5; }
.fb-name { font-size: 13px; font-weight: 600; }
.fb-count { font-size: 12px; color: #9fd6cf; }
.fb-bonus { font-size: 11px; color: #8c8474; }
.fish-main { min-height: 44px; font-size: 15px; font-weight: 600; }
.fish-tip { font-size: 12px; color: #8c8474; }
.fish-tip.gain { color: #7ee08a; }
.fish-tip.dim { color: #7d745e; }
.fish-card { padding: 12px; border: 1px solid #3a3226; border-radius: 8px; background: #1b1b2e; }
.fish-card.giant {
    background: linear-gradient(180deg, #2a2016, #1b1b2e);
    box-shadow: 0 0 10px rgba(217, 102, 63, .55), inset 0 0 0 1px rgba(217, 102, 63, .45);
}
.fish-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fish-name { font-size: 17px; font-weight: 700; }
/* 鱼名品质框：左侧加粗品质色边框 + 鱼种小图标；珍奇☆ / 罕世★ / 传说★★ */
.fish-name-chip {
    display: inline-flex; align-items: center; gap: 4px;
    max-width: 100%; box-sizing: border-box;
    padding: 1px 7px 1px 4px;
    border: 1px solid; border-left-width: 3px;
    border-radius: 5px;
    background: #151522;
    vertical-align: middle;
}
.fish-name-chip .fish-name-text {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 700;
}
.fish-name-chip .fish-name-icon { flex: none; font-size: 12px; line-height: 1; opacity: .92; }
.fish-name-chip .fish-name-star { flex: none; font-size: 12px; line-height: 1; font-weight: 800; }
.fish-name-chip.fish-name-lg .fish-name-text { font-size: 17px; }
.fish-name-chip.fish-name-lg .fish-name-icon { font-size: 15px; }
.fish-name-chip.fish-name-lg .fish-name-star { font-size: 14px; }
.fish-name-chip.fish-name-sm { padding: 0 5px 0 3px; gap: 3px; }
.fish-name-chip.fish-name-sm .fish-name-text { font-size: 12px; }
.fish-name-chip.fish-name-sm .fish-name-icon,
.fish-name-chip.fish-name-sm .fish-name-star { font-size: 10.5px; }
.fish-name-chip.codex-name-chip { flex: 1; min-width: 0; }
.fish-name-chip.codex-name-chip .fish-name-text { font-size: 12.5px; }
.fish-name-chip.codex-name-chip .fish-name-icon,
.fish-name-chip.codex-name-chip .fish-name-star { font-size: 11px; }
.fish-rarity { font-size: 12px; border: 1px solid; border-radius: 4px; padding: 1px 6px; }
.fish-new { font-size: 11px; color: #4a3a12; background: #e6c96e; border-radius: 4px; padding: 1px 6px; }

/* ---------- 造化工坊 · 四象八卦炉 ---------- */
.alchemy-wrap { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.alchemy-intro {
    flex: none; text-align: center; color: #9c8f6d; font-size: 12px;
    letter-spacing: 1.5px; padding: 2px 0 4px;
}
.alchemy-head {
    flex: none; display: flex; align-items: center; justify-content: space-between;
    gap: 8px; color: #cfc7b4;
}
.alchemy-furnace { font-size: 16px; font-weight: 700; color: #e6c96e; letter-spacing: 1px; }
.alchemy-meta { font-size: 12px; color: #8c8474; }
.alchemy-meta b { color: #9fd6cf; font-weight: 600; }
.alchemy-stage {
    flex: none; position: relative; height: 250px;
    display: flex; align-items: center; justify-content: center;
}
.alchemy-grid {
    display: grid;
    grid-template-columns: repeat(3, 74px);
    grid-template-rows: repeat(3, 74px);
    gap: 8px;
}
.alchemy-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 4px; border-radius: 10px; cursor: pointer;
    border: 1px dashed #4a4436; background: #1b1b26; color: #8c8474;
    transition: border-color .15s, background .15s, transform .15s;
}
.alchemy-slot:hover { border-color: #6f6246; background: #22202e; }
.alchemy-slot:active { transform: scale(.97); }
.alchemy-slot.filled {
    border-style: solid; border-color: #c9a961;
    background: linear-gradient(180deg, #2c2517, #201c14);
    color: #f0e6c8; box-shadow: inset 0 0 8px rgba(201, 169, 97, .18);
}
.alchemy-slot .as-plus { font-size: 22px; color: #4f4a3c; line-height: 1; }
.alchemy-slot .as-hint { font-size: 10px; color: #5f5949; }
.alchemy-slot .as-name { font-size: 12px; line-height: 1.25; text-align: center; word-break: break-all; }
.alchemy-slot .as-sub { font-size: 10px; color: #9c8f6d; }
.alchemy-slot.pos-1 { grid-area: 1 / 1; }
.alchemy-slot.pos-2 { grid-area: 1 / 3; }
.alchemy-slot.pos-3 { grid-area: 2 / 2; }
.alchemy-slot.pos-4 { grid-area: 3 / 1; }
.alchemy-slot.pos-5 { grid-area: 3 / 3; }
.alchemy-actions { flex: none; display: flex; gap: 8px; }
.alchemy-actions .act-btn { flex: 1; padding: 8px 4px; font-size: 13px; }
.alchemy-status {
    flex: none; height: 46px; display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 13px; color: #8c8474;
    border-top: 1px solid #2e2a24; padding: 0 6px; overflow: hidden;
}
.alchemy-status.gain { color: #7ee08a; font-weight: 600; }
.alchemy-status.lose { color: #c88a72; }
.alchemy-status.busy { color: #e6c96e; }
.alchemy-status.pop { animation: alchemy-pop .38s ease-out; }
@keyframes alchemy-pop {
    0% { transform: scale(.86); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.alchemy-picker {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column;
    background: rgba(16, 16, 24, .97);
    border: 1px solid #4a3f2a; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.alchemy-picker.hidden { display: none; }
.alchemy-picker-head {
    flex: none; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-bottom: 1px solid #2e2a24; color: #e6c96e; font-size: 13px;
}
.alchemy-picker-list {
    flex: 1; overflow-y: auto; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    padding: 8px; align-content: start;
}
.alchemy-mat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 6px 8px; border: 1px solid #3a3226; border-radius: 6px;
    background: #201d2c; color: #cfc7b4; cursor: pointer; text-align: left;
}
.alchemy-mat:hover { border-color: #c9a961; background: #2a2540; }
.alchemy-mat .am-name { font-size: 12.5px; }
.alchemy-mat .am-count { font-size: 10.5px; color: #9fd6cf; }
.alchemy-mat.locked { opacity: .55; cursor: not-allowed; border-color: #4a3a32; }
.alchemy-mat.locked:hover { border-color: #6a4a3a; background: #201d2c; }
.alchemy-mat.locked .am-count { color: #c88a72; }
.alchemy-mat.on { border-color: #c9a961; background: #2a2540; }
.alchemy-mat.on .am-name { color: #f0e6c8; }
.alchemy-mat .am-order {
    display: inline-block; min-width: 14px; margin-right: 4px; padding: 0 3px;
    border-radius: 4px; background: #c9a961; color: #1b1b26;
    font-size: 10px; line-height: 14px; text-align: center; font-weight: 700;
}

/* 自动炼丹：整组选材层 */
.alchemy-auto-picker .alchemy-picker-list { padding-bottom: 4px; }
.alchemy-auto-foot {
    flex: none; border-top: 1px solid #2e2a24; padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.alchemy-auto-plan { font-size: 11.5px; color: #9fd6cf; line-height: 1.5; }
.alchemy-auto-btns { display: flex; gap: 8px; }
.alchemy-auto-btns .act-btn { flex: 1; padding: 7px 4px; font-size: 12.5px; }
.alchemy-auto-flag { color: #e6c96e; }
.act-btn.stop { border-color: #7d4a3a; color: #e0a489; background: rgba(180, 90, 60, .16); }
.act-btn.stop:active { background: rgba(180, 90, 60, .28); }

/* 炼丹记录：长期保留、单行展示 */
.alchemy-records {
    flex: 1 1 auto; min-height: 96px; display: flex; flex-direction: column;
    border: 1px solid #2e2a24; border-radius: 8px; background: #14141d; overflow: hidden;
}
.alchemy-records-head {
    flex: none; padding: 5px 9px; font-size: 12px; color: #e6c96e;
    border-bottom: 1px solid #2e2a24; letter-spacing: 1px;
}
.alchemy-records-list { flex: 1; min-height: 0; overflow-y: auto; padding: 3px 9px; }
.alchemy-record-line {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 11.5px; line-height: 2; color: #a89f88;
    border-bottom: 1px dashed rgba(255, 255, 255, .05);
}
.alchemy-record-line.ok { color: #8fce9a; }
.alchemy-record-line.fail { color: #c88a72; }
.alchemy-record-empty { font-size: 11.5px; color: #6f6856; line-height: 2; }
/* ============================================================
 * 造化工坊：四象八卦炉（五格盘分色 + 操作小卡，保留原按钮与读秒）
 * ============================================================ */

.alchemy-page {
    --accent: #e0b76d;
    --accent-soft: rgba(224, 183, 109, .08);
    --accent-line: rgba(224, 183, 109, .24);
    gap: 8px;
}
.alchemy-page .workshop-hero { flex: none; }
.alchemy-page .workshop-chips b { color: #9fd6cf; font-weight: 600; }

.alchemy-stage-card {
    flex: none;
    padding: 5px 8px 7px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-left: 2px solid var(--accent);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, .01) 68%);
}
.alchemy-card-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    color: #e6dcc0;
    font-size: 11px;
    letter-spacing: .8px;
}
.alchemy-card-head .ach-sym { color: var(--accent); font-size: 10px; }
.alchemy-card-head em {
    margin-left: auto;
    color: #8fb4d8;
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: 0;
}
.alchemy-page .alchemy-stage { height: 244px; }

/* 五个格位各给一层低亮度色，不靠发光区分 */
.alchemy-slot {
    border-color: var(--slot-line, #4a4436);
    background: radial-gradient(circle at 50% 18%, var(--slot-soft, transparent), #1b1b26 64%);
}
.alchemy-slot:hover { border-color: var(--slot, #6f6246); background: #22202e; }
.alchemy-slot.filled {
    border-color: var(--slot, #c9a961);
    background: linear-gradient(180deg, var(--slot-soft, rgba(201, 169, 97, .18)), #201c14 78%);
    box-shadow: inset 0 0 8px var(--slot-soft, rgba(201, 169, 97, .18));
}
.alchemy-slot .as-plus { color: var(--slot, #4f4a3c); opacity: .8; }
.alchemy-slot .as-hint { color: var(--slot, #5f5949); opacity: .72; }
.alchemy-slot .as-sub { color: var(--slot, #9c8f6d); opacity: .82; }
.alchemy-slot.pos-1 { --slot: #9dcf9f; --slot-soft: rgba(157, 207, 159, .055); --slot-line: rgba(157, 207, 159, .2); }
.alchemy-slot.pos-2 { --slot: #e08d6d; --slot-soft: rgba(224, 141, 109, .06); --slot-line: rgba(224, 141, 109, .2); }
.alchemy-slot.pos-3 { --slot: #d9c48a; --slot-soft: rgba(217, 196, 138, .06); --slot-line: rgba(217, 196, 138, .22); }
.alchemy-slot.pos-4 { --slot: #b8c6d8; --slot-soft: rgba(184, 198, 216, .05); --slot-line: rgba(184, 198, 216, .2); }
.alchemy-slot.pos-5 { --slot: #8fb4d8; --slot-soft: rgba(143, 180, 216, .055); --slot-line: rgba(143, 180, 216, .2); }

/* 三个主操作：同一尺寸的小卡，按钮 id / disabled 全部沿用 */
.alchemy-page .alchemy-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.alchemy-page .alchemy-actions .alchemy-act-btn {
    --aa: #e0b76d;
    --aa-soft: rgba(224, 183, 109, .06);
    --aa-line: rgba(224, 183, 109, .23);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    min-height: 50px;
    padding: 7px 8px;
    border-color: var(--aa-line);
    background: linear-gradient(135deg, var(--aa-soft), #221d2c 68%);
    color: #e6dcc0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: 12px;
    text-align: left;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.alchemy-page .alchemy-actions .alchemy-act-btn.kind-cook { --aa: #e5c078; --aa-soft: rgba(224, 183, 109, .06); --aa-line: rgba(224, 183, 109, .23); }
.alchemy-page .alchemy-actions .alchemy-act-btn.kind-add { --aa: #9bdde0; --aa-soft: rgba(143, 211, 221, .055); --aa-line: rgba(143, 211, 221, .23); }
.alchemy-page .alchemy-actions .alchemy-act-btn.kind-fire { --aa: #efad88; --aa-soft: rgba(224, 141, 109, .065); --aa-line: rgba(224, 141, 109, .25); }
.alchemy-page .alchemy-actions .act-btn.stop { --aa: #e08d6d; --aa-soft: rgba(224, 141, 109, .08); --aa-line: rgba(224, 141, 109, .28); }
.alchemy-act-btn .aa-sym {
    flex: 0 0 15px;
    color: var(--aa);
    font-size: 12px;
    text-align: center;
    pointer-events: none;
}
.alchemy-act-btn .aa-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    pointer-events: none;
}
.alchemy-act-btn .aa-copy b {
    color: var(--aa);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: .35px;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.alchemy-act-btn .aa-copy em {
    color: #b5ac98;
    font-family: inherit;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* 状态条：保留原 #alchemy-status，外部加符号，不影响读秒刷新 */
.alchemy-status-wrap {
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 37px;
    padding: 5px 9px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: rgba(224, 183, 109, .035);
}
.alchemy-status-wrap .asw-sym { flex: 0 0 12px; color: var(--accent); font-size: 10px; }
.alchemy-page .alchemy-status {
    flex: 1;
    height: auto;
    min-height: 24px;
    padding: 0;
    border: 0;
    justify-content: flex-start;
    text-align: left;
    font-size: 12px;
    overflow: visible;
}

/* 炼丹记录 */
.alchemy-page .alchemy-records {
    border-color: rgba(255, 255, 255, .065);
    border-left: 2px solid rgba(224, 183, 109, .32);
    background: linear-gradient(135deg, rgba(224, 183, 109, .025), #14141d 62%);
}
.alchemy-page .alchemy-records-head {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e6dcc0;
    font-size: 11px;
    letter-spacing: .8px;
}
.alchemy-page .alchemy-records-head .arh-sym { color: var(--accent); font-size: 10px; }
.alchemy-page .alchemy-records-head em {
    margin-left: auto;
    color: #8fb4d8;
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: 0;
}

/* 选材层：轻量同风格，材料卡左侧分色 */
.alchemy-page .alchemy-picker,
.alchemy-picker {
    border-color: rgba(224, 183, 109, .24);
    border-left: 2px solid rgba(224, 183, 109, .42);
    background: linear-gradient(160deg, rgba(30, 27, 35, .985), rgba(16, 16, 24, .985));
}
.alchemy-picker-head {
    color: #e6dcc0;
    border-bottom-color: rgba(224, 183, 109, .16);
}
.alchemy-picker-head .ap-sym {
    margin-right: 5px;
    color: #e0b76d;
    font-size: 10px;
    font-style: normal;
}
.alchemy-mat {
    border-left: 3px solid #5b4a2f;
    background: linear-gradient(90deg, rgba(255, 255, 255, .02), #201d2c 62%);
}
.alchemy-mat .am-sym {
    margin-right: 4px;
    color: #d9c48a;
    font-size: 9px;
    font-style: normal;
}
.alchemy-mat.on {
    border-left-color: #d9c48a;
    background: linear-gradient(90deg, rgba(217, 196, 138, .07), #2a2540 64%);
}
.alchemy-mat.on .am-sym { color: #f0d99d; }
.alchemy-mat.locked { border-left-color: #6d4b3c; }
.alchemy-mat.locked .am-sym { color: #8a6a58; }
.alchemy-auto-foot { border-top-color: rgba(224, 183, 109, .16); }
.alchemy-auto-plan { color: #9fd6cf; font-size: 10.5px; }

/* ============================================================
 * 造化工坊·炼制成功：纵向丹成展示（去掉内嵌方卡与四边边框）
 * ============================================================ */
.alchemy-result-layer {
    --ar: #d9c48a;
    --ar-soft: rgba(217, 196, 138, .09);
    --ar-line: rgba(217, 196, 138, .28);
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 30px;
    background: rgba(6, 6, 13, .72);
    animation: ar-fade .18s ease-out;
}
.alchemy-result-layer.tone-q1 { --ar: #cfc9b8; --ar-soft: rgba(207, 201, 184, .06); --ar-line: rgba(207, 201, 184, .22); }
.alchemy-result-layer.tone-q2 { --ar: #7fa7cf; --ar-soft: rgba(127, 167, 207, .075); --ar-line: rgba(127, 167, 207, .25); }
.alchemy-result-layer.tone-q3 { --ar: #b59adf; --ar-soft: rgba(181, 154, 223, .075); --ar-line: rgba(181, 154, 223, .25); }
.alchemy-result-layer.tone-q4 { --ar: #d9c48a; --ar-soft: rgba(217, 196, 138, .09); --ar-line: rgba(217, 196, 138, .28); }
.alchemy-result-layer.tone-q5 { --ar: #e0a06d; --ar-soft: rgba(224, 160, 109, .085); --ar-line: rgba(224, 160, 109, .26); }
.alchemy-result-layer.tone-q6 { --ar: #d9a0c2; --ar-soft: rgba(217, 160, 194, .075); --ar-line: rgba(217, 160, 194, .25); }

.alchemy-result-card {
    position: relative;
    isolation: isolate;
    width: min(88vw, 360px);
    max-height: 88vh;
    overflow: visible;
    padding: 8px 16px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    animation: ar-rise .24s ease-out;
}
.alchemy-result-card::before {
    content: "";
    position: absolute;
    inset: -34px -58px;
    z-index: -1;
    background: radial-gradient(ellipse 72% 64% at 50% 44%, rgba(16, 14, 26, .96) 0%, rgba(13, 12, 21, .87) 46%, rgba(10, 9, 17, 0) 76%);
    pointer-events: none;
}

.ar-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ar);
    opacity: .6;
}
.ar-ornament span {
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ar-line));
}
.ar-ornament span:last-child {
    background: linear-gradient(90deg, var(--ar-line), transparent);
}
.ar-ornament i {
    color: var(--ar);
    font-style: normal;
    font-size: 10px;
    line-height: 1;
}

.ar-hero {
    display: block;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
}
.ar-kicker {
    color: var(--ar);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 2px;
    opacity: .78;
}
.ar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 0;
    color: #f1e4c2;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 4px;
    text-indent: 4px;
    text-shadow: none;
}
.ar-title-text {
    display: inline-block;
    background-image: linear-gradient(100deg, #ffe7a1 0%, #f3c66d 28%, #e7a279 55%, #d9acd7 78%, #99d5cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 9px rgba(232, 193, 126, .17));
}
.ar-title::before,
.ar-title::after {
    content: "";
    width: 22px;
    height: 1px;
    flex: 0 0 auto;
}
.ar-title::before { background: linear-gradient(90deg, transparent, var(--ar-line)); }
.ar-title::after { background: linear-gradient(90deg, var(--ar-line), transparent); }
.ar-subtitle {
    margin-top: 2px;
    color: #968e7d;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 1px;
}

.ar-showcase { margin-top: 11px; }
.ar-halo {
    position: relative;
    width: 136px;
    height: 136px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, var(--ar-soft) 0%, rgba(255, 255, 255, .015) 46%, transparent 70%);
}
.ar-halo::before,
.ar-halo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ar-halo::before {
    inset: 16px;
    border: 1px dashed var(--ar-line);
    opacity: .4;
}
.ar-halo::after {
    inset: 7px;
    border: 1px solid var(--ar-soft);
}
.ar-seal {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ar-line);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, var(--ar-soft), rgba(255, 255, 255, .025) 58%, rgba(10, 9, 17, .2));
    box-shadow: 0 0 22px var(--ar-soft), inset 0 0 18px rgba(255, 255, 255, .025);
}
.ar-seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}
.ar-seal-icon {
    color: var(--ar);
    font-size: 32px;
    line-height: 1;
    text-shadow: 0 0 14px var(--ar-soft);
}
.ar-seal-count {
    position: absolute;
    right: -5px;
    bottom: -4px;
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ar-line);
    border-radius: 999px;
    background: #171522;
    color: #eadfc6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.ar-meta {
    margin-top: 5px;
    color: var(--ar);
    font-size: 9.5px;
    line-height: 1.5;
    letter-spacing: 1.4px;
    opacity: .9;
}
.ar-name {
    margin-top: 1px;
    color: var(--ar);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 1.5px;
    word-break: break-all;
    text-shadow: 0 0 15px var(--ar-soft);
}
.ar-desc {
    display: block;
    max-width: 278px;
    margin: 4px auto 0;
    overflow: visible;
    color: #9a9282;
    font-size: 10.5px;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.ar-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    color: #8f8777;
    font-size: 9.5px;
    line-height: 1.5;
}
.ar-stats span { white-space: nowrap; }
.ar-stats .sym { color: var(--ar); font-style: normal; }
.ar-stats .dot { color: #4e4859; }
.ar-stats .last { color: #9fd6cf; }

.ar-foot {
    display: block;
    margin-top: 13px;
    padding: 0;
    border: 0;
    text-align: center;
}
.ar-note {
    color: #7f7869;
    font-size: 9.5px;
    line-height: 1.5;
    text-align: center;
}
.ar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    height: 40px;
    margin-top: 8px;
    padding: 0 22px;
    border: 1px solid var(--ar-line);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ar-soft), rgba(255, 255, 255, .026));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .05);
    color: var(--ar);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1px;
}
.ar-btn:active {
    transform: scale(.98);
    background: var(--ar-soft);
}

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


.fish-new.giant { background: #d9663f; color: #fff2e6; }
.br-giant {
    display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
    font-size: 10px; font-weight: 400; color: #fff2e6; background: #d9663f; vertical-align: middle;
}
.fish-sub { font-size: 12px; color: #b8c9e8; margin-top: 6px; }
.fish-note {
    font-size: 12px; color: #cfc7b4; line-height: 1.7;
    padding: 10px; background: #221f33; border-left: 3px solid #6aa8ff; border-radius: 4px;
}
.fish-note-src { color: #8c8474; }
.fish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fish-actions .act-btn { flex: 1 1 40%; }

/* ================================================================
 * 初入江湖欢迎弹窗
 * ================================================================ */
.welcome-wrap { display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 4px; }
.welcome-text p { margin: 0 0 7px; font-size: 13.5px; line-height: 1.85; color: #e6ddc7; }
.welcome-text p:first-child {
    margin-bottom: 10px; font-size: 17px; font-weight: 700;
    color: #f3d98b; letter-spacing: 1px;
}
.welcome-gifts { border-top: 1px dashed rgba(214, 182, 110, .35); padding-top: 12px; }
.wg-title { font-size: 12px; color: #9c9482; letter-spacing: 1px; margin-bottom: 8px; }
.wg-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-item {
    padding: 5px 10px; border-radius: 6px; font-size: 12.5px;
    background: rgba(214, 182, 110, .12);
    border: 1px solid rgba(214, 182, 110, .42);
    color: #f0dfae;
}
.welcome-enter { width: 100%; margin-top: 2px; }

/* 进入大陆读秒：仅按钮变淡黄色（不显示秒数） */
.welcome-enter.loading,
.welcome-enter.loading:disabled {
    background: #f5e6a8 !important;
    border-color: #dcc684 !important;
    color: #5a4715 !important;
    cursor: default;
}
/* 垂钓底部按键常驻：上移 10px 固定在面板底部，见闻再长也不会被顶出屏幕 */
.fish-foot {
    position: sticky;
    bottom: 10px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 10px 0 4px;
    border-top: 1px solid #221f33;
    background: #141422;
    box-shadow: 0 -10px 14px rgba(0, 0, 0, 0.45);
}
.fish-foot-row { display: flex; gap: 8px; }
.fish-foot-row .act-btn { flex: 1; }
/* 自动垂钓：独立于等待按键，等待读秒期间仍可点击停止 */
.fish-auto-row .act-btn { flex: 0 0 auto; min-width: 132px; margin: 0 auto; }
.fish-auto { border-color: #3d5872; background: #1e2a3c; color: #cfe3ff; font-weight: 600; }
.fish-auto.on { border-color: #b25a4a; background: #3a211f; color: #ffd8cf; }
.fish-foot-sub .act-btn { flex: 1; min-height: 34px; font-size: 12.5px; }
.fish-foot .fish-tip { text-align: center; }
/* 等待读秒：按键转为淡黄色低饱和态 */
.act-btn.waiting,
.act-btn.waiting:active {
    background: #f5e2a8;
    border-color: #e6c96e;
    color: #4a3a12;
    font-weight: 600;
}
.codex-tabs { flex-wrap: wrap; }
/* 图鉴双排展示，节省竖向占用 */
.codex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px 0; }
.codex-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; background: #221f33; border-radius: 6px; cursor: pointer; min-width: 0; }
.codex-row.locked { opacity: .62; }
.codex-detail {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 12px; margin: 0;
    background: #1b1b2e; border: 1px solid #2e2a44; border-radius: 6px;
}
.codex-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codex-rar { flex: none; font-size: 11px; }
.shop-sec-title { margin: 12px 0 6px; font-size: 13px; color: #f0c674; }
#sea-fish:disabled { opacity: .45; }

/* ---------- 成就面板：分页方向键 ---------- */
.ach-pager {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 12px; padding-top: 10px;
    border-top: 1px solid #2e2a44;
}
.ach-page-text { font-size: 12.5px; color: #b9b3d0; letter-spacing: .5px; }
.ach-pager .act-btn.small { min-width: 76px; }
.ach-pager .act-btn.small:disabled { opacity: .4; cursor: not-allowed; }
/* 成就条目里的进度数字（当前/目标） */
.ach-prog { color: #f0c674; font-weight: 600; margin-left: 2px; }


/* ============================================================
 * 迷你地图（右侧快捷栏内，仅展示）
 *   · 以玩家自身为中心，随移动/探索刷新
 *   · 与大地图同口径显示：已探索格 / 主城★与城名 / 四邻方位 / BOSS☠ / 玩家标记
 *   · 画布不接收点击（pointer-events:none），点击不会打开大地图
 *   · 下方 − / ＋ 调整视野格数，纯展示用，不影响大地图缩放
 * ============================================================ */
.mini-map-wrap {
    margin-top: 6px;            /* 紧贴上方 ✧ 分隔线，不挤压光环按钮 */
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mini-map-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #3a3226;
    border-radius: 6px;
    overflow: hidden;
    background: #080d18;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .65);
    pointer-events: none;       /* 迷你地图不可点击 */
}
#mini-map-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.mini-map-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mini-map-btn {
    width: 20px;
    height: 17px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: #c8b787;
    background: #141a26;
    border: 1px solid #3a4757;
    border-radius: 4px;
    cursor: pointer;
    transition: color .15s, border-color .15s, box-shadow .15s;
}
.mini-map-btn:hover:not(:disabled) {
    color: #ffe9a8;
    border-color: #e6c96e;
    box-shadow: 0 0 8px rgba(240, 198, 116, .28);
}
.mini-map-btn:active:not(:disabled) { transform: scale(.94); }
.mini-map-btn:disabled { opacity: .32; cursor: default; }
.mini-map-scale {
    min-width: 26px;
    font-size: 9.5px;
    letter-spacing: .5px;
    color: #6d6a5a;
    text-align: center;
}
/* 缩放按键键盘焦点：去掉默认蓝框，改用金色描边（不影响观感） */
.mini-map-btn:focus { outline: none; }
.mini-map-btn:focus-visible {
    outline: 1px solid #e6c96e;
    outline-offset: 1px;
}

/* ========== 底部功能按钮的小图标装饰（角色/背包/任务/宠物/坐骑/成就/设置） ========== */
.main-btn {
    display: flex;              /* 图标与文字一行居中 */
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.main-btn .mb-ico {
    font-size: 15px;            /* 比文字略大一点，暗底上才看得清 */
    line-height: 1;
    opacity: 1;
    filter: saturate(1.15) brightness(1.12);   /* 提亮，避免深色图标糊在黑底上 */
    transform: translateY(-.5px);
    transition: transform .14s ease, filter .14s ease;
}
.main-btn:hover .mb-ico { transform: translateY(-1px) scale(1.08); filter: saturate(1.25) brightness(1.22); }
.main-btn.nav-pressing .mb-ico { transform: translateY(1px) scale(.94); filter: brightness(.9); }
.main-btn:active .mb-ico { opacity: 1; }

/* ========== 珠宝店：宝石部位限制的视觉提示（不可镶的宝石标灰、选中装备显示可镶属性） ========== */
.bag-tile.gem-bad {
    opacity: .42;                       /* 变暗，明显不能被选 */
    border-style: dashed;
    cursor: not-allowed;
}
.bag-tile.gem-bad:hover {
    border-color: #2a2438;              /* 悬停也不高亮，避免误导 */
    transform: none;
}
.bag-tile .bt-flag {
    position: absolute;
    top: 3px;
    left: 4px;
    font-size: 9.5px;
    line-height: 1;
    color: #f87171;
    letter-spacing: .5px;
}
.gem-rule-hint {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 11.5px;
    line-height: 1.6;
    color: #b9ad86;
    background: rgba(232, 184, 92, .06);
    border-left: 2px solid #6b5a33;
    border-radius: 4px;
}

/* ========== 特殊属性「已达上限」标记（角色详情里封顶的那一行） ========== */
.cap-tip {
    margin-left: 5px;
    padding: 0 3px;
    font-size: 10.5px;
    font-weight: 400;
    color: #a89a73;
    background: rgba(232, 184, 92, .08);
    border: 1px solid #4a3f2a;
    border-radius: 3px;
}

/* ================= 主线任务折叠块 ================= */
.ml-box {
    margin-bottom: 10px;
    border: 1px solid #2a2438;
    border-left: 3px solid #c9a961;
    border-radius: 6px;
    background: #17162a;
    overflow: hidden;
}
.ml-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    cursor: pointer;
    background: rgba(201, 169, 97, .06);
}
.ml-head:hover { background: rgba(201, 169, 97, .12); }
.ml-title { flex: 1; color: #e8c46a; font-size: 13px; }
.ml-count { color: #9c927a; font-size: 11.5px; }
.ml-caret { color: #c9a961; font-size: 12px; transition: transform .15s; }
.ml-box.open .ml-caret { transform: rotate(90deg); }
.ml-body { padding: 6px 10px 8px; }
.ml-body.hidden { display: none; }
.ml-task {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #cfc5a8;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(201, 169, 97, .15);
}
.ml-task span { color: #9c927a; }
/* 当前任务右侧的方位与进度 */
.ml-cur-pos { color: #c9a961 !important; white-space: nowrap; }
.ml-task b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 任务追踪按钮：未追踪描边，追踪中实底 */
.ml-track-btn, .quest-track-btn {
    flex: none;
    border: 1px solid rgba(201, 169, 97, .5);
    background: rgba(201, 169, 97, .06);
    color: #c9a961;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ml-track-btn:hover, .quest-track-btn:hover {
    background: rgba(201, 169, 97, .18);
    color: #efd9a8;
}
.ml-track-btn.on, .quest-track-btn.on {
    background: rgba(232, 196, 106, .22);
    border-color: #e8c46a;
    color: #ffe6a3;
}
.ml-track-btn:active, .quest-track-btn:active { transform: translateY(1px); }
.quest-track-btn { align-self: center; }
.ml-chapter {
    display: grid;
    grid-template-columns: 46px 1fr 62px 44px 48px;
    gap: 6px;
    align-items: center;
    font-size: 11.5px;
    color: #8d8471;
    padding: 5px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.ml-chapter:hover { background: rgba(201, 169, 97, .12); color: #cfc5a8; }
.ml-chapter:active { background: rgba(201, 169, 97, .2); }
.ml-chapter .ml-c-prog, .ml-chapter .ml-c-state { text-align: right; }
.ml-chapter .ml-c-arrow { text-align: right; color: #c9a961; font-size: 14px; line-height: 1; }
.ml-chapter.cur { color: #e8c46a; }
.ml-chapter.done { color: #7ec8a0; }

/* 主线章节详情：进行中 / 已完成任务卡片 */
.mlq-summary {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #9c927a;
    padding: 3px 0 8px;
    border-bottom: 1px dashed rgba(201, 169, 97, .2);
}
.mlq-summary b { color: #e8c46a; font-weight: 600; }
.mlq-task { border-left-color: #3f3724 !important; }
.mlq-task.cur { border-left-color: #e8c46a !important; }
.mlq-task.done { border-left-color: #7ec8a0 !important; }
.mlq-task h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mlq-status { flex: none; font-size: 11.5px; font-weight: 600; }
.mlq-status.cur { color: #e8c46a; }
.mlq-status.done { color: #7ec8a0; }
.mlq-locked { padding: 18px 8px; text-align: center; color: #8d8471; line-height: 1.8; }
.mlq-complete {
    margin: 8px 0 2px;
    padding: 10px;
    border: 1px solid rgba(126, 200, 160, .25);
    border-radius: 4px;
    background: rgba(126, 200, 160, .06);
    color: #7ec8a0;
    font-size: 12.5px;
    text-align: center;
}
/* 已完成任务折叠区 */
.mlq-history {
    margin: 10px 0 4px;
    border-top: 1px solid rgba(201, 169, 97, .18);
    padding-top: 8px;
}
.mlq-history summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 4px;
    border-radius: 4px;
    list-style: none;
    cursor: pointer;
    color: #c9a961;
    font-size: 12.5px;
    transition: background .12s ease;
}
.mlq-history summary::-webkit-details-marker { display: none; }
.mlq-history summary:hover { background: rgba(201, 169, 97, .1); }
.mlq-history-title { flex: 1; }
.mlq-history-title b { color: #e8c46a; font-weight: 600; }
.mlq-history-tip { color: #8d8471; font-size: 11px; }
.mlq-history-caret { color: #c9a961; font-size: 12px; transition: transform .15s; }
.mlq-history[open] .mlq-history-caret { transform: rotate(90deg); }
.mlq-history-body { padding-top: 4px; }
.mlq-history-body .mlq-task { margin-bottom: 8px; }


/* 任务材料提示（面板内一行浅金说明） */
.q-hint {
    font-size: 13.5px;
    line-height: 1.75;
    color: #efd9a8;
    background: rgba(240, 198, 116, 0.07);
    border-left: 2px solid #c9a24b;
    border-radius: 0 4px 4px 0;
    padding: 7px 10px;
    margin: 2px 0 7px;
    white-space: pre-line;
    word-break: break-word;
}
.q-hint b { color: #f0c674; font-weight: 700; margin-right: 2px; }

/* ============================================================
 * 主线任务 · 仙侠卷宗皮肤
 * 深色半透明 / 细金边 / 橙粉青渐变标题 / 星芒 / 彩色属性胶囊
 * ============================================================ */
.modal-card.ml-skin {
    position: relative;
    background:
        radial-gradient(ellipse at 16% 0%, rgba(232, 151, 98, .075), transparent 36%),
        radial-gradient(ellipse at 84% 6%, rgba(104, 207, 213, .055), transparent 34%),
        linear-gradient(165deg, rgba(17, 14, 24, .975), rgba(26, 20, 33, .955) 54%, rgba(14, 13, 21, .985));
    border: 1px solid rgba(216, 178, 100, .56);
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 157, .05),
        inset 0 1px 0 rgba(255, 222, 155, .12),
        0 14px 42px rgba(0, 0, 0, .56);
}
.modal-card.ml-skin::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(218, 180, 102, .13);
    border-radius: 8px;
    pointer-events: none;
    z-index: 3;
}
.modal-card.ml-skin.ml-complete-card { max-width: 460px; }
.modal-card.ml-skin .modal-head {
    position: relative;
    border-bottom: 1px solid rgba(212, 174, 97, .24);
    background: linear-gradient(90deg, rgba(231, 156, 103, .05), rgba(122, 208, 213, .035), rgba(19, 16, 26, 0));
    padding: 11px 15px;
}
.modal-card.ml-skin #modal-title {
    color: #f8c7a2;
    background: linear-gradient(90deg, #ffb36d 0%, #f6a2bd 38%, #86dfe2 72%, #f3d38a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(240, 158, 126, .14));
    letter-spacing: .045em;
}
.modal-card.ml-skin .modal-close {
    position: relative;
    z-index: 4;
    border-color: rgba(218, 180, 103, .28);
    background: rgba(31, 25, 39, .72);
    color: #d8c8a8;
}
.modal-card.ml-skin .modal-body {
    position: relative;
    z-index: 2;
    padding: 12px 15px 14px;
    background: transparent;
}
.modal-card.ml-skin .modal-foot {
    position: relative;
    z-index: 2;
    border-top-color: rgba(212, 174, 97, .18);
    background: rgba(17, 14, 24, .42);
}
.modal-card.ml-skin .modal-foot .act-btn {
    border-color: rgba(218, 181, 106, .44);
    background: linear-gradient(180deg, rgba(84, 62, 31, .42), rgba(37, 29, 22, .72));
    color: #e9d4a2;
}
.modal-card.ml-skin .modal-foot .act-btn:hover {
    border-color: rgba(238, 201, 125, .7);
    color: #ffe8b9;
}
.modal-card.ml-skin .q-hint {
    border: 1px solid rgba(211, 172, 94, .16);
    border-left: 2px solid rgba(231, 185, 98, .62);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(231, 185, 98, .07), rgba(231, 185, 98, .015));
    margin-top: 9px;
}
.modal-card.ml-skin .detail-row { border-bottom-color: rgba(210, 176, 104, .1); }
.ml-skin .mlq-history { border-top-color: rgba(210, 176, 104, .14); }
.ml-skin .ml-chapter { border-bottom: 1px solid rgba(210, 176, 104, .09); border-radius: 5px; }
.ml-skin .ml-chapter .ml-c-name { color: #cfc2a6; }
.ml-skin .ml-chapter.cur .ml-c-name { color: #f1cf8f; }
.ml-skin .ml-chapter.done .ml-c-name { color: #93d8ab; }
.ml-skin .ml-chapter .ml-c-prog { color: #d8c59c; }

/* 星芒与渐变标题 */
.mlx-orn {
    color: #d9b66f;
    font-style: normal;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(230, 174, 96, .16);
}
.mlx-kicker {
    font-size: 10.5px;
    line-height: 1.4;
    letter-spacing: .24em;
    color: #bda276;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.mlx-title,
.mlx-complete-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f6c9a0;
    background: linear-gradient(90deg, #ffb36d 0%, #f4a0bc 38%, #83dfe2 72%, #f1d089 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(239, 155, 124, .13));
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.25;
    text-align: center;
}
.mlx-title-t { min-width: 0; }
.mlx-hero {
    padding: 2px 0 11px;
    margin-bottom: 9px;
    border-bottom: 1px solid rgba(212, 174, 97, .18);
    text-align: center;
}
.mlx-sub {
    color: #a89f8b;
    font-size: 11.5px;
    letter-spacing: .06em;
    margin-top: 3px;
}

/* 彩色属性胶囊 */
.mlx-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 7px 0 2px;
}
.mlx-cap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(210, 177, 105, .22);
    background: linear-gradient(180deg, rgba(72, 58, 37, .24), rgba(27, 24, 33, .36));
    font-size: 11.5px;
    line-height: 1.35;
    white-space: nowrap;
}
.mlx-cap-ic { font-style: normal; color: #d7b66f; font-size: 11px; }
.mlx-cap-label { color: #9f9787; }
.mlx-cap-val { color: #eadcbf; font-weight: 600; }
.mlx-cap.tone-gold { border-color: rgba(224, 187, 105, .34); background: linear-gradient(180deg, rgba(112, 82, 33, .26), rgba(36, 29, 22, .36)); }
.mlx-cap.tone-gold .mlx-cap-ic { color: #efc679; }
.mlx-cap.tone-cyan { border-color: rgba(112, 205, 207, .30); background: linear-gradient(180deg, rgba(39, 94, 98, .22), rgba(22, 30, 38, .34)); }
.mlx-cap.tone-cyan .mlx-cap-ic { color: #8edce0; }
.mlx-cap.tone-purple { border-color: rgba(182, 151, 219, .28); background: linear-gradient(180deg, rgba(79, 58, 105, .23), rgba(26, 24, 37, .35)); }
.mlx-cap.tone-purple .mlx-cap-ic { color: #c6a8e9; }
.mlx-cap.tone-rose { border-color: rgba(226, 150, 174, .28); background: linear-gradient(180deg, rgba(104, 54, 69, .23), rgba(34, 23, 33, .35)); }
.mlx-cap.tone-rose .mlx-cap-ic { color: #efa9bc; }
.mlx-cap.tone-amber { border-color: rgba(226, 171, 93, .28); background: linear-gradient(180deg, rgba(101, 72, 36, .22), rgba(32, 26, 22, .35)); }
.mlx-cap.tone-amber .mlx-cap-ic { color: #eac186; }
.mlx-cap.tone-silver { border-color: rgba(184, 198, 211, .27); background: linear-gradient(180deg, rgba(69, 78, 94, .2), rgba(26, 29, 37, .35)); }
.mlx-cap.tone-silver .mlx-cap-ic { color: #c9d4df; }
.mlx-cap.tone-green { border-color: rgba(126, 207, 156, .32); background: linear-gradient(180deg, rgba(40, 94, 64, .23), rgba(22, 32, 27, .35)); }
.mlx-cap.tone-green .mlx-cap-ic { color: #91dfa9; }
.mlx-cap.tone-red { border-color: rgba(207, 116, 116, .3); background: linear-gradient(180deg, rgba(100, 43, 47, .24), rgba(34, 23, 27, .36)); }
.mlx-cap.tone-red .mlx-cap-ic { color: #e49c9c; }
.mlx-cap.tone-mix { border-color: rgba(195, 173, 129, .26); background: linear-gradient(180deg, rgba(77, 65, 45, .2), rgba(27, 25, 31, .35)); }
.mlx-cap.tone-muted { border-color: rgba(150, 141, 125, .2); background: rgba(40, 36, 41, .25); opacity: .8; }
.mlx-green { color: #92e7a6 !important; text-shadow: 0 0 4px rgba(92, 218, 126, .14); }

/* 任务目标主卡 */
.mlx-goal {
    margin: 8px 0;
    padding: 9px 11px 8px;
    border-radius: 9px;
    border: 1px solid rgba(111, 204, 209, .24);
    border-left: 2px solid rgba(119, 211, 215, .62);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(96, 198, 203, .10), transparent 52%),
        linear-gradient(135deg, rgba(24, 56, 61, .2), rgba(27, 23, 35, .32));
}
.mlx-goal-label { color: #89d7db; font-size: 10.5px; letter-spacing: .16em; margin-bottom: 2px; }
.mlx-goal-value {
    color: #efe2c9;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.mlx-goal-value b { color: #8be3e3; font-size: 22px; font-weight: 700; margin-left: 3px; }
.mlx-goal-progress { color: #928b7d; font-size: 11px; margin-top: 2px; }
.mlx-goal-progress b { color: #c8ddd8; font-weight: 600; }

/* 奖励区 */
.mlx-reward-block,
.mlx-choice {
    margin-top: 8px;
    padding: 8px 9px 6px;
    border: 1px solid rgba(210, 175, 99, .16);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(88, 67, 34, .09), rgba(25, 23, 32, .26));
}
.mlx-reward-title {
    color: #d2b274;
    font-size: 10.5px;
    letter-spacing: .16em;
    margin-bottom: 3px;
}
.mlx-reward-bar { margin: 1px 0 0; }
.mlx-rw-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #a89e8b;
    font-size: 10.8px;
    margin: 2px 9px 2px 0;
    white-space: nowrap;
}
.mlx-rw-inline i { font-style: normal; color: #cba962; }
.mlx-rw-inline b { color: #8fe5a4; font-weight: 600; }
.mlx-rw-label { color: #b99b62; font-size: 10.5px; margin-right: 6px; }

/* 章节任务卡 */
.mlx-task-card {
    position: relative;
    margin: 0 0 10px;
    padding: 10px 11px 11px;
    border: 1px solid rgba(205, 172, 100, .18);
    border-left: 2px solid rgba(205, 172, 100, .35);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(222, 157, 106, .045), transparent 46%),
        linear-gradient(165deg, rgba(35, 29, 40, .55), rgba(19, 17, 26, .5));
}
.mlx-task-card.cur { border-left-color: #d9b45e; box-shadow: inset 0 0 0 1px rgba(224, 183, 95, .06); }
.mlx-task-card.ready { border-left-color: #7fd59c; box-shadow: inset 0 0 0 1px rgba(127, 213, 156, .07); }
.mlx-task-card.done { border-left-color: #6dae87; opacity: .82; }
.mlx-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mlx-task-name {
    min-width: 0;
    color: #f0dfbf;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.mlx-task-name .mlx-orn { margin: 0 4px; font-size: 11px; }
.mlx-task-id { color: #777268; font-size: 10px; letter-spacing: .12em; margin-top: -1px; }
.mlx-status {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    border: 1px solid rgba(203, 169, 96, .26);
    color: #bda67a;
    background: rgba(80, 61, 32, .22);
}
.mlx-status.cur { color: #f1cf86; border-color: rgba(235, 192, 105, .45); }
.mlx-status.ready { color: #96e4ac; border-color: rgba(126, 207, 156, .42); background: rgba(45, 98, 64, .18); }
.mlx-status.done { color: #8dd0a2; border-color: rgba(111, 195, 137, .32); }
.mlx-status.idle { color: #8f887a; border-color: rgba(162, 148, 120, .22); }

/* 任务面板里的当前卷宗 */
.mlx-current-card {
    margin: 4px 0 9px;
    padding: 10px 11px 9px;
    border: 1px solid rgba(214, 174, 94, .28);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(228, 157, 104, .09), transparent 48%),
        linear-gradient(165deg, rgba(48, 37, 33, .4), rgba(23, 21, 31, .38));
}
.mlx-current-card.empty { color: #918a7c; text-align: center; }
.mlx-current-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlx-current-ch { color: #958c78; font-size: 10.5px; white-space: nowrap; }
.mlx-current-name { color: #f4d6aa; font-size: 16px; font-weight: 600; margin: 1px 0; }
.mlx-current-meta { color: #928a7b; font-size: 10.8px; }
.mlx-current-meta b { color: #c6d9d1; font-weight: 600; }
.mlx-current-rewards { margin-top: 5px; line-height: 1.6; }
.mlx-current-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.mlx-current-state { color: #a99c84; font-size: 10.8px; }
.mlx-current-state.ready { color: #92e5a7; }
.mlx-current-state.locked { color: #e89a86; }

/* 章节总览 */
.mlx-progress { margin: 8px 0 9px; }
.mlx-progress-label { display: flex; justify-content: space-between; color: #9e957f; font-size: 10.5px; margin-bottom: 4px; }
.mlx-progress-label b { color: #d9c396; font-weight: 600; }
.mlx-progress-track { height: 4px; border-radius: 999px; background: rgba(197, 164, 97, .12); overflow: hidden; }
.mlx-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(239, 171, 105, .7), rgba(237, 168, 190, .65), rgba(123, 217, 220, .72)); }
.mlx-locked {
    padding: 18px 9px;
    text-align: center;
    color: #99907d;
    line-height: 1.8;
    border: 1px dashed rgba(213, 175, 100, .18);
    border-radius: 9px;
    background: rgba(26, 23, 34, .24);
}
.mlx-locked b { color: #d5bb85; font-weight: 600; }
.mlx-locked-orn { color: #b8965d; letter-spacing: .35em; margin-bottom: 4px; }
.mlx-chapter-clear {
    margin: 4px 0 9px;
    padding: 10px 8px;
    text-align: center;
    color: #96dfa9;
    font-size: 12px;
    letter-spacing: .07em;
    border: 1px solid rgba(122, 202, 150, .2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(42, 92, 60, .16), rgba(25, 30, 27, .24));
}
.mlx-more-note { color: #8d8577; font-size: 10.8px; text-align: center; margin: 3px 0 6px; }

/* NPC 接取页 */
.mlx-npc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(211, 174, 97, .13);
}
.mlx-npc-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(217, 180, 103, .3);
    background: radial-gradient(circle, rgba(221, 174, 98, .09), rgba(25, 21, 31, .2));
    font-size: 20px;
}
.mlx-npc-head b { display: block; color: #e5d3b1; font-size: 14px; font-weight: 600; }
.mlx-npc-head small { display: block; color: #8f8778; font-size: 10.5px; margin-top: 1px; }
.mlx-choice-desc {
    color: #938b7d;
    font-size: 11px;
    line-height: 1.55;
    margin: 2px 0 7px;
    padding-left: 3px;
}
.mlx-branch-btn { border-color: rgba(201, 169, 97, .35); color: #d2bd8f; }
.mlx-whisper {
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 7px;
    border: 1px dashed rgba(198, 160, 96, .17);
    color: #a89e8c;
    font-size: 11px;
    line-height: 1.6;
    background: rgba(35, 29, 39, .28);
}
.mlx-whisper b { color: #c9ad74; font-weight: 600; }
.mlx-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 11px; }
.mlx-action-note { color: #918a7c; font-size: 11px; text-align: center; padding: 6px 0; }
.mlx-action-note.bad { color: #d68f8f; }
.mlx-submit {
    min-height: 42px;
    color: #ffe5b2;
    border-color: rgba(231, 190, 105, .65);
    background: linear-gradient(180deg, rgba(106, 77, 34, .44), rgba(46, 33, 22, .7));
    box-shadow: inset 0 1px 0 rgba(255, 224, 157, .08);
    letter-spacing: .15em;
    font-weight: 600;
}
.mlx-submit:hover { background: linear-gradient(180deg, rgba(133, 94, 42, .5), rgba(56, 40, 25, .72)); color: #fff0c7; }
.mlx-done-note { text-align: center; color: #89d7a3; padding: 7px 0; font-size: 12px; letter-spacing: .08em; }

/* 完成领取窗 */
.mlx-complete {
    position: relative;
    text-align: center;
    padding: 1px 2px 3px;
    overflow: hidden;
}
.mlx-complete-halo {
    position: absolute;
    top: -52px;
    left: 50%;
    width: 210px;
    height: 160px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(239, 172, 113, .13), rgba(231, 151, 174, .07) 38%, transparent 70%);
    pointer-events: none;
}
.mlx-complete-seal {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 3px auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(224, 184, 104, .42);
    box-shadow: inset 0 0 0 1px rgba(240, 201, 128, .1), inset 0 0 20px rgba(227, 177, 98, .07);
    background: radial-gradient(circle, rgba(240, 193, 113, .12), rgba(24, 20, 30, .1) 66%);
    color: #f0c882;
    font-size: 27px;
}
.mlx-complete-seal::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(226, 184, 105, .15);
    border-radius: 50%;
}
.mlx-complete-title { font-size: 26px; margin: 1px 0 0; }
.mlx-complete-sub { color: #9d9484; font-size: 11px; letter-spacing: .16em; margin-top: 3px; }
.mlx-divider { display: flex; align-items: center; gap: 8px; margin: 11px 6px 9px; color: #c3a264; }
.mlx-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(203, 167, 94, .34), transparent); }
.mlx-divider i { font-style: normal; font-size: 11px; text-shadow: 0 0 5px rgba(230, 174, 96, .18); }
.mlx-complete-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: fit-content;
    max-width: 92%;
    box-sizing: border-box;
    padding: 6px 14px 7px;
    border: 1px solid rgba(116, 207, 209, .22);
    border-radius: 10px;
    color: #a89f8d;
    background: rgba(37, 72, 76, .14);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 auto 8px;
}
.mlx-complete-target span { color: #8edce0; letter-spacing: .16em; font-size: 10.5px; }
.mlx-complete-target b { min-width: 0; color: #dfeee8; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.mlx-complete-rewards { justify-content: center; margin-bottom: 8px; }
.mlx-complete-note { color: #aa9d84; font-size: 11px; letter-spacing: .05em; margin-top: 3px; }
.mlx-claim-btn {
    flex: 1;
    min-height: 40px;
    color: #ffe3af !important;
    border-color: rgba(231, 190, 105, .6) !important;
    background: linear-gradient(180deg, rgba(105, 76, 34, .48), rgba(45, 33, 22, .72)) !important;
    letter-spacing: .18em;
}
.ml-skin .npc-head {
    color: #e0cda9;
    border-bottom: 1px solid rgba(212, 174, 97, .16);
    padding-bottom: 10px;
}
.ml-skin .npc-say {
    color: #cfc3ac;
    background: linear-gradient(135deg, rgba(38, 43, 48, .5), rgba(37, 30, 40, .42));
    border-left: 2px solid rgba(196, 157, 92, .58);
    border-radius: 8px;
}
.ml-skin .npc-say-name { color: #eac786; }
.ml-skin .q-actions .act-btn {
    border-color: rgba(218, 181, 106, .4);
    background: linear-gradient(180deg, rgba(84, 62, 31, .34), rgba(37, 29, 22, .62));
    color: #e8d3a5;
}
.ml-skin .q-actions .act-btn:hover {
    border-color: rgba(238, 201, 125, .68);
    color: #ffe9bb;
}


/* ============================================================
 * 副本确认 / 仓库数量：立体按压交互
 * ============================================================ */

/* 仓库数量输入框（仓库存取自定义数量） */
.qty-input {
    width: 64px;
    min-width: 0;
    padding: 4px 5px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #f0c674;
    background: rgba(0, 0, 0, .35);
    border: 1px solid #6d5b2f;
    border-radius: 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .4);
    outline: none;
}
.qty-input:focus {
    border-color: #e8c67c;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .4), 0 0 0 2px rgba(232, 198, 124, .16);
}

/* 仓库数量面板动作按钮 */
.act-btn.wh-confirm-btn {
    color: #21160a;
    font-weight: bold;
    background: linear-gradient(180deg, #f2d494 0%, #c9a961 100%);
    border-color: #f2d494;
    box-shadow: 0 3px 0 #6b5325, 0 5px 12px rgba(201, 169, 97, .25), inset 0 1px 0 rgba(255, 255, 255, .48);
}
.act-btn.wh-confirm-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #6b5325, inset 0 4px 9px rgba(0, 0, 0, .38); }
.act-btn.wh-back-btn,
.act-btn.wh-lock-btn {
    background: linear-gradient(180deg, #2d293c 0%, #211e2e 100%);
    border-color: #4a4158;
    box-shadow: 0 2px 0 #0f0c16, inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* 仓库货币面板 */
.wh-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.wh-sec-head h4 { margin: 0; }
.act-btn.wh-money-open {
    flex: none;
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}
.act-btn.wh-money-open span {
    color: #f0c674;
    font-weight: 600;
}
.wh-money-page { width: 100%; }
.wh-money-card {
    padding: 8px 10px;
    border: 1px solid rgba(201, 169, 97, .32);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(42, 36, 56, .7), rgba(23, 19, 31, .55));
}
.wh-money-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
    font-size: 12px;
    color: #8f866f;
}
.wh-money-line b {
    color: #f0c674;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.wh-money-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.wh-money-input {
    flex: 1 1 120px;
    min-width: 100px;
    width: auto;
    border-color: rgba(201, 169, 97, .36);
}
.wh-money-all {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

/* 副本入口 / 凶险确认：0.5 秒读秒，按压下沉 */
.act-btn.dungeon-enter-entry-btn {
    color: #21160a;
    font-weight: bold;
    background: linear-gradient(180deg, #e8c67c 0%, #c09a4f 100%);
    border-color: #e8c67c;
    box-shadow: 0 3px 0 #6b5325, 0 5px 12px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.act-btn.dungeon-back-btn {
    color: #d6cbb0;
    background: linear-gradient(180deg, #2d293c 0%, #211e2e 100%);
    border-color: #4a4158;
    box-shadow: 0 3px 0 #0f0c16, 0 5px 12px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.act-btn.dungeon-confirm-btn {
    position: relative;
    overflow: hidden;
    color: #fff3e4;
    font-weight: bold;
    background: linear-gradient(180deg, #b34a3b 0%, #7b2b23 100%);
    border-color: #e0836e;
    box-shadow: 0 3px 0 #3d130f, 0 5px 14px rgba(179, 74, 59, .3), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s, filter .14s, border-color .14s;
}
.act-btn.dungeon-confirm-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 226, 188, .26), transparent);
    transform: skewX(-18deg);
    transition: left .45s ease;
    pointer-events: none;
}
.act-btn.dungeon-confirm-btn:hover::after { left: 130%; }
.act-btn.dungeon-back-btn:active,
.act-btn.dungeon-confirm-btn:active {
    transform: translateY(3px) scale(.975);
    box-shadow: 0 0 0 #3d130f, inset 0 4px 11px rgba(0, 0, 0, .5);
}
.act-btn.dungeon-back-btn.is-cooling,
.act-btn.dungeon-confirm-btn.is-cooling {
    transform: translateY(4px) scale(.96);
    filter: brightness(.72);
    box-shadow: 0 0 0 #3d130f, inset 0 5px 13px rgba(0, 0, 0, .62);
    pointer-events: none;
}

/* 副本凶险提示内容 */
.dungeon-warn-body {
    padding: 4px 2px 2px;
}
.dungeon-warn-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e58a6f;
    text-shadow: 0 0 14px rgba(190, 70, 48, .25);
    margin-bottom: 4px;
}
.dungeon-warn-sub { font-size: 12.5px; color: #9e947c; margin-bottom: 10px; }
.dungeon-warn-body .detail-row { padding: 5px 0; border-bottom: 1px dashed rgba(201, 169, 97, .15); }
.dungeon-warn-ask {
    margin-top: 13px;
    padding: 9px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #f0c674;
    background: rgba(201, 169, 97, .08);
    border: 1px solid rgba(201, 169, 97, .28);
    border-radius: 7px;
}
.dungeon-warn-body .set-tip { margin-top: 9px; }
.danger-text { color: #e8735e !important; }

/* ============================================================
 * 铁匠铺强化 / 打磨：动作按钮立体按压与读秒
 * ============================================================ */

/* 详情返回：中性立体键 */
.act-btn.forge-back-btn {
    color: #d8cdb3;
    background: linear-gradient(180deg, #302b42 0%, #211e2e 100%);
    border-color: #4e455d;
    box-shadow: 0 3px 0 #0f0c16, 0 5px 12px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.act-btn.forge-back-btn:hover { border-color: #8b7a9e; transform: translateY(-1px); }
.act-btn.forge-back-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #0f0c16, inset 0 4px 9px rgba(0, 0, 0, .48);
}

/* 前往强化：0.5 秒读秒，金色立体 */
.act-btn.enhance-forward-btn {
    position: relative;
    overflow: hidden;
    color: #21160a;
    font-weight: bold;
    background: linear-gradient(180deg, #f0d18a 0%, #c09a4f 100%);
    border-color: #f0d18a;
    box-shadow: 0 3px 0 #6b5325, 0 5px 14px rgba(201, 169, 97, .26), inset 0 1px 0 rgba(255, 255, 255, .48);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s, filter .14s;
}
.act-btn.enhance-forward-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 243, 204, .45), transparent);
    transform: skewX(-18deg);
    transition: left .42s ease;
    pointer-events: none;
}
.act-btn.enhance-forward-btn:hover::after { left: 130%; }
.act-btn.enhance-forward-btn:active,
.act-btn.enhance-forward-btn.is-cooling {
    transform: translateY(4px) scale(.96);
    filter: brightness(.78);
    box-shadow: 0 0 0 #6b5325, inset 0 5px 12px rgba(0, 0, 0, .5);
}
/* 读秒期间才禁用点击；按压态不能禁用，否则 pointerup 会落到弹窗底部导致 click 不触发 */
.act-btn.enhance-forward-btn.is-cooling { pointer-events: none; }

/* 强化装备：选择装备后直接进入的本级强化界面 */
.enhance-head {
    padding: 9px 10px 6px;
    border: 1px solid rgba(201, 169, 97, .22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(44, 35, 20, .58), rgba(20, 17, 27, .38));
}
.enhance-head h4 { font-size: 14px; margin-bottom: 5px; }
.enh-lv-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0 5px;
    border-bottom: 1px dashed #232033;
    font-size: 12px;
    color: #bcb39a;
}
.enh-lv-line b { color: #ffe08a; font-size: 15px; margin: 0 1px; }
.enh-lv-max { color: #8fb4d8; font-size: 11px; }
.polish-stars { margin-left: 5px; color: #e8c46a; font-size: 11px; letter-spacing: 1px; }
.enh-rate {
    padding: 1px 7px;
    border: 1px solid rgba(127, 224, 168, .35);
    border-radius: 999px;
    background: rgba(127, 224, 168, .1);
    color: #7fe0a8;
    font-size: 11px;
    font-weight: 700;
}
.enhance-head .detail-row { border-bottom: 0; padding-bottom: 0; }
.enh-sec-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.enh-sec-sub {
    margin-left: auto;
    color: #8fb4d8;
    font-size: 10px;
    font-weight: 400;
}
.enh-need {
    border: 1px solid rgba(201, 169, 97, .18);
    border-radius: 8px;
    background: rgba(12, 10, 18, .28);
    overflow: hidden;
}
.enh-need-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
}
.enh-need-row + .enh-need-row { border-top: 1px dashed #232033; }
.enh-need-name { flex: 0 0 52px; color: #a99d80; font-size: 12px; }
.enh-need-num { color: #ffe08a; font-size: 14px; font-weight: 700; }
.enh-owned { margin-left: auto; color: #6f6856; font-size: 10.5px; font-style: normal; }
.enh-owned.ok { color: #7fe0a8; }
.enh-owned.bad { color: #ff6b6b; }
.enh-preview {
    padding: 2px 10px;
    border: 1px solid rgba(201, 169, 97, .18);
    border-radius: 8px;
    background: rgba(12, 10, 18, .28);
}
.enh-preview-note {
    padding: 5px 0 4px;
    border-bottom: 1px dashed #232033;
    color: #6f6856;
    font-size: 10.5px;
    line-height: 1.5;
}
.enh-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #232033;
    color: #a99d80;
    font-size: 12px;
}
.enh-preview-row:last-child { border-bottom: 0; }
.enh-preview-row b {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    font-weight: 500;
}
.enh-cur { color: #9c927a; font-style: normal; }
.enh-arrow { color: #6f6856; font-size: 10px; font-style: normal; }
.enh-next { color: #f0c674; font-weight: 700; font-style: normal; }
.enh-delta {
    min-width: 30px;
    text-align: right;
    color: #6f6856;
    font-size: 10px;
    font-style: normal;
}
.enh-delta.up { color: #7fe0a8; font-weight: 700; }
.enh-milestone {
    margin-top: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(232, 184, 92, .3);
    border-radius: 7px;
    background: rgba(232, 184, 92, .08);
    color: #e8b85c;
    font-size: 11.5px;
    line-height: 1.55;
}

/* 强化 / 打磨详情页：延续成功界面的彩色字体、符号与分色数值 */
.forge-detail-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 0 7px;
    color: #d5b475;
    font-size: 10px;
    letter-spacing: 3px;
}
.forge-detail-kicker span:nth-child(1) { color: #ffd36a; }
.forge-detail-kicker span:nth-child(3) { color: #ff9fc9; }
.polish-kicker {
    color: #a9cf9f;
}
.polish-kicker span:nth-child(1) { color: #c7ffb5; }
.polish-kicker span:nth-child(3) { color: #8fe6ff; }
.forge-detail-enhance .enhance-head {
    border-color: rgba(255, 201, 112, .36);
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 184, 80, .13), transparent 58%),
        linear-gradient(180deg, rgba(51, 37, 22, .66), rgba(21, 18, 29, .5));
    box-shadow: inset 0 0 20px rgba(255, 166, 76, .045), 0 0 16px rgba(255, 150, 64, .05);
}
.forge-detail-polish .enhance-head {
    border-color: rgba(158, 226, 153, .33);
    background:
        radial-gradient(circle at 50% -20%, rgba(137, 232, 174, .12), transparent 58%),
        linear-gradient(180deg, rgba(28, 47, 37, .6), rgba(18, 19, 27, .5));
    box-shadow: inset 0 0 20px rgba(127, 224, 168, .04), 0 0 16px rgba(112, 218, 194, .05);
}
.enh-title-sym {
    display: inline-block;
    margin-right: 3px;
    color: #ffd36a;
    text-shadow: 0 0 7px rgba(255, 185, 77, .5);
}
.polish-title-sym {
    color: #c7ffb5;
    text-shadow: 0 0 7px rgba(147, 235, 167, .52);
}
.enh-lv-line b {
    text-shadow: 0 0 8px rgba(255, 206, 105, .4);
}
.enh-rate {
    box-shadow: inset 0 0 8px rgba(104, 230, 157, .05), 0 0 8px rgba(104, 230, 157, .05);
}
.polish-rate {
    border-color: rgba(143, 230, 255, .38);
    background: rgba(143, 230, 255, .09);
    color: #9fe8ff;
    text-shadow: 0 0 8px rgba(143, 230, 255, .26);
}
.polish-stars {
    color: #d4ffae;
    text-shadow: 0 0 8px rgba(189, 255, 156, .42);
}
.enh-stat-row {
    align-items: flex-start !important;
}
.enh-stat-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 8px;
    max-width: 82%;
    line-height: 1.45;
}
.enh-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 5px;
    background: rgba(255, 255, 255, .028);
    font-size: 10.5px;
    color: #a79b81;
    white-space: nowrap;
}
.enh-stat i { font-style: normal; font-size: 9px; text-shadow: 0 0 6px currentColor; }
.enh-stat b { font-size: 11px; font-weight: 700; }
.enh-stat.hp i, .enh-stat.hp b { color: #ff8ab8; }
.enh-stat.atk i, .enh-stat.atk b { color: #ffcb6b; }
.enh-stat.def i, .enh-stat.def b { color: #7bd7ff; }
.enh-stat.min i, .enh-stat.min b { color: #9bea9b; }
.enh-sec-title {
    font-weight: 700;
}
.enhance-need-title { color: #ffd68a; text-shadow: 0 0 9px rgba(255, 193, 92, .16); }
.enhance-preview-title { color: #ffc0da; text-shadow: 0 0 9px rgba(255, 157, 201, .16); }
.enh-sec-sym {
    margin-right: 3px;
    color: #ffd36a;
    text-shadow: 0 0 7px rgba(255, 196, 92, .45);
}
.polish-sym { color: #c7ffb5; text-shadow: 0 0 7px rgba(147, 235, 167, .45); }
.enh-need-sym {
    display: inline-block;
    width: 11px;
    margin-right: 3px;
    font-style: normal;
    font-size: 9px;
    text-align: center;
    text-shadow: 0 0 6px currentColor;
}
.enh-need-sym.water { color: #8fe6ff; }
.enh-need-sym.coin { color: #ffd36a; }
.enh-need-num {
    text-shadow: 0 0 8px rgba(255, 212, 118, .25);
}
.enh-preview-row {
    padding-left: 7px;
    border-left: 2px solid rgba(255, 255, 255, .08);
}
.enh-preview-row.row-hp { border-left-color: rgba(255, 138, 184, .52); }
.enh-preview-row.row-atk { border-left-color: rgba(255, 203, 107, .52); }
.enh-preview-row.row-def { border-left-color: rgba(123, 215, 255, .52); }
.enh-preview-row.row-min { border-left-color: rgba(155, 234, 155, .52); }
.enh-preview-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.enh-row-sym {
    font-style: normal;
    font-size: 9px;
    text-shadow: 0 0 6px currentColor;
}
.enh-preview-row.row-hp > span { color: #d9a7bc; }
.enh-preview-row.row-atk > span { color: #d8bd88; }
.enh-preview-row.row-def > span { color: #9dc5d8; }
.enh-preview-row.row-min > span { color: #a8cfa2; }
.enh-preview-row.row-hp .enh-row-sym, .enh-preview-row.row-hp .enh-next { color: #ff8ab8; }
.enh-preview-row.row-atk .enh-row-sym, .enh-preview-row.row-atk .enh-next { color: #ffcb6b; }
.enh-preview-row.row-def .enh-row-sym, .enh-preview-row.row-def .enh-next { color: #7bd7ff; }
.enh-preview-row.row-min .enh-row-sym, .enh-preview-row.row-min .enh-next { color: #9bea9b; }
.enh-preview-row .enh-next { text-shadow: 0 0 7px currentColor; }
.enh-preview-note {
    color: #8f846c;
}
.forge-detail-enhance .enh-preview-note { color: #a28d67; }
.forge-detail-polish .enh-preview-note { color: #84a385; }

/* 强化仪式：开炉等待 + 强化成功 / 失败反馈 */
.enh-ceremony-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 44%, rgba(255, 154, 80, .1), rgba(7, 5, 10, .74) 64%);
}
.enh-ceremony-layer.is-success {
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 195, 96, .1), transparent 42%),
        radial-gradient(circle at 76% 22%, rgba(255, 112, 181, .06), transparent 34%),
        radial-gradient(circle at 22% 72%, rgba(112, 218, 255, .05), transparent 36%),
        rgba(7, 5, 10, .74);
}
.enh-ceremony-layer.is-fail {
    background: radial-gradient(circle at 50% 44%, rgba(186, 120, 78, .08), rgba(6, 5, 9, .75) 66%);
}
.enh-ceremony-card {
    position: relative;
    width: min(100%, 420px);
    padding: 18px 18px 16px;
    border-radius: 16px;
    text-align: center;
    color: #efe7d6;
    opacity: 1;
    animation: enhCardIn .34s cubic-bezier(.18, .9, .28, 1.15);
}

/* 开炉等待 */
.enh-waiting-card {
    overflow: hidden;
    border: 1px solid rgba(255, 174, 100, .5);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 139, 70, .18), transparent 48%),
        linear-gradient(180deg, #28202b 0%, #15111b 100%);
    box-shadow: 0 0 30px rgba(226, 101, 48, .2), inset 0 0 26px rgba(255, 147, 75, .05);
}
.enh-wait-emblem {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 2px auto 10px;
    border: 1px solid rgba(255, 202, 119, .5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 197, 100, .18), rgba(112, 46, 29, .15) 52%, transparent 70%);
    box-shadow: 0 0 24px rgba(255, 155, 62, .2), inset 0 0 18px rgba(255, 199, 99, .1);
    animation: enhForgePulse 1.15s ease-in-out infinite;
}
.enh-wait-emblem::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(255, 205, 118, .35);
    border-radius: 50%;
    animation: enhOrbit 5s linear infinite;
}
.enh-wait-emblem::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(130, 215, 255, .18);
    border-radius: 50%;
}
.enh-wait-core {
    color: #ffd36a;
    font-size: 38px;
    line-height: 1;
    text-shadow: 0 0 8px #ffb84d, 0 0 20px rgba(255, 131, 74, .8);
    animation: enhCorePulse 1.1s ease-in-out infinite;
}
.enh-wait-orbit {
    position: absolute;
    font-style: normal;
    font-size: 13px;
    line-height: 1;
    animation: enhSymbolFloat 1.7s ease-in-out infinite;
}
.enh-wait-orbit.o1 { top: -7px; left: 16px; color: #ff9fc9; animation-delay: .1s; }
.enh-wait-orbit.o2 { right: 5px; bottom: 14px; color: #8fe6ff; animation-delay: .45s; }
.enh-wait-orbit.o3 { left: 3px; bottom: 11px; color: #ffd36a; animation-delay: .8s; }
.enh-wait-kicker {
    color: #ffbf7d;
    font-size: 11px;
    letter-spacing: 2px;
}
.enh-wait-kicker span { color: #ff9fc9; margin: 0 3px; }
.enh-wait-title {
    margin: 3px 0 5px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #ffd36a, #ff9b70 46%, #ff9fc9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 153, 74, .26));
}
.enh-wait-eq {
    color: #fff0d7;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.enh-wait-sub {
    margin-top: 4px;
    color: #918775;
    font-size: 11px;
}
.enh-wait-track {
    height: 6px;
    margin: 14px 4px 9px;
    border: 1px solid rgba(255, 198, 114, .24);
    border-radius: 999px;
    background: rgba(8, 6, 12, .58);
    overflow: hidden;
}
.enh-wait-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7d5b, #ffd36a 48%, #ff9fc9 78%, #8fe6ff);
    box-shadow: 0 0 10px rgba(255, 172, 81, .7);
    animation: enhWaitFill 1.42s cubic-bezier(.2, .65, .35, 1) forwards;
}
.enh-wait-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 10.5px;
}
.enh-wait-meta span {
    padding: 2px 8px;
    border: 1px solid rgba(255, 196, 112, .22);
    border-radius: 999px;
    color: #b7a789;
    background: rgba(255, 196, 112, .05);
}
.enh-wait-meta b { color: #ffcc79; font-weight: 400; margin-right: 2px; }

/* 强化成功 */
.enh-success-card {
    overflow: hidden;
    border: 1px solid rgba(255, 211, 125, .5);
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 204, 107, .22), transparent 52%),
        radial-gradient(circle at 92% 16%, rgba(255, 112, 183, .1), transparent 36%),
        linear-gradient(180deg, #29202e 0%, #131019 100%);
    box-shadow:
        0 0 32px rgba(255, 96, 171, .12),
        0 0 50px rgba(255, 195, 91, .07),
        inset 0 0 36px rgba(255, 196, 100, .04);
}
.enh-success-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .045) 46%, transparent 62%);
    transform: translateX(-110%);
    animation: enhShine 2.4s ease-out .2s;
    pointer-events: none;
}
.enh-success-spark {
    position: absolute;
    font-style: normal;
    font-size: 17px;
    z-index: 1;
    animation: enhSparkTwinkle 1.8s ease-in-out infinite;
    pointer-events: none;
}
.enh-success-spark.s1 { left: 14%; top: 15%; color: #ffd36a; animation-delay: .1s; }
.enh-success-spark.s2 { right: 13%; top: 13%; color: #ff9fc9; animation-delay: .55s; }
.enh-success-spark.s3 { left: 10%; bottom: 22%; color: #8fe6ff; font-size: 12px; animation-delay: .9s; }
.enh-success-spark.s4 { right: 11%; bottom: 26%; color: #b7ffbf; font-size: 11px; animation-delay: .35s; }
.enh-success-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffd68a;
    font-size: 10.5px;
    letter-spacing: 2px;
}
.enh-success-kicker span:nth-child(1) { color: #ffd36a; }
.enh-success-kicker span:nth-child(3) { color: #ff9fc9; }
.enh-success-title {
    margin: 4px 0 1px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 6px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffe18b 0%, #ffd36a 20%, #ff9fc9 58%, #9ce9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 145, 176, .18));
}
.enh-success-level {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 6px;
    line-height: 1;
}
.enh-success-level b { color: #9c927a; font-size: 22px; }
.enh-success-level i { color: #ffcf76; font-size: 17px; font-style: normal; }
.enh-success-level em {
    color: #fff1bd;
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(255, 211, 106, .45), 0 0 16px rgba(255, 118, 184, .16);
}
.enh-success-eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid rgba(255, 202, 111, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
    font-size: 13px;
}
.enh-success-eq .eq-qtag {
    flex: none;
    margin: 0 2px 0 0;
    padding: 1px 6px;
    font-size: 11.5px;
    font-weight: 400;
    line-height: inherit;
}
.enh-success-eq > b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffe9c2;
}
.enh-success-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 9px 0 7px;
    color: #ffcf76;
    font-size: 10px;
}
.enh-success-divider span:nth-child(2) { color: #ff9fc9; }
.enh-success-divider i {
    width: 36%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 196, 108, .36), transparent);
}
.enh-success-attrs {
    display: grid;
    gap: 5px;
    text-align: left;
}
.enh-success-attr {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border-left: 2px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    background: rgba(255, 255, 255, .038);
    font-size: 11px;
}
.enh-success-attr.hp { border-left-color: #ff8ab8; }
.enh-success-attr.atk { border-left-color: #ffcb6b; }
.enh-success-attr.def { border-left-color: #7bd7ff; }
.enh-success-attr.min { border-left-color: #9bea9b; }
.enh-success-attr.hp .enh-attr-sym { color: #ff8ab8; }
.enh-success-attr.atk .enh-attr-sym { color: #ffcb6b; }
.enh-success-attr.def .enh-attr-sym { color: #7bd7ff; }
.enh-success-attr.min .enh-attr-sym { color: #9bea9b; }
.enh-attr-sym {
    flex: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 0 6px currentColor;
}
.enh-attr-label { flex: 0 0 34px; color: #a99d80; }
.enh-attr-nums {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    margin-left: auto;
}
.enh-attr-nums em { color: #827965; font-style: normal; }
.enh-attr-nums i { color: #6f6856; font-size: 9px; font-style: normal; }
.enh-attr-nums b { color: #fff1c9; font-size: 12px; }
.enh-attr-delta {
    flex: 0 0 38px;
    text-align: right;
    color: #776f5e;
    font-size: 10.5px;
    font-weight: 700;
}
.enh-attr-delta.up { color: #8ef0a9; text-shadow: 0 0 7px rgba(114, 232, 148, .26); }
.enh-success-tip {
    margin-top: 9px;
    color: #ffcf76;
    font-size: 10.5px;
    letter-spacing: .5px;
}
.enh-success-tip span { color: #ff9fc9; margin-right: 3px; }
.enh-result-continue {
    display: block;
    width: 100%;
    margin-top: 11px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    color: #2a1420;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(100deg, #ffd36a 0%, #ff9fc9 56%, #8fe6ff 100%);
    box-shadow: 0 4px 0 #4e2e43, 0 7px 18px rgba(255, 113, 180, .24);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.enh-result-continue:hover { filter: brightness(1.06); }
.enh-result-continue:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #4e2e43, inset 0 4px 10px rgba(0, 0, 0, .18);
}

/* 强化失败 */
.enh-fail-card {
    overflow: hidden;
    border: 1px solid rgba(214, 151, 93, .44);
    background:
        radial-gradient(circle at 50% 0%, rgba(187, 112, 66, .16), transparent 46%),
        linear-gradient(180deg, #241f27 0%, #121016 100%);
    box-shadow: 0 0 28px rgba(122, 74, 48, .18), inset 0 0 28px rgba(187, 112, 66, .04);
}
.enh-fail-symbols {
    display: flex;
    justify-content: center;
    gap: 9px;
    color: #b78668;
    font-size: 11px;
    letter-spacing: 2px;
}
.enh-fail-kicker {
    margin-top: 3px;
    color: #c39979;
    font-size: 10.5px;
    letter-spacing: 2px;
}
.enh-fail-title {
    margin: 2px 0 6px;
    color: #ffc28d;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: 5px;
    text-shadow: 0 0 12px rgba(255, 145, 86, .2);
}
.enh-fail-eq {
    color: #d8c4ac;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.enh-fail-tip {
    margin: 7px 0 5px;
    color: #8f8371;
    font-size: 11px;
    line-height: 1.6;
}
.enh-fail-refund {
    padding: 7px 9px;
    border: 1px solid rgba(216, 156, 95, .18);
    border-radius: 7px;
    background: rgba(216, 156, 95, .05);
    color: #b9a48a;
    font-size: 11.5px;
}
.enh-fail-refund span { color: #e8bd82; margin-right: 3px; }
.enh-fail-refund b { color: #ffd39b; }
.enh-fail-continue {
    background: linear-gradient(100deg, #cba76e, #d99575 58%, #b6d5df);
    box-shadow: 0 4px 0 #3f2c35, 0 7px 16px rgba(160, 103, 70, .2);
}

@keyframes enhCardIn { from { transform: translateY(16px) scale(.94); } }
@keyframes enhForgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(255, 155, 62, .2), inset 0 0 18px rgba(255, 199, 99, .1); }
    50% { transform: scale(1.055); box-shadow: 0 0 34px rgba(255, 155, 62, .34), inset 0 0 22px rgba(255, 199, 99, .16); }
}
@keyframes enhOrbit { to { transform: rotate(360deg); } }
@keyframes enhCorePulse {
    0%, 100% { transform: scale(1) rotate(-4deg); opacity: .9; }
    50% { transform: scale(1.14) rotate(4deg); opacity: 1; }
}
@keyframes enhSymbolFloat {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes enhWaitFill { to { width: 100%; } }
@keyframes enhSparkTwinkle {
    0%, 100% { opacity: .45; transform: scale(.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.18) rotate(12deg); }
}
@keyframes enhShine { 0% { transform: translateX(-110%); } 70%, 100% { transform: translateX(115%); } }

/* 打磨仪式：青玉、星光与磨石金 */
.enh-ceremony-layer.is-polish-waiting {
    background:
        radial-gradient(circle at 50% 44%, rgba(128, 232, 177, .1), rgba(6, 8, 10, .74) 64%),
        radial-gradient(circle at 22% 20%, rgba(255, 203, 107, .05), transparent 30%);
}
.enh-ceremony-layer.is-polish-success {
    background:
        radial-gradient(circle at 50% 38%, rgba(178, 255, 167, .09), transparent 42%),
        radial-gradient(circle at 76% 22%, rgba(143, 230, 255, .06), transparent 34%),
        radial-gradient(circle at 22% 72%, rgba(255, 211, 106, .04), transparent 36%),
        rgba(6, 8, 10, .75);
}
.enh-ceremony-layer.is-polish-fail {
    background: radial-gradient(circle at 50% 44%, rgba(129, 152, 112, .08), rgba(6, 8, 9, .75) 66%);
}
.polish-waiting-card {
    border-color: rgba(160, 235, 171, .44);
    background:
        radial-gradient(circle at 50% 0%, rgba(133, 235, 171, .16), transparent 48%),
        linear-gradient(180deg, #1e2926 0%, #111a1a 100%);
    box-shadow: 0 0 30px rgba(83, 190, 132, .18), inset 0 0 26px rgba(122, 224, 165, .05);
}
.polish-emblem {
    border-color: rgba(177, 255, 186, .48);
    background: radial-gradient(circle, rgba(188, 255, 177, .18), rgba(35, 82, 60, .15) 52%, transparent 70%);
    box-shadow: 0 0 24px rgba(100, 232, 154, .2), inset 0 0 18px rgba(188, 255, 177, .1);
}
.polish-emblem::before { border-color: rgba(180, 255, 189, .34); }
.polish-emblem .enh-wait-core,
.polish-waiting-card .enh-wait-core {
    color: #ceffb9;
    text-shadow: 0 0 8px #8fe6a0, 0 0 20px rgba(115, 232, 154, .78);
}
.polish-waiting-card .enh-wait-title {
    background: linear-gradient(90deg, #d8ffc2, #ffd36a 48%, #8fe6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(143, 230, 166, .22));
}
.polish-waiting-card .enh-wait-track {
    border-color: rgba(168, 237, 181, .28);
}
.polish-waiting-card .enh-wait-track i {
    background: linear-gradient(90deg, #8fe6a0, #d8ffb9 42%, #ffd36a 72%, #8fe6ff);
    box-shadow: 0 0 10px rgba(142, 234, 164, .65);
}
.polish-waiting-card .enh-wait-meta span {
    border-color: rgba(160, 235, 171, .25);
    background: rgba(160, 235, 171, .05);
    color: #a9c3a6;
}
.polish-waiting-card .enh-wait-meta b { color: #c7ffb5; }
.enh-success-card.polish-success-card {
    border-color: rgba(193, 255, 180, .45);
    background:
        radial-gradient(circle at 50% -8%, rgba(196, 255, 174, .18), transparent 52%),
        radial-gradient(circle at 92% 16%, rgba(143, 230, 255, .09), transparent 36%),
        radial-gradient(circle at 10% 78%, rgba(255, 211, 106, .05), transparent 32%),
        linear-gradient(180deg, #202b26 0%, #111417 100%);
    box-shadow:
        0 0 30px rgba(110, 232, 160, .11),
        0 0 50px rgba(143, 230, 255, .06),
        inset 0 0 36px rgba(194, 255, 173, .035);
}
.polish-success-card .enh-success-kicker { color: #c7ffb5; }
.polish-success-card .enh-success-kicker span:nth-child(1) { color: #d8ffb9; }
.polish-success-card .enh-success-kicker span:nth-child(3) { color: #8fe6ff; }
.polish-success-card .enh-success-title {
    background: linear-gradient(90deg, #d8ffb9 0%, #ffd36a 34%, #8fe6ff 70%, #ff9fc9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(134, 238, 165, .16));
}
.polish-success-card .enh-success-level em {
    color: #ecffd9;
    text-shadow: 0 0 6px rgba(166, 255, 176, .45), 0 0 16px rgba(143, 230, 255, .14);
}
.polish-success-card .enh-success-tip { color: #c9f5b7; }
.polish-success-card .enh-success-tip span { color: #ffd36a; }
.enh-success-hit {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: 7px 0 1px;
    padding: 6px 9px;
    border: 1px solid rgba(193, 255, 180, .28);
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(168, 255, 170, .05), rgba(255, 211, 106, .07), rgba(143, 230, 255, .05));
    color: #d8cfa8;
    font-size: 11px;
}
.enh-success-hit span { color: #ffd36a; text-shadow: 0 0 7px rgba(255, 203, 107, .45); }
.enh-success-hit b { color: #d8ffb9; font-size: 13px; }
.enh-success-hit em {
    color: #ffd36a;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 203, 107, .36);
}
.enh-success-attr.hit {
    background: linear-gradient(90deg, rgba(171, 255, 176, .075), rgba(255, 211, 106, .045));
    box-shadow: inset 0 0 0 1px rgba(193, 255, 180, .16);
}
.enh-hit-badge {
    flex: none;
    padding: 0 3px;
    border: 1px solid rgba(193, 255, 180, .25);
    border-radius: 4px;
    color: #c7ffb5;
    font-size: 8px;
    line-height: 1.5;
    white-space: nowrap;
}
/* ============================================================
 * 礼包开启：等待演出 + 彩色奖励详情
 * ============================================================ */
.enh-ceremony-layer.is-pack-waiting {
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 205, 110, .12), transparent 44%),
        radial-gradient(circle at 80% 18%, rgba(255, 112, 181, .07), transparent 34%),
        radial-gradient(circle at 18% 78%, rgba(112, 218, 255, .06), transparent 36%),
        rgba(7, 5, 10, .78);
}
.pack-waiting-card {
    border-color: rgba(255, 207, 118, .56);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 178, 73, .2), transparent 48%),
        radial-gradient(circle at 86% 78%, rgba(143, 230, 255, .06), transparent 36%),
        linear-gradient(180deg, #2b2230 0%, #141019 100%);
    box-shadow: 0 0 34px rgba(255, 168, 65, .2), inset 0 0 30px rgba(255, 191, 98, .05);
}
.pack-wait-emblem .enh-wait-core {
    font-size: 34px;
    text-shadow: 0 0 9px #ffc45e, 0 0 22px rgba(255, 114, 168, .5);
    animation: packGiftPulse 1.05s ease-in-out infinite;
}
.pack-kicker { color: #ffc97d; }
.pack-kicker span { color: #ff9fc9; }
.pack-wait-title {
    background: linear-gradient(90deg, #ffe18b, #ffb36b 46%, #ff9fc9 76%, #9ce9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.enh-ceremony-layer.is-pack-success {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 208, 112, .14), transparent 42%),
        radial-gradient(circle at 78% 24%, rgba(255, 112, 181, .08), transparent 35%),
        radial-gradient(circle at 20% 74%, rgba(112, 218, 255, .07), transparent 36%),
        rgba(7, 5, 10, .78);
}
.pack-success-card {
    width: min(100%, 440px);
    border-color: rgba(255, 211, 125, .55);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 211, 107, .24), transparent 52%),
        radial-gradient(circle at 94% 14%, rgba(255, 112, 183, .1), transparent 34%),
        radial-gradient(circle at 8% 82%, rgba(112, 218, 255, .07), transparent 36%),
        linear-gradient(180deg, #2c2130 0%, #131019 100%);
}
.pack-success-title {
    font-size: 30px;
    letter-spacing: 7px;
}
.pack-source-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 10px;
    border: 1px solid rgba(255, 202, 111, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    font-size: 12px;
}
.pack-source-line span { flex: none; font-size: 15px; }
.pack-source-line b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffe9c2;
}
.pack-reward-summary {
    margin: 0 0 7px;
    color: #b9ad92;
    font-size: 10.5px;
    letter-spacing: .5px;
}
.pack-reward-summary b { color: #ffd36a; font-size: 14px; margin: 0 2px; }
.pack-reward-list {
    display: grid;
    gap: 6px;
    max-height: min(44vh, 350px);
    padding: 1px 2px 1px 0;
    overflow-y: auto;
    text-align: left;
}
.pack-reward-list::-webkit-scrollbar { width: 5px; }
.pack-reward-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 196, 112, .28);
}
.pack-reward-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-left: 3px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}
.pack-reward-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 205, 120, .24);
    border-radius: 7px;
    background: radial-gradient(circle, rgba(255, 203, 107, .12), rgba(255, 255, 255, .025));
    color: #ffd36a;
}
.pack-reward-equip .pack-reward-icon {
    font-size: 17px;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(255, 196, 100, .4);
}
.pr-main { flex: 1; min-width: 0; }
.pr-name {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
}
.pr-name b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffe9c2;
    font-weight: 700;
}
.pr-count {
    flex: none;
    margin-left: auto;
    color: #ffd36a;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}
.pack-qtag {
    flex: none;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    color: #9f947e;
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1.5;
}
.pr-sub {
    margin-top: 2px;
    color: #8e826b;
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pr-desc {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #b7aa92;
    font-size: 10px;
    line-height: 1.45;
}
.pr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.pack-stat {
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #b8ab90;
    font-size: 9px;
    line-height: 1.5;
}
.pack-stat.atk { color: #ffcb6b; border-color: rgba(255, 203, 107, .22); }
.pack-stat.def { color: #7bd7ff; border-color: rgba(123, 215, 255, .2); }
.pack-stat.hp { color: #ff8ab8; border-color: rgba(255, 138, 184, .22); }
.pack-stat.min { color: #9bea9b; border-color: rgba(155, 234, 155, .2); }
.pack-reward-item.q1 { border-left-color: #b0a890; }
.pack-reward-item.q2 { border-left-color: #6aa8ff; }
.pack-reward-item.q3 { border-left-color: #b06fd6; }
.pack-reward-item.q4 { border-left-color: #d786ff; }
.pack-reward-item.q5 { border-left-color: #ff9fc9; }
.pack-reward-item.q6 { border-left-color: #ffd36a; }
.pack-reward-item.q3 .pack-qtag,
.pack-reward-item.q4 .pack-qtag,
.pack-reward-item.q5 .pack-qtag,
.pack-reward-item.q6 .pack-qtag {
    color: #ffd36a;
    border-color: rgba(255, 211, 106, .28);
    background: rgba(255, 211, 106, .06);
}
.pack-empty {
    padding: 18px 8px;
    color: #b9ad92;
    font-size: 11px;
    text-align: center;
}
.pack-result-continue {
    margin-top: 10px;
}
@keyframes packGiftPulse {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: brightness(1); }
    50% { transform: scale(1.06) rotate(2deg); filter: brightness(1.18); }
}
@keyframes packRewardIn {
    from { opacity: 0; transform: translateY(7px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
 * 宠物蛋 / 坐骑缰绳：获取伙伴演出与详情卡
 * ============================================================ */
.enh-ceremony-layer.is-pet-waiting {
    background:
        radial-gradient(circle at 50% 40%, rgba(119, 255, 203, .12), transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(143, 230, 255, .08), transparent 34%),
        radial-gradient(circle at 16% 78%, rgba(255, 211, 106, .05), transparent 36%),
        rgba(7, 8, 12, .78);
}
.pet-waiting-card {
    border-color: rgba(151, 255, 213, .5);
    background:
        radial-gradient(circle at 50% 0%, rgba(107, 255, 205, .18), transparent 50%),
        radial-gradient(circle at 88% 76%, rgba(143, 230, 255, .07), transparent 36%),
        linear-gradient(180deg, #1c2a2a 0%, #11171b 100%);
    box-shadow: 0 0 32px rgba(87, 226, 183, .18), inset 0 0 30px rgba(141, 255, 217, .04);
}
.pet-wait-emblem .enh-wait-core {
    font-size: 32px;
    text-shadow: 0 0 9px #8effd0, 0 0 22px rgba(111, 215, 255, .5);
    animation: petEggPulse 1.05s ease-in-out infinite;
}
.pet-wait-title {
    background: linear-gradient(90deg, #b9ffd8, #8fe6ff 52%, #ffd36a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.enh-ceremony-layer.is-mount-waiting {
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 202, 106, .13), transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(255, 112, 112, .08), transparent 34%),
        radial-gradient(circle at 16% 78%, rgba(143, 230, 255, .05), transparent 36%),
        rgba(8, 6, 10, .78);
}
.mount-waiting-card {
    border-color: rgba(255, 202, 112, .54);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 153, 74, .2), transparent 50%),
        radial-gradient(circle at 88% 76%, rgba(255, 112, 112, .07), transparent 36%),
        linear-gradient(180deg, #2c2226 0%, #151016 100%);
    box-shadow: 0 0 32px rgba(255, 153, 74, .2), inset 0 0 30px rgba(255, 202, 112, .05);
}
.mount-wait-emblem .enh-wait-core {
    font-size: 32px;
    text-shadow: 0 0 9px #ffcf76, 0 0 22px rgba(255, 111, 90, .5);
    animation: mountRopePulse 1.05s ease-in-out infinite;
}
.mount-wait-title {
    background: linear-gradient(90deg, #ffd36a, #ff9b70 48%, #ff9fc9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.acquire-success-card {
    width: min(100%, 440px);
}
.pet-success-card {
    border-color: rgba(143, 255, 214, .5);
    background:
        radial-gradient(circle at 50% -8%, rgba(104, 255, 206, .2), transparent 50%),
        radial-gradient(circle at 92% 18%, rgba(143, 230, 255, .09), transparent 35%),
        linear-gradient(180deg, #1d2a29 0%, #12171a 100%);
}
.mount-success-card {
    border-color: rgba(255, 205, 115, .54);
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 191, 92, .22), transparent 50%),
        radial-gradient(circle at 92% 18%, rgba(255, 112, 112, .08), transparent 35%),
        linear-gradient(180deg, #2d2222 0%, #161116 100%);
}
.acquire-title {
    font-size: 30px;
    letter-spacing: 6px;
}
.pet-success-card .enh-success-kicker { color: #b9ffd8; }
.pet-success-card .acquire-continue { background: linear-gradient(100deg, #b9ffd8 0%, #8fe6ff 55%, #ffd36a 100%); }
.mount-success-card .enh-success-kicker { color: #ffd68a; }
.mount-success-card .acquire-continue { background: linear-gradient(100deg, #ffd36a 0%, #ff9f74 56%, #ff9fc9 100%); }
.acquire-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    text-align: left;
}
.acquire-emblem {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 26px;
    line-height: 1;
}
.pet-emblem {
    border: 1px solid rgba(143, 255, 214, .4);
    background: radial-gradient(circle, rgba(107, 255, 205, .2), rgba(255, 255, 255, .03));
    box-shadow: 0 0 16px rgba(87, 226, 183, .12), inset 0 0 14px rgba(143, 255, 214, .05);
}
.mount-emblem {
    border: 1px solid rgba(255, 205, 115, .38);
    background: radial-gradient(circle, rgba(255, 187, 92, .18), rgba(255, 255, 255, .03));
    box-shadow: 0 0 16px rgba(255, 164, 74, .12), inset 0 0 14px rgba(255, 205, 115, .05);
}
.acquire-main { flex: 1; min-width: 0; }
.acquire-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}
.acquire-name-line b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff0d7;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}
.acquire-sub {
    margin-top: 4px;
    color: #a99d85;
    font-size: 10.5px;
    line-height: 1.5;
}
.acquire-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.acquire-trait {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #b7aa92;
    font-size: 9.5px;
}
.acquire-trait b { color: #ffe7b8; margin-left: 2px; }
.acquire-trait.gen { border-color: rgba(143, 255, 214, .22); }
.acquire-trait.wux { border-color: rgba(143, 230, 255, .22); }
.acquire-trait.slot { border-color: rgba(255, 211, 106, .22); }
.acquire-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    text-align: center;
}
.acquire-stat {
    padding: 5px 3px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
}
.acquire-stat i { display: block; font-size: 10px; font-style: normal; margin-bottom: 1px; }
.acquire-stat span { display: block; color: #999079; font-size: 9px; }
.acquire-stat b { display: block; margin-top: 1px; color: #fff1c9; font-size: 14px; line-height: 1.2; }
.acquire-stat.atk i { color: #ffcb6b; }
.acquire-stat.def i { color: #7bd7ff; }
.acquire-stat.hp i { color: #ff8ab8; }
.acquire-stat.min i { color: #9bea9b; }
.acquire-stat.atk { border-color: rgba(255, 203, 107, .18); }
.acquire-stat.def { border-color: rgba(123, 215, 255, .18); }
.acquire-stat.hp { border-color: rgba(255, 138, 184, .18); }
.acquire-stat.min { border-color: rgba(155, 234, 155, .18); }
.acquire-desc {
    margin-top: 8px;
    padding: 6px 8px;
    border-left: 2px solid rgba(255, 211, 106, .22);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, .025);
    color: #b7aa92;
    font-size: 10px;
    line-height: 1.55;
    text-align: left;
}
.pet-title, .mount-title { letter-spacing: 7px; }
/* 宠物标签已恢复第123版原样式；坐骑标签沿用直角方牌 */
.mount-rarity-rare { box-shadow: 0 0 32px rgba(169, 107, 255, .1), inset 0 0 36px rgba(169, 107, 255, .04); }
.mount-rarity-epic { box-shadow: 0 0 32px rgba(201, 169, 97, .12), inset 0 0 36px rgba(201, 169, 97, .05); }
.mount-rarity-legend { box-shadow: 0 0 34px rgba(255, 90, 90, .12), inset 0 0 36px rgba(255, 90, 90, .04); }
.mount-rarity-myth { box-shadow: 0 0 36px rgba(255, 210, 77, .14), inset 0 0 36px rgba(255, 210, 77, .05); }
.acquire-empty {
    padding: 18px 8px;
    color: #b9ad92;
    font-size: 11px;
    text-align: center;
}
.acquire-continue { margin-top: 10px; }
@keyframes petEggPulse {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: brightness(1); }
    50% { transform: scale(1.05) rotate(2deg); filter: brightness(1.2); }
}
@keyframes mountRopePulse {
    0%, 100% { transform: scale(1) translateY(0); filter: brightness(1); }
    50% { transform: scale(1.05) translateY(-2px); filter: brightness(1.15); }
}

/* ============================================================
 * 洗宠丹：灵根重炼确认页 + 重炼演出 + 洗前/洗后结果卡
 * ============================================================ */
.act-btn.wash-gold {
    border-color: rgba(255, 211, 106, .55);
    color: #ffe6a8;
    background: linear-gradient(180deg, rgba(255, 211, 106, .2), rgba(201, 169, 97, .12));
    box-shadow: 0 0 12px rgba(255, 198, 86, .08), inset 0 0 10px rgba(255, 226, 156, .04);
}
.act-btn.wash-gold:active { background: rgba(255, 211, 106, .28); }

.pet-wash-confirm {
    padding: 12px;
    border: 1px solid rgba(201, 169, 97, .28);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 210, 108, .13), transparent 52%),
        linear-gradient(180deg, rgba(38, 34, 28, .94), rgba(19, 19, 25, .96));
    text-align: left;
}
.pet-wash-confirm.q6 {
    border-color: rgba(255, 211, 106, .48);
    box-shadow: 0 0 22px rgba(255, 189, 75, .08), inset 0 0 20px rgba(255, 211, 106, .04);
}
.pet-wash-confirm-head { text-align: center; }
.pet-wash-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d9bf84;
    font-size: 10px;
    letter-spacing: 2px;
}
.pet-wash-kicker b { color: #ffd76f; font-weight: 400; }
.pet-wash-confirm-head h4 {
    margin: 4px 0 0;
    color: #f4e2bc;
    font-size: 19px;
    letter-spacing: 2px;
}
.pet-wash-pet {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
}
.pet-wash-emblem {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 211, 106, .32);
    border-radius: 11px;
    background: radial-gradient(circle, rgba(255, 197, 84, .17), rgba(255, 255, 255, .025));
    box-shadow: inset 0 0 14px rgba(255, 211, 106, .05);
    font-size: 25px;
    line-height: 1;
}
.pet-wash-pet-main { flex: 1; min-width: 0; }
.pet-wash-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.pet-wash-name-line > b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 1px;
}
.pet-wash-sub {
    margin-top: 4px;
    color: #a99d85;
    font-size: 10.5px;
    line-height: 1.5;
}
.pet-wash-talents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}
.pet-wash-talent {
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(255, 255, 255, .03);
}
.pet-wash-talent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: #b7aa92;
    font-size: 10px;
}
.pet-wash-talent-head b { color: #ffe7b2; font-size: 15px; line-height: 1; }
.pet-wash-talent-head i { color: #7f7461; font-size: 9px; font-style: normal; margin-left: 1px; }
.pet-wash-track {
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}
.pet-wash-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a98745, #ffd36a);
}
.pet-wash-talent.wuxing .pet-wash-track i {
    background: linear-gradient(90deg, #4d8f9a, #8fe6ff);
}
.pet-wash-sum {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #a99d85;
    font-size: 10px;
}
.pet-wash-sum b { color: #ffe296; font-size: 14px; }
.pet-wash-sum span { color: #c9b58d; }
.pet-wash-warn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
    padding: 7px 9px;
    border-left: 2px solid rgba(255, 126, 94, .55);
    border-radius: 0 7px 7px 0;
    background: rgba(255, 112, 84, .07);
    font-size: 10px;
    line-height: 1.55;
}
.pet-wash-warn b { color: #ffb18f; font-size: 10.5px; }
.pet-wash-warn span { color: #c0aa98; }
.pet-wash-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #a99d85;
    font-size: 10px;
}
.pet-wash-cost b { color: #ffe7b2; margin-left: 2px; }
.pet-wash-cost i { color: #8f856f; font-style: normal; margin-left: 5px; }
.pet-wash-lock { color: #8fe6ff; }

/* 全屏重炼演出 */
.pet-wash-stage {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 202, 105, .14), transparent 44%),
        radial-gradient(circle at 84% 18%, rgba(143, 230, 255, .07), transparent 34%),
        radial-gradient(circle at 14% 82%, rgba(255, 145, 90, .06), transparent 35%),
        rgba(7, 7, 11, .88);
    animation: petWashStageIn .22s ease-out;
}
.pet-wash-stage-card {
    position: relative;
    width: min(100%, 430px);
    max-height: 88vh;
    overflow: auto;
    padding: 18px 16px;
    border: 1px solid rgba(255, 205, 112, .48);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 182, 84, .17), transparent 48%),
        radial-gradient(circle at 90% 78%, rgba(143, 230, 255, .06), transparent 38%),
        linear-gradient(180deg, #2b251f 0%, #151217 100%);
    box-shadow: 0 0 34px rgba(255, 169, 68, .16), inset 0 0 32px rgba(255, 211, 106, .04);
    text-align: center;
    animation: petWashCardIn .26s ease-out;
}
.pet-wash-wait-card { max-width: 390px; }
.pet-wash-wait-card::after,
.pet-wash-result-card::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 222, 151, .1);
    border-radius: 10px;
    pointer-events: none;
}
.pet-wash-orb {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 10px;
    border: 1px solid rgba(255, 213, 111, .55);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 211, 106, .26), rgba(90, 63, 34, .1) 55%, transparent 72%);
    box-shadow: 0 0 20px rgba(255, 196, 78, .18), inset 0 0 16px rgba(255, 229, 169, .08);
    animation: petWashOrbPulse 1s ease-in-out infinite;
}
.pet-wash-orb > span {
    position: relative;
    z-index: 2;
    color: #ffe9ae;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 0 9px #ffc653, 0 0 20px rgba(255, 166, 58, .45);
}
.pet-wash-orb .ring {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 214, 112, .3);
    border-radius: 50%;
    animation: petWashRing 1.8s linear infinite;
}
.pet-wash-orb .ring.r2 {
    inset: -16px;
    border-color: rgba(143, 230, 255, .18);
    animation-duration: 2.4s;
    animation-direction: reverse;
}
.pet-wash-orb .spark { position: absolute; color: #ffd36a; font-size: 10px; font-weight: 400; }
.pet-wash-orb .spark.s1 { top: -10px; right: -2px; }
.pet-wash-orb .spark.s2 { bottom: -7px; left: -5px; color: #8fe6ff; }
.pet-wash-orb .spark.s3 { top: 8px; left: -16px; color: #ffb98a; }
.pet-wash-wait-card h3,
.pet-wash-result-title {
    margin: 4px 0 0;
    font-size: 27px;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #ffe9ae, #ffc45f 55%, #8fe6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pet-wash-item-name {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 9px;
    border: 1px solid rgba(255, 211, 106, .2);
    border-radius: 999px;
    color: #d9bf84;
    font-size: 10px;
}
.pet-wash-wait-sub {
    margin-top: 8px;
    color: #b7aa92;
    font-size: 10.5px;
    line-height: 1.6;
}
.pet-wash-wait-track {
    height: 4px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}
.pet-wash-wait-track i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb250, #ffd36a 48%, #8fe6ff);
    animation: petWashFill 1.3s ease-in-out both;
}
.pet-wash-wait-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 9px;
    color: #8e816d;
    font-size: 9.5px;
}
.pet-wash-wait-meta b { color: #ffd36a; font-weight: 400; margin-right: 2px; }

/* 洗前 / 洗后结果 */
.pet-wash-result-card { max-width: 440px; }
.pet-wash-result-card.q6 { border-color: rgba(255, 211, 106, .58); }
.pet-wash-result-title { font-size: 29px; }
.pet-wash-result-hero {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
    text-align: left;
}
.pet-wash-result-main { flex: 1; min-width: 0; }
.pet-wash-compare {
    display: grid;
    grid-template-columns: 1fr 22px 1fr;
    align-items: stretch;
    gap: 5px;
    margin-top: 10px;
}
.pet-wash-side {
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    text-align: left;
}
.pet-wash-side.before { opacity: .82; }
.pet-wash-side.after {
    border-color: rgba(255, 211, 106, .3);
    background: rgba(255, 198, 88, .055);
}
.pet-wash-side-label {
    display: block;
    color: #8f846f;
    font-size: 9px;
    letter-spacing: 1px;
}
.pet-wash-side.after .pet-wash-side-label { color: #ffd68a; }
.pet-wash-side-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
    color: #a99d85;
    font-size: 10px;
}
.pet-wash-side-row b { color: #f3e6cb; font-size: 17px; line-height: 1; }
.pet-wash-side.after .pet-wash-side-row b { color: #ffe7a3; }
.pet-wash-side-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.pet-wash-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcf70;
    font-size: 17px;
}
.pet-wash-deltas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}
.pet-wash-delta {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #aaa08a;
    font-size: 9.5px;
}
.pet-wash-delta.up {
    color: #9ff0bb;
    border-color: rgba(103, 232, 176, .34);
    background: rgba(103, 232, 176, .08);
}
.pet-wash-delta.down {
    color: #ff9c8c;
    border-color: rgba(255, 108, 94, .3);
    background: rgba(255, 108, 94, .06);
}
.pet-wash-delta.flat { color: #b8ae9b; }
.pet-wash-result-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    text-align: left;
    font-size: 10px;
    line-height: 1.5;
}
.pet-wash-result-line b {
    flex: none;
    color: #d9bf84;
    font-size: 9.5px;
    letter-spacing: 1px;
}
.pet-wash-result-line span { min-width: 0; color: #b9ad92; }
.pet-wash-result-note {
    margin-top: 9px;
    color: #91856f;
    font-size: 9.5px;
}
.pet-wash-result-note b { color: #ffd36a; font-weight: 400; }
.pet-wash-return {
    width: 100%;
    margin-top: 11px;
    padding: 9px;
    border: 1px solid rgba(255, 211, 106, .5);
    border-radius: 8px;
    color: #fff0c9;
    background: linear-gradient(100deg, #b58a3d 0%, #e5bd64 52%, #8fe6ff 100%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}
.pet-wash-return:active { filter: brightness(1.1); }
.pet-wash-spark {
    position: absolute;
    color: #ffd36a;
    font-style: normal;
    opacity: .7;
}
.pet-wash-spark.s1 { top: 44px; left: 34px; }
.pet-wash-spark.s2 { top: 76px; right: 38px; color: #8fe6ff; }
.pet-wash-spark.s3 { bottom: 104px; left: 45px; color: #ffb98a; }
.pet-wash-spark.s4 { right: 52px; bottom: 150px; color: #9ff0bb; }
@keyframes petWashStageIn { from { opacity: 0; } }
@keyframes petWashCardIn { from { transform: translateY(10px) scale(.98); opacity: .5; } }
@keyframes petWashOrbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.15); }
}
@keyframes petWashRing { from { transform: rotate(0deg) scale(.9); opacity: .35; } 50% { opacity: .8; } to { transform: rotate(360deg) scale(.9); opacity: .35; } }
@keyframes petWashFill { from { width: 0; } to { width: 100%; } }

.polish-continue {
    background: linear-gradient(100deg, #c7ffb5 0%, #ffd36a 50%, #8fe6ff 100%);
    box-shadow: 0 4px 0 #274333, 0 7px 18px rgba(104, 217, 143, .2);
}
.polish-star-tip {
    color: #d8ffb9 !important;
}
.polish-star-tip span {
    color: #ffd36a !important;
    font-size: 12px;
}
.polish-fail-card {
    border-color: rgba(171, 204, 144, .4);
    background:
        radial-gradient(circle at 50% 0%, rgba(132, 170, 113, .14), transparent 46%),
        linear-gradient(180deg, #1f2721 0%, #111512 100%);
}
.polish-fail-card .enh-fail-title { color: #cde4ba; text-shadow: 0 0 12px rgba(163, 219, 146, .18); }
.polish-fail-card .enh-fail-kicker { color: #9bb28f; }
.polish-fail-card .enh-fail-refund {
    border-color: rgba(171, 204, 144, .18);
    background: rgba(171, 204, 144, .045);
}
.polish-fail-card .enh-fail-refund span,
.polish-fail-card .enh-fail-refund b { color: #c7ffb5; }

/* 开炉强化：3 秒读秒，炉火红金立体 */
.act-btn.enhance-open-btn {    position: relative;
    overflow: hidden;
    color: #fff2dd;
    font-weight: bold;
    background: linear-gradient(180deg, #c25c35 0%, #7f2f1f 55%, #5b1f16 100%);
    border-color: #e68a64;
    box-shadow: 0 3px 0 #38100b, 0 5px 15px rgba(194, 92, 53, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s, filter .14s;
}
.act-btn.enhance-open-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 197, 130, .42), transparent);
    transform: skewX(-18deg);
    transition: left .45s ease;
    pointer-events: none;
}
.act-btn.enhance-open-btn:hover::after { left: 130%; }
.act-btn.enhance-open-btn:active,
.act-btn.enhance-open-btn.is-cooling {
    transform: translateY(4px) scale(.96);
    filter: brightness(.68) saturate(.92);
    box-shadow: 0 0 0 #38100b, inset 0 6px 15px rgba(0, 0, 0, .6);
}
.act-btn.enhance-open-btn.is-cooling { pointer-events: none; }

/* 细细打磨：3 秒读秒，铜金立体 */
.act-btn.polish-action-btn {
    position: relative;
    overflow: hidden;
    color: #ffe8b8;
    font-weight: bold;
    background: linear-gradient(180deg, #8f6a32 0%, #5a3d1c 55%, #3f2a14 100%);
    border-color: #c79a53;
    box-shadow: 0 3px 0 #24150a, 0 5px 15px rgba(143, 106, 50, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s, filter .14s;
}
.act-btn.polish-action-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 226, 168, .38), transparent);
    transform: skewX(-18deg);
    transition: left .45s ease;
    pointer-events: none;
}
.act-btn.polish-action-btn:hover::after { left: 130%; }
.act-btn.polish-action-btn:active,
.act-btn.polish-action-btn.is-cooling {
    transform: translateY(4px) scale(.96);
    filter: brightness(.7);
    box-shadow: 0 0 0 #24150a, inset 0 6px 15px rgba(0, 0, 0, .58);
}
.act-btn.polish-action-btn.is-cooling { pointer-events: none; }

/* ============================================================
 * 铁匠铺：首屏「炉火与器魂」+ 四工序卡片
 * 只改外观，按钮 id / 文案 / 点击逻辑保持原样
 * ============================================================ */
.smith-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px 12px;
    border: 1px solid rgba(214, 171, 99, .26);
    border-radius: 10px;
    background:
        radial-gradient(circle at 16% 10%, rgba(226, 171, 92, .11), transparent 38%),
        radial-gradient(circle at 92% 86%, rgba(143, 222, 216, .04), transparent 38%),
        linear-gradient(135deg, rgba(43, 34, 27, .62), rgba(23, 21, 31, .52));
    box-shadow: inset 0 0 20px rgba(214, 171, 99, .025);
    overflow: hidden;
}
.smith-hero::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -30px;
    width: 130px;
    height: 90px;
    background: radial-gradient(circle, rgba(203, 184, 255, .055), transparent 68%);
    pointer-events: none;
}
.smith-emblem {
    position: relative;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 186, 116, .34);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 198, 130, .13), rgba(74, 54, 31, .1) 56%, transparent 72%);
    box-shadow: 0 0 14px rgba(196, 148, 71, .08), inset 0 0 12px rgba(232, 198, 130, .04);
    color: #e4c07c;
}
.smith-emblem span {
    font-size: 23px;
    line-height: 1;
    text-shadow: 0 0 5px rgba(228, 192, 124, .22);
}
.smith-emblem i {
    position: absolute;
    font-style: normal;
    font-size: 9px;
    line-height: 1;
    opacity: .8;
}
.smith-emblem .s1 { left: 4px; top: 5px; color: #cbb8ff; }
.smith-emblem .s2 { right: 4px; bottom: 5px; color: #8fded8; }
.smith-hero-copy { min-width: 0; }
.smith-kicker {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #bd9f72;
    font-size: 9.5px;
    letter-spacing: 2px;
}
.smith-kicker span:nth-child(1) { color: #e2bd76; }
.smith-kicker span:nth-child(3) { color: #8fded8; }
.smith-title {
    margin-top: 2px;
    color: #f0d59f;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.25;
    text-shadow: 0 0 10px rgba(210, 165, 87, .12);
}
.smith-note {
    margin-top: 3px;
    color: #a19886;
    font-size: 10.5px;
    line-height: 1.5;
}
.smith-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 1px 9px;
}
.smith-chips span {
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .022);
    font-size: 9.5px;
    line-height: 1.55;
}
.chip-repair { color: #d5b273; border-color: rgba(213, 178, 115, .2) !important; }
.chip-enhance { color: #d99372; border-color: rgba(217, 147, 114, .2) !important; }
.chip-polish { color: #9bc9aa; border-color: rgba(155, 201, 170, .2) !important; }
.chip-reforge { color: #b9a7df; border-color: rgba(185, 167, 223, .2) !important; }

.smith-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.smith-entry-grid .act-btn { min-width: 0; }
.act-btn.smith-entry-btn {
    --tone: #d5b273;
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 70px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 2px solid var(--tone);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
    color: #d8cfbc;
    text-align: left;
    cursor: pointer;
    transition: transform .14s, box-shadow .14s, border-color .14s, filter .14s;
}
.smith-entry-btn.entry-repair {
    background: linear-gradient(135deg, rgba(224, 180, 106, .085), rgba(255, 255, 255, .012) 66%);
    box-shadow: 0 3px 0 #211b14, inset 0 1px 0 rgba(255, 255, 255, .045);
}
.smith-entry-btn.entry-enhance {
    --tone: #dd9069;
    background: linear-gradient(135deg, rgba(221, 144, 105, .075), rgba(255, 255, 255, .012) 66%);
    box-shadow: 0 3px 0 #251a16, inset 0 1px 0 rgba(255, 255, 255, .045);
}
.smith-entry-btn.entry-polish {
    --tone: #9fd0ae;
    background: linear-gradient(135deg, rgba(159, 208, 174, .065), rgba(255, 255, 255, .012) 66%);
    box-shadow: 0 3px 0 #17201b, inset 0 1px 0 rgba(255, 255, 255, .045);
}
.smith-entry-btn.entry-reforge {
    --tone: #b9a7e4;
    background: linear-gradient(135deg, rgba(185, 167, 228, .075), rgba(255, 255, 255, .012) 66%);
    box-shadow: 0 3px 0 #1b1927, inset 0 1px 0 rgba(255, 255, 255, .045);
}
.act-btn.smith-entry-btn:hover {
    border-color: rgba(255, 255, 255, .15);
    border-left-color: var(--tone);
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.act-btn.smith-entry-btn:active {
    transform: translateY(2px) scale(.985);
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 3px 9px rgba(0, 0, 0, .35);
}
.smith-entry-sym {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .025);
    color: var(--tone);
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 0 4px rgba(255, 255, 255, .08);
}
.smith-entry-copy {
    min-width: 0;
    display: block;
    line-height: 1.25;
    pointer-events: none;
}
.smith-entry-sym { pointer-events: none; }
.smith-entry-copy b {
    display: block;
    color: #eee5d4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.smith-entry-copy em {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #918875;
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: .2px;
}
.smith-foot-note {
    margin-top: 10px;
    color: #827a6a;
    font-size: 9.5px;
    letter-spacing: 1px;
    text-align: center;
}
.smith-foot-note span:nth-child(1) { color: #d8b575; margin-right: 3px; }
.smith-foot-note span:nth-child(2) { color: #8fded8; margin-left: 3px; }

/* ============================================================
 * 铁匠铺：四个工坊的装备选择页（小型头图 + 工序标签，不压过列表）
 * ============================================================ */

.workshop-page {
    --accent: #d5b273;
    --accent-soft: rgba(213, 178, 115, .075);
    --accent-line: rgba(213, 178, 115, .24);
}
.workshop-page.kind-repair { --accent: #d5b273; --accent-soft: rgba(213, 178, 115, .075); --accent-line: rgba(213, 178, 115, .24); }
.workshop-page.kind-enhance { --accent: #df956b; --accent-soft: rgba(223, 149, 107, .075); --accent-line: rgba(223, 149, 107, .24); }
.workshop-page.kind-polish { --accent: #9dcdae; --accent-soft: rgba(157, 205, 174, .07); --accent-line: rgba(157, 205, 174, .22); }
.workshop-page.kind-reforge { --accent: #bcaae8; --accent-soft: rgba(188, 170, 232, .075); --accent-line: rgba(188, 170, 232, .24); }

.workshop-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--accent-soft);
    border-left: 2px solid var(--accent);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, .012) 62%);
}
.workshop-emblem {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--accent-soft), rgba(255, 255, 255, .02) 66%);
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
}
.workshop-emblem i {
    position: absolute;
    color: var(--accent);
    font-style: normal;
    font-size: 7px;
    opacity: .65;
}
.workshop-emblem .s1 { top: 2px; right: 4px; }
.workshop-emblem .s2 { left: 3px; bottom: 3px; }

.workshop-hero-copy { min-width: 0; flex: 1; }
.workshop-kicker {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 1.5px;
    opacity: .9;
}
.workshop-title {
    margin-top: 1px;
    color: var(--accent);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.15;
    text-shadow: 0 0 8px var(--accent-soft);
}
.workshop-note {
    margin-top: 3px;
    color: #a59b85;
    font-size: 10px;
    line-height: 1.45;
}

.workshop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 7px 1px 1px;
}
.workshop-chips span {
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 999px;
    background: rgba(255, 255, 255, .022);
    color: #9d9482;
    font-size: 9px;
    line-height: 1.5;
    white-space: nowrap;
}
.workshop-chips span:first-child {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.workshop-list-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 2px 5px;
    color: #a99d80;
    font-size: 10.5px;
    letter-spacing: 1px;
}
.workshop-list-head .wls-sym { color: var(--accent); font-size: 10px; }
.workshop-list-head em {
    margin-left: auto;
    color: #8fb4d8;
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: 0;
}

.workshop-page .bag-row {
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .022), #1a1a2e 58%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}
.workshop-page .forge-fold > summary {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}
.workshop-page .forge-fold > summary::after { color: var(--accent); }

.workshop-empty {
    padding: 18px 12px;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .015);
    color: #8d8471;
    font-size: 11px;
    text-align: center;
}

.workshop-rule-line {
    margin-top: 8px;
    padding: 6px 8px 0;
    border-top: 1px dashed rgba(255, 255, 255, .075);
    color: #817a6c;
    font-size: 9.5px;
    line-height: 1.5;
    text-align: center;
}

/* ============================================================
 * 珠宝店：珠玉镶工（金珠主调 + 宝石分色，不改原有操作按钮）
 * ============================================================ */

.jewel-page {
    --accent: #d9c48a;
    --accent-soft: rgba(217, 196, 138, .08);
    --accent-line: rgba(217, 196, 138, .25);
}

.jewel-sec {
    --sec: #8fd3dd;
    --sec-soft: rgba(143, 211, 221, .055);
    --sec-line: rgba(143, 211, 221, .22);
    margin: 8px 0;
    padding: 7px 9px 9px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-left: 2px solid var(--sec);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sec-soft), rgba(255, 255, 255, .01) 68%);
}
.jewel-sec.kind-gem { --sec: #8fd3dd; --sec-soft: rgba(143, 211, 221, .055); --sec-line: rgba(143, 211, 221, .22); }
.jewel-sec.kind-equip { --sec: #d9c48a; --sec-soft: rgba(217, 196, 138, .05); --sec-line: rgba(217, 196, 138, .22); }
.jewel-sec.kind-act { --sec: #bcaae8; --sec-soft: rgba(188, 170, 232, .05); --sec-line: rgba(188, 170, 232, .22); }

.jewel-sec .sec-toggle,
.jewel-sec-head {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 4px 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e6dcc0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    text-align: left;
}
.jewel-sec-head { cursor: default; }
.jewel-sec .sec-toggle .sec-arrow { color: var(--sec); font-size: 10px; pointer-events: none; }
.jewel-sec .jsec-sym,
.jewel-sec-head .jsec-sym {
    width: 14px;
    flex: 0 0 14px;
    color: var(--sec);
    font-size: 11px;
    text-align: center;
    pointer-events: none;
}
.jewel-sec .jsec-title { pointer-events: none; }
.jewel-sec .jsec-count,
.jewel-sec-head .jsec-count {
    margin-left: auto;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: rgba(255, 255, 255, .022);
    color: #8fb4d8;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: none;
}
.jewel-sec .sec-body { padding-top: 2px; }

/* 宝石：两列紧凑，但每颗用属性色 + 符号区分 */
.jewel-gem-grid { gap: 5px 9px; }
.jewel-gem-tile {
    --gem-tone: #c9b98a;
    --gem-soft: rgba(201, 185, 138, .045);
    min-height: 36px;
    padding: 5px 8px;
    border-left-color: var(--gem-tone);
    background: linear-gradient(90deg, var(--gem-soft), #1a1a2e 64%);
}
.jewel-gem-tile.tone-lethal { --gem-tone: #e870a0; --gem-soft: rgba(232, 112, 160, .05); }
.jewel-gem-tile.tone-poison { --gem-tone: #94c98d; --gem-soft: rgba(148, 201, 141, .05); }
.jewel-gem-tile.tone-weak { --gem-tone: #b8ae97; --gem-soft: rgba(184, 174, 151, .045); }
.jewel-gem-tile.tone-paralyze { --gem-tone: #8fb4d8; --gem-soft: rgba(143, 180, 216, .05); }
.jewel-gem-tile.tone-curse { --gem-tone: #bcaae8; --gem-soft: rgba(188, 170, 232, .05); }
.jewel-gem-tile.tone-reflect { --gem-tone: #d5b273; --gem-soft: rgba(213, 178, 115, .05); }
.jewel-gem-tile.tone-agile { --gem-tone: #8fd3dd; --gem-soft: rgba(143, 211, 221, .05); }
.jewel-gem-tile.tone-resist { --gem-tone: #7fc7c0; --gem-soft: rgba(127, 199, 192, .05); }
.jewel-gem-tile.selected { border-color: #e8b85c; box-shadow: 0 0 0 1px #e8b85c inset; }
.jewel-gem-tile .jg-sym {
    margin-right: 3px;
    color: var(--gem-tone);
    font-size: 9px;
    font-style: normal;
    pointer-events: none;
}
.jewel-gem-tile .bt-count {
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(232, 184, 92, .1);
    font-size: 9.5px;
}

/* 装备：单行一件，品质左边框保留，右侧只放部位与孔位 */
.jewel-equip-list { gap: 5px; }
.jewel-equip-row {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .025), #1a1a2e 58%);
}
.jewel-equip-row .jer-sym {
    flex: 0 0 16px;
    color: #d9c48a;
    font-size: 11px;
    text-align: center;
    pointer-events: none;
}
.jewel-equip-row .br-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jewel-equip-row .jer-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.jewel-equip-row .jer-slot { color: #9f9786; }
.jewel-equip-row .jer-holes { color: #8fd3dd; }
.jewel-equip-row.selected {
    border-color: #e8b85c;
    background: #2a2418;
    box-shadow: inset 0 0 0 1px #e8b85c;
}

/* 操作：五张带符号的小卡，按钮 id / disabled / 事件全部沿用 */
.jewel-act-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.jewel-act-btn {
    --ja: #d9c48a;
    --ja-soft: rgba(217, 196, 138, .055);
    --ja-line: rgba(217, 196, 138, .22);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 9px;
    border-color: var(--ja-line);
    background: linear-gradient(135deg, var(--ja-soft), #221d2c 66%);
    color: #e6dcc0;
    text-align: left;
}
.jewel-act-btn.kind-embed { --ja: #e8c979; --ja-soft: rgba(232, 201, 121, .06); --ja-line: rgba(232, 201, 121, .24); }
.jewel-act-btn.kind-remove { --ja: #e870a0; --ja-soft: rgba(232, 112, 160, .055); --ja-line: rgba(232, 112, 160, .22); }
.jewel-act-btn.kind-merge { --ja: #8fd3dd; --ja-soft: rgba(143, 211, 221, .05); --ja-line: rgba(143, 211, 221, .22); }
.jewel-act-btn.kind-punch { --ja: #bcaae8; --ja-soft: rgba(188, 170, 232, .055); --ja-line: rgba(188, 170, 232, .22); }
.jewel-act-btn.kind-waste { --ja: #94c98d; --ja-soft: rgba(148, 201, 141, .05); --ja-line: rgba(148, 201, 141, .22); }
.jewel-act-btn:last-child { grid-column: 1 / -1; }
.jewel-act-btn .ja-sym {
    flex: 0 0 16px;
    color: var(--ja);
    font-size: 12px;
    text-align: center;
    pointer-events: none;
}
.jewel-act-btn .ja-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    pointer-events: none;
}
.jewel-act-btn .ja-copy b { color: #e6dcc0; font-size: 12px; font-weight: 700; line-height: 1.25; }
.jewel-act-btn .ja-copy em { color: #948b78; font-size: 9px; font-style: normal; line-height: 1.25; }
.jewel-act-btn:disabled { opacity: .38; }

/* 底部章程：把原先一大段说明压成小行，不抢操作区 */
.jewel-rule-card {
    margin-top: 8px;
    padding: 7px 9px 8px;
    border: 1px solid rgba(217, 196, 138, .14);
    border-left: 2px solid rgba(217, 196, 138, .34);
    border-radius: 8px;
    background: rgba(217, 196, 138, .028);
}
.jewel-rule-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: #d9c48a;
    font-size: 10.5px;
    letter-spacing: 1px;
}
.jewel-rule-title .jrt-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 196, 138, .2), transparent);
}
.jewel-rule-list { display: flex; flex-direction: column; gap: 3px; }
.jewel-rule-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #8f8674;
    font-size: 9.5px;
    line-height: 1.5;
}
.jewel-rule-row .jrr-sym {
    flex: 0 0 8px;
    color: #b7a77f;
    font-size: 8px;
    line-height: 1.8;
}
.jewel-rule-row b {
    flex: 0 0 42px;
    color: #c8b98d;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.5;
}
.jewel-rule-row em { min-width: 0; font-style: normal; }

/* ============================================================
 * 铁匠铺：洗炼（器魂轻转，冷调微光，不刺眼）
 * ============================================================ */

.reforge-row-count { gap: 2px; }
.reforge-row-unit { color: #8fb4d8; font-size: 9.5px; }

.forge-detail-reforge .enhance-head {
    border-color: rgba(156, 164, 214, .28);
    background:
        radial-gradient(circle at 50% -20%, rgba(140, 154, 220, .1), transparent 58%),
        linear-gradient(180deg, rgba(34, 35, 55, .64), rgba(18, 18, 29, .52));
    box-shadow: inset 0 0 18px rgba(129, 147, 221, .025);
}
.reforge-kicker { color: #b7b1cf; letter-spacing: 2.5px; }
.reforge-kicker span:nth-child(1) { color: #cbb8ff; }
.reforge-kicker span:nth-child(3) { color: #8fded8; }
.reforge-title-sym { color: #cbb8ff; text-shadow: 0 0 4px rgba(167, 151, 226, .25); }
.reforge-lv-line b { color: #ded5ff; text-shadow: none; }
.reforge-rate {
    border-color: rgba(143, 222, 216, .32);
    background: rgba(143, 222, 216, .07);
    color: #9edbd4;
    box-shadow: none;
}
.reforge-head-note {
    padding-top: 5px;
    color: #918ba6;
    font-size: 10.5px;
    line-height: 1.55;
}
.reforge-sec-title { color: #cfc6e4; }
.reforge-sym { color: #cbb8ff; text-shadow: none; }
.reforge-sym:nth-child(1) { color: #cbb8ff; }
.reforge-attr-list { display: grid; gap: 6px; }
.reforge-attr-card {
    --tone: #cbb8ff;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 2px solid var(--tone);
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012));
    color: #cfc6b0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s, background .16s, transform .12s;
}
.reforge-attr-card:hover { border-color: rgba(203, 184, 255, .3); background: rgba(255, 255, 255, .045); }
.reforge-attr-card:active { transform: translateY(1px); }
.reforge-attr-card.is-locked {
    border-color: rgba(229, 202, 145, .32);
    border-left-color: #e5ca91;
    background: linear-gradient(90deg, rgba(229, 202, 145, .075), rgba(255, 255, 255, .012));
}
.reforge-attr-card.is-solo { cursor: default; }
.reforge-attr-card.is-solo:active { transform: none; }
.reforge-attr-sym {
    flex: 0 0 14px;
    color: var(--tone);
    font-size: 12px;
    line-height: 1;
    text-align: center;
}
.reforge-attr-text {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
}
.reforge-attr-name { color: #c9c0ac; font-size: 11.5px; }
.reforge-attr-val { color: var(--tone); font-size: 14px; font-weight: 700; line-height: 1.25; }
.reforge-lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: #8e887a;
    font-size: 9.5px;
    white-space: nowrap;
}
.reforge-lock-pill i { font-style: normal; font-size: 10px; line-height: 1; }
.reforge-lock-pill em { font-style: normal; }
.reforge-attr-card.is-locked .reforge-lock-pill {
    border-color: rgba(229, 202, 145, .32);
    background: rgba(229, 202, 145, .08);
    color: #e5ca91;
}
.reforge-attr-card.is-solo .reforge-lock-pill { color: #7f9c98; border-color: rgba(127, 156, 152, .24); }
.reforge-attr-card.tone-lethal, .reforge-result-row.tone-lethal { --tone: #e7c277; }
.reforge-attr-card.tone-paralyze, .reforge-result-row.tone-paralyze { --tone: #93dbe6; }
.reforge-attr-card.tone-poison, .reforge-result-row.tone-poison { --tone: #9bda9b; }
.reforge-attr-card.tone-weak, .reforge-result-row.tone-weak { --tone: #9eb7ea; }
.reforge-attr-card.tone-curse, .reforge-result-row.tone-curse { --tone: #c3a9df; }
.reforge-attr-card.tone-reflect, .reforge-result-row.tone-reflect { --tone: #e2ac86; }
.reforge-attr-card.tone-leech, .reforge-result-row.tone-leech { --tone: #e69bae; }
.reforge-attr-card.tone-resist, .reforge-result-row.tone-resist { --tone: #83cfc5; }
.reforge-lock-tip, .reforge-cost-note {
    margin-top: 6px;
    padding: 5px 7px;
    border-left: 2px solid rgba(143, 222, 216, .22);
    background: rgba(143, 222, 216, .028);
    color: #8f968f;
    font-size: 10px;
    line-height: 1.55;
}
.reforge-need { border-color: rgba(156, 164, 214, .22); }

.act-btn.reforge-action-btn {
    position: relative;
    overflow: hidden;
    color: #e9e5f4;
    font-weight: bold;
    background: linear-gradient(180deg, #59617e 0%, #3a4260 54%, #2b3148 100%);
    border-color: #8e97b7;
    box-shadow: 0 3px 0 #141827, 0 5px 14px rgba(57, 70, 109, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .14s, filter .14s;
}
.act-btn.reforge-action-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(214, 224, 255, .24), transparent);
    transform: skewX(-18deg);
    transition: left .45s ease;
    pointer-events: none;
}
.act-btn.reforge-action-btn:hover::after { left: 130%; }
.act-btn.reforge-action-btn:active,
.act-btn.reforge-action-btn.is-cooling {
    transform: translateY(4px) scale(.96);
    filter: brightness(.72);
    box-shadow: 0 0 0 #141827, inset 0 6px 14px rgba(0, 0, 0, .55);
}
.act-btn.reforge-action-btn.is-cooling { pointer-events: none; }

.enh-ceremony-layer.is-reforge-waiting {
    background:
        radial-gradient(circle at 50% 44%, rgba(143, 164, 222, .075), rgba(7, 8, 12, .75) 64%),
        radial-gradient(circle at 24% 20%, rgba(143, 222, 216, .04), transparent 32%),
        radial-gradient(circle at 78% 74%, rgba(203, 184, 255, .035), transparent 34%);
}
.enh-ceremony-layer.is-reforge-success {
    background:
        radial-gradient(circle at 50% 38%, rgba(203, 184, 255, .065), transparent 44%),
        radial-gradient(circle at 76% 22%, rgba(143, 222, 216, .05), transparent 34%),
        radial-gradient(circle at 22% 72%, rgba(231, 194, 119, .032), transparent 36%),
        rgba(7, 8, 12, .75);
}
.reforge-waiting-card {
    border-color: rgba(166, 172, 214, .38);
    background:
        radial-gradient(circle at 50% 0%, rgba(143, 164, 222, .12), transparent 50%),
        linear-gradient(180deg, #242637 0%, #12131c 100%);
    box-shadow: 0 0 22px rgba(95, 112, 174, .11), inset 0 0 22px rgba(143, 164, 222, .03);
}
.reforge-emblem {
    border-color: rgba(203, 184, 255, .34);
    background: radial-gradient(circle, rgba(203, 184, 255, .12), rgba(58, 64, 102, .12) 54%, transparent 70%);
    box-shadow: 0 0 16px rgba(120, 137, 200, .12), inset 0 0 14px rgba(203, 184, 255, .05);
}
.reforge-emblem::before { border-color: rgba(143, 222, 216, .24); }
.reforge-waiting-card .enh-wait-core { color: #d8ceff; text-shadow: 0 0 6px rgba(203, 184, 255, .55); }
.reforge-waiting-card .enh-wait-title {
    background: linear-gradient(90deg, #ded6ff 0%, #e7d7a8 48%, #9adcd6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(143, 164, 222, .16));
}
.reforge-waiting-card .enh-wait-track { border-color: rgba(166, 172, 214, .24); }
.reforge-waiting-card .enh-wait-track i {
    background: linear-gradient(90deg, #9eb7ea, #cbb8ff 46%, #e7c277 72%, #8fded8);
    box-shadow: 0 0 7px rgba(143, 164, 222, .4);
}
.reforge-waiting-card .enh-wait-meta span {
    border-color: rgba(166, 172, 214, .22);
    background: rgba(166, 172, 214, .045);
    color: #a8a6b8;
}
.reforge-waiting-card .enh-wait-meta b { color: #cbb8ff; }

.enh-success-card.reforge-success-card {
    border-color: rgba(190, 195, 233, .4);
    background:
        radial-gradient(circle at 50% -8%, rgba(203, 184, 255, .13), transparent 52%),
        radial-gradient(circle at 92% 16%, rgba(143, 222, 216, .06), transparent 36%),
        radial-gradient(circle at 10% 78%, rgba(231, 194, 119, .028), transparent 32%),
        linear-gradient(180deg, #232435 0%, #111218 100%);
    box-shadow:
        0 0 24px rgba(111, 124, 182, .1),
        0 0 42px rgba(143, 222, 216, .04),
        inset 0 0 30px rgba(203, 184, 255, .025);
}
.reforge-success-card::before {
    background: linear-gradient(120deg, transparent 20%, rgba(226, 231, 255, .032) 46%, transparent 62%);
    animation-duration: 2.8s;
}
.reforge-success-card .enh-success-spark { animation-duration: 2.6s; }
.reforge-success-card .enh-success-spark.s1 { color: #cbb8ff; font-size: 14px; }
.reforge-success-card .enh-success-spark.s2 { color: #8fded8; font-size: 13px; }
.reforge-result-kicker { color: #bdb7d4; }
.reforge-result-kicker span:nth-child(1) { color: #cbb8ff; }
.reforge-result-kicker span:nth-child(3) { color: #8fded8; }
.reforge-success-card .enh-success-title {
    background: linear-gradient(90deg, #dfd8ff 0%, #e7d3a3 38%, #a7ded8 72%, #e8b7c5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 9px rgba(143, 164, 222, .12));
}
.reforge-result-sum {
    margin: 5px 0 1px;
    color: #a9a4b7;
    font-size: 11px;
    text-align: center;
}
.reforge-result-sum b { color: #e5d9a8; font-size: 13px; }
.reforge-divider i { background: linear-gradient(90deg, transparent, rgba(190, 195, 233, .3), transparent); }
.reforge-result-list { display: grid; gap: 5px; text-align: left; }
.reforge-result-row {
    --tone: #cbb8ff;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-left: 2px solid var(--tone);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
}
.reforge-result-row.is-changed { background: linear-gradient(90deg, rgba(143, 222, 216, .055), rgba(255, 255, 255, .015)); }
.reforge-result-row.is-locked { border-color: rgba(229, 202, 145, .2); border-left-color: #c5a973; background: rgba(229, 202, 145, .045); }
.reforge-result-sym { flex: 0 0 12px; color: var(--tone); font-size: 11px; text-align: center; }
.reforge-result-old {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8b8576;
    font-size: 10.5px;
}
.reforge-result-arrow { flex: 0 0 auto; color: #817c8e; font-size: 10px; font-style: normal; }
.reforge-result-row.is-locked .reforge-result-arrow { color: #c5a973; }
.reforge-result-kept { color: #d6cdb8; font-size: 12px; font-weight: 600; }
.reforge-result-new { color: var(--tone); font-size: 13px; font-weight: 700; white-space: nowrap; }
.reforge-result-state {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #8e887a;
    font-size: 8.5px;
    font-style: normal;
}
.reforge-result-row.is-changed .reforge-result-state { border-color: rgba(143, 222, 216, .26); color: #9adcd6; }
.reforge-result-row.is-locked .reforge-result-state { border-color: rgba(229, 202, 145, .26); color: #c5a973; }
.reforge-result-cost {
    margin: 7px 0 2px;
    color: #8f8a9f;
    font-size: 10.5px;
    text-align: center;
}
.reforge-result-cost span { color: #cbb8ff; margin-right: 2px; }
.reforge-result-tip { color: #b8c9c3 !important; }
.reforge-result-tip span { color: #cbb8ff !important; }
.reforge-continue {
    border: 1px solid rgba(150, 160, 200, .32);
    color: #e9e5f4;
    background: linear-gradient(100deg, #505a78 0%, #3a4260 52%, #2d3349 100%);
    box-shadow: 0 4px 0 #161a26, 0 7px 16px rgba(60, 72, 112, .15);
}




/* ============================================================
 * 落潮赶海：滩涂面板 / 图鉴 / 沉船 / 码头商贩
 * 样式追加，不影响既有航海、商铺、背包样式
 * ============================================================ */
.modal-card.sea-full .modal-body:has(.beach-panel) { padding: 0; overflow: hidden; }
.beach-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    background:
        radial-gradient(120% 55% at 50% 0%, #2f6c73 0%, #244c55 38%, #1c2c33 100%),
        #1a252b;
    color: #e9e2d0;
    overflow: hidden;
}
.beach-hero {
    position: relative;
    flex: none;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, rgba(28, 88, 94, .55), rgba(20, 38, 43, .1));
    border-bottom: 1px solid rgba(176, 215, 205, .16);
    overflow: hidden;
}
.beach-hero:after {
    content: '';
    position: absolute; left: -10%; right: -10%; bottom: -28px; height: 64px;
    background: radial-gradient(50% 100% at 50% 0%, rgba(116, 168, 158, .30), transparent 72%);
    border-radius: 50%;
    pointer-events: none;
}
.beach-hero-title {
    position: relative; z-index: 2;
    font-size: 19px; font-weight: 700; letter-spacing: 1px;
    color: #f3ecd8; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.beach-hero-sub {
    position: relative; z-index: 2; margin-top: 6px;
    font-size: 11px; color: #a9c7c1;
}
.beach-bubbles { position: absolute; inset: 0; pointer-events: none; opacity: .6; }
.beach-bubble {
    position: absolute; bottom: -10px;
    border: 1px solid rgba(184, 232, 222, .55);
    border-radius: 50%;
    background: rgba(145, 211, 199, .12);
    animation: beachBubble 5s linear infinite;
}
@keyframes beachBubble {
    0% { transform: translateY(0) scale(.7); opacity: 0; }
    18% { opacity: .8; }
    100% { transform: translateY(-170px) scale(1.15); opacity: 0; }
}
/* 固定赶海日志：填满上方滩涂留白，始终保留本次每一步的结果 */
.beach-journal {
    flex: 1 1 0;
    min-height: 150px;
    margin: 10px 14px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(156, 203, 193, .22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(13, 34, 38, .88), rgba(9, 22, 27, .72));
    box-shadow: inset 0 1px 0 rgba(203, 236, 226, .08), 0 8px 24px rgba(0, 0, 0, .12);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.beach-journal-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 7px;
    border-bottom: 1px solid rgba(156, 203, 193, .16);
    background: rgba(28, 68, 70, .18);
}
.beach-journal-head b {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #f0e6ce;
}
.beach-journal-head small {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.45;
    color: #96b2aa;
}
.beach-journal-head > span {
    flex: none;
    padding: 3px 7px;
    border: 1px solid rgba(124, 185, 170, .24);
    border-radius: 99px;
    font-size: 10.5px;
    color: #b6d4ca;
    background: rgba(52, 100, 92, .18);
}
.beach-journal-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 10px 6px;
    scrollbar-width: thin;
    scrollbar-color: #3d465c #101720;
}
/* 短日志时用弹性空白把内容推到下方；日志变长后空白自动收缩，旧记录仍可正常向上滚动 */
.beach-journal-list::before {
    content: '';
    flex: 1 1 0;
    min-height: 0;
}
.beach-journal-list::-webkit-scrollbar { width: 6px; }
.beach-journal-list::-webkit-scrollbar-track { background: #101720; border-radius: 3px; }
.beach-journal-list::-webkit-scrollbar-thumb { background: #3d465c; border-radius: 3px; }
.beach-journal-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.75;
    color: #96ada6;
}
.beach-log-entry {
    flex: none;
    padding: 9px 0 9px 9px;
    border-bottom: 1px solid rgba(132, 174, 166, .10);
    border-left: 2px solid rgba(143, 178, 170, .26);
}
.beach-log-entry:last-child { border-bottom: 0; }
.beach-log-entry.gain { border-left-color: rgba(122, 202, 139, .62); }
.beach-log-entry.bad { border-left-color: rgba(204, 116, 92, .72); }
.beach-log-entry.wreck { border-left-color: rgba(108, 190, 202, .68); }
.beach-log-entry.treasure { border-left-color: rgba(222, 183, 91, .78); }
.beach-log-entry.move { border-left-color: rgba(110, 150, 160, .36); }
.beach-log-entry-head {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.bl-step {
    flex: none;
    margin-top: 1px;
    padding: 2px 5px;
    border: 1px solid rgba(156, 190, 181, .20);
    border-radius: 3px;
    font-size: 9.5px;
    line-height: 1.3;
    color: #9fbab3;
    background: rgba(32, 64, 60, .18);
}
.beach-log-entry-head b {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #d9e5dd;
}
.beach-log-entry.gain .beach-log-entry-head b { color: #c9e9ce; }
.beach-log-entry.bad .beach-log-entry-head b { color: #f0b8a8; }
.beach-log-entry.wreck .beach-log-entry-head b { color: #aee3e6; }
.beach-log-entry.treasure .beach-log-entry-head b { color: #ffe2a1; }
.bl-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.bl-lines {
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.8;
    color: #b6cac3;
}
.beach-log-entry.bad .bl-lines { color: #dfae9f; }
.beach-log-entry.treasure .bl-lines { color: #e3c985; }
.beach-stats {
    flex: none;
    /* 日志填满上方留白后，状态与主操作区紧接日志固定在下方 */
    margin-top: 8px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    padding: 10px 14px 0;
}
.beach-stat {
    display: flex; flex-direction: column; gap: 2px;
    padding: 7px 8px;
    background: rgba(10, 20, 24, .55);
    border: 1px solid rgba(166, 201, 192, .18);
    border-radius: 7px;
}
.beach-stat span { font-size: 10px; color: #91ada6; }
.beach-stat b { font-size: 14px; color: #f0e7cf; font-variant-numeric: tabular-nums; }
.beach-stamina {
    flex: none; margin: 8px 14px 0; height: 5px;
    background: rgba(6, 13, 16, .75); border-radius: 99px; overflow: hidden;
    border: 1px solid rgba(160, 201, 191, .15);
}
.beach-stamina span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #46a88f, #9cd27a);
    box-shadow: 0 0 8px rgba(126, 210, 158, .45);
    transition: width .35s ease;
}
.beach-tags {
    flex: none; display: flex; flex-wrap: wrap; gap: 5px;
    padding: 8px 14px 10px;
}
.beach-tag {
    display: inline-flex; align-items: center;
    font-size: 10px; line-height: 1;
    padding: 5px 7px; border-radius: 4px;
    color: #d8cfb8; background: rgba(104, 92, 68, .20);
    border: 1px solid rgba(196, 177, 138, .22);
    white-space: nowrap;
}
.beach-tag.on { color: #b9e7bf; border-color: rgba(120, 200, 133, .38); background: rgba(54, 110, 72, .22); }
.beach-tag.bless { color: #ffe19a; border-color: rgba(238, 202, 108, .5); background: rgba(114, 91, 38, .28); animation: beachBless 2.2s ease-in-out infinite; }
.beach-tag.off { color: #899a95; border-color: rgba(143, 165, 158, .14); }
@keyframes beachBless { 0%,100% { opacity: .75; } 50% { opacity: 1; box-shadow: 0 0 9px rgba(247, 209, 112, .25); } }
.beach-scroll {
    /* 内容区跟随状态区一起下移；内容过长时在底部区域内滚动 */
    flex: 0 1 auto; max-height: 52vh;
    overflow-y: auto; overflow-x: hidden;
    padding: 2px 14px 18px;
    /* 深色滑块：浅色半透明滑块在暗色滩涂里看起来像一条白滚动条 */
    scrollbar-width: thin; scrollbar-color: #3d465c #101720;
}
/* WebKit 内核不识别 scrollbar-color：给滩涂与弹窗滚动条显式上深色，避免白底滚动条 */
.modal-body::-webkit-scrollbar,
.beach-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.modal-body::-webkit-scrollbar-track,
.beach-scroll::-webkit-scrollbar-track { background: rgba(10, 16, 24, .55); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb,
.beach-scroll::-webkit-scrollbar-thumb { background: rgba(93, 108, 140, .55); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover,
.beach-scroll::-webkit-scrollbar-thumb:hover { background: rgba(122, 140, 178, .75); }
.beach-note {
    font-size: 10px; line-height: 1.55; color: #92a9a3;
    padding: 7px 9px; margin: 4px 0 8px;
    background: rgba(8, 16, 19, .35);
    border-left: 2px solid rgba(120, 170, 158, .35);
    border-radius: 3px;
}
/* 退出赶海确认：明确提示进入次数会被消耗 */
.beach-exit-confirm { padding: 8px 2px 2px; }
.bec-title {
    font-size: 14px;
    line-height: 1.65;
    color: #f2e5bf;
    letter-spacing: .2px;
}
.beach-exit-confirm .beach-note { margin-top: 8px; line-height: 1.7; }
.beach-empty {
    margin: 18px 0; padding: 18px 14px;
    text-align: center; font-size: 12px; line-height: 1.8;
    color: #b7c4be; background: rgba(9, 18, 21, .4);
    border: 1px dashed rgba(147, 181, 172, .22); border-radius: 8px;
}
.beach-empty.small { margin: 4px 0 10px; padding: 12px 10px; font-size: 11px; }
.beach-main-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    width: 100%; margin: 8px 0 4px; padding: 12px 12px 10px;
    color: #16231f; cursor: pointer;
    background: linear-gradient(180deg, #e6d39a, #c4a968);
    border: 1px solid #f0dfab; border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .14s ease, filter .16s ease, box-shadow .16s ease;
}
.beach-main-btn:hover { filter: brightness(1.06); }
.beach-main-btn:active { transform: translateY(1px); }
.beach-main-btn.small { margin-top: 2px; }
.bm-main { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.bm-sub { font-size: 10px; color: #4c4a32; }
.beach-scene {
    margin: 6px 0 8px; padding: 11px 12px;
    background: linear-gradient(180deg, rgba(21, 50, 51, .68), rgba(12, 27, 30, .58));
    border: 1px solid rgba(137, 183, 169, .26); border-radius: 8px;
}
.beach-scene-title { font-size: 13px; font-weight: 700; color: #f2e5bd; }
.beach-scene-text { margin-top: 5px; font-size: 11px; line-height: 1.6; color: #a9c2ba; }
.beach-action-tip { padding: 3px 2px 8px; font-size: 11px; color: #96b1a9; }
.beach-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
/* 随机两种潮痕：放大卡片占用和字号，避免四种挤在一起 */
.beach-actions.two-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 3px; }
.beach-action {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex; align-items: flex-start; gap: 8px;
    padding: 9px 8px; text-align: left; cursor: pointer;
    font-family: inherit;
    color: #e9e0c9; background: linear-gradient(180deg, rgba(45, 58, 46, .85), rgba(24, 34, 28, .9));
    border: 1px solid rgba(176, 191, 151, .30); border-radius: 7px;
    min-width: 0;
    transition: transform .14s ease, border-color .16s ease, filter .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.beach-action.choice-big {
    min-height: 108px;
    align-items: center;
    padding: 13px 12px;
    gap: 11px;
    border-radius: 9px;
    border-color: rgba(188, 202, 157, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 14px rgba(0, 0, 0, .12);
}
.beach-action:hover { border-color: rgba(219, 198, 139, .68); background: linear-gradient(180deg, rgba(61, 70, 49, .92), rgba(31, 43, 31, .94)); }
.beach-action:active { transform: translateY(1px); }
.ba-glyph {
    flex: none; width: 27px; height: 27px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #d8c486;
    border: 1px solid rgba(200, 176, 111, .35); border-radius: 50%;
    background: rgba(95, 82, 45, .3);
}
.beach-action.choice-big .ba-glyph {
    width: 38px; height: 38px; font-size: 18px;
    border-color: rgba(214, 191, 124, .48);
    background: rgba(108, 92, 48, .36);
}
.ba-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ba-text b { font-size: 12px; color: #f3e9cf; }
.ba-text small { font-size: 9px; line-height: 1.45; color: #96a79c; }
.beach-action.choice-big .ba-text { gap: 5px; }
.beach-action.choice-big .ba-text b { font-size: 15.5px; font-weight: 700; letter-spacing: .4px; }
.beach-action.choice-big .ba-text small { font-size: 11.5px; line-height: 1.6; color: #a8bbb2; }
/* 按钮点击水波与 1.5 秒无声读条 */
.beach-tap-ripple {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.15);
    background: radial-gradient(circle, rgba(255, 238, 190, .62) 0%, rgba(180, 226, 199, .28) 38%, rgba(160, 210, 190, 0) 70%);
    animation: beachTapRipple .55s ease-out forwards;
}
.beach-press-progress {
    position: absolute;
    z-index: 3;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    pointer-events: none;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, rgba(232, 201, 119, .9), rgba(255, 239, 180, .95));
    box-shadow: 0 0 8px rgba(255, 221, 133, .38);
    animation: beachPressFill 1.5s linear forwards;
}
.beach-main-btn .beach-press-progress {
    height: 4px;
    background: linear-gradient(90deg, #3b6d5d, #8fbd77);
    box-shadow: 0 0 7px rgba(93, 146, 103, .42);
}
.beach-main-btn.is-pressed,
.beach-action.is-pressed {
    transform: translateY(2px) scale(.985);
}
.beach-main-btn.is-pending,
.beach-action.is-pending {
    pointer-events: none;
    cursor: progress;
    border-color: rgba(241, 210, 135, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 158, .20), 0 0 14px rgba(225, 191, 105, .16);
}
.beach-action.is-pending .ba-glyph { animation: beachGlyphPulse 1.5s ease-in-out infinite; }
.beach-actions.is-locked { pointer-events: none; }
.beach-actions.is-locked .beach-action:not(.is-pending) {
    opacity: .38;
    filter: saturate(.55) brightness(.82);
}
@keyframes beachTapRipple {
    0% { opacity: .7; transform: translate(-50%, -50%) scale(.15); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes beachPressFill {
    0% { transform: scaleX(0); opacity: .45; }
    12% { opacity: 1; }
    100% { transform: scaleX(1); opacity: .92; }
}
@keyframes beachGlyphPulse {
    0%, 100% { color: #d8c486; box-shadow: 0 0 0 rgba(224, 190, 108, 0); }
    50% { color: #ffe7a5; box-shadow: 0 0 12px rgba(233, 200, 118, .32); }
}
/* 结算瞬间的短促顿挫 */
.beach-panel.beach-thud { animation: beachPanelThud .28s cubic-bezier(.22, .8, .32, 1); }
.beach-panel.beach-thud-hard { animation: beachPanelThudHard .32s ease-out; }
@keyframes beachPanelThud {
    0% { transform: translateY(0); }
    34% { transform: translateY(3px); }
    66% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}
@keyframes beachPanelThudHard {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 2px); }
    44% { transform: translate(2px, -1px); }
    68% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}
/* 收获反馈：结果卡亮一下，物品小签依次弹出 */
.beach-result.fresh.good { animation: beachResultIn .42s cubic-bezier(.22, .9, .32, 1) both; }
.beach-result.fresh.bad { animation: beachBadIn .38s ease-out both; }
.beach-result.fresh.good:after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(80% 110% at 24% 18%, rgba(255, 228, 151, .30), rgba(255, 224, 140, 0) 58%);
    animation: beachRewardFlash .85s ease-out forwards;
}
.beach-item.reward-pop {
    animation: beachItemPop .52s cubic-bezier(.18, 1.4, .42, 1) both;
}
.beach-log-entry.fresh {
    animation: beachLogIn .42s ease-out both;
}
@keyframes beachResultIn {
    0% { opacity: .55; transform: translateY(5px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes beachBadIn {
    0% { opacity: .7; transform: translateX(0); }
    22% { transform: translateX(-4px); }
    48% { transform: translateX(3px); }
    72% { transform: translateX(-1px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes beachRewardFlash {
    0% { opacity: 0; transform: translateX(-18%); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(18%); }
}
@keyframes beachItemPop {
    0% { opacity: .25; transform: translateY(7px) scale(.72); filter: brightness(1.7); }
    55% { opacity: 1; transform: translateY(-2px) scale(1.06); filter: brightness(1.15); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}
@keyframes beachLogIn {
    0% { opacity: .35; transform: translateY(7px); background: rgba(255, 220, 137, .12); }
    100% { opacity: 1; transform: translateY(0); background: transparent; }
}
.beach-result {
    position: relative;
    overflow: hidden;
    margin: 5px 0 8px; padding: 12px 12px 11px;
    background: rgba(10, 21, 23, .58);
    border: 1px solid rgba(154, 187, 176, .22); border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.beach-result.good { border-left: 3px solid #77c489; }
.beach-result.bad { border-left: 3px solid #c77561; }
.beach-result-head { display: flex; align-items: center; gap: 7px; }
.beach-result-head b { font-size: 14px; font-weight: 700; color: #f0e6cd; min-width: 0; }
.br-badge {
    flex: none; font-size: 10.5px; padding: 3px 6px; border-radius: 3px;
    color: #13201a; background: #9cd08e;
}
.beach-result.bad .br-badge { background: #d58972; color: #26100c; }
.beach-result-desc { margin-top: 6px; font-size: 12px; line-height: 1.7; color: #afc5bd; }
.beach-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.beach-item {
    font-size: 10px; padding: 4px 6px; border-radius: 4px;
    border: 1px solid rgba(196, 180, 135, .28);
    background: rgba(78, 68, 45, .22);
}
.beach-item.q1 { color: #cfc9b8; }
.beach-item.q2 { color: #8ed49a; border-color: rgba(126, 198, 137, .35); }
.beach-item.q3 { color: #7ab7e6; border-color: rgba(96, 168, 219, .35); }
.beach-item.q4 { color: #e3a55f; border-color: rgba(222, 156, 75, .35); }
.beach-item.q5 { color: #ffca6e; border-color: rgba(241, 190, 88, .42); box-shadow: 0 0 8px rgba(238, 191, 92, .14); }
.beach-item.q6 { color: #ff8171; }
.beach-item.silver { color: #ffdf9c; }
/* 结算物品签：放大并加入种类图标；稀有 / 珍品前加 ☆ */
.beach-item.beach-loot {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 11px 8px 9px; border-radius: 7px;
    font-size: 14px; line-height: 1.2;
    background: linear-gradient(135deg, rgba(83, 73, 44, .34), rgba(24, 35, 32, .42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 8px rgba(0, 0, 0, .12);
}
.beach-item.beach-loot.q5 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 14px rgba(238, 191, 92, .26); }
.beach-item-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(238, 214, 154, .08);
    border: 1px solid rgba(238, 214, 154, .16);
    font-size: 15px; line-height: 1;
}
.beach-item-name { font-weight: 700; letter-spacing: .2px; }
.beach-item-count { flex: none; font-size: 11.5px; font-weight: 600; color: #d6ccb2; opacity: .9; }
.beach-item-star {
    flex: none; font-size: 14px; line-height: 1; color: #ffd77b;
    text-shadow: 0 0 6px rgba(255, 209, 104, .55);
}
.beach-item-star.rare { color: #9bd0f4; text-shadow: 0 0 6px rgba(118, 186, 238, .45); }
.beach-item-star.legend { color: #ffd36e; }
/* 物品签可点击查看详情：保留原有配色，只补按钮重置与反馈 */
.beach-item-link {
    appearance: none; -webkit-appearance: none;
    font-family: inherit; text-align: left; cursor: pointer;
    transition: filter .16s ease, border-color .16s ease, transform .12s ease;
}
.beach-item-link:hover { filter: brightness(1.16); border-color: rgba(238, 207, 135, .58); }
.beach-item-link:active { transform: translateY(1px); }
.beach-item-link:focus-visible { outline: 1px solid rgba(247, 214, 138, .72); outline-offset: 2px; }
.beach-log-item { display: inline-flex; align-items: center; font-size: 12px; gap: 5px; padding: 5px 7px; }
.beach-log-item .beach-item-icon { width: 18px; height: 18px; font-size: 12px; }
.beach-log-item .beach-item-name { font-weight: 700; }
.beach-log-item .beach-item-star { font-size: 12px; }
.beach-log-item .beach-item-count { font-size: 10.5px; }
.beach-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.beach-line { font-size: 12px; font-weight: 500; line-height: 1.7; color: #cfdcd5; }
/* 沉船饰品 / 装备：文字直接可点，不出现白色按钮 */
.beach-equip-link {
    display: block; width: 100%;
    margin: 0; padding: 1px 0;
    font-family: inherit; font-size: 12px; font-weight: 500;
    line-height: 1.7; text-align: left;
    color: #cfdcd5; background: none; border: 0;
    cursor: pointer;
    transition: color .16s ease;
}
.beach-equip-link:hover { color: #ffe3a1; text-decoration: underline; text-underline-offset: 3px; }
.beach-equip-link:focus-visible { outline: 1px solid rgba(247, 214, 138, .72); outline-offset: 2px; }
.beach-history { margin: 5px 0 0; font-size: 11px; color: #a8bab3; }
.beach-history summary { cursor: pointer; padding: 5px 0; color: #c9b98e; }
.beach-history-line {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 4px 0; border-top: 1px dashed rgba(154, 180, 171, .16);
}
.beach-history-line b { color: #c6d3c9; font-weight: 400; text-align: right; }
/* 沉船二次确认 */
.beach-wreck-prompt {
    position: relative; margin: 8px 0 4px; padding: 15px 13px 13px;
    background: radial-gradient(100% 100% at 50% 0%, rgba(86, 104, 70, .35), rgba(13, 26, 25, .65));
    border: 1px solid rgba(199, 173, 99, .46); border-radius: 9px;
    box-shadow: 0 0 18px rgba(217, 178, 78, .10) inset;
}
.bwp-glow {
    position: absolute; right: 12px; top: 10px; width: 7px; height: 7px;
    border-radius: 50%; background: #ffd87b; box-shadow: 0 0 14px 5px rgba(255, 210, 102, .32);
    animation: beachGlow 1.5s ease-in-out infinite;
}
@keyframes beachGlow { 0%,100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.bwp-title { font-size: 14px; font-weight: 700; color: #ffe3a1; }
.bwp-text { margin-top: 6px; font-size: 10px; line-height: 1.65; color: #b6c2b0; }
.bwp-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 7px; align-items: stretch; margin-top: 8px; }
.beach-ghost-btn {
    margin-top: 8px; padding: 9px 8px; cursor: pointer;
    font-size: 11px; color: #b6beb0;
    background: rgba(31, 42, 36, .7);
    border: 1px solid rgba(157, 174, 153, .26); border-radius: 7px;
}
.beach-ghost-btn:hover { color: #e5ddc8; border-color: rgba(210, 196, 155, .5); }
.beach-wreck-loot { margin-top: 6px; }
.bwl-title { font-size: 14px; font-weight: 700; color: #ffe1a0; letter-spacing: 1px; margin-bottom: 7px; }
/* 图鉴：两列大卡，已发现在前，文字放大并保持清晰 */
.beach-codex-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 8px 0 12px; -webkit-font-smoothing: antialiased; }
.beach-codex-head b { font-size: 17px; letter-spacing: .6px; color: #f5e9cd; }
.beach-codex-head .beach-note { margin: 4px 0 0; padding: 0; border: 0; background: none; font-size: 11.5px; line-height: 1.55; }
.beach-codex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.beach-codex-cell {
    min-height: 66px; padding: 9px 10px 8px;
    display: flex; flex-direction: column; gap: 7px;
    background: rgba(9, 19, 20, .55);
    border: 1px solid rgba(147, 176, 163, .22); border-radius: 8px;
    overflow: hidden;
}
.beach-codex-cell.seen {
    border-color: rgba(190, 174, 126, .42);
    background: linear-gradient(180deg, rgba(66, 63, 39, .30), rgba(33, 39, 31, .22));
    box-shadow: inset 3px 0 0 rgba(143, 208, 156, .38);
}
.beach-codex-cell[data-beach-item-tid] { cursor: pointer; transition: filter .16s ease, border-color .16s ease, transform .12s ease; }
.beach-codex-cell[data-beach-item-tid]:hover { filter: brightness(1.14); border-color: rgba(224, 197, 125, .68); }
.beach-codex-cell[data-beach-item-tid]:active { transform: translateY(1px); }
.beach-codex-cell[data-beach-item-tid]:focus-visible { outline: 1px solid rgba(247, 214, 138, .72); outline-offset: 2px; }
.beach-codex-cell.locked { opacity: .55; }
.beach-codex-cell.locked .bcc-name { color: #a4b2aa; font-weight: 500; }
.bcc-name {
    display: flex; align-items: center; gap: 4px;
    font-size: 13.5px; line-height: 1.35; color: #f0e7d1; font-weight: 600;
    word-break: normal; overflow-wrap: anywhere;
}
.bcc-name .beach-item-icon {
    width: 20px; height: 20px; font-size: 14px;
    border: 0; background: transparent;
}
.bcc-name .beach-item-name { min-width: 0; font-weight: 700; letter-spacing: .2px; }
.bcc-name .beach-item-star { font-size: 12px; text-shadow: none; }
.bcc-unknown-mark {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 20px; height: 20px; border-radius: 50%;
    font-size: 12px; font-weight: 700; color: #8ea298;
    background: rgba(120, 140, 132, .10); border: 1px solid rgba(140, 164, 154, .18);
}
.bcc-unknown { font-size: 13px; letter-spacing: .5px; }
.bcc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.bcc-type {
    min-width: 0; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; line-height: 1.5; color: #a9beb6;
    background: rgba(132, 165, 155, .10); border: 1px solid rgba(140, 170, 158, .14);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bcc-quality { flex: none; font-size: 11px; line-height: 1.5; letter-spacing: .4px; color: #a7b2aa; }
.bcc-quality.q3 { color: #8ed3e3; }
.bcc-quality.q5 { color: #ffd36e; }
.bcc-quality.locked { color: #788b81; }
.beach-codex-sec { margin-bottom: 13px; }
.beach-codex-sec.locked .beach-codex-sec-title { color: #81948b; }
.beach-codex-sec-title {
    display: flex; align-items: center; gap: 8px; margin: 1px 0 7px;
    font-size: 12.5px; line-height: 1.4; letter-spacing: .6px; color: #cfdbd3;
}
.beach-codex-sec-title span { flex: none; font-weight: 700; }
.beach-codex-sec-title em {
    flex: none; font-style: normal; font-size: 11px; color: #92a79d;
    padding: 0 6px; border: 1px solid rgba(146, 167, 157, .22); border-radius: 9px;
}
.beach-codex-sec-title i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(146, 167, 157, .26), transparent); }
/* 码头商贩 */
.beach-merchant { color: #e8dfc9; }
.beach-merchant-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
    padding: 2px 0 8px; border-bottom: 1px solid rgba(180, 165, 125, .18);
}
.bmm-title { font-size: 15px; font-weight: 700; color: #f2e5bf; }
.beach-sec-count { font-size: 10px; font-weight: 400; color: #9ca79c; }
/* 码头商贩：与商铺渔获一致，整块可点、名称左价格右，价格不折行 */
.beach-sell-row {
    min-height: 38px; padding: 7px 9px;
    background: #1a1a2e;
}
.beach-sell-row:hover { border-color: rgba(232, 184, 92, .55); }
.beach-sell-row .bt-name { min-width: 0; }
.beach-sell-row .bt-count {
    flex: 0 0 auto;
    font-size: 11px; white-space: nowrap; text-align: right;
}
.sea-tide-note { margin-top: 5px; font-size: 10px; line-height: 1.6; }
.sea-tide-fall { color: #8fe29f; }
.sea-tide-rise { color: #8bbbd1; }
@media (max-width: 430px) {
    .beach-actions { grid-template-columns: 1fr; }
    .beach-codex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .beach-stats { grid-template-columns: repeat(2, 1fr); }
    .beach-stat { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
 * 宠物详情：赶海口粮区
 * ============================================================ */
.pet-feed-box {
    margin: 8px 0 8px;
    padding: 8px;
    background: rgba(62, 58, 40, .18);
    border: 1px solid rgba(180, 165, 124, .18);
    border-radius: 6px;
}
.pet-feed-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 6px;
}
.pet-feed-head b { font-size: 12px; color: #ecdca8; }
.pet-feed-head span { font-size: 9px; color: #8f8b79; }
.pet-feed-row {
    display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden;
    padding-bottom: 3px; scrollbar-width: thin;
}
.pet-feed-btn {
    flex: 0 0 auto; min-width: 94px; max-width: 134px;
    display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
    padding: 6px 6px 5px; cursor: pointer; text-align: left;
    color: #ded5bc; background: rgba(38, 39, 30, .55);
    border: 1px solid rgba(170, 156, 114, .24); border-radius: 5px;
}
.pet-feed-btn:hover { border-color: rgba(224, 199, 125, .55); background: rgba(62, 61, 42, .55); }
.pet-feed-btn b { font-size: 10px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.pet-feed-btn small { font-size: 9px; color: #a9a38d; white-space: nowrap; }
.pet-feed-btn.q1 b { color: #cfc9b8; }
.pet-feed-btn.q2 b { color: #8ed49a; }
.pet-feed-btn.q3 b { color: #7ab7e6; }
.pet-feed-btn.q4 b { color: #e3a55f; }
.pet-feed-btn.q5 b { color: #ffca6e; }
.pet-feed-note { margin-top: 5px; font-size: 9px; color: #8f8a76; line-height: 1.5; }

/* ============================================================
 * 怪物攻城：公告栏、任务面板、城门强提醒
 * ============================================================ */
.npc-chip.siege-board-chip {
    border-color: #92352f;
    background: linear-gradient(180deg, rgba(91, 28, 26, .92), rgba(43, 18, 21, .94));
    color: #ffd9c9;
    box-shadow: inset 0 0 12px rgba(255, 80, 60, .12);
}
.npc-chip .q-mark.siege-alert {
    font-size: 30px;
    line-height: 1;
    padding: 0 1px 0 5px;
    color: #ff4d3d;
    background: transparent;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(255, 40, 25, .95), 0 0 15px rgba(255, 50, 30, .55);
    animation: siegeAlertPulse .9s ease-in-out infinite;
}
@keyframes siegeAlertPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
    50% { transform: translateY(-2px) scale(1.13); opacity: 1; }
}
.scene-land.siege-place {
    color: #ff8b73 !important;
    text-shadow: 0 0 8px rgba(255, 55, 35, .65);
    font-weight: 700;
}

/* 公告栏正文 */
.siege-board-panel { color: #d8cabc; }
.siege-storm-line {
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(112, 31, 28, .38);
    border: 1px solid rgba(205, 73, 55, .38);
    color: #ffbe9f;
    font-size: 11.5px;
    letter-spacing: .4px;
}
.siege-main-title {
    margin: 12px 0 4px;
    text-align: center;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 7px;
    color: #ffdfc0;
    text-shadow: 0 0 9px rgba(255, 45, 30, .8), 0 2px 0 #5a1714;
}
.siege-story { margin: 7px 0 10px; font-size: 12px; line-height: 1.75; color: #c9bbaa; }
.siege-gates {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 9px;
    border-top: 1px solid rgba(197, 75, 58, .3);
    border-bottom: 1px solid rgba(197, 75, 58, .3);
    background: rgba(55, 22, 21, .35);
    font-size: 11px;
}
.siege-gates span {
    flex: 1; text-align: center;
    padding: 3px 4px; border-radius: 4px;
    color: #ffab8c;
    background: rgba(150, 42, 34, .3);
    border: 1px solid rgba(218, 88, 65, .35);
}
.siege-gates b { flex: none; color: #ff6852; font-size: 10px; }
.siege-lord-say {
    margin: 11px 0;
    padding: 9px 11px 9px 12px;
    border-left: 3px solid #d9a441;
    border-radius: 4px;
    background: rgba(67, 48, 31, .55);
    color: #f0dfb4;
    font-size: 12.5px;
    line-height: 1.75;
}
.siege-lord-tag {
    display: inline-block;
    margin-right: 7px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(217, 164, 65, .18);
    color: #ffd888;
    font-size: 10px;
}
.siege-mission {
    padding: 9px 10px;
    border-radius: 6px;
    border: 1px dashed rgba(196, 89, 69, .42);
    background: rgba(27, 25, 24, .45);
}
.siege-mission-row {
    display: flex; gap: 10px; justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
    color: #bdb2a5;
    line-height: 1.5;
}
.siege-mission-row b { color: #eee1cf; font-weight: 600; text-align: right; }
.siege-mission-row b.danger { color: #ff826d; }
.siege-reward-title { margin: 8px 0 5px; font-size: 11px; color: #e9c27a; font-weight: 700; }
.siege-reward-list { display: flex; flex-wrap: wrap; gap: 5px; }
.siege-reward-list span {
    padding: 3px 7px;
    border-radius: 4px;
    color: #f2d594;
    background: rgba(125, 90, 35, .26);
    border: 1px solid rgba(206, 163, 83, .3);
    font-size: 10.5px;
}
.siege-status-line {
    margin-top: 9px; padding: 6px 8px; border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    color: #cfc2b4; font-size: 11px;
}
.siege-status-line.active { color: #ffd18a; background: rgba(120, 75, 20, .28); border: 1px solid rgba(218, 165, 66, .3); }
.siege-status-line.active b { color: #ffe9b8; font-size: 14px; }
.siege-status-line.done { color: #98e49c; background: rgba(36, 92, 43, .25); }
.siege-status-line.failed { color: #ff9988; background: rgba(103, 31, 28, .26); }
.siege-deadline { margin-top: 4px; color: #ff8e79; font-size: 10.5px; line-height: 1.6; }

/* 任务面板摘要 */
.siege-panel-box {
    margin: 0 0 8px;
    padding: 8px 10px 7px;
    border-radius: 7px;
    border: 1px solid rgba(154, 70, 55, .36);
    background: linear-gradient(180deg, rgba(55, 31, 27, .6), rgba(28, 25, 25, .45));
}
.siege-panel-box.active { border-color: rgba(224, 128, 75, .55); }
.siege-panel-box.done { border-color: rgba(103, 167, 101, .42); }
.siege-panel-box.failed { border-color: rgba(156, 53, 45, .45); }
.siege-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.siege-panel-head span { color: #ff9d7f; font-size: 12px; font-weight: 800; }
.siege-panel-head b { color: #e6d7c7; font-size: 10.5px; font-weight: 500; text-align: right; }
.siege-panel-sub { margin-top: 3px; color: #948878; font-size: 9.5px; line-height: 1.5; }

/* 城门强提醒 */
.modal-card.siege-danger-modal {
    border-color: #a7342d !important;
    box-shadow: 0 0 0 1px rgba(255, 68, 52, .16), 0 14px 42px rgba(60, 8, 7, .55) !important;
}
.siege-warn-body { color: #e5d5c9; }
.siege-warn-storm {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
    color: #ff6b53;
    text-shadow: 0 0 10px rgba(255, 45, 30, .65);
    letter-spacing: 1px;
}
.siege-warn-main {
    margin: 3px 0 9px;
    font-size: 17px;
    font-weight: 800;
    color: #ffe0b6;
}
.siege-warn-body p { font-size: 12px; line-height: 1.8; color: #cdbeb1; margin: 6px 0; }
.siege-warn-tip {
    margin-top: 9px;
    padding: 7px 9px;
    border-left: 3px solid #a93f32;
    background: rgba(104, 34, 29, .26);
    color: #f0b79e;
    font-size: 11px;
    line-height: 1.7;
}


/* ===== 战斗界面：自动攻击开关 ===== */
.battle-auto-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 14px 10px;
}
.battle-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #4a3f2a;
    background: #1b1a2a;
    color: #b9ae8e;
    font-size: 13px;
    font-weight: 600;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.battle-auto-toggle .auto-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b6350;
    box-shadow: 0 0 0 2px rgba(107, 99, 80, .16);
    transition: background .18s, box-shadow .18s;
}
.battle-auto-toggle:hover { border-color: #7a6338; color: #e0d2ae; }
.battle-auto-toggle.on {
    border-color: #b8863a;
    background: #3c2a12;
    color: #ffd27a;
    box-shadow: 0 0 12px rgba(212, 166, 74, .2);
}
.battle-auto-toggle.on .auto-dot {
    background: #ffd166;
    box-shadow: 0 0 8px rgba(255, 209, 102, .75);
}

/* ============================================================
 * 城东老渔夫：天气 / 潮汐预报表
 * ============================================================ */
.wf-summary {
    display: grid;
    grid-template-columns: 1fr 1.4fr .8fr;
    gap: 8px;
    margin: 4px 0 10px;
}
.wf-summary > div {
    padding: 7px 9px;
    border: 1px solid rgba(201, 169, 97, .18);
    border-radius: 7px;
    background: rgba(201, 169, 97, .045);
}
.wf-summary span {
    display: block;
    color: #9d9278;
    font-size: 11px;
    margin-bottom: 3px;
}
.wf-summary b { color: #ecd6a4; font-size: 12.5px; font-weight: 600; }
.wf-summary .wf-paid { color: #8ee08a; }

.wf-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, .26);
    border-radius: 9px;
    background: rgba(11, 12, 20, .38);
}
.weather-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 11.5px;
    line-height: 1.55;
}
.weather-table th {
    padding: 8px 7px;
    color: #e8cf96;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    background: rgba(201, 169, 97, .11);
    border-bottom: 1px solid rgba(201, 169, 97, .26);
}
.weather-table th:nth-child(1) { width: 13%; }
.weather-table th:nth-child(2) { width: 19%; }
.weather-table th:nth-child(3) { width: 36%; }
.weather-table th:nth-child(4) { width: 32%; }
.weather-table td {
    padding: 8px 7px;
    vertical-align: top;
    border-bottom: 1px dashed rgba(201, 169, 97, .14);
    word-break: break-word;
}
.weather-table tbody tr:last-child td { border-bottom: none; }
.weather-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
.weather-table tbody tr.is-now {
    background: linear-gradient(90deg, rgba(201, 169, 97, .13), rgba(201, 169, 97, .025));
}

.wf-period b { display: block; color: #f0dfb4; font-size: 13px; }
.wf-now {
    display: inline-block;
    margin-top: 4px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(232, 196, 114, .5);
    background: rgba(232, 196, 114, .12);
    color: #ffd47e;
    font-size: 10px;
    line-height: 1.6;
}
.wf-time b { display: block; color: #c8bd9f; font-weight: 600; }
.wf-time span { color: #8f8773; font-size: 10.5px; white-space: nowrap; }

.wf-main {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e8e0c8;
    font-size: 13px;
    font-weight: 700;
}
.wf-main > span {
    margin-left: auto;
    color: #938b76;
    font-size: 10.5px;
    font-weight: 500;
}
.wf-prob {
    flex: none;
    padding: 0 3px;
    border: 1px solid rgba(201, 169, 97, .28);
    border-radius: 4px;
    background: rgba(201, 169, 97, .09);
    color: #b7a77f;
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
}
.wf-clear { color: #f3cf72; }
.wf-cloudy { color: #c6c0ad; }
.wf-rain { color: #7cb8e8; }
.wf-fog { color: #c3b7a8; }
.wf-storm { color: #ff9478; }
.wf-breakdown {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 5px;
    margin-top: 3px;
    color: #8e866f;
    font-size: 9.5px;
    line-height: 1.5;
}
.wf-breakdown em {
    flex: none;
    color: #9f947c;
    font-style: normal;
}
.wf-breakdown span { white-space: nowrap; }
.wf-none { color: #776f5f; }
.wf-tide-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #b9d8df;
}
.wf-tide-row b { flex: none; color: #8fd0dd; font-size: 12px; font-weight: 600; }
.wf-tide-row span { color: #8b8371; font-size: 10.5px; white-space: nowrap; }
.wf-tide-row + .wf-tide-row { margin-top: 2px; }
.wf-muted { color: #776f5f; }
.wf-note {
    margin-top: 9px;
    padding: 8px 10px;
    border-left: 2px solid rgba(201, 169, 97, .5);
    border-radius: 0 6px 6px 0;
    background: rgba(201, 169, 97, .055);
    color: #9d937b;
    font-size: 11px;
    line-height: 1.65;
}
.wf-note b { color: #ecd19a; }
@media (max-width: 460px) {
    .wf-summary { grid-template-columns: 1fr 1fr; }
    .wf-summary > div:last-child { grid-column: 1 / -1; }
    .weather-table { font-size: 10.5px; }
    .weather-table th, .weather-table td { padding: 7px 5px; }
}

/* ==================================================================
 * 排行榜 + 爵位捐献 + 爵位称号
 * 说明：全部沿用文字 H5 风格，不影响原有弹窗与场景样式
 * ================================================================== */
/* ---------- 爵位称号徽章：深色底 + 等级边框 + 文字统一淡黄色 ---------- */
.noble-badge {
    display: inline-block;
    padding: 0 6px;
    margin-right: 5px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 11.5px;
    line-height: 1.65;
    font-weight: 700;
    color: #f7e7a3 !important;
    vertical-align: 1px;
    white-space: nowrap;
}
.noble-xunjue { background: #223140; border-color: #95a9bf; }
.noble-zijue { background: #0c3b46; border-color: #45dbe3; }
.noble-bojue { background: #2a2146; border-color: #a99cf0; }
.noble-houjue { background: #48242c; border-color: #ee8ca8; }
.noble-gongjue { background: #3f2c18; border-color: #e5b45f; }
.noble-zhenhaiwang {
    background: #181818;
    border-color: #ffd24a;
    box-shadow: 0 0 8px rgba(255, 210, 74, .30);
    animation: nobleBadgeGlow 2.8s ease-in-out infinite;
}
@keyframes nobleBadgeGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 210, 74, .22); }
    50% { box-shadow: 0 0 13px rgba(255, 210, 74, .50); }
}
.noble-empty-title { color: #8b8474; }

/* ---------- 角色详情里的爵位行 ---------- */
.detail-noble {
    border-top: 1px dashed #2a3a4a;
    padding-top: 5px;
}
.detail-noble .noble-mini-desc {
    color: #8b8474;
    font-size: 11px;
    margin-left: 4px;
}

/* ---------- 排行榜页面 ---------- */
.rank-page { padding-bottom: 4px; }
.rank-tab-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 8px;
    border-bottom: 1px solid #2a3a4a;
    -webkit-overflow-scrolling: touch;
}
.rank-tab-bar::-webkit-scrollbar { height: 4px; }
.rank-tab-bar::-webkit-scrollbar-thumb { background: #3a3226; border-radius: 2px; }
.rank-tab {
    flex: none;
    padding: 5px 11px;
    border: 1px solid #3a3226;
    border-radius: 6px;
    background: #181827;
    color: #8b8474;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.rank-tab.on {
    border-color: #8a7138;
    background: #2a2438;
    color: #e8c46a;
    box-shadow: inset 0 0 8px rgba(232, 184, 92, .12);
}
.rank-headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #e8d8a8;
    font-size: 13px;
}
.rank-headline b { color: #f0c674; }
.rank-headline span { color: #6f6a5c; font-size: 10.5px; }
.rank-desc, .rank-rule {
    margin-top: 5px;
    color: #9b927d;
    font-size: 11.5px;
    line-height: 1.65;
}
.rank-rule { color: #6f6a5c; }
.rank-board {
    margin-top: 8px;
    border: 1px solid #2a3a4a;
    border-radius: 7px;
    overflow: hidden;
    background: #111119;
}
.rank-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 92px 104px;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 3px 8px;
    border-top: 1px solid #1e2430;
    color: #b7ae99;
    font-size: 12px;
}
.rank-board.cols3 .rank-row { grid-template-columns: 38px minmax(0, 1fr) 118px; }
.rank-row:first-child { border-top: 0; }
.rank-row.rank-head {
    min-height: 29px;
    background: #1a1c2a;
    color: #8a826d;
    font-size: 10.5px;
}
.rank-row.self {
    background: rgba(232, 184, 92, .08);
    color: #f0d995;
}
.rank-row.self .rank-value { color: #f0c674; font-weight: 600; }
.rank-row.empty { color: #5f594a; }
.rank-no { color: #6f6a5c; font-size: 11px; text-align: center; }
.rank-row.self .rank-no { color: #e8c46a; }
.rank-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-star { color: #e8c46a; font-style: normal; margin-right: 3px; }
.rank-value { text-align: right; white-space: nowrap; font-size: 11.5px; }
.rank-title { text-align: center; min-width: 0; }
.noble-title-plain {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7e7a3;
    font-size: 10.5px;
}
.rank-foot-note {
    margin-top: 8px;
    text-align: center;
    color: #5f594a;
    font-size: 10.5px;
}

/* ---------- 爵位捐献页面 ---------- */
.noble-page { padding-bottom: 4px; }
.noble-block {
    margin-bottom: 12px;
    padding: 9px 10px 10px;
    border: 1px solid #2a3a4a;
    border-radius: 7px;
    background: #111119;
}
.noble-block-title {
    margin: 0 0 6px;
    color: #e8c46a;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px dashed #3a3226;
    padding-bottom: 5px;
}
.noble-merit { color: #f0c674 !important; font-size: 14px; }
.noble-current-silver {
    color: #9b927d;
    font-size: 11.5px;
    margin: 2px 0 7px;
}
.noble-current-silver b { color: #f0c674; }
.noble-donate-row {
    display: flex;
    gap: 7px;
    align-items: center;
}
.noble-input {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 4px 9px;
    border: 1px solid #3a3226;
    border-radius: 6px;
    background: #151522;
    color: #e8d8a8;
    font-size: 13px;
    outline: none;
}
.noble-input:focus { border-color: #8a7138; box-shadow: 0 0 0 1px rgba(232, 184, 92, .18); }
.noble-donate-btn {
    flex: none;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #8a7138;
    border-radius: 6px;
    background: linear-gradient(180deg, #3a2e18 0%, #2a2418 100%);
    color: #f0c674;
    font-size: 12px;
    cursor: pointer;
}
.noble-donate-btn:active { transform: translateY(1px); background: #3a2e18; }
.noble-claim-btn {
    width: 100%;
    margin-top: 7px;
    height: 31px;
    border: 1px solid #4a3f2a;
    border-radius: 6px;
    background: #1a1a2e;
    color: #c9a961;
    font-size: 12px;
    cursor: pointer;
}
.noble-claim-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    color: #6f6a5c;
}
.noble-convert-tip {
    margin-top: 7px;
    color: #8b8474;
    font-size: 11px;
    line-height: 1.65;
}
.noble-convert-tip.dim { color: #5f594a; }
.noble-explain {
    color: #9b927d;
    font-size: 11.5px;
    line-height: 1.75;
}
.noble-explain p { margin: 0 0 5px; }
.noble-explain p:last-child { margin-bottom: 0; }
.noble-explain b { color: #d8c795; font-weight: 600; }
.noble-explain .dim { color: #5f594a; }

/* ---------- 城西司马利：功勋兑换入口 ---------- */
.masili-page { padding-bottom: 4px; }
.masili-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 9px;
    padding: 10px;
    border: 1px solid #3a3226;
    border-radius: 8px;
    background: linear-gradient(135deg, #1b1914 0%, #111119 70%);
}
.masili-seal {
    flex: none;
    width: 42px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #8a7138;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a3a1c 0%, #241d12 75%);
    color: #f0c674;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(240, 198, 116, .35);
}
.masili-name { color: #e8c46a; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.masili-sub { margin-top: 2px; color: #8b8474; font-size: 11.5px; }
.masili-speech {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-left: 2px solid #6b5428;
    background: #12121a;
    color: #b9ad91;
    font-size: 12px;
    line-height: 1.7;
}
.masili-unlock-list { margin: 8px 0 9px; }
.masili-unlock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px dashed #2a261c;
    color: #8c8068;
    font-size: 11.5px;
}
.masili-unlock-row:last-child { border-bottom: 0; }
.masili-unlock-row.on { color: #cdbb8d; }
.masili-unlock-row.on b { color: #8ed49a; }
.masili-unlock-row b { color: #6c6658; font-weight: 500; }
.masili-exchange-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}
.masili-exchange-btn,
.masili-fragment-btn {
    width: 100%;
    height: 38px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
}
.masili-exchange-btn {
    border: 1px solid #8a7138;
    background: linear-gradient(180deg, #3a2e18 0%, #241f17 100%);
    color: #f0c674;
}
.masili-fragment-btn {
    border: 1px solid #3f6b72;
    background: linear-gradient(180deg, #1c3338 0%, #172226 100%);
    color: #9bdde0;
}
.masili-exchange-btn:active,
.masili-fragment-btn:active { transform: translateY(1px); }
.masili-foot-note {
    margin-top: 5px;
    color: #5f594a;
    font-size: 10.5px;
    line-height: 1.6;
}

/* ---------- 司马利 · 碎片兑换 ---------- */
.fragment-shop-page { padding-bottom: 4px; }
.fragment-shop-page .merit-shop-balance b {
    color: #9bdde0;
    font-size: 16px;
}
.fragment-shop-page .merit-shop-balance b em {
    margin-left: 2px;
    color: #7f9b9f;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
}
.fragment-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border: 1px solid #31545a;
    border-radius: 8px;
    background:
        radial-gradient(circle at 8% 22%, rgba(72, 132, 140, .13), transparent 54%),
        #10171b;
}
.fragment-orb {
    flex: none;
    width: 42px;
    height: 42px;
    line-height: 40px;
    border: 1px solid #4b858d;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #25464c 0%, #14252a 76%);
    color: #a7e3e5;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 8px rgba(155, 221, 224, .25);
}
.fragment-info { min-width: 0; flex: 1; }
.fragment-name {
    color: #d7e5df;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}
.fragment-name span {
    margin-left: 5px;
    color: #7fa6a8;
    font-size: 10.5px;
    font-weight: 400;
}
.fragment-desc {
    margin-top: 3px;
    color: #889c98;
    font-size: 10.5px;
    line-height: 1.5;
}
.fragment-progress {
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #223138;
}
.fragment-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f858c 0%, #9bdde0 100%);
}
.fragment-progress-text {
    margin-top: 4px;
    color: #8fa7a4;
    font-size: 10px;
    line-height: 1.4;
}
.fragment-exchange-btn {
    flex: none;
    width: 78px;
    height: 38px;
    border: 1px solid #4b858d;
    border-radius: 7px;
    background: linear-gradient(180deg, #234349 0%, #172b30 100%);
    color: #b7e9ea;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.fragment-exchange-btn:active { transform: translateY(1px); }
.fragment-exchange-btn:disabled {
    border-color: #34454a;
    background: #182024;
    color: #66777a;
    cursor: not-allowed;
    opacity: .72;
}
.fragment-offer.disabled .fragment-orb { opacity: .72; }

/* ---------- 碎片兑换 · 七域坐骑灵片 ---------- */
.fragment-section { margin-top: 10px; }
.fragment-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 2px;
}
.fragment-section-head span {
    color: #d9c58e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
}
.fragment-section-head em {
    color: #6f7f7e;
    font-size: 10px;
    font-style: normal;
}
.mount-fragment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mount-fragment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid #3d392e;
    border-radius: 8px;
    background:
        radial-gradient(circle at 4% 24%, rgba(201, 169, 97, .09), transparent 46%),
        #121318;
}
.mount-fragment-row.owned {
    border-color: #4d4a3b;
    opacity: .78;
}
.mf-orb {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(201, 169, 97, .34);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #2a2721, #15141a 76%);
    font-size: 17px;
}
.mf-info { flex: 1; min-width: 0; }
.mf-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e6d9b7;
    font-size: 12px;
    line-height: 1.35;
}
.mf-title b { font-weight: 600; }
.mf-title em {
    color: #85795e;
    font-size: 9.5px;
    font-style: normal;
}
.mf-frag {
    margin-top: 2px;
    color: #8f968e;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mf-frag b { color: #d7c07d; font-weight: 600; }
.mount-fragment-row .fragment-progress { height: 3px; margin-top: 4px; }
.mount-fragment-row .fragment-exchange-btn {
    width: 68px;
    height: 32px;
    padding: 0 4px;
    font-size: 10.5px;
    white-space: nowrap;
}
.fragment-mount-note {
    margin-top: 6px;
    color: #77837e;
    font-size: 9.5px;
    line-height: 1.5;
}

/* ---------- 功勋兑换商店 ---------- */
.merit-shop-page { padding-bottom: 4px; }
.merit-shop-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    padding: 9px 10px;
    border: 1px solid #3a3226;
    border-radius: 8px;
    background: #111119;
}
.merit-shop-title { color: #f0c674; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.merit-shop-sub { margin-top: 3px; color: #817767; font-size: 10.5px; }
.merit-shop-balance { text-align: right; flex: none; }
.merit-shop-balance span { display: block; color: #8b8474; font-size: 10.5px; }
.merit-shop-balance b { display: block; margin-top: 2px; color: #f0c674; font-size: 17px; }
.merit-shop-summary { color: #8b8474; font-size: 11px; line-height: 1.65; margin-bottom: 4px; }
.merit-shop-summary b { color: #d8c795; }
.merit-shop-note {
    margin-bottom: 9px;
    padding: 6px 8px;
    border: 1px dashed #3a3226;
    border-radius: 5px;
    color: #8f856f;
    font-size: 10.5px;
    line-height: 1.6;
}
.merit-shop-group {
    margin-bottom: 9px;
    border: 1px solid #2a3a4a;
    border-radius: 7px;
    overflow: hidden;
    background: #101017;
}
.merit-shop-group.locked { opacity: .62; }
.merit-shop-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
    border-bottom: 1px solid #262633;
    background: #15151f;
    color: #d8c795;
    font-size: 12px;
}
.merit-shop-group-head b { color: #e8c46a; font-size: 12.5px; }
.merit-shop-group-head span { color: #8b8474; font-size: 10.5px; }
.merit-shop-group:not(.locked) .merit-shop-group-head span { color: #8ed49a; }
.merit-shop-list { padding: 1px 0; }
.merit-shop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 7px 9px;
    border-bottom: 1px dashed #22222c;
}
.merit-shop-item:last-child { border-bottom: 0; }
.merit-shop-item.disabled { opacity: .55; }
.merit-shop-item-main { min-width: 0; flex: 1; }
.merit-shop-item-name { color: #d9cdb0; font-size: 12.5px; line-height: 1.45; }
.merit-shop-count { margin-left: 4px; color: #7c7464; font-size: 10.5px; }
.merit-shop-item-meta { margin-top: 2px; min-height: 13px; font-size: 10px; }
.merit-shop-quality { margin-right: 6px; }
.merit-shop-quality.q1 { color: #cfc9b8; }
.merit-shop-quality.q2 { color: #8ed49a; }
.merit-shop-quality.q3 { color: #7ab7e6; }
.merit-shop-quality.q4 { color: #e3a55f; }
.merit-shop-quality.q5 { color: #ffca6e; }
.merit-shop-quality.q6 { color: #ff8171; font-weight: 600; }
.merit-shop-reason { color: #a57468; }
.merit-shop-item-side { flex: none; display: flex; align-items: center; gap: 8px; }
.merit-shop-price { color: #f0c674; font-size: 11.5px; white-space: nowrap; }
.merit-buy-btn {
    flex: none;
    height: 26px;
    padding: 0 9px;
    border: 1px solid #6b5a32;
    border-radius: 5px;
    background: #241f17;
    color: #e8c46a;
    font-size: 10.5px;
    cursor: pointer;
}
.merit-buy-btn:disabled {
    border-color: #33313a;
    color: #6b675d;
    background: #181820;
    cursor: not-allowed;
}
.merit-buy-btn:active:not(:disabled) { transform: translateY(1px); }
.merit-shop-foot {
    margin-top: 3px;
    color: #5f594a;
    font-size: 10.5px;
    line-height: 1.6;
    text-align: center;
}
/* ================= 装备详情：器魂流光卡 =================
 * 只作用于普通装备详情主面板，不影响装备名、品质标签和强化/打磨详情页。 */
.equip-detail-main .eqd-stat-group { margin-top: 2px; }
.equip-detail-main .eqd-stat {
    align-items: center;
    padding: 5px 7px 5px 8px;
    margin-bottom: 3px;
    border-bottom: 0;
    border-left: 2px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 62%, transparent);
}
.equip-detail-main .eqd-stat > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a89f8d;
    font-size: 12px;
}
.equip-detail-main .eqd-stat > b {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.equip-detail-main .eqd-sym {
    font-style: normal;
    font-size: 10px;
    text-shadow: 0 0 7px currentColor;
}
.equip-detail-main .eqd-atk { border-left-color: rgba(255, 203, 107, .58); }
.equip-detail-main .eqd-def { border-left-color: rgba(123, 215, 255, .55); }
.equip-detail-main .eqd-min { border-left-color: rgba(155, 234, 155, .55); }
.equip-detail-main .eqd-dur { border-left-color: rgba(191, 184, 207, .38); }
.equip-detail-main .eqd-atk .eqd-sym { color: #ffcb6b; }
.equip-detail-main .eqd-def .eqd-sym { color: #7bd7ff; }
.equip-detail-main .eqd-min .eqd-sym { color: #9bea9b; }
.equip-detail-main .eqd-dur .eqd-sym { color: #bdb5cf; }
.equip-detail-main .eqd-atk > b { color: #ffe1a2; text-shadow: 0 0 8px rgba(255, 199, 93, .2); }
.equip-detail-main .eqd-def > b { color: #c3eaff; text-shadow: 0 0 8px rgba(111, 212, 255, .16); }
.equip-detail-main .eqd-min > b { color: #c8ffbb; text-shadow: 0 0 8px rgba(141, 234, 137, .16); }
.equip-detail-main .eqd-dur > b { color: #ded7e9; font-weight: 600; }

/* 器铭：恢复金色流光卡片，但位置保持在套装标题上方 */
.eqd-desc {
    margin: 10px 0 11px;
    padding: 8px 10px 9px 10px;
    border: 1px solid rgba(255, 199, 112, .26);
    border-left: 3px solid rgba(255, 199, 112, .78);
    border-radius: 0 8px 8px 0;
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 194, 99, .12), transparent 56%),
        linear-gradient(180deg, rgba(47, 37, 27, .58), rgba(24, 21, 31, .46));
    box-shadow: inset 0 0 18px rgba(255, 183, 92, .035), 0 0 12px rgba(255, 173, 80, .035);
}
.eqd-desc-head {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e6c47c;
    font-size: 9.5px;
    letter-spacing: 2px;
}
.eqd-desc-star {
    color: #ffd36a;
    font-size: 11px;
    line-height: 1;
    text-shadow: 0 0 7px rgba(255, 193, 82, .6);
}
.eqd-desc-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 214, 138, .38), transparent);
}
.eqd-desc-text {
    margin-top: 5px;
    color: #f0e4cb;
    font-size: 13px;
    line-height: 1.75;
    text-align: justify;
    text-shadow: 0 0 9px rgba(255, 217, 150, .1);
}

/* 折叠：锻造与镶嵌详情 */
.equip-detail-main .eqd-fold {
    margin-top: 2px;
    border: 1px solid rgba(255, 201, 112, .22);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(48, 39, 25, .34), rgba(23, 20, 31, .42));
    overflow: hidden;
}
.equip-detail-main .eqd-fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.equip-detail-main .eqd-fold summary::-webkit-details-marker { display: none; }
.equip-detail-main .eqd-fold-title {
    color: #dcc28c;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .6px;
}
.equip-detail-main .eqd-fold-title i {
    margin-right: 4px;
    color: #ffd36a;
    font-style: normal;
    text-shadow: 0 0 7px rgba(255, 193, 82, .5);
}
.equip-detail-main .eqd-fold-tail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #897e69;
    font-size: 10px;
}
.equip-detail-main .eqd-fold-caret {
    display: inline-block;
    color: #ffd36a;
    font-style: normal;
    transition: transform .2s ease;
}
.equip-detail-main .eqd-fold[open] .eqd-fold-caret { transform: rotate(180deg); }
.equip-detail-main .eqd-fold[open] summary {
    border-bottom: 1px solid rgba(255, 201, 112, .14);
    background: linear-gradient(90deg, rgba(255, 191, 90, .07), transparent 72%);
}
.equip-detail-main .eqd-fold-body {
    padding: 5px 9px 8px;
    animation: eqdFoldIn .2s ease;
}
@keyframes eqdFoldIn {
    from { opacity: .2; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
.equip-detail-main .eqd-fold-row {
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 218, 155, .1);
    color: #9a907c;
    font-size: 12px;
}
.equip-detail-main .eqd-fold-row:last-child { border-bottom: 0; }
.equip-detail-main .eqd-fold-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
}
.equip-detail-main .eqd-label-sym {
    font-style: normal;
    font-size: 9px;
    text-shadow: 0 0 6px currentColor;
}
.equip-detail-main .eqd-label-sym.quality { color: #9dccff; }
.equip-detail-main .eqd-label-sym.strong { color: #ffcb6b; }
.equip-detail-main .eqd-label-sym.polish { color: #9bea9b; }
.equip-detail-main .eqd-label-sym.special { color: #ff9fc9; }
.equip-detail-main .eqd-label-sym.extra { color: #c5a3ff; }
.equip-detail-main .eqd-label-sym.hole { color: #8fe6ff; }
.equip-detail-main .eqd-percent {
    background-image: linear-gradient(90deg, #ffe2a0 0%, #ffc0da 52%, #9dccff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.equip-detail-main .eqd-none {
    color: #6f6759;
    font-size: 11px;
    font-weight: 400;
}
.equip-detail-main .eqd-special {
    color: #ffb6d2;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 131, 186, .2);
}
.equip-detail-main .eqd-extra-text { color: #c9b3ff; font-weight: 600; }
.equip-detail-main .eqd-hole-text { color: #8fe6ff; font-weight: 600; }
.equip-detail-main .eqd-statrow {
    flex-wrap: wrap;
    gap: 4px 6px;
}
.equip-detail-main .eqd-statrow > span { width: 100%; }
.equip-detail-main .eqd-statrow > b {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    text-align: left;
}
.equip-detail-main .eqd-pill-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 6px;
    width: 100%;
    max-width: 100%;
}
.equip-detail-main .enh-stat {
    padding: 2px 5px;
    background: rgba(255, 255, 255, .035);
}
.equip-detail-main .enh-stat b { font-size: 10.5px; }
.equip-detail-main .eqd-gem-row {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(143, 230, 255, .1);
    font-size: 11.5px;
}
.equip-detail-main .eqd-gem-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9eab9d;
}
.equip-detail-main .eqd-gem-sym {
    color: #8fe6ff;
    font-style: normal;
    font-size: 9px;
    text-shadow: 0 0 6px rgba(143, 230, 255, .55);
}
.equip-detail-main .eqd-gem-row > b { color: #cfd8d4; font-weight: 500; }
.equip-detail-main .eqd-fold-close { display: none; }
.equip-detail-main .eqd-fold[open] .eqd-fold-open { display: none; }
.equip-detail-main .eqd-fold[open] .eqd-fold-close { display: inline; color: #dcc28c; }
.equip-detail-main .eqd-fold summary:active .eqd-fold-title { color: #ffe2a0; }
/* 装备详情窗口锁定：高度由打开时的折叠状态固定，展开/收起不再变长变短 */
#item-modal .modal-card.equip-detail-fixed {
    max-height: 86vh;
}

/* 主属性两列：攻击/防御、体力/敏捷成对排列，耐久单独占一整行 */
.equip-detail-main .eqd-stat-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 6px;
}
.equip-detail-main .eqd-stat {
    min-width: 0;
    margin-bottom: 0;
}
.equip-detail-main .eqd-stat > span { min-width: 0; }
.equip-detail-main .eqd-dur { grid-column: 1 / -1; }
.equip-detail-main .eqd-hp { border-left-color: rgba(255, 138, 184, .56); }
.equip-detail-main .eqd-hp .eqd-sym { color: #ff8ab8; }
.equip-detail-main .eqd-hp > b { color: #ffd1e1; text-shadow: 0 0 8px rgba(255, 117, 166, .18); }
/* 特殊属性合并宝石词条 */
.equip-detail-main .eqd-special-row { align-items: flex-start; }
.equip-detail-main .eqd-special-row > b {
    min-width: 0;
    max-width: 74%;
    text-align: right;
}
.equip-detail-main .eqd-special-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px 5px;
}
.equip-detail-main .eqd-gem-attr {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 4px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 4px;
    background: rgba(255, 255, 255, .035);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}
.equip-detail-main .eqd-gem-attr i {
    font-style: normal;
    font-size: 9px;
    text-shadow: 0 0 6px currentColor;
}
.equip-detail-main .eqd-gem-attr.atk { color: #ffd36a; border-color: rgba(255, 203, 107, .22); }
.equip-detail-main .eqd-gem-attr.min { color: #c7ffb5; border-color: rgba(155, 234, 155, .22); }
.equip-detail-main .eqd-gem-attr.ward { color: #9fe8ff; border-color: rgba(123, 215, 255, .22); }
.equip-detail-main .eqd-gem-attr.special { color: #ffb6d2; border-color: rgba(255, 159, 201, .22); }

/* 镶嵌孔：三枚符号，不显示孔 1 / 孔 2 / 孔 3 */
.equip-detail-main .eqd-socket-value {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.equip-detail-main .eqd-sockets {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.equip-detail-main .eqd-socket {
    display: inline-block;
    width: 15px;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}
.equip-detail-main .eqd-socket.opened {
    color: #8fe6ff;
    text-shadow: 0 0 7px rgba(143, 230, 255, .62);
}
.equip-detail-main .eqd-socket.locked {
    color: #61596d;
    text-shadow: none;
}
.equip-detail-main .eqd-socket.filled.atk { color: #ffcb6b; text-shadow: 0 0 8px rgba(255, 193, 82, .62); }
.equip-detail-main .eqd-socket.filled.min { color: #9bea9b; text-shadow: 0 0 8px rgba(141, 234, 137, .62); }
.equip-detail-main .eqd-socket.filled.ward { color: #7bd7ff; text-shadow: 0 0 8px rgba(105, 212, 255, .62); }
.equip-detail-main .eqd-socket.filled.special { color: #ff9fc9; text-shadow: 0 0 8px rgba(255, 130, 186, .62); }
.equip-detail-main .eqd-socket-legend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #7a7186;
    font-size: 8.5px;
    line-height: 1.3;
    letter-spacing: .2px;
}
.equip-detail-main .eqd-socket-legend i {
    margin-left: 3px;
    font-style: normal;
    font-size: 9px;
}
.equip-detail-main .eqd-socket-legend .opened { color: #6b9aa5; }
.equip-detail-main .eqd-socket-legend .locked { color: #5d566a; }
.equip-detail-main .eqd-socket-legend .filled { color: #a48b55; }
/* 品质加成移到主属性上方：金蓝流光分隔条 */
.equip-detail-main .eqd-quality-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
    margin: 2px 0 7px;
    padding: 6px 8px;
    border: 1px solid rgba(157, 204, 255, .18);
    border-left: 2px solid rgba(255, 203, 107, .55);
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 199, 112, .085), rgba(157, 204, 255, .05) 62%, transparent);
}
.equip-detail-main .eqd-quality-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    color: #b8af9c;
    font-size: 12px;
}
.equip-detail-main .eqd-quality-row > b {
    margin-left: auto;
    text-align: right;
    font-size: 11.5px;
    line-height: 1.5;
}
.equip-detail-main .eqd-quality-row .eqd-percent { font-size: 11.5px; }

/* ============================================================
   时空裂缝：独立全屏棋盘
   ============================================================ */
.rift-screen {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 12px;
    box-sizing: border-box;
    color: #e3f2ff;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(73, 146, 194, .22), transparent 56%),
        radial-gradient(ellipse at 10% 90%, rgba(84, 70, 160, .18), transparent 60%),
        linear-gradient(160deg, #0d1523, #111d2d 48%, #0b1420);
    overflow: hidden;
    font-family: inherit;
}

.rift-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: none;
}
.rift-title-wrap { min-width: 0; }
.rift-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a6e7ff;
    font-size: clamp(17px, 2.1vw, 23px);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 16px rgba(94, 202, 255, .45);
}
.rift-subtitle {
    margin-top: 3px;
    color: #8ea9bd;
    font-size: 11px;
    letter-spacing: .3px;
}
.rift-timer-box {
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
}
.rift-countdown {
    color: #ffd98a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 191, 74, .28);
}
.rift-extend {
    flex: none;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 205, 112, .62);
    background: linear-gradient(180deg, rgba(120, 84, 32, .82), rgba(72, 50, 22, .9));
    color: #ffe6ad;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.rift-extend:active { transform: scale(.96); }
.rift-extend:disabled {
    opacity: .5;
    cursor: default;
    filter: grayscale(.35);
}

.rift-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    margin: 8px 0 6px;
    padding: 7px 10px;
    border: 1px solid rgba(117, 176, 211, .18);
    border-radius: 6px;
    background: rgba(13, 27, 43, .62);
    color: #b8cee0;
    font-size: 12px;
}
.rift-player-hud {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.rift-player-hud-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d8f4ff;
    font-weight: 600;
}
.rift-player-hud-lv { color: #ffd98a; font-size: 11px; }
.rift-hud-hp-text { color: #c8b7a4; font-size: 11px; }
.rift-hud-hp {
    display: inline-block;
    width: 120px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}
.rift-hud-hp i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #41b98b, #79d9b3);
    transition: width .2s ease;
}
.rift-run-hud { display: flex; gap: 12px; color: #8fa9bc; white-space: nowrap; }
.rift-run-hud b { color: #d8edff; font-weight: 600; }

.rift-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 0;
    padding: 2px 0;
}
.rift-board-wrap {
    position: relative;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.rift-float-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    overflow: visible;
    pointer-events: none;
}
.rift-float {
    position: absolute;
    z-index: 9;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    animation: riftFloatUp 0.9s cubic-bezier(.16, .84, .36, 1) forwards;
}
.rift-float.dmg {
    color: #ffd37a;
    font-size: 17px;
    letter-spacing: .4px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 10px rgba(255, 180, 60, .9);
}
.rift-float.dmg-player {
    color: #ff8787;
    font-size: 16px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 9px rgba(255, 65, 65, .85);
}
.rift-float.loot {
    max-width: min(180px, 38vw);
    padding: 2px 6px;
    border: 1px solid rgba(255, 207, 104, .48);
    border-radius: 4px;
    color: #ffd96c;
    background: rgba(34, 23, 8, .72);
    box-shadow: 0 0 10px rgba(255, 181, 49, .24);
    font-size: 12px;
    letter-spacing: .3px;
    white-space: normal;
    animation: riftLootFloat 6s cubic-bezier(.16, .84, .36, 1) forwards;
}
.rift-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    width: min(92vw, 720px, calc((100vh - 230px) * 1.4));
    min-width: 315px;
}
.rift-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    padding: 4px 3px;
    border-radius: 5px;
    border: 1px solid #3a526b;
    background: rgba(22, 38, 55, .86);
    color: #dceafa;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.1;
    overflow: hidden;
}
.rift-cell.rift-empty {
    border-style: dashed;
    border-color: rgba(67, 94, 118, .42);
    background: rgba(16, 29, 43, .42);
    cursor: pointer;
}
.rift-cell.rift-empty.rift-walkable {
    border-color: rgba(92, 206, 185, .55);
    background: rgba(23, 52, 59, .58);
    box-shadow: inset 0 0 12px rgba(76, 200, 177, .08);
}
.rift-cell.rift-empty.rift-walkable:hover {
    border-color: rgba(129, 230, 211, .9);
    background: rgba(30, 67, 70, .72);
}
.rift-empty-mark { color: #456075; font-size: 15px; }
.rift-cell.rift-walkable .rift-empty-mark { color: #6fbda9; }
.rift-monster {
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.rift-monster.normal { border-color: #48627c; background: linear-gradient(180deg, rgba(31, 54, 76, .95), rgba(22, 39, 57, .96)); }
.rift-monster.elite { border-color: #a77b48; background: linear-gradient(180deg, rgba(63, 44, 37, .95), rgba(42, 31, 36, .96)); }
.rift-monster.boss { border-color: #b85258; background: linear-gradient(180deg, rgba(68, 31, 39, .95), rgba(42, 24, 32, .96)); }
.rift-monster.target {
    border-color: #ffd36f;
    box-shadow: 0 0 0 1px rgba(255, 211, 111, .35), 0 0 14px rgba(255, 191, 70, .25);
}
.rift-monster.hit { animation: riftHit .24s ease; }
.rift-monster:active { transform: scale(.96); }
.rift-monster-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: clamp(10px, 1.15vw, 13px);
    color: #e4edf6;
}
.rift-meta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #a6b8c9;
    font-size: clamp(9px, .85vw, 10px);
    white-space: nowrap;
}
.rift-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(207, 142, 64, .25);
    color: #ffd59b;
    font-size: 9px;
    font-weight: 600;
}
.rift-hpbar {
    display: block;
    width: 86%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}
.rift-hpbar i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c25054, #ee8b72);
}
.rift-player {
    border-color: #69b9ae;
    background: linear-gradient(180deg, rgba(29, 73, 76, .96), rgba(18, 43, 51, .98));
    box-shadow: inset 0 0 16px rgba(86, 218, 196, .12);
}
.rift-player-icon { font-size: 16px; line-height: 1; }
.rift-player-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d4fff7;
    font-weight: 600;
    font-size: clamp(10px, 1.1vw, 12px);
}
.rift-player .rift-hpbar i { background: linear-gradient(90deg, #44b89b, #84e0bd); }

.rift-side {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    max-height: min(62vh, 520px);
    border: 1px solid rgba(105, 156, 190, .2);
    border-radius: 6px;
    background: rgba(12, 24, 37, .68);
    overflow: hidden;
}
.rift-side-title {
    flex: none;
    padding: 7px 9px;
    border-bottom: 1px solid rgba(105, 156, 190, .16);
    color: #9fc9df;
    font-size: 11px;
    letter-spacing: 1px;
}
.rift-log {
    flex: 1;
    overflow-y: auto;
    padding: 6px 9px 8px;
    font-size: 11px;
    line-height: 1.55;
}
.rift-log-line { margin: 0 0 4px; word-break: break-all; }
.rift-log-line.dim { color: #8ca4b7; }
.rift-log-line.hit { color: #ffd48a; }
.rift-log-line.hurt { color: #ff9d9d; }
.rift-log-line.win { color: #8ce4ae; }
.rift-log-line.gain { color: #f3d48f; }
.rift-log-line.loot { color: #b9dfc2; }
.rift-log-line.loot-gold {
    color: #ffd765;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 174, 41, .34);
}
.rift-log-line.lose { color: #ff8585; }

.rift-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
    padding-top: 7px;
}
.rift-hint {
    color: #7f9aae;
    font-size: 11px;
    line-height: 1.4;
}
.rift-flee {
    flex: none;
    padding: 8px 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 157, 93, .55);
    background: linear-gradient(180deg, rgba(116, 50, 34, .78), rgba(74, 31, 27, .9));
    color: #ffd2ae;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.rift-flee:active { transform: scale(.96); }

@keyframes riftHit {
    0% { transform: translateY(0); filter: brightness(1.4); }
    45% { transform: translateY(-2px); filter: brightness(1.8); }
    100% { transform: translateY(0); filter: brightness(1); }
}

@keyframes riftFloatUp {
    0% { opacity: 0; transform: translate(-50%, -35%) scale(.82); }
    18% { opacity: 1; transform: translate(-50%, -60%) scale(1.12); }
    100% { opacity: 0; transform: translate(-50%, -145%) scale(1.02); }
}

@keyframes riftLootFloat {
    0% { opacity: 0; transform: translate(-50%, -35%) scale(.88); }
    8% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
    90% { opacity: 1; transform: translate(-50%, -68%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -88%) scale(1); }
}

@media (max-width: 900px) {
    .rift-screen { padding: 8px 9px 10px; }
    .rift-main { flex-direction: column; gap: 8px; justify-content: flex-start; }
    .rift-board { width: min(94vw, 520px); min-width: 280px; }
    .rift-side { flex: 0 0 auto; width: 100%; min-height: 248px; max-height: 280px; }
    .rift-log { font-size: 10px; min-height: 200px; }
    .rift-run-hud { gap: 8px; font-size: 11px; }
    .rift-hud-hp { width: 84px; }
}
@media (max-height: 640px) and (min-width: 901px) {
    .rift-screen { padding-top: 6px; padding-bottom: 7px; }
    .rift-board { width: min(86vw, 560px, calc((100vh - 150px) * 1.4)); }
    .rift-side { max-height: 54vh; }
}

/* ============================================================
 * 副本专用反馈层（rs415）
 * 深色半透明金边弹窗 / 橙粉青渐变发光标题 / 彩色属性胶囊 / 星芒
 * 光效克制，不使用背景模糊
 * ============================================================ */

.modal-card.dungeon-skin {
    position: relative;
    background:
        radial-gradient(ellipse at 16% 0%, rgba(255, 170, 112, .075), transparent 36%),
        radial-gradient(ellipse at 84% 5%, rgba(118, 226, 240, .055), transparent 34%),
        linear-gradient(168deg, rgba(18, 14, 24, .975), rgba(24, 18, 32, .965) 55%, rgba(10, 10, 17, .985));
    border: 1px solid rgba(212, 173, 94, .62);
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 157, .05),
        inset 0 1px 0 rgba(255, 222, 155, .12),
        0 18px 52px rgba(0, 0, 0, .56),
        0 0 24px rgba(201, 161, 74, .09);
    animation: dungeonCardIn .26s cubic-bezier(.2, .8, .25, 1);
}
.modal-card.dungeon-skin::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(218, 180, 102, .14);
    border-radius: 8px;
    pointer-events: none;
    z-index: 3;
}
.modal-card.dungeon-skin::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 1px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(255, 197, 120, .68), rgba(126, 232, 255, .48), transparent);
    opacity: .6;
}
@keyframes dungeonCardIn {
    from { transform: translateY(10px) scale(.982); }
    60% { transform: translateY(-1px) scale(1.004); }
    to { transform: translateY(0) scale(1); }
}
.modal-card.dungeon-skin .modal-head {
    position: relative;
    z-index: 4;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(212, 174, 97, .26);
    background: linear-gradient(90deg, rgba(231, 156, 103, .055), rgba(122, 208, 213, .035), rgba(19, 16, 26, 0));
}
.modal-card.dungeon-skin #modal-title,
.modal-card.dungeon-skin #item-modal-title {
    display: flex;
    align-items: center;
    color: #f8c7a2;
    background: linear-gradient(90deg, #ffb36d 0%, #ff8fae 42%, #84e8ee 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 152, 184, .10)) drop-shadow(0 0 8px rgba(112, 220, 234, .08));
    letter-spacing: .045em;
}
.modal-card.dungeon-skin #modal-title::before,
.modal-card.dungeon-skin #item-modal-title::before {
    content: '✦';
    margin-right: 8px;
    color: #ffd185;
    -webkit-text-fill-color: #ffd185;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(255, 191, 108, .32);
}
.modal-card.dungeon-skin #modal-title::after,
.modal-card.dungeon-skin #item-modal-title::after {
    content: '✧';
    margin-left: 8px;
    color: #8fe6ee;
    -webkit-text-fill-color: #8fe6ee;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(118, 224, 236, .26);
}
@keyframes dungeonTitleFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.modal-card.dungeon-skin .modal-close {
    position: relative;
    z-index: 5;
    border-color: rgba(218, 180, 103, .3);
    background: rgba(31, 25, 39, .74);
    color: #d8c8a8;
}
.modal-card.dungeon-skin .modal-close:active {
    transform: translateY(1px) scale(.97);
    filter: brightness(.9);
}
.modal-card.dungeon-skin .modal-body {
    position: relative;
    z-index: 2;
    padding: 13px 15px 15px;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 207, 136, .035) 0 1px, transparent 1.6px),
        radial-gradient(circle at 76% 62%, rgba(126, 232, 255, .028) 0 1px, transparent 1.6px),
        linear-gradient(180deg, rgba(18, 16, 27, .36), rgba(9, 9, 16, .08));
    background-size: 47px 47px, 61px 61px, auto;
}
.modal-card.dungeon-skin .modal-foot {
    position: relative;
    z-index: 2;
    gap: 10px;
    border-top: 1px solid rgba(212, 174, 97, .2);
    background: linear-gradient(180deg, rgba(17, 14, 24, .12), rgba(8, 8, 14, .46));
}
.dungeon-skin-body { color: #c8bfa8; }
.dungeon-skin-body p { line-height: 1.9; }
.ds-star {
    display: inline-block;
    margin-right: 6px;
    font-size: 11px;
    letter-spacing: .08em;
    background: linear-gradient(90deg, #ffbf7b, #ff9fbb 48%, #8fe6ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 7px rgba(255, 180, 130, .14);
}

/* 彩色属性胶囊 */
.dungeon-skin-body .detail-row.dungeon-stat-row {
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    padding: 5px 11px 5px 6px;
    border: 1px solid var(--ds-line, rgba(201, 174, 106, .24));
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ds-soft, rgba(201, 174, 106, .08)), rgba(255, 255, 255, .022) 68%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.dungeon-skin-body .detail-row.dungeon-stat-row .dsr-label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d5c9aa;
}
.dungeon-skin-body .detail-row.dungeon-stat-row .dsr-ico {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-line, rgba(201, 174, 106, .3));
    background: var(--ds-soft, rgba(201, 174, 106, .1));
    color: var(--ds-tone, #e6c27a);
    font-size: 10.5px;
    font-style: normal;
    line-height: 1;
    text-shadow: 0 0 7px rgba(255, 220, 160, .14);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, .025);
}
.dungeon-skin-body .detail-row.dungeon-stat-row > b {
    margin-left: auto;
    white-space: nowrap;
    color: #f0c674;
    font-weight: 700;
}
.dungeon-skin-body .detail-row.dungeon-stat-row > b.dsr-up {
    color: #8ff0a0;
    text-shadow: 0 0 8px rgba(86, 236, 122, .24);
}
.dsr-tone-hp { --ds-tone: #ff8d9d; --ds-soft: rgba(255, 96, 126, .12); --ds-line: rgba(255, 120, 140, .34); }
.dsr-tone-atk { --ds-tone: #ff9b72; --ds-soft: rgba(255, 122, 70, .12); --ds-line: rgba(255, 134, 86, .34); }
.dsr-tone-def { --ds-tone: #7fbdff; --ds-soft: rgba(88, 156, 255, .12); --ds-line: rgba(108, 168, 255, .34); }
.dsr-tone-agi { --ds-tone: #76e2dc; --ds-soft: rgba(86, 224, 214, .11); --ds-line: rgba(102, 218, 210, .32); }
.dsr-tone-exp { --ds-tone: #b5a6ff; --ds-soft: rgba(150, 132, 255, .12); --ds-line: rgba(160, 146, 255, .34); }
.dsr-tone-money { --ds-tone: #ffd56d; --ds-soft: rgba(255, 199, 82, .12); --ds-line: rgba(242, 193, 92, .34); }
.dsr-tone-level { --ds-tone: #d8a6ff; --ds-soft: rgba(196, 122, 255, .11); --ds-line: rgba(202, 140, 255, .32); }
.dsr-tone-potion { --ds-tone: #8fe6a6; --ds-soft: rgba(92, 224, 132, .11); --ds-line: rgba(112, 220, 144, .32); }
.dsr-tone-pet { --ds-tone: #ff9dc8; --ds-soft: rgba(255, 118, 176, .12); --ds-line: rgba(255, 134, 186, .34); }
.dsr-tone-stamina { --ds-tone: #ffc071; --ds-soft: rgba(255, 174, 82, .12); --ds-line: rgba(242, 180, 98, .34); }
.dsr-tone-place { --ds-tone: #85c4ff; --ds-soft: rgba(104, 170, 255, .1); --ds-line: rgba(118, 178, 255, .3); }
.dsr-tone-loot { --ds-tone: #8fe6a6; --ds-soft: rgba(92, 224, 132, .12); --ds-line: rgba(112, 220, 144, .34); }
.dsr-tone-dur { --ds-tone: #c9c1aa; --ds-soft: rgba(201, 193, 170, .09); --ds-line: rgba(201, 193, 170, .26); }
.dsr-tone-attr { --ds-tone: #9fd1ff; --ds-soft: rgba(120, 190, 255, .1); --ds-line: rgba(130, 190, 255, .3); }
.dsr-tone-count { --ds-tone: #d9c8a0; --ds-soft: rgba(217, 200, 160, .09); --ds-line: rgba(217, 200, 160, .26); }
.dsr-tone-muted { --ds-tone: #e6c27a; --ds-soft: rgba(201, 174, 106, .08); --ds-line: rgba(201, 174, 106, .24); }

/* 说明框与标题 */
.modal-card.dungeon-skin .set-tip {
    border-left: 2px solid rgba(214, 171, 92, .55);
    border-radius: 0 6px 6px 0;
    padding: 8px 10px 8px 12px;
    background: linear-gradient(90deg, rgba(201, 169, 97, .075), rgba(201, 169, 97, .01));
    color: #bfb296;
}
.modal-card.dungeon-skin .set-tip::before {
    content: '✦ ';
    color: #dcb672;
    text-shadow: 0 0 6px rgba(220, 182, 114, .2);
}
.modal-card.dungeon-skin .dungeon-warn-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #ffc08a;
    background: linear-gradient(90deg, #ffb36d, #ff96b8 45%, #8fe6ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 150, 118, .18));
}
.modal-card.dungeon-skin .dungeon-warn-title::before {
    content: '✦';
    -webkit-text-fill-color: #ffd185;
    color: #ffd185;
    font-size: 13px;
}
.modal-card.dungeon-skin .dungeon-warn-sub { color: #a99b7f; }
.modal-card.dungeon-skin .dungeon-warn-ask {
    margin-top: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(201, 174, 106, .18);
    border-radius: 999px;
    color: #d9c49c;
    background: rgba(201, 174, 106, .055);
}
.modal-card.dungeon-skin .dungeon-warn-ask::before { content: '✧ '; color: #8fe6ee; }

/* 掉落条目 / 结算物品 */
.modal-card.dungeon-skin .ddr-item,
.modal-card.dungeon-skin .dstory-loot-item {
    padding: 3px 9px;
    border: 1px solid rgba(240, 196, 92, .38);
    border-radius: 999px;
    color: #f7e6bd;
    background: linear-gradient(180deg, rgba(240, 196, 92, .16), rgba(240, 196, 92, .07));
    box-shadow: inset 0 1px 0 rgba(255, 236, 182, .08);
}
.modal-card.dungeon-skin .dungeon-detail-row {
    border-bottom: 1px dashed rgba(210, 176, 104, .14) !important;
}
.modal-card.dungeon-skin .dungeon-detail-row .ddr-src { color: #e8c46a; }
.modal-card.dungeon-skin .dungeon-detail-row .ddr-meta span { color: #9f937c; }
@keyframes dungeonRewardIn {
    from { opacity: 0; transform: translateY(4px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗按钮：星芒 + 金边 + 下沉触感 */
.modal-card.dungeon-skin .modal-foot .act-btn {
    position: relative;
    overflow: hidden;
    min-height: 42px;
    border: 1px solid rgba(206, 167, 92, .48);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(82, 60, 33, .44), rgba(34, 27, 22, .78));
    color: #f0ddb0;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .38), 0 6px 14px rgba(0, 0, 0, .18);
    transition: transform .12s cubic-bezier(.2, .7, .3, 1.2), box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}
.modal-card.dungeon-skin .modal-foot .act-btn::before {
    content: '✦';
    margin-right: 6px;
    color: #e8bf6e;
    text-shadow: 0 0 7px rgba(232, 191, 110, .26);
}
.modal-card.dungeon-skin .modal-foot .act-btn:hover {
    border-color: rgba(238, 201, 125, .74);
    color: #ffe8b9;
    filter: brightness(1.04);
}
.modal-card.dungeon-skin .modal-foot .act-btn:active,
.modal-card.dungeon-skin .modal-foot .act-btn.dungeon-tapped,
.modal-card.dungeon-skin .modal-foot .act-btn.is-cooling {
    transform: translateY(3px) scale(.992);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), inset 0 2px 9px rgba(0, 0, 0, .48);
    filter: brightness(.95);
}
.modal-card.dungeon-skin .modal-foot .act-btn.is-cooling::before {
    animation: dungeonBtnStar .8s ease-in-out infinite alternate;
}
@keyframes dungeonBtnStar {
    from { opacity: .5; } to { opacity: 1; }
}

/* 副本页按钮：统一短触感 */
.dungeon-tapped { animation: dungeonTapFlash .3s ease-out; }
@keyframes dungeonTapFlash {
    0% { filter: brightness(1.28) saturate(1.08); }
    100% { filter: brightness(1) saturate(1); }
}
.dstory-option {
    position: relative;
    overflow: hidden;
    align-items: center;
    min-height: 60px;
    padding: 11px 42px 11px 13px;
    border: 1px solid rgba(218, 178, 100, .44);
    border-radius: 10px;
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 184, 98, .13), transparent 36%),
        linear-gradient(100deg, rgba(45, 34, 35, .94), rgba(18, 15, 24, .91));
    box-shadow:
        0 3px 0 rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 231, 176, .06),
        inset 0 0 0 1px rgba(255, 222, 160, .035);
    transition:
        transform .14s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        filter .16s ease,
        background .18s ease;
}
.dstory-option::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 220, 152, .085);
    border-radius: 6px;
    pointer-events: none;
}
.dstory-option:hover {
    border-color: rgba(239, 196, 112, .72);
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 193, 108, .14), transparent 40%),
        linear-gradient(100deg, rgba(54, 40, 38, .95), rgba(21, 17, 27, .92));
    box-shadow:
        0 5px 16px rgba(0, 0, 0, .24),
        0 0 16px rgba(239, 187, 96, .07),
        inset 0 1px 0 rgba(255, 236, 188, .08);
    transform: translateY(-1px);
}
.dstory-option.primary { border-color: rgba(226, 185, 104, .52); }
.dstory-option.danger {
    border-color: rgba(198, 96, 84, .55);
    background:
        radial-gradient(circle at 0% 50%, rgba(198, 78, 66, .14), transparent 38%),
        linear-gradient(100deg, rgba(48, 29, 30, .95), rgba(21, 14, 19, .92));
}
.dstory-option.danger:hover { border-color: rgba(232, 130, 111, .78); }
.dstory-option.subtle { opacity: .84; }
.dstory-key {
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid rgba(220, 178, 96, .45);
    border-radius: 8px;
    color: #ffe3a1;
    font-size: 15px;
    background: linear-gradient(180deg, rgba(91, 67, 38, .32), rgba(26, 21, 22, .55));
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 188, .1),
        0 0 0 1px rgba(255, 220, 150, .03) inset,
        0 0 10px rgba(210, 162, 72, .05);
}
.dstory-main strong {
    color: #f3e6c7;
    font-size: 14.5px;
    line-height: 1.55;
    letter-spacing: .01em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .32);
}
.dstory-spark {
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
    font-style: normal;
    vertical-align: 1px;
    background: linear-gradient(90deg, #ffbd78, #ff9fbc 50%, #8fe6ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 175, 140, .2));
}
.dstory-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding-bottom: 1px;
    transform: translateY(-50%);
    border: 1px solid rgba(226, 185, 108, .22);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 225, 160, .12), rgba(20, 16, 22, .34));
    color: rgba(255, 218, 140, .62);
    font-size: 17px;
    line-height: 1;
    text-shadow: 0 0 7px rgba(232, 191, 110, .16);
    transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.dstory-option:hover .dstory-arrow {
    transform: translate(2px, -50%);
    border-color: rgba(255, 222, 148, .5);
    background: radial-gradient(circle at 50% 30%, rgba(255, 231, 178, .18), rgba(32, 24, 24, .42));
    color: #ffe6ad;
}
.dstory-option.dungeon-tapped {
    border-color: rgba(255, 219, 139, .86);
    box-shadow:
        0 0 0 1px rgba(255, 219, 139, .22),
        0 0 20px rgba(243, 187, 92, .16),
        inset 0 0 22px rgba(255, 210, 120, .08),
        0 3px 0 rgba(0, 0, 0, .24);
}
.dstory-option.dungeon-tapped .dstory-arrow {
    transform: translate(4px, -50%);
    border-color: rgba(255, 230, 170, .68);
    background: radial-gradient(circle at 50% 30%, rgba(255, 235, 180, .24), rgba(42, 29, 24, .48));
    color: #fff0c0;
}
.dstory-option.pressed {
    box-shadow:
        0 0 0 1px rgba(255, 219, 139, .2),
        inset 0 2px 9px rgba(0, 0, 0, .36),
        inset 0 0 24px rgba(255, 206, 116, .07);
}
@keyframes dungeonOptionIn {
    from { transform: translateX(-4px); }
    to { transform: translateX(0); }
}
.dstory-options .dstory-option { animation: dungeonOptionIn .26s ease-out; }
.dstory-option::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(105deg, rgba(255, 230, 171, .24), rgba(255, 255, 255, .04) 38%, transparent 68%),
        radial-gradient(circle at 16% 50%, rgba(255, 229, 168, .2), transparent 58%);
}
.dstory-option.dungeon-tapped::after { animation: dungeonOptionGlow .32s ease-out; }
@keyframes dungeonOptionGlow {
    0% { opacity: .85; }
    100% { opacity: 0; }
}
.dstory-option:active,
.dstory-option.pressed {
    border-color: rgba(255, 219, 139, .82);
    transform: translateY(2px) scale(.993);
    filter: brightness(.97);
    box-shadow:
        0 0 0 1px rgba(255, 219, 139, .2),
        0 0 18px rgba(243, 187, 92, .14),
        inset 0 2px 9px rgba(0, 0, 0, .36);
}
.dstory-option .dstory-key {
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 188, .1),
        0 0 0 1px rgba(255, 220, 150, .03) inset,
        0 0 10px rgba(210, 162, 72, .05);
}
.dstory-leave { transition: transform .12s ease, filter .12s ease, color .16s ease, border-color .16s ease; }
.dstory-leave:active,
.dstory-leave.pressed {
    transform: translateY(1px);
    filter: brightness(.92);
}
.dungeon-fight {
    background: linear-gradient(180deg, #5a222b, #36131b);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .32), 0 0 14px rgba(181, 75, 85, .1);
}
.dungeon-fight:active,
.dungeon-fight.pressed {
    transform: translateY(2px) scale(.993);
    box-shadow: inset 0 2px 9px rgba(0, 0, 0, .4);
    filter: brightness(.9);
}
.dungeon-log .dl-line {
    animation: dungeonLogIn .22s ease-out;
}
@keyframes dungeonLogIn {
    from { transform: translateX(-3px); }
    to { transform: translateX(0); }
}
.dungeon-log .dl-line.gain { text-shadow: 0 0 7px rgba(126, 224, 133, .16); }

/* ============================================================
 * 副本掉落动画
 * ============================================================ */
.dungeon-drop-layer {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}
.dungeon-drop-layer.hidden { display: none; }
.dungeon-drop-layer.show { opacity: 1; }
.ddrop-stage {
    position: relative;
    width: auto;
    min-width: 258px;
    max-width: min(92vw, 440px);
    padding: 16px 18px 18px;
    border: 1px solid rgba(218, 180, 102, .34);
    border-radius: 14px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 200, 128, .1), transparent 42%),
        linear-gradient(165deg, rgba(26, 21, 31, .965), rgba(10, 9, 16, .95));
    box-shadow:
        0 0 0 1px rgba(255, 228, 174, .045) inset,
        0 14px 34px rgba(0, 0, 0, .5),
        0 0 18px rgba(238, 172, 92, .07);
}
.ddrop-stage::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 221, 154, .09);
    border-radius: 10px;
    pointer-events: none;
}
.ddrop-beam {
    position: absolute;
    left: 50%;
    top: -72px;
    width: 230px;
    height: 230px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 213, 132, .16), rgba(255, 175, 112, .05) 44%, transparent 68%);
    pointer-events: none;
}
.ddrop-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 4px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .14em;
    background: linear-gradient(90deg, #ffbd78 0%, #ff9fbc 42%, #8fe6ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 173, 122, .22));
}
.ddrop-source {
    position: relative;
    margin-top: 4px;
    color: #bda77f;
    font-size: 11.5px;
    letter-spacing: .06em;
}
.ddrop-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
}
.ddrop-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px 7px 9px;
    border: 1px solid rgba(218, 180, 102, .46);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 28, 34, .94), rgba(20, 16, 24, .92));
    color: #f1dfb8;
    font-size: 12.5px;
    line-height: 1.35;
    box-shadow:
        0 5px 14px rgba(0, 0, 0, .32),
        inset 0 1px 0 rgba(255, 233, 179, .08);
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .3s ease, transform .48s cubic-bezier(.18, .82, .28, 1);
}
.ddrop-ico {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: rgba(218, 180, 102, .11);
    border: 1px solid rgba(218, 180, 102, .3);
}
.ddrop-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddrop-count { color: #8ff0a0; font-weight: 800; }
.ddrop-spark {
    position: absolute;
    right: 7px;
    top: -6px;
    color: #ffe0a0;
    font-size: 9px;
    font-style: normal;
    opacity: 0;
    animation: ddropSpark 1.2s ease-out infinite;
}
.ddrop-chip { position: relative; }
@keyframes ddropChip {
    0% { opacity: 0; transform: translateY(-42px) scale(.84); }
    16% { opacity: 1; transform: translateY(5px) scale(1.035); }
    28% { transform: translateY(0) scale(1); }
    78% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-9px) scale(.985); }
}
@keyframes ddropSpark {
    0%, 100% { opacity: 0; transform: scale(.7) rotate(0deg); }
    45% { opacity: .9; transform: scale(1.05) rotate(18deg); }
}
@keyframes ddropTitleIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.ddrop-chip.rarity-3 { border-color: rgba(106, 168, 255, .62); }
.ddrop-chip.rarity-4 { border-color: rgba(176, 111, 214, .72); box-shadow: 0 0 14px rgba(176, 111, 214, .12), 0 5px 14px rgba(0, 0, 0, .32); }
.ddrop-chip.rarity-5 { border-color: rgba(240, 176, 80, .78); box-shadow: 0 0 16px rgba(240, 176, 80, .16), 0 5px 14px rgba(0, 0, 0, .32); }
.ddrop-chip.dungeon-suit { border-color: rgba(255, 102, 102, .66); }
.ddrop-chip.dungeon-suit .ddrop-name { color: #ff8c8c; }

/* 副本内战斗卡片：延续金边深色卡，不改变战斗信息可读性 */
.battle-modal.in-dungeon .battle-card {
    position: relative;
    border-color: rgba(218, 180, 102, .42);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 186, 116, .045), transparent 38%),
        linear-gradient(165deg, rgba(24, 20, 31, .965), rgba(11, 10, 17, .955));
    box-shadow:
        0 16px 42px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(255, 226, 166, .055) inset,
        0 0 18px rgba(226, 174, 94, .06);
}
.battle-modal.in-dungeon .battle-card::after {
    content: '';
    position: absolute;
    inset: 5px;
    z-index: 0;
    border: 1px solid rgba(226, 185, 108, .12);
    border-radius: 9px;
    pointer-events: none;
}
.battle-modal.in-dungeon .battle-top,
.battle-modal.in-dungeon .battle-self,
.battle-modal.in-dungeon .battle-log,
.battle-modal.in-dungeon .battle-potions,
.battle-modal.in-dungeon .battle-auto-row,
.battle-modal.in-dungeon .battle-actions {
    position: relative;
    z-index: 1;
}
.battle-modal.in-dungeon .battle-log {
    background: linear-gradient(180deg, rgba(15, 13, 22, .9), rgba(10, 9, 16, .94));
    border-top: 1px solid rgba(206, 169, 96, .1);
    border-bottom: 1px solid rgba(206, 169, 96, .08);
}
.battle-modal.in-dungeon .battle-btn,
.battle-modal.in-dungeon .potion-btn,
.battle-modal.in-dungeon .battle-auto-toggle {
    box-shadow: 0 3px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 230, 173, .05);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.battle-modal.in-dungeon .battle-btn:active,
.battle-modal.in-dungeon .potion-btn:active,
.battle-modal.in-dungeon .battle-auto-toggle:active {
    transform: translateY(2px) scale(.993);
    filter: brightness(.92);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .34);
}
.battle-modal.in-dungeon .battle-btn.attack {
    border-color: rgba(224, 163, 96, .68);
    background: linear-gradient(180deg, #4a2b1b, #2e1a12);
    color: #ffd59a;
}
.battle-modal.in-dungeon .battle-btn.potion {
    border-color: rgba(110, 178, 120, .52);
    background: linear-gradient(180deg, #1d3722, #14251a);
}
.battle-modal.in-dungeon .battle-btn.attacking {
    background: linear-gradient(180deg, #6a5520, #473b1a) !important;
    border-color: #e0c05a !important;
}
.ddrop-more { color: #bda77f; font-size: 11.5px; align-self: center; padding: 0 6px; }

/* ================= 江湖信箱 ================= */
.modal-card.mail-card {
    height: min(78vh, 680px);
    max-width: 520px;
}
.mail-head span {
    letter-spacing: 1px;
}
.mail-toolbar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #2a2438;
    background: rgba(27, 25, 44, .72);
    color: #9a8f72;
    font-size: 12px;
}
.mail-toolbar .mail-tool-btn {
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid #3a3226;
    background: #221f33;
    color: #c9bf9e;
    font-size: 11.5px;
    cursor: pointer;
}
.mail-toolbar .mail-tool-btn:hover {
    border-color: #6f5a31;
    color: #f0dfb4;
}
.mail-body {
    padding: 0;
}
.mail-empty {
    padding: 46px 20px;
    text-align: center;
    color: #7d745e;
    font-size: 13px;
}
.mail-empty b {
    display: block;
    margin-bottom: 8px;
    color: #c9b47c;
    font-size: 16px;
}
.mail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(74, 63, 42, .38);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.mail-row:hover {
    background: rgba(62, 55, 38, .22);
    border-bottom-color: rgba(120, 99, 58, .55);
}
.mail-row.is-unread {
    background: linear-gradient(90deg, rgba(201, 163, 90, .10), rgba(201, 163, 90, .01));
}
.mail-row.is-unread:hover {
    background: linear-gradient(90deg, rgba(201, 163, 90, .18), rgba(201, 163, 90, .04));
}
.mail-ico {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #4a3f2a;
    background: #221f33;
    color: #e8b85c;
    font-size: 16px;
}
.mail-main {
    flex: 1;
    min-width: 0;
}
.mail-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.mail-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e8d7a8;
    font-size: 13.5px;
    font-weight: 600;
}
.mail-row.is-unread .mail-title {
    color: #ffe7a3;
}
.mail-unread-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9583f;
    box-shadow: 0 0 7px rgba(217, 88, 63, .6);
}
.mail-attach-tag {
    flex: none;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(201, 163, 90, .45);
    color: #d8b96e;
    font-size: 10.5px;
    line-height: 1.35;
}
.mail-meta {
    margin-top: 3px;
    color: #7d745e;
    font-size: 11.5px;
    line-height: 1.45;
}
.mail-preview {
    margin-top: 3px;
    overflow: hidden;
    color: #9a8f72;
    font-size: 11.5px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mail-detail {
    padding: 14px;
}
.mail-detail-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.mail-back-btn {
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid #3a3226;
    background: #221f33;
    color: #c9bf9e;
    font-size: 11.5px;
    cursor: pointer;
}
.mail-back-btn:hover { border-color: #6f5a31; color: #f0dfb4; }
.mail-detail-kicker { color: #7d745e; font-size: 11.5px; }
.mail-detail-title {
    margin: 0 0 5px;
    color: #ffe7a3;
    font-size: 17px;
    line-height: 1.35;
}
.mail-detail-meta {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 63, 42, .45);
    color: #7d745e;
    font-size: 11.5px;
}
.mail-detail-content {
    color: #cfc4a7;
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}
.mail-attach-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid rgba(201, 163, 90, .38);
    background: linear-gradient(180deg, rgba(61, 48, 24, .42), rgba(31, 27, 42, .72));
}
.mail-attach-info {
    flex: 1;
    min-width: 0;
}
.mail-attach-info b {
    display: block;
    color: #f0d48a;
    font-size: 13px;
}
.mail-attach-info span {
    color: #8d8268;
    font-size: 11.5px;
}
.mail-claim-btn {
    flex: none;
    padding: 6px 11px;
    border-radius: 7px;
    border: 1px solid #7a6335;
    background: linear-gradient(180deg, #4a3a1c, #2a2311);
    color: #ffe9b2;
    font-size: 12px;
    cursor: pointer;
}
.mail-claim-btn:hover { border-color: #d2b068; filter: brightness(1.08); }
.mail-claim-btn.is-claimed {
    border-color: #3a3226;
    background: #221f33;
    color: #7d745e;
    cursor: default;
}
.mail-foot {
    display: block;
}
.mail-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mail-code-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid #4a3f2a;
    background: #10101c;
    color: #e8d7a8;
    font-size: 12.5px;
    outline: none;
}
.mail-code-input:focus { border-color: #8f7138; box-shadow: 0 0 0 2px rgba(201, 163, 90, .12); }
.mail-code-input::placeholder { color: #6f6756; }
.mail-code-btn {
    flex: none;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
}