.crunches-test-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: none;
    flex-direction: column;
    min-height: 100vh;
    z-index: 10;
}

.crunches-test-page.active { 
    display: flex; 
}

.crunches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    z-index: 10;
    flex-shrink: 0;
}
.crunches-header-left { display: flex; gap: 0.75rem; align-items: center; }
.crunches-btn {
    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;
}
.crunches-header-right { display: flex; gap: 0.75rem; align-items: center; }
.crunches-small-btn {
    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;
}

.crunches-test-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}
.crunches-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 6rem;
}
.crunches-test-timer-underline {
    width: 55rem;
    height: 2px;
    background-color: #272727;
    position: relative;
    overflow: hidden;
}
.crunches-test-timer-underline::after {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--crunches-underline-progress, 0%);
    background-color: #ff6600;
    transition: width 0.1s linear;
}
.crunches-timer-label {
    color: #ffffff;
    font-size: 1.8rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-bottom: 1rem;
}

#crunchesImageDiv {
    position: relative;
    width: 100%;
    height: 26rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10rem;
}
.crunches-bg-center{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52.5rem;
    height: 30rem;
}
 .crunches-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width:52.5rem;
    height: 30rem;  
}
.crunches-bg-center {
   
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left top;
    z-index: 0;
    
}
.crunches-lines {
   
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left top;
    z-index: 2;
    pointer-events: none;
}

/* === 中央圆与 spm 文本（置于最上层，不参与交互） === */
.cr-metrics {
    position: absolute;
    left: 50%;
    top: -20%;
    transform: translate(-50%, -5%);
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.cr-spm {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cr-spm-number {
    color: #ff6600;
    font-size: 2.2rem;
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    line-height: 1;
}
.cr-spm-unit {
    color: #ff6600;
    font-size: 1.2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-top: 0.1rem;
}
.cr-spm-arc {
    width: 14rem;
    height: 0.9rem;
    margin-top: 0.2rem;
}
.cr-spm-arc path { fill: none; stroke: #ff6600; stroke-width: 2; }

.cr-circle { position: relative; width: 36rem; height: 35rem; }
/* .cr-circle-ring { position:absolute; inset:0; border-radius:50%; border-top:3px solid #ff6600; } */


.cr-circle-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    /* 参数 */
    --thickness: 3px;           /* 线条粗细 */
    --arc: 60deg;    
    --brc:114deg;           /* 弧长，越小越短 */
    --color: #ff6600;
    --start: -28deg;            /* 顶部弧的起始角 */
    
    /* 优化渲染质量 - 启用硬件加速和平滑渲染 */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 使用更平滑的 conic-gradient，保持原有逻辑但优化渲染 */
    background:
        conic-gradient(from var(--start), var(--color) 0 var(--arc), transparent 0),
        conic-gradient(from calc(var(--start) + 151deg), var(--color) 0 var(--brc), transparent 0);
    
    /* 使用更平滑的 mask，添加渐变边缘以减少锯齿 */
    -webkit-mask: 
        radial-gradient(
            farthest-side,
            transparent calc(100% - var(--thickness) - 1px),
            rgba(0,0,0,0.3) calc(100% - var(--thickness) - 0.5px),
            #000 calc(100% - var(--thickness)),
            #000 calc(100% - var(--thickness) + 0.5px),
            rgba(0,0,0,0.3) calc(100% - var(--thickness) + 1px),
            transparent calc(100% - var(--thickness) + 1.5px)
        );
    mask: 
        radial-gradient(
            farthest-side,
            transparent calc(100% - var(--thickness) - 1px),
            rgba(0,0,0,0.3) calc(100% - var(--thickness) - 0.5px),
            #000 calc(100% - var(--thickness)),
            #000 calc(100% - var(--thickness) + 0.5px),
            rgba(0,0,0,0.3) calc(100% - var(--thickness) + 1px),
            transparent calc(100% - var(--thickness) + 1.5px)
        );
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    
    /* 添加轻微模糊以平滑边缘（可选，根据需要调整） */
    filter: blur(0.3px);
  }


.cr-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.cr-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cr-circle-number {
    color: #ffffff;
    font-size: 8rem;
    line-height: 1;
    font-family: 'Morganite-Black-2', Arial, sans-serif;
}
.cr-circle-label {
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif;
    margin-top: 0.2rem;
}




.crunches-test-meters {
    display: flex;
    gap: 6rem;
    align-items: flex-end;
    margin-top: 8rem;
}

.crunches-meter-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-top: 5rem;
}

.crunches-meter-label {
    color: #ffffff;
    font-size: 3rem;
   
    font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif;
    order: 1;
}

.crunches-meter-container:first-child .crunches-meter-label {
    order: -1;
    margin-right: auto;
}

.crunches-meter-container:last-child .crunches-meter-label {
    order: 2;
    margin-left: auto;
}

.crunches-meter-bar-L {
    position: relative;
    width: 7rem;
    height: 23rem;
    border: 3px solid #333;
    border-radius:0.9rem;
    overflow: hidden;
    background-image: url('../image/img29.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.crunches-meter-bar-R {
    position: relative;
    width: 7rem;
    height: 23rem;
    border: 3px solid #333;
    border-radius: 0.9rem;
    overflow: hidden;
    background-image: url('../image/img29.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}