.measurement-results-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    flex-direction: column;
}

.measurement-results-page.active {
    display: flex;
}

.results-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;
}

.results-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;
}

.results-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.results-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;
}

.results-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;
}

.results-page-content {
    flex: 1;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.results-title-section {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.results-phase-title {
    margin-bottom: 2rem;
}

.results-phase-text {
    color: #FF6600;
    font-size: 4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin-left: 6rem;
    text-align: left;
}

.results-phase-underline {
    margin-left: 6rem;
    margin-bottom: 3rem;
}

.results-underline-container {
    position: relative;
}

.results-underline-line {
    width: 55rem;
    height: 2px;
    background-color: #272727;
    position: relative;
}

.results-underline-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #FF6600;
}

.results-underline-arrow {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    left: 100%;
    top: -2.1rem;
    transform: translateX(-50%);
    object-fit: contain;
}

.results-card {
    background: #151515 url('../image/img15.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3rem;
    padding: 4rem 4rem 2rem 4rem;
    margin: 0 auto;
    max-width: 90rem;
    position: relative;
    min-height: 46rem;
    margin-top: 6rem;
}

.results-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.results-card-title {
    color: #FF6600;
    font-size: 4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0;
    text-align: center;
}

.results-card-message {
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0;
    text-align: center;
    margin-bottom: 20rem;
}

.results-view-button {
    background: #FF6600;
    border: none;
    border-radius: 1rem;
    color: #000000;
    padding: 2rem 1rem;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 110%;
    max-width: 60rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.results-view-button.loading {
    cursor: not-allowed;
    pointer-events: none;
}

.results-view-button.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 1s ease-in-out;
    z-index: 1;
}

.results-view-button.loading.loading-start::before {
    width: 100%;
}

.results-view-button.loading .results-button-text,
.results-view-button.loading .results-chevron {
    position: relative;
    z-index: 2;
}

.results-view-button:hover {
    background: #ff8833;
    transform: translateY(-2px);
}

.results-button-text {
    flex: 1;
    text-align: center;
}

.results-chevron {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* 弹窗出现时，隐藏 Back 和 Menu 按钮，只保留 help 按钮可点击（保留布局空间） */
.measurement-results-page.modal-active .results-back-button,
.measurement-results-page.modal-active .results-menu-button {
    visibility: hidden;
    pointer-events: none;
}

.measurement-results-page.modal-active .results-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: results-help-button-pulse 2s ease-in-out infinite;
}

@keyframes results-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);
    }
}
