/* ========== 全局重置与基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0d1117;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #e6edf3;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #1a1f2e;
}

/* 游戏中隐藏鼠标光标（用准心替代） */
#game-canvas.in-game {
    cursor: none;
}
#hud-canvas.in-game {
    cursor: none;
}

/* ========== UI 层 ========== */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#ui-layer > .screen,
#ui-layer > .icon-btn,
#ui-layer > button {
    pointer-events: auto;
}

/* ========== 通用按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-width: 160px;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #4a7c59, #3d6b4a);
    color: #fff;
}

.btn-secondary {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.btn-danger {
    background: linear-gradient(135deg, #d94848, #b83a3a);
    color: #fff;
}

.btn-text {
    background: transparent;
    color: #58a6ff;
    min-width: auto;
    padding: 8px 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.icon-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #21262d;
    border: 1px solid #30363d;
    color: #e6edf3;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.icon-btn:hover {
    background: #30363d;
    transform: rotate(30deg);
}

/* ========== 屏幕/场景 ========== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(13, 17, 23, 0.95);
    z-index: 10;
    padding: 40px;
    text-align: center;
}

.screen.active {
    display: flex;
}

.screen.overlay {
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(4px);
}

/* ========== 主菜单 ========== */
.game-title {
    font-size: 52px;
    font-weight: 900;
    color: #e6edf3;
    text-shadow: 0 0 40px rgba(74, 124, 89, 0.4);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.subtitle {
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 48px;
    letter-spacing: 2px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* ========== 开场故事 ========== */
.story-box {
    max-width: 640px;
    padding: 40px;
    background: #161b22;
    border-radius: 16px;
    border: 1px solid #30363d;
    text-align: left;
    position: relative;
}

.story-text {
    font-size: 20px;
    line-height: 2;
    color: #c9d1d9;
    min-height: 120px;
}

.story-text .char {
    opacity: 0;
    animation: fadeInChar 0.04s forwards;
}

@keyframes fadeInChar {
    to { opacity: 1; }
}

#btn-skip-story {
    position: absolute;
    bottom: -48px;
    right: 0;
}

/* ========== 出生点选择 ========== */
.spawn-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 500px;
    margin-top: 32px;
}

.spawn-zone {
    padding: 32px 24px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    font-weight: 600;
}

.spawn-zone:hover {
    border-color: #4a7c59;
    background: #1c2128;
    transform: scale(1.03);
}

/* ========== 职业选择 ========== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin-top: 32px;
}

.class-card {
    padding: 28px 20px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.class-card:hover {
    border-color: #4a7c59;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.2);
}

.class-card.selected {
    border-color: #4a7c59;
    background: #1c2429;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.3);
}

.class-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.class-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #e6edf3;
}

.class-card p {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 12px;
}

.class-weapons {
    font-size: 12px;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ========== 武器选择 ========== */
.weapon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    width: 100%;
    margin-top: 24px;
}

.weapon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.weapon-card:hover {
    border-color: #4a7c59;
    background: #1c2128;
}

.weapon-card.selected {
    border-color: #4a7c59;
    background: #1c2429;
}

.weapon-icon {
    font-size: 32px;
}

.weapon-info-text h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.weapon-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #8b949e;
}

/* ========== 九宫格关卡 ========== */
.level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
    max-width: 580px;
}

.level-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    padding: 10px 8px;
    text-align: center;
}

.level-cell:hover:not(.locked) {
    border-color: #4a7c59;
    transform: scale(1.05);
}

.level-cell.completed {
    border-color: #4a7c59;
    background: #1c2429;
}

.level-cell.completed::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 20px;
    color: #4a7c59;
    font-weight: bold;
}

.level-cell.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.level-cell.locked::before {
    content: '🔒';
    font-size: 26px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.level-cell.locked .level-name,
.level-cell.locked .level-code,
.level-cell.locked .level-difficulty,
.level-cell.locked .level-boss-tag {
    visibility: hidden;
}

.level-cell .level-name {
    font-size: 18px;
    font-weight: 800;
    color: #e6edf3;
    margin-bottom: 2px;
}

.level-cell .level-code {
    font-size: 11px;
    color: #6e7681;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.level-cell .level-difficulty {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}
.level-cell .level-difficulty.diff-easy   { color: #4a7c59; background: rgba(74,124,89,0.18); }
.level-cell .level-difficulty.diff-medium { color: #d4a017; background: rgba(212,160,23,0.18); }
.level-cell .level-difficulty.diff-hard   { color: #d94848; background: rgba(217,72,72,0.18); }

.level-cell .level-boss-tag {
    margin-top: 4px;
    font-size: 10px;
    color: #c084ff;
    background: rgba(192,132,255,0.15);
    padding: 1px 6px;
    border-radius: 8px;
}

.level-progress {
    margin-top: 24px;
    font-size: 18px;
    color: #8b949e;
}

#btn-boss {
    margin-top: 20px;
}

/* ========== HUD ========== */
.hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud.hidden {
    display: none;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hud-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
}

.bar {
    position: relative;
    height: 24px;
    background: #21262d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #30363d;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.2s ease;
}

#hp-fill { background: linear-gradient(90deg, #d94848, #ff6b6b); }
#stamina-fill { background: linear-gradient(90deg, #58a6ff, #79c0ff); }

.bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.hud-right {
    text-align: right;
}

.weapon-info {
    background: rgba(13, 17, 23, 0.8);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #30363d;
}

#weapon-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 2px;
}

#ammo-text {
    font-size: 14px;
    color: #8b949e;
}

.hud-bottom {
    text-align: center;
}

.controls-hint {
    font-size: 13px;
    color: #8b949e;
    background: rgba(13, 17, 23, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* ========== 地图覆盖层 ========== */
#map-overlay {
    background: rgba(13, 17, 23, 0.92);
}

.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#map-canvas {
    border: 2px solid #30363d;
    border-radius: 12px;
    background: #161b22;
}

/* ========== 设置面板 ========== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    width: 100%;
    margin: 32px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #161b22;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.setting-item label {
    font-size: 15px;
}

.setting-item input[type="range"] {
    width: 140px;
}

/* ========== 提示文字 ========== */
.hint {
    font-size: 15px;
    color: #8b949e;
    margin-top: 8px;
}

h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spawn-map {
        grid-template-columns: 1fr;
    }
    .game-title {
        font-size: 36px;
    }
}

/* ========== 模式选择 ========== */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin-top: 32px;
}

.mode-card {
    padding: 28px 20px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mode-card:hover:not(.locked) {
    border-color: #4a7c59;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.2);
}

.mode-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.mode-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #e6edf3;
}

.mode-card p {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 12px;
}

.mode-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(74, 124, 89, 0.2);
    color: #4a7c59;
}

.mode-status.locked {
    background: rgba(140, 140, 140, 0.15);
    color: #8b949e;
}

/* ========== 作弊模式 ========== */
/* 右上角悬浮作弊工具栏 */
.cheat-toolbar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    pointer-events: auto;
    user-select: none;
}
.cheat-toolbar.hidden { display: none; }

.cheat-toolbar-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd700 100%);
    color: #000;
    font-weight: 700;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
    font-size: 13px;
    transition: transform 0.1s;
}
.cheat-toolbar-btn:hover { transform: translateY(-2px); }
.cheat-toolbar-btn:active { transform: translateY(0); }

.cheat-toolbar-btn .cheat-icon { font-size: 22px; }
.cheat-toolbar-btn .cheat-arrow {
    font-size: 11px;
    transition: transform 0.2s;
    margin-left: 4px;
}
.cheat-toolbar.open .cheat-arrow { transform: rotate(180deg); }

.cheat-toolbar-menu {
    margin-top: 6px;
    background: #161b22;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    min-width: 220px;
}
.cheat-toolbar-menu.hidden { display: none; }

.cheat-action-btn {
    background: #0d1117;
    border: 1px solid #d4a017;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.1s;
}
.cheat-action-btn:hover {
    background: #1c2429;
    border-color: #ffd700;
    transform: translateX(2px);
}

/* 武器选择菜单（作弊模式 F1）*/
.cheat-weapon-menu {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 14px;
    background: #161b22;
    border: 2px solid #d4a017;
    border-radius: 14px;
    margin: 16px auto;
}

.cheat-weapon-menu h3 {
    font-size: 14px;
    margin: 8px 0 4px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 4px;
}

.cheat-weapon-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.cheat-weapon-pick {
    padding: 8px 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.1s, border-color 0.1s;
    text-align: center;
}
.cheat-weapon-pick:hover { transform: scale(1.05); border-color: #fff; }

/* 稀有度颜色 */
.rarity-green  { color: #4a7c59; font-weight: 700; }
.rarity-blue   { color: #58a6ff; font-weight: 700; }
.rarity-purple { color: #a371f7; font-weight: 700; }
.rarity-orange { color: #d4a017; font-weight: 700; }
.rarity-red    { color: #d94848; font-weight: 700; }
.rarity-gold   { color: #ffd700; font-weight: 700; }

/* 关卡格子的速通按钮 */
.level-cell .speedrun-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #d4a017;
    color: #000;
    border: none;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
}
.level-cell .speedrun-btn:hover { filter: brightness(1.2); }

/* ========== 触屏控制（手机模式） ========== */
.touch-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;
}

.touch-overlay.hidden {
    display: none;
}

/* 虚拟摇杆 */
.touch-stick {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 130px;
    height: 130px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(20, 25, 35, 0.4);
    pointer-events: auto;
    touch-action: none;
}

.touch-stick.right {
    left: auto;
    right: 30px;
    border-color: rgba(255, 100, 100, 0.4);
}

.touch-stick-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: background 0.1s;
}

.touch-stick.active .touch-stick-knob {
    background: rgba(255, 215, 0, 0.8);
}
.touch-stick.right.active .touch-stick-knob {
    background: rgba(255, 80, 80, 0.85);
}

/* 动作按钮组 */
.touch-action-cluster {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.touch-action-cluster.right-cluster {
    right: 180px;
    bottom: 30px;
}

.touch-action-cluster.left-cluster {
    left: 180px;
    bottom: 30px;
}

.touch-top-cluster {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.touch-btn {
    width: 56px;
    height: 56px;
    background: rgba(48, 54, 61, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.touch-btn.small {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 10px;
}

.touch-btn:active,
.touch-btn.pressed {
    background: rgba(88, 166, 255, 0.7);
    transform: scale(0.95);
}

/* 在小屏幕上自动调整 */
@media (max-width: 600px) {
    .touch-stick {
        width: 110px;
        height: 110px;
        bottom: 20px;
    }
    .touch-stick-knob {
        width: 42px;
        height: 42px;
    }
    .touch-action-cluster.right-cluster { right: 145px; }
    .touch-action-cluster.left-cluster { left: 145px; }
    .touch-btn { width: 46px; height: 46px; font-size: 18px; }
}

/* ========== 队友小队 ========== */
.squad-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.squad-card {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 12px 14px;
    position: relative;
}

.squad-card.dead {
    border-color: #6e7681;
    opacity: 0.6;
}

.squad-card.friend {
    border-color: #d4a017;
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

.squad-card .squad-name {
    font-size: 14px;
    font-weight: 700;
    color: #79c0ff;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.squad-card .squad-friend-tag {
    background: #d4a017;
    color: #000;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.squad-card .squad-stats {
    font-size: 12px;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 8px;
}
.squad-card .squad-stats div { display: flex; justify-content: space-between; }

.squad-card .squad-actions {
    display: flex;
    gap: 6px;
}

.squad-card .squad-btn {
    flex: 1;
    background: #2f81f7;
    color: #fff;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}
.squad-card .squad-btn.dismiss { background: #8b949e; }
.squad-card .squad-btn.revive { background: #d4a017; color: #000; }
.squad-card .squad-btn:hover:not(:disabled) { filter: brightness(1.2); }
.squad-card .squad-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== 武器栏溢出选择 ========== */
.overflow-dialog-box {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    padding: 26px 32px;
    max-width: 720px;
    text-align: center;
}

.overflow-weapons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.overflow-weapon-card {
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.overflow-weapon-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.overflow-weapon-card.marked-drop {
    border-color: #d94848;
    background: rgba(217, 72, 72, 0.15);
    opacity: 0.7;
}

.overflow-weapon-card.marked-drop::after {
    content: '✖ 丢弃';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    color: #d94848;
    font-weight: bold;
}

.overflow-weapon-card .new-tag {
    position: absolute;
    top: -8px;
    left: 8px;
    background: #d4a017;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

.overflow-weapon-card .stash-tag {
    position: absolute;
    top: -8px;
    left: 8px;
    background: #4a7c59;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

.overflow-weapon-card .ow-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.overflow-weapon-card .ow-name {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 4px;
}

.overflow-weapon-card .ow-stats {
    font-size: 11px;
    color: #8b949e;
    line-height: 1.5;
}

.overflow-weapon-card .ow-stats div {
    display: flex;
    justify-content: space-between;
    padding: 1px 4px;
}

.overflow-weapon-card .ow-stats .stat-key { color: #6e7681; }
.overflow-weapon-card .ow-stats .stat-val { color: #c9d1d9; font-weight: 600; }

.overflow-actions {
    margin-top: 14px;
}

/* ========== 说明书 ========== */
.manual-content {
    text-align: left;
    max-width: 720px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin: 16px auto;
    font-size: 13px;
    line-height: 1.7;
    color: #c9d1d9;
}
.manual-content h3 {
    color: #79c0ff;
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 15px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 4px;
}
.manual-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 8px;
}
.manual-content li {
    margin-bottom: 4px;
}
.manual-content b {
    color: #fff;
}

/* ========== 存档槽位 ========== */
.settings-section-title {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #79c0ff;
    font-size: 14px;
}

.save-btn {
    width: 100%;
    margin-bottom: 10px;
}

.save-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.save-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
}

.save-slot.empty {
    background: rgba(48, 54, 61, 0.3);
    color: #8b949e;
}

.save-slot .slot-num {
    font-weight: 700;
    color: #79c0ff;
    min-width: 50px;
    font-size: 13px;
}

.save-slot .slot-info {
    flex: 1;
    font-size: 12px;
    color: #c9d1d9;
}

.save-slot .slot-info .slot-meta {
    color: #8b949e;
    font-size: 11px;
    margin-top: 2px;
}

.save-slot .slot-load-btn {
    background: #2f81f7;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.save-slot .slot-load-btn:hover { background: #1f6feb; }
.save-slot .slot-load-btn:disabled {
    background: #30363d;
    color: #6e7681;
    cursor: not-allowed;
}

/* ========== 装备中背包槽 ========== */
.equipped-backpack-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px dashed #30363d;
    border-radius: 12px;
    background: rgba(74, 124, 89, 0.05);
    color: #e6edf3;
}

.equipped-backpack-slot .bp-icon {
    font-size: 32px;
}

.equipped-backpack-slot .bp-info {
    flex: 1;
}

.equipped-backpack-slot .bp-name {
    font-size: 16px;
    font-weight: 700;
}

.equipped-backpack-slot .bp-cap {
    font-size: 13px;
    color: #8b949e;
    margin-top: 2px;
}

.base-equipped-backpack {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px dashed #30363d;
    border-radius: 10px;
    background: rgba(74, 124, 89, 0.05);
    margin-bottom: 6px;
}
.base-equipped-backpack .bp-icon { font-size: 24px; }
.base-equipped-backpack .bp-name { font-weight: 700; color: #e6edf3; }
.base-equipped-backpack .bp-cap { color: #8b949e; font-size: 12px; }

/* ========== 难度选择 ========== */
.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin-top: 32px;
}

.difficulty-card {
    padding: 24px 16px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.difficulty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.difficulty-card[data-difficulty="easy"]:hover    { border-color: #4a7c59; }
.difficulty-card[data-difficulty="hard"]:hover    { border-color: #58a6ff; }
.difficulty-card[data-difficulty="rage"]:hover    { border-color: #d4a017; }
.difficulty-card[data-difficulty="hell"]:hover    { border-color: #d94848; }

.difficulty-card.selected {
    border-color: #fff;
    transform: translateY(-4px);
}

.difficulty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.difficulty-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #e6edf3;
}

.difficulty-card p {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 10px;
}

.difficulty-stats {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: #6e7681;
    background: rgba(48, 54, 61, 0.4);
    padding: 6px 8px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .difficulty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 搜刮弹窗 ========== */
.loot-popup {
    pointer-events: none;
    background: transparent !important;
    justify-content: flex-end;
    padding-bottom: 80px;
}

.loot-popup.hidden {
    display: none !important;
}

.loot-box {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 16px;
    padding: 20px 32px;
    text-align: center;
    animation: lootSlideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@keyframes lootSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.loot-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.loot-name {
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 4px;
}

.loot-desc {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 8px;
}

.loot-rarity {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* ========== 特勤部 ========== */
.base-tabs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.base-tab {
    padding: 10px 24px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #8b949e;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.base-tab:hover {
    background: #30363d;
}

.base-tab.active {
    background: #4a7c59;
    color: #fff;
    border-color: #4a7c59;
}

.base-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    width: 600px;
    max-width: 90vw;
    min-height: 300px;
    max-height: 50vh;
    overflow-y: auto;
}

.base-gold {
    font-size: 18px;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 16px;
    text-align: left;
}

.base-panel {
    display: none;
}

.base-panel.active {
    display: block;
}

/* 背包格子 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.item-card {
    background: #21262d;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.item-card:hover {
    transform: scale(1.05);
    border-color: #4a7c59;
}

.item-card .item-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.item-card .item-name {
    font-size: 12px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 2px;
}

.item-card .item-rarity {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

.item-card .item-price {
    font-size: 11px;
    color: #d4a017;
    margin-top: 4px;
}

.item-card .sell-btn {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 11px;
    background: #d94848;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.item-card .sell-btn:hover {
    background: #ff6b6b;
}

/* 商店格子 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.shop-item {
    background: #21262d;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.shop-item:hover {
    border-color: #58a6ff;
    transform: scale(1.03);
}

.shop-item .shop-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.shop-item .shop-name {
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
}

.shop-item .shop-stats {
    font-size: 11px;
    color: #8b949e;
    margin: 4px 0;
}

.shop-item .shop-price {
    font-size: 14px;
    font-weight: 700;
    color: #d4a017;
}

.shop-item .buy-btn {
    margin-top: 6px;
    padding: 6px 16px;
    font-size: 12px;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.shop-item .buy-btn:hover {
    background: #5a9c69;
}

.shop-item .buy-btn:disabled {
    background: #484f58;
    cursor: not-allowed;
}

/* 胜利战利品 */
.victory-loot {
    margin: 16px 0;
    max-width: 400px;
}

/* ========== 游戏中背包 ========== */
#inventory-screen {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(6px);
}

.inventory-container {
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 20px;
}

.inventory-header h2 {
    font-size: 28px;
    color: #e6edf3;
    margin: 0;
}

#inventory-capacity {
    font-size: 14px;
    color: #8b949e;
    background: rgba(255,255,255,0.05);
    padding: 6px 14px;
    border-radius: 8px;
}

.inventory-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
}

.inventory-section h3 {
    font-size: 14px;
    color: #8b949e;
    margin: 0 0 10px 0;
    text-align: left;
}

.inventory-slot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 20px;
    position: relative;
    min-height: 70px;
}

.inventory-slot:hover {
    border-color: #4a7c59;
    transform: scale(1.05);
}

.inventory-slot .slot-name {
    font-size: 10px;
    color: #8b949e;
    margin-top: 2px;
    text-align: center;
    line-height: 1.1;
}

.inventory-slot .slot-size {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    color: #484f58;
    background: rgba(0,0,0,0.3);
    padding: 1px 4px;
    border-radius: 4px;
}

.inventory-slot .slot-hint {
    position: absolute;
    bottom: 2px;
    font-size: 9px;
    color: #58a6ff;
    opacity: 0;
    transition: opacity 0.15s;
}

.inventory-slot:hover .slot-hint,
.inventory-slot.hovered .slot-hint {
    opacity: 1;
}

.inventory-slot .slot-icon {
    transition: transform 0.15s;
}

.inventory-slot:hover .slot-icon,
.inventory-slot.hovered .slot-icon {
    transform: scale(1.3);
}

.inventory-slot.empty {
    border-style: dashed;
    border-color: #21262d;
    cursor: default;
}

.inventory-slot.empty:hover {
    border-color: #21262d;
    transform: none;
}

.weapon-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.weapon-slot {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weapon-slot:hover {
    border-color: #58a6ff;
}

.weapon-slot.empty {
    border-style: dashed;
    border-color: #21262d;
    color: #484f58;
    font-size: 13px;
}

.weapon-slot .weapon-icon {
    font-size: 24px;
}

.weapon-slot .weapon-name {
    font-size: 12px;
    color: #e6edf3;
    margin-top: 4px;
}

/* 物品操作弹出菜单 */
.item-action-menu {
    position: absolute;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 10000;
    min-width: 140px;
}

.item-action-menu.hidden {
    display: none;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    border: none;
}

.action-btn.confirm {
    background: #4a7c59;
    color: #fff;
}

.action-btn.confirm:hover {
    background: #5a9c69;
}

.action-btn.cancel {
    background: #484f58;
    color: #e6edf3;
}

.action-btn.cancel:hover {
    background: #586068;
}

.action-btn.drop {
    background: #8b4513;
    color: #fff;
}

.action-btn.drop:hover {
    background: #a0522d;
}

/* 背包受伤变红效果 */
#inventory-screen.damage-flash {
    animation: invDamageFlash 0.3s ease-out;
}

@keyframes invDamageFlash {
    0% { box-shadow: inset 0 0 0 rgba(217, 72, 72, 0); }
    30% { box-shadow: inset 0 0 80px rgba(217, 72, 72, 0.6); }
    100% { box-shadow: inset 0 0 0 rgba(217, 72, 72, 0); }
}

/* 响应式 */
@media (max-width: 768px) {
    .mode-grid {
        grid-template-columns: 1fr;
    }
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .base-content {
        width: 90vw;
    }
    .inventory-slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== 撤离加载页面 ========== */
#extract-loading-screen {
    background: #0d1117;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

#extract-loading-screen .extract-road {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 60px;
    background: #21262d;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #30363d;
}

#extract-loading-screen .extract-road::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #8b949e 0px,
        #8b949e 30px,
        transparent 30px,
        transparent 60px
    );
    transform: translateY(-50%);
    animation: roadMove 1s linear infinite;
}

@keyframes roadMove {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-60px); }
}

#extract-loading-screen .extract-car {
    font-size: 48px;
    animation: carBounce 0.6s ease-in-out infinite alternate;
    z-index: 2;
    margin-top: -60px;
}

@keyframes carBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

#extract-loading-screen .extract-text {
    font-size: 20px;
    color: #58a6ff;
    font-weight: bold;
    letter-spacing: 2px;
}

#extract-loading-screen .extract-dots {
    display: flex;
    gap: 8px;
}

#extract-loading-screen .extract-dots .dot {
    width: 10px;
    height: 10px;
    background: #58a6ff;
    border-radius: 50%;
    animation: dotPulse 1.2s ease-in-out infinite;
}

#extract-loading-screen .extract-dots .dot:nth-child(2) { animation-delay: 0.2s; }
#extract-loading-screen .extract-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ========== 武器保留对话框 ========== */
#weapon-keep-dialog {
    background: rgba(0, 0, 0, 0.85);
}

.keep-dialog-box {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.keep-dialog-box h2 {
    color: #e6edf3;
    margin-bottom: 10px;
}

.keep-desc {
    color: #8b949e;
    margin-bottom: 20px;
    font-size: 15px;
}

.keep-weapons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.keep-weapon-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #21262d;
    border: 2px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.keep-weapon-card:hover {
    border-color: #58a6ff;
    background: #1a1f2e;
}

.keep-weapon-card.marked-drop {
    border-color: #d94848;
    background: rgba(217, 72, 72, 0.15);
    opacity: 0.7;
}

.keep-weapon-card.marked-drop::after {
    content: '❌ 丢弃';
    margin-left: auto;
    color: #d94848;
    font-size: 12px;
    font-weight: bold;
}

.keep-weapon-icon {
    font-size: 28px;
}

.keep-weapon-info {
    flex: 1;
}

.keep-weapon-name {
    font-weight: bold;
    color: #e6edf3;
    font-size: 15px;
}

.keep-weapon-type {
    font-size: 12px;
    color: #8b949e;
}

.keep-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.keep-actions.hidden {
    display: none;
}

/* ========== 仓库 ========== */
#base-warehouse h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warehouse-cap {
    font-size: 14px;
    color: #8b949e;
    font-weight: normal;
    background: #21262d;
    padding: 2px 10px;
    border-radius: 12px;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.warehouse-grid .item-card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.warehouse-grid .item-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.warehouse-grid .item-card .item-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.warehouse-grid .item-card .item-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}

.warehouse-grid .item-card .item-rarity {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.warehouse-grid .item-card .item-price {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 6px;
}

.warehouse-grid .item-card .sell-btn {
    background: #4a7c59;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.warehouse-grid .item-card .sell-btn:hover {
    background: #5a9c69;
}

/* 响应式 */
@media (max-width: 768px) {
    .warehouse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 背包/仓库物品操作按钮 */
.item-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
}

.item-actions .sell-btn,
.item-actions .store-btn,
.item-actions .retrieve-btn {
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    flex: 1;
}

.item-actions .sell-btn {
    background: #4a7c59;
    color: #fff;
}

.item-actions .sell-btn:hover {
    background: #5a9c69;
}

.item-actions .store-btn {
    background: #1f6feb;
    color: #fff;
}

.item-actions .store-btn:hover {
    background: #388bfd;
}

.item-actions .retrieve-btn {
    background: #484f58;
    color: #e6edf3;
}

.item-actions .retrieve-btn:hover {
    background: #586068;
}


/* ========== 成就系统 ========== */

/* 成就界面 */
#achievements-screen {
    background: rgba(13, 17, 23, 0.95);
    padding: 40px 20px;
}

.achievements-count {
    font-size: 18px;
    color: #d4a017;
    font-weight: bold;
    margin-bottom: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 24px;
}

.achievement-card {
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    opacity: 0.5;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: #4a7c59;
    background: #1c2429;
    box-shadow: 0 0 12px rgba(74, 124, 89, 0.15);
}

.achievement-card.unlocked:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.25);
}

.achievement-card.hidden-ach {
    filter: grayscale(0.8);
}

.achievement-card.hidden-ach.unlocked {
    filter: none;
    border-color: #a371f7;
    background: #1f1a2e;
    box-shadow: 0 0 12px rgba(163, 113, 247, 0.15);
}

.achievement-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.achievement-name {
    font-size: 14px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 12px;
    color: #8b949e;
    line-height: 1.4;
}

.achievement-hidden-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #a371f7;
    background: rgba(163, 113, 247, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 成就解锁通知 */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 320px;
    background: #161b22;
    border: 2px solid #4a7c59;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-notification.hide {
    right: -400px;
    opacity: 0;
    transition: right 0.4s ease, opacity 0.3s ease;
}

.ach-notif-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.ach-notif-content {
    flex: 1;
    min-width: 0;
}

.ach-notif-title {
    font-size: 12px;
    color: #4a7c59;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ach-notif-name {
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 2px;
}

.ach-notif-desc {
    font-size: 12px;
    color: #8b949e;
}

.ach-notif-reward {
    font-size: 13px;
    color: #ffd700;
    font-weight: 700;
    margin-top: 4px;
}

.achievement-notification.hidden-ach {
    background: linear-gradient(135deg, #2a1a40 0%, #161b22 100%);
    border-color: #a371f7;
}
.achievement-notification.hidden-ach .ach-notif-title {
    color: #c084ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .achievement-notification {
        width: 280px;
    }
}


/* ========== 护甲 HUD 显示 ========== */
.armor-display {
    font-size: 13px;
    font-weight: 700;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}
