/* ==================== CSS变量定义 ==================== */
:root {
    --primary-color: #8b4513;
    --secondary-color: #d4a574;
    --accent-color: #ffd700;
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    --text-primary: #e8d5b7;
    --text-secondary: #a89984;
    --hp-color: #e74c3c;
    --mp-color: #3498db;
    --gold-color: #f1c40f;
    --border-color: #5c4033;
    --panel-bg: rgba(20, 15, 10, 0.95);
}

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* iPhone 12 横屏尺寸 */
    width: 844px;
    height: 390px;
    overflow: hidden;
}

body {
    font-family: 'GameFont', 'Microsoft YaHei', sans-serif;
    background: #1a1a2e;
    overflow: hidden;
    user-select: none;
    /* iPhone 12 横屏尺寸 */
    width: 844px;
    height: 390px;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==================== 隐藏类 ==================== */
.hidden {
    display: none !important;
}

/* ==================== 游戏容器 ==================== */
#game-container {
    /* iPhone 12 横屏尺寸 */
    width: 844px;
    height: 390px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* ==================== 加载界面 ==================== */
#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-title {
    font-size: 36px;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.loading-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 创建角色界面 ==================== */
#create-character-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 40%, #0d0d1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

/* 背景粒子层 */
.create-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.create-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 60%);
}

/* 符文装饰 */
.create-runes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0.06;
    font-size: 120px;
    color: #8b0000;
    letter-spacing: 20px;
    animation: runePulse 4s ease-in-out infinite;
}

@keyframes runePulse {
    0%, 100% { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.08; transform: translate(-50%, -50%) scale(1.05); }
}

/* 主内容区 - 横屏左右布局 */
.create-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 30px 50px;
    background: rgba(10, 8, 6, 0.85);
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 4px;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(139, 69, 19, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* 左侧品牌区 */
.create-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-right: 50px;
    border-right: 1px solid rgba(139, 69, 19, 0.3);
}

.create-logo {
    font-size: 48px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.create-title {
    font-size: 32px;
    color: #d4a574;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    letter-spacing: 6px;
    font-family: 'PowerLabelFont', 'STXingkai', cursive;
}

.create-subtitle {
    font-size: 12px;
    color: rgba(168, 153, 132, 0.7);
    letter-spacing: 3px;
    margin-top: 4px;
}

/* 右侧表单区 */
.create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 240px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(168, 153, 132, 0.8);
    letter-spacing: 2px;
}

.label-icon {
    color: #8b0000;
    font-size: 10px;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(92, 64, 51, 0.6);
    border-radius: 3px;
    color: #e8d5b7;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.form-group input::placeholder {
    color: rgba(168, 153, 132, 0.4);
}

.form-group input:focus {
    border-color: rgba(139, 69, 19, 0.8);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.15), inset 0 0 10px rgba(139, 69, 19, 0.05);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    transition: all 0.4s;
    transform: translateX(-50%);
}

.form-group input:focus ~ .input-glow {
    width: 100%;
}

/* 创建按钮 */
.create-btn {
    position: relative;
    padding: 14px;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.3), rgba(92, 51, 23, 0.5));
    border: 1px solid rgba(139, 69, 19, 0.6);
    border-radius: 3px;
    color: #d4a574;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.create-btn:hover {
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.5), rgba(92, 51, 23, 0.7));
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 25px rgba(139, 69, 19, 0.2);
    transform: translateY(-1px);
}

.create-btn:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: left 0.5s;
}

.create-btn:hover .btn-shine {
    left: 100%;
}

/* 底部装饰 */
.create-footer {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.footer-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.5), transparent);
}

.footer-text {
    font-size: 11px;
    color: rgba(168, 153, 132, 0.4);
    letter-spacing: 3px;
}

/* ==================== 游戏主界面 ==================== */
#game-screen {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==================== 顶部状态栏 ==================== */
#top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    z-index: 100;
    pointer-events: auto;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: bold;
}

.player-level {
    font-size: 11px;
    color: var(--accent-color);
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    max-width: 200px;
    padding: 5px 10px;
    border-radius: 8px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.bar-container {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    height: 100%;
    transition: width 0.3s ease;
}

.hp-bar {
    background: linear-gradient(90deg, #c0392b, var(--hp-color));
    width: 100%;
}

.mp-bar {
    background: linear-gradient(90deg, #2980b9, var(--mp-color));
    width: 100%;
}

.stat-text {
    font-size: 10px;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

.currency-display {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.currency-icon {
    font-size: 14px;
}

.currency-item span:last-child {
    font-size: 14px;
    color: var(--gold-color);
    font-weight: bold;
}

.dust-item span:last-child {
    color: #a0a0a0;
}

.auto-battle-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auto-battle-btn:hover {
    border-color: var(--accent-color);
    background: rgba(139, 69, 19, 0.3);
}

.auto-battle-btn.active {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== 场景容器 ==================== */
#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.scene.active {
    display: block;
}

/* ==================== 出生房间 ==================== */
.scene-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.room-bg {
    background-image: url('../../assets/img/xiaowu.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.isometric-room {
    perspective: 1000px;
}

/* 屋顶 */
.room-roof {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 35%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.roof-left, .roof-right {
    width: 25%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 55, 40, 0.7) 0%, rgba(45, 31, 21, 0.7) 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.roof-center {
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgba(92, 64, 51, 0.7) 0%, rgba(61, 40, 23, 0.7) 100%);
    border-left: 3px solid rgba(42, 26, 16, 0.5);
    border-right: 3px solid rgba(42, 26, 16, 0.5);
}

/* 左墙 */
.room-wall-left {
    position: absolute;
    top: 25%;
    left: 5%;
    width: 20%;
    height: 45%;
    background: linear-gradient(90deg, rgba(61, 40, 23, 0.7) 0%, rgba(45, 31, 21, 0.7) 100%);
    transform: skewY(-10deg);
    border: 2px solid rgba(26, 15, 10, 0.5);
    overflow: hidden;
}

.wall-brick {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(0, 0, 0, 0.2) 20px,
        rgba(0, 0, 0, 0.2) 21px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(0, 0, 0, 0.15) 30px,
        rgba(0, 0, 0, 0.15) 31px
    );
}

.wall-window {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 25%;
    background: rgba(255, 200, 100, 0.2);
    border: 2px solid #1a0f0a;
    box-shadow: 0 0 10px rgba(255, 200, 100, 0.3);
}

/* 右墙 */
.room-wall-right {
    position: absolute;
    top: 25%;
    right: 5%;
    width: 20%;
    height: 45%;
    background: linear-gradient(-90deg, rgba(61, 40, 23, 0.7) 0%, rgba(45, 31, 21, 0.7) 100%);
    transform: skewY(10deg);
    border: 2px solid rgba(26, 15, 10, 0.5);
}

/* 地板 */
.room-floor {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 35%;
    background: linear-gradient(180deg, rgba(45, 31, 21, 0.8) 0%, rgba(26, 15, 10, 0.8) 100%);
    border: 3px solid rgba(61, 40, 23, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.floor-tiles {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(61, 40, 23, 0.3) 20px,
        rgba(61, 40, 23, 0.3) 40px
    );
}

/* 室内物品层 */
.room-interior {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 35%;
    z-index: 10;
}

/* 主角样式 */
.player-sprite {
    position: absolute;
    width: auto;
    height: auto;
    transform: translateX(-50%);
    z-index: 15;
    transition: left 0.3s ease-out, bottom 0.3s ease-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.player-character-img {
    width: 95px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

/* 传送门 */
.room-object {
    position: absolute;
    cursor: pointer;
    z-index: 5;
}

.portal {
    bottom: 15%;
    right: 15%;
    width: 60px;
    height: 80px;
    z-index: 999;
}

.object-shadow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4), transparent);
}

.portal-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4a0080, #2d004d);
    border: 3px solid #8b00ff;
    border-radius: 50% 50% 45% 45%;
    overflow: hidden;
    animation: portalGlow 2s infinite;
}

@keyframes portalGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.6); }
    50% { box-shadow: 0 0 40px rgba(138, 43, 226, 0.9); }
}

.portal-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.portal-ripple.delay-1 { animation-delay: 0.5s; }
.portal-ripple.delay-2 { animation-delay: 1s; }

@keyframes ripple {
    0% { width: 20%; height: 20%; opacity: 1; }
    100% { width: 100%; height: 100%; opacity: 0; }
}

.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 50%;
    background: radial-gradient(ellipse, #fff, #8b00ff);
    border-radius: 50%;
}

.object-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 1000;
}
}

/* ==================== 大地图场景 ==================== */
.map-bg {
    background: linear-gradient(180deg, #1a2a1a 0%, #0d150d 100%);
}

.map-info {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.map-name {
    font-size: 16px;
    color: var(--accent-color);
    text-align: center;
}

.map-level {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.monster-zone {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
}

.monster {
    position: absolute;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    transition: transform 0.2s;
}

.monster:hover {
    transform: translateX(-50%) scale(1.1);
}

/* 血条在怪物最上方 */
.monster-hp-bar {
    width: 48px;
    height: 5px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 0, 0.35);
    margin-bottom: 0;
}

.monster-hp {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #e74c3c);
    transition: width 0.3s;
}

.monster-sprite {
    position: relative;
    width: 90px;
    height: 83px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* 图片怪物 */
.monster-body-img {
    width: 87px;
    height: auto;
    max-height: 83px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(128, 0, 64, 0.4));
    transition: filter 0.3s;
}

.monster:hover .monster-body-img {
    filter: drop-shadow(0 0 14px rgba(200, 0, 80, 0.6));
}

/* emoji怪物（BOSS等无图片的）— 暗黑滤镜 */
.monster-body {
    font-size: 57px;
    filter: brightness(0.55) contrast(1.35) saturate(0.7) drop-shadow(0 0 10px rgba(128, 0, 64, 0.55));
    transition: filter 0.3s;
}

.monster:hover .monster-body {
    filter: brightness(0.75) contrast(1.35) saturate(0.8) drop-shadow(0 0 14px rgba(200, 0, 80, 0.75));
}

/* 等级和名字合并一行 */
.monster-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    white-space: nowrap;
}

.monster-level {
    font-size: 10px;
    color: #ff5555;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.45);
    font-weight: bold;
}

.monster-name {
    font-size: 11px;
    color: #a89880;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95);
}

/* 稀有精英标签 */
.elite-tag {
    font-size: 9px;
    color: #ff69b4;
    background: rgba(255, 105, 180, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 3px;
    padding: 0 3px;
    line-height: 1.2;
}

/* 稀有精英怪物边框发光 */
.elite-monster {
    filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.4));
}

.elite-monster .monster-body,
.elite-monster .monster-body-img {
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.5)) saturate(1.2);
}

.map-exit-portal {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-portal-core {
    width: 40px;
    height: 40px;
    background: rgba(139, 69, 19, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.exit-portal-ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: exitPortalRipple 2s ease-out infinite;
    opacity: 0.6;
}

.map-exit-portal:hover .exit-portal-core {
    background: rgba(139, 69, 19, 1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

@keyframes exitPortalRipple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ==================== 底部导航 ==================== */
#bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
    pointer-events: auto;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    flex: 1;
    min-width: 0;
}

.nav-btn:hover {
    background: rgba(139, 69, 19, 0.3);
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: inherit;
}

.nav-btn:hover .nav-label {
    color: var(--text-primary);
}

/* 整合按钮 */
.nav-toggle-btn {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 58px;
    height: 58px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: toggle-wobble 1.5s ease-in-out infinite;
    transition: transform 0.4s ease, background 0.3s;
}

.nav-toggle-btn:hover {
    background: transparent;
}

.nav-toggle-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.4s ease;
    pointer-events: none;
    transform: rotate(180deg);
}

/* 展开状态恢复为原方向（向左） */
#bottom-nav.expanded .nav-toggle-img {
    transform: rotate(0deg);
}

/* 前后晃动动画 */
@keyframes toggle-wobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* 导航按钮容器 */
.nav-buttons-wrapper {
    display: none;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 0;
    margin-left: 65px;
}

/* 展开状态 */
#bottom-nav.expanded .nav-buttons-wrapper {
    display: flex;
    opacity: 1;
}

/* ==================== 侧边面板 ==================== */
.side-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--panel-bg);
    border-left: 3px solid var(--border-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
}

.panel-header h3 {
    font-size: 18px;
    color: var(--accent-color);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-right: 15px;
}

.panel-title-capacity {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
    padding-right: 8px;
}

.panel-close {
    width: 30px;
    height: 30px;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-close:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    color: #e74c3c;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.panel-content::-webkit-scrollbar {
    display: none;
}

/* 背包网格 */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.inventory-slot:hover {
    border-color: var(--accent-color);
    background: rgba(139, 69, 19, 0.2);
}

.inventory-slot.empty {
    opacity: 0.5;
    cursor: default;
}

.item-count {
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 10px;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 装备升级提示箭头 */
.upgrade-arrow {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #4ade80;
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
    animation: arrowPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-2px); }
}

/* 装备网格 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.equip-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.equip-slot:hover {
    border-color: var(--accent-color);
    background: rgba(139, 69, 19, 0.2);
}

.equip-slot.empty {
    opacity: 0.6;
}

.equip-slot-icon {
    font-size: 32px;
}

.equip-slot-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.equip-slot-name {
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
}

/* 角色信息 */
.character-info {
    text-align: center;
    padding: 20px;
}

.char-portrait {
    font-size: 60px;
    margin-bottom: 15px;
}

.char-name {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.char-class {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.char-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: left;
}

.char-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.char-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.char-stat-value {
    font-size: 16px;
    color: var(--text-primary);
}

/* 任务列表 */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.quest-title {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.quest-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.quest-progress {
    font-size: 11px;
    color: var(--text-primary);
}

/* 地图列表 */
.map-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-item.current {
    border-color: var(--accent-color);
    background: rgba(139, 69, 19, 0.2);
}

.map-item.locked {
    opacity: 0.5;
}

.map-item-name {
    font-size: 14px;
    color: var(--text-primary);
}

.map-item-level {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==================== 新版地图选择面板 ==================== */
.map-selection-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.map-group-icon {
    font-size: 18px;
}

.map-group-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.map-card {
    background: linear-gradient(145deg, rgba(42, 32, 22, 0.7) 0%, rgba(20, 15, 10, 0.75) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.map-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.map-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.map-card.locked:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.map-card.current {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15), inset 0 0 8px rgba(255, 215, 0, 0.05);
}

.map-card-icon {
    font-size: 32px;
    line-height: 1;
}

.map-card-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: bold;
}

.map-card-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-secondary);
}

.map-meta-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.map-card-desc {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.3;
}

/* ==================== 装备星星 ==================== */
.equip-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    min-height: 20px;
}

.equip-stars .qq-star,
.equip-stars .qq-moon,
.equip-stars .qq-sun {
    font-size: 14px;
}

.equip-stars .enhance-pending {
    font-size: 12px;
}

/* ==================== 强化面板 ==================== */
.enhance-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
}

/* 粉尘信息条 */
.enhance-dust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(92, 64, 51, 0.5);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.enhance-dust-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.enhance-dust-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.enhance-dust-label .dust-icon {
    font-size: 18px;
}

.enhance-dust-label .dust-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.enhance-dust-count {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.enhance-dust-count .dust-num {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: bold;
}

.enhance-dust-count .dust-unit {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 当前装备信息 */
.enhance-current-equip {
    background: linear-gradient(145deg, rgba(42, 32, 22, 0.5) 0%, rgba(20, 15, 10, 0.55) 100%);
    border: 1.5px solid rgba(92, 64, 51, 0.45);
    border-radius: 12px;
    padding: 14px;
}

.enhance-equip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.enhance-equip-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 2px solid;
    flex-shrink: 0;
}

.enhance-equip-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.enhance-equip-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
}

.enhance-equip-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
    flex-wrap: wrap;
    min-height: 24px;
}

.enhance-equip-stats {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.enhance-equip-stats .stat-line {
    margin: 3px 0;
}

.enhance-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.enhance-cost {
    font-size: 14px;
    color: var(--text-secondary);
}

.enhance-cost .cost-value {
    color: var(--accent-color);
    font-weight: bold;
}

.enhance-success-rate {
    font-size: 13px;
    color: var(--text-secondary);
}

.enhance-success-rate .rate-value {
    color: #4ade80;
    font-weight: bold;
}

.enhance-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.5), rgba(92, 33, 17, 0.5));
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 4px;
}

.enhance-btn:hover {
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.7), rgba(92, 33, 17, 0.7));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.enhance-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.enhance-result {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    animation: resultPulse 0.5s ease;
}

.enhance-result.success {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.enhance-result.fail {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

@keyframes resultPulse {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==================== 物品详情弹窗 ==================== */
.item-detail-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px;
    max-height: 90%;
    background: var(--panel-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-detail-content {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.item-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.item-detail-name {
    font-size: 18px;
    color: var(--accent-color);
}

.item-detail-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.item-detail-close:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    color: #e74c3c;
}

.item-detail-body {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.item-detail-body::-webkit-scrollbar {
    display: none;
}

.item-detail-icon {
    font-size: 50px;
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.item-detail-type, .item-detail-quality {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-detail-stats {
    width: 100%;
    margin-top: 0;
}

.item-detail-divider {
    width: 90%;
    height: 1px;
    margin: 4px auto;
    background: linear-gradient(90deg, transparent 0%, rgba(100, 85, 65, 0.35) 20%, rgba(100, 85, 65, 0.35) 80%, transparent 100%);
    border: none;
}

.item-detail-stat {
    font-size: 13px;
    color: #4ade80;
    margin-bottom: 3px;
}

.item-detail-actions {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.item-action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.item-action-btn:hover {
    background: rgba(139, 69, 19, 0.5);
    border-color: var(--accent-color);
}

.item-action-btn:last-child:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

/* ==================== 模态框遮罩 ==================== */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
}

/* ==================== 提示消息 ==================== */
.toast {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 8, 6, 0.85);
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    color: #d4a574;
    font-size: 13px;
    z-index: 300;
    animation: toastIn 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 新提示顶掉旧提示的动画 */
.toast-bump {
    animation: toastBump 0.2s ease !important;
}

@keyframes toastBump {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(0.92);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* ==================== 伤害数字 ==================== */
#damage-numbers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    overflow: hidden;
}

.damage-number {
    position: absolute;
    font-family: 'DamageFont', 'MaShanZheng', cursive;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: damageFloat 1.2s ease-out forwards;
    z-index: 500;
    white-space: nowrap;
}

.damage-number.player-damage {
    color: #ffffff;
}

.damage-number.crit-damage {
    color: #ff0000;
    font-size: 36px;
    animation: damageFloatCrit 1.2s ease-out forwards;
}

.damage-number.monster-damage {
    color: #ff3333;
    animation: playerDamageDrop 1.2s ease-out forwards;
}

.damage-number.aura-damage {
    color: #8b00ff;
    font-size: 24px;
}

/* ==================== 属性变化飘字 ==================== */
.attribute-change {
    position: absolute;
    font-family: 'DamageFont', 'MaShanZheng', cursive;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: attrFloat 1.5s ease-out forwards;
    z-index: 500;
    white-space: nowrap;
}

.attribute-change.positive {
    color: #4ade80;
}

.attribute-change.negative {
    color: #f87171;
}

@keyframes attrFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(1);
    }
}

@keyframes damageFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }
    20% {
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1);
    }
}

@keyframes playerDamageDrop {
    0% {
        opacity: 1;
        transform: translateY(-4px) scale(0.9);
    }
    20% {
        transform: translateY(2px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
}

@keyframes damageFloatCrit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }
    20% {
        transform: translateY(-20px) scale(1.6);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1);
    }
}

/* ==================== 技能激活指示器 ==================== */
#skill-active-indicator {
    position: absolute;
    top: 64px;
    left: 15px;
    transform: none;
    z-index: 150;
}

.aura-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 0, 0, 0.8);
    border: 1px solid #ff0000;
    border-radius: 20px;
    padding: 6px 16px;
    animation: auraPulse 2s infinite;
}

.aura-icon {
    font-size: 18px;
}

.aura-name {
    font-size: 13px;
    color: #ff6666;
    font-weight: bold;
}

@keyframes auraPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }
}

/* ==================== 技能面板 ==================== */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.skill-item.active {
    border-color: #ff0000;
    background: rgba(139, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.skill-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.skill-item.active .skill-icon {
    border-color: #ff0000;
    animation: skillIconPulse 2s infinite;
}

@keyframes skillIconPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }
}

.skill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-name {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: bold;
}

.skill-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.skill-toggle-btn {
    padding: 8px 16px;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.skill-toggle-btn:hover {
    background: rgba(139, 69, 19, 0.5);
    border-color: var(--accent-color);
}

/* ==================== 新版装备面板 ==================== */
.equipment-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.equip-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.equip-header-power {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.power-label {
    font-size: 20px;
    color: var(--text-secondary);
    font-family: 'PowerLabelFont', 'STXingkai', 'KaiTi', serif;
}

.power-num {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'PowerNumFont', 'KaiTi', serif;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.equip-avatar-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
}

.equip-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 41px;
    flex-shrink: 0;
}

.equip-col:first-child {
    margin-left: 5px;
}

.equip-col:last-child {
    margin-right: 5px;
}

.equip-slot-v2 {
    width: 41px;
    height: 41px;
    background: linear-gradient(145deg, rgba(45, 35, 25, 0.9) 0%, rgba(22, 17, 12, 0.95) 100%);
    border: 1.5px solid rgba(92, 64, 51, 0.55);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.equip-slot-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.equip-slot-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.equip-slot-v2:hover {
    transform: translateY(-1px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.equip-slot-v2.empty {
    background: linear-gradient(145deg, rgba(32, 26, 20, 0.5) 0%, rgba(16, 13, 9, 0.55) 100%);
    border-color: rgba(92, 64, 51, 0.3);
}

.equip-slot-v2.empty:hover {
    border-color: rgba(92, 64, 51, 0.5);
    box-shadow: none;
    transform: none;
}

.slot-icon-main {
    font-size: 22px;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
}

.slot-icon-main.dim {
    opacity: 0.25;
    filter: grayscale(0.9);
    border: none;
}

.inv-icon-wrap {
    font-size: 22px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
}

.slot-stars {
    font-size: 8px;
    line-height: 1;
    margin-top: 2px;
    display: flex;
    gap: 1px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.slot-label {
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1;
}

/* 装备格子星级标签 +x */
.slot-star-label {
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 9px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
    line-height: 1;
    pointer-events: none;
}

/* 装备格子显示待升星 */
.equip-slot-v2 .slot-stars .enhance-pending {
    font-size: 7px;
    color: rgba(160, 150, 140, 0.6);
}

/* QQ等级风格星级样式 */
.qq-star {
    font-size: 10px;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.6));
}

.qq-moon {
    font-size: 10px;
    filter: drop-shadow(0 0 3px rgba(173, 216, 230, 0.6));
}

.qq-sun {
    font-size: 11px;
    filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.7));
}

/* 待升星文字样式 */
.enhance-pending {
    font-size: 12px;
    color: rgba(160, 150, 140, 0.5);
    font-style: italic;
    letter-spacing: 1px;
}

.quality-glow-normal {
    border-color: rgba(200, 200, 200, 0.45);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.08), inset 0 0 6px rgba(255, 255, 255, 0.04);
}

.quality-glow-good {
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 7px rgba(74, 222, 128, 0.12), inset 0 0 6px rgba(74, 222, 128, 0.04);
}

.quality-glow-fine {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 7px rgba(96, 165, 250, 0.12), inset 0 0 6px rgba(96, 165, 250, 0.04);
}

.quality-glow-legendary {
    border-color: rgba(204, 102, 0, 0.5);
    box-shadow: 0 0 9px rgba(204, 102, 0, 0.18), inset 0 0 6px rgba(204, 102, 0, 0.05);
}

.quality-glow-epic {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.22), inset 0 0 8px rgba(255, 215, 0, 0.07);
}

.set-glow {
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 0 12px rgba(255, 100, 100, 0.2), inset 0 0 8px rgba(255, 100, 100, 0.07);
}

.equip-figure-center {
    flex: 1;
    height: 216px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 80px;
}

/* 角色图片 */
.figure-character-img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(139, 69, 19, 0.25));
}

/* 呼吸光晕 */
.figure-aura {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.15) 0%, transparent 70%);
    animation: figureAuraPulse 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes figureAuraPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0.15; }
}

.equip-set-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid;
    border-radius: 8px;
    font-size: 11px;
}

.set-icon {
    font-size: 9px;
}

.set-name {
    font-weight: bold;
}

.set-count {
    opacity: 0.75;
    font-size: 10px;
}

/* ==================== 新版角色面板 ==================== */
.character-panel-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.char-header-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.18) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.char-header-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.25), transparent);
}

.char-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-header-name {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: bold;
}

.char-header-divider {
    color: var(--border-color);
    font-size: 12px;
}

.char-header-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.char-header-power {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.power-label-char {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'PowerLabelFont', 'STXingkai', 'KaiTi', serif;
}

.power-num-char {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'PowerNumFont', 'KaiTi', serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.char-attrs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.char-attr-card {
    background: linear-gradient(145deg, rgba(42, 32, 22, 0.7) 0%, rgba(20, 15, 10, 0.75) 100%);
    border: 1px solid rgba(92, 64, 51, 0.45);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}

.char-attr-card:hover {
    border-color: rgba(139, 69, 19, 0.7);
    transform: translateY(-1px);
}

.char-attr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.25;
}

.char-attr-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.char-attr-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: bold;
}

.char-attr-bar {
    height: 3px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.char-attr-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ==================== 新版背包面板 ==================== */

/* 背包整体包装 */
.inventory-panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
}

/* 背包头部信息栏 */
.inventory-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.22) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(92, 64, 51, 0.5);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.inventory-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.inv-header-title {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
}

.inv-header-capacity {
    font-size: 11px;
    color: var(--text-secondary);
}

.inv-header-capacity .cap-current {
    color: var(--text-primary);
    font-weight: bold;
}

.inv-header-capacity .cap-max {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 容量进度条 */
.inventory-capacity-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 2px;
    overflow: hidden;
    margin-top: -4px;
}

.inventory-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #5c3317, var(--accent-color));
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
}

/* 分类筛选标签 */
.inventory-tabs {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 4px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    border: 1px solid rgba(92, 64, 51, 0.25);
}

.inv-tab {
    padding: 5px 9px;
    font-size: 11px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
}

.inv-tab:hover {
    color: var(--text-primary);
    background: rgba(139, 69, 19, 0.15);
}

.inv-tab.active {
    color: var(--accent-color);
    background: rgba(139, 69, 19, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
}

/* 一键整理按钮 */
.inv-sort-btn {
    margin-left: auto;
    padding: 5px 8px;
    font-size: 14px;
    background: rgba(139, 69, 19, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1;
}

.inv-sort-btn:hover {
    background: rgba(139, 69, 19, 0.45);
    border-color: rgba(255, 215, 0, 0.4);
    transform: scale(1.08);
}

.inv-sort-btn:active {
    transform: scale(0.95);
}

/* 网格外框 - 皮革包裹感 */
.inventory-grid-frame {
    background: linear-gradient(145deg, rgba(42, 32, 22, 0.35) 0%, rgba(20, 15, 10, 0.45) 100%);
    border: 1.5px solid rgba(92, 64, 51, 0.4);
    border-radius: 12px;
    padding: 12px 10px;
    position: relative;
}

.inventory-grid-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.inventory-grid-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

.inventory-grid-v2 {
    display: grid;
    grid-template-columns: repeat(6, 41px);
    gap: 7px;
    justify-content: center;
}

.inventory-slot-v2 {
    width: 41px;
    height: 41px;
    background: linear-gradient(145deg, rgba(42, 32, 22, 0.65) 0%, rgba(20, 15, 10, 0.7) 100%);
    border: 1.5px solid rgba(92, 64, 51, 0.45);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* 格子顶部高光 */
.inventory-slot-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* 格子右下角装饰 */
.inventory-slot-v2::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 4px 0;
    pointer-events: none;
}

.inventory-slot-v2:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* 空格子 - 内凹质感 */
.inventory-slot-v2.empty {
    background: linear-gradient(145deg, rgba(25, 20, 15, 0.4) 0%, rgba(15, 12, 8, 0.5) 100%);
    border-color: rgba(92, 64, 51, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.inventory-slot-v2.empty:hover {
    transform: none;
    border-color: rgba(92, 64, 51, 0.25);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 空格子内部 subtle 装饰点 */
.inventory-slot-v2.empty::before {
    background: none;
}

/* 物品数量优化 */
.item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    letter-spacing: -0.3px;
    z-index: 2;
}

/* 背包品质光效 */
.inv-glow-normal { border-color: rgba(200, 200, 200, 0.4); box-shadow: 0 0 5px rgba(255, 255, 255, 0.06), inset 0 0 5px rgba(255, 255, 255, 0.03); }
.inv-glow-good { border-color: rgba(74, 222, 128, 0.4); box-shadow: 0 0 6px rgba(74, 222, 128, 0.1), inset 0 0 5px rgba(74, 222, 128, 0.03); }
.inv-glow-fine { border-color: rgba(96, 165, 250, 0.4); box-shadow: 0 0 6px rgba(96, 165, 250, 0.1), inset 0 0 5px rgba(96, 165, 250, 0.03); }
.inv-glow-legendary { border-color: rgba(204, 102, 0, 0.45); box-shadow: 0 0 8px rgba(204, 102, 0, 0.15), inset 0 0 5px rgba(204, 102, 0, 0.04); }
.inv-glow-epic { border-color: rgba(255, 215, 0, 0.45); box-shadow: 0 0 10px rgba(255, 215, 0, 0.18), inset 0 0 6px rgba(255, 215, 0, 0.06); }
.inv-glow-set { border-color: rgba(255, 100, 100, 0.45); box-shadow: 0 0 10px rgba(255, 100, 100, 0.15), inset 0 0 6px rgba(255, 100, 100, 0.06); }

.skill-toggle-btn.active {
    background: rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
    color: #ff6666;
}

/* ==================== 死亡弹窗 ==================== */
.death-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 3, 3, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: deathFadeIn 0.6s ease;
    overflow: hidden;
}

@keyframes deathFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 背景特效 */
.death-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.death-blood-splatter {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(139, 0, 0, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 80% 60%, rgba(100, 0, 0, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 300px 500px at 50% 80%, rgba(80, 0, 0, 0.08) 0%, transparent 70%);
    animation: bloodDrift 8s ease-in-out infinite;
}

@keyframes bloodDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -5px) rotate(1deg); }
    66% { transform: translate(-5px, 5px) rotate(-1deg); }
}

.death-runes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 80px;
    font-size: 100px;
    color: rgba(139, 0, 0, 0.06);
    pointer-events: none;
    letter-spacing: 40px;
}

.d-rune {
    animation: runeFloat 3s ease-in-out infinite;
}

.d-rune:nth-child(2) { animation-delay: 0.5s; }
.d-rune:nth-child(3) { animation-delay: 1s; }

@keyframes runeFloat {
    0%, 100% { transform: translateY(0); opacity: 0.06; }
    50% { transform: translateY(-10px); opacity: 0.1; }
}

/* 主内容 - 横屏左右布局 */
.death-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 35px 50px;
    background: linear-gradient(135deg, rgba(30, 15, 15, 0.95) 0%, rgba(15, 5, 5, 0.98) 100%);
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 4px;
    box-shadow:
        0 0 60px rgba(139, 0, 0, 0.2),
        inset 0 0 40px rgba(139, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* 左侧 - 死亡信息 */
.death-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-right: 40px;
    border-right: 1px solid rgba(139, 0, 0, 0.3);
}

.death-icon {
    font-size: 52px;
    filter: drop-shadow(0 0 15px rgba(231, 76, 60, 0.5));
    animation: deathPulse 1.5s infinite;
}

@keyframes deathPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.death-title {
    font-size: 26px;
    color: #c0392b;
    text-shadow: 0 0 15px rgba(192, 57, 43, 0.4);
    letter-spacing: 6px;
    font-family: 'PowerLabelFont', 'STXingkai', cursive;
}

.death-subtitle {
    font-size: 10px;
    color: rgba(168, 153, 132, 0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* 中间分隔 */
.death-divider {
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.4), transparent);
}

/* 右侧 - 倒计时 */
.death-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.death-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.death-timer-label {
    font-size: 11px;
    color: rgba(168, 153, 132, 0.5);
    letter-spacing: 3px;
}

.death-timer {
    font-size: 56px;
    color: #c0392b;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(192, 57, 43, 0.5);
    font-family: 'PowerNumFont', 'KaiTi', serif;
    line-height: 1;
}

.death-timer-unit {
    font-size: 12px;
    color: rgba(168, 153, 132, 0.4);
    letter-spacing: 2px;
}

.death-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(168, 153, 132, 0.6);
    letter-spacing: 1px;
}

.death-desc-icon {
    font-size: 14px;
    opacity: 0.7;
}

/* 进度条 */
.death-progress {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.death-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #8b0000, #c0392b);
    border-radius: 2px;
    transition: width 1s linear;
    box-shadow: 0 0 8px rgba(192, 57, 43, 0.4);
}
