    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }

    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body {
        font-family: 'Courier New', monospace;
        background: #f0f0e8;
        touch-action: none;
    }

    #gameContainer {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    #gameCanvas {
        display: block;
        background: #f5f5f0;
        touch-action: none;
    }

    /* 游戏UI容器 */
    #uiContainer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    /* 左上角属性栏（紧凑版） */
    #playerStats {
        position: absolute;
        top: 10px;
        left: 10px;
        background: rgba(255, 255, 255, 0.85);
        border: 2px solid #333;
        border-radius: 8px;
        padding: 6px 8px;
        min-width: 150px;
        pointer-events: auto;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
        z-index: 30;
    }

    .stat-bar {
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 10px;
        color: #333;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .stat-label .stat-value {
        font-weight: bold;
        color: #222;
        font-size: 10px;
    }

    .stat-bar-bg {
        width: 100%;
        height: 7px;
        background: #ddd;
        border: 1px solid #333;
        border-radius: 3px;
        overflow: hidden;
    }

    .stat-bar-fill {
        height: 100%;
        transition: width 0.2s;
    }

    .health-fill { background: linear-gradient(to bottom, #ff6b6b, #ee5a5a); position: absolute; top: 0; left: 0; }
    .shield-fill { background: linear-gradient(to bottom, #f7dc6f, #f1c40f); position: absolute; top: 0; left: 0; opacity: 0.85; }
    .energy-fill { background: linear-gradient(to bottom, #4ecdc4, #44a08d); }
    .ammo-fill  { background: linear-gradient(to bottom, #9b59b6, #8e44ad); }
    .exp-fill { background: linear-gradient(to bottom, #ffeaa7, #fdcb6e); }

    .stat-bar-bg { position: relative; }

    /* 被动装备冷却方块 */
    .passive-equip-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        color: #333;
    }
    .passive-equip-box {
        width: 18px;
        height: 18px;
        background: #2c3e50;
        border: 1px solid #1a252f;
        border-radius: 3px;
        position: relative;
        overflow: hidden;
    }
    .passive-equip-water {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ecf0f1;
        transition: height 0.1s linear;
    }
    .passive-equip-ready {
        box-shadow: 0 0 4px #f1c40f;
        border-color: #f1c40f;
    }
    .passive-equip-name {
        font-size: 9px;
        color: #555;
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 右上角数据栏 */
    #gameData {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.85);
        border: 2px solid #333;
        border-radius: 8px;
        padding: 6px 8px;
        min-width: 130px;
        pointer-events: auto;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
        z-index: 30;
    }
    .data-item {
        font-size: 10px;
        margin-bottom: 2px;
        color: #333;
        line-height: 1.1;
    }

    #pauseBtn {
        margin-top: 4px;
        width: 100%;
        padding: 3px;
        background: #fff;
        border: 2px solid #333;
        border-radius: 4px;
        cursor: pointer;
        font-family: inherit;
        font-size: 10px;
    }

    /* 左下角摇杆（半透明） */
    /* 移动轮盘：覆盖屏幕左下区域用于捕获点击；外圈跟随手指位置出现 */
    #joystickContainer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50%;
        height: 50%;
        pointer-events: auto;
        touch-action: none;
        opacity: 1;
    }

    #joystickOuter {
        position: absolute;
        width: 120px;
        height: 120px;
        background: rgba(200, 200, 200, 0.35);
        border: 3px solid rgba(100, 100, 100, 0.55);
        border-radius: 50%;
        left: 0;
        top: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.12s;
        touch-action: none;
    }
    #joystickOuter.active {
        opacity: 1;
    }

    #joystickInner {
        width: 50px;
        height: 50px;
        background: rgba(100, 100, 100, 0.65);
        border: 2px solid rgba(30, 30, 30, 0.85);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* 右下角技能栏 */
    #skillButtons {
        position: absolute;
        bottom: 50px;
        right: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        pointer-events: auto;
    }

    .skill-btn {
        width: 64px;
        height: 64px;
        background: rgba(255, 255, 255, 0.85);
        border: 2px solid #333;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        font-size: 22px;
        touch-action: none;
    }

    .skill-btn.ultimate {
        background: rgba(255, 200, 100, 0.9);
        border-color: #e67e22;
        width: 76px;
        height: 76px;
    }

    .skill-btn .label {
        position: absolute;
        bottom: 4px;
        font-size: 9px;
        color: #555;
        letter-spacing: 1px;
    }

    .skill-btn.cooldown {
        opacity: 0.7;
    }

    .skill-btn.disabled {
        filter: grayscale(0.6);
        opacity: 0.55;
        cursor: not-allowed;
    }

    .cooldown-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        font-weight: bold;
        pointer-events: none;
    }

    /* 大招瞄准提示（移到屏幕顶部中央，避免遮挡坦克瞄准视野） */
    #aimingHint {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.65);
        color: #ffd27f;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        display: none;
        pointer-events: none;
        white-space: nowrap;
        text-align: center;
        z-index: 20;
    }
    #aimingHint.show { display: block; }

    /* 技能取消按钮（拖动技能时显示在右上角） */
    #skillCancelBtn {
        position: absolute;
        top: 10px;
        right: 50%;
        transform: translateX(50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(231, 76, 60, 0.95);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        font-weight: bold;
        border: 3px solid #c0392b;
        pointer-events: none;
        display: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        user-select: none;
    }
    #skillCancelBtn.show {
        display: flex;
    }
    #skillCancelBtn.hovering {
        background: #c0392b;
        transform: translateX(50%) scale(1.15);
        box-shadow: 0 0 20px rgba(231,76,60,0.8);
    }

    /* 菜单 */
    #menuOverlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.7);
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    #menuOverlay.show {
        display: flex;
    }

    #menuPanel {
        background: rgba(255, 255, 255, 0.95);
        border: 3px solid #333;
        border-radius: 12px;
        padding: 20px;
        max-width: 320px;
        width: 90%;
        box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    }

    .menu-title {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

    .menu-btn {
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
        border: 2px solid #333;
        border-radius: 6px;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
    }

    .zoom-controls {
        display: flex;
        gap: 10px;
        margin: 10px 0;
    }

    .zoom-btn {
        flex: 1;
        padding: 10px;
    }

    #tankStats {
        margin-top: 15px;
        padding: 10px;
        background: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 11px;
        max-height: 220px;
        overflow-y: auto;
    }

    .stat-row {
        display: flex;
        justify-content: space-between;
        padding: 2px 0;
        border-bottom: 1px solid #eee;
    }

    /* Boss血条（下移并缩小，避免遮挡顶部左右两个信息栏） */
    #bossHealthBar {
        position: absolute;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: 35%;
        max-width: 300px;
        display: none;
        z-index: 15;
    }

    #bossHealthBar.show {
        display: block;
    }

    .boss-name {
        text-align: center;
        font-size: 11px;
        font-weight: bold;
        color: #c0392b;
        margin-bottom: 3px;
        text-shadow: 1px 1px 0 #fff;
    }

    .boss-bar-bg {
        width: 100%;
        height: 12px;
        background: rgba(0, 0, 0, 0.3);
        border: 2px solid #333;
        border-radius: 5px;
        overflow: hidden;
    }

    .boss-bar-fill {
        height: 100%;
        background: linear-gradient(to bottom, #e74c3c, #c0392b);
        transition: width 0.3s;
    }

    /* 升级浮窗 */
    #levelUpOverlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.55);
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }
    #levelUpOverlay.show { display: flex; }
    #levelUpPanel {
        background: #fff;
        border: 3px solid #333;
        border-radius: 12px;
        padding: 20px;
        max-width: 320px;
        width: 90%;
    }
    .upgrade-option {
        border: 2px solid #333;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 8px;
        cursor: pointer;
        background: #fafafa;
    }
    .upgrade-option:hover { background: #f0f0e8; }
    .upgrade-title { font-weight: bold; font-size: 13px; color: #333; margin-bottom: 4px; }
    .upgrade-desc { font-size: 11px; color: #666; }

    /* 关卡选择 */
    .level-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 16px 0;
    }
    .level-btn {
        background: #fff;
        border: 2px solid #2c3e50;
        border-radius: 10px;
        padding: 14px 18px;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: transform 0.1s;
        box-shadow: 2px 3px 0 rgba(0,0,0,0.1);
    }
    .level-btn:hover { transform: translateY(-2px); }
    .level-btn.locked {
        opacity: 0.55;
        cursor: not-allowed;
        background: #eee;
    }
    .level-btn-title {
        font-size: 16px;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 4px;
    }
    .level-btn-desc {
        font-size: 11px;
        color: #555;
    }

    /* 教程提示浮窗（暂停型） */
    .tutorial-hint {
        background: #fff;
        border: 3px solid #e67e22;
        border-radius: 12px;
        padding: 22px 24px;
        max-width: 360px;
        width: 85%;
        text-align: center;
        box-shadow: 3px 4px 0 rgba(0,0,0,0.15);
    }
    .tutorial-hint-title {
        font-size: 16px;
        color: #e67e22;
        font-weight: bold;
        margin-bottom: 10px;
    }
    .tutorial-hint-text {
        font-size: 14px;
        color: #333;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    .tutorial-hint-sub {
        font-size: 11px;
        color: #888;
    }

    /* 非暂停型浮窗 */
    .floating-hint {
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255,255,255,0.92);
        border: 2px solid #27ae60;
        border-radius: 10px;
        padding: 14px 20px;
        font-size: 13px;
        color: #333;
        cursor: pointer;
        z-index: 15;
        max-width: 85%;
        text-align: center;
        pointer-events: auto;
        box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    }
    .floating-hint.show { display: block; }

    /* 通关总结 */
    .victory-panel {
        background: #fff;
        border: 3px solid #f39c12;
        border-radius: 14px;
        padding: 22px;
        max-width: 340px;
        width: 90%;
        text-align: center;
        box-shadow: 4px 5px 0 rgba(0,0,0,0.1);
    }
    .victory-title {
        font-size: 22px;
        color: #e67e22;
        font-weight: bold;
        margin-bottom: 16px;
    }
    .victory-stats {
        background: #fafafa;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: 13px;
        color: #333;
        text-align: left;
        line-height: 1.8;
    }
    .victory-stats span.float-right {
        float: right;
        font-weight: bold;
        color: #2c3e50;
    }

    /* ====== 主菜单 / 子菜单 覆盖层 ====== */
    .menu-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(247, 244, 234, 0.92);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 20;
        pointer-events: auto;
    }
    .menu-overlay.show { display: flex; }

    .menu-panel {
        background: #ffffff;
        border: 3px solid #2c3e50;
        border-radius: 14px;
        padding: 24px 22px;
        max-width: 340px;
        width: 90%;
        box-shadow: 4px 6px 0 rgba(0,0,0,0.12);
        text-align: center;
    }

    .menu-title-big {
        font-size: 28px;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 4px;
        letter-spacing: 2px;
    }
    .menu-subtitle {
        font-size: 13px;
        color: #7f8c8d;
        margin-bottom: 22px;
        letter-spacing: 1px;
    }
    .menu-title {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        margin-bottom: 16px;
    }

    .menu-btn.big {
        font-size: 16px;
        padding: 14px;
        margin-bottom: 10px;
    }

    .menu-footer {
        margin-top: 14px;
        font-size: 11px;
        color: #888;
    }

    /* 机库预览 */
    .tank-preview {
        width: 100%;
        height: 110px;
        background: #f4f1e4;
        border: 2px dashed #b8a965;
        border-radius: 10px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .tank-preview-body {
        position: relative;
        width: 100px;
        height: 66px;
    }
    .tank-preview-track {
        position: absolute;
        width: 100px;
        height: 14px;
        background: #2c3e50;
        border-radius: 3px;
    }
    .tank-preview-track.left  { top: 2px; }
    .tank-preview-track.right { bottom: 2px; }
    .tank-preview-body::before {
        content: '';
        position: absolute;
        top: 14px; left: 4px;
        width: 92px; height: 38px;
        background: #5d6d7e;
        border: 2px solid #2c3e50;
        border-radius: 3px;
    }
    .tank-preview-turret {
        position: absolute;
        top: 20px; left: 30px;
        width: 34px; height: 26px;
        background: #7f8c8d;
        border: 2px solid #2c3e50;
        border-radius: 50%;
        z-index: 2;
    }
    .tank-preview-barrel {
        position: absolute;
        top: 30px; left: 58px;
        width: 46px; height: 8px;
        background: #34495e;
        border: 1px solid #1a252f;
        border-radius: 2px;
        z-index: 1;
    }
    .hangar-stats {
        text-align: left;
        background: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 12px;
        color: #333;
        margin-bottom: 12px;
        line-height: 1.7;
        max-height: 130px;
        overflow-y: auto;
    }
    .hangar-desc {
        text-align: left;
        font-size: 12px;
        color: #555;
        margin-bottom: 14px;
        line-height: 1.7;
    }
    .hangar-line { margin-bottom: 2px; }

    /* 仓库卡片网格 */
    .warehouse-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .warehouse-card {
        background: #fafaf5;
        border: 2px solid #2c3e50;
        border-radius: 10px;
        padding: 10px 6px;
        text-align: center;
    }
    .warehouse-icon {
        font-size: 28px;
        margin-bottom: 4px;
    }
    .warehouse-icon.purple { color: #9b59b6; }
    .warehouse-icon.gold   { color: #f39c12; }
    .warehouse-icon.blue   { color: #2980b9; }
    .warehouse-name {
        font-size: 12px;
        color: #333;
        font-weight: bold;
        margin-bottom: 4px;
    }
    .warehouse-count {
        font-size: 18px;
        color: #2c3e50;
        font-weight: bold;
        margin-bottom: 4px;
    }
    .warehouse-desc {
        font-size: 10px;
        color: #777;
        line-height: 1.4;
    }
    .warehouse-info {
        font-size: 11px;
        color: #666;
        background: #f4f1e4;
        border-radius: 6px;
        padding: 8px;
        margin-bottom: 12px;
    }
    .warehouse-shards-title {
        font-size: 12px;
        color: #2c3e50;
        font-weight: bold;
        margin: 4px 0 8px 0;
        text-align: center;
    }
    .warehouse-shards-grid {
        display: grid;
        grid-template-columns: repeat(9, 1fr);
        gap: 4px;
        margin-bottom: 12px;
    }
    .warehouse-shard-cell {
        background: #fafaf5;
        border: 2px solid #2c3e50;
        border-radius: 6px;
        padding: 6px 2px;
        text-align: center;
    }
    .warehouse-shard-cell .swatch {
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1.5px solid #222;
        vertical-align: middle;
        margin-bottom: 2px;
    }
    .warehouse-shard-cell .lv {
        font-size: 10px;
        color: #555;
    }
    .warehouse-shard-cell .count {
        font-size: 13px;
        color: #2c3e50;
        font-weight: bold;
        margin-top: 2px;
    }

    /* ========== 横屏模式布局 ========== */
    body.landscape #gameContainer {
        /* 横屏：强调水平空间；画布按设备实际宽高渲染 */
        aspect-ratio: auto;
    }
    /* 横屏：顶部信息栏更紧凑 */
    body.landscape #playerStats {
        top: 8px; left: 8px;
        padding: 4px 8px;
        min-width: 140px;
        font-size: 12px;
    }
    body.landscape #gameData {
        top: 8px; right: 8px;
        padding: 4px 8px;
        min-width: 130px;
        font-size: 12px;
    }
    /* 横屏：技能取消按钮从顶部中间移到顶部右侧（防止遮挡） */
    body.landscape #skillCancelBtn {
        right: 20px;
        transform: none;
    }
    body.landscape #skillCancelBtn.hovering {
        transform: scale(1.15);
    }
    /* 横屏：摇杆在左下角；技能按钮在右下角（保持竖屏原有逻辑但更紧凑） */
    body.landscape #skillButtons {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    body.landscape .skill-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    body.landscape .skill-btn.ultimate {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
    body.landscape #joystickContainer {
        /* 摇杆也更紧凑一些 */
        width: 45%;
    }

    /* 横屏：boss 血条下移并缩小，避免遮挡顶部左右信息栏 */
    body.landscape #bossHealthBar {
        top: 74px;
        max-width: 340px;
        width: 30%;
    }

    /* 横屏：菜单面板保持舒适宽度 */
    body.landscape #menuPanel {
        max-width: 380px;
    }

    /* ====== 机库：坦克格子列表 ====== */
    .hangar-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }
    .hangar-cell {
        background: #f5f5f0;
        border: 2px solid #888;
        border-radius: 8px;
        padding: 10px 6px;
        text-align: center;
        cursor: pointer;
        user-select: none;
        min-height: 78px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: transform 0.1s, box-shadow 0.1s;
    }
    .hangar-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
    .hangar-cell.unlocked { border-color: #2ecc71; background: #eafff0; }
    .hangar-cell.locked { opacity: 0.55; cursor: not-allowed; }
    .hangar-cell-icon { font-size: 28px; line-height: 1; }
    .hangar-cell-name { font-size: 12px; font-weight: bold; color: #333; }
    .hangar-cell-status { font-size: 10px; color: #777; }

    /* ====== 坦克详情：装备 / 技能 槽位 ====== */
    .detail-section-title {
        font-size: 13px;
        font-weight: bold;
        color: #333;
        margin: 12px 0 6px;
        padding-bottom: 4px;
        border-bottom: 1px dashed #bbb;
    }
    .slot-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .slot {
        background: #fff;
        border: 2px dashed #aaa;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        text-align: center;
        user-select: none;
        min-height: 60px;
        transition: transform 0.1s, background 0.1s;
    }
    .slot:hover { transform: translateY(-1px); background: #fafafa; }
    .slot.filled { border-style: solid; border-color: #2ecc71; background: #eafff0; }
    .slot .slot-icon { font-size: 20px; }
    .slot .slot-label { font-size: 10px; color: #777; margin-top: 2px; }
    .slot .slot-name { font-size: 12px; font-weight: bold; color: #333; margin-top: 3px; }
    .slot .slot-empty { font-size: 12px; color: #999; margin-top: 10px; }

    /* ====== 装备选择弹层 ====== */
    .equip-picker-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        z-index: 100;
    }
    .equip-picker-overlay.show { display: flex; }
    .equip-picker-panel {
        background: #fff;
        border: 3px solid #333;
        border-radius: 12px;
        padding: 16px;
        max-width: 320px;
        width: 90%;
        max-height: 75vh;
        overflow-y: auto;
    }
    .equip-picker-title {
        font-weight: bold;
        font-size: 14px;
        color: #333;
        margin-bottom: 8px;
        text-align: center;
    }
    .equip-picker-item {
        border: 2px solid #aaa;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 6px;
        cursor: pointer;
        transition: background 0.1s;
    }
    .equip-picker-item:hover { background: #f0f5ff; border-color: #3498db; }
    .equip-picker-item.equipped { border-color: #2ecc71; background: #eafff0; }
    .equip-picker-item .pick-icon { font-size: 20px; }
    .equip-picker-item .pick-name { font-weight: bold; font-size: 13px; color: #222; }
    .equip-picker-item .pick-desc { font-size: 11px; color: #555; margin-top: 3px; line-height: 1.35; }
    .equip-picker-item.unequip { border-color: #e67e22; background: #fff7f0; }
    .equip-picker-item.unequip:hover { background: #ffe0c2; }
    .equip-picker-close {
        margin-top: 8px;
        width: 100%;
        padding: 8px;
        background: #fff;
        border: 2px solid #555;
        border-radius: 6px;
        cursor: pointer;
        font-family: inherit;
        font-size: 12px;
    }

/* ============================================================
   设置面板 / 音量滑块
   ============================================================ */
#settingsOverlay .menu-panel {
    padding: 20px 20px 24px;
}
#settingsOverlay .slot-row .slot-label {
    display: flex;
    align-items: center;
    font-weight: bold;
}
#settingsOverlay .menu-title {
    text-align: center;
}
input[type=range] {
    width: 100%;
    height: 24px;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid #fff;
    -webkit-appearance: none;
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}
input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid #fff;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
#menuPanel .volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #333;
}
#menuPanel .volume-row .slot-label {
    font-weight: bold;
    min-width: 80px;
}
#menuPanel .volume-row input[type=range] {
    flex: 1;
}

/* ============================================================
   更新日志面板
   ============================================================ */
.changelog-panel {
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.changelog-version-tag {
    text-align: center;
    font-size: 12px;
    color: #27ae60;
    font-weight: bold;
    margin: -8px 0 10px;
    padding: 4px 10px;
    background: #eafaf1;
    border-radius: 12px;
    display: inline-block;
    align-self: center;
}
.changelog-content {
    overflow-y: auto;
    flex: 1;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    padding-right: 6px;
    max-height: 60vh;
}
.changelog-content::-webkit-scrollbar {
    width: 6px;
}
.changelog-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
.changelog-content h2 {
    font-size: 14px;
    color: #2c3e50;
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #3498db;
}
.changelog-content h2:first-child {
    margin-top: 0;
}
.changelog-content h3 {
    font-size: 13px;
    color: #2980b9;
    margin: 10px 0 4px;
}
.changelog-content h4 {
    font-size: 12px;
    color: #e67e22;
    margin: 8px 0 3px;
}
.changelog-content ul {
    margin: 4px 0 4px 18px;
    padding: 0;
}
.changelog-content li {
    margin: 2px 0;
}
.changelog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 11px;
}
.changelog-content th,
.changelog-content td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: left;
}
.changelog-content th {
    background: #f0f6fc;
    font-weight: bold;
}
.changelog-content strong {
    color: #c0392b;
}
.changelog-content code {
    background: #f4f4f4;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
    font-family: Consolas, monospace;
}
.changelog-content hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 12px 0;
}