 
        .math-result {
            padding: 15px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.5rem;
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            margin: 10px 0;
            text-align: center;
        }
        .math-equation {
            font-size: 1.3rem;
            padding: 15px;
            background-color: rgba(70, 130, 180, 0.05);
            border-left: 4px solid var(--primary-color);
            border-radius: 4px;
            margin: 15px 0;
        }
        .subsection-title {
            font-weight: 600;
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: var(--accent-color);
            font-size: 1.2rem;
        }
        .math-box {
            background-color: rgba(70, 130, 180, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .function-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(70, 130, 180, 0.1);
            border: 1px solid rgba(70, 130, 180, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Courier New', monospace;
        }
        .example-btn:hover {
            background-color: rgba(70, 130, 180, 0.2);
            transform: translateY(-2px);
        }
        .math-notation {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.1rem;
        }
        .frac-input-group {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex-wrap: wrap;
        }
        .frac-input-group .form-control {
            width: 60px;
            text-align: center;
        }
        .frac-input-group .form-control-sm {
            width: 60px;
        }
        .frac-input-group .frac-sep {
            font-size: 1.2rem;
            font-weight: 500;
            padding: 0 0.2rem;
        }
        .frac-input-group .whole-label {
            font-weight: 500;
            color: #555;
            margin-right: 0.2rem;
        }
        .op-selector {
            display: flex;
            gap: 0.5rem;
            margin: 0.5rem 0 1rem 0;
            flex-wrap: wrap;
        }
        .op-selector .op-btn {
            min-width: 50px;
            font-size: 1.3rem;
            font-weight: 600;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            padding: 0.3rem 0.8rem;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
            color: #333;
        }
        .op-selector .op-btn:hover {
            background: #f0f0f0;
            border-color: #b0b0b0;
        }
        .op-selector .op-btn.active {
            border-color: var(--primary-color);
            background: var(--primary-color);
            color: white;
        }
        .result-container {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 2px solid #e9ecef;
        }
        .result-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            margin-top: 1rem;
        }
        .result-card .result-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 0.75rem;
        }
        .result-card .result-main {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary-color);
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            padding: 0.5rem 0;
        }
        .result-card .result-alt {
            font-size: 1rem;
            color: #666;
            padding: 0.2rem 0;
        }
        .result-card .result-alt span {
            font-weight: 500;
            color: #333;
        }
        .step-container {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 1.2rem;
            margin: 1rem 0;
            border-left: 4px solid #28a745;
        }
        .step-container .step {
            padding: 0.4rem 0;
            font-size: 0.98rem;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .step-container .step-number {
            font-weight: 700;
            color: #28a745;
            margin-right: 0.5rem;
        }
        .result-row {
            font-size: 1.1rem;
            margin: 0.5rem 0;
            padding: 0.3rem 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .result-row:last-child {
            border-bottom: none;
        }
        .result-label {
            font-weight: 500;
            color: #555;
            min-width: 140px;
            display: inline-block;
        }
        .warning-note {
            background-color: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            margin: 1rem 0;
        }
        .privacy-note {
            font-size: 0.9rem;
            background-color: #e7f3ff;
            border: 1px solid #b8daff;
            color: #004085;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            margin: 1rem 0;
        }
        .case-study {
            background-color: #f0f7fa;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 5px solid var(--primary-color);
        }
        .key-point {
            font-weight: 500;
            color: var(--accent-color);
        }
        .authority-note {
            font-size: 0.85rem;
            color: var(--text-muted);
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
            margin-top: 1rem;
            text-align: right;
        }
        .author-bio {
            background-color: #f8f9fa;
            border-left: 4px solid var(--primary-color);
            padding: 1.2rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: #222;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .related-tools {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 2rem;
        }
        .related-tools .related-title {
            font-weight: 600;
            margin-bottom: 1rem;
        }
        .related-tool {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid #eee;
        }
        .related-tool:last-child {
            border-bottom: none;
        }
        .related-icon {
            width: 40px;
            height: 40px;
            background: rgba(13, 110, 253, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 1.2rem;
        }
        .related-content .related-name a {
            text-decoration: none;
            font-weight: 500;
            color: #222;
        }
        .related-content .related-name a:hover {
            color: var(--primary-color);
        }
        .related-content .related-desc {
            font-size: 0.85rem;
            color: #666;
        }
        .footer {
            background: #212529;
            color: #f8f9fa;
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }
        .footer a {
            color: #adb5bd;
            text-decoration: none;
        }
        .footer a:hover {
            color: white;
        }
        .social-icons .social-icon {
            display: inline-block;
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 36px;
            color: #adb5bd;
            margin-right: 0.5rem;
            transition: 0.3s;
        }
        .social-icons .social-icon:hover {
            background: var(--primary-color);
            color: white;
        }
        .breadcrumb {
            background: transparent;
            padding: 0.75rem 0;
        }
        .breadcrumb-item a {
            color: var(--primary-color);
            text-decoration: none;
        }
        .navbar {
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .navbar-brand {
            font-weight: 700;
            color: var(--primary-color);
        }
        .btn-primary {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }
        .btn-primary:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
        }
        @media (max-width: 576px) {
            .frac-input-group .form-control {
                width: 50px;
            }
            .frac-input-group .form-control-sm {
                width: 45px;
            }
            .result-card .result-main {
                font-size: 1.6rem;
            }
            .op-selector .op-btn {
                min-width: 40px;
                font-size: 1rem;
                padding: 0.2rem 0.5rem;
            }
            .tool-card {
                padding: 1rem;
            }
        }