/* ================= 全局重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '宋体', sans-serif;
}

body {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ================= 视频背景 (强制穿透) ================= */
.video-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -9999 !important;
    overflow: hidden;
    pointer-events: none !important; 
}
.video-bg video, .video-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none !important;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -9998 !important;
    pointer-events: none !important;
}

/* ================= 主容器 ================= */
.main-container {
    position: relative;
    width: 1139px;
    height: 728px;
    background: url('https://img.alicdn.com/imgextra/i1/859279943/O1CN01PkRRRq2NJxCv8NWSb_!!859279943.png') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transform-origin: center center;
    /* 背景图本身不拦截点击 */
    pointer-events: none;
    z-index: 1;
}

/* ================= 左侧内容区域 (表单) ================= */
.content-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 190px; 
    padding-left: 230px; 
    
    /* 恢复鼠标事件，并提到最高层 */
    pointer-events: auto !important;
    z-index: 1000 !important; 
}

/* ================= 右侧提示框 ================= */
.box_y {
    position: absolute;
    right: 180px;
    top: 220px;
    width: 220px;
    height: 360px;
    background: url('https://img.alicdn.com/imgextra/i3/859279943/O1CN01xzrXKX2NJxCtqCimK_!!859279943.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 40px 20px;
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    z-index: 1000;
    text-align: left;
    pointer-events: auto; 
}
#tipContent { 
    color: #ccc;
    word-wrap: break-word;
}

/* ================= 表单行 ================= */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    justify-content: flex-start;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* 左侧图片标签 */
.row-icon {
    width: 80px; 
    height: auto;
    text-align: right; 
    display: block;
    margin-right: 15px;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 5;
}

/* ================= 输入框容器 ================= */
.input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 300px;
    position: relative;
    z-index: 20;
    pointer-events: auto !important;
}

/* ================= 【核心修复】所有输入框 (最高层) ================= */
input[type="text"],
input[type="password"] {
    height: 24px;
    background: #cbc5c3;
    border: 1px solid #999;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 0 8px;
    outline: none;
    width: 100%;
    
    /* 永远在最顶层 */
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: text !important;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #ffcc00;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

#mobile, #verifyCode {
    z-index: 10000 !important;
}

.hint {
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
    pointer-events: none;
    z-index: 1;
}

/* ================= 获取验证码按钮 ================= */
.get-code-btn {
    position: relative;
    z-index: 500; 
    height: 40px;
    width: 160px;
    flex-shrink: 0;
    background: url('https://img.alicdn.com/imgextra/i1/859279943/O1CN01ueEIpE2NJxCuI1orL_!!859279943.png') no-repeat center center;
    background-size: contain;
    border: none;
    color: #ffde8c;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
    line-height: 26px;
    text-align: center;
    pointer-events: auto !important;
    margin-left: 5px;
}
.get-code-btn:disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
}

.custom-btn-pos {
    position: relative; 
    top: -2px;  
    left: 0px;   
    z-index: 10000;
}

/* ================= 【注册按钮) ================= */
.fixed-submit-btn {
    /* 关键：使用绝对定位，脱离文档流 */
    position: absolute; 
    
    /* 【上下位置】相对于 .content-box 的顶部计算 */
    top: -100px;  /* <--- 调这个数字来固定上下位置 */
    
    /* 【左右位置】相对于 .content-box 的左边计算 */
    left: 250px; /* <--- 调这个数字来固定左右位置 */
    
    /* 清除原来的 margin，防止干扰 */
    margin-left: 0 !important;
    margin-top: 0 !important;
    
    z-index: 2000;
}

/* ================= 【全新】协议区域 (Flex 布局，彻底解决点击) ================= */
.agreement-row-new {
    margin-top: 60px;
    margin-bottom: 20px;
    padding-left: 170px;
    
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    
    color: #ccc;
    font-size: 12px;
    width: 100%;
    
    position: relative;
    z-index: 500; 
    pointer-events: auto;
}

/* 勾选框样式 */
.agreement-row-new input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
    z-index: 501;
    position: relative;
    pointer-events: auto !important;
    transform: scale(1.1); /* 稍微放大一点勾选框 */
}

/* 【修复】普通文字样式 ("我已阅读并同意") */
.agreement-row-new .agree-text {
    user-select: none; /* 防止文字被选中 */
    cursor: pointer;   /* 鼠标变成小手 */
    font-size: 14px;
    color: #ccc;
    /* 关键：移除 pointer-events: none，让 label 能接收点击 */
    pointer-events: auto !important; 
    z-index: 502;
    position: relative;
    display: inline-block;
}

/* 【修复】链接样式 ("用户协议", "隐私政策") */
.agreement-row-new .agree-link {
    color: #ffcc00;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    /* 确保链接能独立点击 */
    pointer-events: auto !important;
    z-index: 503; /* 比文字层级稍高，防止冲突 */
    position: relative;
    display: inline-block;
}
.agreement-row-new .agree-link:hover {
    color: #fff;
    text-decoration: underline; /* 鼠标悬停显示下划线 */
}

/* “和”字样式 */
.agreement-row-new .agree-and {
    user-select: none;
    pointer-events: none;
    font-size: 14px;
    color: #ccc;
}

/* 提交按钮 */
.submit-btn {
    width: 160px;
    height: 40px;
    background: linear-gradient(135deg, #ffcc00 0%, #cc9900 100%);
    color: #330000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    margin-left: 300px; 
    position: relative;
    z-index: 2000;
}
.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; justify-content: center; align-items: center; z-index: 9999;
}
.modal-box {
    background: #2a0000; border: 2px solid #ffcc00;
    padding: 30px; width: 400px; text-align: center; color: #fff; border-radius: 8px;
}
.modal-btn {
    background: #ffcc00; color: #000; border: none;
    padding: 8px 20px; margin-top: 15px; cursor: pointer; font-weight: bold;
}

input.error { border-color: #ff4757 !important; background: #ffebee !important; }
input.success { border-color: #2ed573 !important; background: #e8f5e9 !important; }

/* ================= 单独控制每个输入框的宽度 ================= */
#account { width: 110px !important; }
#password, #confirm-password { width: 130px !important; }
#username { width: 90px !important; }
#idcard { width: 185px !important; }
#birthday { width: 110px !important; }
#question1, #answer1, #question2, #answer2 { width: 240px !important; }
#mobile { width: 115px !important; }
#verifyCode { width: 70px !important; }