/* 景叙小手机 - 认证与声明系统 UI (匹配主 UI 的灰色基调风格) */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 加深遮罩层不透明度 */
    backdrop-filter: blur(5px); /* 添加背景模糊进一步凸显高级感和聚焦感 */
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.auth-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 统一弹窗卡片样式 (浅灰色调) */
.jx-modal {
    background: #f2f2f7; /* iOS 设置界面常见的浅灰底色 */
    width: 85%;
    max-width: 320px;
    border-radius: 18px; /* 较圆润的边角匹配主流手机 UI */
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    color: #333;
}

.auth-overlay.show .jx-modal {
    transform: scale(1);
    opacity: 1;
}

.jx-notice-variant {
    max-width: 360px;
    background: #ffffff; /* 须知弹窗使用纯白底色显得更正式 */
}

/* 头部 */
.jx-header {
    text-align: center;
    padding: 24px 20px 16px;
    background: #ffffff; /* 激活码界面头部也为白色，形成卡片感 */
    border-radius: 18px 18px 0 0;
}

.jx-header.jx-border-bottom {
    border-bottom: 1px solid #e5e5ea;
    background: #f9f9f9; /* 须知弹窗头部带一点点灰度 */
}

.jx-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 6px 0;
}

.jx-subtitle {
    font-size: 13px;
    color: #8e8e93;
    margin: 0;
}

/* 主体 */
.jx-body {
    padding: 20px;
}

.jx-body.jx-text-left {
    text-align: left;
}

.jx-body.jx-scrollable {
    padding: 20px 24px;
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 输入框区域 */
.jx-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.jx-input {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    text-align: center;
    outline: none;
    color: #000;
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.jx-input::placeholder {
    color: #c7c7cc;
}

.jx-input:focus {
    border-color: #8e8e93; /* 聚焦时不使用刺眼的彩色，使用深灰 */
    box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.1);
}

.jx-error {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #ff3b30;
    opacity: 0;
    transition: opacity 0.2s;
}

.jx-error.show {
    opacity: 1;
}

.jx-hint {
    text-align: center;
    font-size: 12px;
    color: #8e8e93;
    margin: 0;
}

/* 文档段落 */
.jx-section {
    margin-bottom: 20px;
    background: #f2f2f7; /* 段落背景使用浅灰 */
    padding: 16px;
    border-radius: 12px;
}
.jx-section:last-child {
    margin-bottom: 0;
}

.jx-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.jx-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #8e8e93;
    border-radius: 2px;
    margin-right: 8px;
}

.jx-text {
    font-size: 13.5px;
    color: #48484a;
    line-height: 1.6;
    margin: 0 0 8px 0;
    text-align: justify;
}
.jx-text:last-child {
    margin-bottom: 0;
}
.jx-text strong {
    color: #000;
    font-weight: 600;
}

/* 底部与按钮 */
.jx-footer {
    padding: 0 20px 20px;
}

.jx-footer.jx-border-top {
    border-top: 1px solid #e5e5ea;
    padding: 16px 20px;
    background: #f9f9f9;
}

.jx-btn {
    width: 100%;
    background: #48484a; /* 主按钮使用深灰，贴合整体灰色调 */
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.jx-btn:active {
    background: #3a3a3c;
}

/* 动画效果 */
@keyframes jx-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: jx-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
