.sensor-calibration-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    flex-direction: column;
}

.sensor-calibration-page.active {
    display: flex;
}

.sensor-calibration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.sensor-calibration-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;
}

.sensor-calibration-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sensor-calibration-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;
}

/* Sensor Calibration Help Modal */
.sensor-calibration-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;
}

.sensor-calibration-help-overlay.active {
    display: flex;
}

.sensor-calibration-help-modal {
    width: calc(100% - 12rem);
    min-height: 90rem;
    background: #151515;
    border-radius: 1.2rem;
    padding: 2.4rem 3.2rem 2.8rem;
    display: flex;
    flex-direction: column;
}

.sensor-calibration-help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.sensor-calibration-help-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
}

.sensor-calibration-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;
    transition: opacity 0.2s ease;
}

.sensor-calibration-help-modal-close:hover {
    opacity: 0.7;
}

.sensor-calibration-help-modal-close:active {
    opacity: 0.5;
}

.sensor-calibration-help-modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.6rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    padding-right: 1.5rem;
}

.sensor-calibration-help-question {
    margin: 2rem 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.sensor-calibration-help-modal-body p {
    margin: 0;
    padding-left: 3rem;
    text-align: left;
}

.sensor-calibration-help-modal-body .sensor-calibration-help-question + p,
.sensor-calibration-help-modal-body .sensor-calibration-help-question + ul {
    margin-top: 0;
    margin-bottom: 1.6rem;
    padding-left: 6rem;
}

.sensor-calibration-help-modal-body .sensor-calibration-help-question + ul {
    margin-left: 3rem;
    padding-left: 2rem;
}

.sensor-calibration-help-modal-body .sensor-calibration-help-question:first-child {
    margin-top: 0;
}

.sensor-calibration-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;
}
.sensor-calibration-content {
    flex: 1;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.current-step-section {
   
    overflow: visible;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sensor-step-text {
    width: 100%;
    padding: 0 6rem;
}

.step-title {
    color: #FF6600;
    font-size: 3rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    margin: 0 0 1rem 0;
}

.step-subtitle-small {
    font-size: 2rem;
    color: #5d2500;
}

.step-underline {
    height: 2px;
    background-color: #FF6600;
    margin-bottom: 1.5rem;
}

.step-subtitle {
    color: #ff6600;
    font-size: 2.3rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 1rem 2rem;
}
.step-subtitle-b{
    color: #ff6600;
    font-size: 2.3rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 1rem 0rem;
}
.step-instruction {
    color: #ff6600;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 2rem 2rem;
}

.action-box {
    border: 3px solid #272727;
    border-radius: 1rem;
    padding: 2rem 10rem 2rem 2rem;
    text-align: left;
    position: relative;
    overflow: visible;
}

.action-box-image {
    position: absolute;
    bottom: 0;
    right: 2rem;
    bottom: 1rem;
    width: 15rem;
    height: 25rem;
    background-image: url('../image/img16.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.action-text {
    color: #ffffff;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin: 0 0 1rem 0;
    line-height: 1.8;
}

.action-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;
    min-width: 30rem;
    min-height: 6rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button span {
    position: relative;
    z-index: 2;
}

.action-button:hover {
    background-color: #ff8833;
}

/* 倒计时状态 */
.action-button.countdown {
    background-color: #000000;
    border: 3px solid #ff6600;
}

.action-button.countdown .countdown-number {
    color: #ff6600;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    position: relative;
    z-index: 2;
}

/* 按钮填充动画（从左到右） */
.action-button.filling {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    border: 3px solid #ff6600;
}

.action-button.filling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #ff6600;
    animation: fillProgress 1s linear forwards;
    z-index: 1;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Complete 状态 */
.action-button.complete {
    background-color: #ff6600;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: left;
    gap:6rem;
}

.action-button.complete .complete-icon {
    width: 2rem;
    height: 2rem;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../icon/check mark3.png');
    background-size: 60% auto;
    background-position: center;
    background-repeat: no-repeat;
}

/* 点击完成后的校准按钮状态 */
.action-button.calibrated {
    background-color: #151515;
    color: #ff6600;
    border: 3px solid #ff6600;
}
