.single-leg-stance-result-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    flex-direction: column;
}

.single-leg-stance-result-page.active {
    display: flex;
}

.single-leg-stance-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.single-leg-stance-result-back-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    padding: 2rem 3rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    min-width: 15rem;
    min-height: 5rem;
}

.single-leg-stance-result-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.single-leg-stance-result-help-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    min-height: 5rem;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    padding: 2rem 3rem;
}

.single-leg-stance-result-menu-button {
    background: #151515;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    color: #FF6600;
    padding: 2rem 3rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    min-width: 15rem;
    min-height: 5rem;
}

.single-leg-stance-result-content {
    padding: 0rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.single-leg-stance-title-underline {
   
    height: 2px;
    background-color: #FF6600;
    margin-top: 1rem;
    margin-left: 6rem;
    margin-right: 6rem;
}

.single-leg-stance-result-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.single-leg-stance-title {
    color: #FF6600;
    font-size: 3.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin-left: 6rem;
}
.sensor-calibration-progress-section {
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: black;
}

.progress-buttons-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

.progress-button {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 0;
    min-width: 0;
    height: 15rem;
    position: relative;
}

.progress-button.selected {
    color: #ffffff;
    flex: 0 0 15rem;
    width: 15rem;
    height: 15rem;
    border-radius: 0.5rem;
    border-top: 8px solid #FF6600;
    background-image: url('../image/img17.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.progress-button.selected .progress-text-box {
    background-color: transparent;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-left: 2rem;
}

.progress-button:not(.selected) {
    color: #9a9a9a;
}


/* 通用字体样式 */
.progress-dash-box,
.progress-text-box span:not(.progress-subtext),
.progress-button button {
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
}

.progress-dash-box {
    background-color: #606060;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0.3rem 1rem;
    text-align: left;
    width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    flex-shrink: 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

/* 有成绩（LVx）时的颜色 */
.progress-dash-box.has-score {
    background-color: #5D2500;
}

.progress-button.selected .progress-dash-box {
    font-size: 2rem;
    padding: 0.5rem 1rem;
}

.progress-text-box {
    background-color: #151515;
    color: inherit;
    padding: 0.5rem;
    text-align: left;
    width: 100%;
    border-radius: 0 0 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    flex: 1;
}

.progress-text-box span:not(.progress-subtext) {
    font-size: 1.5rem;
    line-height: 1.2;
}

.progress-button.selected .progress-text-box span:not(.progress-subtext) {
    font-size: 2rem;
}

.progress-subtext {
    font-size: 1.2rem !important;
    opacity: 0.7;
    line-height: 1.2;
}

.progress-button.selected .progress-subtext {
    font-size: 1.5rem !important;
}

.progress-button button {
    background-color: #151515;
    border: 3px solid #5d2500;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1.4rem;
    padding: 0.4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    min-height: 3rem;
}

.progress-button-placeholder {
    background: none;
    border: none;
    width: 100%;
    margin-top: 0.5rem;
    min-height: 3rem;
    padding: 0.4rem 1rem;
    box-sizing: border-box;
}

/* 选中的步骤：隐藏 progress-dash-box 和按钮 */
.progress-button.selected button {
    display: none;
}

.progress-button.selected .progress-dash-box {
    display: none;
}

/* 未完成的步骤：显示 progress-dash-box，隐藏按钮 */
.progress-button:not(.completed):not(.selected) button {
    visibility: hidden;
    opacity: 0;
}

.progress-button[data-exercise="sensor-calibration"].selected button,
.progress-button[data-exercise="sensor-calibration"]:not(.completed):not(.selected) button {
    display: block;
    visibility: visible;
    opacity: 1;
}

.progress-button:not(.completed):not(.selected) .progress-dash-box {
    visibility: visible;
    opacity: 1;
}

.progress-button[data-exercise="sensor-calibration"] {
    pointer-events: none;
}

.progress-button[data-exercise="sensor-calibration"] button {
    pointer-events: auto;
}

/* 已完成的步骤：显示 progress-dash-box 和按钮 */
.progress-button.completed button {
    visibility: visible;
    opacity: 1;
}

.progress-button.completed .progress-dash-box {
    visibility: visible;
    opacity: 1;
}


.next-step-section {
    background-color: #151515;
    border-radius: 2rem;
    padding: 2rem;
    overflow: visible;
    display: none;
    flex-direction: column;
    gap: 2rem;
    margin-left: 6rem;
    margin-right: 6rem;
    min-height: 51.2rem;
    justify-content: space-between;
}

.sensor-calibration-content .next-step-section {
    margin-top: 0;
}

.dynamic-next-section .next-step-section {
    margin-left: 7rem;
    margin-right: 7rem;
    margin-top: 6rem;
}

.next-step-section.show {
    display: flex;
}

.next-step-section .step-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
}

.next-step-section .step-text {
    flex: 1;
}

.instruction-list {
    color: #ffffff;
    font-size: 1.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 2rem 0;
    padding-left: 2rem;
    list-style-type: circle;
}

.instruction-list li::marker {
    color: #ff6600;
}

.instruction-list li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.start-test-button {
    background-color: #FF6600;
    border: none;
    border-radius: 0.5rem;
    color: #000000;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    width: 100%;
    height: 6rem;
    position: relative;
}

.start-test-button span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.button-arrow {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    position: absolute;
    right: 2rem;
}

.step-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1b1b1b;
    padding: 0 1rem;
    min-width: 20rem;
    max-height: 25rem;
}

.step-image img {
    max-width: 100%;
    max-height: 25rem;
    object-fit: contain;
}

 /* Next Up  */
.nextup-section {
    padding: 0 7.5rem;
}

.nextup-heading {
    color: #FF6600;
    font-size: 3rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 1rem 0;
}

.snextup-card {
    background-color: #151515;
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 46rem;
}
.nextup-card {
    background-color: #151515;
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 46rem;
}
.nextup-title {
    color: #FF6600;
    font-size: 3rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0 0 1rem 0;
}

.nextup-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
}

.nextup-text {
    flex: 1;
}

.nextup-subtitle {
    color: #ff6600;
    font-size: 2.3rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 1rem 0;
}

.nextup-instructions {
    color: #ffffff;
    font-size: 1.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 2rem 0;
    padding-left: 2rem;
    list-style-type: circle;
}

.nextup-instructions li::marker {
    color: #ff6600;
}

.nextup-instructions li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.nextup-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1b1b1b;
    padding: 0 1rem;
    min-width: 20rem;
    max-height: 25rem;
}

.nextup-image img {
    max-width: 100%;
    max-height: 25rem;
    object-fit: contain;
}

.nextup-start {
    background-color: #FF6600;
    border: none;
    border-radius: 0.5rem;
    color: #000000;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    height: 6rem;
    position: relative;
}

.nextup-start span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.snextup-start {
    background-color: #FF6600;
    border: none;
    border-radius: 0.5rem;
    color: #000000;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    height: 6rem;
    position: relative;
    top: 7.9rem;
}

.snextup-start span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nextup-arrow {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    position: absolute;
    right: 2rem;
}