/* 颜色校正面板样式 */
.color-correction-container {
    position: absolute;
    left: 20px;
    top: 400px;
    width: 280px;
    background: rgba(38, 38, 38, 0.95);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.color-correction-container.collapsed {
    left: -250px;
}

.correction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
}

.correction-header-title {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.correction-toggle-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.correction-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.correction-toggle-btn .icon {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.color-correction-container.collapsed .correction-toggle-btn .icon {
    transform: scaleX(-1);
}

.correction-content {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* 颜色校正面板滚动条样式 */
.correction-content::-webkit-scrollbar {
    width: 4px;
}

.correction-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.correction-content::-webkit-scrollbar-track {
    background: transparent;
}



.param-container {
    position: absolute;
    left: 10px;
    top: 330px;
    background-color: rgba(24, 28, 33, 0.95);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 4px;
    width: 280px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.param-adjust h4 {
    margin: 0;
    padding: 10px 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(46, 204, 113, 0.15);
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 4px 4px 0 0;
}

.param-container table {
    width: 100%;
    border-spacing: 0;
    padding: 10px;
}

.param-container tr {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.param-container td:first-child {
    width: 45px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.param-container td:last-child {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 0 5px;
}

.param-container input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    height: 2px;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 1px;
    outline: none;
}

.param-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
    transition: all 0.2s;
}

.param-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.reset-btn {
    padding: 2px 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.reset-btn:hover {
    background-color: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.4);
}

/* 颜色校正面板特定样式 */
.layer-selector {
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-selector label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.layer-selector select {
    width: 100%;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    outline: none;
}

.layer-selector select:focus {
    border-color: #2ecc71;
    background-color: rgba(255, 255, 255, 0.15);
}

.layer-selector option {
    background-color: rgba(38, 38, 38, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

.correction-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.correction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.correction-item label {
    width: 60px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 10px;
}

.correction-item input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 2px;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 1px;
    outline: none;
    margin-right: 10px;
}

.correction-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
    transition: all 0.2s;
}

.correction-item input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.correction-value {
    width: 35px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.correction-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.correction-enable {
    display: flex;
    align-items: center;
    gap: 8px;
}

.correction-enable input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2ecc71;
}

.correction-enable label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.correction-reset {
    padding: 4px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.correction-reset:hover {
    background-color: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.4);
}

/* 图层警告提示样式 */
.layer-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    font-size: 11px;
}

.warning-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.warning-text {
    color: rgba(255, 193, 7, 0.9);
    line-height: 1.3;
}

/* 管网样式面板特殊样式 */
.color-btn {
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.color-btn.active {
    border: 2px solid #00FFFF !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 管网样式控制特殊样式 */
.park-control-item select {
    transition: border-color 0.2s ease;
}

.park-control-item select:focus {
    border-color: #00FFFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.park-control-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.park-control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00FFFF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.park-control-item input[type="range"]::-webkit-slider-thumb:hover {
    background: #00CCCC;
    transform: scale(1.2);
}

.park-control-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00FFFF;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.park-control-item input[type="range"]::-moz-range-thumb:hover {
    background: #00CCCC;
    transform: scale(1.2);
}

/* 避让信息提示 */
.avoidance-info {
    margin-top: 10px;
    padding: 8px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 4px;
    color: #2ecc71;
    font-size: 12px;
}