/* Posture Scan 页面布局（可放在 css/Posture-Assessment.css） */
#postureScan-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none; /* 通过 JS 控制 active 显示 */
    flex-direction: column;
}

#postureScan-page.active {
    display: flex;
}

.posture-page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #7e7e7e;
    position: relative;
}

/* 摄像头默认隐藏 */
.posture-camera {
    width: 1920px;
    position: absolute;
    top: 26.25rem;
    left: -26.25rem;
    transform: rotate(90deg);
    z-index: 0; /* 确保摄像头在背景图片之下但在页面背景之上 */
}


/* 背景图片图层 */
.posture-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/ttsm.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 仅针对postureScanning-page移除背景图片 */
#postureScanning-page .posture-background {
    background-image: none;
}

/* 确保postureScanning-page不可滚动 */
#postureScanning-page {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

/* 确保postureScanning-page内部也不可滚动 */
#postureScanning-page .posture-page {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.frontCapture-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/ttzm.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
/* 确保所有UI元素都显示在摄像头和背景图片之上 */
.posture-scan-header,
.posture-top-banner,
.posture-scanning-banner {
    position: relative;
    z-index: 2;
}

/* 顶部提示 + Scan 区域 */
.posture-top-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 12rem; /* 与 posture-scanning-banner 保持相同高度 */
}

.posture-instruction-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.posture-scan-button {
    width: 16rem;
    background: #ff6600;
    color: #000000;
    border: none;
    outline: none;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    cursor: pointer;
}

.posture-scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.posture-scan-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;
}

.posture-scan-header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.posture-scan-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;
}

.posture-scan-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;
}

/* 扫描进行中页面样式 */
#postureScanning-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none; /* 通过 JS 控制 active 显示 */
    flex-direction: column;
}

#postureScanning-page.active {
    display: flex;
}

/* 扫描提示信息 */
.posture-scanning-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 12rem; /* 与 posture-top-banner 保持相同高度 */
}

.posture-scanning-banner::before {
    content: '';
    width: 16rem;
    background-image: url('../image/img45.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.posture-scanning-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    margin-left: 4rem;
}

/* 进度条样式 */
.posture-scanning-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #000;
    z-index: 2;
}

.posture-scanning-progress-bar {
    height: 100%;
    width: 0;
    background-color: #FF6B00;
    transition: width 3s ease-out;
}

/* 进度条填充动画 */
.posture-scanning-progress-bar.fill {
    width: 100%;
}

/* Checkmark 图标样式 */
.posture-scanning-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
}

/* 扫描完成状态样式 */
.posture-scanning-banner.completed {
    background-color: #0ECC98;
}

.posture-scanning-banner.completed .posture-scanning-text {
    display: none;
}

.posture-scanning-banner.completed .posture-scanning-checkmark {
    display: flex;
}

.posture-scanning-banner.completed .posture-scanning-progress-container {
    display: none;
}

.posture-scanning-banner.completed::before {
    background-image: url('../image/img46.png');
}

/* March in place 页面样式 */
#marchInPlace-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#marchInPlace-page.active {
    display: flex;
}

/* Front Capture 页面样式 */
#frontCapture-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#frontCapture-page.active {
    display: flex;
}

/* 原地踏步进行中页面样式 */
#postureMarching-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#postureMarching-page.active {
    display: flex;
}

/* 原地踏步提示信息 */
.posture-marching-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 12rem;
}

.posture-marching-banner::before {
    content: '';
    width: 16rem;
    background-image: url('../image/img45.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 进度条完成状态的样式 */
.posture-marching-banner.completed {
    background-color: #0ECC98;
}

.posture-marching-banner.completed .posture-marching-text {
    display: none;
}

.posture-marching-banner.completed .posture-scanning-checkmark {
    display: flex;
}

.posture-marching-banner.completed .posture-marching-progress-container {
    display: none;
}

.posture-marching-banner.completed::before {
    background-image: url('../image/img46.png');
}

.posture-marching-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
}

/* 原地踏步进度条样式 */
.posture-marching-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #000;
    z-index: 2;
}

.posture-marching-progress-bar {
    height: 100%;
    width: 0;
    background-color: #FF6B00;
    transition: width 10s ease-out;
}

/* 进度条填充动画 */
.posture-marching-progress-bar.fill {
    width: 100%;
}

/* 原地踏步页面的布局 */
#marchInPlace-page .posture-top-banner {
    display: flex;
    align-items: stretch;
    background: transparent;
    margin: 1.5rem 1.5rem 1rem;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 12rem;
    gap: 1rem;
}

/* Side Capture 页面样式 */
#sideCapture-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}
#sideCapture-page  .posture-top-banner {
    display: flex;
    align-items: stretch;
    background: transparent;
    margin: 1.5rem 1.5rem 1rem;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 12rem;
    gap: 1rem;
}
#sideCapture-page.active {
    display: flex;
}

/* 侧面捕捉背景图片图层 */
.sideCapture-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/ttcm.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Back Capture 页面样式 */
#backCapture-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#backCapture-page.active {
    display: flex;
}

/* View Capture 页面样式 */
#viewCapture-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#viewCapture-page.active {
    display: flex;
}

#viewCapture-page .posture-top-banner {
    display: flex;
    align-items: stretch;
    background: transparent;
    margin: 1.5rem 1.5rem 1rem;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 12rem;
    gap: 1rem;
}

/* viewCapture-page 右侧容器样式 */
#viewCapture-page .posture-instruction-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 12rem;
    border-radius: 1rem;
    overflow: hidden;
}

/* viewCapture-page View Report按钮样式 */
#viewCapture-page .posture-start-button {
    width: 100%;
    background: #ff6600;
    color: #000000;
    border: none;
    outline: none;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 6rem 1rem 2rem;
    cursor: pointer;
    border-radius: 1rem;
    margin-left: 0;
    max-height: 12rem;
    overflow: hidden;
    position: relative;
}

#viewCapture-page .posture-start-button img:first-child {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    margin: 0;
    padding: 0;
}

#viewCapture-page .posture-start-button span {
    text-align: center;
    margin: 0;
    padding: 0;
    flex: none;
}

#viewCapture-page .posture-start-button img:last-child {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}

/* viewCapture-page 移除中间文本区域 */
#viewCapture-page .posture-instruction-text {
    display: none;
}

/* 背面捕捉背景图片图层 */
.backCapture-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/ttzm.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#backCapture-page .posture-top-banner {
    display: flex;
    align-items: stretch;
    background: transparent;
    margin: 1.5rem 1.5rem 1rem;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 12rem;
    gap: 1rem;
}

/* Front Capturing 页面样式 */
#frontCapturing-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#frontCapturing-page.active {
    display: flex;
}

/* 正面捕捉提示信息 */
.front-capturing-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 12rem;
}

.front-capturing-banner::before {
    content: '';
    width: 16rem;
    background-image: url('../image/img45.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 进度条完成状态的样式 */
.front-capturing-banner.completed {
    background-color: #0ECC98;
}

.front-capturing-banner.completed .front-capturing-text {
    display: none;
}

.front-capturing-banner.completed .posture-scanning-checkmark {
    display: flex;
}

.front-capturing-banner.completed .front-capturing-progress-container {
    display: none;
}

.front-capturing-banner.completed::before {
    background-image: url('../image/img46.png');
}

.front-capturing-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    margin-left: -3rem;
}

/* 正面捕捉进度条样式 */
.front-capturing-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #000;
    z-index: 2;
}

.front-capturing-progress-bar {
    height: 100%;
    width: 0;
    background-color: #FF6B00;
    transition: width 3s ease-out;
}

/* 进度条填充动画 */
.front-capturing-progress-bar.fill {
    width: 100%;
}
#sideCapturing-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#sideCapturing-page.active {
    display: flex;
}
/* Side Capturing 样式 */
.side-capturing-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 12rem;
}

.side-capturing-banner::before {
    content: '';
    width: 16rem;
    background-image: url('../image/img45.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 进度条完成状态的样式 */
.side-capturing-banner.completed {
    background-color: #0ECC98;
}

.side-capturing-banner.completed .side-capturing-text {
    display: none;
}

.side-capturing-banner.completed .posture-scanning-checkmark {
    display: flex;
}

.side-capturing-banner.completed .side-capturing-progress-container {
    display: none;
}

.side-capturing-banner.completed::before {
    background-image: url('../image/img46.png');
}

.side-capturing-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    margin-left: -3rem;
}

/* 侧面捕捉进度条样式 */
.side-capturing-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #000;
    z-index: 2;
}

.side-capturing-progress-bar {
    height: 100%;
    width: 0;
    background-color: #FF6B00;
    transition: width 3s ease-out;
}

/* 进度条填充动画 */
.side-capturing-progress-bar.fill {
    width: 100%;
}

/* 背面捕捉页面样式 */
#backCapturing-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
}

#backCapturing-page.active {
    display: flex;
}

/* 背面捕捉的banner样式 */
.back-capturing-banner {
    margin: 1.5rem 1.5rem 1rem;
    background: #151515;
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 12rem;
}

.back-capturing-banner::before {
    content: '';
    width: 16rem;
    background-image: url('../image/img45.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背面捕捉进度条完成状态的样式 */
.back-capturing-banner.completed {
    background-color: #0ECC98;
}

.back-capturing-banner.completed .back-capturing-text {
    display: none;
}

.back-capturing-banner.completed .posture-scanning-checkmark {
    display: flex;
}

.back-capturing-banner.completed .back-capturing-progress-container {
    display: none;
}

.back-capturing-banner.completed::before {
    background-image: url('../image/img46.png');
}

.back-capturing-text {
    flex: 1;
    padding: 1.8rem 2.4rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    margin-left: -3rem;
}

/* 背面捕捉进度条样式 */
.back-capturing-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6rem;
    background-color: #000;
    z-index: 2;
}

.back-capturing-progress-bar {
    height: 100%;
    width: 0;
    background-color: #FF6B00;
    transition: width 3s ease-out;
}

/* 背面捕捉进度条填充动画 */
.back-capturing-progress-bar.fill {
    width: 100%;
}

#frontCapture-page .posture-top-banner {
    display: flex;
    align-items: stretch;
    background: transparent;
    margin: 1.5rem 1.5rem 1rem;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 12rem;
    gap: 1rem;
}

/* 左侧：Rescan */
.march-rescan-button {
    margin-right: 0;
    flex-shrink: 0;
}

.march-rescan-btn {
    background: #151515;
    color: #FF6600;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    font-size: 1.8rem;
    min-width: 14rem;
    height: 100%;
    justify-content: center;
}

.rescan-arrow {
    height: 2rem;
    width: auto;
    transform: rotate(180deg);
    object-fit: contain;
}


.rescan-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 右侧：March in place + Start 容器 */
.march-instruction-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 12rem;
}

/* 中间：March in place */
.march-instruction-text {
    flex: 1;
    background: #151515;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 2.4rem;
    border-radius: 1rem 0 0 1rem;
    margin: 0;
}

/* 右侧：Start */
.march-start-button {
    width: 14rem;
    background: #ff6600;
    color: #000000;
    border: none;
    outline: none;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    cursor: pointer;
}

/* Front Capture 页面样式 */
/* 左侧：Rescan */
.posture-rescan-button {
    margin-right: 0;
    flex-shrink: 0;
}

.posture-rescan-btn {
    background: #151515;
    color: #FF6600;
    border: 3px solid #5d2500;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    font-size: 1.8rem;
    min-width: 14rem;
    height: 100%;
    justify-content: center;
}

/* 右侧：Front Capture + Start 容器 */
.posture-instruction-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 12rem;
}

/* 中间：Front Capture */
.posture-instruction-text {
    flex: 1;
    background: #151515;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 2.4rem;
    border-radius: 1rem 0 0 1rem;
    margin: 0;
}

/* 右侧：Start */
.posture-start-button {
    width: 14rem;
    background: #ff6600;
    color: #000000;
    border: none;
    outline: none;
    font-size: 2.4rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    cursor: pointer;
    border-radius: 0 1rem 1rem 0;
    margin-left: 0;
    min-height: 12rem;
}

