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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
}

/* 用户端样式 */
.payment-page, .confirm-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.payment-box, .confirm-box {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.btn-pay, .btn-submit, .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-pay:hover, .btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 确认页面样式 */
.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.label {
    color: #666;
    font-weight: 500;
}

.value.amount {
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

.bank-info {
    background: #fff3e0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bank-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffe0b3;
}

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

.bank-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.bank-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-all;
}

.bank-value span {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.copy-btn {
    padding: 5px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.upload-area {
    margin: 20px 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-text {
    color: #666;
    margin-bottom: 5px;
}

.upload-hint {
    color: #999;
    font-size: 12px;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 5px;
    color: #2e7d32;
}

/* 登录页面 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.error-msg {
    background: #fde2e2;
    color: #c0392b;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* 管理后台样式 */
.admin-body, .operator-body {
    background: #f5f7fa;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

.admin-sidebar h3 {
    padding: 0 20px 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
    background: #34495e;
    color: white;
}

.admin-main {
    flex: 1;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
}

.btn-action {
    flex: 1;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 数据表格 */
.data-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table thead {
    background: #667eea;
    color: white;
}

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

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

.btn-small {
    padding: 5px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 0 3px;
}

.btn-danger {
    background: #e74c3c;
}

.btn-add {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.btn-cancel {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

/* 操作员端样式 */
.operator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.operator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.back-btn, .logout-btn {
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.order-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-no {
    font-size: 12px;
    color: #999;
}

.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
}

.status-pending { background: #f39c12; color: white; }
.status-confirm { background: #3498db; color: white; }
.status-success { background: #27ae60; color: white; }
.status-fail { background: #e74c3c; color: white; }

.order-amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.order-time {
    font-size: 12px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
}

/* 二维码卡片 */
.qrcode-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qrcode-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qrcode-info {
    margin-bottom: 15px;
}

.qrcode-info .company {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.qrcode-info .account, .qrcode-info .bank {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    word-break: break-all;
}

.qrcode-actions {
    margin-top: 10px;
}

.qr-result {
    margin-top: 15px;
    text-align: center;
}

.qr-result img {
    max-width: 200px;
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th, .data-table td {
        padding: 8px;
    }
    /* 模态框头部样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* 二维码显示区域 */
.qr-result {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.qr-result canvas, .qr-result img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-download {
    background: #27ae60;
    margin-top: 10px;
}

.btn-download:hover {
    background: #229954;
}
/* 自定义上传区域样式 */
.upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-trigger:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

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

.upload-trigger .upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-trigger .upload-hint {
    font-size: 12px;
    color: #999;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
    text-align: center;
}

/* 移除原生input的样式 */
input[type="file"] {
    display: none;
}
}