       /* 悬浮圆圈按钮容器 */
        .pixelcal-container {
            position: fixed;
            top: 50%;
            right: 50px;
            transform: translateY(-50%);
            z-index: 1000;
            cursor: move;
        }
        
        /* div.main右侧定位样式 */
        .pixelcal-container.relative-to-main {
            position: fixed;
            transform: none;
        }
        
        /* 圆圈按钮样式 */
        .pixelcal-toggle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            border: none;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
            /* 移除transition: all 0.3s ease 避免拖动延迟 */
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            line-height: 18px;
        }
        
        .pixelcal-toggle:hover {
            background-color: #0056b3;
            box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
        }
        
        /* 工具面板样式 */
        .pixelcal-panel {
            position: fixed;
            top: 70px;
            right: 0;
            width: 380px;
            max-height: 80vh;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            border: 1px solid #e0e0e0;
            display: none;
            overflow-y: auto;
            font-family: Arial, sans-serif;
            cursor: default;
            z-index: 1001;
        }
        
        .pixelcal-panel.active {
            display: block;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .pixelcal-content {
            padding: 20px;
        }
        
        .pixelcal-header {
            background-color: #007bff;
            color: white;
            padding: 15px 20px;
            margin: -20px -20px 20px -20px;
            border-radius: 12px 12px 0 0;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            position: relative;
            cursor: move;
        }
        
        .close-btn {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            /* 移除transition: all 0.3s ease 保持一致性 */
        }
        
        .close-btn:hover {
            background-color: #c82333;
            transform: translateY(-50%) scale(1.1);
        }
        
        .close-btn:active {
            transform: translateY(-50%) scale(0.95);
        }
        /* 工具内容样式 */
        .form-group {
            margin-bottom: 15px;
        }
        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
            font-size: 14px;
        }
        .input-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        input[type="number"] {
            width: 50%;
            padding: 6px 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        input[type="range"] {
            width: 100%;
            margin: 8px 0;
            height: 4px;
            background: linear-gradient(to right, #007bff 0%, #007bff 100%);
            outline: none;
            border-radius: 2px;
            -webkit-appearance: none;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            margin-top: -6px; /* 调整滑块位置，使滑块在轨道中心 */
        }
        
        input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            margin-top: -6px; /* 调整滑块位置，使滑块在轨道中心 */
        }
        
        input[type="range"]::-webkit-slider-runnable-track {
            height: 4px;
            background: transparent;
            border-radius: 2px;
        }
        
        input[type="range"]::-moz-range-track {
            height: 4px;
            background: transparent;
            border-radius: 2px;
        }
        
        /* 极限状态样式 */
        input[type="range"].at-limit::-webkit-slider-thumb {
            background: #dc3545;
            box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
        }
        
        input[type="range"].at-limit::-moz-range-thumb {
            background: #dc3545;
            box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
        }
        
        .scale-display {
            text-align: center;
            font-weight: bold;
            color: #007bff;
            font-size: 14px;
        }
        
        /* 比例条禁用状态样式 */
        .scale-input:disabled {
            background: linear-gradient(to right, #ccc 0%, #ccc 100%) !important;
            cursor: not-allowed !important;
        }
        
        .scale-input:disabled::-webkit-slider-thumb {
            cursor: not-allowed !important;
            background: #999 !important;
        }
        
        .scale-input:disabled::-moz-range-thumb {
            cursor: not-allowed !important;
            background: #999 !important;
        }
        
        .scale-input.disabled {
            background: linear-gradient(to right, #ccc 0%, #ccc 100%) !important;
            cursor: not-allowed !important;
        }
        
        .scale-input.disabled::-webkit-slider-thumb {
            cursor: not-allowed !important;
            background: #999 !important;
        }
        
        .scale-input.disabled::-moz-range-thumb {
            cursor: not-allowed !important;
            background: #999 !important;
        }
        .error {
            color: #dc3545;
            margin-bottom: 12px;
            font-size: 13px;
            padding: 8px;
            background-color: #f8d7da;
            border-radius: 4px;
            display: none;
        }
        
        .error.show {
            display: block;
        }
        .result {
            margin-top: 15px;
            padding: 12px;
            background-color: #e9ecef;
            border-radius: 6px;
        }
        .result h3 {
            margin: 0 0 8px 0;
            color: #333;
            font-size: 16px;
        }
        .result-item {
            margin-bottom: 6px;
            font-size: 14px;
        }
        .result-item-grid {
            background: #00b3b3;
            border-radius: 14px;
            font-size: 18px;
            font-weight: 900;
            color: #fff;
            margin-bottom: 6px;
        }
        .result-item-point{
            display: flex;
            justify-content: center;
            align-items: center;
            height: 33px;
            font-size:18px;
            font-weight: 800;
        }
        .result-item-point-tip{
            font-size: 12px;
            font-weight: 400;
            margin-left:2px;
        }
        .stretch-ratio-progress {
            margin-top: 8px;
            width: 100%;
        }
        .progress-bar {
            width: 100%;
            height: 60px;
            position: relative;
        }
        .progress-track {
            width: 100%;
            height: 20px;
            position: relative;
            top: 10px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }
        .progress-segment {
            position: absolute;
            top: 0;
            height: 100%;
        }
        .progress-bg {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, 
                #dc3545 0%, 
                #dc3545 37.5%, 
                #fd7e14 37.5%, 
                #fd7e14 46%, 
                #28a745 46%, 
                #28a745 54%, 
                #fd7e14 54%, 
                #fd7e14 62.5%, 
                #dc3545 62.5%, 
                #dc3545 100%);
        }
        
        /* 进度条文本标签 */
        .progress-labels {
            position: absolute;
            width: 100%;
            height: 15px;
            font-size: 10px;
            color: #666;
        }
        .progress-labels span {
            position: absolute;
            transform: translateX(-50%);
            white-space: nowrap;
        }
        .label-negative {
            left: 5%;
        }
        .label-zero {
            left: 50%;
            font-weight: bold;
            color: #333;
        }
        .label-positive {
            left: 95%;
        }
        .zero-marker {
            position: absolute;
            left: 50%;
            top: -5px;
            width: 2px;
            height: 30px;
            background-color: #333;
            transform: translateX(-50%);
        }
        .progress-indicator {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            transition: left 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 10;
        }
        .triangle {
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 12px solid #333;
        }
        .ratio-value {
            margin-top: 2px;
            font-size: 12px;
            font-weight: bold;
            color: #333;
            background-color: #f8f9fa;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            white-space: nowrap;
        }
        .stretch-status {
            margin-left: 10px;
            font-size: 14px;
            font-weight: bold;
        }
        .stretch-status.recommended {
            color: #28a745;
        }
        .stretch-status.normal {
            color: #fd7e14;
        }
        .stretch-status.severe {
            color: #dc3545;
        }

        .multiplier {
            color: #666;
            font-size: 12px;
        }