
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'SimSun', '宋体', serif;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            padding: 30px;
        }

        h1 {
            text-align: center;
            color: #1e40af;
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .subtitle {
            text-align: center;
            color: #64748b;
            font-size: 1.1rem;
            margin-bottom: 30px;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 30px;
            align-items: start;
        }

        .visualization-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .visualization-area {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            border: 2px solid #e2e8f0;
        }

        .control-panel {
            background: rgba(248, 250, 252, 0.8);
            border-radius: 15px;
            padding: 25px;
            backdrop-filter: blur(5px);
            border: 1px solid #e2e8f0;
        }

        .control-group {
            margin-bottom: 25px;
        }

        .control-label {
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 15px;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .slider-container {
            margin-bottom: 15px;
        }

        .slider-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-weight: 500;
            color: #475569;
        }

        .slider-value {
            background: #1e40af;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            min-width: 50px;
            text-align: center;
        }

        .slider {
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: #e2e8f0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #1e40af;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
        }

        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .modern-btn {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .modern-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        .modern-btn:active {
            transform: translateY(0);
        }

        .toggle-btn.active {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .formula-display {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b;
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            width: 100%;
        }

        .formula-main {
            font-size: 1.6rem;
            font-weight: 700;
            color: #92400e;
            margin-bottom: 8px;
        }

        .formula-breakdown {
            font-size: 1.1rem;
            color: #b45309;
            line-height: 1.4;
            white-space: nowrap;
            overflow-x: auto;
        }

        .info-display {
            background: rgba(219, 234, 254, 0.5);
            border: 2px solid #3b82f6;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .info-display h3 {
            color: #1e40af;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .info-display ul {
            margin: 10px 0;
            padding-left: 20px;
        }

        .info-display li {
            margin-bottom: 8px;
            color: #475569;
        }

        .color-indicator {
            display: inline-block;
            width: 16px;
            height: 16px;
            border-radius: 3px;
            margin-right: 8px;
            vertical-align: middle;
            border: 1px solid rgba(0, 0, 0, 0.2);
        }

        .color-red { background-color: #fecaca; }
        .color-blue { background-color: #bfdbfe; }
        .color-green { background-color: #bbf7d0; }
        .color-orange { background-color: #fed7aa; }

        .step-animation {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .step-animation.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .footer {
            background: linear-gradient(to right);
            color: #0c0302;
            text-align: center;
            padding: 10px;
            margin-top: 15px;
            border-radius: 0 0 10px 10px;
        }

        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .container {
                padding: 20px;
            }
            
            .formula-main {
                font-size: 1.4rem;
            }
            
            .formula-breakdown {
                font-size: 1rem;
                white-space: normal;
            }
        }
