/* ========================================================== */
/* =================== 靶场模块样式 ======================= */
/* ========================================================== */

/* 靶场容器 */
#target-range-panel {
    padding: 10px 6px 6px 6px; /* 大幅减小内边距以减少左右空白 */
    height: 100%;
    box-sizing: border-box;
    /* 注意：不要在这里设置 flex 属性，以避免与右边栏容器冲突 */
}

/* 靶场主要布局 */
.range-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch; /* 让子元素拉伸填满宽度 */
    gap: clamp(15px, 2vw, 20px);
    width: 100%;
    max-width: none; /* 移除最大宽度限制 */
    margin: 0;
    padding: clamp(2px, 0.4vw, 4px); /* 进一步减小内边距以最大化利用宽度 */
    height: 100%; /* 使用全部可用高度 */
}

/* 假人容器 */
.dummy-container {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 让子元素拉伸填满容器 */
    position: relative;
    /* 添加统一的边框和背景 */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(6px, 0.8vw, 12px); /* 大幅减小内边距以节省更多空间 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    /* 移除固定宽度限制，让卡片充分利用右边栏空间 */
    max-width: none;
    min-width: 320px; /* 减小最小宽度以适应更小屏幕 */
}

/* 假人容器悬停效果 */
.dummy-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 假人统计下拉选择器 */
.dummy-stat-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 2px 4px;
    font-size: 11px;
    width: 60px;
    text-align: center;
}

.dummy-stat-select:focus {
    outline: none;
    border-color: #d1a246;
}

/* 假人统计单位 */
.dummy-stat-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2px;
}

/* 假人主体部分 - 修改为左右布局 */
.dummy-main {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* 让子元素拉伸到相同高度 */
    gap: clamp(12px, 1.5vw, 16px);
    width: 100%;
    justify-content: space-between;
}

/* 左侧区域：假人图片和身体部位 */
.dummy-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    flex: 0 0 auto; /* 不伸缩，根据内容大小 */
    min-width: clamp(180px, 25vw, 250px);
}

/* 假人视觉部分（图片+名字） - 在左侧区域内 */
.dummy-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* 假人图片 */
.dummy-image {
    width: clamp(110px, 12vw, 150px); /* 减小图片尺寸 */
    height: clamp(110px, 12vw, 150px); /* 减小图片尺寸 */
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    cursor: crosshair;
    transition: all 0.3s ease;
}

/* 假人统计数据 - 右侧区域 */
.dummy-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* 占用剩余空间 */
    min-width: clamp(220px, 35vw, 320px);
    max-height: 100%;
    overflow-y: auto; /* 如果内容过多允许滚动 */
}

/* 单个统计项 */
.dummy-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: clamp(2px, 0.3vw, 3px) clamp(6px, 0.8vw, 10px); /* 减小内边距 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 1em;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.dummy-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.dummy-stat-label {
    font-weight: 500;
}

.dummy-stat-value {
    color: #4CAF50;
    font-weight: bold;
}

/* 输入框包装器 */
.dummy-stat-input-wrapper {
    display: flex;
    align-items: baseline;
}

/* 输入框样式 */
.dummy-stat-input {
    width: clamp(60px, 4vw, 40px);
    height: auto;
    background: transparent;
    border: none;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
    text-align: right;
    padding: 0;
    margin: 0 3px;
    outline: none;
    transition: all 0.2s ease;
    vertical-align: baseline;
    -moz-appearance: textfield; /* 隐藏Firefox的上下按钮 */
    appearance: textfield; /* 标准属性 */
    box-sizing: border-box;
}

/* 隐藏Chrome/Safari的上下按钮 */
.dummy-stat-input::-webkit-outer-spin-button,
.dummy-stat-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dummy-stat-input:focus {
    background: transparent;
}

.dummy-stat-input:hover {
    background: transparent;
}

/* 百分号样式 */
.dummy-stat-percent {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1em;
    line-height: 1;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

/* 分隔符样式（括号等） */
.dummy-stat-separator {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1em;
    line-height: 1;
    margin: 0 -1px;
    padding: 0;
    vertical-align: baseline;
}

/* 百分比输入框样式 */
.dummy-stat-percent-input {
    width: auto;
    min-width: 35px;
    max-width: 60px;
    margin-left: 0;
    margin-right: 0;
    padding: 1px 4px;
    text-align: right;
}

/* 分割线样式 */
.dummy-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%
    );
    margin: 7px 0;
    flex-shrink: 0;
}

/* 假人名称 */
.dummy-name {
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: clamp(4px, 0.8vw, 6px) clamp(8px, 1.5vw, 12px);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    min-width: clamp(50px, 8vw, 70px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 身体部位伤害信息 - 在左侧区域内 */
.body-damage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* 单个身体部位项 */
.body-part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(2px, 0.3vw, 3px) clamp(4px, 0.6vw, 6px); /* 减小内边距 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9em;
    color: #e0e0e0;
    min-width: clamp(80px, 12vw, 100px);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

/* 身体部位悬停效果 */
.body-part-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 152, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

/* 身体部位选中状态 */
.body-part-item.selected {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.3);
}

/* 身体部位选中状态的文字颜色 */
.body-part-item.selected .body-part-label {
    color: #FF9800;
}

/* 身体部位选中状态的数值颜色 */
.body-part-item.selected .body-part-value {
    color: #FFB74D;
}

.body-part-label {
    font-weight: 500;
    font-size: clamp(13px, 1.4vw, 16px);
}

.body-part-value {
    color: #FF9800;
    font-weight: bold;
    font-size: clamp(13px, 1.4vw, 16px);
}

/* 伤害测试区域样式 */
.damage-test-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(8px, 1vw, 16px);
    margin-top: -6px;
    transition: all 0.3s ease;
    /* 修复超出屏幕问题 - 添加高度限制和滚动 */
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 允许内容收缩 */
    max-height: calc(100vh - 400px); /* 为假人区域和其他元素预留空间 */
}

.damage-test-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* 伤害测试内容区域 */
.damage-test-content {
    width: 100%;
    /* 修复超出屏幕问题 - 为内容区域添加滚动 */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* 允许内容收缩 */
}

.damage-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.damage-test-header h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
}

.damage-test-class-info {
    color: #fff;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 身体部位信息显示 */
.body-part-info {
    color: #fff;
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 500;
    background: rgba(255, 152, 0, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
}

.body-part-info:hover {
    background: rgba(255, 152, 0, 0.12);
    border-color: rgba(255, 152, 0, 0.3);
}

/* 武器套信息样式（与身体部位信息样式相同，但独立定义以避免事件冲突） */
.weapon-set-info {
    color: #fff;
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 500;
    background: rgba(255, 152, 0, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.weapon-set-info:hover {
    background: rgba(255, 152, 0, 0.12);
    border-color: rgba(255, 152, 0, 0.3);
}

/* 冲击区按钮基础样式 */
.impact-zone-btn {
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 冲击区100% - 绿色 */
.impact-zone-btn.zone-100 {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.impact-zone-btn.zone-100:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.impact-zone-btn.zone-100:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* 冲击区90% - 橙色 */
.impact-zone-btn.zone-90 {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.impact-zone-btn.zone-90:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.impact-zone-btn.zone-90:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* 冲击区70% - 红色 */
.impact-zone-btn.zone-70 {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.impact-zone-btn.zone-70:hover {
    background: linear-gradient(135deg, #FF5252, #F44336);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
}

.impact-zone-btn.zone-70:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* 计算按钮区域样式 */
.calculate-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculate-all-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.calculate-all-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 展开伤害卡按钮样式 */
.expand-damage-card-btn {
    background: none;
    border:0px solid #2196F3;
    color: #2196F3;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 14px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 31px;
}

.expand-damage-card-btn:hover {
    background: #2195f300;
    color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 149, 243, 0);
}

.expand-damage-card-btn i {
    font-size: 14px;
}

.damage-test-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.damage-test-section + .damage-test-section {
    margin-top: 8px;
}

.damage-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 16px);
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.damage-test-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.damage-test-label {
    font-weight: 500;
    color: #e0e0e0;
    flex: 1;
    font-size: clamp(13px, 1.3vw, 15px);
}

.damage-test-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.damage-number {
    font-weight: 600;
    font-size: clamp(14px, 1.4vw, 16px);
    color: #4CAF50;
    min-width: 40px;
    text-align: right;
    transition: all 0.3s ease;
}

.damage-number.damage-updated,
.weapon-attack-section .damage-number.damage-updated {
    color: #FF9800 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.calculate-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: clamp(4px, 0.6vw, 6px) clamp(8px, 1vw, 12px);
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.damage-test-error {
    color: #f44336;
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: clamp(12px, 1.2vw, 14px);
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .range-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 8px;
    }
    
    .dummy-container {
        width: 100%;
        max-width: none; /* 移除最大宽度限制 */
        min-width: 280px;
    }
    
    .dummy-main {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    
    .dummy-left-section {
        min-width: auto;
        width: 100%;
    }
    
    .body-damage-info,
    .dummy-stats {
        max-width: none; /* 在小屏幕上移除最大宽度限制 */
        width: 100%;
        min-width: auto;
    }
    
    .damage-test-container {
        margin-top: 10px;
        padding: 12px;
    }
    
    .damage-test-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        margin-bottom: 12px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        flex-wrap: wrap;
    }

    .body-part-info {
        order: -1; /* 在小屏幕上将身体部位信息显示在顶部 */
    }
    
    .weapon-set-info {
        order: -2; /* 武器套信息在身体部位信息之前 */
    }
    
    .damage-test-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .damage-test-label {
        flex: none;
    }
    
    .damage-test-value {
        justify-content: center;
    }
}

/* 武器伤害测试项的特殊布局 */
.weapon-damage-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 16px);
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    height: auto !important;
    min-height: 40px;
}

.weapon-damage-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.weapon-name-section {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
    font-weight: bold;
    font-size: clamp(13px, 1.3vw, 15px);
}

.weapon-attack-section {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
}

.damage-label {
    font-size: clamp(12px, 1.2vw, 15px);
    color: #b0b0b0;
    font-weight: 500;
}

.weapon-attack-section .damage-number {
    font-weight: 600;
    font-size: clamp(13px, 1.3vw, 15px);
    color: #4CAF50;
    min-width: 0px;
    text-align: center;
}

/* 重击伤害（最后一个攻击区域）居右显示 */
.weapon-attack-section:last-child {
    justify-content: flex-end;
    text-align: right;
}

/* ========================================================== */
/* ================ 伤害详情展开样式 ===================== */
/* ========================================================== */

/* 伤害测试项的可点击样式增强 */
.damage-test-item,
.weapon-damage-item {
    cursor: pointer;
    position: relative;
}

/* 展开指示器 */
.damage-test-item::after,
.weapon-damage-item::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 12px;
    color: #888;
    transition: all 0.3s ease;
    pointer-events: none;
}

.damage-test-item.expanded::after,
.weapon-damage-item.expanded::after {
    transform: translateY(-50%) rotate(0deg);
    color: #4CAF50;
}

/* 详情容器 */
.damage-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 6px 6px;
    margin-top: -1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.damage-details.expanded {
    max-height: 2000px; /* 使用足够大的值来容纳所有内容，同时保持动画效果 */
    padding: 12px 16px;
    overflow: visible; /* 移除内部滚动条 */
}

/* 详情标题 */
.damage-details-title {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

/* 详情项目 */
.damage-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #e0e0e0;
}

.damage-detail-label {
    color: #b0b0b0;
    flex: 1;
}

.damage-detail-value {
    color: #fff;
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.damage-detail-value.positive {
    color: #4CAF50;
}

.damage-detail-value.negative {
    color: #f44336;
}

.damage-detail-value.neutral {
    color: #FF9800;
}

/* 计算公式显示 */
.damage-formula {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #d0d0d0;
    line-height: 1.4;
}

/* 分段计算显示 */
.calculation-step {
    margin-bottom: 6px;
    padding: 4px 0;
    font-size: 0.8rem;
    color: #bbb;
    margin: 2px 0;
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.calculation-step:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #4CAF50;
}

/* 计算步骤分组样式 */
.calculation-step-group {
    margin: 8px 0;
    padding: 0;
}

.calculation-step-group .calculation-step {
    margin: 3px 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.calculation-step-group .calculation-step:first-child {
    color: #bbb;
    font-weight: 600;
}

.calculation-step-group .calculation-step:last-child {
    color: #81C784;
    font-weight: 700;
    margin-top: 6px;
    background: rgba(76, 175, 80, 0.1);
}

/* Impact Zone 选择器样式 */

/* 小屏幕适配 */
@media (max-width: 768px) {
    .damage-test-container {
        max-height: calc(100vh - 300px); /* 小屏幕时为假人区域预留更少空间 */
    }
    
    /* 手机端隐藏伤害测试职业信息和展开按钮 */
    .damage-test-class-info {
        display: none;
    }
    
    .expand-damage-card-btn {
        display: none;
    }
    
    .damage-details.expanded {
        max-height: 2000px; /* 使用足够大的值来容纳所有内容，同时保持动画效果 */
        padding: 10px 12px;
        overflow: visible; /* 移除内部滚动条 */
    }
    
    .damage-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .damage-detail-value {
        text-align: left;
        min-width: auto;
    }
    
    .damage-formula {
        font-size: 11px;
    }
    
}

/* ========================================================== */
/* ================== 展开所有技能模式 ==================== */
/* ========================================================== */

/* 展开模式下隐藏假人容器 */
#target-range-panel.expand-all-skills .dummy-container {
    display: none;
}

/* 展开模式下的伤害测试容器 */
#target-range-panel.expand-all-skills .damage-test-container {
    /* 占满整个右边栏高度 */
    max-height: calc(101vh - 120px); /* 为顶部标题栏预留空间 */
    height: calc(100vh - 120px);
    margin-top: 0;
    flex: 1;
    
    /* 确保内容可以滚动 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 展开模式下的伤害测试内容区域 */
#target-range-panel.expand-all-skills .damage-test-content {
    /* 占用所有可用空间 */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    
    /* 更好的滚动体验 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* 展开模式下的webkit滚动条样式 */
#target-range-panel.expand-all-skills .damage-test-content::-webkit-scrollbar {
    width: 6px;
}

#target-range-panel.expand-all-skills .damage-test-content::-webkit-scrollbar-track {
    background: transparent;
}

#target-range-panel.expand-all-skills .damage-test-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#target-range-panel.expand-all-skills .damage-test-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 展开模式下的伤害测试头部 */
#target-range-panel.expand-all-skills .damage-test-header {
    flex-shrink: 0; /* 防止头部被压缩 */
    margin-bottom: 15px;
}

/* 展开模式下的动画过渡 */
.range-container {
    transition: all 0.3s ease;
}

.damage-test-container {
    transition: all 0.3s ease, max-height 0.3s ease, height 0.3s ease;
}

.dummy-container {
    transition: all 0.3s ease, opacity 0.3s ease;
}