/* 声明 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: 'SF Pro', -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;
}

.bg-main {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../images/bg.png');
}

/*** 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;
}

/*** 头部 ***/
.qa-header {
    position: relative;
    height: 3.2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    padding: 1.25rem 1.25rem 0;
}

.qa-header .back-box {
    display: flex;
    margin-right: 12px;
}

/** 进度条 **/
.qa-header .progress-bar-box {
    width: 100%;
}
.qa-header .progress-bar-box progress {
    appearance: none;
    display: block;
    width: 100%;
    height: 7px;
    border: none;
    border-radius: 40px;
    background-color: #F6F5F5;
}

/* === WebKit 内核浏览器（Chrome、Safari、Edge 等） === */
/* 背景(未完成部分) */
.qa-header .progress-bar-box progress::-webkit-progress-bar {
    background-color: #F6F5F5;
    border-radius: 40px;
}
/* 进度颜色(已完成部分) */
.qa-header .progress-bar-box progress::-webkit-progress-value {
    background: linear-gradient( 90deg, #8448F6 0%, #5E48F6 100%);
    border-radius: 40px;
}

/* === Firefox 浏览器 === */
/* 进度颜色(已完成部分) */
.qa-header .progress-bar-box progress::-moz-progress-bar {
    background: linear-gradient( 90deg, #8448F6 0%, #5E48F6 100%);
    border-radius: 40px;
}

/*** 主体 ***/
.qa-main {
    padding: 1.25rem 1.25rem 0;
}

/** 标题 **/
.qa-main .title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
}

.qa-main .title-box .title {
    font-weight: bold;
    font-size: 28px;
    color: #FFFFFF;
    line-height: 64px;
}





/* 输入框错误提示 */
.qa-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: 0 0 1.875rem 0;
    width: 100%;
    max-width: calc(100% - 2.5rem); 
}

/* 默认按钮 */
.button {
    width: 100%;
    height: 3.75rem;
    color: #FFF;
    cursor: pointer;
    border-radius: 2.5rem;
}

/* 亮色按钮 */
.button-bright {
    background: linear-gradient( 90deg, #8448F6 0%, #5E48F6 100%);
}

/* 灰色按钮 */
.button-dusty {
    /* background: linear-gradient( 90deg, #8448F6 0%, #5E48F6 100%), rgba(255,255,255,0.7); */
    background: linear-gradient(90deg, rgb(221, 205, 253), rgb(212, 205, 253));
    background-blend-mode: lighten;
    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.375rem;
    line-height: 1.375rem;
    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;
    }
    .button-box {
        max-width: 25rem; 
    }
}


/* 加载转圈 */
.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度 */
}
