/* 全局样式和CSS变量 */
:root {
    --primary-color: #fc3a01;
    --primary-light: #ff6b3d;
    --primary-dark: #d63100;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 彻底CSS重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'Hiragino Sans GB', Roboto, sans-serif;
    background-color: #fc3b01; /* 备用背景色 */
}

/* 背景图容器 - 修复iOS背景重叠问题 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: url('../images/bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* 移除移动端点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: var(--text-color);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* 主要内容容器 */
.container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 4rem;
    box-sizing: border-box;
    z-index: 1;
}



/* 品牌头部（内容已移除，保留结构和间距） */
.brand-header {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    animation: fadeInDown 0.8s ease-out;
    /* 保留高度和间距，但隐藏内容 */
    min-height: 4rem;
    position: relative;
}

/* 可选：如果需要完全隐藏但保留空间 */
.brand-header::after {
    content: '';
    display: block;
    height: 6rem;
    visibility: hidden;
}

/* 表单卡片 */
.form-card {
    background: var(--bg-color);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: var(--shadow-card);
    margin: 0 auto 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.375rem;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 1.25rem 1.25rem 0 0;
}

/* 表单头部 */
.form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-header h1 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-header h1 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* 表单内容 */
.loan-form {
    width: 100%;
}

/* 输入组 */
.input-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 24rem;
    margin: 0 auto;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 58, 1, 0.1);
    background: white;
}

.input-icon {
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 1.125rem 0;
    font-size: 1.0625rem;
    color: var(--text-color);
    background: transparent;
    outline: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.input-wrapper input::placeholder {
    color: var(--text-lighter);
    font-weight: normal;
    letter-spacing: normal;
}

.clear-btn {
    background: none;
    border: none;
    padding: 0 1rem;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.clear-btn:hover {
    color: var(--primary-color);
}



/* 协议勾选 */
.agreement-group {
    margin-bottom: 1.75rem;
    width: 90%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    user-select: none;
    width: 100%;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 1.125rem;
    height: 1.125rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.agreement-text {
    flex: 1;
    text-align: left;
}

.agreement-link {
    color: var(--primary-color);
    text-decoration: none !important; /* 强制无下划线 */
    font-weight: 500;
    transition: color 0.3s;
}

.agreement-link:hover {
    color: var(--primary-dark);
    text-decoration: none !important; /* 悬停时也无下划线 */
}

.agreement-link:visited {
    text-decoration: none !important; /* 访问后也无下划线 */
}

.agreement-link:active {
    text-decoration: none !important; /* 点击时也无下划线 */
}

/* 提交按钮 */
.submit-btn {
    width: 90%;
    max-width: 24rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1.375rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    margin: 0 auto 1.5rem;
    display: block;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(252, 58, 1, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 6px 20px rgba(252, 58, 1, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



/* 特性展示 */
.features {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color); /* 分割线已恢复 */
    width: 90%; /* 与按钮同宽 */
    max-width: 24rem; /* 与按钮同最大宽度 */
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(252, 58, 1, 0.1);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 底部信息 */
.page-footer {
    text-align: center;
    width: 100%;
    max-width: 32rem; /* 增加宽度适应英文文本 */
    animation: fadeIn 0.8s ease-out 0.4s both;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.footer-text i {
    font-size: 0.875rem;
}

.copyright {
    font-size: 0.6875rem; /* 11px，比原来小一点 */
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* 成功提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    width: 70%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    justify-content: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    color: var(--success-color);
    font-size: 1.5rem;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 30rem) { /* 480px */
    .container {
        padding: 1.25rem 0.875rem 3.5rem;
    }
    
    .brand-header {
        min-height: 4rem; /* 小屏设备减少保留高度 */
    }
    
    .form-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .form-header h1 {
        font-size: 1.25rem;
    }
    
    .agreement-group {
        width: 95%;
        max-width: 22rem;
    }
    
    .input-wrapper {
        width: 95%;
        max-width: 22rem;
    }
    
    .input-wrapper input {
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .submit-btn {
        width: 95%;
        max-width: 22rem;
        padding: 1.25rem;
        font-size: 1.125rem;
    }
    
    .features {
        width: 95%; /* 与按钮同宽 */
        max-width: 22rem; /* 与按钮同最大宽度 */
    }
}

@media (max-width: 22.5rem) { /* 360px */
    .container {
        padding: 1rem 0.75rem 3rem;
    }
    
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .form-header h1 {
        font-size: 1.125rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding-top: 0.75rem;
        padding-bottom: 2.5rem;
        justify-content: center;
    }
    
    .brand-header {
        margin-bottom: 1rem;
    }
    
    .form-card {
        margin-bottom: 0.5rem;
    }
    
    .page-footer {
        margin-top: 0.25rem;
    }
}

/* 平板优化 */
@media (min-width: 48rem) { /* 768px */
    .form-card {
        max-width: 32rem;
        padding: 2.5rem 2rem;
    }
    
    .brand-header {
        margin-bottom: 2rem;
    }
    
    .brand-logo {
        width: 5rem;
        height: 5rem;
    }
    
    .brand-logo i {
        font-size: 2.5rem;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        padding: 1.375rem;
        font-size: 1.25rem;
    }
}

/* 状态栏颜色优化 */
@media (prefers-color-scheme: dark) {
    /* 暗色模式下的状态栏优化 */
    .page-footer {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .copyright {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* 移动端全屏模式状态栏优化 */
@supports (-webkit-touch-callout: none) {
    /* iOS设备 */
    html {
        background-color: #fc3b01 !important;
    }
    
    /* 确保状态栏区域为橙色 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top, 0);
        background-color: #fc3b01;
        z-index: 9999;
    }
}

/* 安全提示样式（原始正确设计） */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 增加间距 */
    font-size: 1rem; /* 16px - 增大字号 */
    color: #666; /* 中灰色 */
    margin: 1.75rem 0; /* 增加边距 */
    padding: 0.875rem 1.75rem; /* 增加内边距 */
    background-color: rgba(255, 255, 255, 0.8); /* 轻微白色背景 */
    border-radius: 4px;
}

.security-note i {
    color: #4CAF50; /* 安全绿色图标 */
    font-size: 1.0625rem; /* 17px - 增大图标 */
}

/* 响应式调整 */
@media (max-width: 30rem) { /* 480px */
    .security-note {
        font-size: 0.875rem; /* 14px - 增大 */
        margin: 1.5rem 0; /* 增大边距 */
        padding: 0.75rem 1.5rem; /* 增大内边距 */
        gap: 0.5rem; /* 增大间距 */
    }
    
    .security-note i {
        font-size: 0.9375rem; /* 15px - 增大 */
    }
}

@media (max-width: 22.5rem) { /* 360px */
    .security-note {
        font-size: 0.8125rem; /* 13px - 增大 */
        margin: 1.25rem 0; /* 增大边距 */
        padding: 0.625rem 1.25rem; /* 增大内边距 */
    }
    
    .security-note i {
        font-size: 0.875rem; /* 14px - 增大 */
    }
}

/* 两步表单样式 */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.step.active .step-number {
    background: var(--primary-color);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 身份证上传样式 */
.id-upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255,255, 0.95);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.id-upload-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(252, 58, 1, 0.1);
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.upload-area {
    position: relative;
    width: 100%;
    height: 12rem;
    background: #f8f9fa;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.upload-area p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}

.form-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.back-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 预览样式 */
.preview-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    display: none;
}

.preview-image.show {
    display: block;
}






/* 步骤2: 身份证上传样式 */
.upload-instructions {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.upload-section {
    padding-top: 0.7rem; /* 添加上部内边距 */
    padding-bottom: 0.5rem; /* 添加下部内边距 */
    /* 移除分割横线 */
}

/* 移除最后一个上传区域的分隔线 */
.upload-section:last-child {
    border-bottom: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center; /* 水平居中 */
    gap: 0.5rem;
    margin-bottom: 0.2rem; /* 修改为0.2rem */
    font-weight: 600;
    color: var(--text-color);
    text-align: center; /* 文字居中 */
}

.upload-label i {
    color: var(--primary-color);
}

.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
    min-height: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(252, 58, 1, 0.05);
}

.upload-placeholder {
    color: var(--text-lighter);
}

.upload-placeholder i {
    font-size: 4.5rem;
    margin-bottom: 0.75rem;
    color: var(--border-color);
}

.upload-placeholder p {
    margin: 0.25rem 0;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    object-fit: cover;
    display: block;
}

/* 清除图片按钮 */
.clear-image-btn,
.clear-image-btn i,
button.clear-image-btn,
button.clear-image-btn i {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.clear-image-btn i,
button.clear-image-btn i {
    position: static;
    width: auto;
    height: auto;
    font-size: 1.75rem;
    line-height: 1;
}

.clear-image-btn:hover,
button.clear-image-btn:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.15);
}

.clear-image-btn:active,
button.clear-image-btn:active {
    transform: scale(0.95);
}
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.clear-image-btn i {
    font-size: 1.75rem;
    line-height: 1;
}

.clear-image-btn:hover {
    color: #333;
    transform: scale(1.15);
}

.clear-image-btn:active {
    transform: scale(0.95);
}

/* 人脸框 */
.face-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 220px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 5;
}

.face-frame.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.3), 0 0 20px rgba(76, 175, 80, 0.5);
}

/* 动作提示 */
.action-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    min-width: 200px;
}

.action-icon {
    font-size: 2rem;
    color: #4CAF50;
    animation: pulse 1s infinite;
}

.action-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.action-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.action-progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-controls {
    text-align: center;
    margin-top: 1rem;
}

.control-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    min-width: 200px;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 58, 1, 0.3);
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 人脸录制样式 */
.face-recording-section {
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
    text-align: center;
    pointer-events: none;
}

.recording-status i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.recording-status.recording i {
    color: #f44336;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.recording-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recording-controls .control-btn {
    min-width: 140px;
}

.recording-controls .control-btn i {
    font-size: 1rem;
}

#startRecordBtn i {
    color: #f44336;
}

.recording-tips {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.recording-tips i {
    color: var(--warning-color);
    margin-right: 0.25rem;
}

/* 录制进度条 */
.recording-progress {
    margin: 1rem 0;
    padding: 0 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 4px;
}

.progress-time {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.progress-time #currentTime {
    color: var(--primary-color);
    font-weight: 600;
}

/* 紧急联系人表单中的手机号输入组去除底部间距 */
.contact-item .input-group {
    margin-bottom: 0;
    width: 100%;
}

.contact-item .input-group .input-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.contact-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.contact-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 24rem;
    margin: 0 auto;
}

.select-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 58, 1, 0.1);
    background: white;
}

.select-wrapper .input-icon {
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-wrapper select {
    flex: 1;
    border: none;
    padding: 1.125rem 0;
    font-size: 1.0625rem;
    color: var(--text-color);
    background: transparent;
    outline: none;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    height: 100%;
    min-height: 3.5rem;
}

.select-wrapper select option {
    font-size: 1rem;
    padding: 0.5rem;
}

/* 联系人并排布局 */
.contact-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}

.contact-col {
    flex: 1 !important;
    min-width: 0;
}

.contact-col .input-wrapper,
.contact-col .select-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 3.5rem;
}

.contact-col input,
.contact-col select {
    font-size: 0.9375rem !important;
    height: 100% !important;
    min-height: 3.5rem !important;
}

/* 响应式：小屏幕下恢复单列 */
@media (max-width: 30rem) {
    .contact-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-col input,
    .contact-col select {
        font-size: 0.875rem !important;
    }
}

/* 响应式调整 */
@media (max-width: 30rem) {
    .upload-area {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    .control-btn {
        width: 100%;
        max-width: 280px;
    }
}

