﻿/* hero.css — Hero Panel + Hero Info (flex layout, dedup) */

/* =========================
   Hero list panel
   ========================= */
.hero-panel {
    height: 92%;
}

.hero-header {
    color: var(--btn_color_q);
    height: 10%;
}

.hero-title {
    font-size: 18px;
    font-weight: 700;
    padding: 8px;
    background: rgb(0 0 0 / 10%);
}

.hero-stat-pill {
    background: rgb(0 0 0 / 30%);
    padding: 1px 10px;
    border-radius: 4px;
    color: #ffdf36;
}

.hero-filter-btn {
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 0px;
    font-size: 15px;
}

.hero-footer {
    height: 10%;
    background: rgb(0 0 0 / 20%);
    padding: 5px 80px;
}

/* list outer not scroll */
.hero-content {
    height: 80%;
    overflow: hidden;
    overscroll-behavior: contain;
}

/* list inner scroll */
.hero-loop {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .hero-loop::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* =========================
   Native dropdown (sort)
   ========================= */
.hero-sort {
    position: relative;
    display: inline-block;
}

.hero-sort-btn {
    background: var(--bg_bg_q);
    color: var(--btn_color_s);
    border: 1px solid rgba(255,255,255,0.15);
    height: 24px;
    font-size: 12px;
    padding: 2px 22px 2px 8px;
    border-radius: 6px;
    width: 100px;
    position: relative;
}

    .hero-sort-btn::after {
        content: "▼";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        opacity: 0.85;
    }

.hero-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 100px;
    background: var(--btn_bg_q);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    z-index: 9999;
    padding: 4px;
}

.hero-sort-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--btn_color_s);
    font-size: 12px;
    padding: 6px 8px;
}

    .hero-sort-item:active {
        background: rgba(255,255,255,0.08);
    }

/* =========================
   Hero Info Panel (overlay)
   Layout: top 70% + mid 10% + bottom 20%
   ========================= */
.hero-info-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 150;
    color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:var(--btn_bg_s)
}

.hero-info-top {
    position: relative;
    height: 88%;
    background: #c2c4644f;
    overflow: hidden;
}

.hero-info-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Close button (top-right) */
.hero-info-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 21px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 60;
}

/* Prev/Next hero */
.hero-info-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 34px;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    z-index: 55;
    user-select: none;
}

.hero-info-nav-prev {
    left: 10px;
}

.hero-info-nav-next {
    right: 10px;
}

.hero-video-actions {
    position: absolute;
    left: 15px;
    bottom: 15px;
    display: flex;
    gap: 10px;
    z-index: 40;
}

.hero-action-button {
}

/* =========================
   Mid (10%) — flex (no row/col)
   ========================= */
.hero-info-mid {
    height: 12%;
    min-height: 88px; /* 防止小屏字体挤爆 */
    background: rgb(0 0 0 / 20%);
    display: flex;
    gap: 0px;
    padding: 4px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-mid-left {
    width: 70%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.hero-mid-left-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hero-mid-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.hero-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--btn_border_q);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffdca3;
    font-weight: 800;
    font-size:14px;
}

.hero-faction-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--btn_border_q);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffdca3;
    font-weight: 800;
    font-size: 14px;
}

.hero-mid-name {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 1px;
}


.hero-level-text {
    font-size: 13px;
    color: #ffdca3;
    white-space: nowrap;
    background: rgba(0,0,0,0.30);
    padding: 2px 6px;
    border-radius:6px;
}

.hero-mid-left-bottom {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.hero-stat-card {
    background: rgba(0,0,0,0.30);
    border-radius: 6px;
    padding: 4px 18px;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.hero-stat-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--btn_color_q);
}

.hero-mid-right {
    width: 30%;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    align-items: center;
}

.hero-levelup-btn {
    border-radius: 6px;
}

.hero-levelup-badge {
    position: absolute;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px 6px;
    line-height: 1;
}

.hero-levelup-need {
    font-size: 11px;
    color: #ffeccf;
    display: inline-flex;
    align-items: center; /* 上下居中 */
    white-space: nowrap;
}

.hero-levelup-ten {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--btn_color_q);
}

    .hero-levelup-ten input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin: 0;
        accent-color: var(--btn_bg_s);
    }

/* =========================
   Bottom (20%) — flex (2 rows)
   ========================= */
.hero-info-bottom2 {
    height: 20%;
    min-height: 100px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.10));
    
    box-sizing: border-box;
    overflow: hidden;
}

.hero-skill-strip {
    flex: 0 0 auto;
    overflow: hidden;
}

.hero-skill-icons-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 40px;
    padding: 2px 12px;
}

    .hero-skill-icons-row::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.hero-skill-icon {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ffdca3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    user-select: none;
}

.hero-skill-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 6px;
    overflow: hidden;
}

/* left: name + desc */
.hero-skill-desc {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 10px;
    overflow: hidden;
}

.hero-skill-name {
    font-weight: 900;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-skill-effect {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
    overflow: hidden;
}

/* cost */
.hero-skill-cost {
    flex: 0 0 120px;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}

.hero-skill-material-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffdca3;
    font-weight: 900;
}

.hero-skill-material-text {
    font-size: 12px;
    color: #ffeccf;
}

/* right: upgrade + ten */
.hero-skill-actions {
    max-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    /* 关键：横向居中 */
    align-items: center;
}

.hero-skill-upgrade-btn {
    border-radius: 6px;
}

.hero-skill-up-ten {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--btn_color_q);
}

    .hero-skill-up-ten input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin: 0;
        accent-color: var(--btn_bg_s);
    }

/* =========================
   Popup
   ========================= */
.hero-popup-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 220;
}

    .hero-popup-bg.hidden {
        display: none;
    }

.hero-popup-card {
    background: #1a140e;
    padding: 14px;
    border-radius: 10px;
    width: 420px;
    color: #ffdca3;
    position: relative;
}

.hero-popup-close {
    position: absolute;
    right: 10px;
    top: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}

.hero-popup-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 8px;
}

.hero-popup-section {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-popup-col {
    flex: 1;
}

.hero-popup-subtitle {
    color: #f3e6d0;
    font-weight: 800;
    margin-bottom: 6px;
}

.hero-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hero-popup-do-btn {
    padding: 8px 12px;
    background: linear-gradient(180deg,#ffb357,#e0801a);
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}
/* 覆盖：中部左右必须同一行 70%/30% */
.hero-info-mid {
    flex-wrap: nowrap;
    align-items: center;
}

.hero-mid-left {
    flex: 0 0 70%;
    width: auto;
    min-width: 0;
}

.hero-mid-right {
    flex: 0 0 30%;
    width: auto;
    min-width: 0; /* 覆盖原来的 min-width:150px，避免挤到下一行 */
}
.hero-levelup-need-img {
    max-height: 20px;
    margin-right:5px;
}

/* hero-skill-area 三列宽度：60% / 20% / 20% */
.hero-skill-area {
    display: flex;
    gap: 6px;
}

    /* 1) 左侧描述 60% */
    .hero-skill-area .hero-skill-desc {
        flex: 0 0 55%;
        min-width: 0; /* 防止内容撑爆 */
    }

    /* 2) 中间消耗 20% */
    .hero-skill-area .hero-skill-cost {
        flex: 0 0 20%;
        max-width: none; /* 覆盖原来的 max-width:120px */
    }

    /* 3) 右侧操作 20% */
    .hero-skill-area .hero-skill-actions {
        flex: 0 0 22%;
        max-width: none; /* 覆盖原来的 max-width:150px */
    }

/* 额外材料：一行显示（两项并排），不够则自动换行 */
.hero-levelup-need-items {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap; /* 两个 div 强制同一行 */
    white-space: nowrap;
}
.hero-skill-upgrade-btn-img{
    display:none;
    max-width:60px;
}

/* =========================
   Hero action modals (star/exclusive/promotion)
   ========================= */
.hero-action-modal.hidden {
    display: none;
}

.hero-action-modal {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    box-sizing: border-box;
}

.hero-action-modal-card {
    width: min(520px, 92vw);
    background: var(--btn_bg_s);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 14px 14px 28px 14px;
    position: relative;
    color: #fff;
}

.hero-action-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
}

.hero-action-modal-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.hero-action-modal-subtitle {
    text-align: center;
    opacity: 0.85;
    font-size: 16px;
    margin-top: 6px;
}

.hero-action-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.hero-action-modal-col {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px;
    min-height: 120px;
}

.hero-action-modal-col-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.9;
}

.hero-action-modal-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    opacity: 0.95;
}

.hero-action-modal-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-action-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.hero-action-modal-do[disabled] {
    opacity: 0.45;
    pointer-events: none;
}
/* =========================
   Star modal (hero-action-modal="star")
   ========================= */
.hero-action-modal-card-star .hero-star-lines {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.hero-action-modal-card-star .hero-star-line {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1.2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hero-action-modal-card-star .hero-star-line-label {
    opacity: 0.9;
    white-space: nowrap;
}

.hero-action-modal-card-star .hero-star-line-value {
    white-space: nowrap;
}

.hero-action-modal-card-star .hero-star-val-cur {
    color: #7fe07f; /* 绿 */
    font-weight: 800;
}

.hero-action-modal-card-star .hero-star-val-next {
    color: #fff; /* 白 */
    font-weight: 800;
}

.hero-action-modal-card-star .hero-star-cost {
    margin-top: 12px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-action-modal-card-star .hero-star-cost-label {
    font-size: 13px;
    opacity: 0.9;
}

.hero-action-modal-card-star .hero-star-cost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-action-modal-card-star .hero-star-cost-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-action-modal-card-star .hero-star-cost-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-action-modal-card-star .hero-star-cost-count {
    font-size: 12px;
    white-space: nowrap;
}
/* =========================
   Hero action modals - one column mode
   ========================= */
.hero-action-modal-lines-onecol {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.hero-action-modal-line-row {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hero-action-modal-line-label {
    opacity: 0.9;
    white-space: nowrap;
}

.hero-action-modal-line-value {
    white-space: nowrap;
}

.hero-action-modal-val-cur {
    color: #7fe07f;
    font-weight: 800;
}

.hero-action-modal-val-next {
    color: #fff;
    font-weight: 800;
}

.hero-action-modal-cost {
    margin-top: 12px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-action-modal-cost-title {
    font-size: 13px;
    opacity: 0.9;
}

.hero-action-modal-cost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-action-modal-cost-icon {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-action-modal-cost-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-action-modal-cost-count {
    font-size: 12px;
    white-space: nowrap;
}
/* 战斗力详情入口 "!" */
.hero-stat-label-desc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: rgb(0 0 0);
    border: 1px solid rgb(255 255 255 / 78%);
    color: #ffdf36;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
}
}

/* 详情弹框：卡片宽度跟升星类似（不破坏原有） */
.hero-action-modal-card-fighting-detail {
    width: min(92vw, 420px);
}
/* =========================
   Hero Desc (detail) full-screen modal
   ========================= */
.hero-desc-modal {
    padding: 0; /* 覆盖 hero-action-modal 默认 padding */
}

.hero-desc-modal-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--btn_bg_s);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hero-desc-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
    z-index: 2;
}

.hero-desc-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    padding: 6px 56px 10px 56px; /* 给右上角关闭按钮留空间 */
    flex: 0 0 auto;
}

.hero-desc-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto; /* 可滚动查看 */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 18px 10px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/旧 Edge */
}
    .hero-desc-modal-body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.hero-desc-modal-text {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}
.hero-action-detail-desc {
    position:absolute;
    right:15px;
    bottom:15px;
}


.hero-header {
    color: var(--btn_color_q);
    height: 10%;
}

.hero-title {
    font-size: 18px;
    font-weight: 700;
    padding: 8px;
    background: rgb(0 0 0 / 10%);
}

.hero-stat-pill {
    background: rgb(0 0 0 / 30%);
    padding: 1px 10px;
    border-radius: 4px;
    color: #ffdf36;
}

.hero-filter-btn {
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 0px;
    font-size: 15px;
}

.hero-footer {
    height: 10%;
    background: rgb(0 0 0 / 20%);
    padding: 10px 80px;
}

/* list outer not scroll */
.hero-content {
    height: 80%;
    overflow: hidden;
    overscroll-behavior: contain;
}

/* list inner scroll */
.hero-loop {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .hero-loop::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* =========================
   Native dropdown (sort)
   ========================= */
.hero-sort {
    position: relative;
    display: inline-block;
}

.hero-sort-btn {
    background: var(--bg_bg_q);
    color: var(--btn_color_s);
    border: 1px solid rgba(255,255,255,0.15);
    height: 24px;
    font-size: 12px;
    padding: 2px 22px 2px 8px;
    border-radius: 6px;
    width: 100px;
    position: relative;
}

    .hero-sort-btn::after {
        content: "▼";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        opacity: 0.85;
    }

.hero-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 100px;
    background: var(--btn_bg_q);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    z-index: 9999;
    padding: 4px;
}

.hero-sort-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--btn_color_s);
    font-size: 12px;
    padding: 6px 8px;
}

    .hero-sort-item:active {
        background: rgba(255,255,255,0.08);
    }

/* =========================
   Hero Info Panel (overlay)
   Layout: top 70% + mid 10% （底部技能已移到弹框）
   ========================= */
.hero-info-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 150;
    color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--btn_bg_s)
}

.hero-info-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Close button (top-right) */
.hero-info-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 21px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 60;
}

/* Prev/Next hero */
.hero-info-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 34px;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    z-index: 55;
    user-select: none;
}

.hero-info-nav-prev {
    left: 10px;
}

.hero-info-nav-next {
    right: 10px;
}

.hero-video-actions {
    position: absolute;
    left: 15px;
    bottom: 15px;
    display: flex;
    gap: 10px;
    z-index: 40;
}

/* =========================
   ✅ Skill modal (new)
   ========================= */
.hero-action-modal-card-skill {
    width: 100%;
    max-width: 600px;
}

.hero-skill-modal-body {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 技能图标：每行 6 个，自动换行 */
.hero-skill-icons-row-modal {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    align-items: start;
    justify-items: center;
    width: 100%;
}

    /* 让单个 icon 容器仍沿用原 hero-skill-icon 视觉 */
    .hero-skill-icons-row-modal .hero-skill-icon {
        width: 44px;
        height: 44px;
    }

/* 维持原技能区块的布局风格 */
.hero-skill-strip-modal {
    background: #ffffff14;
    border-radius: 4px;
    padding: 6px;
}

.hero-skill-area-modal {
    background: transparent;
}

/* 满级图标：默认不占位不乱跳 */
.hero-skill-upgrade-btn-img {
    display: none;
    max-width: 60px;
}

.hero-action-button {
    position: relative;
}

.hero-action-level-badge {
    position: absolute;
    right: -8px;
    top: -12px;
    display: none; /* 默认不显示，JS 按等级控制 */
    pointer-events: none;
}
}

.hero-action-level-badge-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    display: block;
}

.hero-action-level-badge-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}


.hero-info-panel-top-title {
    position: absolute;
    right: 5%;
    top: 10%;
    /* transform: translateX(-50%); */
    background: #0000007d;
    text-align: center;
    z-index: 160;
    pointer-events: none;
    padding: 10px 0px;
    border-radius: 6px;
    border: 2px solid var(--btn_border_q);
}
.hero-info-panel-top-title-font {
    color: rgb(254 254 254);
    writing-mode: vertical-rl;
    letter-spacing: 6px;
    font-size: 30px;
    font-family: "STXingkai", "华文行楷", "LiSu", serif;
}
.five_all {
    border: 2px solid rgb(255, 223, 0);
    background: rgb(90, 70, 139);
    color: rgb(187, 195, 239);
}
.five_jin {
    border: 1px solid rgb(255, 223, 0);
    background: rgb(129, 113, 66);
    color: rgb(201, 197, 163);
}
.five_mu {
    border: 1px solid rgb(255, 223, 0);
    background: rgba(78, 125, 69, 0.88);
    color: rgb(181, 227, 174);
}
.five_shui {
    border: 1px solid rgb(255, 223, 0);
    background: rgb(84, 115, 115);
    color: rgb(167, 202, 203);
}
.five_huo {
    border: 1px solid rgb(255, 223, 0);
    background: rgb(169, 71, 42);
    color: rgb(221, 169, 169);
}
.five_tu {
    border: 1px solid rgb(255, 223, 0);
    background: rgb(113, 89, 60);
    color: rgb(191, 172, 143);
}

.hero-equip-row {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 78px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    z-index: 45;
}

.hero-equip-slot-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-equip-slot-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    height: 78%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.hero-equip-slot-empty-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0.8;
    width: 100%;
    height: 100%;
}

.hero-equip-slot-part {
    position: absolute;
    left: 4px;
    bottom: 4px;
    padding: 1px 4px;
    border-radius: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.hero-equip-slot-strength {
    position: absolute;
    left: 4px;
    top: 4px;
    padding: 1px 4px;
    border-radius: 6px;
    background: rgba(0,0,0,0.45);
    color: #7dff8d;
    font-size: 11px;
    line-height: 1.2;
}

.hero-equip-slot-level {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.65);
    color: #fff2bf;
    font-size: 11px;
    line-height: 1.2;
    min-width: 20px;
}
.hero-equip-row {
    position: absolute;
    bottom: 70px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 45;
}

.hero-equip-slot {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero-equip-slot-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-equip-slot-icon,
.hero-equip-slot-empty-icon {
    object-fit: contain;
    display: block;
}

.hero-equip-slot-icon {
}

.hero-equip-slot-empty-icon {
}

.hero-equip-slot-five,
.hero-equip-slot-strength,
.hero-equip-slot-advance,
.hero-equip-slot-level {
    position: absolute;
    z-index: 3;
    padding: 1px 2px;
    line-height: 1.1;
    border-radius: 6px;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.hero-equip-slot-five {
    right: 0px;
    top: 0px;
    border-radius: 50%;
}

.hero-equip-slot-strength {
    left: 2px;
    top: 2px;
    color: #7dff8d;
}


.hero-equip-slot {
    overflow: visible;
}

.hero-equip-slot-inner {
    overflow: hidden;
}

.hero-equip-slot-advance {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: max-content;
    z-index: 8;
    pointer-events: none;
}

.hero-equip-advance-star {
    width: 15px;
    height: 14px;
    object-fit: contain;
    display: block;
}
    .hero-equip-advance-star + .hero-equip-advance-star {
        margin-left: -6px;
    }
.hero-equip-slot-empty {
    background: transparent !important;
    border:0px;
}

    .hero-equip-slot-empty .hero-equip-slot-inner {
        background: transparent !important;
    }
.hero-action-modal-level-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    object-fit: contain;
}