/* 声明 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;
}

* {
    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; /* 统一行高 */
}

input {
    background-color: transparent;
    border: 0;
}

button {
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    outline: none;
    background-color: transparent;
}

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;
}

/*** 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;
}

.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: #FC5990;
}

.lf-header .progress-number-box .total {
    color: #575757;
}

/*** 主体 ***/
.lf-main {
    min-height: calc(var(--full-height, 100vh) - 3.2rem);
    background: linear-gradient( 180deg, #FFECEC 0%, #FFFBFB 100%);
    padding: 0px 16px 104px;
}

/** 进度条 **/
.lf-main .progress-bar-box progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 5px;
    border: none;
    border-radius: 4px;
    background-color: #FED3DD;
}

/* === WebKit 内核浏览器（Chrome、Safari、Edge 等） === */
/* 背景(未完成部分) */
.lf-main .progress-bar-box progress::-webkit-progress-bar {
    background-color: #FED3DD;
    border-radius: 4px;
}
/* 进度颜色(已完成部分) */
.lf-main .progress-bar-box progress::-webkit-progress-value {
    background-color: #FC5990;
    border-radius: 4px;
}

/* === Firefox 浏览器 === */
/* 进度颜色(已完成部分) */
.lf-main .progress-bar-box progress::-moz-progress-bar {
    background-color: #FC5990;
    border-radius: 4px;
}


/** 标题 **/
.lf-main .title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.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;
    padding: 20px;
    background: #FFFFFF;
    box-shadow: 0px 2px 9px 0px rgba(0,0,0,0);
    border-radius: 21px;
    border: 1px solid #ECECEC;
}

.lf-main .contents .label .content-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.lf-main .contents .label .content-box .icon {
    width: 24px;
}

.lf-main .contents .label .content-box .text {
    font-weight: 500;
    font-size: 18px;
    color: #000000;
    line-height: 21px;
    margin-right: 20px;
}

.lf-main .contents .label .content-box .ckicon {
    width: 26px;
    height: 26px;
    position: absolute;
    right: 0;
    background-image: url('../images/ck_unchecked.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 隐藏内容样式 */
.lf-main .contents .label .line {
    border: 1px solid #FC5990;
    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: #FFEEF4;
    box-shadow: 0px 2px 9px 0px rgba(0,0,0,0);
    border-radius: 21px;
    border: 2px solid #FC5990;
}

.lf-main .contents .label-selected .line {
    display: block !important;
}

.lf-main .contents .label-selected .desc-box {
    display: block !important;
}

.lf-main .contents .label-selected .content-box .ckicon {
    background-image: url('../images/ck_checked.png') !important;
}

/* 输入框错误提示 */
.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: 0px;
    cursor: pointer;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 21.43rem;
}

/* 默认按钮 */
.button {
    width: 100%;
    height: 3.45rem;
    color: #FFF;
    cursor: pointer;
    border-radius: 1rem;
}

/* 亮色按钮 */
.button-bright {
    background-color: #FC5990;
}

/* 灰色按钮 */
.button-dusty {
    background-color: #D0D0D0;
    pointer-events: none; /* 阻止鼠标事件 */
    cursor: not-allowed; /* 显示禁止光标 */
}

/* 灰色按钮点击时的颜色 */
.button-dusty:active {
    background-color: #FC5990;
}

/* 透明色按钮 */
.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;
}

@media (min-width: 576px) {
    .container {
        max-width: 576px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px !important;
    }
}


/* 加载转圈 */
.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度 */
}
