/* ====================== */
/* 装备系统样式 */
/* ====================== */

.equip-container {
    max-width: 1000px;
    margin: 0 auto;
}

.equip-header {
    text-align: center;
    margin-bottom: 25px;
}

.equip-header h2 { color: #ff6b35; font-size: 2em; }
.equip-header .subtitle { color: #aaa; }

/* 标签 */
.equip-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.equip-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.equip-tab:hover { background: rgba(255,107,53,0.15); }
.equip-tab.active { 
    background: rgba(255,107,53,0.3); 
    border-color: #ff6b35; 
    color: #fff; 
}

.equip-panel { display: none; }
.equip-panel.active { display: block; }

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h3 { color: #3498db; }
.equip-count { color: #aaa; font-size: 14px; }

/* 装备网格 */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.equip-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.equip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.equip-slot-icon { font-size: 32px; margin-bottom: 8px; }
.equip-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.equip-quality { font-size: 12px; color: #aaa; margin-bottom: 8px; }

.equip-stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    font-size: 11px;
    color: #2ecc71;
}

.equip-set-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    background: rgba(155,89,182,0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #9b59b6;
}

.equip-equipped {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(46,204,113,0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #2ecc71;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #aaa;
    grid-column: 1 / -1;
}

/* 宠物选择 */
.pet-select {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.pet-select option { background: #1a1a2e; color: #fff; }

/* 宠物穿戴槽位 */
.pet-equip-slot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.equip-slot {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.equip-slot.filled {
    border-style: solid;
    background: rgba(255,255,255,0.06);
}

.slot-icon { font-size: 36px; margin-bottom: 8px; }
.slot-name { font-size: 13px; color: #aaa; margin-bottom: 4px; }
.slot-empty-text { font-size: 13px; color: #666; }

.slot-equip-name { font-weight: 600; font-size: 14px; }
.slot-quality { font-size: 11px; color: #aaa; margin-bottom: 6px; }

.slot-stats {
    display: flex;
    gap: 6px;
    justify-content: center;
    font-size: 12px;
    color: #2ecc71;
}

.slot-set {
    margin-top: 6px;
    font-size: 11px;
    color: #9b59b6;
}

/* 属性对比 */
.stats-compare {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.stats-compare h4 { color: #3498db; margin-bottom: 15px; }

.stats-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.stat-compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 13px;
}

.stat-label { color: #aaa; min-width: 50px; }
.stat-base { color: #666; }
.stat-arrow { color: #ff6b35; }
.stat-final { color: #2ecc71; font-weight: 600; }
.stat-bonus { color: #f1c40f; font-size: 11px; }

/* 激活的套装 */
.active-sets {
    margin-top: 20px;
}

.active-sets h4 { color: #9b59b6; margin-bottom: 12px; }

.set-effect-card {
    background: rgba(155,89,182,0.1);
    border: 1px solid rgba(155,89,182,0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.set-name { font-weight: 600; color: #9b59b6; min-width: 80px; }
.set-count { font-size: 12px; color: #aaa; }

.set-effects { display: flex; gap: 10px; }

.set-effect {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.set-effect.half { background: rgba(52,152,219,0.15); color: #3498db; }
.set-effect.full { background: rgba(155,89,182,0.15); color: #9b59b6; }

/* 套装图鉴网格 */
.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.set-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
}

.set-icon { font-size: 40px; margin-bottom: 10px; }
.set-name { font-weight: 600; font-size: 16px; color: #9b59b6; margin-bottom: 4px; }
.set-desc { font-size: 12px; color: #aaa; margin-bottom: 15px; }

.set-effects { display: flex; flex-direction: column; gap: 8px; }

.set-effect .effect-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
}

.set-effect.half .effect-badge { background: rgba(52,152,219,0.2); color: #3498db; }
.set-effect.full .effect-badge { background: rgba(155,89,182,0.2); color: #9b59b6; }

/* 装备详情弹窗 */
.equip-detail-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.equip-detail-card {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    position: relative;
}

.detail-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

.detail-icon { margin-bottom: 10px; }
.detail-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.detail-quality { font-size: 13px; color: #aaa; margin-bottom: 8px; }
.detail-slot { font-size: 13px; color: #aaa; margin-bottom: 6px; }
.detail-set { margin-bottom: 15px; font-size: 13px; color: #9b59b6; }

.detail-stats {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.detail-stats h4 { color: #3498db; margin-bottom: 10px; font-size: 14px; }

.detail-stat {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.detail-stat .stat-val { color: #2ecc71; font-weight: 600; }

.detail-equipped {
    margin-top: 15px;
    padding: 6px;
    background: rgba(46,204,113,0.1);
    border-radius: 6px;
    color: #2ecc71;
    font-size: 13px;
}

/* ====================== */
/* 对战系统样式 */
/* ====================== */

.battle-container {
    max-width: 800px;
    margin: 0 auto;
}

.battle-header {
    text-align: center;
    margin-bottom: 25px;
}

.battle-header h2 { color: #ff6b35; font-size: 2em; }
.battle-header .subtitle { color: #aaa; }

/* 设置区域 */
.battle-setup {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 25px;
}

.setup-section {
    margin-bottom: 20px;
}

.setup-section > label {
    display: block;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
}

/* 战术选择 */
.tactic-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tactic-btn {
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: #fff;
}

.tactic-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.tactic-btn.active {
    border-color: #ff6b35;
    background: rgba(255,107,53,0.2);
    box-shadow: 0 0 15px rgba(255,107,53,0.2);
}

.tactic-icon { display: block; font-size: 32px; margin-bottom: 6px; }
.tactic-name { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.tactic-desc { display: block; font-size: 11px; color: #aaa; }

/* 开战按钮 */
.btn-battle {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-battle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231,76,60,0.3);
}

/* 战斗结果 */
.battle-result {
    text-align: center;
}

.result-header { margin-bottom: 20px; }

.result-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-title.win { color: #2ecc71; }
.result-title.lose { color: #e74c3c; }

.result-summary {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-combatants {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

.vs {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

.combatant { text-align: center; }
.combatant.winner { position: relative; }
.combatant.winner::after {
    content: '👑';
    display: block;
    font-size: 24px;
    margin-top: 4px;
}

.combatant-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.combatant-hp { font-size: 14px; color: #2ecc71; margin-bottom: 4px; }
.combatant-tactic { font-size: 12px; color: #aaa; background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; display: inline-block; }

.result-rounds {
    font-size: 14px;
    color: #aaa;
}

/* 战斗日志 */
.battle-log {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
}

.battle-log h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 16px;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.log-system { color: #3498db; }
.log-tactic { color: #f1c40f; }
.log-counter { color: #2ecc71; font-style: italic; }
.log-crit { color: #e74c3c; font-weight: 600; }
.log-dodge { color: #3498db; font-style: italic; }
.log-momentum { color: #9b59b6; font-style: italic; }
.log-result { color: #f1c40f; font-size: 16px; font-weight: 600; }

/* 战斗说明 */
.battle-info {
    margin-top: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
}

.battle-info h3 { color: #3498db; margin-bottom: 12px; }

.battle-info ul {
    list-style: none;
    padding: 0;
}

.battle-info li {
    padding: 6px 0;
    color: #aaa;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 加载 */
.loading-state {
    text-align: center;
    padding: 40px;
}
.loading-state p { color: #aaa; margin-top: 15px; }
