﻿:root {
            --primary-color: #2c3e50;
            --accent-color: #3498db;
            --bg-color: #f0f2f5;
            --card-bg: #ffffff;
            --text-color: #34495e;
            --shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        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;
            }

        .container { margin: 20px; }

        .lab-card {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 40px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        .header-section {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #eee;
            padding-bottom: 20px;
        }

        h1 {
            color: var(--primary-color);
            margin: 0 0 10px 0;
            font-size: 2rem;
        }

        .back-nav {
            margin-bottom: 20px;
        }

        .btn-back {
            display: inline-flex;
            align-items: center;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .btn-back:hover {
            color: var(--accent-color);
        }

        .theory-section {
            margin-bottom: 30px;
            font-size: 1.05rem;
        }

        .formula-card {
            background: #f8f9fa;
            border-left: 5px solid var(--accent-color);
            padding: 20px;
            margin: 20px 0;
        }

        .formula-box {
            text-align: center;
            margin-bottom: 15px;
        }

        .formula-box code {
            font-family: 'Times New Roman', Times, serif;
            font-size: 1.3rem;
            font-weight: bold;
        }

        /* Simulation Container */
        .sim-wrapper {
            position: relative;
            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;
            min-height: 480px;
        }

        #total {
            position: relative;
            width: 740px;
            height: 440px;
            transform-origin: center center;
            flex-shrink: 0;
        }

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

        #panel {
            position: absolute;
            left: 440px;
            top: 0;
            width: 300px;
            height: 440px;
            background: #fdfdfd;
            border-left: 1px solid #eee;
            box-sizing: border-box;
            font-size: 0.9rem;
        }

        #panel div {
            position: absolute;
            width: 270px;
            left: 15px;
        }

        input[type="text"] {
            position: absolute;
            left: 110px;
            width: 70px;
            padding: 3px 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        input[type="range"] {
            width: 250px;
        }

        select {
            position: absolute;
            left: 110px;
            width: 140px;
            padding: 3px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .footer-info {
            margin-top: 40px;
            font-size: 0.9rem;
            color: #7f8c8d;
            border-top: 1px solid #eee;
            padding-top: 20px;
        }

        @media (max-width: 950px) {
            .lab-card { padding: 20px; }
            .sim-wrapper { padding: 10px; }
        }
