html, body, #Container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.cesium-viewer-bottom {
    display: none;
}

/* 单图层调色面板样式 */
.color-correction-container {
    position: fixed;
    top: 20px;
    left: 300px; /* 位于图层管理面板右侧 */
    width: 280px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    backdrop-filter: blur(10px);
    z-index: 998;
    transition: transform 0.3s ease;
}

.color-correction-container.collapsed {
    transform: translateX(-calc(100% - 40px));
}

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

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

.correction-header-title .icon {
    margin-right: 8px;
    font-size: 16px;
}

.correction-toggle-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.correction-toggle-btn .icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.color-correction-container.collapsed .correction-toggle-btn .icon {
    transform: rotate(180deg);
}

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

.correction-section {
    margin-bottom: 12px;
}

.correction-section-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4CAF50;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 2px;
}

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

.correction-control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.correction-control-item.compact-row {
    gap: 2px;
}

.correction-control-item .control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.correction-control-item .control-row label {
    min-width: 50px;
    font-size: 11px;
    margin: 0;
}

.correction-control-item .control-row .range-slider {
    flex: 1;
    margin: 0;
}

.correction-control-item .control-row .range-value {
    min-width: 40px;
    text-align: right;
}

.correction-control-item label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.correction-control-item .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s ease;
}

.correction-control-item .form-select:focus {
    border-color: #4CAF50;
}

.correction-control-item .form-select option {
    background: #333;
    color: white;
}

.correction-control-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4CAF50;
}

.correction-control-item .range-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.correction-control-item .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.correction-control-item .range-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.correction-control-item .range-value {
    font-size: 10px;
    color: #4CAF50;
    font-weight: 600;
    text-align: center;
    min-width: 45px;
}

.correction-control-item .button-group {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.correction-control-item .btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.correction-control-item .btn-primary {
    background: #4CAF50;
    color: white;
}

.correction-control-item .btn-primary:hover {
    background: #45a049;
}

.correction-control-item .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.correction-control-item .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.correction-info {
    margin-top: 8px;
    padding: 6px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 3px;
    border-left: 2px solid #4CAF50;
}

.correction-info small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* 园区总览控制面板样式 */
.park-overview-container {
    position: fixed;
    top: 20px;
    right: 20px; /* 位于右侧 */
    width: 260px; /* 减小宽度避免遮挡 */
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: transform 0.3s ease;
}

.park-overview-container.collapsed {
    transform: translateX(calc(100% - 40px));
}

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

.park-overview-header-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.park-overview-header-title .icon {
    margin-right: 8px;
    font-size: 16px;
}

.park-overview-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.park-overview-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.park-overview-content {
    padding: 16px;
}

.park-overview-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.park-action-btn {
    flex: 1;
    background: rgba(46, 204, 113, 0.8);
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.park-action-btn:hover {
    background: rgba(46, 204, 113, 1);
}

.park-action-btn:nth-child(2) {
    background: rgba(231, 76, 60, 0.8);
}

.park-action-btn:nth-child(2):hover {
    background: rgba(231, 76, 60, 1);
}

.park-action-btn:nth-child(3) {
    background: rgba(52, 152, 219, 0.8);
}

.park-action-btn:nth-child(3):hover {
    background: rgba(52, 152, 219, 1);
}

.park-section {
    margin-bottom: 16px;
}

.park-section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    border-left: 3px solid #2ecc71;
    padding-left: 8px;
}

.park-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px;
}

.park-control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.park-control-item:last-child {
    border-bottom: none;
}

.park-control-item label {
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
}

.park-control-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2ecc71;
}

.park-control-item input[type="range"] {
    width: 120px;
    margin-right: 8px;
    accent-color: #2ecc71;
}

.range-value {
    font-size: 11px;
    color: #fff;
    background: rgba(46, 204, 113, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.pipeline-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pipeline-action-btn {
    flex: 1;
    background: rgba(155, 89, 182, 0.8);
    border: none;
    border-radius: 3px;
    padding: 4px 6px;
    color: white;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pipeline-action-btn:hover {
    background: rgba(155, 89, 182, 1);
}

.pipeline-action-btn:nth-child(2) {
    background: rgba(231, 76, 60, 0.8);
}

.pipeline-action-btn:nth-child(2):hover {
    background: rgba(231, 76, 60, 1);
}

.avoidance-info {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 3px;
}

.avoidance-info small {
    color: #3498db;
    font-size: 10px;
    line-height: 1.2;
}

/* 地下管廊特殊样式 */
.park-control-item:has(input[type="checkbox"]:checked) label {
    color: #2ecc71;
    font-weight: 500;
}

.park-control-item label:contains("地下管廊") {
    color: #e67e22;
}

.park-control-item label:contains("管廊挖空") {
    color: #e74c3c;
}

/* 管廊控制项特殊标识 */
.park-control-item:nth-last-child(2) {
    border-left: 3px solid #e67e22;
    padding-left: 8px;
    margin-left: -8px;
}

.park-control-item:nth-last-child(1) {
    border-left: 3px solid #e74c3c;
    padding-left: 8px;
    margin-left: -8px;
}

/* 地上管网控制面板样式 */
.park-section:has(.park-section-title:contains("地上管网")) {
    border: 1px solid #3498db;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
}

.park-section:has(.park-section-title:contains("地上管网")) .park-section-title {
    color: #3498db;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(52, 152, 219, 0.3);
}

/* 地上管网控制项颜色标识 */
.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(1) label {
    color: #FF1493; /* 电力管沟 - DEEPPINK */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(2) label {
    color: #FF6347; /* 管廊A段 - TOMATO */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(3) label {
    color: #FFFF00; /* 管廊B段 - YELLOW */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(4) label {
    color: #7B68EE; /* 管廊C段 - MEDIUMSLATEBLUE */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(5) label {
    color: #A0522D; /* 管廊D段 - SIENNA */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(6) label {
    color: #FF00FF; /* 管廊E段 - MAGENTA */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(7) label {
    color: #00FF00; /* 管廊F段 - LIME */
}

.park-section:has(.park-section-title:contains("地上管网")) .park-control-item:nth-child(8) label {
    color: #FF4500; /* 连接线 - ORANGERED */
}

/* 地上管网激活状态 */
.park-section:has(.park-section-title:contains("地上管网")) .park-control-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    text-shadow: 0 0 3px currentColor;
}

/* 智慧管廊子控制区域样式 */
.park-subsection {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.park-subsection-title {
    font-size: 12px;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 地上管网子区域特殊样式 */
.park-subsection:has(.park-subsection-title:contains("地上管网")) {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.08);
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-subsection-title {
    color: #3498db;
}

/* 地下管廊子区域特殊样式 */
.park-subsection:has(.park-subsection-title:contains("地下管廊")) {
    border-color: rgba(230, 126, 34, 0.3);
    background: rgba(230, 126, 34, 0.08);
}

.park-subsection:has(.park-subsection-title:contains("地下管廊")) .park-subsection-title {
    color: #e67e22;
}

/* 地上管网控制项颜色标识（在子区域中） */
.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(1) label {
    color: #FF1493; /* 电力管沟 - DEEPPINK */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(2) label {
    color: #FF6347; /* 管廊A段 - TOMATO */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(3) label {
    color: #FFFF00; /* 管廊B段 - YELLOW */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(4) label {
    color: #7B68EE; /* 管廊C段 - MEDIUMSLATEBLUE */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(5) label {
    color: #A0522D; /* 管廊D段 - SIENNA */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(6) label {
    color: #FF00FF; /* 管廊E段 - MAGENTA */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(7) label {
    color: #00FF00; /* 管廊F段 - LIME */
}

.park-subsection:has(.park-subsection-title:contains("地上管网")) .park-control-item:nth-child(8) label {
    color: #FF4500; /* 连接线 - ORANGERED */
}

/* 地下管廊控制项颜色标识 */
.park-subsection:has(.park-subsection-title:contains("地下管廊")) .park-control-item:nth-child(1) label {
    color: #e67e22; /* 地下管廊 - 橙色 */
}

.park-subsection:has(.park-subsection-title:contains("地下管廊")) .park-control-item:nth-child(2) label {
    color: #e74c3c; /* 管廊挖空 - 红色 */
}

/* 管网样式控制 */
.form-select {
    width: 100%;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
}

.form-select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.form-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 6px;
}

/* 颜色预设网格 */
.color-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.color-preset-btn {
    width: 35px;
    height: 25px;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-preset-btn:hover {
    transform: scale(1.05);
    border-color: #fff;
}

.color-preset-btn.active {
    border-color: #2ecc71;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.5);
}

.color-preset-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 自定义颜色输入 */
.custom-color-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.color-picker {
    width: 40px;
    height: 25px;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
}

.color-text-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-family: monospace;
}

.color-text-input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

/* 管网样式控制项特殊布局 */
.park-control-item.pipeline-style-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
}

.park-control-item.pipeline-style-item label {
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
}

/* 代码输出区域 */
.code-output {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 3px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
    resize: vertical;
    margin-top: 5px;
}

.code-output:focus {
    outline: none;
    border-color: #2ecc71;
}

