* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 顶部状态栏 */
.header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-status {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.face-auth-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.face-auth-btn:hover {
    background: rgba(255,255,255,0.3);
}

.face-auth-btn::before {
    content: "👤";
    font-size: 20px;
}

/* 功能导航区 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: #fff;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.function-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.function-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.function-name {
    font-size: 14px;
    text-align: center;
}

/* 消息通知区 */
.message-preview {
    margin: 0 20px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.message-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.message-preview-content {
    font-size: 12px;
    color: #856404;
    opacity: 0.8;
}

.view-all-link {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: #4A90E2;
    cursor: pointer;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    padding: 5px;
    color: #999;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-item.active {
    color: #4A90E2;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
}

/* 页面内容区 */
.page-content {
    padding-bottom: 70px;
    min-height: calc(100vh - 70px);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.back-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
    font-size: 20px;
    text-decoration: none;
    color: white;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #4A90E2;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #357ABD;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn + .btn {
    margin-top: 10px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 消息列表 */
.message-list {
    padding: 10px;
}

.message-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #4A90E2;
    cursor: pointer;
    transition: all 0.3s;
}

.message-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.message-item.urgent {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.message-item.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.message-item.info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.message-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.message-item-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.message-item-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: #dc3545;
    color: white;
    margin-left: 8px;
}

.badge.new {
    background: #28a745;
}

/* 排队状态 */
.queue-status {
    text-align: center;
    padding: 30px 20px;
}

.queue-number {
    font-size: 48px;
    font-weight: bold;
    color: #4A90E2;
    margin: 20px 0;
}

.queue-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 文件上传 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover {
    border-color: #4A90E2;
    background: #f0f7ff;
}

.upload-area.uploaded {
    border-color: #28a745;
    background: #f0fff4;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    color: #666;
}

.upload-preview {
    margin-top: 10px;
    font-size: 12px;
    color: #28a745;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method.active {
    border-color: #4A90E2;
    background: #f0f7ff;
}

/* 费用明细 */
.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-label {
    font-size: 14px;
    color: #666;
}

.fee-amount {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.fee-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #4A90E2;
}

/* 个人中心 */
.profile-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-id {
    font-size: 12px;
    opacity: 0.9;
}

.menu-list {
    background: #fff;
    margin-top: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.menu-label {
    flex: 1;
    font-size: 15px;
}

.menu-arrow {
    color: #999;
}

/* 通知横幅 */
.notification-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.notification-banner.urgent {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.notification-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.notification-banner.urgent .notification-banner-title {
    color: #721c24;
}

.notification-banner-content {
    font-size: 12px;
    color: #856404;
    opacity: 0.8;
}

.notification-banner.urgent .notification-banner-content {
    color: #721c24;
}

/* 步骤指示器 */
.steps {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step.active::after {
    background: #4A90E2;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: #4A90E2;
}

.step.completed .step-number {
    background: #28a745;
}

.step-label {
    font-size: 12px;
    color: #666;
}

.step.active .step-label {
    color: #4A90E2;
    font-weight: 600;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4A90E2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #17a2b8;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.modal-footer .btn {
    margin: 0;
}



