h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color, #1e293b);
    margin-bottom: 25px;
    font-weight: 800;
}

.description {
    margin-bottom: 30px;
    color: #64748b;
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.sim-wrapper {
    justify-content: center;
    margin: 30px 0;
    overflow: visible;
}
.container { margin: 20px; }
:root {
            --primary-color: #2c3e50;
            --accent-color: #3498db;
            --bg-color: #f8f9fa;
            --card-bg: #ffffff;
            --text-color: #333;
        }
        body { 
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif; 
            background-color: var(--bg-color); 
            color: var(--text-color);
            line-height: 1.7;
            margin: 0;
            }
        .page-container {
            max-width: 1100px;
            margin: 40px auto;
            padding: 40px;
            background: var(--card-bg);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-radius: 12px;
        }
        h1 { 
            color: var(--primary-color); 
            text-align: center; 
            margin-bottom: 30px; 
            font-weight: 700;
            border-bottom: 3px solid var(--accent-color);
            display: inline-block;
            padding-bottom: 10px;
        }
        .header-wrapper { text-align: center; margin-bottom: 40px; }
        
        .back-btn {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white !important;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            margin-bottom: 20px;
        }
        .back-btn:hover {
            background-color: var(--accent-color);
            transform: translateX(-5px);
        }

        #total {
            width: 900px;
            height: 420px;
            position: relative;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px 12px 0 0;
            overflow: hidden;
            margin: 0 auto !important;
        
    transform-origin: center center;
}

        #canvas {
            position: absolute;
            left: 0;
            top: 0;
            width: 600px;
            height: 420px;
            background: #ffffff;
            border-right: 1px solid #e2e8f0;
        }

        #panel {
            position: absolute;
            left: 600px;
            top: 0;
            width: 300px;
            height: 420px;
            background: #f8fafc;
            border-left: 1px solid #e2e8f0;
            padding: 16px;
            box-sizing: border-box;
            flex-direction: column;
            gap: 12px;
            overflow-y: auto;
        }

        /* 覆盖 app.css 中的绝对定位，确保 Flex 布局生效 */
        #panel div, #panel span, #panel input, #panel select, #panel button, #panel label {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            margin: 0 !important;
        }

        #panel span {
            white-space: normal !important;
        }

        .input-row {
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .radio-group {
            flex-direction: column;
            gap: 6px;
            padding: 12px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        }

        .radio-item {
            align-items: center;
            gap: 10px;
            font-size: 0.875rem;
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }
        
        .radio-item:hover {
            background-color: #f1f5f9;
        }

        select, input[type="text"] {
            padding: 6px 8px;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            font-size: 0.875rem;
            background-color: #ffffff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        
        select:focus, input[type="text"]:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        select.small { width: 100px; }
        select.large { width: 180px; }
        input[type="text"].small { width: 100px; text-align: center; }
        input[type="text"].large { width: 180px; text-align: left; }

        .footer-info {
            margin-top: auto;
            font-size: 0.75rem;
            color: #64748b;
            text-align: center;
            padding-top: 10px;
            border-top: 1px solid #eee;
        }
