/* 角色属性页 / 装备页：首页浮层贴右侧，底部导航留在外面 */
.hm-hit { position: absolute; z-index: 2; padding: 0; border: 0; background: transparent; border-radius: .8em; }
.hm-hit:active { background: rgba(255, 255, 255, .14); }
.hm-hit-avatar { left: 2%; top: 2.4%; width: 24.5%; height: 10%; border-radius: 3em; }
.hm-hit-role { left: 77.4%; top: min(89.3%, calc(100vh - 10%)); width: 7.2%; height: 10%; }
.hm-nav-eq {
  position: absolute; z-index: 2; left: 63.1%; top: min(89.3%, calc(100vh - 10%)); width: 7.2%; height: 10%;
  padding: 0; border: 0; background: transparent; color: #E9D3A6;
  display: flex; flex-direction: column; align-items: center; gap: .1em;
}
.eq-medal {
  width: 62%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid #B9925A; background: radial-gradient(circle at 50% 35%, #4A4D63, #1F212E 72%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), inset 0 0 .6em rgba(255, 208, 138, .25), 0 .2em .6em rgba(0, 0, 0, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.eq-medal svg { width: 58%; height: 58%; }
.hm-nav-eq b { font-size: 1.1em; color: #F4E6C8; letter-spacing: .08em; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hm-nav-eq:active .eq-medal { transform: scale(.94); }
.hm-nav-eq.on .eq-medal { border-color: #FFD08A; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 1em rgba(255, 196, 107, .75), inset 0 0 .6em rgba(255, 208, 138, .4); }
.hm-nav-eq.on svg { color: #FFE9B8; }

.eq-mask { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.eq-mask.hidden { display: none; }
.eq-sheet {
  position: absolute; right: 1.2vw; top: 10vh; bottom: 13.5vh; width: min(47vw, 640px); min-width: 320px;
  display: flex; flex-direction: column; overflow: hidden; pointer-events: auto;
  border-radius: 12px; border: 1px solid rgba(255, 208, 138, .3);
  background: linear-gradient(180deg, rgba(38, 43, 58, .96), rgba(20, 23, 34, .97));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55); font-size: clamp(11px, 2.8vh, 15px); color: #EDEAF2;
}
.eq-sheet button { border: 0; font-family: inherit; cursor: pointer; }
.eq-tabs { flex: none; display: flex; align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.eq-tab { min-height: 42px; padding: 0 1.5em; font-size: 1.2em; letter-spacing: .12em; color: rgba(237, 234, 242, .6); background: transparent; border-bottom: 2px solid transparent; }
.eq-tab.on { color: #FFE3B0; font-weight: 700; background: linear-gradient(180deg, rgba(255, 208, 138, 0), rgba(255, 208, 138, .16)); border-bottom-color: #FFD08A; }
.eq-x { margin-left: auto; width: 48px; min-height: 42px; display: flex; align-items: center; justify-content: center; background: transparent; color: #EDEAF2; font-size: 1.6em; }
.eq-body { flex: 1; overflow-y: auto; padding: .7em .9em 1em; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

.eq-who { display: flex; align-items: center; gap: .9em; padding: .7em; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.eq-face {
  flex: none; width: 4.8em; height: 4.8em; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 208, 138, .7);
  background: url(images/gen/gptimg_1795555401_look.png) -1.48em -.92em / 70.9em auto no-repeat;
}
.eq-face.has-img { background: none; }
.eq-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-who-m { min-width: 0; display: flex; flex-direction: column; gap: .25em; }
.eq-who-m b { font-size: 1.35em; color: #FFF3DF; letter-spacing: .06em; }
.eq-who-m span { color: #FFD08A; }
.eq-who-m em { font-style: normal; font-size: .9em; color: rgba(237, 234, 242, .55); }
.eq-sec { display: flex; align-items: center; gap: .6em; margin: .9em 0 .4em; font-size: 1.1em; font-weight: 700; letter-spacing: .14em; color: #F0E2C4; }
.eq-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 208, 138, .4), rgba(255, 208, 138, 0)); }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1em 1.4em; }
.eq-stat { display: flex; align-items: center; gap: .55em; padding: .55em .2em; }
.eq-stat .mp-icon { font-size: 1.4em; color: #C9CFE0; }
.eq-stat span { flex: 1; color: rgba(237, 234, 242, .78); }
.eq-stat b { font-size: 1.15em; color: #fff; }
.eq-lines { display: flex; flex-direction: column; gap: .2em; padding: .3em .7em; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.eq-line { display: flex; align-items: center; gap: .8em; padding: .35em 0; }
.eq-line span { width: 3em; color: rgba(237, 234, 242, .6); }
.eq-line b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-line em { font-style: normal; font-size: .9em; color: rgba(237, 234, 242, .6); }
.dim { color: rgba(237, 234, 242, .4) !important; font-weight: 400; }
.eq-sheet .eq-link { display: block; margin: 1em auto 0; min-height: 2.8em; padding: 0 2.6em; border-radius: 999px; font-size: 1.1em; letter-spacing: .1em; color: #F0E2C4; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 208, 138, .25); }

.eq-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.eq-slot { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .6em .4em; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 208, 138, .14); }
.eq-slot em { font-style: normal; font-size: .85em; letter-spacing: .2em; color: #FFD08A; }
.eq-slot b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-slot span:not(.eq-ico) { font-size: .85em; color: rgba(237, 234, 242, .6); }
.eq-ico { flex: none; width: 3.2em; height: 3.2em; border-radius: .7em; border: 1.5px solid; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0, 0, 0, .3); }
.eq-ico img { width: 100%; height: 100%; object-fit: contain; }
.eq-ico .mp-icon { font-size: 1.8em; }
.eq-ico.empty { border-style: dashed; border-color: rgba(237, 234, 242, .28); color: rgba(237, 234, 242, .4); }
.eq-list { display: flex; flex-direction: column; gap: .5em; }
.eq-row { display: flex; align-items: center; gap: .7em; padding: .5em .6em; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 208, 138, .12); }
.eq-rm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.eq-rm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-rm span { font-size: .85em; color: rgba(237, 234, 242, .6); }
.eq-btn { flex: none; min-height: 2.6em; padding: 0 1.2em; border-radius: .7em; font-weight: 700; color: #2A1200; background: linear-gradient(180deg, #FFA45E, #FF8A3D); box-shadow: 0 2px 0 #C9601F; }
.eq-btn.ghost { background: rgba(255, 255, 255, .1); color: #F0E2C4; box-shadow: none; }
.eq-btn:active { transform: translateY(1px); }
.eq-empty { padding: 1.6em .6em; text-align: center; line-height: 1.7; color: rgba(237, 234, 242, .6); }

@media (orientation: portrait) {
  .hm-hit-avatar { position: fixed; left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); width: 190px; height: 44px; }
  .hm-hit-role { display: none; }
  .hm-nav-eq { position: fixed; left: auto; right: 12px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 64px; height: auto; }
  .hm-nav-eq .eq-medal { width: 48px; }
  .eq-sheet { left: 2vw; right: 2vw; width: auto; min-width: 0; top: 10vh; bottom: 12vh; }
}

/* 装备入口：剑 / 衣甲 / 佩 三枚圆形图标并排，与装备格同大 */
.hm-nav-eq { width: auto; }
.hm-nav-eq .eq-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.hm-nav-eq .eq-row .eq-art { width: 48px; height: 48px; aspect-ratio: 1; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: hidden; border-radius: 50%; }
.hm-nav-eq .eq-row .eq-art img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.hm-nav-eq:active .eq-art { transform: scale(.94); }
@media (orientation: portrait) {
  .hm-nav-eq { width: auto; }
  .hm-nav-eq .eq-row .eq-art { width: 48px; }
}

/* 装备格图标：统一成圆形鎏金边，与入口三枚图标同一套风格 */
.eq-ico { border-radius: 50%; border: 2px solid #D9B26A; background: radial-gradient(circle at 50% 35%, #4A4D63, #1F212E 72%); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 .7em rgba(255, 196, 107, .35), inset 0 0 .5em rgba(255, 208, 138, .25); }
.eq-ico img { border-radius: 50%; object-fit: cover; }
.eq-ico.empty { border-style: dashed; box-shadow: none; }

/* 同套装的三档属性：仅扩展原装备面板。 */
.eq-set-card { margin: 10px 0; padding: 12px; border: 1px solid #76543d; border-radius: 10px; background: rgba(255,138,61,.06); }
.eq-set-card h3 { margin: 0 0 8px; font-size: 14px; color: #FFAD72; }
.eq-set-tier { display: flex; gap: 10px; justify-content: space-between; padding: 9px 0; color: #aaa5a0; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.5; }
.eq-set-tier.active { color: #FFD3A8; }
.eq-set-tier span:last-child { text-align: right; }
.eq-set-help { font-size: 12px; color: #bcb4aa; line-height: 1.6; }
.eq-set-tag { color: #FFAD72; font-size: 12px; }

/* 品质灵光只覆盖装备图标，保留原有装备原画和分类。 */
#eqPanel .eq-ico.eq-fx { position: relative; isolation: isolate; overflow: visible; color: var(--eq-light); border-color: var(--eq-light); box-shadow: 0 0 6px var(--eq-light), inset 0 0 5px var(--eq-light); }
#eqPanel .eq-fx img { position: relative; z-index: 1; }
#eqPanel .eq-fx::before, #eqPanel .eq-fx::after { content: ''; position: absolute; pointer-events: none; border-radius: 50%; }
#eqPanel .eq-fx::before { inset: -5px; border: 1px solid var(--eq-light); opacity: .35; }
#eqPanel .eq-fx-0 { --eq-light: #e8e4f0; }
#eqPanel .eq-fx-1 { --eq-light: #6fb0ff; }
#eqPanel .eq-fx-2 { --eq-light: #b77cff; }
#eqPanel .eq-fx-3 { --eq-light: #ffa43c; }
#eqPanel .eq-fx-4 { --eq-light: #ff5a5a; }
#eqPanel .eq-fx-1::before { animation: eq-breathe 2.8s ease-in-out infinite alternate; }
#eqPanel .eq-fx-2::before, #eqPanel .eq-fx-3::before, #eqPanel .eq-fx-4::before { border: 2px solid transparent; border-top-color: var(--eq-light); border-bottom-color: var(--eq-light); opacity: .85; animation: eq-orbit 4s linear infinite; }
#eqPanel .eq-fx-2::after { inset: -8px; box-shadow: 0 -2px 5px #b77cff, 0 2px 5px #b77cff; animation: eq-breathe 1.8s ease-in-out infinite alternate; }
#eqPanel .eq-fx-3 { box-shadow: 0 0 12px #ffa43c, 0 0 20px #ff8a3d66; }
#eqPanel .eq-fx-3::after { inset: -9px; border: 1px dashed #ffd58b; box-shadow: 0 0 9px #ffa43c; animation: eq-orbit 3s linear infinite reverse; }
#eqPanel .eq-fx-4 { box-shadow: 0 0 13px #ff5a5a, 0 0 24px #ff304477, inset 0 0 9px #ff5a5a; }
#eqPanel .eq-fx-4::before { inset: -7px; border-width: 3px; animation-duration: 2.4s; filter: drop-shadow(0 0 4px #ff5a5a); }
#eqPanel .eq-fx-4::after { inset: -12px; border: 2px dotted #ffcf91; box-shadow: 0 0 9px #ff5a5a, inset 0 0 7px #ff5a5a; animation: eq-orbit 4s linear infinite reverse; }
#eqPanel .eq-slot { gap: .6em; }
@keyframes eq-breathe { from { opacity: .3; transform: scale(.97); } to { opacity: .85; transform: scale(1.06); } }
@keyframes eq-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #eqPanel .eq-fx::before, #eqPanel .eq-fx::after { animation: none; } }

/* 品质逐级增强：沿用原图，灵光和粒子不遮挡穿戴、卸下操作。 */
#eqPanel .eq-ico.eq-fx-0 { box-shadow: 0 0 3px #e8e4f066, inset 0 0 3px #ffffff33; }
#eqPanel .eq-fx-0::before { inset: -3px; opacity: .22; }
#eqPanel .eq-ico.eq-fx-1 { box-shadow: 0 0 8px #6fb0ff88, inset 0 0 6px #6fb0ff66; }
#eqPanel .eq-ico.eq-fx-2 { box-shadow: 0 0 10px #b77cffaa, 0 0 17px #b77cff33, inset 0 0 7px #b77cff66; }
#eqPanel .eq-fx-3::after {
 background: radial-gradient(circle at 50% 0, #fff4c7 0 1px, transparent 2px), radial-gradient(circle at 100% 50%, #ffd58b 0 1px, transparent 2px), radial-gradient(circle at 50% 100%, #fff4c7 0 1px, transparent 2px);
}
#eqPanel .eq-fx-4::after {
 background: radial-gradient(circle at 50% 0, #fff4cd 0 2px, transparent 3px), radial-gradient(circle at 100% 50%, #ffaf7b 0 2px, transparent 3px), radial-gradient(circle at 50% 100%, #fff4cd 0 2px, transparent 3px), radial-gradient(circle at 0 50%, #ffaf7b 0 2px, transparent 3px);
}
#eqPanel .eq-fx-4 img { filter: drop-shadow(0 0 3px #ff6868); }
#eqPanel .eq-fx > .mp-icon { position: relative; z-index: 1; }
#eqPanel .eq-row:has(.eq-fx) { min-height: 76px; gap: 16px; }
#eqPanel .eq-slot:has(.eq-fx) { padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
