.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.menu-overlay.active {
    display: flex;
}

body.menu-open {
    overflow: hidden;
}

.menu-box {
    width: calc(100% - 12rem);
    max-width: 72rem;
    margin: 0 auto;
    background: #151515;
    border-radius: 2.4rem;
    padding: 3rem;
    position: relative;
    margin-top: -6rem;
}

.menu-title {
    margin-top: 10rem;
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

.menu-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-auto-rows: 10rem;
    gap: 1.2rem;
}

.menu-card {
    border-radius: 1.6rem;
    border: 1.5px solid rgba(255, 102, 0, 0.45);
    background: rgba(12, 12, 12, 0.9);
    padding: 1.8rem 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.menu-card--primary {
    grid-row: span 2;
    min-height: calc(20rem + 1.2rem);
}

.menu-card-title {
    color: #FF6600;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-align: left;
    align-self: flex-start;
}

.menu-card-icon {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
    align-self: flex-end; /* 右下角对齐 */
}

.menu-close-button {
    position: absolute;
    top: 3rem;
    right: 2.8rem;
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
}

.menu-bottom-section {
    margin-top: 3rem;
    width: 100%;
}

.menu-back-home-button {
    width: 100%;
    height: 6rem;
    background: #ff012b;
    border: none;
    border-radius: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Light', Arial, sans-serif;
    margin-top: 20rem;
}



.menu-back-home-icon {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    object-fit: contain;
}

.menu-back-home-text {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

.menu-device-id {
    margin-top: 6rem;
    width: 100%;
    display: flex; 
    align-items: center;
    gap: 0.8rem;
    
    justify-content: flex-start;
}

.menu-device-id-label {
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.menu-device-id-value {
    color: #FF6600;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.menu-device-id-value:hover {
    opacity: 0.8;
}



/* 退出确认弹窗 */
.exit-confirm-overlay {
    z-index: 10000;
}

.exit-confirm-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
   
}

.exit-confirm-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.4) 100%);
}

.exit-confirm-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}



/* 退出确认弹窗标题：图标和文字水平排列并上下居中 */
.exit-confirm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* 图标与文字间距 */
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.exit-confirm-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;          /* 去掉内联元素基线影响 */
}


.exit-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.exit-confirm-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}



.exit-confirm-cancel {
    background: #000000;
    color: #ffffff;
}

.exit-confirm-confirm {
    background: #ff6600;
    color: #000000;
}

/* 退出确认弹窗：图标与文字左右排列 */
.exit-confirm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.exit-confirm-icon {
    width: 1.5em;
    height: 1.5em;
    object-fit: contain;
    flex-shrink: 0;
}

/* 中断测试确认弹窗 */
.abort-test-overlay {
    z-index: 10000;
}

.abort-test-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
   
}

.abort-test-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.4) 100%);
}

.abort-test-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}



/* 中断测试确认弹窗标题：图标和文字水平排列并上下居中 */
.abort-test-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* 图标与文字间距 */
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.abort-test-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;          /* 去掉内联元素基线影响 */
}


.abort-test-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.abort-test-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}



.abort-test-cancel {
    background: #000000;
    color: #ffffff;
}

.abort-test-confirm {
    background: #ff6600;
    color: #000000;
}

/* 中断测试确认弹窗：图标与文字左右排列 */
.abort-test-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.abort-test-icon {
    width: 1.5em;
    height: 1.5em;
    object-fit: contain;
    flex-shrink: 0;
}

/* 查看报告确认弹窗 */
.view-report-confirm-overlay {
    z-index: 10000;
}

.view-report-confirm-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.view-report-confirm-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.4) 100%);
}

.view-report-confirm-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* 查看报告确认弹窗标题：图标和文字水平排列并上下居中 */
.view-report-confirm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.view-report-confirm-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.view-report-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.view-report-confirm-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.view-report-confirm-cancel {
    background: #000000;
    color: #ffffff;
}

.view-report-confirm-confirm {
    background: #ff6600;
    color: #000000;
}

/* 是否重测确认弹窗 */
.retest-confirm-overlay {
    z-index: 10000;
}

.retest-confirm-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.retest-confirm-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.4) 100%);
}

.retest-confirm-body {
    padding: 2rem 2.4rem 2.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 是否重测确认弹窗标题：图标和文字水平排列并上下居中 */
.retest-confirm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.retest-confirm-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* 测试说明内容区域 */
.retest-confirm-content {
    text-align: left;
    margin: 1rem 0;
    min-height: 20rem;
    height: 30rem;
    display: flex;
    flex-direction: column;
}

.retest-confirm-test-title {
    color: #ff6600;
    font-size: 2.2rem;
    font-family: 'HarmonyOS Sans SC_Bold', Arial, sans-serif;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.retest-confirm-test-title .step-subtitle-small {
    font-size: 1.5rem;
    color: #5d2500;
    font-weight: normal;
}

.retest-confirm-test-content {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.retest-confirm-test-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.retest-confirm-test-subtitle {
    color: #ff6600;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Regular', Arial, sans-serif;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.retest-confirm-test-instructions {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1.5rem;
    color: #ffffff;
    font-size: 1.4rem;
    font-family: 'HarmonyOS Sans SC_Regular', Arial, sans-serif;
    line-height: 1.4;
    list-style-type: circle;
    flex: 1;
    overflow-y: auto;
}

.retest-confirm-test-instructions li {
    margin-bottom: 0.6rem;
    position: relative;
}

.retest-confirm-test-instructions li::marker {
    color: #ff6600;
}

.retest-confirm-test-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1b1b1b;
    padding: 0 1rem;
    width: 18rem;
    height: 20rem;
    min-height: 16rem;
}

.retest-confirm-test-image img {
    width: 100%;
    height: 100%;
    max-height: 16rem;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.retest-confirm-test-image img.loaded {
    opacity: 1;
}

.retest-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 1.2rem;
}

.retest-confirm-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.retest-confirm-cancel {
    background: #000000;
    color: #ffffff;
}

.retest-confirm-confirm {
    background: #ff6600;
    color: #000000;
}

/* Test Report 弹窗 */
.report-overlay {
    z-index: 10002;
}

.report-modal {
    width: calc(100% - 12rem);
    background: #151515;
    border-radius: 2.4rem;
    padding: 3rem ;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-height: 87.9rem;
    margin-top: -5.7rem;
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.report-header-button {
    height: 4rem;
   
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.6rem 1.6rem;
}

.report-header-button.report-back {
    width: 8rem;
    border: 1px solid rgba(255, 102, 0, 0.4);
    background-color: transparent;
    background-image: url('../icon/back.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% 50%;
    border-radius: 0.5rem;
}

.report-header-button.report-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    margin-right: -0.2rem;
}



.report-modal-title {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-align: left;
}

.report-modal-title span {
    color: rgba(255, 255, 255, 0.65);
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-card {
    display: flex;
    background: rgba(12, 12, 12, 0.95);
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.report-card-body {
    flex: 1;
    padding: 1.6rem 2rem;
}

.report-card-title {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin-bottom: 3rem;
}

.report-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

.report-card--available {
    border-color: #00b58c;
    height: 10rem;
}

.report-card--available .report-card-status,
.report-card--available .report-card-date {
    color: #00b58c;
}

.report-card--disabled {
    border-color: #606060;
   
    height: 10rem;
}

.report-card-action {
    width: 5rem;
    border: none;
    background: #00b58c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.report-card--disabled .report-card-action {
    background: #555555;
}

.report-card-action span {
    width: 24px;
    height: 24px;
    background-image: url('../icon/arrow3.png');
    background-repeat:no-repeat;
    background-position: center;
    background-size: contain;  
}



/* 体重测试失败 生物点阻抗测试失败弹窗 */
.weight-retest-overlay,
.bioimpedance-retest-overlay {
    z-index: 10000;
}

.weight-retest-modal,
.bioimpedance-retest-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.weight-retest-status-bar,
.bioimpedance-retest-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,1,43,0) 0%, rgba(255,1,43,0.4) 100%);;
}

.weight-retest-body,
.bioimpedance-retest-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.weight-retest-title,
.bioimpedance-retest-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.weight-retest-icon,
.bioimpedance-retest-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.weight-retest-actions,
.bioimpedance-retest-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.weight-retest-button,
.bioimpedance-retest-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.weight-retest-cancel,
.bioimpedance-retest-cancel {
    background: #000000;
    color: #ffffff;
}

.weight-retest-confirm,
.bioimpedance-retest-confirm {
    background: #FF012B ;
    color: #000000;
}

/* 系统设置弹窗 */
.system-settings-overlay {
    z-index: 10002;
}

.system-settings-modal {
    width: calc(100% - 12rem);
    background: #151515;
    border-radius: 2.4rem;
    padding: 3rem ;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-height: 87.9rem;
    margin-top: -5.7rem;
}

.system-settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.system-settings-header-button {
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.6rem 1.6rem;
}

.system-settings-header-button.system-settings-back {
    width: 8rem;
    border: 1px solid rgba(255, 102, 0, 0.4);
    background-color: transparent;
    background-image: url('../icon/back.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% 50%;
    border-radius: 0.5rem;
}

.system-settings-header-button.system-settings-close {
    width: 4rem;
    height: 4rem;
    border: none;
    background-color: transparent;
    background-image: url('../icon/close.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    margin-right: -0.2rem;
}

.system-settings-modal-title {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-align: left;
}

.system-settings-modal-title span {
    color: rgba(255, 255, 255, 0.65);
}

.system-settings-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.system-settings-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.system-settings-section-title {
    color: #FF6600;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

/* 音量控制 */
.system-settings-volume-control {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-left: 2.4rem;
    margin-right: 4rem;
}

.system-settings-volume-icon {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* 自定义滑块容器 */
.system-settings-volume-slider-container {
    flex: 1;
    position: relative;
    height: 0.6rem;
    cursor: grab;
}

.system-settings-volume-slider-container:active {
    cursor: grabbing;
}

/* 滑块轨道 */
.system-settings-volume-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.6rem;
    background: #606060;
    border-radius: 0.3rem;
    transform: translateY(-50%);
}

/* 滑块填充部分 */
.system-settings-volume-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #FF6600;
    border-radius: 0.3rem;
    transition: none;
}

/* 滑块拖动手柄 */
.system-settings-volume-slider-thumb {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 1.5rem;
    height: 1.5rem;
    background: #ff6600;
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    transition: none;
}

.system-settings-volume-slider-thumb:active {
    cursor: grabbing;
}

/* 语言选择器 */
.system-settings-language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 102, 0, 0.4);
    border-radius: 0.8rem;
    cursor: pointer;
    position: relative;
    min-height: 5rem;
}

.system-settings-selector-arrow {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    opacity: 0; /* 隐藏，如果不需要显示 */
}

.system-settings-language-value {
    flex: 1;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

.system-settings-selector-dropdown-arrow {
    width: 1.6rem;
    height: 1.6rem;
    background-image: url('../icon/arrow3.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* 密码输入弹窗 */
.password-dialog-overlay {
    z-index: 10000;
}

.password-dialog-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}



.password-dialog-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.password-dialog-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-bottom: 0.4rem;
}

.password-dialog-input-container {
    position: relative;
    width: 100%;
}

.password-dialog-input {
    width: 100%;
    padding: 1.5rem 2rem;
    padding-right: 16rem; /* 为右侧错误消息留出空间 */
    background: rgba(12, 12, 12, 0.95);
    border: none;
    border-radius: 0.8rem;
    color: #ffffff;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    outline: none;
    text-align: left;
    box-sizing: border-box;
}

.password-dialog-input:focus {
    border: none;
}

.password-dialog-error {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    white-space: nowrap;
    display: none;
    pointer-events: none; /* 防止点击错误消息影响输入框 */
}

.password-dialog-error.show {
    display: block;
}

.password-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin-top: 0.8rem;
}

.password-dialog-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.password-dialog-cancel {
    background: #000000;
    color: #ffffff;
}

.password-dialog-enter {
    background: #ff6600;
    color: #000000;
}

/* 修改设备编号弹窗 */
.device-id-edit-overlay {
    z-index: 10000;
}

.device-id-edit-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.device-id-edit-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.device-id-edit-title {
    color: #ff6600;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-bottom: 0.4rem;
}

.device-id-edit-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.device-id-edit-input {
    width: 100%;
    padding: 1.5rem 2rem;
    padding-right: 10rem; /* 预留错误提示空间 */
    background: rgba(12, 12, 12, 0.95);
    border: none;
    border-radius: 0.8rem;
    color: #ffffff;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    outline: none;
    text-align: left;
}

.device-id-edit-input:focus {
    border: none;
}

.device-id-edit-error {
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 1.4rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-align: right;
    visibility: hidden;
}

.device-id-edit-error.show {
    visibility: visible;
}

.device-id-edit-actions {
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin-top: 0.8rem;
}

.device-id-edit-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.device-id-edit-cancel {
    background: #000000;
    color: #ffffff;
}

.device-id-edit-save {
    background: #ff6600;
    color: #000000;
}

/* 传感器未就绪弹窗 */
.sensors-not-ready-overlay {
    z-index: 10000;
}

.sensors-not-ready-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.sensors-not-ready-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,102,0,0) 0%, rgba(255,102,0,0.4) 100%);
}

.sensors-not-ready-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.sensors-not-ready-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    line-height: 1.2;
}

.sensors-not-ready-icon {
    width: 1.5em;
    height: 1.5em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.sensors-not-ready-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.sensors-not-ready-button {
    flex: 1;
    min-width: 10rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.sensors-not-ready-cancel {
    background: #000000;
    color: #ffffff;
}

.sensors-not-ready-confirm {
    background: #ff6600;
    color: #000000;
}

/* 称连接失败弹窗 */
.scale-connection-failed-overlay {
    z-index: 10000;
}

.scale-connection-failed-modal {
    width: calc(100% - 12rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(0deg, #0D1011 0%, #1A1A1A 100%);
}

.scale-connection-failed-status-bar {
    height: 2rem;
    background: linear-gradient(0deg, rgba(255,1,43,0) 0%, rgba(255,1,43,0.4) 100%);
}

.scale-connection-failed-body {
    padding: 3.2rem 3.6rem 3.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.scale-connection-failed-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.2;
    color: #ffffff;
    font-size: 2.4rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
}

.scale-connection-failed-icon {
    width: 1.4em;
    height: 1.4em;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.scale-connection-failed-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
}

.scale-connection-failed-button {
    min-width: 20rem;
    height: 6rem;
    border: none;
    font-size: 1.8rem;
    font-family: 'HarmonyOS Sans SC_Light', Arial, sans-serif;
    cursor: pointer;
    border-radius: 1rem;
}

.scale-connection-failed-cancel {
    background: #000000;
    color: #ffffff;
}