﻿:root {
            --primary-color: #2c3e50;
            --accent-color: #3498db;
            --bg-color: #f0f2f5;
            --card-bg: #ffffff;
            --text-color: #333;
            --panel-bg: #f8f9fa;
        }

        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.6;
            margin: 0;
            }

        .page-container { margin: 20px; }

        .header-wrapper {
            text-align: center;
            margin-bottom: 30px;
        }

        h1 {
            color: var(--primary-color);
            font-size: 2.2rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white !important;
            text-decoration: none;
            border-radius: 8px;
            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);
        }

        .description {
            background: #fdfdfd;
            padding: 20px;
            border-left: 4px solid var(--accent-color);
            margin-bottom: 30px;
            border-radius: 0 8px 8px 0;
        }

        /* Simulation Wrapper for Responsive Scaling */
        .sim-wrapper {
            justify-content: center;
            align-items: center;
            margin: 40px 0;
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
            overflow: hidden;
        }

        #total {
            position: relative;
            width: 700px;
            height: 400px;
            background-color: var(--panel-bg);
            border: 1px solid #ddd;
            transform-origin: center center;
        }

        #canvas {
            position: absolute;
            left: 0;
            top: 0;
            width: 700px;
            height: 250px;
            background: #fff;
        }

        #panel {
            position: absolute;
            left: 0;
            top: 250px;
            width: 700px;
            height: 150px;
            background: var(--panel-bg);
            border-top: 1px solid #eee;
            font-size: 0.9rem;
            flex-wrap: wrap;
            justify-content: space-around;
            align-items: center;
            box-sizing: border-box;
        }

        /* 覆盖 app.css 中的强制绝对定位 */
        #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-item {
            align-items: center;
            gap: 10px;
            margin: 5px;
        }

        input[type="text"] {
            width: 60px;
            padding: 3px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        .result-box {
            background: #eef2ff;
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid #c7d2fe;
            color: #1e3a8a;
            font-weight: bold;
        }

        .footer-info {
            font-size: 0.85rem;
            color: #7f8c8d;
            text-align: right;
            margin-top: 20px;
        }

        @media (max-width: 740px) {
            .page-container { margin: 10px; padding: 20px; }
            .sim-wrapper { padding: 5px; }
        }
