﻿:root{
--ios-blue:#007aff;
--ios-bg:#ffffff;
--ios-gray:#8e8e93;
--ios-red:#ff3b30;
}

html,body{
width:100%;
height:100%;
overflow:hidden;
position:fixed;
margin:0;
padding:0;
font-family:sans-serif;
background:var(--ios-bg);
}

.view{
display:none;
width:100%;
height:100%;
flex-direction:column;
box-sizing:border-box;
padding:40px 30px;
animation:fadeIn .2s;
overflow-y:auto;
}

.view.active{display:flex;}

@keyframes fadeIn{
from{opacity:0;}
to{opacity:1;}
}

.content-box{
width:100%;
max-width:400px;
margin:0 auto;
}

h2{
font-size:32px;
margin-bottom:30px;
}

.form-group{margin-bottom:15px;}

/* 输入框 + 清除按钮 */
.input-wrapper{
position:relative;
}

.input-wrapper input{
width:100%;
padding:16px;
border:none;
border-radius:12px;
font-size:16px;
background:#f2f2f7;
box-sizing:border-box;
outline:none;
}

.clear-btn{
position:absolute;
right:15px;
top:50%;
transform:translateY(-50%);
font-size:20px;
color:#999;
cursor:pointer;
display:none;
}

/* 按钮 */
.btn-main{
width:100%;
padding:16px;
margin-top:15px;
background:var(--ios-blue);
color:#fff;
border:none;
border-radius:12px;
font-size:18px;
font-weight:bold;
}

.btn-red{background:var(--ios-red);}

.checkbox-group{
display:flex;
align-items:center;
margin:10px 0;
font-size:14px;
color:var(--ios-gray);
}

.checkbox-group input{
margin-right:10px;
width:18px;
height:18px;
}

.action-links{
display:flex;
justify-content:space-between;
margin-top:20px;
font-size:15px;
}

.action-links a{
color:var(--ios-blue);
text-decoration:none;
}

/* 弹窗 */
.modal-overlay{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.5);
justify-content:center;
align-items:center;
z-index:5000;
}

.modal-content{
background:#fff;
width:85%;
max-width:320px;
padding:25px;
border-radius:20px;
text-align:center;
box-sizing:border-box;
}














/* ===== 注册页面样式 ===== */

.register-view{
padding:0;
background:#f5f5f5;
}

.register-header{
height:60px;
background:#1e88e5;
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 15px;
font-size:18px;
}

.back-btn{
font-size:22px;
cursor:pointer;
}

.header-title{
font-weight:bold;
}

.more-btn{
font-size:22px;
}

.register-body{
padding:20px 25px;
}

.line-group{
margin-bottom:25px;
}

.line-group label{
display:block;
font-size:16px;
margin-bottom:8px;
}

.required{
color:red;
}

.line-group input{
width:100%;
border:none;
border-bottom:1px solid #aaa;
padding:8px 0;
background:transparent;
font-size:16px;
outline:none;
}

.code-group{
position:relative;
}

.code-btn{
position:absolute;
right:0;
bottom:0;
padding:8px 15px;
background:#ddd;
border:none;
border-radius:6px;
}

.tips{
color:red;
font-size:14px;
margin:15px 0;
}

.register-actions{
display:flex;
justify-content:space-between;
margin-top:30px;
}

.btn-gray{
width:45%;
padding:12px;
background:#ccc;
border:none;
border-radius:6px;
font-size:16px;
}



.select-box{
padding:12px;
border-bottom:1px solid #aaa;
cursor:pointer;
color:#555;
}

.selector-overlay{
display:none;
position:fixed;
left:0;
bottom:0;
width:100%;
height:100%;
background:rgba(0,0,0,.4);
z-index:4000;
align-items:flex-end;
}

.selector-box{
background:#fff;
width:100%;
padding:15px;
border-radius:15px 15px 0 0;
max-height:50%;
overflow:auto;
}

.selector-item{
padding:15px;
border-bottom:1px solid #eee;
text-align:center;
}
.selector-item:last-child{border:none;}
