body{
    overflow: hidden;
}
.setting-page-all,
.dat-brith, .dat-height, .dat-gender {
    position: fixed;
    inset: 0;
    overflow-y: auto;   /* 每个页面自己滚动 */
}
.setting-page-all {
    height: 100vh;
    height: 100dvh;
    width: min(100vw,68rem);
    width: min(100dvw,68rem);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--theme-surface, #fff);
    padding: var(--gap-4) var(--gap-V15);
    box-sizing: border-box;
    background: var(--theme-page, #f5f6f8);
    transform: translate3d(0,0,0);
    z-index: 1;
    transition: .38s;
}
.setting-page-all .Arrow-Back { color:inherit; text-decoration:none; cursor:pointer; }
.setting-page-all.hide{
    transform: translate3d(-20%,0,0) scale(.96);
    opacity: .9;
}

.setting-page-all h4,
.setting-page-all h2 {
    font-size: var(--font-small);
    color: var(--color-9f9f9f);
    padding: var(--gap-V5) 0;
    font-weight: 400;
    padding-top: var(--gap-V15);
    line-height: var(--line-hight-V25);
}

.setting-page-all .Information {
    border-radius: var(--gap-V5);
    margin: var(--gap-2) 0 0;
    font-size: var(--font-mid);
    padding: var(--gap-V5) var(--gap-V15);
    display: flex;
    flex-direction: column;
    background-color: var(--theme-surface, #fff);

}

.setting-page-all .Information .infoCard {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: var(--font-body);
    /* 恢复你原本的字号 */
    color: var(--color-444444);
    line-height: var(--line-hight-V25);
    border-bottom: var(--theme-border, #eeeeee) solid 1px;
    justify-content: space-between;
    width: 100%;
    font-size: var(--font-body);
    /* 恢复你原本的字号 */
    font-weight: 500;
}

.setting-page-all .Information .infoCard:last-child {
    border: none;
}

.setting-page-all .Information .infoCard {
    color: var(--color-9f9f9f);
    display: flex;
    padding: var(--gap-V5) 0;
    box-sizing: border-box;
}

.setting-page-all .Information .infoCard .label-btn {
    cursor: pointer;
    flex: 1;
    font-size: var(--font-body);
    color: var(--color-666666);
    font-weight: 500;
    text-align: left;
}

.setting-page-all .Information .infoCard .num-input {
    width: 60px;
    padding: var(--gap-V5);
    box-sizing: border-box;
    border: none;
    outline: none;
    color: var(--color-9f9f9f);
    font-size: var(--font-body);
    text-align: right;
}

.setting-page-all .Information .infoCard .num-input:focus {
    outline: none;
    border: none;
}

.setting-page-all .Information .infoCard .input-wrap {
    display: flex;
    font-weight: 400;
}

.setting-page-all .Information .infoCard .input-wrap::after {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    margin-left: auto;
    background-color:var(--theme-icon-subtle);
      -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z'/%3E%3C/svg%3E") center / contain no-repeat;
      mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z'/%3E%3C/svg%3E") center / contain no-repeat;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.setting-page-all .Information .infoCard .seg-radio {
    display: none;
}

.setting-page-all .Information .infoCard .segmented {
    display: flex;
}

/*End of setting-page-all*/
.dat-brith, .dat-height, .dat-gender {
    -webkit-tap-highlight-color: transparent;
    /* touch-action: none; */
    height: 100vh;
    height: 100dvh;
    left: 0;
    right: 0;
    width: min(100vw,68rem);
    width: min(100dvw,68rem);
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-a18cd1);
    padding: var(--gap-7) var(--gap-V15);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0,1fr) auto minmax(0,1fr);
    justify-items: center;
    align-items: center;
    overflow: hidden;
    overflow-y: auto;
    transition: transform .38s cubic-bezier(.22,.8,.2,1);
    will-change: transform;
    transform: translate3d(100vw,0,0);
    z-index: 2;
}
.dat-brith > .Data_content-item,
.dat-height > .Data_content-item,
.dat-gender > .Data_content-item {
    grid-row: 2;
    align-self: center;
    margin: 0;
}
.dat-brith.show, .dat-height.show, .dat-gender.show { 
    transform: translate3d(0,0,0);
}
.measurement-wheel-screen,.weight-wheel-screen { overscroll-behavior:contain; }
.measurement-wheel-screen .Data_content-item,.weight-wheel-screen .Data_content-item { width:min(100%,34rem); }
.measurement-wheel-card { width:100%; gap:2.2rem; padding:1.8rem 1.4rem; }
.measurement-wheel-row { display:flex; align-items:center; justify-content:center; gap:.2rem; width:100%; }
.measurement-wheel-row .wp-container { flex:none; }
.measurement-integer-wheel { width:12rem; }
.measurement-decimal-wheel { width:8rem; }
.dat-height .health-height-wheel-row { display:flex;align-items:center;justify-content:center;gap:.2rem;width:100%; }
.dat-height .health-height-wheel-row .wp-container { flex:none; }
.dat-height .health-height-integer-wheel { width:12rem; }
.dat-height .health-height-decimal-wheel { width:6rem; }
.measurement-decimal-point { color:var(--theme-surface); font-size:3rem; font-weight:500; }
.weight-wheel-screen { z-index:20; }
.weight-wheel-heading { width:100%;display:flex;align-items:center;justify-content:center;position:relative; }
.weight-wheel-heading #weight-unit-toggle { position:absolute;right:.3rem;padding:.5rem .9rem;border:1px solid rgba(var(--theme-white-rgb),.35);border-radius:99rem;color:var(--theme-surface);font:inherit;font-size:var(--font-label); }
.weight-wheel-screen .submit { margin:0 auto; }
.wheel-page-content { position:relative;transition:transform .38s cubic-bezier(.22,.8,.2,1),opacity .38s; }
.wheel-page-content.measurement-page-hidden { transform:translate3d(-20%,0,0) scale(.96);opacity:.9; }


/* --- 页面布局样式 --- */
.card {
    background: rgba(var(--theme-white-rgb), 0.03);
    padding: var(--gap-V15) var(--gap-V5);
    box-sizing: border-box;
    border-radius: 30px;
    border: 1px solid rgba(var(--theme-white-rgb), 0.08);
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-label {
    font-size: var(--font-small);
    color: rgba(var(--theme-white-rgb), 0.4);
    letter-spacing: 2px;
}

.dat-brith .summary,
.dat-height .summary,
.dat-gender .summary,
.measurement-wheel-summary,
.profile-unit-wheel-summary {
    margin-top: 40px;
    text-align: center;
    color: var(--font-color-f8);
    font-size: var(--font-large);
    font-weight: 500;
}

.measurement-wheel-screen .measurement-wheel-summary,
.profile-unit-wheel .profile-unit-wheel-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    width: min(100%, 34rem);
    box-sizing: border-box;
    margin: 1rem auto 0;
    padding: .8rem 1.4rem;
    border: 1px solid rgba(var(--theme-white-rgb), .18);
    border-radius: 1.2rem;
    background: rgba(var(--theme-white-rgb), .08);
    color: var(--font-color-f8);
    font-size: var(--font-mid);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: center;
}

.profile-unit-wheel .profile-unit-wheel-summary {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--font-color-f8);
    font-size: var(--font-large);
}

.measurement-wheel-screen .measurement-wheel-summary {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--font-color-f8);
    font-size: var(--font-large);
}

.weight-wheel-screen .weight-wheel-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    width: min(100%, 34rem);
    box-sizing: border-box;
    margin: 1rem auto 0;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--font-color-f8);
    font-size: var(--font-large);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: center;
}

.submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 340px;
    padding: var(--gap-2) 0 0;
}

.submit .Cancel-button,
.submit .Confirm-button {
    border: 1px solid rgba(var(--theme-white-rgb), 1);
    flex: 1;
    font-size: var(--font-mid);
    color: var(--font-color-f8);
    opacity: 0.8;
    border-radius: 30px;
    padding: var(--gap-V5) 0;
    gap: 20px;
    margin: var(--gap-V5);
}

/* --- 复用组件样式 --- */
.wp-container {
    position: relative;
    width: 140px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 45%, black 55%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 45%, black 55%, transparent);
}

/* 选中框线 */
.wp-selection-box {
    position: absolute;
    left: 0;
    right: 0;
    height: 44px;
    /* 对应 JS 中的 itemH */
    border-top: 1px solid rgba(var(--theme-white-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--theme-white-rgb), 0.1);
    pointer-events: none;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.wp-wheel {
    position: relative;
    width: 100%;
    height: 44px;
    transform-style: preserve-3d;
    will-change: transform;
}

.wp-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(var(--theme-white-rgb), 0.3);
    backface-visibility: hidden;
    transition: color 0.2s, font-size 0.2s, opacity 0.2s;
}

/* 激活状态样式：全部写在 CSS 里 */
.wp-item.active {
    color: var(--font-color-f8);
    font-weight: 700;
    font-size: 24px;
    opacity: 1;
}

/* 隐藏远处选项的样式 */
.wp-item.far {
    opacity: 0;
}
