/* ==========================================
   1. 全局基础 (🚨新增了 overflow-x: hidden 彻底锁死左右滑动)
   ========================================== */
html, body { 
    margin: 0; 
    padding: 0; 
    background-color: #f4f5f7; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    display: flex; 
    justify-content: center; 
    overflow-x: hidden; 
    width: 100%;
}
.page-container { width: 100%; max-width: 450px; padding: 15px; box-sizing: border-box; min-height: 100vh; position: relative; }

/* ==========================================
   2. 顶部蓝底卡片
   ========================================== */
.banner-card { background: linear-gradient(135deg, #4A86FF 0%, #2A5DED 100%); border-radius: 12px; padding: 24px 20px; color: #fff; position: relative; overflow: hidden; margin-bottom: -40px; padding-bottom: 60px; }
.banner-title { font-size: 22px; font-weight: bold; margin-bottom: 6px; }
.banner-sub { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
.banner-list p { margin: 4px 0; font-size: 12px; opacity: 0.8; }

/* ==========================================
   3. 中间填表区域白底卡片
   ========================================== */
.main-content { background-color: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); position: relative; z-index: 2; overflow: hidden; }
.tabs { display: flex; justify-content: space-around; border-bottom: 1px solid #f0f0f0; }
.tab-item { padding: 18px 0; font-size: 16px; color: #666; position: relative; flex: 1; text-align: center; cursor: pointer; }
.tab-item.active { color: #3A74FA; font-weight: bold; }
.tab-item .tab-line { display: none; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background-color: #3A74FA; border-radius: 2px; }
.tab-item.active .tab-line { display: block; }

/* ==========================================
   4. 输入框通用样式
   ========================================== */
.form-area { padding: 0 16px; }
.form-list-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.form-list-item.no-border { border-bottom: none; }
.label { font-size: 15px; color: #333; width: 80px; flex-shrink: 0; }
.value-input { flex: 1; font-size: 15px; color: #333; border: none; outline: none; background: transparent; text-align: right; padding: 0; }
.unit { font-size: 15px; color: #333; margin-left: 6px; }

/* ==========================================
   5. 扫描照相机模块
   ========================================== */
.vin-section { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.vin-input-wrap { background-color: #f7f8fa; border-radius: 8px; height: 44px; display: flex; align-items: center; padding: 0 12px; position: relative; }
.vin-input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; pointer-events: none; }
.camera-btn-wrap { position: absolute; right: 0; top: 0; width: 50px; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 99; }
.camera-icon { font-size: 20px; pointer-events: none; position: relative; z-index: 1; }
#camera-upload { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }

/* ==========================================
   6. 底部提交按钮区 
   ========================================== */
.bottom-action { margin-top: 30px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.btn-group { width: 100%; display: flex; justify-content: center; align-items: center; }

.submit-btn { 
    width: 85%; 
    height: 48px; 
    background-color: #4A86FF; 
    color: #ffffff; 
    font-size: 22px; 
    font-weight: bold; 
    border-radius: 8px; 
    border: none; 
    outline: none; 
    cursor: pointer; 
    display: block; 
    margin: 0 auto; 
    padding: 0; 
    transition: all 0.2s ease; 
    -webkit-tap-highlight-color: transparent; 
}
.submit-btn:active { transform: scale(0.97); opacity: 0.9; }

/* ==========================================
   7. 用户协议勾选框及链接
   ========================================== */
.agreement { display: flex; align-items: center; justify-content: center; margin-top: 15px; }
.agreement input[type="checkbox"] { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.agree-text { font-size: 12px; color: #999; margin-left: 6px; }
.agree-text label { cursor: pointer; }
.agreement-link { 
    color: #4A86FF; 
    cursor: pointer; 
    text-decoration: none; 
}

/* ==========================================
   8. 留资弹窗
   ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 99999; }
.modal-content { background: #fff; width: 85%; max-width: 320px; border-radius: 12px; padding: 25px 20px; position: relative; text-align: center; box-sizing: border-box; animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.modal-close { position: absolute; top: 12px; right: 15px; font-size: 26px; color: #999; cursor: pointer; line-height: 1; }
.modal-title { margin: 0 0 8px; font-size: 18px; color: #333; font-weight: bold; }
.modal-desc { margin: 0 0 20px; font-size: 14px; color: #666; }
.modal-input { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; margin-bottom: 20px; text-align: center; outline: none; background: #f9f9f9; -webkit-appearance: none; }
.modal-input:focus { border-color: #3A74FA; background: #fff; }
.modal-submit-btn { width: 100%; background: #3A74FA; color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.modal-submit-btn:active { opacity: 0.8; }
.modal-safe { font-size: 12px; color: #999; margin-top: 15px; margin-bottom: 0; }

@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================
   9. 用户协议滑出面板
   ========================================== */
.agreement-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background-color: #fff;
    z-index: 999999; 
    transform: translateX(100%); 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.agreement-panel.show {
    transform: translateX(0); 
}

.agreement-header {
    height: 50px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff; 
    z-index: 2; 
}

.back-btn {
    position: absolute;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px 10px 20px; 
    display: flex;
    align-items: center; 
}

.back-arrow-svg {
    width: 18px; 
    height: 18px;
    margin-right: 4px; 
}

.agreement-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.agreement-content {
    height: calc(100% - 50px); 
    box-sizing: border-box; 
    padding: 20px;
    padding-bottom: 80px; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}