.weight-measurement-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    flex-direction: column;
}

.weight-measurement-page.active {
    display: flex;
}

.weight-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10001;
    flex-shrink: 0;
}

/* 弹窗出现时，禁用 Back 和 Menu 按钮的点击，只保留 help 按钮可点击 */
.weight-measurement-page.modal-active .login-back-button,
.weight-measurement-page.modal-active .login-menu-button {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.weight-measurement-page.modal-active .weight-help-button {
    pointer-events: auto;
    position: relative;
    z-index: 10002;
    /* 高亮效果 */
    border-color: #FF6600;
    box-shadow: 0 0 1.5rem rgba(255, 102, 0, 0.6), 0 0 3rem rgba(255, 102, 0, 0.4);
    background-color: #1a1a1a;
    animation: help-button-pulse 2s ease-in-out infinite;
}

@keyframes help-button-pulse {
    0%, 100% {
        box-shadow: 0 0 1.5rem rgba(255, 102, 0, 0.6), 0 0 3rem rgba(255, 102, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 2rem rgba(255, 102, 0, 0.8), 0 0 4rem rgba(255, 102, 0, 0.6);
    }
}

.weight-page-content {
    flex: 1;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.weight-title-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.weight-phase-title {
    margin-bottom: 2rem;
}

.weight-phase-text {
    color: #FF6600;
    font-size: 4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin-left: 6rem;
}

.weight-phase-underline {
    margin-left: 6rem;
    margin-bottom: 3rem;
}

.weight-underline-container {
    position: relative;
}

.weight-underline-line {
    width: 55rem;
    height: 2px;
    background-color: #272727;
    position: relative;
}

.weight-underline-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    background-color: #FF6600;
}

.weight-underline-arrow {
    color: #FF6600;
    font-size: 2rem;
    position: absolute;
    left: 33.33%;
    top: -2.5rem;
    transform: translateX(-50%);
}

.weight-main-title {
    color: #FF6600;
    font-size: 3.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-bottom: 2rem;
    margin-left: 6rem;
}

.weight-main-text {
    color: #ffffff;
    font-size: 3.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    line-height: 1.2;
    margin-left: 6rem;
    margin-bottom: 15rem;
}

.weight-bottom-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 2rem;
}

.weight-bottom-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Weight Help Modal Styles */
.weight-help-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: 10001;
}

.weight-help-overlay.active {
    display: flex;
}

.weight-help-modal {
    width: calc(100% - 12rem);
    min-height: 72vh;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.weight-help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.weight-help-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.weight-help-modal-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%;
    cursor: pointer;
}

.weight-help-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    padding-right: 1.5rem;
}

.weight-help-modal-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    text-indent: 0;
}

.weight-help-modal-body p {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-indent: 2em;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.weight-help-modal-body .weight-help-no-justify {
    text-align: left;
    text-indent: 2em;
}

.weight-help-modal-body p + p {
    margin-top: 0.8rem;
}

.weight-help-modal-body ul {
    margin: 0.8rem 0 1.2rem 5rem;
    padding: 0;
    list-style: disc;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
}

.weight-help-modal-body li {
    margin-bottom: 0.4rem;
    text-indent: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.weight-help-modal-body[lang="en"] p,
.weight-help-modal-body[lang="en"] li {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.weight-help-modal-body[lang="en"] p {
    text-indent: 2em;
}

.weight-help-modal-body[lang="en"] .weight-help-question,
.weight-help-modal-body[lang="en"] .weight-help-subtitle,
.weight-help-modal-body[lang="en"] .weight-help-section-label {
    text-indent: 0;
}

.weight-help-modal-body .weight-help-subtitle {
    margin: 0.8rem 0 0.4rem;
    text-indent: 0;
    margin-left: -0.5em;
    font-weight: 600;
}

.weight-help-modal-body .weight-help-question {
    margin: 1.6rem 0 0.8rem;
    font-size: 1.8rem;
    font-weight: 400;
    text-indent: 0;
}

.weight-help-modal-body .weight-help-section-label {
    margin: 0.8rem 0 0.4rem;
    font-weight: 400;
    text-indent: 0;
}

/* Bioelectric Help Modal Styles (复用 weight-help 样式) */
.bioelectric-help-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: 10001;
}

.bioelectric-help-overlay.active {
    display: flex;
}

.bioelectric-help-modal {
    width: calc(100% - 12rem);
    min-height: 72vh;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.bioelectric-help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.bioelectric-help-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.bioelectric-help-modal-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%;
    cursor: pointer;
}

.bioelectric-help-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    padding-right: 1.5rem;
}

.bioelectric-help-modal-body .bioelectric-help-question {
    margin: 1.6rem 0 0.8rem;
    font-size: 1.8rem;
    font-weight: 400;
    text-indent: 0;
}

.bioelectric-help-modal-body ul {
    margin: 0.8rem 0 1.2rem 5rem;
    padding: 0;
    padding-left: 2rem;
    list-style: disc;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
}

.bioelectric-help-modal-body li {
    margin-bottom: 0.4rem;
    text-indent: 2em;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.bioelectric-help-modal-body[lang="en"] p,
.bioelectric-help-modal-body[lang="en"] li {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.bioelectric-help-modal-body[lang="en"] p {
    text-indent: 2em;
}

.bioelectric-help-modal-body[lang="en"] li {
    text-indent: 2em;
}