
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            color: #2c3e50;
        }

        .container {
            display: flex;
            width: 100%;
            height: 100vh;
            gap: 20px;
            padding: 20px;
        }

        /* 左侧操作区 */
        .control-panel {
            width: 35%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow-y: auto;
        }

        .panel-title {
            font-size: 28px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 30px;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .rule-selector {
            margin-bottom: 30px;
        }

        .rule-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .rule-btn {
            padding: 18px 25px;
            border: none;
            border-radius: 15px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .rule-btn.rule1 {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
        }

        .rule-btn.rule2 {
            background: linear-gradient(45deg, #4facfe, #00f2fe);
        }

        .rule-btn.rule3 {
            background: linear-gradient(45deg, #43e97b, #38f9d7);
        }

        .rule-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .rule-btn.active {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .input-section {
            background: rgba(248, 249, 250, 0.8);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-label {
            display: block;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .input-field {
            width: 100%;
            padding: 15px;
            border: 3px solid #e9ecef;
            border-radius: 10px;
            font-size: 18px;
            transition: all 0.3s ease;
            background: white;
        }

        .input-field:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
        }

        .slider-container {
            margin: 15px 0;
        }

        .slider {
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: linear-gradient(90deg, #ff6b35, #4facfe, #43e97b);
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .slider::-moz-range-thumb {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            border: none;
        }

        .value-display {
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            color: #2c3e50;
            margin-top: 10px;
        }

        .quick-examples {
            margin-top: 20px;
        }

        .example-btn {
            display: inline-block;
            margin: 5px;
            padding: 10px 15px;
            background: linear-gradient(45deg, #ffa502, #ff6348);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .example-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* 右侧展示区 */
        .display-area {
            width: 65%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }

        .calculation-display {
            text-align: center;
            margin-bottom: 30px;
            padding: 25px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 15px;
            border: 3px solid transparent;
            background-clip: padding-box;
        }

        .calculation-formula {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .dividend {
            color: #ff6b35;
        }

        .divisor {
            color: #1e90ff;
        }

        .quotient {
            color: #32cd32;
        }

        .visualization-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .chart-container {
            background: rgba(248, 249, 250, 0.8);
            border-radius: 15px;
            padding: 25px;
            height: 300px;
            position: relative;
        }

        .bar-chart {
            display: flex;
            align-items: end;
            justify-content: space-around;
            height: 200px;
            margin-top: 20px;
        }

        .bar {
            width: 80px;
            border-radius: 8px 8px 0 0;
            position: relative;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: end;
            justify-content: center;
        }

        .bar-dividend {
            background: linear-gradient(180deg, #ff8c00, #ff6b35);
        }

        .bar-divisor {
            background: linear-gradient(180deg, #4facfe, #1e90ff);
        }

        .bar-quotient {
            background: linear-gradient(180deg, #43e97b, #32cd32);
        }

        .bar-label {
            position: absolute;
            bottom: -30px;
            font-size: 16px;
            font-weight: bold;
            color: #2c3e50;
        }

        .bar-value {
            position: absolute;
            top: -35px;
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            background: white;
            padding: 5px 10px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .rule-explanation {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .rule-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }

        .rule-text {
            font-size: 18px;
            line-height: 1.6;
            text-align: center;
        }

        .examples-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .example-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            transition: all 0.3s ease;
        }

        .example-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .example-formula {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .example-result {
            font-size: 24px;
            font-weight: bold;
            color: #32cd32;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
                height: auto;
            }
            
            .control-panel, .display-area {
                width: 100%;
            }
            
            .calculation-formula {
                font-size: 28px;
            }
            
            .bar-chart {
                height: 150px;
            }
        }
