/* 声明 Roboto 常规体 */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
       url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* 字体加载时先用兜底字体，加载完成后替换，避免闪屏 */
}

/* 声明 Roboto 粗体 */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
       url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --lf-green: #2D9463;
    --lf-green-light: #E6F4EA;
    --lf-green-notice: #C6E4D3;
    --lf-green-track: #E0EFE5;
    --lf-page-top: #E8F6EF;
    --lf-page-bottom: #FFFFFF;
    --lf-border: #EEEEEE;
    --lf-option-font-weight: 500;
    --lf-page-gradient: linear-gradient(180deg, var(--lf-page-top) 0%, var(--lf-page-bottom) 100%);
    /* 单位切换轨道 */
    --lf-unit-track: #CEE9D7;
    /* 提示条底色，取自设计稿 */
    --lf-notice-purple: #EAE0FF;
    --lf-notice-rose: #FBF0EF;
    --lf-notice-green: #E8F4E2;
    --lf-notice-pink: #F6DEEE;
    --lf-notice-red: #FFD8D8;
    --lf-notice-orange: #FFE2C6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* 移动端 Safari 抗锯齿 */
    -moz-osx-font-smoothing: grayscale; /* Firefox 抗锯齿 */
    text-rendering: optimizeLegibility; /* 优化字体可读性 */
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

html {
    position: relative;
    height: 100%;
    width: 100%;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.5; /* 统一行高 */
}

html:not(.i18n-ready) body {
    opacity: 0;
}

html:not(.gender-imgs-ready) img[src*="/images/male/"],
html:not(.gender-imgs-ready) img[src*="/images/female/"],
html:not(.gender-imgs-ready) img[src^="images/male/"],
html:not(.gender-imgs-ready) img[src^="images/female/"],
html:not(.gender-imgs-ready) .card-img-wrap {
    visibility: hidden;
}

html:not(.i18n-ready) body.index-page {
    opacity: 1;
}

html.i18n-ready body {
    opacity: 1;
    transition: opacity 0.15s ease;
}

input {
    background-color: transparent;
    border: 0;
}

button {
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    outline: none;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

button:active {
    opacity: 0.6;
}

.hidden {
    display: none;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.justify-start {
    display: flex;
    justify-content: flex-start;
}

.justify-center {
    display: flex;
    justify-content: center;
}

.justify-end {
    display: flex;
    justify-content: flex-end;
}

.justify-evenly {
    display: flex;
    justify-content: space-evenly;
}

.justify-around {
    display: flex;
    justify-content: space-around;
}

.justify-between {
    display: flex;
    justify-content: space-between;
}

.align-start {
    display: flex;
    align-items: flex-start;
}

.align-center {
    display: flex;
    align-items: center;
}

.align-end {
    display: flex;
    align-items: flex-end;
}

/* 引导页公共 */
nav, header, main, footer {
    width: 100%;
}

footer {
    
}

body.no-scroll {
    overflow: hidden !important; /* 禁止滚动 */
    height: 100vh; /* 固定 body 高度，避免移动端仍可滚动 */
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* 右下角人物页锁在可视一屏内，避免 100vh 把图顶出手机浏览器底栏 */
.container:has(> .lf-main.has-hero) {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

/*** toast样式 ***/
#toastWaka {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 50%;
    z-index: 99999;
    /* margin: 0 auto; */
    -webkit-transform: translate(-50%);
    transform: translate(-50%);
    width: 70%;
    /* height: 40px; */
    line-height: 40px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: rgba(000,000,000,0.5) !important;
}

#toastWaka .text{
    color: #fff;
    display: inline-block;
    font-size: 14px;
    position: absolute;
    top:0;
    bottom:0;
    right:0;
    left:0;
}

/*** 头部 ***/
.lf-header {
    position: relative;
    height: 3.2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    background: #ffffff;
    z-index: 2;
    flex: 0 0 auto;
}

.lf-header .back-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 15px;
    height: 30px;
    cursor: pointer;
    border: none;
    outline: none;
}

.lf-header .back-box .back {
    width: 30px;
}

.lf-header .logo-box {
    height: 29px;
}

.lf-header .logo-box .logo {
    height: 100%;
}

.lf-header .progress-number-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 15px;
    height: 19px;
    line-height: 19px;
}

.lf-header .progress-number-box span {
    font-weight: 500;
    font-size: 1rem;
}

.lf-header .progress-number-box .current {
    color: var(--lf-green);
}

.lf-header .progress-number-box .total {
    color: var(--lf-green);
}

/*** 主体 ***/
.lf-main {
    min-height: calc(var(--full-height, 100vh) - 3.2rem);
    background: var(--lf-page-gradient);
    padding: 0px 16px 104px;
}

/** 进度条：问卷顶栏下方常驻，不跟 lf-main 一起飞入 **/
.container > .progress-bar-box {
    padding: 0 16px;
    background: var(--lf-page-top);
    flex: 0 0 auto;
}

.container > .progress-bar-box progress,
.lf-main .progress-bar-box progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    border: none;
    border-radius: 4px;
    background-color: var(--lf-green-track);
}

/* === WebKit 内核浏览器（Chrome、Safari、Edge 等） === */
/* 背景(未完成部分) */
.container > .progress-bar-box progress::-webkit-progress-bar,
.lf-main .progress-bar-box progress::-webkit-progress-bar {
    background-color: var(--lf-green-track);
    border-radius: 4px;
}
/* 进度颜色(已完成部分) */
.container > .progress-bar-box progress::-webkit-progress-value,
.lf-main .progress-bar-box progress::-webkit-progress-value {
    background-color: var(--lf-green);
    border-radius: 4px;
}

/* === Firefox 浏览器 === */
/* 进度颜色(已完成部分) */
.container > .progress-bar-box progress::-moz-progress-bar,
.lf-main .progress-bar-box progress::-moz-progress-bar {
    background-color: var(--lf-green);
    border-radius: 4px;
}


/** 标题 **/
.lf-main .title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
}

.lf-main .title-box .title {
    font-weight: bold;
    font-size: 23px;
    color: #000000;
    line-height: 27px;
    padding-top: 30px;
}

.lf-main .title-box .sub-title {
    font-weight: 400;
    font-size: 16px;
    color: rgba(0,0,0,0.6);
    line-height: 19px;
    text-align: center;
    margin: 15px 0 5px;
}


/** 选项 **/
.lf-main .contents {
    display: flex;
    flex-direction: column;
    margin-top: 1.25rem;
    gap: 0.8rem;
}

/* 默认样式 */
.lf-main .contents .label {
    display: flex;
    flex-direction: column;
    height: 80px;
    box-sizing: border-box;
    padding: 0 20px;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0);
    border-radius: 21px;
    border: 1px solid var(--lf-border);
}

.lf-main .contents .label .content-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.lf-main .contents .label .content-box .icon {
    width: 24px;
}

.lf-main .contents .label .content-box .text {
    font-weight: var(--lf-option-font-weight);
    font-size: 18px;
    color: #000000;
    line-height: 21px;
    margin-right: 12px;
    flex: 1;
}

/* 右侧单选圆圈：仅 .opt-radio 版式启用（无 ckicon 时用伪元素画） */
.lf-main.opt-radio .contents .label .content-box:not(:has(.ckicon))::after {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #CCCCCC;
    box-sizing: border-box;
}

.lf-main .contents .label .content-box .ckicon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: auto;
    position: static;
    border-radius: 50%;
    border: 2px solid #CCCCCC;
    box-sizing: border-box;
    background-image: none;
    background-color: transparent;
}

/* 隐藏内容样式 */
.lf-main .contents .label .line {
    border: 1px solid var(--lf-green);
    opacity: 0.29;
    margin: 1rem 0;
    display: none;
}

.lf-main .contents .label .desc-box {
    display: none;
}

.lf-main .contents .label .desc-box .text {
    font-weight: 400;
    font-size: 16px;
    color: rgba(0,0,0,0.6);
    line-height: 19px;
    display: block;
}

/* 选中样式 */
.lf-main .contents .label-selected {
    background: var(--lf-green-light);
    box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0);
    border-radius: 21px;
    border: 2px solid var(--lf-green);
}

.lf-main .contents .label-selected .line {
    display: block !important;
}

.lf-main .contents .label-selected .desc-box {
    display: block !important;
}

.lf-main.opt-radio .contents .label-selected .content-box:not(:has(.ckicon))::after {
    border-color: var(--lf-green);
    background-color: var(--lf-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.lf-main .contents .label-selected .content-box .ckicon {
    border-color: var(--lf-green);
    background-color: var(--lf-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   可复用版式：给 <main class="lf-main ..."> 叠加，配合对应的图片元素使用
   opt-radio     右侧单选圈（多选页 / 先选后确认页）
   opt-narrow    半屏宽选项、左对齐，配合 has-hero 用
   opt-icon      选项左侧灰色圆形图标徽标（.icon-badge > .icon）
   opt-desc      选项内标题+说明常显（不用分割线）
   opt-body      选项右侧身体图（.opt-img）
   opt-body-left 选项左侧身体图（.opt-img）
   opt-grid      两列网格卡片
   has-hero      右下角人物大图（.hero-img）
   has-top-img   标题下方居中配图（.top-img）
   tr-badge      过渡页：绿色圆形图标 + 左对齐标题 + 两段正文
   ========================================================================== */

/** 半屏宽选项（随容器拉伸） **/
.lf-main.opt-narrow .contents {
    align-items: flex-start;
}

.lf-main.opt-narrow .contents .label {
    width: 50%;
    box-sizing: border-box;
}

.lf-main.opt-narrow .contents .label .content-box .text {
    margin-right: 0;
}

/** 图标徽标 **/
.lf-main.opt-icon .contents .label .content-box {
    gap: 16px;
}

.lf-main.opt-icon .contents .label .icon-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3F5F4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lf-main.opt-icon .contents .label .icon-badge .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lf-main.opt-icon .contents .label-selected .icon-badge {
    background: #FFFFFF;
}

/** 标题 + 说明常显 **/
.lf-main.opt-desc .contents .label .line {
    display: none !important;
}

.lf-main.opt-desc .contents .label .desc-box {
    display: block;
}

.lf-main.opt-desc .contents .label .desc-box .text {
    font-size: 14px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.45);
    margin-right: 0;
}

/* 图标 + 标题 + 说明：图标竖向居中占满两行，标题与说明在右侧堆叠。
   .icon-badge 需作为 .label 的直接子元素，与 .content-box、.desc-box 同级 */
.lf-main.opt-desc.opt-icon .contents .label {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
        'icon title'
        'icon desc';
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    height: auto;
    min-height: 80px;
    padding: 16px 20px;
    box-sizing: border-box;
}

.lf-main.opt-desc.opt-icon .contents .label .icon-badge {
    grid-area: icon;
    align-self: center;
}

.lf-main.opt-desc.opt-icon .contents .label .content-box {
    grid-area: title;
    gap: 0;
    align-self: end;
    min-height: 0;
}

.lf-main.opt-desc.opt-icon .contents .label .desc-box {
    grid-area: desc;
    align-self: start;
}

.lf-main.opt-desc.opt-icon .contents .label .content-box .text {
    margin-right: 0;
    line-height: 21px;
}

.lf-main.opt-desc.opt-icon .contents .label .desc-box .text {
    line-height: 18px;
}

/** 选项内身体图（your_build / dream_body / target_zones / struggle_with） **/
.lf-main.opt-body .contents .label,
.lf-main.opt-body-left .contents .label {
    height: 100px;
    padding: 0 20px;
    overflow: hidden;
    justify-content: center;
}

.lf-main.opt-body .contents .label .content-box,
.lf-main.opt-body-left .contents .label .content-box {
    height: 100%;
    position: relative;
}

.lf-main.opt-body .contents .label .opt-img,
.lf-main.opt-body-left .contents .label .opt-img {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}

.lf-main.opt-body .contents .label .opt-img {
    right: -20px;
    object-position: bottom right;
}

.lf-main.opt-body .contents .label .content-box .text {
    margin-right: 120px;
}

.lf-main.opt-body-left .contents .label .opt-img {
    left: -20px;
    object-position: bottom left;
}

.lf-main.opt-body-left .contents .label .content-box .text {
    margin-left: 120px;
}

/** 两列网格 **/
.lf-main.opt-grid .contents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lf-main.opt-grid .contents .label .content-box .text {
    margin-right: 0;
}

/** 右下角人物大图：按剩余一屏高度完整缩放，不裁腿、不撑出滚动 **/
.lf-main.has-hero {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.lf-main.has-hero .title-box {
    flex: 0 0 auto;
}

.lf-main.has-hero .contents {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    min-height: 0;
}

.lf-main.has-hero .hero-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-width: 68%;
    max-height: min(100%, 72%);
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
    z-index: 0;
}

.lf-main.opt-narrow.has-hero .hero-img {
    max-width: 68%;
}

.lf-main.opt-narrow.has-hero.has-hero-tight .hero-img {
    max-width: 56%;
    max-height: min(100%, 58%);
}

.lf-main.has-hero.has-hero-tight .contents {
    gap: clamp(6px, 1.2vh, 0.8rem);
}

.lf-main.has-hero.has-hero-tight .contents .label {
    height: auto;
    min-height: 52px;
    flex: 0 1 auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.lf-main.has-hero.has-hero-tight .title-box .title {
    padding-top: clamp(12px, 3.6vh, 30px);
}

@media (max-height: 640px) {
    .lf-main.has-hero .title-box .title {
        padding-top: 12px;
        font-size: 20px;
        line-height: 24px;
    }

    .lf-main.has-hero .contents {
        margin-top: 10px;
        gap: 6px;
    }

    .lf-main.has-hero .contents .label {
        height: auto;
        min-height: 48px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/** 标题下方配图（与 hero 图比例一致） **/
.lf-main.has-top-img .top-img {
    display: block;
    width: 68%;
    max-width: none;
    margin: 18px auto 4px;
    object-fit: contain;
}

/** 过渡页：绿色图标 + 左对齐标题 + 两段正文 **/
.lf-main.tr-badge {
    display: flex;
    flex-direction: column;
}

.lf-main.tr-badge .tr-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--lf-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
}

.lf-main.tr-badge .tr-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* 切图本身已是绿底圆形图标时，不再叠加背景与反色 */
.lf-main.tr-badge .tr-icon.tr-icon-full {
    background: none;
}

.lf-main.tr-badge .tr-icon.tr-icon-full img {
    width: 100%;
    height: 100%;
    filter: none;
}

.lf-main.tr-badge .title-box {
    align-items: flex-start;
    text-align: left;
    gap: 14px;
}

.lf-main.tr-badge .title-box .title {
    font-weight: 900;
    font-size: 28px;
    line-height: 34px;
    text-align: left;
    padding-top: 20px;
}

.lf-main.tr-badge .title-box .body {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    line-height: 22px;
    text-align: left;
    margin: 0;
}

.lf-main.tr-badge .title-box .body em {
    font-style: normal;
    color: var(--lf-green);
}

.lf-main.tr-badge .title-box .body-sub {
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 22px;
    text-align: left;
    margin: 0;
}

.lf-main.tr-badge .title-box .body-sub b {
    font-weight: 700;
    color: #000000;
}

/* 标题内的绿色高亮片段（配合 data-i18n-html 的 <em>） */
.lf-main .title-box .title em {
    font-style: normal;
    color: var(--lf-green);
}

/** 浅绿圆角提示条：左侧小图标 + 灰色说明文字 **/
.lf-main .tr-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    background: var(--lf-green-notice);
    text-align: left;
}

.lf-main .tr-notice .tr-notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lf-main .tr-notice .tr-notice-text {
    font-weight: 400;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 20px;
}

/* ==========================================================================
   输入页版式：单位切换 + 白底输入框 + 彩色提示条
   用于 age_input / name / height / weight / goal_weight
   ========================================================================== */

.lf-main.input-page .contents {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    text-align: left;
}

/** 单位切换（CM/FT、KG/LB）：浅绿轨道 + 绿色药丸 **/
.lf-main.input-page .units {
    display: flex;
    align-self: center;
    gap: 4px;
    margin: 40px 0 28px;
    padding: 4px;
    border-radius: 9999px;
    background: var(--lf-unit-track);
}

/* 只有一个单位可选时不画轨道，直接呈现为一颗绿色药丸 */
.lf-main.input-page .units:has(span:only-child) {
    padding: 0;
    background: none;
}

.lf-main.input-page .units span {
    min-width: 88px;
    height: 44px;
    line-height: 44px;
    padding: 0 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
    text-transform: uppercase;
}

.lf-main.input-page .units span.active {
    background: var(--lf-green);
    color: #FFFFFF;
}

/** 白底输入框 **/
.lf-main.input-page .input-box {
    position: relative;
    height: 65px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--lf-border);
}

.lf-main.input-page .input-box .input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    background: none;
    border: none;
    outline: none;
    font-weight: 900;
    font-size: 28px;
    color: #000000;
    text-align: center;
}

.lf-main.input-page .input-box .input::placeholder {
    font-weight: 900;
    color: #C3C3C3;
}

/* 右侧灰色单位后缀 */
.lf-main.input-page .input-box .text {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 28px;
    color: #C3C3C3;
    pointer-events: none;
}

/* 留出后缀的位置，数值不会压到单位上 */
.lf-main.input-page .input-box:has(.text) .input {
    padding-right: 64px;
}

/** ft + in 两栏（display 由 js 切换） **/
.lf-main.input-page .ft-input {
    display: none;
    gap: 16px;
}

.lf-main.input-page .ft-input .item {
    flex: 1;
}

.lf-main.input-page .ft-input .input {
    padding-left: 32px;
    text-align: left;
}

/** 数据处理同意勾选：只有方框可点 **/
.lf-main.input-page .consent-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    cursor: default;
}

.lf-main.input-page .consent-box .consent-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.lf-main.input-page .consent-box .consent-mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    box-sizing: border-box;
    border: 2px solid var(--lf-green);
    border-radius: 5px;
    background: #FFFFFF;
    cursor: pointer;
}

.lf-main.input-page .consent-box:has(.consent-check:checked) .consent-mark {
    background: var(--lf-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.lf-main.input-page .consent-box .consent-text {
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    line-height: 22px;
    cursor: default;
}

.lf-main.input-page .consent-box .consent-link {
    color: #2F80ED;
    text-decoration: none;
    cursor: pointer;
}

/** 彩色提示条：图标 + 加粗标题 + 灰色说明 **/
.lf-main .label-desc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    border-radius: 20px;
    background: var(--lf-notice-purple);
    text-align: left;
}

.lf-main .label-desc .lefts {
    flex-shrink: 0;
    line-height: 22px;
}

.lf-main .label-desc .lefts img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.lf-main .label-desc .rights {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-main .label-desc .rights .desc {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    line-height: 22px;
}

.lf-main .label-desc .rights .sub-desc {
    font-weight: 400;
    font-size: 15px;
    color: #666666;
    line-height: 21px;
}

/* 说明文字里的红色高亮片段 */
.lf-main .label-desc .rights .sub-desc em,
.lf-main .label-desc .rights .sub-desc span {
    font-style: normal;
    color: #FF5757;
}

/* 提示条配色：由页面或 js 挂在 .label-desc 上 */
.lf-main .label-desc.notice-purple { background: var(--lf-notice-purple); }
.lf-main .label-desc.notice-rose   { background: var(--lf-notice-rose); }
.lf-main .label-desc.notice-green  { background: var(--lf-notice-green); }
.lf-main .label-desc.notice-pink   { background: var(--lf-notice-pink); }
.lf-main .label-desc.notice-red    { background: var(--lf-notice-red); }
.lf-main .label-desc.notice-orange { background: var(--lf-notice-orange); }

/* 输入框错误提示 */
.lf-main .contents .tips {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: #FF0000;
}

/** 按钮(下一步) **/
.button-box {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    bottom: 0;
    cursor: pointer;
    margin: 1.5rem 0;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 默认按钮 */
.button {
    width: 100%;
    height: 3.45rem;
    color: #FFF;
    cursor: pointer;
    border-radius: 9999px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus,
.button:focus-visible,
.button:active {
    outline: none;
    box-shadow: none;
}

/* 亮色按钮 */
.button-bright {
    background-color: var(--lf-green);
}

/* 灰色按钮 */
.button-dusty {
    background-color: #D0D0D0;
    pointer-events: none; /* 阻止鼠标事件 */
    cursor: not-allowed; /* 显示禁止光标 */
}

/* 灰色按钮点击时的颜色 */
.button-dusty:active {
    background-color: var(--lf-green);
}

/* 文字链接样式的按钮：无底色、下划线，用作次要操作 */
.button-link {
    height: auto;
    padding: 4px 0;
    background: none;
    border: none;
    font-weight: 400;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: underline;
}

.button-link:active {
    color: var(--lf-green);
}

/* 透明色按钮 */
.button-blur {
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(3px);
}

/* 透明色按钮点击时的颜色 */
.button-blur:active {
    background-color: rgba(34, 197, 94, 1);
}

/* 灰色不可用按钮 */
.button-no {
    pointer-events: none; /* 阻止鼠标事件 */
    cursor: not-allowed; /* 显示禁止光标 */
    background-color: rgb(202, 202, 202);
    color: rgb(255, 255, 255);
}

/* 按钮文本 */
.button-text {
    font-size: 1.125rem;
    font-weight: 800;
    overflow-wrap: break-word;
}

.button.is-loading {
    pointer-events: none;
}

.button.is-loading > * {
    opacity: 0;
}

.button.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    box-sizing: border-box;
    border: 3.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 576px !important;
    }

    .button-box {
        max-width: calc(576px - 40px);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px !important;
    }
    .loading-box {
        max-width: 768px !important;
    }

    .button-box {
        max-width: calc(768px - 40px);
    }
}


/* 加载转圈 */
.popup-loading {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    place-items: center;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* 半透明背景 */
    z-index: 10;
    /* 确保在最上层 */
    pointer-events: none; /* 阻止鼠标事件 */
    cursor: not-allowed; /* 显示禁止光标 */
}

.popup-loading-spinner {
    width: 40px;
    /* 设定圆圈的大小 */
    height: 40px;
    border: 4px solid #f3f3f3;
    /* 边框颜色 */
    border-top: 4px solid #3498db;
    /* 顶部颜色 */
    border-radius: 50%;
    /* 圆形 */
    animation: spin 1s linear infinite;
    /* 添加动画 */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    /* 从0度开始 */
    100% {
        transform: rotate(360deg);
    }

    /* 旋转360度 */
}

/* SPA 切屏：新页全幅滑入，等 CSS 时旧页遮罩仍盖住 */
html.spa-fading {
    overflow-x: hidden;
    background-color: var(--lf-page-bottom);
}

html.spa-fading body,
html.spa-fading .container {
    background: var(--lf-page-gradient);
    background-color: var(--lf-page-bottom);
}

html.spa-fading body.index-page,
html.spa-fading body.index-page .container {
    background: #ffffff;
    background-color: #ffffff;
}

html.spa-fading .lf-header,
html.spa-keep-header .lf-header,
html.spa-keep-header .container > .progress-bar-box {
    background: #ffffff;
    z-index: 2;
}

html.spa-fading,
html.spa-fading body,
html.spa-fading .container {
    overflow-x: hidden !important;
}

html.spa-fading main.lf-main,
html.spa-fading .button-box {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
}

/* 新页 CSS 未生效前先藏住 body，避免未样式 DOM 闪一下 */
html.spa-css-pending body {
    visibility: hidden !important;
}

/* 问卷顶栏常驻时只藏主内容和底部按钮，logo 可以立刻显示 */
html.spa-keep-header.spa-css-pending body {
    visibility: visible !important;
}

html.spa-keep-header.spa-css-pending main.lf-main,
html.spa-keep-header.spa-css-pending .button-box {
    visibility: hidden !important;
}

html.spa-keep-header.spa-leaving .container > :not(header.lf-header):not(.progress-bar-box) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

.spa-slide-clip {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
    background: var(--lf-page-bottom);
    contain: strict;
    transform: translateZ(0);
}

.spa-slide-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--lf-page-bottom);
}
