/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
/* 隐藏Vue未编译闪烁 */
[v-cloak] {
    display: none !important;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0 0 80px 0;
}

/*遮罩层*/
.zhezhaodiv{
   background:rgba(0,0,0,.6);position:fixed;left:0;top:0;width:100%;height:100%;z-index:999;
} 

/*遮罩层-默认不显示*/
/* ================= 遮罩层 & 弹窗 ================= */
.coverdiv{
    background: rgba(15, 23, 42, .55);
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: coverFade .2s ease;
}
@keyframes coverFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.coverbox{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 22px 24px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
    animation: coverPop .28s cubic-bezier(.22, .9, .32, 1.2);
}
@keyframes coverPop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 弹窗头部：改成弹窗内部相对定位，避免遮挡文字 */
.coverbox-top{
    position: relative;
    z-index: 2;
    width: auto;
    margin: 0 -22px 6px;
    padding: 6px 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.coverbox-close{
    text-align: right;
    padding: 10px 20px;
}
.coverbox-close img{
    width: 18px;
    height: auto;
    opacity: .45;
    transition: opacity .2s, transform .25s;
}
.coverbox-close img:hover{
    opacity: 1;
    transform: rotate(90deg);
}

.coverbox-main{
    margin: 10px 20px;
    line-height: 28px;
}
.coverbox-title{
    font-size: 1rem;
    color: #999;
    line-height: 2rem;
}
.coverbox-txt{
    padding: 10px;
    text-align: left;
    font-size: .875rem;
    color: #999;
    line-height: 1.75rem;
}
.inputimg{
    position: absolute;
    text-align: center;
    top: 40;
    opacity: 0;
    width: 150px;
    height: 150px;
}
/* ================= 遮罩层 & 弹窗 end ================= */
/*遮罩层-默认不显示*/
/* 手机容器 */
#app {
    max-width: 420px;
    width: 100%;
    background: #f5f7fb;
    min-height: 100vh;
    position: relative;
    padding: 0 16px 20px;
}

/* ===== 顶部标题 ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    background: transparent;
}
.app-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}
.app-header h1 i {
    color: #f59e0b;
    margin-right: 6px;
}
.app-header .header-actions {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 20px;
}
.app-header .header-actions i {
    cursor: pointer;
    transition: color 0.2s;
}
.app-header .header-actions i:active {
    color: #6366f1;
}

/* ===== 考试状态卡片（完全保留原样式并美化） ===== */
.smbox {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}
.smbox .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.smbox .title .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 30px;
    margin-left: 8px;
    vertical-align: middle;
    background: #10b981;
    color: #fff;
}
.smbox .title .badge.closed {
    background: #ef4444;
}
.smbox .title .badge.error {
    background: #f59e0b;
}
.smbox .sub-desc {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
    margin-bottom: 16px;
}
.smbox .highlight-num {
    display: inline-block;
    background: #eef2ff;
    color: #6366f1;
    font-weight: 700;
    font-size: 20px;
    padding: 0 12px;
    border-radius: 8px;
    line-height: 1.6;
    margin: 0 2px;
}

/* 按钮 */
.btn-primary {
    display: inline-block;
    padding: 14px 44px;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
    display: inline-block;
    padding: 14px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
    letter-spacing: 0.5px;
}
.btn-secondary i {
    margin-right: 6px;
}

.mw-wzsm {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin: 15px 0 0 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}
/* ===== 考试说明 (fieldset) ===== */
.layui-elem-field {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin: 0 0 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(248, 239, 239, 0.5);
    overflow: hidden;
}
.layui-elem-field legend {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    padding: 2px 20px 0;
    background: transparent;
    border: none;
    width: auto;
    display: block;
    float: none;
    margin: 0;
}
.layui-elem-field legend i {
    color: #6366f1;
    margin-right: 8px;
}
.layui-field-box {
    padding: 8px 20px 20px;
}
.layui-field-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.layui-field-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}
.layui-field-box ul li:last-child {
    border-bottom: none;
}
.layui-field-box ul li .li-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    margin-top: 2px;
    background: #6366f1;
}
.layui-field-box ul li:nth-child(1) .li-icon {
    background: #10b981;
}
.layui-field-box ul li:nth-child(2) .li-icon {
    background: #3b82f6;
}
.layui-field-box ul li:nth-child(3) .li-icon {
    background: #8b5cf6;
}
.layui-field-box ul li:nth-child(4) .li-icon {
    background: #f59e0b;
}
.layui-field-box ul li:nth-child(5) .li-icon {
    background: #ef4444;
}
.layui-field-box ul li:nth-child(6) .li-icon {
    background: #06b6d4;
}
.layui-field-box ul li .li-text {
    flex: 1;
}
.layui-field-box ul li .li-text strong {
    color: #6366f1;
    font-weight: 700;
}

/* ===== 消息中心 & 会员中心 内容 ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 消息列表 */
.msg-list {
    background: #fff;
    border-radius: 20px;
    padding: 8px 0;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.msg-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 14px;
}
.msg-item:last-child {
    border-bottom: none;
}
.msg-item .msg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 20px;
    flex-shrink: 0;
}
.msg-item .msg-body {
    flex: 1;
}
.msg-item .msg-body .msg-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}
.msg-item .msg-body .msg-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.msg-item .msg-body .msg-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* 会员中心 */
.profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    margin-top: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.profile-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.profile-card .username {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}
.profile-card .user-id {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 4px;
}
.profile-card .user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.profile-card .user-stats .stat-item {
    text-align: center;
}
.profile-card .user-stats .stat-item .num {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}
.profile-card .user-stats .stat-item .label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ===== 底部导航 ===== */
.foot {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px 24px 0 0;
    z-index: 999;
}
.foot-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    padding: 4px 0;
}
.foot-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    gap: 2px;
    transition: color 0.25s;
}
.foot-item a .icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 22px;
}
.foot-item a p {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s;
}
.foot-item.active a p {
    color: #6366f1;
    font-weight: 600;
}
.foot-item.active a .icon-wrap {
    background: #eef2ff;
    color: #6366f1;
}
.foot-item.active::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #6366f1;
    border-radius: 4px;
}

/* ===== 辅助 ===== */
.mt-2 {
    margin-top: 8px;
}
.mb-2 {
    margin-bottom: 8px;
}
.text-muted {
    color: #94a3b8;
    font-size: 13px;
}


/* ===== 弹窗表单 ===== */
.webox-login-title{
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.webox-login-input{
    position: relative;
    margin: 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    color: #1e293b;
    font-size: .9rem;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.webox-login-input:hover{
    border-color: #c7d2fe;
}
.webox-login-input:focus-within{
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.webox-login-input input{
    border: 0;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
    color: #1e293b;
    background: transparent;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
}
.webox-login-input input::placeholder{
    color: #94a3b8;
}

/* 兼容旧的 webox 组合类 */
.webox-login-input.webox{
    display: block;
}
.webox-login-input.webox-row{
    display: flex;
    align-items: center;
}
.webox-login-input.webox-start{
    justify-content: flex-start;
}

/* ===== 认证我的信息 按钮 ===== */
.login-btn{
    display: block;
    width: 100%;
    padding: 13px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
    transition: transform .15s, box-shadow .25s, filter .2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.login-btn:active{
    transform: scale(.97);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
    filter: brightness(.95);
}
.login-btn.common-div{
    /* 如果 common-div 之前有别的定义，这里只追加，不覆盖 */
    margin-top: 6px;
}

/* ===== 响应式 ===== */
@media (max-width: 420px) {
    #app {
        padding: 0 12px 20px;
    }
    .smbox .title {
        font-size: 18px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 12px 32px;
        font-size: 15px;
    }
    .app-header h1 {
        font-size: 19px;
    }
    .msg-item .msg-body .msg-title {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .smbox {
        padding: 18px 14px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }
    .profile-card .avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}

/* ================= 省市县选择器 ================= */

/* 弹窗里的地区选择框 */
.region-input{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.region-input .region-text{
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e293b;
}
.region-input .region-placeholder{
    color: #94a3b8;
}
.region-input .fa-chevron-right{
    color: #cbd5e1;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 遮罩 */
.region-picker-mask{
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2000;
    animation: coverFade .2s ease;
}

/* 底部抽屉 */
.region-picker{
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    z-index: 2001;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
    animation: regionUp .3s cubic-bezier(.22, .9, .32, 1);
    overflow: hidden;
}
@keyframes regionUp{
    from { transform: translate(-50%, 100%); }
    to   { transform: translate(-50%, 0); }
}

/* 头部 */
.region-picker-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 10px;
    flex-shrink: 0;
}
.region-picker-header .region-title{
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: .3px;
}
.region-picker-header .region-close{
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    transition: color .2s, transform .25s;
}
.region-picker-header .region-close:hover{
    color: #ef4444;
    transform: rotate(90deg);
}

/* 面包屑 tabs */
.region-tabs{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.region-tabs::-webkit-scrollbar{ display: none; }
.region-tab{
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    cursor: pointer;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.region-tab.active{
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
}

/* 列表 */
.region-list{
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 20px;
}
.region-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background .15s, color .15s;
    border-bottom: 1px solid #f8fafc;
    -webkit-tap-highlight-color: transparent;
}
.region-item:active{
    background: #f1f5f9;
}
.region-item .fa-check{
    color: #6366f1;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s;
}
.region-item.selected{
    color: #6366f1;
    font-weight: 600;
    background: #eef2ff;
}
.region-item.selected .fa-check{
    opacity: 1;
}

/* 空状态 */
.region-empty{
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 13px;
}

/* 地区选择器 - 加载中 */
.region-loading{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 50px 0;
    color: #94a3b8;
    font-size: 14px;
}
.region-loading .fa-spinner{
    color: #6366f1;
    font-size: 18px;
}

