/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* 选中对象信息面板样式 */
.object-info-panel {
    grid-column: 7 / 9;
    margin-top: -265px;
    padding: 12px 16px;
    border: 2px solid rgba(122, 162, 247, 0.2);
    border-radius: 12px;
    background: #2d2d44;
}

.object-info-name {
    font-size: 14px;
    color: #e4e4e7;
    margin-bottom: 12px;
    text-align: left;
}

.object-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(9, 5, 241, 0.15);
}

.object-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.object-info-label {
    color: #e4e4e7;
    font-size: 13px;
    width: 50px;
    flex-shrink: 0;
    text-align: left;
}

.object-info-values {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    gap: 24px;
}

.object-info-value {
    color: #e4e4e7;
    font-size: 14px;
    font-family: 'Consolas', monospace;
    min-width: 60px;
    text-align: left;
}

/* 页面主体样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;  /* 字体设置 */
    background: #1e1e2e;  /* 深色背景 */
    color: #e4e4e7;  /* 浅色文字 */
    overflow-x: hidden;  /* 水平方向隐藏滚动条 */
    overflow-y: auto;  /* 垂直方向自动显示滚动条 */
    height: auto;
    margin: 0;
    padding: 0;
}

/* 应用主容器 */
.app-container {
    display: flex;
    flex-direction: column;  /* 垂直排列 */
    min-height: 100vh;  /* 最小高度为视口高度 */
    overflow: visible;
}

/* 头部固定高度 */
.header {
    flex: 0 0 auto;
}

/* 标题栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #2d2d44;
    border-bottom: 2px solid rgba(122, 162, 247, 0.3);
}

.header h1 {
    font-size: 20px;
    color: #7aa2f7;
}

.header-controls {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
/* 基础按钮样式 */
.btn {
    padding: 8px 16px;
    background: #7aa2f7;  /* 蓝色背景 */
    color: #1e1e2e;  /* 深色文字 */
    border: none;
    border-radius: 4px;  /* 圆角 */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;  /* 过渡动画 */
    font-weight: 500;
}

.btn:hover {
    background: #bb9af7;
}

/* 主要按钮样式（蓝色） */
.btn-primary {
    background: #7aa2f7;
}

.btn-primary:hover {
    background: #bb9af7;
}

/* 危险按钮样式（红色） */
.btn-danger {
    background: #f7768e;
}

.btn-danger:hover {
    background: #ff9e64;
}

/* 拍照按钮样式（红色，与危险按钮一致） */
.btn-snapshot {
    background: #f7768e;
}

.btn-snapshot:hover {
    background: #ff9e64;
}

/* 主内容区（3D场景 + 预览区） */
.main-content {
    display: flex;
    height: 70vh; /* 占视口高度的70% */
    min-height: 400px;
    overflow: visible;
}

/* 可拖动分割条（水平方向 - 调整主内容区和控制面板高度） */
.resizer {
    height: 10px;
    background: #2d2d44;
    border-top: 1px solid rgba(122, 162, 247, 0.3);
    border-bottom: 1px solid rgba(122, 162, 247, 0.3);
    cursor: row-resize;  /* 上下拖动光标 */
    position: relative;
    flex: 0 0 10px;
    transition: background 0.2s;
}

.resizer:hover {
    background: rgba(122, 162, 247, 0.5);
}

.resizer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background: rgba(122, 162, 247, 0.6);
    border-radius: 2px;
}

/* 可拖动分割条（垂直方向 - 调整场景面板和预览面板宽度） */
.resizer-vertical {
    width: 10px;
    background: #2d2d44;
    border-left: 1px solid rgba(122, 162, 247, 0.3);
    border-right: 1px solid rgba(122, 162, 247, 0.3);
    cursor: col-resize;  /* 左右拖动光标 */
    position: relative;
    flex: 0 0 10px;
    transition: background 0.2s;
}

.resizer-vertical:hover {
    background: rgba(122, 162, 247, 0.5);
}

.resizer-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 40px;
    background: rgba(122, 162, 247, 0.6);
    border-radius: 2px;
}

/* 面板通用样式 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #2d2d44;
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
}

.panel-title {
    font-weight: bold;
    color: #7aa2f7;
}

.hint {
    font-size: 12px;
    color: #a9b1d6;
}

.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 场景信息覆盖层 */
.scene-info-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.3;
    z-index: 100;
    max-width: 260px;
}

.scene-info-overlay .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
}

.scene-info-overlay .info-row:last-child {
    margin-bottom: 0;
}

.scene-info-overlay .info-label {
    color: #7aa2f7;
    font-weight: bold;
    width: 40px;
    flex-shrink: 0;
    font-size: 11px;
}

.scene-info-overlay .info-value {
    color: #1e3a5f;
    font-family: 'Consolas', monospace;
    font-weight: 600;
    font-size: 11px;
}

/* 滑块与数字输入框组合布局 */
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.slider-label-row label {
    font-size: 11px;
    color: #1e3a5f;
    margin: 0;
}

.slider-number-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.slider-number-wrapper input[type="number"] {
    width: 45px;
    height: 20px;
    padding: 1px 3px;
    font-size: 11px;
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.6);
    color: #1e3a5f;
    text-align: center;
}

.slider-number-wrapper input[type="number"]::-webkit-inner-spin-button,
.slider-number-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.slider-number-wrapper span {
    font-size: 11px;
    color: #7aa2f7;
    font-weight: 700;
}

.control-group.compact input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    outline: none;
}

/* 摄像机角度调节悬浮面板（场景区右上角） */
.camera-angle-panel {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 150px;
    background: rgba(255, 255, 255, 0.3);  /* 半透明白色背景 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 6px 8px;
    z-index: 100;  /* 确保在最上层 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.camera-angle-panel .angle-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
    font-size: 11px;
    font-weight: bold;
    color: #7aa2f7;
}

.camera-angle-panel .close-btn {
    background: none;
    border: none;
    color: #1e3a5f;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.camera-angle-panel .close-btn:hover {
    color: #2c5282;
}

.camera-angle-panel .angle-control {
    margin-bottom: 6px;
}

.camera-angle-panel .angle-control label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #1e3a5f;
    margin-bottom: 2px;
}

.camera-angle-panel .angle-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.camera-angle-panel .angle-label-row label {
    font-size: 10px;
    color: #1e3a5f;
    margin: 0;
}

.camera-angle-panel .angle-number-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.camera-angle-panel .angle-number-wrapper input[type="number"] {
    width: 40px;
    height: 18px;
    padding: 1px 2px;
    font-size: 10px;
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.5);
    color: #1e3a5f;
    text-align: center;
}

.camera-angle-panel .angle-number-wrapper input[type="number"]::-webkit-inner-spin-button,
.camera-angle-panel .angle-number-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.camera-angle-panel .angle-number-wrapper span {
    font-size: 10px;
    color: #1e3a5f;
}

.camera-angle-panel .angle-control input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    outline: none;
}

.camera-angle-panel .angle-control input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    background: #1e3a5f;
    border-radius: 50%;
    cursor: pointer;
}

.camera-angle-panel .btn-small {
    width: 100%;
    padding: 3px;
    font-size: 9px;
    margin-top: 4px;
    background: rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 2px;
}

.camera-angle-panel .btn-small:hover {
    background: rgba(30, 58, 95, 0.2);
}

/* 墙体调节悬浮面板 - 仿照摄像机角度面板样式 */
.wall-edit-panel {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 150px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 6px 8px;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wall-edit-panel .wall-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
    font-size: 11px;
    font-weight: bold;
    color: #7aa2f7;
}

.wall-edit-panel .close-btn {
    background: none;
    border: none;
    color: #1e3a5f;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.wall-edit-panel .close-btn:hover {
    color: #2c5282;
}

.wall-edit-panel .wall-control {
    margin-bottom: 6px;
}

.wall-edit-panel .wall-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.wall-edit-panel .wall-label-row label {
    font-size: 10px;
    color: #1e3a5f;
    margin: 0;
}

.wall-edit-panel .wall-control > label {
    display: block;
    font-size: 10px;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.wall-edit-panel .wall-number-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.wall-edit-panel .wall-number-wrapper input[type="number"] {
    width: 40px;
    height: 18px;
    padding: 1px 2px;
    font-size: 10px;
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.5);
    color: #1e3a5f;
    text-align: center;
}

.wall-edit-panel .wall-number-wrapper input[type="number"]::-webkit-inner-spin-button,
.wall-edit-panel .wall-number-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.wall-edit-panel .wall-number-wrapper span {
    font-size: 10px;
    color: #1e3a5f;
}

.wall-edit-panel .wall-control input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    outline: none;
}

.wall-edit-panel .wall-control input[type="range"]::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    background: #1e3a5f;
    border-radius: 50%;
    cursor: pointer;
}

/* 墙体面板按钮样式 */
.wall-edit-panel .btn-small {
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(30, 58, 95, 0.1);
    color: #1e3a5f;
    border: 1px solid rgba(30, 58, 95, 0.3);
    border-radius: 3px;
    cursor: pointer;
}

.wall-edit-panel .btn-small:hover {
    background: rgba(30, 58, 95, 0.2);
}

/* 贴图库样式 */
.texture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 5px;
}

.texture-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.texture-item:hover {
    background: rgba(122, 162, 247, 0.1);
    border-color: rgba(122, 162, 247, 0.3);
}

.texture-item.selected {
    background: rgba(122, 162, 247, 0.2);
    border-color: #7aa2f7;
}

.texture-preview {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 4px;
}

.texture-name {
    font-size: 11px;
    color: #c0caf5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.texture-item:hover .texture-name {
    color: #e4e4e7;
}

.texture-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.texture-item:hover .texture-delete {
    display: flex;
}

.texture-item {
    position: relative;
}

/* 刷新按钮样式 */
.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.refresh-btn:hover {
    opacity: 1;
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

/* 左侧 3D 场景面板 */
.scene-panel {
    flex: 0 0 60%; /* 占左右总体的60% */
    display: flex;
    flex-direction: column;
    min-width: 300px;
    overflow: hidden;
}

/* 右侧拍摄预览面板 */
.preview-panel {
    flex: 0 0 40%; /* 占左右总体的40% */
    display: flex;
    flex-direction: column;
    min-width: 200px;
    overflow: hidden;
    position: relative; /* 为内部绝对定位元素提供参考 */
}

.camera-info {
    font-size: 12px;
    color: #9ece6a;
    font-family: monospace;
}

/* 底部控制面板（可折叠） */
.control-panel {
    background: #2d2d44;
    border-top: 2px solid rgba(122, 162, 247, 0.2);
    transition: height 0.3s ease;  /* 高度变化动画 */
    height: 32px; /* 折叠时高度为32px */
    overflow: visible;
    min-height: 32px;
}

.control-panel.expanded {
    height: 1vh; /* 展开时高度为视口高度的1% */
    overflow: visible;
}

.control-panel .panel-content {
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, padding 0.3s ease;
    display: none;
    overflow: visible;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #252536;
    cursor: pointer;
    user-select: none;
}

.panel-header span {
    font-size: 14px;
    font-weight: bold;
    color: #7aa2f7;
}

.btn-toggle {
    padding: 4px 8px;
    background: transparent;
    color: #e4e4e7;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.control-panel.expanded .btn-toggle {
    transform: rotate(90deg);
}

.control-panel.expanded .panel-content {
    opacity: 1;
    padding: 15px 20px;
    pointer-events: auto;
    display: block;
    overflow-x: auto;
}

/* 版权信息 */
.copyright {
    font-size: 12px;
    color: #a9b1d6;
    text-align: center;
    flex: 1;
}

/* 控制列 */
.control-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none;
    overflow-y: visible;
    padding-right: 3px;
}

/* 控制面板列分组分隔线（每两列为一组，右侧添加分隔线） */
#mainTab > .control-column:nth-child(2),
#mainTab > .control-column:nth-child(4),
#mainTab > .control-column:nth-child(6) {
    border-right: 1px solid rgba(122, 162, 247, 0.15);
}

/* 控制面板列分组背景色（深浅交替，组内两列一致） */
/* 第1-2列：浅蓝背景 */
#mainTab > .control-column:nth-child(1),
#mainTab > .control-column:nth-child(2) {
    background: rgba(122, 162, 247, 0.08);
}

/* 第3-4列：透明背景 */
#mainTab > .control-column:nth-child(3),
#mainTab > .control-column:nth-child(4) {
    background: transparent;
}

/* 第5-6列：浅蓝背景 */
#mainTab > .control-column:nth-child(5),
#mainTab > .control-column:nth-child(6) {
    background: rgba(122, 162, 247, 0.08);
}

/* 第7-8列：透明背景 */
#mainTab > .control-column:nth-child(7),
#mainTab > .control-column:nth-child(8) {
    background: transparent;
}

/* 自定义滚动条 */
.control-column::-webkit-scrollbar {
    width: 4px;
}

.control-column::-webkit-scrollbar-track {
    background: #1e1e2e;
    border-radius: 2px;
}

.control-column::-webkit-scrollbar-thumb {
    background: #7aa2f7;
    border-radius: 2px;
}

/* 紧凑控制组 */
.control-group.compact {
    margin-top: 6px;
}

.control-group.compact label {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.control-group.compact input[type="range"] {
    margin-top: 4px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

/* 姿势网格 */
.pose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.btn-pose {
    padding: 6px 4px;
    font-size: 11px;
}

/* 关节控制 */
.joint-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.axis-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.axis-row span {
    font-size: 12px;
    width: 30px;
}

.axis-row .btn-small {
    flex: 1;
    padding: 4px 8px;
    font-size: 12px;
}

/* 小按钮 */
.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

/* 垂直按钮组 */
.button-group.vertical {
    flex-direction: column;
    gap: 6px;
}

.button-group.vertical .btn {
    width: 100%;
}

.control-section {
    min-width: auto;
}

.control-section h3 {
    font-size: 14px;
    color: #7aa2f7;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(122, 162, 247, 0.2);
}

.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a9b1d6;
    margin-bottom: 5px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #7aa2f7;
    border-radius: 50%;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #7aa2f7;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.value {
    color: #4ecca3;
    font-family: monospace;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.button-group .btn {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
}

/* 摄像机列表 */
.camera-list {
    margin-top: 10px;
    max-height: 296px; /* 约8个摄像机的高度 */
    overflow-y: auto;
}

/* 人偶列表 */
.mannequin-list {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

/* 家具列表 */
.furniture-list {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.mannequin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #252536;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.mannequin-item:hover {
    background: #363654;
}

.mannequin-item.active {
    background: #7aa2f7;
    color: #1e1e2e;
}

.mannequin-name {
    font-size: 12px;
}

.mannequin-status {
    font-size: 10px;
    color: #9ece6a;
}

/* 列表删除按钮 */
.list-delete-btn {
    padding: 2px 6px;
    font-size: 12px;
    background: transparent;
    border: 1px solid rgba(122, 162, 247, 0.3);
    color: #a9b1d6;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 4px;
}

.list-delete-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* 复选框样式 */
.control-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* 帮助弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #2d2d44;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(122, 162, 247, 0.3);
}

.close {
    color: #a9b1d6;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #7aa2f7;
}

.help-content h3 {
    color: #7aa2f7;
    margin: 15px 0 10px 0;
    font-size: 14px;
}

.help-content ul {
    margin-left: 20px;
}

.help-content li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #e4e4e7;
}

.help-content strong {
    color: #9ece6a;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e2e;
}

::-webkit-scrollbar-thumb {
    background: #7aa2f7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bb9af7;
}

/* 选中高亮效果 */
.selected-joint {
    outline: 2px solid #7aa2f7;
    outline-offset: 2px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .control-panel {
        flex-wrap: wrap;
        max-height: 350px;
    }
    
    .control-section {
        min-width: 200px;
        flex: 1;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .scene-panel {
        border-right: none;
        border-bottom: 2px solid rgba(122, 162, 247, 0.2);
    }
}

/* 标签页图标按钮 */
.tab-icons {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.tab-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon:hover {
    background: rgba(122, 162, 247, 0.2);
}

.tab-icon.active {
    background: rgba(122, 162, 247, 0.3);
    border-color: rgba(122, 162, 247, 0.5);
}

/* 标签页内容 */
.tab-content {
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
}

.tab-content.active {
    display: grid;
}

/* 灯光标签页使用4列布局 */
#lightsTab {
    grid-template-columns: repeat(4, 1fr);
}

/* 灯光标签页列背景色 */
#lightsTab > .control-column:nth-child(1),
#lightsTab > .control-column:nth-child(2) {
    background: rgba(122, 162, 247, 0.08);
}

#lightsTab > .control-column:nth-child(2) {
    border-right: 1px solid rgba(122, 162, 247, 0.15);
}

#lightsTab > .control-column:nth-child(3) {
    background: transparent;
}

#lightsTab > .control-column:nth-child(4) {
    background: rgba(122, 162, 247, 0.08);
}

/* 三列复选框布局 */
.checkbox-group.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
}

.checkbox-group.three-column label {
    font-size: 11px;
    white-space: nowrap;
}

/* 灯光列表 */
.light-list {
    max-height: 250px;
    overflow-y: auto;
}

.light-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(26, 27, 38, 0.5);
    border: 1px solid rgba(122, 162, 247, 0.2);
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.light-item:hover {
    background: rgba(122, 162, 247, 0.15);
}

.light-item.selected {
    background: rgba(122, 162, 247, 0.25);
    border-color: rgba(122, 162, 247, 0.5);
}

.light-item .light-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.light-item .light-icon.point {
    background: #ffdd44;
    box-shadow: 0 0 6px #ffdd44;
}

.light-item .light-icon.directional {
    background: #44aaff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.light-item .light-icon.spot {
    background: #ff8844;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.light-item .light-name {
    flex: 1;
    font-size: 12px;
    color: #c0caf5;
}

.light-item .light-controls {
    display: flex;
    gap: 4px;
}

.light-item .light-controls button {
    padding: 2px 6px;
    font-size: 11px;
    background: transparent;
    border: 1px solid rgba(122, 162, 247, 0.3);
    color: #a9b1d6;
    border-radius: 3px;
    cursor: pointer;
}

.light-item .light-controls button:hover {
    background: rgba(122, 162, 247, 0.2);
    color: #c0caf5;
}

/* 预览面板标题栏布局 */
.preview-panel .panel-header {
    justify-content: center;
    position: relative;
}

.preview-panel .panel-header .panel-title {
    position: absolute;
    left: 15px;
}

.preview-panel .panel-header .camera-info {
    position: absolute;
    right: 15px;
}

/* 分辨率切换按钮 */
#resolutionBtn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

/* 复选框组 - 水平布局 */
.checkbox-group.row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 8px;
}

/* 常用按钮组样式 */
.button-group.mb-8 {
    margin-bottom: 8px;
}

.button-group.mt-8 {
    margin-top: 8px;
}

.button-group.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

/* 宽度百分百的按钮 */
.btn-full {
    width: 100%;
}

/* 弹性布局按钮 */
.btn-flex {
    flex: 1;
}

/* 常用边距类 */
.mt-8 {
    margin-top: 8px;
}
