/* ==================================================================
 * D4 v6 equip 公共样式
 * Custom Unique（d4unique.css）与 Custom Legendary（d4legendary.css）
 * 共用的规则，共 120 条；仅这两个页面加载。
 * ================================================================== */
.d4v6.d4-equip-page .d4-sidebar-shell{padding-bottom: 8px;}
.d4v6.d4-equip-page .d2r-runes-panel-card.d4-equip-panel-card{overflow: visible;
flex: 1 1 auto;
min-width: 0;}
.d4v6.d4-equip-page .equipbox{margin: 0;
padding: 0;
background: transparent;
box-shadow: none;
border-radius: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
align-content: flex-start;
gap: 0;
min-width: 0;}
.d4v6.d4-equip-page .equipbox .d4-equip-step-row{flex: 0 0 100%;
width: 100%;
margin: 0 0 8px;
font-size: 14px;
font-weight: 600;
font-family: Poppins, sans-serif;
color: #185ebb;}
.d4v6.d4-equip-page .d4-equip-shop-body.equipbox > .d4-equip-main{width: 62%;
flex: 0 0 62%;
max-width: 62%;
min-width: 0;
border: none;
box-shadow: none;
background: transparent;
position: static;
max-height: none;
overflow: visible;
padding: 0;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid{list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 12px;
border: none;
border-radius: 0;
background: transparent;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .d4-equip-shop-body.equipbox{justify-content: flex-start;
gap: 13px;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .d4-equip-shop-body.equipbox > .d4-equip-main{flex: 1 1 0;
width: auto;
max-width: none;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .equipbox .d4-equip-main .d4-equip-list-grid{grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px 5px;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .equipbox .d4-equip-main .d4-equip-list-grid > li{min-height: 68px;
padding: 8px 13px;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .equipbox .d4-equip-main .d4-equip-list-grid > li img.items-imgs{height: 56px;
max-width: 48px;}
.d4v6.d4-equip-page:not(.d4-legendary-page) .equipbox .d4-equip-main .d4-equip-list-grid > li span{font-size: 14px;
line-height: 1.35;
font-weight: 600;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li{position: relative;
min-height: 75px;
padding: 10px 12px;
box-sizing: border-box;
font-size: 15px;
color: var(--text-primary);
display: flex;
align-items: center;
margin: 0;
font-family: Poppins, sans-serif;
cursor: pointer;
background: #f8fafc;
border: 1px solid var(--line-strong);
border-radius: 8px;
transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li:hover:not(.active):not(.d4-equip-empty){border-color: var(--brand-400);
color: var(--brand-500);}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.active{color: #fff;
border-color: #185ebb;
box-shadow: 0 3px 10px rgba(24, 94, 187, 0.22);
background: #185ebb;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.active::before{content: "";
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
background: url(https://www.mmoso.com/mmoso/image/ok.png) center / contain no-repeat;
filter: brightness(0) invert(1);
pointer-events: none;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li img.items-imgs{height: 70px;
width: auto;
max-width: 56px;
object-fit: contain;
margin-right: 5px;
flex-shrink: 0;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li span{flex: 1;
padding-right: 22px;
line-height: 18px;
font-size: 14px;
font-weight: 600;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-equip-empty{grid-column: 1 / -1;
min-height: auto;
display: block;
color: #555;
cursor: default;
padding: 20px 16px;
background: #f8fafc;
border-style: dashed;}
.d4v6.d4-equip-page .menucontent .menubox .d4-service-nav > li{width: auto;
min-width: 0;
text-align: left;}
.d4v6.d4-equip-page .menucontent .menubox .d4-service-nav .d4-service-btn{white-space: nowrap;}
.d4v6.d4-equip-page .menucontent .menubox .d4-service-nav .d4-service-btn > img{margin: 0;}
.d4v6.d4-equip-page .menucontent .menubox .d4-service-nav .d4-service-btn > span{display: inline;
margin: 0;
padding: 0;
color: inherit;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: 1.2;
text-align: left;}
.d4v6.d4-equip-page .d4-equip-slot-sidebar-shell{padding-bottom: 8px;}
.d4v6.d4-equip-page .d4-equip-slot-radio span{display: inline-flex;
align-items: center;
gap: 6px;}
.d4v6.d4-equip-page .d4-equip-slot-radios > li.cur .d4-equip-slot-radio{background: #eaf2fc;
color: #185ebb;
font-weight: 600;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li:focus-visible{outline: 3px solid rgba(24, 94, 187, 0.32);
outline-offset: 2px;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li span{display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;}
.d4v6.d4-equip-page .d4-equip-step2-block{margin: 16px 0 0;
padding: 14px 0 0;
border-top: 1px dashed #dbe4ef;}
.d4v6.d4-equip-page .equipbox .d4-unique-item-step{padding: 14px 0 0;
border-top: 1px dashed #dbe4ef;
line-height: 1.5;}
.d4v6.d4-equip-page .d4-equip-step2-block .d4-equip-step-row{margin: 0 0 8px;}
.d4v6.d4-equip-page .d4-equip-step-row--affix{display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;}
.d4v6.d4-equip-page .d4-equip-list-grid.is-busy{opacity: 0.55;
pointer-events: none;}
@media (max-width: 1024px) {
.d4v6.d4-equip-page .d4-shop-layout > .box{flex-direction: column;
gap: 14px;}
.d4v6.d4-equip-page .d2r-runes-panel-card.d4-equip-panel-card{width: 100%;
flex: 1 1 auto;}
.d4v6.d4-equip-page .d4-equip-shop{min-height: 0;}
.d4v6.d4-equip-page .d4-equip-shop-body.equipbox{flex-direction: column;
align-items: stretch;
gap: 12px;}
/* mobile: drop the 12px gap the tab strip used to leave above the card */
.d4v6.d4-equip-page .menucontent{margin-bottom: 0 !important;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid{display: none;}
.d4v6.d4-equip-page .d4-equip-main{width: 100%;
max-width: 100%;}
.d4v6.d4-equip-page .d4-equip-step2-block{margin-top: 12px;}
}
/* ============================================================
 * Step #2 · 词条选择（Custom Unique，与 Custom Legendary 完全一致）
 *   - PC：3 列词条卡片，选中实心蓝 + 右侧勾
 *   - 结算卡：>> Selected Affixes 列表
 *   - 手机：底部词条弹层（2 列 + 计数 + Apply Selection）
 *   - 选满 4 条后再点：弹窗提示（沿用 legendary 的 .d4v6-affix-limit）
 * 这些规则与 d4legendary.css 中的同名规则一一对应；legendary 页
 * 仍由后加载的 d4legendary.css 覆盖，视觉不受影响。
 * ============================================================ */
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix{min-height: 56px;
padding: 8px 10px;
font-size: 14px;
font-weight: 500;
line-height: 1.25;
color: #35465b;
font-family: Poppins, sans-serif;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix span{font-size: 14px;
font-weight: 500;
line-height: 1.25;
color: #35465b;
font-family: Poppins, sans-serif;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix:hover:not(.active) span{color: #185ebb;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.active span{color: #fff;
font-weight: 500;}
.d4v6.d4-equip-page .d4-legendary-affix-btn{display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 100%;
padding: 0;
margin: 0;
border: 0;
background: transparent;
text-align: left;
font: inherit;
color: inherit;
cursor: pointer;}
/* PC 端词条列表的 More 格子：与词条卡片同尺寸，虚线框 = 还能继续展开 */
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more{justify-content: center;
padding: 8px 10px;
color: #185ebb;
background: #f2f7ff;
border: 1px dashed #9dc0f0;
font-weight: 600;
cursor: pointer;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more:hover{background: #e8f1ff;
border-color: #185ebb;
color: #185ebb;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more span{display: block;
flex: 0 0 auto;
padding-right: 0;
color: #185ebb;
font-weight: 600;
white-space: nowrap;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more .d4-legendary-affix-btn{justify-content: center;
text-align: center;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more .d4-legendary-affix-btn:focus-visible{outline: 3px solid rgba(24, 94, 187, 0.32);
outline-offset: 2px;
border-radius: 6px;}
.d4v6.d4-equip-page .equipbox .d4-equip-main .d4-equip-list-grid > li.d4-legendary-affix.d4-legendary-affix-more .d4-legendary-affix-more-count{font-style: normal;
font-size: 12px;
font-weight: 600;
color: #5c7fa8;
letter-spacing: 0.2px;}
/* ------- 手机词条弹层 ------- */
.d4v6.d4-equip-page .d4-legendary-panel-note{margin: 0 0 12px;
color: #55657a;
font-size: 13px;
line-height: 1.5;}
.d4v6.d4-equip-page .d4-legendary-panel-note b{color: #185ebb;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel{display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
width: 100%;
margin: 0;
padding: 0;
list-style: none;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix{display: flex;
align-items: center;
min-height: 52px;
margin: 0;
padding: 8px;
background: #f8fafc;
border: 1px solid #d8e2ec;
border-radius: 8px;
font-size: 13px;
cursor: pointer;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix .d4-legendary-affix-btn{display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 0;
margin: 0;
border: 0;
background: transparent;
text-align: left;
font: inherit;
color: inherit;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix img.items-imgs{flex: 0 0 auto;
height: 50px;
width: auto;
max-width: 44px;
object-fit: contain;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix span{flex: 1 1 auto;
min-width: 0;
font-size: 13px;
line-height: 1.3;
font-weight: 500;
color: #35465b;
overflow-wrap: anywhere;}
/* 手机上选中态是浅底 + 蓝框 + 勾，和 PC 的实心蓝区分（同 legendary） */
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active{position: relative;
padding-right: 32px;
background: #eef3fb;
border: 1px solid var(--mmoso-color-primary-hover);
box-shadow: none;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active::before{content: "";
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
background: #185ebb;
-webkit-mask: url(/mmoso/image/ok.png) center / contain no-repeat;
mask: url(/mmoso/image/ok.png) center / contain no-repeat;
pointer-events: none;}
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel > li.d4-legendary-affix.active span{color: #185ebb;}
.d4v6.d4-equip-page .d4-legendary-panel-foot{position: sticky;
bottom: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 14px;
padding: 12px 0 calc(6px + env(safe-area-inset-bottom, 0px));
background: #fff;
border-top: 1px solid #e8edf4;
box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.04);}
.d4v6.d4-equip-page .d4-legendary-panel-count{color: #55657a;
font: 600 13px/1.3 Poppins, sans-serif;
white-space: nowrap;}
.d4v6.d4-equip-page .d4-legendary-panel-apply{flex: 1 1 auto;
max-width: 210px;
min-height: 42px;
border: 1px solid #185ebb;
border-radius: 9px;
background: #185ebb;
color: #fff;
font: 600 14px/1.2 Poppins, sans-serif;}
@media (max-width: 380px) {
.d4v6.d4-equip-page .d4-legendary-affix-grid--panel{grid-template-columns: minmax(0, 1fr);}
}
/* ------- 词条上限弹窗（选满 4 条再点） ------- */
.d4v6.d4-equip-page .d4v6-affix-limit{position: fixed;
z-index: 19991016;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: none;}
.d4v6.d4-equip-page .d4v6-affix-limit.is-open{display: block;
animation: fadeIn 0.3s ease-in-out;}
.d4v6.d4-equip-page .d4v6-affix-limit .pops{position: fixed;
top: 50%;
left: 50%;
width: 430px;
max-width: 90%;
padding: 30px;
box-sizing: border-box;
transform: translate(-50%, -50%);
background: #fff;
border-radius: 8px;
text-align: left;
animation: scaleIn 0.3s ease-in-out;}
.d4v6.d4-equip-page .d4v6-affix-limit .dels{position: absolute;
top: 15px;
right: 15px;
cursor: pointer;
transition: transform 0.3s ease;}
.d4v6.d4-equip-page .d4v6-affix-limit .dels:hover{transform: rotate(90deg);}
.d4v6.d4-equip-page .d4v6-affix-limit .dels img{display: block;
width: 20px;}
.d4v6.d4-equip-page .d4v6-affix-limit .cart-notice-icon{display: flex;
align-items: center;
margin-bottom: 6px;}
.d4v6.d4-equip-page .d4v6-affix-limit .cart-notice-icon img{display: block;
width: 32px;
margin: -8px 8px 0 0;}
.d4v6.d4-equip-page .d4v6-affix-limit .explanation-title{color: #13365a;
font: 600 20px/1.3 Poppins, sans-serif;}
.d4v6.d4-equip-page .d4v6-affix-limit p{margin: 0;
color: #56689c;
font: 400 16px/22px Poppins, sans-serif;
text-align: left;}
.d4v6.d4-equip-page .d4v6-affix-limit p b{color: #185ebb;
font-weight: 600;}
.d4v6.d4-equip-page .d4v6-affix-limit .btns{display: flex;
justify-content: center;
gap: 16px;
margin-top: 16px;}
.d4v6.d4-equip-page .d4v6-affix-limit .btns .btn{width: 15rem;
height: 2.5rem;
padding: 0;
border: 0;
border-radius: 4px;
background: var(--mmoso-color-primary-alt);
color: #fff;
font: 600 16px/40px Poppins, sans-serif;
cursor: pointer;}
@media (max-width: 1024px) {
.d4v6.d4-equip-page .d4v6-affix-limit .pops{padding: 30px 25px;}
.d4v6.d4-equip-page .d4v6-affix-limit .explanation-title{font-size: 17px;}
.d4v6.d4-equip-page .d4v6-affix-limit p{font-size: 15px;
line-height: 1.3rem;}
.d4v6.d4-equip-page .d4v6-affix-limit .btns .btn{height: 2.4rem;
font-size: 15px;
line-height: 2.4rem;}
}
/* 手机词条弹层：底部 Apply 模块与面板底边对齐（同 Custom Legendary） */
.d4v6.d4-equip-page #d4UniqueAffixPanel .d4v6-panel-body{padding-bottom: 0;}
.d4v6.d4-equip-page #d4UniqueAffixPanel .d4-legendary-panel-foot{padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));}

/* mobile: 顶部 service tab 文案与 gold 页对齐（gold 由 .menucontent .menubox li span 给到 15px） */
@media (max-width: 1024px) {
.d4v6.d4-equip-page .menucontent .menubox .d4-service-nav .d4-service-btn > span{font-size: 15px;}
}

/* ============================================================
 * 手机端：原生 <select>（Greater Affix 下拉）换成自绘列表
 *   <select> 本身保留在 DOM 里、样子不变，上面盖一层透明按钮，
 *   点击时展开我们自己的列表，这样 iOS 不会弹出系统选择器。
 * ============================================================ */
.d4v6-ga-wrap{position: relative;
display: block;
width: 100%;}
.d4v6-ga-hit{position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
z-index: 1;
-webkit-tap-highlight-color: transparent;
-webkit-appearance: none;
appearance: none;}
.d4v6-ga-menu{position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
z-index: 70;
margin: 0;
padding: 4px;
list-style: none;
border: 1px solid #c5d8eb;
border-radius: 10px;
box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
max-height: 264px;
overflow: auto;
-webkit-overflow-scrolling: touch;}
.d4v6-ga-menu[hidden]{display: none !important;}
.d4v6-ga-option{padding: 11px 12px;
border-radius: 6px;
font: 600 13px/1.35 Poppins, sans-serif;
cursor: pointer;
white-space: normal;
word-break: break-word;}
.d4v6-ga-option.is-active{background: rgba(127, 127, 127, .16);
font-weight: 700;}

@media (max-width: 1024px) {
    #d4EquipMobileCurrent.is-busy { opacity: 0.55; pointer-events: none; }

#d4UniqueItemStatus {
    padding: 8px 0;
    color: var(--d2r-muted);
    font-size: 13px;
}
}
/* Match Custom Legendary: all three steps stay in the left configuration column. */
@media (min-width: 1025px) {
    #d4UniquePage .equipbox .d4-desktop-choice {
        margin: 0 0 20px;
        padding: 0 0 20px;
        border-bottom: 1px solid var(--d2r-line);
    }
    #d4UniquePage .equipbox .d4-unique-step-heading {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 12px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--d2r-ink);
        font: 17px/1.4 Poppins-SemiBold, Arial, sans-serif;
    }
    #d4UniquePage .equipbox .d4-desktop-choice label {
        margin: 0;
        font-size: 16px;
    }
    #d4UniquePage .d4-desktop-choice #d4UniqueSlotSelect {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 6px;
        border: 1px solid var(--d2r-control-line);
        border-radius: 6px;
        background: var(--d2r-panel);
        color: var(--d2r-ink);
        font: 13px/1.4 Poppins-Medium, Arial, sans-serif;
    }
    #d4UniquePage #d4UniqueSlotSelect:focus-visible { outline: 2px solid var(--d2r-accent); outline-offset: 2px; }
    #d4UniquePage .d4-equip-step2-block { padding-top: 20px; border-top: 1px solid var(--d2r-line); margin-top: 20px; }
    #d4UniquePage .d4-unique-affix-count { margin-left: auto; color: var(--d2r-muted); font-size: 13px; }
}
