/* 原有样式保留，仅补充苹果风对话框 */
.mui-input-row .mui-numbox {
    float: left;
    margin: 2px 0px;
}
.camera-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}
.camera-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    z-index: 1001;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.modal-header h3 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 18px;
}
.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
}
.text-center {
    text-align: center;
}
.btn-group-flex {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    position: relative;
}
.btn-group-flex .mui-btn {
    flex: 1 1 auto;
    min-width: 100px;
}
/* 隐藏原上传按钮，但仍保留可点击性（移出屏幕） */
#ID-upload-demo-btn {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
/* 原扫码按钮隐藏，通过全局函数调用 */
#scan-qr-btn {
    display: none;
}
.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.action-row .mui-btn {
    flex: 1 1 auto;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 14px;
}
.usb-hint {
    font-size: 12px;
    color: #f7622c;
    margin-top: 5px;
    background: #fff2e8;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #ff6600;
}
.edge-download-link {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 0;
    font-size: 16px;
    text-decoration: none;
}
.browser-note {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
#authcode_title, #authcode_row {
    display: none;
}

/* ---------- 苹果风格 Action Sheet (全新) ---------- */
.ios-action-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 2000;
    display: none;
    transition: opacity 0.2s;
}
.ios-action-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f8f8;
    border-radius: 16px 16px 0 0;
    padding: 8px 10px 20px 10px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.2s ease-out;
    z-index: 2001;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.ios-action-sheet.show {
    transform: translateY(0);
}
.ios-action-group {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ios-action-item {
    text-align: center;
    padding: 16px 10px;
    font-size: 20px;
    font-weight: 400;
    color: #007aff;
    border-bottom: 0.5px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: background 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.ios-action-item:active {
    background: #e5e5e5;
}
.ios-action-item:last-child {
    border-bottom: none;
}
.ios-action-cancel {
    text-align: center;
    padding: 16px 10px;
    font-size: 20px;
    font-weight: 600;
    color: #007aff;
    background: white;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.ios-action-cancel:active {
    background: #e5e5e5;
}
/* 输入对话框（苹果风格） */
.ios-input-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
}
.ios-input-dialog {
    width: 280px;
    background: #f8f8f8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.ios-input-header {
    padding: 24px 16px 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #000;
}
.ios-input-field {
    padding: 8px 20px 20px;
}
.ios-input-field input {
    width: 100%;
    padding: 12px 10px;
    border: 0.5px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    outline: none;
    box-sizing: border-box;
}
.ios-input-field input:focus {
    border-color: #007aff;
}
.ios-input-buttons {
    display: flex;
    border-top: 0.5px solid #d0d0d0;
}
.ios-input-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 17px;
    color: #007aff;
    background: white;
    cursor: pointer;
    transition: background 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.ios-input-btn:active {
    background: #e5e5e5;
}
.ios-input-btn.cancel {
    font-weight: 400;
    border-right: 0.5px solid #d0d0d0;
}
.ios-input-btn.confirm {
    font-weight: 600;
}