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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 反诈横幅 */
.anti-fraud-banner {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.warning-icon {
    font-size: 20px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.anti-fraud-banner strong {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.banner-desc {
    font-size: 14px;
    opacity: 0.95;
}

/* 头部 */
.main-header {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

/* 主容器 */
.main-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    padding-bottom: 100px;
}

/* 步骤进度 */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

.step-item.completed .step-number {
    background: #00c851;
    color: white;
}

.step-name {
    font-size: 13px;
    color: #999;
    text-align: center;
}

.step-item.active .step-name {
    color: #0066cc;
    font-weight: bold;
}

.step-item.completed .step-name {
    color: #00c851;
}

.step-line {
    position: absolute;
    top: 18px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
}

.step-item.completed .step-line {
    background: #00c851;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.card-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-label .required {
    color: #ff4444;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 按钮 */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    display: inline-block;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.02);
}

.upload-area.has-file {
    border-color: #00c851;
    border-style: solid;
    padding: 10px;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.upload-text {
    color: #666;
}

.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .upload-row {
        grid-template-columns: 1fr;
    }
}

.upload-title {
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

/* 活体验证 */
.liveness-container {
    text-align: center;
}

.camera-area {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 260px;
    border: 3px solid #00c851;
    border-radius: 100px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.liveness-tip {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin: 20px 0;
    min-height: 40px;
}

.liveness-steps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.liveness-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.liveness-step.active {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
}

.liveness-step.done {
    background: #00c851;
    color: white;
}

.color-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s;
}

.color-light.active {
    opacity: 0.3;
}

.count-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 32px;
    font-weight: bold;
}

.count-number {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.count-number.active {
    background: #0066cc;
    color: white;
    transform: scale(1.2);
}

/* 成功页面 */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: #00c851;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 28px;
    font-weight: bold;
    color: #00c851;
    margin-bottom: 12px;
}

.success-desc {
    color: #666;
    margin-bottom: 30px;
}

.success-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 500;
}

/* 管理员后台 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-title {
    font-size: 24px;
    font-weight: bold;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.record-table th,
.record-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.record-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.record-table tr:hover {
    background: #f8f9fa;
}

.record-table img,
.record-table video {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    cursor: pointer;
}

.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-body img,
.modal-body video {
    max-width: 100%;
    border-radius: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 500;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.detail-image-box {
    text-align: center;
}

.detail-image-box img,
.detail-image-box video {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.detail-image-title {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 页脚 */
.main-footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.main-footer p {
    margin-bottom: 8px;
}

.copyright {
    font-size: 12px;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10001;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
