.official-hover{display:contents}
.official-tooltip{position:fixed;z-index:3200;width:380px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:14px;border:1px solid #766c55;border-radius:12px;background:#232a28;box-shadow:0 8px 35px #0003;color:#e8e9e3;font-size:15px;line-height:1.55;box-sizing:border-box;overscroll-behavior:contain}
.official-tooltip header{display:flex;gap:10px;align-items:center;margin-bottom:10px;padding:0;border:0;background:none}
.official-tooltip header img{width:46px;height:46px;object-fit:contain;flex:none}
.official-head-art{position:relative;display:block;width:46px;height:46px;flex:none;overflow:hidden}
.official-head-art img{display:block}
.official-tooltip header strong{flex:1;font-size:18px}
.official-tooltip header button{padding:0;width:26px;height:26px;min-height:0;line-height:1;border:0;background:none;color:#727783}
.official-rich{white-space:pre-wrap;overflow-wrap:anywhere}
.official-skill-level{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:start;column-gap:10px;row-gap:4px;border-top:1px solid #ece3d5;padding:9px 0}
.official-skill-level.current{background:#364032;border-radius:6px;padding:9px 7px}
.official-inspector{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.official-inspector label{display:flex;align-items:center;gap:7px}
.official-inspector select{height:32px;min-height:0;background:#323c37;color:#e8e9e3;border:1px solid #5a675b}
.official-stat{display:flex;justify-content:space-between;gap:15px;margin:4px 0}
.official-tooltip h5{font-size:15px;margin:12px 0 7px}
.official-pet-skill{display:grid;gap:4px;padding:7px 0;border-top:1px solid #ece3d5}
.official-pet-pick{display:inline-flex;gap:10px;align-items:center;max-width:100%}
.official-pet-art{position:relative;display:block;width:42px;height:42px;overflow:hidden;flex:none;cursor:help}
.official-pet-art img{display:block;object-fit:contain}
.nv-gem-editor .gem-art-wrap,.c-gem-preview-slot{position:relative;overflow:hidden}
.official-pet-pick>span>img,.official-pet-pick>img{width:42px;height:42px;object-fit:contain;cursor:help;border-radius:6px}
.sr-node:not(.chosen) .sr-shape img,.c-skill-map-node:not(.chosen) .c-skill-map-icon img{filter:grayscale(1);opacity:1}
.sr-node.chosen .sr-shape img,.c-skill-map-node.chosen .c-skill-map-icon img{filter:none;opacity:1}

/* 技能说明盖在方案预览上方，完整展开，不在说明内滚动。 */
.official-tooltip.skill{z-index:3200;max-height:none;overflow:visible}

.official-skill-tags{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 10px;font-size:13px;color:#e8e9e3}
.official-skill-tags>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.official-skill-tags img{width:24px;height:24px;object-fit:contain;flex:none}

/* 原游戏技能页：素材来自16.0.0 SpriteFrame，布局按各职业Prefab缩放。 */
.sr-tree,.c-skill-map{background:#141b13}
.sr-tree{padding:10px 12px 20px}.c-skill-map{padding:8px;border:0;border-radius:0}
.game-tree-heading{height:48px;display:flex;align-items:center;justify-content:center;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/3ed13f49-5ae4-40d4-b0a7-adc5c88032e9.png") center/100% 100% no-repeat;color:#e3bd5e;font:900 24px/1 "Microsoft YaHei","PingFang SC",sans-serif;-webkit-text-stroke:2px #271609;paint-order:stroke fill;margin-bottom:12px}
.game-tree-heading span:before{content:"";display:inline-block;width:24px;height:24px;vertical-align:-3px;margin-right:8px;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/d0a7161a-d3d6-4130-93c9-75ab4a86ee9b.png") center/contain no-repeat}
.sr-section[data-game="true"],.c-skill-map-section[data-game="true"]{container-type:inline-size;position:relative;max-width:670px;min-width:0;width:100%;margin:0 auto 20px;border:0;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/d92540eb-f79c-41b8-874d-846365ccb47d.png") center/100% 100% no-repeat}
.sr-section[data-game="true"] h3,.c-skill-map-section[data-game="true"] h4{height:7.463cqw;min-height:32px;padding:0 8.36cqw;display:flex;align-items:center;position:relative;left:auto;margin:0;border:0;background:var(--game-stage-header) center/100% 100% no-repeat;font-size:3.88cqw;line-height:1;font-weight:900;color:#fff;white-space:nowrap;-webkit-text-stroke:2px #38220e;paint-order:stroke fill}
.sr-section[data-game="true"] h3:before,.c-skill-map-section[data-game="true"] h4:before{content:"";position:absolute;left:3.1cqw;width:3.6cqw;height:3.8cqw;background:var(--game-stage-emblem) center/contain no-repeat}
.sr-section[data-game="true"] h3 small{font-size:2.2cqw;-webkit-text-stroke:0;white-space:nowrap;color:#e9d8b0}
.sr-section[data-game="true"] .sr-graph-scroll{overflow:visible}
.sr-section[data-game="true"] .sr-graph,.c-skill-map-section[data-game="true"] .c-skill-map-stage{container-type:inline-size;max-width:none;min-width:0;width:97.015%;margin:0 auto;position:relative}
.sr-section[data-game="true"] .sr-node{min-height:0;min-width:0;max-height:none}
.sr-section[data-game="true"] .sr-node .sr-shape,.c-skill-map-section[data-game="true"] .c-skill-map-icon{width:100%;height:100%}
.sr-section[data-game="true"] .sr-node img,.c-skill-map-section[data-game="true"] .c-skill-map-node img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.sr-section[data-game="true"] .sr-node strong,.sr-section[data-game="true"] .sr-node small,.c-skill-map-section[data-game="true"] .c-skill-map-node strong,.c-skill-map-section[data-game="true"] .c-skill-map-node small{font-size:4cqw;line-height:1.05;-webkit-text-stroke:3px #080808;font-weight:900}
.sr-section[data-game="true"] .sr-node strong,.c-skill-map-section[data-game="true"] .c-skill-map-node strong{top:calc(100% - 4.4cqw)}
.sr-section[data-game="true"] .sr-node small,.c-skill-map-section[data-game="true"] .c-skill-map-node small{top:calc(100% - .3cqw)}
.sr-section[data-game="true"] .sr-graph line,.c-skill-map-section[data-game="true"] .c-skill-map-stage line{stroke:#381b0e;stroke-width:10}
.sr-section[data-game="true"] line.skill-link-fill,.c-skill-map-section[data-game="true"] line.skill-link-fill{stroke:transparent;stroke-width:5}
.sr-section[data-game="true"] line.skill-link-fill.lit,.c-skill-map-section[data-game="true"] line.skill-link-fill.lit{stroke:#8CBA08}
.sr-section[data-game="true"].sr-locked:after{background:#181a1480}
.sr-section[data-game="true"].sr-locked h3{background-image:var(--game-stage-header)}

/* 技能详情沿用游戏框、顶部纹理、技能光纹和伤害标签原图。 */
.official-tooltip.skill{isolation:isolate;width:420px;max-width:calc(100vw - 16px);min-height:555px;max-height:none;overflow:visible;padding:26px 30px 28px;border:0;border-radius:0;background:none;box-shadow:none;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-weight:800;color:#929388;line-height:1.5}
.official-tooltip.skill:before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;border-image:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/9be2654b-18e5-4d5d-ad99-618eaea35edb.png") 40 fill / 26px / 0 stretch}
.official-tooltip.skill:after{content:"";position:absolute;inset:12px 14px;z-index:-1;pointer-events:none;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/6c06e01e-968d-4858-b92d-b93b1091efa9.png") center top/100% 40px no-repeat,url("game-data/16.0.0-d464b99aeafd/images/skill-ui/9d60bdeb-f442-4465-8a64-3a4bac748a55.png") center top/100% 215px no-repeat}
.official-tooltip.skill .game-skill-title{display:block;text-align:center;margin:0 0 2px;padding:0;background:none;border:0}
.official-tooltip.skill .game-skill-title strong{display:block;color:#d9dbd0;font-size:22px;font-weight:900;line-height:1.35;-webkit-text-stroke:3px #090909;paint-order:stroke fill}
.game-skill-title>div{font-size:16px;color:#d1b66b;line-height:1.5}
.official-tooltip.skill .game-skill-title button{position:absolute;right:16px;top:14px;color:#c3b58d}
.game-skill-hero{height:118px;display:flex;align-items:center;justify-content:center;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/10659ecf-7955-48ed-97a7-422433cb02bf.png") center/154px 154px no-repeat;margin:0 0 5px}
.game-skill-hero img{width:76px;height:76px;object-fit:contain}.game-skill-hero img.unlearned{filter:grayscale(1)}
.game-skill-stats{text-align:center;font-size:16px;color:#a3a599;margin-bottom:12px;line-height:1.4}
.official-tooltip.skill .official-skill-tags{justify-content:center;margin:10px 0 14px;gap:8px}
.official-tooltip.skill .official-skill-tags img{width:26px;height:26px;background:#3a3b32;border:1px solid #5a5a4b}
.official-tooltip.skill .official-skill-tags>span>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.official-tooltip.skill .official-skill-level{display:flex;align-items:baseline;gap:0;border:0;padding:0;margin:0 0 4px;background:none;font-size:16px;font-weight:800;line-height:1.5;color:#96988c}
.official-tooltip.skill .official-skill-level>strong{flex:none;font-weight:800;white-space:nowrap}
.official-tooltip.skill .official-skill-level>.official-rich{flex:1;min-width:0}
.official-tooltip.skill .official-skill-level.current{font-size:17px;padding:0;background:none;border-radius:0;margin-bottom:10px}
.game-skill-descriptions{padding-bottom:22px}
.game-skill-actions{padding-top:28px;display:flex;justify-content:center}
.official-tooltip.skill .game-skill-actions button{width:156px;height:62px;border:0;border-radius:0;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/c7ce496e-09fb-4385-8d6b-f5b43b221766.png") center/100% 100% no-repeat;color:#e4e7cc;font-size:24px;font-weight:900;-webkit-text-stroke:3px #111;paint-order:stroke fill;padding:0;box-shadow:none}
.official-tooltip.skill .game-skill-actions button:disabled{filter:grayscale(1);opacity:1;cursor:default}

.game-skill-title:before,.game-skill-title:after{content:"";position:absolute;top:13px;width:18px;height:18px;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/e92dacf7-7fd7-4307-a877-035ba4b91a55.png") center/contain no-repeat;pointer-events:none}
.game-skill-title:before{left:14px}.game-skill-title:after{right:14px;transform:scaleX(-1)}
.official-tooltip.skill .game-skill-actions button{background-image:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/5bebe3d0-abb4-48bd-a243-b6564f3ae6ac.png")}
.official-tooltip.skill .game-skill-actions button:disabled{background-image:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/1f14364c-b912-4b9d-8843-80b8b2e3240c.png");filter:none}

/* 详情边框外移，避免顶部纹理覆盖；操作按钮始终靠底排列。 */
.official-tooltip.skill{display:flex;flex-direction:column}
.official-tooltip.skill:before{inset:-8px}
.official-tooltip.skill:after{inset:14px 16px}
.official-tooltip.skill .game-skill-title,.game-skill-hero,.game-skill-stats,.game-skill-descriptions{flex-shrink:0}
.game-skill-actions{margin-top:auto;gap:12px;flex-shrink:0}
.official-tooltip.skill .game-skill-actions button{flex:1;max-width:156px;min-width:0;white-space:nowrap;font-size:22px}

/* 顶部沿游戏原技能点底板和重置按钮，点数随方案/路线预览同步。 */
.game-tree-toolbar{position:sticky;top:0;z-index:4;container-type:inline-size;background:#141b13;width:100%;max-width:670px;margin:0 auto 12px}
.game-tree-toolbar .game-tree-heading{margin-bottom:0}
.game-tree-pointsbar{position:relative;width:100%;aspect-ratio:750/153;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/39ee2fb1-4912-44d9-b45d-3fe83e1bb94a.png") center/100% 100% no-repeat}
.game-tree-points{position:absolute;left:3.3%;top:0;width:47.2%;height:100%;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/1421448c-7f1f-4ff8-8d07-36658671c0ec.png") center/contain no-repeat}
.game-tree-points output{position:absolute;left:21.5%;top:49%;transform:translate(-50%,-50%);font:900 5.6cqw/1 "Microsoft YaHei","PingFang SC",sans-serif;color:#e4e8ce;-webkit-text-stroke:2px #080808;paint-order:stroke fill}
.game-tree-points>span{position:absolute;left:33%;right:14%;top:49%;transform:translateY(-50%);text-align:center;font:900 3.46cqw/1 "Microsoft YaHei","PingFang SC",sans-serif;color:#9c93ce;white-space:nowrap}
.game-tree-toolbar .game-tree-pointsbar .game-tree-reset{position:absolute;left:auto;right:5.3%;top:50%;transform:translateY(-50%);width:22.53%;aspect-ratio:169/110;height:auto;min-height:0;padding:0;border:0;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/f0996b39-5504-4065-b844-57c311374d79.png") center/contain no-repeat;box-shadow:none;cursor:pointer}
.game-tree-toolbar .game-tree-pointsbar .game-tree-reset:hover:not(:disabled),.game-tree-toolbar .game-tree-pointsbar .game-tree-reset:active:not(:disabled){background-color:transparent;transform:translateY(-50%);filter:brightness(1.12)}
.game-tree-toolbar .game-tree-pointsbar .game-tree-reset:disabled{opacity:.6;cursor:default}
.game-tree-reset>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* 原主动技能印记位于连线、图标下层，不参与技能的点击范围。 */
.skill-tree-imprint{position:absolute;transform:translate(-50%,-50%);width:36.46154%;aspect-ratio:237/132;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/dd4464b3-0fc8-47ad-bad3-f2fc32e63b2f.png") center/100% 100% no-repeat;pointer-events:none;z-index:-1}
/* 游戏原黑色遮罩opacity=125/255；提示单独位于标题右侧的最上层。 */
.sr-section[data-game="true"],.c-skill-map-section[data-game="true"]{isolation:isolate}
.sr-section[data-game="true"].sr-locked .sr-graph-scroll{filter:none}
.sr-section[data-game="true"].sr-locked:after,.c-skill-map-section[data-game="true"].sr-locked:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.490196);pointer-events:none;z-index:3}
.skill-section-lock-message{position:absolute;right:1.49cqw;top:0;height:7.463cqw;min-height:32px;z-index:4;display:flex;align-items:center;gap:.9cqw;color:#ded7b4;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:3.58cqw;line-height:1;font-weight:500;white-space:nowrap;pointer-events:none;-webkit-text-stroke:0}
.skill-section-lock-message strong{color:#ff6b26;font-weight:900}

/* 标题、点数与边框固定，技能列表单独滚动，内容不会穿过顶部。 */
.sr-tree,.c-preview-body .c-skill-map,.c-skill-map{position:relative;container-type:inline-size;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0;isolation:isolate;width:100%;max-width:750px;margin-inline:auto}
.sr-tree{height:100%;padding-bottom:0}
.c-skill-map,.c-preview-body .c-skill-map{height:min(680px,calc(100dvh - 175px));max-height:none;padding-bottom:0}
.c-preview-pop.skill .c-preview-body{overflow:hidden}
.game-tree-toolbar{position:relative;top:auto;flex:none;width:100%;max-width:none;margin:0;background:#141b13;z-index:4}
.game-tree-toolbar .game-tree-heading{height:7.6cqw;font-size:4.27cqw}
.game-tree-toolbar .game-tree-heading span:before{width:4cqw;height:4cqw;vertical-align:-.4cqw;margin-right:1cqw}
.game-tree-scroll{flex:1;min-height:0;margin-bottom:9.6cqw;overflow:auto;overscroll-behavior:contain;padding:0 5.3333% 16px;scrollbar-width:thin;scrollbar-color:#67563a #141b13;position:relative;z-index:0}
.game-tree-outline{position:absolute;pointer-events:none;z-index:5;left:0;right:0;top:7.6cqw;bottom:0}
.game-tree-outline i{position:absolute;width:50%;display:block;pointer-events:none}
.game-tree-outline .left{left:0}.game-tree-outline .right{right:0;transform:scaleX(-1)}
.game-tree-outline .frame-top{top:0;height:11.8667cqw;background:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/9d1f24b0-3062-40d2-8b2f-ba4d94d780af.png") center/100% 100% no-repeat}
.game-tree-outline .frame-side{top:11.4667cqw;bottom:0;border-image:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/33b3dbde-7ff6-41af-87ed-95f9fa59d989.png") 8 0 136 0 fill / 1.0667cqw 0 18.1333cqw 0 / 0 stretch}
@media(max-width:850px){.sr-tree{height:min(780px,calc(100dvh - 170px));min-height:400px}.sr-columns{grid-template-rows:auto auto}}
/* 技能配置使用独立居中详情，鼠标移出不会关闭。 */
.skill-modal-backdrop{position:fixed;inset:0;z-index:3500;background:rgba(0,0,0,.85);overscroll-behavior:contain}
.official-tooltip.skill-modal-card{z-index:1}

.game-skill-return-hint{position:absolute;top:calc(100% + 16px);left:0;right:0;text-align:center;white-space:nowrap;pointer-events:none;color:#e4e7cc;font:900 20px/24px "Microsoft YaHei","PingFang SC",sans-serif;-webkit-text-stroke:2px #111;paint-order:stroke fill}

.official-tooltip.skill-modal-card:focus{outline:none}

.official-tooltip.skill .game-skill-actions button.game-skill-refund{background-image:url("game-data/16.0.0-d464b99aeafd/images/skill-ui/2229ff1a-6645-49dd-864d-fd4f264792a4.png")}
