/* ===== 烽火地带 - 军事战术主题 ===== */
:root {
    /* 背景色系 - 战术暗色 */
    --bg-dark:      #0a0d0a;
    --bg-card:      #151a15;
    --bg-panel:     #111511;
    --bg-hover:     #1f2a1f;

    /* 强调色 - 军事配色 */
    --accent-primary: #5a7a4a;    /* 橄榄绿 */
    --accent-gold:    #b8a040;    /* 黄铜金 */
    --accent-red:     #8a2a2a;    /* 铁锈红 */
    --accent-blue:    #2a4a6a;    /* 战术蓝 */
    --accent-orange:  #c85020;    /* 警示橙 */

    /* 文字 */
    --text-primary:   #d0d8c8;
    --text-secondary: #809078;
    --text-dim:       #4a5a48;

    /* 边框 */
    --border:         #2a3a2a;
    --border-lit:     #4a6a4a;

    /* 装备品质颜色 */
    --tier-1: #6a6a6a;   /* 破旧 - 灰 */
    --tier-2: #8a8a8a;   /* 普通 - 浅灰 */
    --tier-3: #4a8a4a;   /* 标准 - 绿 */
    --tier-4: #4a7aaa;   /* 精良 - 蓝 */
    --tier-5: #8a5aaa;   /* 优秀 - 紫 */
    --tier-6: #caa030;   /* 完美 - 金 */

    /* 阴影 */
    --shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 15px;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ===== 屏幕切换 ===== */
.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
}

.screen.active { display: flex; }

.hidden { display: none !important; }

/* ===== 按钮样式 ===== */
.btn-primary {
    background: linear-gradient(135deg, #5a8a4a, #3a6a2a);
    color: #f0ffe0;
    border: 2px solid #6a9a5a;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a9a5a, #4a7a3a);
    box-shadow: 0 6px 20px rgba(90,138,74,0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #3a4a3a, #2a3a2a);
    color: #c8d8b8;
    border: 2px solid #4a5a4a;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5a4a, #3a4a3a);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a4a3a, #2a3a2a);
}

.btn-danger {
    background: linear-gradient(135deg, #6a2a2a, #5a1a1a);
    color: #e8c8c8;
    border: 1px solid #8a3a3a;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #8a3a3a, #6a2a2a);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    background: #2a3a2a;
    color: #a0b0a0;
    border: 1px solid #3a4a3a;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-back {
    background: transparent;
    color: #809078;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

.btn-back:hover { color: #b0c0a8; }

/* ===== 登录界面 ===== */
#screen-login {
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #0a0d0a 0%, #0f150f 50%, #0a0d0a 100%);
}

.login-container {
    text-align: center;
    padding: 40px;
}

.game-title {
    font-size: 52px;
    font-weight: bold;
    color: #e8f8d8;
    text-shadow: 0 0 40px rgba(90,122,74,0.8), 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 10px;
    margin-bottom: 8px;
}

.game-subtitle {
    color: #a0b0a0;
    font-size: 18px;
    margin-bottom: 40px;
    letter-spacing: 6px;
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 300px;
    padding: 30px;
    background: linear-gradient(135deg, #1a2a1a, #111511);
    border: 2px solid #4a6a4a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.login-box input {
    background: #0a0d0a;
    border: 2px solid #4a6a4a;
    color: #e8f8d8;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

.login-box input:focus {
    border-color: #6a8a6a;
    box-shadow: 0 0 12px rgba(90,138,74,0.4);
}

.login-box input::placeholder {
    color: #6a7a6a;
}

.login-buttons {
    display: flex;
    gap: 12px;
}

.login-buttons button {
    flex: 1;
}

.error-msg {
    color: #c85020;
    font-size: 13px;
    min-height: 18px;
}

/* ===== 大厅界面 ===== */
#screen-lobby {
    padding: 16px;
    background: linear-gradient(180deg, #0a0d0a 0%, #0f150f 50%, #0a0d0a 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a2a1a, #111511);
    border: 1px solid #3a5a3a;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#player-name {
    font-size: 18px;
    font-weight: bold;
    color: #e8f8d8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.currency {
    color: #dab040;
    font-size: 14px;
    font-weight: bold;
}

.currency-icon {
    margin-right: 4px;
}

/* 战备区域 */
.loadout-section {
    background: linear-gradient(135deg, #1a2a1a, #111511);
    border: 1px solid #3a5a3a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.loadout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.loadout-header h3 {
    font-size: 14px;
    color: #b8c8a8;
    font-weight: bold;
}

.loadout-section .loadout-value {
    color: #b8a040;
    font-size: 13px;
    font-weight: bold;
}

.loadout-section .loadout-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.loadout-section .loadout-slot {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 8px 10px;
    min-height: 50px;
}

.loadout-section .loadout-slot.consumables {
    grid-column: span 2;
}

.loadout-section .slot-label {
    display: block;
    font-size: 11px;
    color: #6a7a6a;
    margin-bottom: 4px;
}

.loadout-section .slot-content {
    min-height: 24px;
    font-size: 13px;
}

.loadout-section .slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: #1a2a1a;
    border-radius: 3px;
    font-size: 12px;
}

.loadout-section .slot-item-remove {
    background: transparent;
    border: none;
    color: #8a3a3a;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}

.loadout-section .loadout-name input {
    width: 100%;
    background: #0a0d0a;
    border: 1px solid #2a3a2a;
    color: #d0d8c8;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* 装备列表 */
#screen-lobby .loadout-inventory {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #0a0d0a;
    border: 1px solid #2a3a2a;
    border-radius: 6px;
    margin-bottom: 12px;
    min-height: 100px;
}

#screen-lobby .inventory-title {
    font-size: 12px;
    color: #6a7a6a;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a3a2a;
}

#screen-lobby .inventory-item {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-bottom: 6px;
}

#screen-lobby .inventory-item:hover {
    border-color: #4a6a4a;
    background: #1a2a1a;
}

#screen-lobby .inventory-item .stash-item-name {
    font-weight: bold;
    margin-bottom: 2px;
}

#screen-lobby .inventory-item .stash-item-value {
    font-size: 11px;
    color: #b8a040;
}

/* 操作按钮区 */
.lobby-actions {
    flex-shrink: 0;
}

.lobby-actions .btn-primary {
    width: 100%;
    margin-bottom: 12px;
}

.lobby-menu-row {
    display: flex;
    gap: 12px;
}

.menu-btn-small {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2a3a2a, #1a2a1a);
    border: 1px solid #3a5a3a;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn-small:hover {
    background: linear-gradient(135deg, #3a4a3a, #2a3a2a);
    border-color: #4a6a4a;
}

.menu-btn-small .menu-icon {
    font-size: 18px;
}

.menu-btn-small .menu-text {
    font-size: 14px;
    color: #c8d8b8;
}

/* ===== 屏幕头部 ===== */
.screen-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #111511;
    border-bottom: 1px solid #2a3a2a;
}

.screen-header h2 {
    flex: 1;
    font-size: 18px;
    color: #b8c8a8;
}

/* ===== 仓库界面 ===== */
.stash-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    align-content: start;
}

.stash-item {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.stash-item:hover {
    border-color: #4a6a4a;
}

.stash-item.selected {
    border-color: #5a8a4a;
    background: #1a2a1a;
}

.stash-item-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.stash-item-type {
    font-size: 12px;
    color: #6a7a6a;
}

.stash-item-value {
    font-size: 12px;
    color: #b8a040;
    margin-top: 4px;
}

.stash-actions {
    padding: 16px;
    border-top: 1px solid #2a3a2a;
    text-align: center;
}

/* ===== 任务选择 ===== */
.mission-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mission-card {
    background: linear-gradient(135deg, #1a2a1a, #151a15);
    border: 1px solid #2a3a2a;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mission-card:hover {
    border-color: #4a6a4a;
    transform: translateX(4px);
}

.mission-name {
    font-size: 18px;
    font-weight: bold;
    color: #c8d8b8;
    margin-bottom: 8px;
}

.mission-desc {
    font-size: 14px;
    color: #809078;
    margin-bottom: 12px;
}

.mission-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.mission-difficulty {
    color: #b8a040;
}

.mission-req {
    color: #6a7a6a;
}

/* ===== 装备配置 ===== */
.loadout-container {
    padding: 16px;
}

.loadout-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #111511;
    border-radius: 4px;
}

.loadout-value {
    color: #b8a040;
    font-weight: bold;
}

.loadout-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.loadout-slot {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 12px;
    min-height: 60px;
}

.loadout-slot.consumables {
    grid-column: span 2;
}

.slot-label {
    display: block;
    font-size: 12px;
    color: #6a7a6a;
    margin-bottom: 8px;
}

.slot-content {
    min-height: 30px;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #1a2a1a;
    border-radius: 3px;
}

.slot-item-name {
    font-size: 14px;
}

.slot-item-remove {
    background: transparent;
    border: none;
    color: #8a3a3a;
    cursor: pointer;
    font-size: 16px;
}

.loadout-name {
    margin-bottom: 16px;
}

.loadout-name input {
    width: 100%;
    background: #151a15;
    border: 1px solid #2a3a2a;
    color: #d0d8c8;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
}

.loadout-inventory {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    border-top: 1px solid #2a3a2a;
    background: #0a0d0a;
}

.inventory-title {
    font-size: 14px;
    color: #6a7a6a;
    margin-bottom: 12px;
}

.inventory-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.inventory-item {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.inventory-item:hover {
    border-color: #4a6a4a;
}

/* ===== 地图界面 ===== */
#screen-map {
    padding: 0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: #111511;
    border-bottom: 1px solid #2a3a2a;
    flex-shrink: 0;
}

#map-mission-name {
    font-weight: bold;
    font-size: 14px;
}

.map-progress {
    color: #809078;
    font-size: 13px;
}

.map-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 可视化地图容器 */
.map-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #0a0d0a 0%, #0f150f 50%, #0a0d0a 100%);
}

.map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 连接线样式 - 曲线 */
.map-connection {
    stroke: #3a4a3a;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s;
}

.map-connection:hover {
    stroke: #5a8a4a;
}

/* 节点组样式 */
.map-node-group {
    transition: transform 0.2s, opacity 0.3s;
}

.map-node-group.available {
    cursor: pointer;
}

.map-node-group.available:hover {
    filter: brightness(1.2);
}

.map-node-group.available:hover .node-rect {
    stroke: #6a9a5a;
    stroke-width: 3;
}

.map-node-group.visited {
    opacity: 0.4;
    pointer-events: none;
}

.map-node-group.locked {
    opacity: 0.3;
    pointer-events: none;
}

/* 节点光晕 */
.node-glow {
    fill: none;
    stroke: #5a8a4a;
    stroke-width: 2;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; stroke-width: 2; }
    50% { opacity: 0.6; stroke-width: 3; }
}

/* 方形节点 */
.node-rect {
    fill: #151a15;
    stroke: #3a5a3a;
    stroke-width: 2;
    transition: fill 0.3s, stroke 0.3s;
}

.map-node-group.available .node-rect {
    fill: #1a2a1a;
    stroke: #5a8a4a;
}

.map-node-group.visited .node-rect {
    fill: #0a0d0a;
    stroke: #2a3a2a;
}

/* 撤离点特殊样式 */
.node-rect.extraction {
    fill: linear-gradient(135deg, #1a1a0a, #151a15);
    stroke: #b8a040;
    stroke-width: 3;
}

.map-node-group.available .node-rect.extraction {
    stroke: #caa050;
    animation: extraction-glow 1.5s ease-in-out infinite;
}

@keyframes extraction-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(184, 160, 64, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(184, 160, 64, 0.6)); }
}

/* 节点图标 */
.node-icon {
    font-size: 18px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    pointer-events: none;
}

/* 节点名称 */
.node-name {
    font-size: 11px;
    font-weight: bold;
    fill: #d0d8c8;
    pointer-events: none;
}

.map-node-group.visited .node-name,
.map-node-group.locked .node-name {
    fill: #6a7a6a;
}

/* 缩放控制按钮 */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.map-zoom-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2a3a2a, #1a2a1a);
    border: 2px solid #4a6a4a;
    border-radius: 8px;
    color: #c8d8b8;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.map-zoom-btn:hover {
    background: linear-gradient(135deg, #3a4a3a, #2a3a2a);
    border-color: #5a8a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.map-zoom-btn:active {
    transform: translateY(0);
}

/* 图例 */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 16px;
    background: rgba(17, 21, 17, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #2a3a2a;
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #809078;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: #1a2a1a;
    border: 2px solid #5a8a4a;
}

.legend-dot.visited {
    background: #0a0d0a;
    border: 2px solid #2a3a2a;
    opacity: 0.5;
}

.legend-dot.locked {
    background: #151a15;
    border: 2px solid #3a5a3a;
    opacity: 0.3;
}

.player-status {
    padding: 10px 16px;
    background: #111511;
    border-top: 1px solid #2a3a2a;
    flex-shrink: 0;
    max-height: 80px;
    overflow: hidden;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.status-bar:last-child {
    margin-bottom: 0;
}

.status-label {
    width: 28px;
    font-size: 11px;
    color: #6a7a6a;
    flex-shrink: 0;
}

.status-fill {
    flex: 1;
    height: 6px;
    background: #2a3a2a;
    border-radius: 3px;
    overflow: hidden;
}

.status-fill .fill {
    height: 100%;
    background: linear-gradient(90deg, #4a6a4a, #5a8a4a);
    transition: width 0.3s;
}

.status-value {
    font-size: 11px;
    color: #809078;
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}

.inventory-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-height: 24px;
    overflow: hidden;
}

.inv-item-small {
    background: #1a2a1a;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    color: #809078;
    line-height: 1.2;
}

/* ===== 战斗界面 ===== */
#screen-combat {
    background: linear-gradient(180deg, #0a0d0a 0%, #0f150f 100%);
    overflow: hidden;
}

.combat-header {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: #111511;
    flex-shrink: 0;
}

.combat-turn {
    color: #809078;
    font-size: 13px;
}

.combat-enemies {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    justify-content: center;
    align-content: center;
    overflow: hidden;
}

.enemy-card {
    background: #151a15;
    border: 2px solid #3a4a3a;
    border-radius: 6px;
    padding: 10px;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s;
}

.enemy-card.targeted {
    border-color: #8a3a3a;
    box-shadow: 0 0 10px rgba(138,58,58,0.4);
}

.enemy-card.boss {
    border-color: #b8a040;
}

.enemy-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #c8d8b8;
    font-size: 13px;
}

.enemy-hp-bar {
    height: 4px;
    background: #2a3a2a;
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}

.enemy-hp-fill {
    height: 100%;
    background: #8a2a2a;
    transition: width 0.3s;
}

.enemy-hp-text {
    font-size: 11px;
    color: #809078;
    margin-bottom: 4px;
}

.enemy-intent {
    font-size: 11px;
    padding: 4px 6px;
    background: #1a2a1a;
    border-radius: 2px;
    color: #c85020;
}

.enemy-intent.attack {
    color: #c85020;
}

.enemy-intent.block {
    color: #4a6a4a;
}

.enemy-intent.buff {
    color: #8a5aaa;
}

.combat-player {
    padding: 8px 16px;
    background: #111511;
    border-top: 1px solid #2a3a2a;
    flex-shrink: 0;
}

.player-stats {
    margin-bottom: 4px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: #2a3a2a;
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2a2a, #6a3a3a);
    transition: width 0.3s;
}

.stat-fill.block-fill {
    background: linear-gradient(90deg, #4a6a4a, #5a8a4a);
}

.stat-row .stat-label {
    width: 24px;
    font-size: 10px;
    color: #6a7a6a;
    flex-shrink: 0;
}

.stat-row .stat-value {
    font-size: 10px;
    color: #809078;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.player-effects {
    display: none;
}

.effect-badge {
    padding: 2px 6px;
    background: #1a2a1a;
    border-radius: 2px;
    font-size: 10px;
    color: #b8a040;
    line-height: 1.2;
}

.combat-log {
    display: none;
}

.log-entry {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combat-actions {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #111511;
    border-top: 1px solid #2a3a2a;
    overflow: hidden;
    flex-shrink: 0;
}

.action-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 4px;
    background: linear-gradient(135deg, #2a3a2a, #1a2a1a);
    border: 1px solid #3a5a3a;
    border-radius: 4px;
    color: #c8d8b8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a5a3a, #2a3a2a);
    border-color: #5a8a4a;
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn.shoot { border-color: #8a2a2a; }
.action-btn.cover { border-color: #4a6a4a; }
.action-btn.reload { border-color: #4a6aaa; }

/* ===== 搜刮界面 ===== */
#screen-loot {
    padding: 0;
}

.loot-info {
    padding: 12px 16px;
    background: #111511;
    color: #809078;
    font-size: 14px;
}

.loot-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.loot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.loot-item:hover {
    border-color: #5a8a4a;
}

.loot-item.picked {
    border-color: #4a6a4a;
    background: #1a2a1a;
}

.loot-item-name {
    font-weight: bold;
}

.loot-item-value {
    color: #b8a040;
    font-size: 13px;
}

.loot-actions {
    padding: 16px;
    border-top: 1px solid #2a3a2a;
    text-align: center;
}

/* ===== 撤离界面 ===== */
#screen-extraction,
#screen-extraction-success,
#screen-game-over {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.extraction-content,
.result-content {
    background: #151a15;
    border: 1px solid #2a3a2a;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.extraction-content h2,
.result-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #c8d8b8;
}

.result-content.success h2 { color: #5a8a4a; }
.result-content.defeat h2 { color: #8a3a3a; }

.extraction-preview {
    background: #111511;
    border-radius: 4px;
    padding: 12px;
    margin: 16px 0;
    font-size: 13px;
    color: #809078;
    max-height: 150px;
    overflow-y: auto;
}

.extraction-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.extraction-actions button {
    flex: 1;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    font-size: 12px;
    color: #6a7a6a;
    margin-bottom: 4px;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #b8a040;
}

.result-items {
    max-height: 200px;
    overflow-y: auto;
    margin: 16px 0;
    text-align: left;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #111511;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 13px;
}

.death-msg {
    color: #8a3a3a;
    margin-bottom: 20px;
}

/* ===== 排行榜 ===== */
.leaderboard-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: #111511;
    border-bottom: 1px solid #2a3a2a;
}

.lb-stat {
    text-align: center;
}

.lb-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #b8a040;
}

.lb-stat-label {
    font-size: 11px;
    color: #6a7a6a;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.lb-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #151a15;
    border-radius: 4px;
    margin-bottom: 8px;
}

.lb-rank {
    width: 30px;
    font-weight: bold;
    color: #b8a040;
}

.lb-name {
    flex: 1;
    color: #c8d8b8;
}

.lb-score {
    color: #809078;
    font-size: 13px;
}

/* ===== Toast消息 ===== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #151a15;
    border: 1px solid #4a6a4a;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* ===== 加载中 ===== */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(10,13,10,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a3a2a;
    border-top-color: #5a8a4a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 品质颜色 ===== */
.tier-1 { color: var(--tier-1); }
.tier-2 { color: var(--tier-2); }
.tier-3 { color: var(--tier-3); }
.tier-4 { color: var(--tier-4); }
.tier-5 { color: var(--tier-5); }
.tier-6 { color: var(--tier-6); }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .game-title {
        font-size: 36px;
    }

    .loadout-slots {
        grid-template-columns: 1fr;
    }

    .loadout-slot.consumables {
        grid-column: span 1;
    }

    .combat-enemies {
        padding: 12px;
    }

    .enemy-card {
        min-width: 100px;
        padding: 12px;
    }

    .action-btn {
        min-width: 60px;
        padding: 10px 8px;
        font-size: 12px;
    }
}