* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(0, 82, 204, 1);
}

/* 顶部 Banner */
.banner-section {
    width: 100%;
    flex-shrink: 0;
}

.banner-img {
    width: 100%;
    display: block;
}

/* 中间内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
}

/* 输入区域 */
.input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 375px;
}

/* Logo */
.logo-wrapper {
    margin-bottom: 10px;
}

.logo {
    width: 233px;
    height: 71px;
    display: block;
}

/* 输入框样式 */
.input-wrapper {
    width: 100%;
    margin-bottom: 8px;
    margin-top: -27px;
}

.number-input,
.phone-input {
    width: 100%;
    height: 44px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    font-size: 14px;
    padding: 11px 12px;
    outline: none;
    -webkit-appearance: none;
}

.number-input::placeholder,
.phone-input::placeholder {
    color: #999;
}

.phone-wrapper {
    margin-top: 16px;
}

/* 人脸上传区域 */
.face-upload-container {
    width: 100%;
    margin-top: 16px;
}

.face-upload-btn {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.face-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.face-upload-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

/* 人脸信息容器 */
.face-info-container {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 8px;
    position: relative;
}

.face-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.face-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.face-remove-text {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.face-info-text {
    flex-grow: 1;
    margin-left: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.privacy-agreement {
    color: #e7161b;
    cursor: pointer;
}

/* 查询按钮 */
.query-button-wrapper {
    width: 100%;
    max-width: 335px;
    height: 40px;
    margin-top: 24px;
    background: #e7161b;
    border-radius: 50px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.query-button-wrapper:active {
    opacity: 0.8;
}

.query-button-wrapper .icon {
    height: 14px;
    width: 14px;
    margin-right: 4px;
}

.query-button-wrapper .text {
    line-height: 24px;
}

/* 提示文字 */
.tip {
    width: 100%;
    max-width: 335px;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.tip.tip_gray {
    color: rgba(255, 255, 255, 0.5);
}

/* 底部 Footer */
.footer-section {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.footer-img {
    width: 100%;
    display: block;
}

/* 多人脸选择弹窗 */
.face-select-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.3s ease-in-out;
}

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

.face-select-content {
    width: 100%;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
    transform-origin: bottom;
    min-height: 150px;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.face-select-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.4);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.face-select-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    flex-shrink: 0;
    margin-top: 25px;
}

.face-select-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    color: #000;
}

.face-select-subtitle {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    display: block;
    margin-bottom: 4px;
}

.face-select-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 16px;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 10px;
}

.face-select-item {
    width: 30%;
    margin-right: 5%;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.face-select-item:nth-child(3n) {
    margin-right: 0;
}

.face-select-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.face-select-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 选择状态图标 */
.face-select-status {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.face-select-icon {
    width: 30px;
    height: 30px;
}

/* 底部按钮 */
.face-select-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.face-select-button {
    width: 100%;
    height: 44px;
    background-color: #e7161b;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 22, 27, 0.3);
    cursor: pointer;
}

.face-select-button-text {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .face-select-item {
        width: 31%;
        margin-right: 3.5%;
    }
    
    .face-select-item:nth-child(3n) {
        margin-right: 0;
    }
    
    .face-info-text {
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 320px) {
    .logo {
        width: 200px;
        height: 61px;
    }
    
    .number-input,
    .phone-input {
        font-size: 13px;
    }
}
