/* CalWhat Calculator Platform - ElectricalLoadCalculator Specific Styles */
/* This file contains calculator-specific styles */


    /* 模式切換按鈕 */
    .mode-selector {
        display: flex;
        justify-content: center;
        gap: 0;
        margin: 30px auto 40px;
        max-width: 600px;
        background: white;
        border-radius: 15px;
        padding: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .mode-btn {
        flex: 1;
        padding: 15px 20px;
        background: transparent;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        color: #718096;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: relative;
    }

        .mode-btn i {
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .mode-btn .mode-desc {
            font-size: 0.75rem;
            font-weight: 400;
            opacity: 0.7;
        }

        .mode-btn:hover {
            color: #667eea;
            transform: translateY(-2px);
        }

        .mode-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

            .mode-btn.active i {
                transform: scale(1.1);
            }

            .mode-btn.active .mode-desc {
                opacity: 1;
            }


    .input-group-custom {
        margin-bottom: 25px;
    }

    .input-label {
        font-weight: 500;
        color: #4a5568;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        position: relative;
    }

        .input-label i {
            color: #667eea;
            font-size: 0.9rem;
        }

    .tooltip-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #667eea;
        color: white;
        font-size: 0.7rem;
        cursor: help;
        margin-left: 5px;
        position: relative;
    }

    .tooltip-text {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        z-index: 1000;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #2d3748;
        color: white;
        text-align: center;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        white-space: nowrap;
        transition: opacity 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-weight: 400;
        min-width: 200px;
        white-space: normal;
    }

        .tooltip-text::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #2d3748;
        }

    .tooltip-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        font-family: 'Roboto Mono', monospace;
        transition: all 0.3s ease;
        background: #f0fff4;
    }

        .form-input:focus {
            outline: none;
            border-color: #38a169;
            box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
            transform: translateY(-2px);
        }

    .form-select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #48bb78;
        border-radius: 12px;
        font-size: 1rem;
        background: #f0fff4;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .form-select:focus {
            outline: none;
            border-color: #38a169;
            box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
        }

    .input-range {
        font-size: 0.85rem;
        color: #718096;
        margin-top: 5px;
    }

    /* 電器列表樣式 */
    .appliance-list {
        margin-top: 20px;
    }

    .appliance-item {
        background: #f7fafc;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: 3fr 1fr 0.8fr 0.5fr;
        gap: 15px;
        align-items: center;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

        .appliance-item:hover {
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        }

    .appliance-field {
        display: flex;
        flex-direction: column;
    }

        .appliance-field label {
            font-size: 0.8rem;
            color: #718096;
            margin-bottom: 5px;
        }

        .appliance-field input {
            padding: 8px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 100%;
        }

            .appliance-field input:focus {
                outline: none;
                border-color: #667eea;
                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            }

            .appliance-field input[type="number"] {
                max-width: 100px;
            }

    .btn-remove {
        background: #f56565;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

        .btn-remove:hover {
            background: #e53e3e;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
        }

    /* 快速場景按鈕 */
    .quick-scenarios {
        margin-bottom: 20px;
        padding: 15px;
        background: #f7fafc;
        border-radius: 12px;
        border: 2px dashed #cbd5e0;
    }

    .scenarios-label {
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
    }

        .scenarios-label i {
            color: #667eea;
        }

    .scenarios-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .btn-scenario {
        background: white;
        color: #667eea;
        border: 2px solid #667eea;
        border-radius: 10px;
        padding: 10px 12px;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.3s ease;
        min-height: 70px;
    }

        .btn-scenario i {
            font-size: 1.3rem;
        }

        .btn-scenario:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
        }

        .btn-scenario:active {
            transform: translateY(-1px);
        }

    .btn-add {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 12px 24px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        margin-top: 15px;
        width: 100%;
    }

        .btn-add:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

    /* 家電資料庫樣式 */
    .database-section {
        margin-top: 30px;
    }

    .database-toggle {
        background: #edf2f7;
        border: 2px solid #cbd5e0;
        border-radius: 12px;
        padding: 15px 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        font-weight: 600;
        color: #2d3748;
    }

        .database-toggle:hover {
            background: #e2e8f0;
            border-color: #667eea;
        }

        .database-toggle i {
            transition: transform 0.3s ease;
        }

        .database-toggle.active i {
            transform: rotate(180deg);
        }

    .database-content {
        display: none;
        margin-top: 20px;
        padding: 20px;
        background: #f7fafc;
        border-radius: 12px;
        border: 2px solid #e2e8f0;
    }

        .database-content.active {
            display: block;
        }

    .appliance-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        margin-top: 15px;
    }

    /* 分類標題 */
    .database-category-title {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        font-size: 1rem;
        padding: 15px 0 10px 0;
        margin-top: 10px;
        border-bottom: 2px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .database-category-title i {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .database-category-title .category-count {
            font-size: 0.85rem;
            opacity: 0.7;
        }

    /* 設備卡片 */
    .appliance-card {
        background: white;
        border-radius: 12px;
        padding: 12px;
        border: 2px solid #e2e8f0;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .appliance-card:hover {
            border-color: #667eea;
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
            transform: translateY(-3px);
        }

    .appliance-card-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .appliance-card-icon i {
            color: white;
            font-size: 1.2rem;
        }

    .appliance-card-content {
        flex: 1;
        min-width: 0;
    }

    .appliance-card-name {
        font-size: 0.9rem;
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .appliance-card-power {
        font-family: 'Roboto Mono', monospace;
        color: #667eea;
        font-weight: 700;
        font-size: 1rem;
    }

    .appliance-card-startup {
        font-size: 0.75rem;
        color: #f59e0b;
        font-weight: 600;
        margin-top: 2px;
    }

    .result-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 20px;
        padding: 30px;
        margin-bottom: 25px;
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }

    .result-label {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 10px;
    }

    .result-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 5px;
        animation: pulse 0.5s ease;
    }

    .result-unit {
        font-size: 1.5rem;
        opacity: 0.8;
    }

    .result-details {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 15px;
        margin-top: 20px;
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

        .result-item:last-child {
            border-bottom: none;
        }

    .result-item-label {
        font-size: 0.95rem;
        opacity: 0.9;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .result-item-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
        font-size: 1.2rem;
    }

    /* 材料建議區塊 */
    .material-list {
        margin-bottom: 15px;
    }

    .material-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        background: #f7fafc;
        border-radius: 12px;
        margin-bottom: 12px;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }

        .material-item:hover {
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .material-item:last-child {
            margin-bottom: 0;
        }

    .material-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .material-icon i {
            color: white;
            font-size: 1.4rem;
        }

    .material-content {
        flex: 1;
    }

    .material-name {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 6px;
        font-size: 1rem;
    }

    .material-spec {
        font-family: 'Roboto Mono', monospace;
        font-weight: 700;
        color: #667eea;
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .material-note {
        font-size: 0.85rem;
        color: #718096;
        font-style: italic;
    }

    .material-reminder {
        background: #fff3cd;
        border-left: 4px solid #ffc107;
        padding: 12px 15px;
        border-radius: 8px;
        display: flex;
        align-items: start;
        gap: 10px;
        font-size: 0.85rem;
        color: #856404;
        line-height: 1.5;
    }

        .material-reminder i {
            color: #ffc107;
            margin-top: 2px;
            flex-shrink: 0;
        }

    .warning-box {
        background: #fff3cd;
        border-left: 4px solid #ffc107;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

        .warning-box h3 {
            color: #856404;
            font-size: 1.1rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .warning-box ul {
            list-style: none;
            padding-left: 0;
        }

            .warning-box ul li {
                color: #856404;
                padding: 8px 0;
                display: flex;
                align-items: flex-start;
                gap: 10px;
            }

                .warning-box ul li:before {
                    content: '⚠️';
                    flex-shrink: 0;
                }

    /* 安全警告卡片 */
    .safety-alert {
        background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
        color: white;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 25px;
        box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
        animation: pulse-warning 2s ease-in-out infinite;
        display: none;
    }

    /* 只有同時符合兩個條件才顯示警告：
       1. 模式允許 (.mode-visible)
       2. 負載過高 (.show)
    */
    .safety-alert.show.mode-visible {
        display: block !important;
    }

    /* 模式控制：預設隱藏 */
    .safety-alert[data-mode-visibility] {
        display: none;
    }

    .safety-alert-header {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .safety-alert-header i {
        font-size: 1.5rem;
        animation: shake 0.5s ease-in-out infinite;
    }

    .safety-alert-body {
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.95;
    }

    .safety-alert-percentage {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.5rem;
        font-weight: 700;
        margin-top: 10px;
    }

    @keyframes pulse-warning {
        0%, 100% {
            box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
        }
        50% {
            box-shadow: 0 8px 30px rgba(245, 101, 101, 0.6);
        }
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-3px); }
        75% { transform: translateX(3px); }
    }

    /* 啟動電流卡片 */
    .startup-current-card {
        background: #f7fafc;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 25px;
        border: 2px solid #e2e8f0;
    }

    .startup-current-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .startup-current-header h3 {
        background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
    }

    .startup-current-header i {
        color: #f59e0b;
        font-size: 1.3rem;
    }

    .startup-current-values {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .startup-value-item {
        background: white;
        padding: 15px;
        border-radius: 12px;
        border: 2px solid #e2e8f0;
    }

    .startup-value-label {
        font-size: 0.85rem;
        color: #718096;
        margin-bottom: 8px;
    }

    .startup-value-number {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.8rem;
        font-weight: 700;
        color: #f59e0b;
    }

    .startup-value-unit {
        font-size: 1rem;
        opacity: 0.7;
    }

    /* 智慧提示卡片 */
    .smart-tips {
        background: #f7fafc;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 25px;
        border: 2px solid #e2e8f0;
    }

    .smart-tips-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .smart-tips-header h3 {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
    }

    .smart-tips-header i {
        color: #667eea;
        font-size: 1.3rem;
    }

    .smart-tips-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .smart-tip-item {
        background: white;
        padding: 12px 15px;
        border-radius: 10px;
        margin-bottom: 10px;
        border-left: 4px solid #667eea;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        transition: all 0.3s ease;
    }

    .smart-tip-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .smart-tip-item:last-child {
        margin-bottom: 0;
    }

    .smart-tip-icon {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .smart-tip-icon i {
        color: white;
        font-size: 0.9rem;
    }

    .smart-tip-text {
        flex: 1;
        font-size: 0.9rem;
        color: #2d3748;
        line-height: 1.5;
    }

    /* 迴路規劃樣式 */
    .circuit-planning-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
    }

    .circuit-planning-header h3 {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .circuit-planning-header i {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .circuit-summary {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f7fafc;
        padding: 8px 15px;
        border-radius: 10px;
    }

    .summary-label {
        font-size: 0.9rem;
        color: #718096;
    }

    .summary-value {
        font-family: 'Roboto Mono', monospace;
        font-size: 1.5rem;
        font-weight: 700;
        color: #667eea;
    }

    .summary-unit {
        font-size: 0.9rem;
        color: #718096;
    }

    .circuit-card {
        background: white;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    .circuit-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    }

    .circuit-card:last-child {
        margin-bottom: 0;
    }

    .circuit-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .circuit-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .circuit-number {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.95rem;
    }

    .circuit-name {
        font-size: 1.05rem;
        font-weight: 600;
        color: #2d3748;
    }

    .circuit-type-badge {
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .type-dedicated {
        background: #fee;
        color: #e53e3e;
        border: 1.5px solid #e53e3e;
    }

    .type-recommended {
        background: #fef5e7;
        color: #f59e0b;
        border: 1.5px solid #f59e0b;
    }

    .type-shared {
        background: #e6f7ff;
        color: #667eea;
        border: 1.5px solid #667eea;
    }

    .circuit-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 15px;
    }

    .spec-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
    }

    .spec-item i {
        color: #667eea;
        width: 20px;
    }

    .spec-label {
        color: #718096;
    }

    .spec-value {
        font-family: 'Roboto Mono', monospace;
        font-weight: 700;
        color: #2d3748;
    }

    .spec-value.status-danger {
        color: #e53e3e;
    }

    .spec-value.status-warning {
        color: #f59e0b;
    }

    .spec-value.status-good {
        color: #48bb78;
    }

    .circuit-load-bar {
        width: 100%;
        height: 10px;
        background: #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .load-bar-fill {
        height: 100%;
        transition: all 0.5s ease;
        border-radius: 10px;
    }

    .load-bar-fill.status-good {
        background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    }

    .load-bar-fill.status-warning {
        background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    }

    .load-bar-fill.status-danger {
        background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%);
    }

    .circuit-appliances {
        background: #f7fafc;
        border-radius: 10px;
        padding: 12px;
    }

    .appliances-header {
        font-size: 0.85rem;
        color: #718096;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .circuit-appliance-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .circuit-appliance-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .appliance-name {
        font-size: 0.9rem;
        color: #2d3748;
    }

    .appliance-power {
        font-family: 'Roboto Mono', monospace;
        font-size: 0.9rem;
        font-weight: 600;
        color: #667eea;
    }

 

    .spinner {
        display: none;
    }

    .spinner-border {
        width: 1rem;
        height: 1rem;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: spinner-border 0.75s linear infinite;
    }

    @keyframes spinner-border {
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }

    /* 響應式設計 */
    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 2rem;
        }

        .result-value {
            font-size: 2rem;
        }

        .glass-card {
            padding: 20px;
        }

        .appliance-item {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .appliance-grid {
            grid-template-columns: 1fr;
        }
    }