﻿:root {
            --primary-color: #1e293b;
            --accent-color: #3b82f6;
            --bg-color: #f1f5f9;
            --panel-bg: #ffffff;
            --text-color: #334155;
            --border-color: #e2e8f0;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }

        .container { margin: 20px; }

        .card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            padding: 40px;
            border: 1px solid var(--border-color);
            position: relative;
        }

        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            text-decoration: none;
            color: var(--accent-color);
            font-weight: 600;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
            transition: transform 0.2s;
        }

        .back-btn:hover { transform: translateX(-3px); }

        h1 {
            text-align: center;
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 25px;
            font-weight: 800;
        }

        .description {
            margin-bottom: 30px;
            color: #64748b;
            font-size: 1.05rem;
            text-align: center;
            max-width: 750px;
            margin-left: auto;
            margin-right: auto;
        }

        .sim-wrapper {
            justify-content: center;
            margin: 30px 0;
            overflow: visible;
        }

        #total {
            width: 800px;
            height: 400px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            position: relative;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            overflow: hidden;
            flex-shrink: 0;
            transform-origin: center center;
        }

        #canvas {
            position: absolute;
            left: 0;
            top: 0;
            width: 400px;
            height: 400px;
        }

        #ta {
            position: absolute;
            left: 400px;
            top: 0;
            width: 250px;
            height: 400px;
            background: #f8fafc;
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
        }

        #panel {
            position: absolute;
            left: 650px;
            top: 0;
            width: 150px;
            height: 400px;
            background: #ffffff;
            padding: 20px;
            flex-direction: column;
            gap: 15px;
        }

        button {
            width: 100%;
            padding: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            background: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--primary-color);
        }

        button:hover {
            background: #f1f5f9;
            border-color: var(--accent-color);
        }

        .btn-primary {
            background: var(--accent-color);
            color: white;
            border: none;
        }

        .btn-primary:hover {
            background: #2563eb;
        }

        .footer-info {
            text-align: center;
            margin-top: 40px;
            font-size: 0.85rem;
            color: #94a3b8;
        }

        /* 响应式缩放 */
        @media (max-width: 900px) {
            #total { /* scale removed */ }
            .sim-wrapper { height: 380px; align-items: center; }
        }
        @media (max-width: 800px) {
            #total { /* scale removed */ }
            .sim-wrapper { height: 340px; }
        }
        @media (max-width: 700px) {
            #total { /* scale removed */ }
            .sim-wrapper { height: 280px; }
            .card { padding: 30px 20px; }
        }
        @media (max-width: 550px) {
            #total { /* scale removed */ }
            .sim-wrapper { height: 220px; }
            h1 { font-size: 1.5rem; }
        }
