﻿#map-tower-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    z-index: 100;
    background: #000;
}

.map-tower-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#map-tower-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

#map-tower-close-btn {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 20;
    width: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-tower-home-layer,
.map-tower-list-layer {
    position: absolute;
    inset: 0;
}

.map-tower-home-layer {
    z-index: 5;
}

.map-tower-list-layer {
    z-index: 30;
}

    .map-tower-home-layer.hidden,
    .map-tower-list-layer.hidden {
        display: none;
    }

.tower-home-entry {
    position: absolute;
    width: 76px;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

    .tower-home-entry:active {
        transform: scale(0.98);
    }

.tower-home-entry-floor {
    min-width: 64px;
    padding: 4px;
    text-align: center;
    color: #fee582;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    background: rgba(0, 0, 0, 0.42);
    border-radius: 6px;
    white-space: nowrap;
}
.tower-home-entry-name {
    position: relative;
    width: 50px;
    height: 120px;
    color: rgb(255 244 211);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    font-size: 20px;
    font-family: 'GameXingkai', "STXingkai", "华文行楷", "LiSu", serif;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    min-width: 44px;
    min-height: 100px;
    box-sizing: border-box;
    padding-top: 10px;
}

    .tower-home-entry-name::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/resource/image/test1/home_title_back.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 120%;
        opacity: 0.78;
        z-index: -1;
        pointer-events: none;
    }

#tower-home-entry-0 {
    left: 40%;
    top: 45%;
}

#tower-home-entry-1 {
    left: 8%;
    top: 58%;
}

#tower-home-entry-2 {
    left: 10%;
    top: 34%;
}

#tower-home-entry-3 {
    left: 72%;
    top: 58%;
}

#tower-home-entry-4 {
    left: 69%;
    top: 34%;
}

#tower-home-entry-5 {
    left: 40%;
    top: 70%;
}

.map-tower-list-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.28);
}

#map-tower-list-title {
    color: #ffe2a1;
    font-size: 18px;
    font-weight: 700;
}

#map-tower-list-close-btn {
    position: fixed;
    left: 12px;
    bottom: 12px;
    top: auto;
    right: auto;
    transform: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 35;
}

.map-tower-list-scroll {
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 18px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox：隐藏滚动条 */
}

.map-tower-level-card {
    position: relative;
    width: 100%;
    min-height: 220px;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

    .map-tower-level-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.28);
    }

.map-tower-level-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 220px;
    padding: 0px 0px 58px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.map-tower-level-floor {
    color: #fff3c6;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    width: 100%;
    background-color: #0000004f;
    padding: 3px;
}

.map-tower-hero-list,
.map-tower-reward-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.map-tower-hero-list {
    max-width: 360px;
    margin: 0 auto;
}

.map-tower-hero-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: rgb(156 137 137 / 66%);
    border: 2px solid rgb(245 222 222 / 98%);
    flex: 0 0 50px;
}

    .map-tower-hero-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.map-tower-hero-lv {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    line-height: 14px;
    font-size: 10px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}

.map-tower-level-btn {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    min-width: 120px;
    height: 40px;
    border: 0px solid var(--btn_border_q, #e2c18e);
    z-index: 2;
}

    .map-tower-level-btn:active {
        transform: translateX(-50%) scale(0.98);
    }

.map-tower-header-icon-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .map-tower-header-icon-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

#map-tower-task-btn {
    right: 56px;
}

#map-tower-rank-btn {
    right: 100px;
}