

        .bmi-container {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
            align-items: center;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            /* 防止内部元素溢出 */
            box-sizing: border-box;
        }

        /* 计算公式展示区 */
        .formula-section {
            width: 100%;
            padding: 1.5rem;
            background-color: #f8fafc;
            border-radius: 10px;
            border: 1px solid #e0e6ed;
            margin-bottom: 1rem;
        }

        .formula-title {
            font-size: 1.1rem;
            font-weight: 500;
            color: #333;
            margin-bottom: 0.8rem;
        }

        .formula-content {
            font-size: 1rem;
            color: #666;
            line-height: 1.8;
        }

        .formula-content span {
            color: #3498db;
            font-weight: 500;
        }

        /* 输入项样式 - 优化输入模式 */
        .input-group {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .input-item {
            width: 100%;
        }

        .input-item label {
            display: block;
            margin-bottom: 0.8rem;
            font-size: 1rem;
            color: #333;
            font-weight: 500;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            /* 确保输入框不超出容器 */
            width: 100%;
            box-sizing: border-box;
        }

        .input-wrapper input {
            flex: 1;
            padding: 0.9rem 1.2rem;
            padding-right: 4rem;
            border: 2px solid #e0e6ed;
            border-radius: 10px;
            font-size: 1rem;
            outline: none;
            background-color: #fff;
            color: #333;
            transition: all 0.2s ease;
            /* 优化输入体验：自动获取焦点+输入限制 */
            caret-color: #3498db;
            width: 100%;
            box-sizing: border-box;
        }

        .input-wrapper input:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
            background-color: #fff;
        }

        .input-wrapper input::placeholder {
            color: #94a3b8;
            font-size: 0.95rem;
        }

        .input-wrapper .unit {
            position: absolute;
            right: 1.2rem;
            color: #666;
            font-size: 0.95rem;
            pointer-events: none;
        }

        /* 按钮组样式 */
        .btn-group {
            display: flex;
            gap: 1.2rem;
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .action-btn {
            padding: 0.9rem 2.2rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.25s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
            flex: 1;
            min-width: 120px;
        }

        #calculateBtn {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: white;
        }

        #calculateBtn:hover {
            background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        }

        #calculateBtn:active {
            transform: translateY(0);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }

        #resetBtn {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
        }

        #resetBtn:hover {
            background: linear-gradient(135deg, #c0392b 0%, #a52e20 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        }

        #resetBtn:active {
            transform: translateY(0);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }

        /* 结果展示区域 - 固定高度防止撑开 */
        .result-area {
            width: 100% !important;
            max-width: 524px !important;
            padding: 2rem;
            border-radius: 12px;
            background-color: #f8fafc;
            border: 2px solid #e0e6ed;
            text-align: center;
            display: none;
            /* 关键修复：固定最小/最大高度 */
            min-height: 180px;
            max-height: 600px;
        }

        @media (min-width: 1920px) {
            .result-area {
                max-width: 878px !important;
            }

        }

        .result-area.show {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .bmi-value {
            font-size: 2.5rem;
            font-weight: bold;
            color: #3498db;
            margin-bottom: 1rem;
        }

        .bmi-status {
            font-size: 1.2rem;
            color: #333;
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        .bmi-desc {
            font-size: 1rem;
            color: #666;
            line-height: 1.8;
            max-width: 100%;
            white-space: normal;
            word-break: break-all;
        }

        /* BMI参考标准 - 优化表格防止撑开 */
        .bmi-standard {
            width: 100%;
            margin-top: 1rem;
            padding: 1.5rem;
            border-radius: 10px;
            background-color: #f0f8fb;
            border: 1px solid #e0e6ed;
            /* 关键修复：overflow控制 */
            overflow-x: auto;
            max-width: 100%;
            box-sizing: border-box;
        }

        .bmi-standard h3 {
            font-size: 1.1rem;
            color: #333;
            margin-bottom: 1rem;
            text-align: center;
        }

        .standard-table {
            /*
            width: 100%;
            */
            border-collapse: collapse;
            /* 固定表格布局防止列宽异常 */
            table-layout: fixed;
        }

        .standard-table th,
        .standard-table td {
            padding: 0.8rem;
            text-align: center;
            border: 1px solid #e0e6ed;
            /* 固定列宽 */
            width: 33.33%;
            word-wrap: break-word;
        }

        .standard-table th {
            background-color: #e8f4f8;
            color: #333;
            font-weight: 500;
        }

        .standard-table td {
            color: #666;
        }

        /* BMI计算器专属移动端适配 */
        @media (max-width: 768px) {

            .btn-group {
                flex-direction: column;
                gap: 1rem;
            }

            .action-btn {
                width: 100%;
                padding: 0.8rem 1rem;
            }

            .result-area {
                padding: 1.5rem 1rem;
                min-height: 160px;
            }

            .bmi-value {
                font-size: 2rem;
            }

            .bmi-standard {
                padding: 1rem;
                overflow-x: auto;
            }

            .standard-table th,
            .standard-table td {
                padding: 0.6rem 0.4rem;
                font-size: 0.9rem;
            }

            .formula-section {
                padding: 1rem;
            }

            .formula-content {
                font-size: 0.95rem;
            }
        }
