.running-in-place-test-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: none;
    flex-direction: column;
}
.running-in-place-test-page.active { display: flex; }

/* Running in Place 专属样式（保持与 SFB 相同视觉） */
.rip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    z-index: 10;
    flex-shrink: 0;
}
.rip-header-left { display: flex; gap: 0.75rem; align-items: center; }
.rip-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;
}
.rip-header-right { display: flex; gap: 0.75rem; align-items: center; }
.rip-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;
}
.rip-test-content { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.5rem; }
.rip-timer-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 6rem;}
.rip-test-timer-underline {
    width: 55rem;
    height: 2px;
    background-color: #272727;
    position: relative;
    overflow: hidden;
}
.rip-test-timer-underline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #ff6600;
    transition: width 30s linear;
}
.rip-test-timer-underline.filling::before {
    width: 100%;
}
.rip-timer-label { color: #ffffff; font-size: 1.8rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; margin-bottom: 1rem;}

/* Running in Place - 顶部 spm 与 reps（参考 1index.html 结构） */
#runningInPlaceImageDiv {
    position: relative;
    width: 100%;
    height: 26rem; /* 放大整体高度 */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 8rem;
}
/* 左右脚背景与遮罩填充（参考 1index.html） */
.rip-bg-left, .rip-bg-right, .rip-bg-center{
    position: absolute;
    top: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left top;
}
.rip-bg-left{ left: calc(50% - 33rem); width: 16rem; height: 35rem; }
.rip-bg-right{ left: calc(50% + 17rem); width: 16rem; height: 35rem; }
.rip-bg-center{ left: 50%; transform: translateX(-50%); width: 62rem; height: 35rem; }
.rip-bg-left svg,
.rip-bg-right svg,
.rip-bg-center svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* 文本覆盖层（顶部 328spm，中心 28 / Reps） */
.rip-text-overlay {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.rip-spm-wrap { margin-top: -1.2rem; display: flex; flex-direction: column; align-items: center; }
.rip-spm-number { color: #ff6600; font-size: 3rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; line-height: 1.1; }
.rip-spm-underline { width: 10rem; height: 2px; background-color: #ff6600; margin: 0.2rem 0 0.3rem 0; }
.rip-spm-unit { color: #ff6600; font-size: 1.4rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; }
.rip-count-number { color: #ffffff; font-size:20rem; font-family: 'Morganite-Black-2', Arial, sans-serif; line-height: 1; margin-top: 6rem; }
.rip-count-label { color: #ffffff; font-size: 4rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; margin-top: 0.4rem; }

/* 底部三块：L 柱、居中倾斜卡片、R 柱 */
.rip-bottom-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3rem;
    margin-top: 20rem;
    width: 100%;
    position: relative;
    z-index: 2;
}
.rip-b-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.rip-b-label { color: #ffffff; font-size: 3rem; font-family: 'HarmonyOS_Sans_SC_Regular', Arial, sans-serif; }
.rip-b-stack {
    width: 6.2rem;
    height: 16rem;
    border: 1px solid #333333;
    border-radius: 0.6rem;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.3rem;
}
.rip-b-seg-three {
    width: 100%;
    height: 5rem;
    border-radius: 0.4rem;
    background: #ff6600;
    opacity: 1;
}
.rip-b-seg-two {
    width: 100%;
    height: 5rem;
    border-radius: 0.4rem;
    background: #ff6600;
    opacity: 0.6;
}
.rip-b-seg-one {
    width: 100%;
    height: 5rem;
    border-radius: 0.4rem;
    background: #ff6600;
    opacity: 0.2;
}

/* 居中倾斜卡片 */
.rip-lean-card {
    width: 14rem;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0 0 2px #333333 inset;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.rip-lean-head {text-align: center; padding: 0.8rem 0.6rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; font-size: 1.6rem; }
.rip-lean-mid { background: #0e0e0e; color: #fff; text-align: center; padding: 1.6rem 0.6rem; }
.rip-lean-value { font-family: 'Morganite-Black-2', Arial, sans-serif; font-size: 7rem; line-height: 1; }
.rip-lean-unit { font-size: 2rem; margin-left: 0.2rem; }
.rip-lean-foot { text-align: center; padding: 0.8rem 0.6rem; font-family: 'HarmonyOS_Sans_SC_Bold', Arial, sans-serif; font-size: 1.6rem; }
