/* ==========================================================
           Calculator Page Specific Luxury Styles
           ========================================================== */
        :root {
            --calc-gold-primary: #8b6d51;
            --calc-gold-light: #c5b098;
            --calc-gold-accent: #dfbe7a;
            --calc-bg-cream: #faf8f5;
            --calc-card-bg: #ffffff;
            --calc-border: #ebd9c8;
            --calc-text-dark: #3e3228;
            --calc-text-muted: #7d6e63;
        }

        /* 徹底防止 preloader 遮罩導致白屏 */
        .preloader {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
            z-index: -1 !important;
        }

        body {
            background-color: #fdfbf9;
            color: var(--calc-text-dark);
            font-family: 'Open Sans', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
        }

        .calc-hero-badge {
            display: inline-block;
            background: linear-gradient(135deg, #c5b098 0%, #8b6d51 100%);
            color: #ffffff;
            font-size: 13px;
            font-weight: bold;
            padding: 5px 16px;
            border-radius: 20px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(139, 109, 81, 0.2);
            letter-spacing: 0.5px;
        }

        .calc-header-intro {
            text-align: center;
            max-width: 820px;
            margin: 0 auto 35px auto;
            padding: 0 15px;
        }

        .calc-header-intro h2 {
            font-size: 28px;
            font-weight: 700;
            color: #4a3b32;
            margin: 10px 0 14px 0;
            letter-spacing: 0.5px;
        }

        .calc-header-intro p {
            font-size: 15.5px;
            line-height: 1.8;
            color: #6a5a4e;
            margin: 0;
        }

        /* 雙欄主容器架構 */
        .calc-app-wrap {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(139, 109, 81, 0.08);
            overflow: hidden;
            margin-bottom: 50px;
        }

        .calc-main-row {
            display: flex;
            flex-wrap: wrap;
            margin: 0;
        }

        /* 左側輸入欄 */
        .calc-input-panel {
            flex: 1 1 45%;
            max-width: 45%;
            padding: 36px 32px;
            background: linear-gradient(180deg, #ffffff 0%, #fdfbf9 100%);
            border-right: 1px solid #ebd9c8;
        }

        /* 右側結果欄 */
        .calc-result-panel {
            flex: 1 1 55%;
            max-width: 55%;
            padding: 36px 32px;
            background: #faf7f2;
        }

        @media (max-width: 991px) {

            .calc-input-panel,
            .calc-result-panel {
                flex: 1 1 100%;
                max-width: 100%;
            }

            .calc-input-panel {
                border-right: none;
                border-bottom: 1px solid #ebd9c8;
                padding: 26px 20px;
            }

            .calc-result-panel {
                padding: 26px 20px;
            }
        }

        .calc-panel-title {
            font-size: 19px;
            font-weight: 700;
            color: #4a3b32;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ebd9c8;
        }

        .calc-panel-title i {
            color: #8b6d51;
            font-size: 18px;
        }

        /* 輸入表單元件 */
        .calc-field-group {
            margin-bottom: 20px;
        }

        .calc-field-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14.5px;
            font-weight: 600;
            color: #4a3b32;
            margin-bottom: 8px;
        }

        .calc-field-hint {
            font-size: 12px;
            color: #9c8a7c;
            font-weight: normal;
        }

        /* 性別切換開關 */
        .gender-switch-group {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }

        .gender-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 16px;
            border: 1.5px solid #ebd9c8;
            border-radius: 10px;
            background: #ffffff;
            color: #6a5a4e;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
        }

        .gender-btn i {
            font-size: 16px;
        }

        .gender-btn.active {
            background: linear-gradient(135deg, #c5b098 0%, #8b6d51 100%);
            border-color: #8b6d51;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(139, 109, 81, 0.25);
        }

        /* 數字輸入框 */
        .calc-input-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .calc-input {
            flex: 1;
            height: 44px;
            border: 1.5px solid #ebd9c8;
            border-radius: 10px;
            padding: 0 14px;
            font-size: 16px;
            font-weight: 600;
            color: #3e3228;
            background: #ffffff;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .calc-input:focus {
            border-color: #8b6d51;
            box-shadow: 0 0 0 3px rgba(139, 109, 81, 0.15);
        }

        .calc-unit-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            height: 44px;
            background: #f4ece2;
            border: 1px solid #ebd9c8;
            border-radius: 10px;
            font-size: 13.5px;
            font-weight: 600;
            color: #6a5a4e;
        }

        /* 活動量選擇器下拉選單 */
        .calc-select {
            width: 100%;
            height: 44px;
            border: 1.5px solid #ebd9c8;
            border-radius: 10px;
            padding: 0 12px;
            font-size: 14.5px;
            font-weight: 500;
            color: #3e3228;
            background: #ffffff;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s ease;
        }

        .calc-select:focus {
            border-color: #8b6d51;
        }

        /* 減重目標按鈕切換 */
        .goal-options-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .goal-option-card {
            border: 1.5px solid #ebd9c8;
            border-radius: 10px;
            padding: 10px 8px;
            text-align: center;
            background: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            position: relative;
        }

        .goal-option-card:hover {
            border-color: #c5b098;
            background: #fdfaf6;
        }

        .goal-option-card.active {
            border-color: #8b6d51;
            background: #fdf7f0;
            box-shadow: 0 2px 8px rgba(139, 109, 81, 0.15);
        }

        .goal-option-title {
            font-size: 13px;
            font-weight: 700;
            color: #4a3b32;
            margin-bottom: 3px;
        }

        .goal-option-card.active .goal-option-title {
            color: #8b6d51;
        }

        .goal-option-desc {
            font-size: 11px;
            color: #9c8a7c;
        }

        /* 方案 A: MONK 專利解鎖按鈕特色設計 */
        .goal-option-monk {
            border: 1.5px solid #d4af37 !important;
            background: linear-gradient(135deg, #fffdfa 0%, #fdf8ed 100%) !important;
            animation: monkGlowPulse 2.8s infinite;
        }

        @keyframes monkGlowPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
            }
        }

        .monk-sparkle-badge {
            position: absolute;
            top: -10px;
            right: -6px;
            background: linear-gradient(135deg, #e11d48 0%, #b91c1c 100%);
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
            letter-spacing: 0.3px;
            z-index: 2;
            white-space: nowrap;
        }

        .goal-option-monk.active {
            border-color: #8b6d51 !important;
            background: linear-gradient(135deg, #fbf2e1 0%, #f7e3bf 100%) !important;
            box-shadow: 0 4px 14px rgba(139, 109, 81, 0.3) !important;
        }

        .goal-option-monk .goal-option-title {
            color: #b45309;
        }

        .goal-option-monk.active .goal-option-title {
            color: #78350f;
            font-weight: 800;
        }

        @media (max-width: 480px) {
            .goal-options-grid {
                grid-template-columns: 1fr 1fr 1.2fr;
                gap: 6px;
            }

            .goal-option-card {
                padding: 9px 5px;
            }

            .goal-option-title {
                font-size: 11.5px;
            }

            .goal-option-desc {
                font-size: 10px;
                line-height: 1.25;
            }
        }

        /* 計算動作按鈕 */
        .calc-action-btn {
            display: block;
            width: 100%;
            background: linear-gradient(135deg, #c5b098 0%, #8b6d51 100%);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            padding: 13px 20px;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 1px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(139, 109, 81, 0.25);
            transition: all 0.25s ease;
            outline: none;
            margin-top: 24px;
        }

        .calc-action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(139, 109, 81, 0.35);
        }

        /* ==========================================================
           結果展示卡片設計
           ========================================================== */
        /* BMI 主要儀表卡 */
        .bmi-hero-card {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-radius: 14px;
            padding: 22px 24px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
            margin-bottom: 20px;
            position: relative;
        }

        .bmi-top-flex {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }

        .bmi-value-wrap {
            display: flex;
            align-items: baseline;
            gap: 6px;
        }

        .bmi-value-num {
            font-size: 38px;
            font-weight: 800;
            color: #4a3b32;
            line-height: 1;
            font-family: 'Open Sans', sans-serif;
        }

        .bmi-status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 13.5px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .status-underweight {
            background: #e0f2fe;
            color: #0284c7;
        }

        .status-normal {
            background: #dcfce7;
            color: #15803d;
        }

        .status-overweight {
            background: #fef3c7;
            color: #b45309;
        }

        .status-mild-obese {
            background: #ffedd5;
            color: #c2410c;
        }

        .status-mod-obese {
            background: #fee2e2;
            color: #b91c1c;
        }

        .status-severe-obese {
            background: #450a0a;
            color: #fecaca;
        }

        /* 彩色健康尺規刻度條 */
        .bmi-scale-bar {
            height: 12px;
            border-radius: 6px;
            background: linear-gradient(to right,
                    #38bdf8 0%, #38bdf8 18.5%,
                    #22c55e 18.5%, #22c55e 40%,
                    #eab308 40%, #eab308 55%,
                    #f97316 55%, #f97316 75%,
                    #ef4444 75%, #dc2626 100%);
            position: relative;
            margin: 20px 0 10px 0;
        }

        .bmi-scale-pointer {
            position: absolute;
            top: -7px;
            left: 50%;
            transform: translateX(-50%);
            width: 14px;
            height: 26px;
            background: #ffffff;
            border: 2.5px solid #2d241d;
            border-radius: 4px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
            transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .bmi-scale-labels {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #9c8a7c;
            margin-top: 6px;
        }

        .bmi-details-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px dashed #ebd9c8;
        }

        .bmi-detail-item {
            font-size: 13px;
            color: #6a5a4e;
        }

        .bmi-detail-item strong {
            color: #4a3b32;
            font-weight: 700;
        }

        /* 3 個副結果指標小卡 (BMR, TDEE, 水分) */
        .calc-sub-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        @media (max-width: 575px) {
            .calc-sub-grid {
                grid-template-columns: 1fr;
            }
        }

        .calc-sub-card {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-radius: 12px;
            padding: 14px 12px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
            transition: transform 0.2s ease;
        }

        .calc-sub-card:hover {
            transform: translateY(-2px);
        }

        .calc-sub-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #f5ede4;
            color: #8b6d51;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            margin-bottom: 6px;
        }

        .calc-sub-title {
            font-size: 12px;
            color: #8a786b;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .calc-sub-val {
            font-size: 19px;
            font-weight: 800;
            color: #4a3b32;
            font-family: 'Open Sans', sans-serif;
        }

        .calc-sub-unit {
            font-size: 11px;
            color: #9c8a7c;
            font-weight: normal;
            margin-left: 2px;
        }

        .calc-sub-note {
            font-size: 10.5px;
            color: #a8988a;
            margin-top: 3px;
        }

        /* 建議減脂熱量目標焦點橫幅 */
        .calorie-target-banner {
            background: linear-gradient(135deg, #fdfbf9 0%, #f7f1e9 100%);
            border: 1.5px solid #d8c2af;
            border-radius: 12px;
            padding: 18px 22px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            transition: all 0.3s ease;
        }

        .calorie-target-header-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            width: 100%;
        }

        .calorie-target-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 240px;
        }

        .calorie-target-icon {
            font-size: 26px;
            color: #d97706;
            transition: color 0.3s ease;
        }

        .calorie-target-text h4 {
            margin: 0 0 3px 0;
            font-size: 15px;
            font-weight: 700;
            color: #4a3b32;
        }

        .calorie-target-text p {
            margin: 0;
            font-size: 12.5px;
            color: #7d6e63;
        }

        .calorie-target-num {
            font-size: 26px;
            font-weight: 800;
            color: #8b6d51;
            font-family: 'Open Sans', sans-serif;
            text-align: right;
            white-space: nowrap;
        }

        .calorie-target-num span {
            font-size: 13px;
            color: #9c8a7c;
            font-weight: normal;
        }

        /* 方案 A: 尊榮解鎖型 MONK 專利卡片 */
        .calorie-target-banner.monk-unlocked-card {
            background: linear-gradient(135deg, #fffdf8 0%, #fef8ee 50%, #fdf2de 100%);
            border: 2px solid #d4af37;
            box-shadow: 0 8px 26px rgba(212, 175, 55, 0.22);
            position: relative;
            overflow: hidden;
            display: block;
            padding: 22px 24px;
        }

        .calorie-target-banner.monk-unlocked-card .calorie-target-icon {
            color: #b45309;
        }

        .calorie-target-banner.monk-unlocked-card .calorie-target-text h4 {
            color: #78350f;
            font-size: 16px;
        }

        .calorie-target-banner.monk-unlocked-card .calorie-target-num {
            color: #b45309;
        }

        .unlocked-badge-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .unlocked-pill {
            background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25);
        }

        .unlocked-clinic-pill {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 20px;
        }

        .unlocked-disclaimer-pill {
            background: rgba(255, 255, 255, 0.9);
            color: #8a786b;
            border: 1px dashed #c9b19d;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 9px;
            border-radius: 20px;
        }

        .monk-disclaimer-note {
            margin-top: 14px;
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.75);
            border: 1px solid rgba(212, 175, 55, 0.35);
            border-radius: 8px;
            font-size: 11.5px;
            color: #8b6d51;
            line-height: 1.55;
            text-align: left;
        }

        .monk-disclaimer-note i {
            color: #b45309;
            margin-right: 4px;
        }

        .monk-disclaimer-note strong {
            color: #78350f;
        }

        .monk-highlights-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin: 16px 0 14px 0;
        }

        .monk-highlight-item {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(212, 175, 55, 0.35);
            border-radius: 8px;
            padding: 10px 12px;
            text-align: center;
        }

        .monk-highlight-icon {
            font-size: 16px;
            color: #b45309;
            margin-bottom: 4px;
        }

        .monk-highlight-title {
            font-size: 12.5px;
            font-weight: 700;
            color: #78350f;
            margin-bottom: 2px;
        }

        .monk-highlight-desc {
            font-size: 11px;
            color: #8b6d51;
            line-height: 1.35;
        }

        .monk-unlocked-cta-row {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .unlocked-btn-learn {
            flex: 1;
            min-width: 170px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 11px 16px;
            background: #ffffff;
            color: #78350f;
            border: 1.5px solid #d4af37;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .unlocked-btn-learn:hover {
            background: #fbf2e1;
            color: #78350f;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
        }

        .unlocked-btn-line {
            flex: 1.2;
            min-width: 210px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 16px;
            background: linear-gradient(135deg, #06c755 0%, #05a646 100%);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
            transition: all 0.25s ease;
        }

        .unlocked-btn-line:hover {
            background: linear-gradient(135deg, #05b34c 0%, #048b3b 100%);
            color: #ffffff;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
        }

        @media (max-width: 600px) {
            .monk-highlights-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .monk-unlocked-cta-row {
                flex-direction: column;
            }

            .unlocked-btn-learn,
            .unlocked-btn-line {
                width: 100%;
                min-width: unset;
            }
        }

        /* 解鎖 MONK 動態彈出效果 (Pop & Glow Animation) */
        @keyframes unlockPop {
            0% {
                transform: scale(0.97);
                box-shadow: 0 0 0 rgba(212, 175, 55, 0);
            }

            50% {
                transform: scale(1.02);
                box-shadow: 0 4px 30px rgba(212, 175, 55, 0.45);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 8px 26px rgba(212, 175, 55, 0.22);
            }
        }

        .calorie-target-banner.just-unlocked {
            animation: unlockPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        /* 溫和減脂狀態下的 MONK 引導卡片 (Teaser Bar) */
        .monk-teaser-bar {
            cursor: pointer;
            margin-top: 14px;
            padding: 10px 14px;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(253, 248, 237, 0.8) 100%);
            border: 1.5px dashed #d4af37;
            border-radius: 10px;
            font-size: 13px;
            color: #8b6d51;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            transition: all 0.25s ease;
            user-select: none;
        }

        .monk-teaser-bar:hover {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(251, 242, 225, 0.95) 100%);
            border-color: #b45309;
            transform: translateY(-2px);
            box-shadow: 0 4px 14px rgba(212, 175, 55, 0.22);
        }

        .monk-teaser-left {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            line-height: 1.4;
        }

        .monk-teaser-icon {
            color: #d97706;
            font-size: 15px;
            flex-shrink: 0;
        }

        .monk-teaser-btn {
            background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
            color: #ffffff !important;
            font-size: 11.5px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 6px;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        @media (max-width: 540px) {
            .monk-teaser-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .monk-teaser-btn {
                align-self: flex-end;
            }
        }

        /* 盧佳享醫師處方與體態診斷建議卡 */
        .dr-advice-card {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-left: 5px solid #8b6d51;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
            margin-bottom: 20px;
        }

        .dr-advice-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .dr-avatar-small {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #f4ece2;
            border: 1.5px solid #c5b098;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8b6d51;
            font-size: 20px;
            flex-shrink: 0;
        }

        .dr-advice-header-text h5 {
            margin: 0 0 2px 0;
            font-size: 15.5px;
            font-weight: 700;
            color: #4a3b32;
        }

        .dr-advice-header-text span {
            font-size: 12px;
            color: #8b6d51;
            font-weight: 600;
        }

        .dr-advice-body {
            font-size: 13.5px;
            line-height: 1.8;
            color: #55483d;
            margin-bottom: 14px;
        }

        /* 快速預約與諮詢 CTA 按鈕組 */
        .calc-cta-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .calc-cta-line {
            flex: 1 1 48%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #06c755;
            color: #ffffff !important;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13.5px;
            font-weight: 700;
            text-decoration: none !important;
            transition: all 0.2s ease;
            box-shadow: 0 3px 10px rgba(6, 199, 85, 0.25);
        }

        .calc-cta-line:hover {
            background: #05ab48;
            transform: translateY(-2px);
        }

        .calc-cta-tel {
            flex: 1 1 48%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #5c4a3e;
            color: #ffffff !important;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13.5px;
            font-weight: 700;
            text-decoration: none !important;
            transition: all 0.2s ease;
            box-shadow: 0 3px 10px rgba(92, 74, 62, 0.25);
        }

        .calc-cta-tel:hover {
            background: #493a30;
            transform: translateY(-2px);
        }

        /* ========================================================================= */
        /* 計算工具雙分頁切換器 (Tab Switcher) */
        /* ========================================================================= */
        .calc-tool-nav-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 24px;
        }

        .calc-tool-tabs {
            display: inline-flex;
            background: #f4ece4;
            padding: 6px;
            border-radius: 40px;
            border: 1.5px solid #d8c2af;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            gap: 6px;
            max-width: 100%;
            flex-wrap: wrap;
            justify-content: center;
        }

        .calc-tab-btn {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 24px;
            border-radius: 30px;
            border: none;
            background: transparent;
            color: #705c4f;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            outline: none;
        }

        .calc-tab-btn i {
            font-size: 16px;
            margin-bottom: 3px;
        }

        .tab-btn-title {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .tab-btn-sub {
            font-size: 11px;
            color: #8c786a;
            font-weight: 500;
            margin-top: 1px;
        }

        .calc-tab-btn:hover {
            color: #3b281f;
            background: rgba(255, 255, 255, 0.5);
        }

        .calc-tab-btn.active {
            background: #ffffff;
            color: #78350f;
            box-shadow: 0 4px 14px rgba(120, 53, 15, 0.15);
        }

        .calc-tab-btn.active .tab-btn-title {
            color: #78350f;
            font-weight: 800;
        }

        .calc-tab-btn.active .tab-btn-sub {
            color: #a16207;
        }

        .nih-tab-hot-badge {
            position: absolute;
            top: -9px;
            right: 12px;
            background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
            color: #ffffff;
            font-size: 9.5px;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(180, 83, 9, 0.3);
            white-space: nowrap;
        }

        /* ========================================================================= */
        /* NIH Kevin Hall 模型專屬樣式 */
        /* ========================================================================= */
        .nih-hero-banner {
            background: linear-gradient(135deg, #fffcf5 0%, #fef7ec 100%);
            border: 1.5px solid #e7d1bc;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .nih-hero-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
            color: #ffffff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
        }

        .nih-hero-text h4 {
            margin: 0 0 4px 0;
            font-size: 15.5px;
            font-weight: 800;
            color: #78350f;
        }

        .nih-hero-text p {
            margin: 0;
            font-size: 12px;
            color: #8c786a;
            line-height: 1.5;
        }

        .nih-badge-scope {
            display: inline-block;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
            font-size: 10.5px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
        }

        /* 門診體質評估轉單警示框 (Physician Warning & Conversion Card) */
        .nih-physician-warning-card {
            background: linear-gradient(135deg, #fffdfa 0%, #fff7ed 100%);
            border: 1.5px solid #e8cdb5;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 22px;
            box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
            position: relative;
            overflow: hidden;
        }

        .nih-physician-warning-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
        }

        .nih-p-warning-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #ebd9c8;
        }

        .nih-p-warning-badge {
            background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            letter-spacing: 0.3px;
        }

        .nih-p-warning-title {
            font-size: 14.5px;
            font-weight: 800;
            color: #78350f;
        }

        .nih-p-warning-lead {
            font-size: 12px;
            color: #6b5544;
            line-height: 1.6;
            margin: 0 0 12px 0;
        }

        .nih-fails-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 14px;
        }

        .nih-fail-item {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-radius: 8px;
            padding: 10px 12px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .nih-fail-num {
            width: 22px;
            height: 22px;
            background: #fef3c7;
            color: #b45309;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .nih-fail-text strong {
            display: block;
            font-size: 12px;
            color: #78350f;
            margin-bottom: 2px;
        }

        .nih-fail-text span {
            font-size: 11px;
            color: #7c695b;
            line-height: 1.45;
            display: block;
        }

        .nih-p-warning-action {
            background: #fbf5ef;
            border-radius: 8px;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .nih-action-msg {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: #6e5849;
            line-height: 1.45;
            flex: 1;
            min-width: 260px;
        }

        .nih-action-msg i {
            font-size: 20px;
            color: #b45309;
            flex-shrink: 0;
        }

        .nih-action-btns {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .nih-btn-consult-line {
            background: #06c755;
            color: #ffffff !important;
            font-size: 11.5px;
            font-weight: 700;
            padding: 8px 14px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none !important;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(6, 199, 85, 0.25);
        }

        .nih-btn-consult-line:hover {
            background: #05b04c;
            transform: translateY(-1px);
        }

        .nih-btn-consult-tel {
            background: #78350f;
            color: #ffffff !important;
            font-size: 11.5px;
            font-weight: 700;
            padding: 8px 14px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none !important;
            transition: all 0.2s ease;
        }

        .nih-btn-consult-tel:hover {
            background: #5c2707;
            transform: translateY(-1px);
        }

        /* 天數預設快速選擇 Pills */
        .nih-preset-row {
            display: flex;
            gap: 6px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .nih-preset-pill {
            background: #ffffff;
            border: 1px solid #d8c2af;
            color: #6e5849;
            font-size: 11.5px;
            font-weight: 600;
            padding: 5px 11px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .nih-preset-pill:hover {
            border-color: #b45309;
            color: #b45309;
            background: #fffcf5;
        }

        .nih-preset-pill.active {
            background: #78350f;
            border-color: #78350f;
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(120, 53, 15, 0.25);
        }

        /* 雙階段熱量科學規劃卡 */
        .nih-dual-cal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 20px;
        }

        .nih-cal-card {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 12px;
            padding: 16px 18px;
            position: relative;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .nih-cal-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
        }

        .nih-cal-card.sprint-phase {
            border-color: #d4af37;
            background: linear-gradient(135deg, #fffdf8 0%, #fdf6ea 100%);
        }

        .nih-cal-card.maint-phase {
            border-color: #cbd5e1;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        }

        .nih-cal-phase-badge {
            display: inline-block;
            font-size: 10.5px;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 12px;
            margin-bottom: 8px;
            letter-spacing: 0.3px;
        }

        .sprint-phase .nih-cal-phase-badge {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
        }

        .maint-phase .nih-cal-phase-badge {
            background: #e2e8f0;
            color: #334155;
            border: 1px solid #cbd5e1;
        }

        .nih-cal-num {
            font-size: 28px;
            font-weight: 800;
            font-family: 'Open Sans', sans-serif;
            color: #8b6d51;
            line-height: 1.1;
            margin-bottom: 4px;
        }

        .sprint-phase .nih-cal-num {
            color: #b45309;
        }

        .maint-phase .nih-cal-num {
            color: #475569;
        }

        .nih-cal-unit {
            font-size: 13px;
            font-weight: 600;
            color: #9c8a7c;
            margin-left: 4px;
        }

        .nih-cal-desc {
            font-size: 11.5px;
            color: #7d6e63;
            line-height: 1.4;
            margin: 0;
        }

        /* 停滯期與代謝適應解析卡 */
        .nih-plateau-box {
            background: #fffdfa;
            border: 1px solid #ebd9c8;
            border-left: 4px solid #d97706;
            border-radius: 10px;
            padding: 14px 18px;
            margin-bottom: 20px;
        }

        .nih-plateau-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .nih-plateau-title {
            font-size: 13.5px;
            font-weight: 700;
            color: #78350f;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nih-plateau-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .nih-p-stat-item {
            background: #ffffff;
            border: 1px solid #f0e3d5;
            border-radius: 8px;
            padding: 8px 10px;
            text-align: center;
        }

        .nih-p-stat-label {
            font-size: 11px;
            color: #8a786b;
            margin-bottom: 2px;
        }

        .nih-p-stat-val {
            font-size: 14px;
            font-weight: 800;
            color: #92400e;
        }

        /* Canvas 圖表展示容器 */
        .nih-chart-wrap {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 12px;
            padding: 18px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
        }

        .nih-chart-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .nih-chart-title {
            font-size: 14.5px;
            font-weight: 700;
            color: #4a3b32;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nih-chart-legend {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 11.5px;
            flex-wrap: wrap;
        }

        .nih-legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #6e5c50;
        }

        .nih-legend-line {
            width: 18px;
            height: 3px;
            border-radius: 2px;
            display: inline-block;
        }

        .nih-canvas-container {
            width: 100%;
            height: 260px;
            position: relative;
        }

        #nih-chart-canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* 臨床突破停滯期對策卡 */
        .nih-breakthrough-card {
            background: linear-gradient(135deg, #fffcf5 0%, #fef5e7 100%);
            border: 2px solid #d4af37;
            border-radius: 12px;
            padding: 20px 22px;
            margin-bottom: 20px;
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.18);
        }

        .nih-breakthrough-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .nih-breakthrough-header h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 800;
            color: #78350f;
        }

        .nih-breakthrough-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin: 14px 0;
        }

        .nih-breakthrough-item {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(212, 175, 55, 0.4);
            border-radius: 8px;
            padding: 10px 12px;
            text-align: center;
        }

        .nih-breakthrough-item h5 {
            margin: 0 0 3px 0;
            font-size: 12.5px;
            font-weight: 700;
            color: #78350f;
        }

        .nih-breakthrough-item p {
            margin: 0;
            font-size: 11px;
            color: #8b6d51;
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .nih-dual-cal-grid {
                grid-template-columns: 1fr;
            }

            .nih-plateau-stats {
                grid-template-columns: 1fr;
            }

            .nih-breakthrough-grid {
                grid-template-columns: 1fr;
            }

            .nih-fails-grid {
                grid-template-columns: 1fr;
            }

            .nih-p-warning-action {
                flex-direction: column;
                align-items: stretch;
            }

            .nih-action-btns {
                flex-direction: column;
            }

            .nih-btn-consult-line,
            .nih-btn-consult-tel {
                justify-content: center;
                width: 100%;
            }

            .calc-tool-tabs {
                width: 100%;
                border-radius: 20px;
            }

            .calc-tab-btn {
                width: 100%;
            }
        }

        /* ========================================================================= */
        /* AACE / EASO 肥胖症臨床階梯決策樹專屬樣式 */
        /* ========================================================================= */
        .aace-hero-banner {
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #fefce8 100%);
            border: 1.5px solid #a7f3d0;
            border-radius: 12px;
            padding: 18px 22px;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
        }

        .aace-hero-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: #ffffff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
        }

        .aace-hero-text h4 {
            margin: 0 0 5px 0;
            font-size: 16px;
            font-weight: 800;
            color: #065f46;
        }

        .aace-hero-text p {
            margin: 0;
            font-size: 12.5px;
            color: #047857;
            line-height: 1.55;
        }

        .aace-badge-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
            flex-wrap: wrap;
        }

        .aace-badge-pill {
            display: inline-block;
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #6ee7b7;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
        }

        .aace-badge-disclaimer {
            display: inline-block;
            background: rgba(255, 255, 255, 0.9);
            color: #8a786b;
            border: 1px dashed #cbd5e1;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 12px;
        }

        /* 雙向同步資訊列 */
        .aace-sync-bar {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 10px;
            padding: 12px 18px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .aace-sync-info {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #6e5849;
        }

        .aace-sync-info i {
            color: #059669;
            font-size: 16px;
        }

        .aace-sync-inputs {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .aace-quick-input-group {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12.5px;
            color: #4a3b32;
            font-weight: 600;
        }

        .aace-quick-input {
            width: 70px;
            padding: 5px 8px;
            border: 1px solid #d8c2af;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 700;
            color: #3e3228;
            text-align: center;
            background: #fdfbf9;
            transition: all 0.2s ease;
        }

        .aace-quick-input:focus {
            outline: none;
            border-color: #059669;
            background: #ffffff;
            box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
        }

        /* 臨床共病篩選群組 */
        .aace-comorbidity-card {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 12px;
            padding: 20px 22px;
            margin-bottom: 20px;
        }

        .aace-section-head {
            margin-bottom: 14px;
        }

        .aace-section-head h4 {
            margin: 0 0 4px 0;
            font-size: 15.5px;
            font-weight: 800;
            color: #3e3228;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .aace-section-head p {
            margin: 0;
            font-size: 12px;
            color: #7d6e63;
        }

        .aace-comorbid-category {
            margin-bottom: 14px;
        }

        .aace-cat-label {
            font-size: 12px;
            font-weight: 700;
            color: #065f46;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .aace-cat-label i {
            color: #10b981;
        }

        .aace-pills-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .aace-pill {
            background: #f9f6f2;
            border: 1.5px solid #ebd9c8;
            color: #5c4b3f;
            font-size: 12px;
            font-weight: 600;
            padding: 7px 12px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            user-select: none;
        }

        .aace-pill:hover {
            border-color: #059669;
            color: #065f46;
            background: #ecfdf5;
            transform: translateY(-1px);
        }

        .aace-pill.active {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            border-color: #047857;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
        }

        .aace-pill.active i {
            color: #a7f3d0;
        }

        .aace-pill.pill-none {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #475569;
        }

        .aace-pill.pill-none.active {
            background: linear-gradient(135deg, #475569 0%, #334155 100%);
            border-color: #334155;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
        }

        .aace-pill-severe {
            position: relative;
        }

        .aace-pill-severe::after {
            content: '顯著';
            font-size: 9px;
            font-weight: 800;
            background: #fee2e2;
            color: #dc2626;
            padding: 1px 4px;
            border-radius: 4px;
            margin-left: 2px;
        }

        .aace-pill.active.aace-pill-severe::after {
            background: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }

        /* 診斷結果區 (右欄) */
        .aace-stage-summary-card {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 12px;
            padding: 22px;
            margin-bottom: 22px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
            position: relative;
            overflow: hidden;
        }

        .aace-stage-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px dashed #ebd9c8;
        }

        .aace-stage-title-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .aace-stage-title-wrap h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 800;
            color: #3e3228;
        }

        .aace-stage-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 24px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        .aace-stage-badge.stage-0 {
            background: #d1fae5;
            color: #065f46;
            border: 1.5px solid #6ee7b7;
        }

        .aace-stage-badge.stage-1 {
            background: #fef3c7;
            color: #92400e;
            border: 1.5px solid #fcd34d;
        }

        .aace-stage-badge.stage-2 {
            background: #fee2e2;
            color: #991b1b;
            border: 1.5px solid #fca5a5;
        }

        .aace-metric-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .aace-metric-box {
            background: #faf7f2;
            border: 1px solid #ebd9c8;
            border-radius: 8px;
            padding: 10px 12px;
            text-align: center;
        }

        .aace-metric-label {
            font-size: 11px;
            color: #8c786a;
            margin-bottom: 2px;
        }

        .aace-metric-val {
            font-size: 18px;
            font-weight: 800;
            color: #3e3228;
            font-family: 'Open Sans', sans-serif;
        }

        .aace-diagnosis-text {
            font-size: 13.5px;
            line-height: 1.75;
            color: #55483d;
            background: #fffcf8;
            border-left: 4px solid #059669;
            padding: 12px 14px;
            border-radius: 0 8px 8px 0;
            margin-bottom: 8px;
        }

        /* 階梯治療決策樹容器 */
        .aace-stepped-tree {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 22px;
        }

        .aace-step-card {
            background: #ffffff;
            border: 1.5px solid #ebd9c8;
            border-radius: 12px;
            padding: 18px 20px;
            position: relative;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            opacity: 0.75;
        }

        .aace-step-card:hover {
            opacity: 0.95;
            transform: translateY(-2px);
        }

        .aace-step-card.highlighted {
            opacity: 1;
            border-color: #059669;
            background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 8px 24px rgba(5, 150, 105, 0.18);
            transform: translateY(-2px);
            animation: aacePulseGlow 3s infinite ease-in-out;
        }

        @keyframes aacePulseGlow {

            0%,
            100% {
                box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 8px 24px rgba(5, 150, 105, 0.18);
            }

            50% {
                box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.55), 0 12px 30px rgba(5, 150, 105, 0.28);
            }
        }

        .aace-step-tag-match {
            position: absolute;
            top: -10px;
            right: 18px;
            background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 12px;
            border-radius: 14px;
            box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
            display: none;
            letter-spacing: 0.5px;
        }

        .aace-step-card.highlighted .aace-step-tag-match {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .aace-step-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .aace-step-level {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .aace-step-num {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #e2e8f0;
            color: #475569;
            font-size: 14px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .aace-step-card.highlighted .aace-step-num {
            background: #059669;
            color: #ffffff;
        }

        .aace-step-name {
            font-size: 15px;
            font-weight: 800;
            color: #3e3228;
            margin: 0;
        }

        .aace-step-target-pill {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #cbd5e1;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .aace-step-card.highlighted .aace-step-target-pill {
            background: #d1fae5;
            color: #065f46;
            border-color: #6ee7b7;
        }

        .aace-step-desc {
            font-size: 12.5px;
            color: #5c4b3f;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        /* 處方霧面玻璃遮擋與解鎖層 (Frosted Glass Lock Overlay) */
        .aace-rx-lock-container {
            position: relative;
            margin-top: 12px;
            border-top: 1px dashed #ebd9c8;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(254, 252, 248, 0.7);
        }

        .aace-step-services {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            padding: 8px 10px;
        }

        .aace-services-blurred {
            filter: blur(4px);
            -webkit-filter: blur(4px);
            opacity: 0.4;
            user-select: none;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .aace-rx-title-label {
            font-size: 11.5px;
            font-weight: 700;
            color: #78350f;
        }

        .aace-rx-frosted-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 14px;
            gap: 12px;
            z-index: 5;
            border: 1px solid rgba(212, 175, 55, 0.45);
            border-radius: 8px;
            box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.6);
            transition: all 0.25s ease;
        }

        .aace-rx-frosted-overlay:hover {
            background: rgba(255, 255, 255, 0.75);
            border-color: rgba(6, 199, 85, 0.5);
        }

        .aace-rx-lock-badge {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
            font-weight: 700;
            color: #78350f;
        }

        .aace-rx-lock-badge i {
            color: #b45309;
            font-size: 14px;
        }

        .aace-rx-unlock-btn {
            background: linear-gradient(135deg, #06c755 0%, #059669 100%);
            color: #ffffff !important;
            font-size: 12px;
            font-weight: 800;
            padding: 7px 15px;
            border-radius: 20px;
            text-decoration: none !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 2px 8px rgba(6, 199, 85, 0.35);
            transition: all 0.25s ease;
            white-space: nowrap;
            letter-spacing: 0.3px;
        }

        .aace-rx-unlock-btn:hover {
            background: linear-gradient(135deg, #05b04c 0%, #047857 100%);
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 4px 14px rgba(6, 199, 85, 0.5);
            color: #ffffff !important;
        }

        .aace-rx-unlock-btn i {
            font-size: 13px;
        }

        .aace-service-tag {
            font-size: 11px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 6px;
            text-decoration: none !important;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .aace-service-tag.tag-monk {
            background: #fff7ed;
            color: #c2410c;
            border: 1px solid #fdba74;
        }

        .aace-service-tag.tag-mounjaro {
            background: #eff6ff;
            color: #1d4ed8;
            border: 1px solid #93c5fd;
        }

        .aace-service-tag.tag-ozempic {
            background: #fdf2f8;
            color: #be185d;
            border: 1px solid #fbcfe8;
        }

        .aace-service-tag.tag-iv {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #86efac;
        }

        .aace-service-tag:hover {
            transform: translateY(-1px);
            filter: brightness(0.95);
        }

        /* 門診處方整合建議卡 */
        .aace-clinic-bridge-card {
            background: linear-gradient(135deg, #fffdfa 0%, #fbf5ee 100%);
            border: 1.5px solid #d4af37;
            border-radius: 12px;
            padding: 20px 22px;
            margin-bottom: 20px;
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
        }

        .aace-clinic-bridge-head {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .aace-bridge-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #78350f;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .aace-bridge-head-text h5 {
            margin: 0 0 2px 0;
            font-size: 15.5px;
            font-weight: 800;
            color: #78350f;
        }

        .aace-bridge-head-text span {
            font-size: 12px;
            color: #8b6d51;
            font-weight: 600;
        }

        .aace-bridge-body {
            font-size: 13px;
            line-height: 1.75;
            color: #55483d;
            margin-bottom: 14px;
        }

        /* 響應式調整 */
        @media (max-width: 768px) {
            .aace-hero-banner {
                flex-direction: column;
                align-items: flex-start;
                padding: 16px;
                gap: 12px;
            }

            .aace-sync-bar {
                flex-direction: column;
                align-items: flex-start;
            }

            .aace-sync-inputs {
                width: 100%;
                justify-content: space-between;
            }

            .aace-metric-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .aace-step-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .aace-rx-lock-container {
                min-height: 88px;
            }

            .aace-rx-frosted-overlay {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 10px 12px;
                gap: 7px;
                text-align: center;
            }

            .aace-rx-lock-badge {
                font-size: 11.5px;
                justify-content: center;
                white-space: normal;
                line-height: 1.35;
            }

            .aace-rx-unlock-btn {
                width: 100%;
                max-width: 270px;
                justify-content: center;
                font-size: 11.5px;
                padding: 6px 12px;
            }
        }

        /* 衛教文章與知識庫區塊 */
        .calc-edu-section {
            padding: 40px 0 60px 0;
        }

        .calc-edu-card {
            background: #ffffff;
            border: 1px solid #ebd9c8;
            border-radius: 14px;
            padding: 26px 28px;
            margin-bottom: 24px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
        }

        .calc-edu-card h3 {
            font-size: 20px;
            font-weight: 700;
            color: #4a3b32;
            margin: 0 0 14px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .calc-edu-card h3 i {
            color: #8b6d51;
            font-size: 18px;
        }

        .calc-edu-card p {
            font-size: 14.5px;
            line-height: 1.85;
            color: #6a5a4e;
            margin-bottom: 14px;
        }

        .calc-edu-card p:last-child {
            margin-bottom: 0;
        }

        /* 衛教 FAQ 手風琴 */
        .calc-faq-item {
            border: 1px solid #ebd9c8;
            border-radius: 10px;
            margin-bottom: 12px;
            background: #ffffff;
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .calc-faq-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            background: #ffffff;
            user-select: none;
            transition: background 0.2s ease;
        }

        .calc-faq-header:hover {
            background: #fdfaf7;
        }

        .calc-faq-title {
            font-size: 15.5px;
            font-weight: 700;
            color: #4a3b32;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .calc-faq-title i {
            color: #8b6d51;
            font-size: 16px;
        }

        .calc-faq-arrow {
            font-size: 12px;
            color: #9c8a7c;
            transition: transform 0.3s ease;
        }

        .calc-faq-body {
            max-height: 0;
            overflow: hidden;
            background: #faf7f2;
            padding: 0 20px;
            transition: max-height 0.35s ease, padding 0.35s ease;
        }

        .calc-faq-item.active .calc-faq-arrow {
            transform: rotate(180deg);
            color: #8b6d51;
        }

        .calc-faq-item.active .calc-faq-body {
            max-height: 300px;
            padding: 16px 20px;
            border-top: 1px solid #ebd9c8;
        }

        .calc-faq-body p {
            margin: 0;
            font-size: 14px;
            line-height: 1.8;
            color: #55483d;
        }

        /* ==========================================================
           Footer Styles (Exact Match with weight.html / index.html)
           ========================================================== */
        .footer-luxury-section {
            background: #1a120b;
            color: #c4b8ad;
            position: relative;
            z-index: 10;
        }

        .footer-top-strip {
            border-bottom: 1px solid rgba(223, 190, 122, 0.18);
            padding: 28px 0;
            background: rgba(0, 0, 0, 0.15);
        }

        .footer-brand-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-brand-logo {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none !important;
        }

        .footer-brand-logo img {
            width: 38px;
            height: 38px;
            object-fit: contain;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
        }

        .footer-clinic-name {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.8px;
        }

        .footer-clinic-slogan {
            margin: 2px 0 0 0;
            font-size: 13px;
            color: #dfbe7a;
            letter-spacing: 0.3px;
        }

        .footer-trust-badges {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .footer-trust-badge {
            background: rgba(223, 190, 122, 0.08);
            border: 1px solid rgba(223, 190, 122, 0.25);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 12.5px;
            color: #ebd8c8;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.25s ease;
        }

        .footer-trust-badge i {
            color: #dfbe7a;
            font-size: 13px;
        }

        .footer-trust-badge:hover {
            background: rgba(223, 190, 122, 0.18);
            border-color: #dfbe7a;
            color: #ffffff;
            transform: translateY(-2px);
        }

        .footer-main-content {
            padding: 48px 0 36px 0;
        }

        .footer-sitemap-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 28px;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
        }

        .footer-col-title {
            color: #dfbe7a;
            font-size: 16px;
            font-weight: 700;
            margin: 0 0 16px 0;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(223, 190, 122, 0.25);
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.5px;
        }

        .footer-col-title i {
            font-size: 15px;
            color: #c5b098;
        }

        .footer-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-nav-link {
            color: #c4b8ad !important;
            font-size: 13.5px;
            line-height: 1.5;
            text-decoration: none !important;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            transition: all 0.22s ease;
            position: relative;
        }

        .footer-nav-link i {
            color: #8b6d51;
            font-size: 12px;
            transition: transform 0.22s ease, color 0.22s ease;
        }

        .footer-nav-link:hover {
            color: #ffffff !important;
            transform: translateX(4px);
        }

        .footer-nav-link:hover i {
            color: #dfbe7a;
            transform: translateX(2px);
        }

        .footer-badge-gold {
            background: linear-gradient(135deg, #dfbe7a 0%, #a88247 100%);
            color: #1a120b !important;
            font-size: 10px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 4px;
            letter-spacing: 0.5px;
        }

        .footer-badge-monk {
            background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
            color: #ffffff !important;
            font-size: 10px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 4px;
        }

        .footer-badge-hot {
            background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
            color: #ffffff !important;
            font-size: 10px;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 4px;
        }

        .footer-contact-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 16px;
            font-size: 13px;
        }

        .footer-info-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            line-height: 1.5;
            color: #c4b8ad;
        }

        .footer-info-item i {
            color: #dfbe7a;
            font-size: 14px;
            margin-top: 3px;
            flex-shrink: 0;
            width: 14px;
            text-align: center;
        }

        .footer-info-item a {
            color: #ebd8c8 !important;
            text-decoration: underline !important;
            transition: color 0.2s ease;
        }

        .footer-info-item a:hover {
            color: #ffffff !important;
        }

        .footer-qr-card {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(223, 190, 122, 0.3);
            border-radius: 10px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .footer-qr-card img {
            width: 54px;
            height: 54px;
            object-fit: contain;
            background: #ffffff;
            padding: 3px;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .footer-qr-text strong {
            display: block;
            color: #06c755;
            font-size: 13px;
            margin-bottom: 2px;
        }

        .footer-qr-text span {
            display: block;
            color: #a89d94;
            font-size: 11.5px;
            line-height: 1.35;
        }

        .footer-qr-card:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: #dfbe7a;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(223, 190, 122, 0.2);
        }

        .footer-medical-disclaimer {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(223, 190, 122, 0.18);
            border-radius: 10px;
            padding: 18px 22px;
            margin-top: 36px;
        }

        .footer-disclaimer-title {
            color: #dfbe7a;
            font-size: 13.5px;
            font-weight: 700;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .footer-medical-disclaimer p {
            margin: 0;
            font-size: 12.5px;
            line-height: 1.8;
            color: #9f9389;
        }

        .footer-bottom-bar {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 20px 0 24px 0;
            background: #150f0b;
        }

        .footer-bottom-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 14px;
        }

        .footer-copyright p {
            margin: 0;
            font-size: 12.5px;
            color: #8c8077;
        }

        .footer-bottom-links {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .footer-bottom-links a {
            color: #a89d94 !important;
            font-size: 12.5px;
            text-decoration: none !important;
            transition: color 0.2s ease;
        }

        .footer-bottom-links a:hover {
            color: #dfbe7a !important;
        }

        .footer-bottom-links span {
            color: #554a42;
            font-size: 11px;
        }

        @media (max-width: 1199px) {
            .footer-sitemap-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
            }
        }

        @media (max-width: 767px) {
            .footer-sitemap-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .footer-brand-wrap {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        /* ==========================================================
           Page Title Banner (手機版 & 響應式高度與字體尺寸優化)
           ========================================================== */
        .page-title {
            position: relative;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            text-align: center;
        }

        .page-title h1 {
            color: #ffffff;
            margin: 0;
            padding: 0;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .page-title-icon {
            width: 32px;
            height: auto;
            margin-bottom: 8px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .page-title-en {
            display: block;
            font-family: 'Open Sans', 'Montserrat', sans-serif;
            font-size: 26px;
            font-weight: 700;
            letter-spacing: 2px;
            line-height: 1.25;
            text-transform: uppercase;
        }

        .page-title-zh {
            display: block;
            font-size: 20px;
            font-weight: 600;
            letter-spacing: 2.5px;
            line-height: 1.35;
            margin-top: 5px;
            color: rgba(255, 255, 255, 0.96);
        }

        /* 平板與手機版尺寸微調（解決舊版 padding-top: 240px 造成高度過高且字體過大的問題） */
        @media only screen and (max-width: 999px) {
            .page-title {
                padding: 36px 15px 30px 15px !important;
                min-height: auto !important;
            }

            .page-title-icon {
                width: 26px !important;
                margin-bottom: 6px !important;
            }

            .page-title-en {
                font-size: 19px !important;
                letter-spacing: 1.2px !important;
                line-height: 1.3 !important;
            }

            .page-title-zh {
                font-size: 17px !important;
                letter-spacing: 1.8px !important;
                margin-top: 4px !important;
            }
        }

        @media only screen and (max-width: 480px) {
            .page-title {
                padding: 24px 12px 22px 12px !important;
            }

            .page-title-icon {
                width: 22px !important;
                margin-bottom: 4px !important;
            }

            .page-title-en {
                font-size: 16.5px !important;
                letter-spacing: 1px !important;
                line-height: 1.25 !important;
            }

            .page-title-zh {
                font-size: 15px !important;
                letter-spacing: 1.2px !important;
                margin-top: 3px !important;
            }

            #calculator-section {
                padding: 24px 0 20px 0 !important;
            }

            .calc-header-intro {
                margin-bottom: 20px !important;
            }

            .calc-header-intro h2 {
                font-size: 20px !important;
            }
        }