
/* ==================== 装备区域样式 ==================== */

.equipment-section {
    padding: 8px 10px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
}

.equipment-container {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    height: 330px;
}

/* 角色立绘 */
.character-center {
    width: 150px;
    height: 100px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 90px;
    opacity: 0.2;
    z-index: 0;
}

/* 装备槽位基础样式 */
.equip-slot {
    position: absolute;
    width: 70px;
    height: 62px;
    background: rgba(20,20,30,0.8);
    border: 1px solid rgba(127, 125, 122, 0.5);
    /*border: 1px solid rgba(255,140,0,0.5);*/
    border-radius: 8px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.equip-slot.highlight {
    border: 2px solid #ff4444;
    box-shadow: 0 0 12px rgba(255,68,68,0.4);
    background: rgba(148,47,105,0.4);
}
.equip-slot.highlight2 {
    background: rgba(0,80,160,0.4);
    border: 2px solid rgba(0,150,255,0.6);
    box-shadow: 0 0 12px rgba(0,150,255,0.3);
}

.equip-slot.special {
    background: rgba(0,80,160,0.4);
    border: 1px solid rgba(0,150,255,0.6);
    box-shadow: 0 0 12px rgba(0,150,255,0.3);
}

.equipment-container .name {
    font-size: 10px;
    margin-bottom: 6px;
    font-weight: bold;
    width: 100%;
    white-space: nowrap;
    /*color: #d5e6e0;*/
}
.equipment-container .tzName,.bag-item .tzName{
    position: absolute;
    left: 2px;
    bottom: 2px;
    color: #00FFFF;
    font-size: 8px;
}
.equipment-container .level{
    position: absolute;
    right: 0px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
    text-align: center;
}
.equipment-container .equip-name{
    font-size: 18px;
    color: #7f7e79;
    opacity: 0.1;
    position: absolute;
    letter-spacing: 6px;
}
.dzLevel{
    padding: 2px 6px;
    background: rgba(137, 97, 37, 0.3);
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 3px;
    color: #dba14f;
    font-size: 8px;
}
.dzLevel:empty{
    padding: 0 !important;
}


/* 12个装备部位位置布局 */
/* 左侧列 */
.slot-1 { top: 0; left: 0; }
.slot-2 { top: 66px; left: 0; }
.slot-3 { top: 132px; left: 0; }
.slot-4 { top: 198px; left: 0; }

/* 顶部中间 */
.slot-5 { top: 0; left: 50%; transform: translateX(-50%); }

/* 右侧列 */
.slot-6 { top: 0; right: 0; }
.slot-7 { top: 66px; right: 0; }
.slot-8 { top: 132px; right: 0; }
.slot-9 { top: 198px; right: 0; }

/* 底部一排三个 */
.slot-10 {
    top: 275px;
    left: 50%;
    transform: translateX(-50%);
}
.slot-11 { top: 264px; left: 0; }
.slot-12 { top: 264px; right: 0; }

/* 装备辅助功能 */
.equip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 12px;
}

.wardrobe-tabs {
    display: flex;
    gap: 6px;
}

.wardrobe-tab {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.equip-btns {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

.btn-auto {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

/* ==================== 属性区域样式 ==================== */

.attributes-section {
    padding: 15px 12px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;

    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-subtle);
    margin: 0 var(--space-md);
}

.attr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.attr-name {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.attr-value {
    font-size: 11px;
    color: var(--color-green);
    font-weight: 600;
}

/* ==================== 技能区域样式 ==================== */

.skill-section {
    padding: 12px;
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
}

/* 技能条目基础样式 */
.skill-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 8px;
    position: relative;
    min-height: 70px;
}

/* 已上阵 - 红色（核心技能） */
.skill-item.active-red {
    background: rgba(139,0,0,0.3);
    border: 2px solid #dc2626;
}

/* 已上阵 - 蓝色（主动攻击） */
.skill-item.active-blue {
    background: rgba(0,50,139,0.3);
    border: 2px solid #3b82f6;
}

/* 已上阵 - 绿色（辅助技能） */
.skill-item.active-green {
    background: rgba(0,100,50,0.3);
    border: 2px solid #22c55e;
}

/* 已上阵 - 普通灰色 */
.skill-item.active-gray {
    background: rgba(50,50,50,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 未上阵 */
.skill-item.inactive {
    background: rgba(30,30,30,0.4);
    border: 1px solid rgba(100,100,100,0.3);
    opacity: 0.7;
}

/* 技能类型标签 */
.skill-type {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

/* 技能名称 */
.skill-name {
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
}

.skill-name.red { color: #f87171; }
.skill-name.blue { color: #60a5fa; }
.skill-name.green { color: #4ade80; }
.skill-name.white { color: #fff; }
.skill-name.gray { color: rgba(255,255,255,0.6); }

/* 上阵状态 */
.skill-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    color: #4ade80;
}

.skill-status.inactive {
    color: rgba(255,255,255,0.4);
}

/* 技能等级 */
.skill-level {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
}

/* ==================== 标签切换 ==================== */

.tab-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    padding: 2px 12px 0px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 999;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    background: none;
    border: none;
}

.tab-item.active,.tab2_btn .btnChecked,.toolbar-btn.btnChecked {
    color: #60a5fa;
    background: rgba(96,165,250,0.1);
    border-bottom: 2px solid #60a5fa;
}
.tab2_btn .bg_active,.toolbar-btn.bg_active{
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

/* ==================== 底部导航 ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 6px 6px;
    background: linear-gradient(180deg, rgba(10,14,26,0.98) 0%, rgba(5,8,16,1) 100%);
    border-top: 1px solid rgba(218,165,32,0.3);
    flex-shrink: 0;
    /*z-index: 2;*/
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;;
}
.nav-item:hover { opacity: 0.8; }
.nav-item:active {
    transform: scale(0.9);
}
.nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(139,69,19,0.3);
    border: 2px solid rgba(218,165,32,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}


.nav-item.active .nav-icon {
    background: rgba(218,165,32,0.3);
    border-color: #daa520;
}

.nav-text {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
}

.nav-item.active .nav-text {
    color: #daa520;
}
.nav-item.btnBg .nav-icon {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(180, 130, 20, 0.3) 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: navPulse 2s ease-in-out infinite;
}
.nav-item.btnBg .nav-text {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

@keyframes navPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

/* ==================== 公告弹框样式 ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    width: 90%;
    max-width: 340px;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}
/* ==================== 装备详情弹窗样式 ==================== */

.modal-content.equip-modal {
    max-width: 380px;
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-content.equip-modal .modal-header {
    border-bottom-color: rgba(74, 222, 128, 0.2);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.1) 0%, transparent 100%);
}

.modal-content.equip-modal .modal-title {
    color: rgba(74, 222, 128, 0.9);
    min-height: 20px;
}

.modal-content.equip-modal .modal-subtitle {
    color: rgba(255, 200, 100, 0.8);
    font-size: 10px;
}

.modal-equip-body {
    gap: 12px;
    padding: 12px;
    overflow: auto;
    max-height: 70vh;
    margin-bottom: 80px;
}

.modal-equip-info {
    flex: 1;
    min-width: 0;
}

.modal-equip-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-width: 60px;
    overflow: auto;
}

.modal-action-btn,.modal-equip-actions>div {
    width: 100%;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.modal-action-btn:active,.modal-equip-actions>div:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.modal-action-btn.primary,.modal-equip-actions .primary-btn {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(34, 197, 94, 0.3) 100%);
    border-color: rgba(74, 222, 128, 0.5);
    color: rgba(74, 222, 128, 1);
}

.modal-action-btn.warning,.modal-equip-actions .warning-btn {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.4);
    color: rgba(255, 150, 150, 1);
}

.modal-btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0e1a;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.modal-btn-secondary,.modal-equip-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.modal-btn-warning {
    background: linear-gradient(135deg, #ff7b00 0%, #ff5500 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 16px 16px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.modal-body {
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-version {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    text-align: center;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.modal-footer {
    padding: 8px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    position: absolute;
    bottom: 0px;
    background: #30374c;
    width: 100%;
}

.modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.modal-btn:active {
    transform: scale(0.98);
}


.modal-contact {
    font-size: 13px;
    color: #ffd700;
    font-weight: bold;
    text-align: center;
    margin-top: 12px;
}

/* ==================== 响应式 ==================== */

/*@media (max-width: 375px) {*/
/*    .game-title {*/
/*        font-size: 28px;*/
/*    }*/
/*}*/

/*@media (max-width: 360px) {*/
/*    .equip-slot {*/
/*        width: 46px;*/
/*        height: 46px;*/
/*    }*/
/*    .slot-2 { top: 50px; left: 0; }*/
/*    .slot-3 { top: 100px; left: 0; }*/
/*    .slot-4 { top: 150px; left: 0; }*/
/*    .slot-7 { top: 50px; right: 0; }*/
/*    .slot-8 { top: 100px; right: 0; }*/
/*    .slot-9 { top: 150px; right: 0; }*/
/*    .equipment-container {*/
/*        height: 250px;*/
/*    }*/
/*    .skill-item {*/
/*        padding: 8px 6px;*/
/*        min-height: 60px;*/
/*    }*/
/*    .skill-name {*/
/*        font-size: 12px;*/
/*    }*/
/*    .modal-btn {*/
/*        padding: 8px 10px;*/
/*        font-size: 12px;*/
/*    }*/
/*}*/

/* ==================== 背包页面样式 ==================== */

.bag-section {
    padding: 10px 12px;
}

.bag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 50%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.bag-title {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.bag-count {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.bag-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.bag-item {
    background: rgba(30,30,40,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.bag-item .name{
    font-size: 11px;
    /*color: #fff;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    padding: 0 2px;
}

.bag-item .level{
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}
.bag-item .type{
    position: absolute;
    left: 2px;
    top: 2px;
    color: #fff;
    font-size: 8px;
}

.bag-item:active {
    transform: scale(0.95);
}

.bag-item.selected {
    border-color: #ff4444;
    background: rgba(255,68,68,0.15);
}

/* 品质颜色 - 简化版 */
.bag-item.quality-legend {
    border-color: #ffd700;
}

.bag-item.quality-epic {
    border-color: #a855f7;
}

.bag-item.quality-rare {
    border-color: #3b82f6;
}

.bag-item.quality-uncommon {
    border-color: #22c55e;
}

.bag-item.quality-common {
    border-color: rgba(255,255,255,0.15);
}

.item-name {
    font-size: 9px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

.item-level {
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
