/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-gradient: linear-gradient(135deg, #4a6fa5 0%, #2c5282 100%);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
}

/* 登录页面 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-card {
    background: var(--bg-card);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form input {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.btn-login {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

/* 顶部导航 */
.header {
    background: var(--secondary-gradient);
    color: white;
    padding: 28px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-content {
    text-align: center;
    width: 100%;
}

.header-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 400;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-btn.active {
    background: rgba(255,255,255,0.3);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.btn-logout {
    padding: 8px 18px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 主内容区 */
.main-content {
    padding: 24px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 信息填写页面专用优化 */
#addCustomerPage .main-content {
    padding: 16px 20px;
}

@media (max-width: 768px) {
    #addCustomerPage .main-content {
        padding: 0;
    }
}

.content-section {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.date-header {
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-header h2 {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card.stat-profit {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.stat-card.stat-profit::before {
    display: none;
}

.stat-card.stat-profit h3,
.stat-card.stat-profit .stat-value {
    color: white;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.stat-profit h3 {
    color: rgba(255,255,255,0.9);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card.stat-profit .stat-value {
    -webkit-text-fill-color: white;
    color: white;
}

/* 表格容器 */
.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* 表格样式 */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-collapse: collapse;
    margin: 0;
}

.data-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.data-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.status-已申请 { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(30, 64, 175, 0.2);
}
.status-未通过 { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.2);
}
.status-已通过 { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.2);
}
.status-已激活 { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.2);
}
.status-已达标 { 
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    border: 1px solid rgba(133, 77, 14, 0.2);
}
.status-已发货 { 
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.3);
    font-weight: 700;
}

.delivery-未发货 { 
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.delivery-未发货:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.delivery-部分可发 { 
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    color: #854d0e;
    border: 1px solid rgba(133, 77, 14, 0.2);
}

.delivery-部分可发:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.delivery-可发货 { 
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.3);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.delivery-可发货:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
}

.delivery-已发货 { 
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.3);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.delivery-已发货:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 按钮样式 - 高级设计 */
.btn-primary, .btn-secondary, .btn-add, .btn-back {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-add:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-back {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-back:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.2px;
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 表单样式 */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #4a6fa5;
    padding-left: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6fa5;
}

.required {
    color: #f44336;
}

/* 申请人表单卡片 */
.applicant-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.applicant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.applicant-card-header h4 {
    color: #4a6fa5;
}

.btn-remove {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* 银行多选 */
.bank-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.bank-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bank-checkbox label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

/* 表单操作 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header input {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    width: 300px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.page-header input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Section样式 */
.section {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* 警告框 */
.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
}

.alert-box p {
    margin-bottom: 10px;
    color: #856404;
}

.overdue-item {
    background: white;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    border-left: 3px solid #f44336;
}

/* 客户详情 */
.detail-header {
    margin-bottom: 28px;
}

.customer-info-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.customer-info-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item label {
    font-weight: 600;
    color: #555;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.close {
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close:hover {
    color: var(--text-primary);
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 管理员界面 */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-content {
    animation: fadeIn 0.3s;
}

.filter-bar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-bar select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* 信息填写页面 - 新版样式 */
.info-form-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 24px 20px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.info-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

.info-form-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle-text {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
}

.customer-basic-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.customer-basic-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8ecf1;
}

.applicants-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-add-mini {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-add-mini:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.applicants-list {
    background: white;
    padding: 0 25px 25px 25px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.applicant-form-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-top: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.applicant-form-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.applicant-header-bar {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.applicant-number {
    font-weight: 600;
    font-size: 15px;
}

.btn-remove-mini {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-remove-mini:hover {
    background: rgba(255,255,255,0.3);
}

.applicant-form-content {
    padding: 25px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-full {
    margin-bottom: 20px;
}

.form-field label,
.form-field-full label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.label-with-hint {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hint-text {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: var(--primary-color);
}

/* 银行多选网格 */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bank-checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.bank-checkbox-label:hover {
    border-color: #4a6fa5;
    background: #f0f4f8;
}

.bank-checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #4a6fa5;
}

.bank-checkbox-input:checked + .bank-checkbox-text {
    font-weight: 600;
    color: #4a6fa5;
}

.bank-checkbox-label:has(.bank-checkbox-input:checked) {
    border-color: #4a6fa5;
    background: #e8f0f8;
}

.bank-checkbox-text {
    flex: 1;
}

/* 提交按钮区域 */
.form-actions-center {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px 0 10px 0;
}

.btn-submit-large {
    padding: 16px 56px;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-submit-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-large:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.5);
}

.btn-reset {
    padding: 16px 48px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-reset:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 内联编辑样式 */
.inline-edit-status {
    padding: 6px 10px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.inline-edit-status:focus {
    outline: none;
    border-color: #4a6fa5;
}

.inline-edit-value {
    padding: 6px 10px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.inline-edit-value:focus {
    outline: none;
    border-color: #4a6fa5;
}

/* 发货状态下拉选择 */
.delivery-status-select {
    padding: 6px 10px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
}

.delivery-status-select:focus {
    outline: none;
    border-color: #4a6fa5;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .bank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row-3col {
        grid-template-columns: 1fr;
    }
}

/* 快速识别卡片样式 */
.quick-parse-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 2px solid var(--primary-color);
    border-style: dashed;
}

.quick-parse-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-parse-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--bg-card);
    min-height: 120px;
}

.quick-parse-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-parse {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-parse:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-parse:active {
    transform: translateY(0);
}

.parse-result {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    min-height: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

/* 移动端优先显示 */
.mobile-priority {
    order: -1;
}

/* 移动端专用样式 */
@media (max-width: 768px) {
    /* 移动端视图优化 */
    body.mobile-device .main-content {
        padding: 12px;
    }
    
    body.mobile-device .header {
        padding: 12px 16px;
    }
    
    body.mobile-device .header-wrapper {
        gap: 12px;
    }
    
    body.mobile-device .header-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    body.mobile-device .header-subtitle {
        font-size: 12px;
    }
    
    /* 移动端信息填写页面优化 - 减少空白，紧凑布局 */
    body.mobile-device #addCustomerPage {
        padding: 0;
    }
    
    body.mobile-device #addCustomerPage .info-form-header {
        padding: 16px 12px;
        margin-bottom: 12px;
    }
    
    body.mobile-device #addCustomerPage .info-form-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    body.mobile-device #addCustomerPage .info-form-header .subtitle-text {
        font-size: 12px;
    }
    
    body.mobile-device #addCustomerPage .form-container {
        padding: 12px;
    }
    
    body.mobile-device .customer-basic-card,
    body.mobile-device .quick-parse-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    body.mobile-device .card-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    /* 移动端快速识别框优化 */
    body.mobile-device .quick-parse-textarea {
        min-height: 80px;
        padding: 10px;
        font-size: 14px;
    }
    
    body.mobile-device .btn-parse {
        padding: 12px;
        font-size: 14px;
    }
    
    /* 移动端表单字段优化 - 减少间距 */
    body.mobile-device .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    body.mobile-device .form-group {
        margin-bottom: 0;
    }
    
    body.mobile-device .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    body.mobile-device .form-input {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 移动端申请人卡片优化 - 紧凑布局 */
    body.mobile-device .applicants-section {
        margin-bottom: 12px;
    }
    
    body.mobile-device .section-header {
        padding: 12px;
        margin-bottom: 0;
    }
    
    body.mobile-device .section-header .card-title {
        font-size: 15px;
        margin-bottom: 0;
    }
    
    body.mobile-device .btn-add-mini {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    body.mobile-device .applicants-list {
        padding: 12px;
    }
    
    body.mobile-device .applicant-form-card {
        margin-bottom: 12px;
        margin-top: 12px;
    }
    
    body.mobile-device .applicant-header-bar {
        padding: 10px 12px;
    }
    
    body.mobile-device .applicant-number {
        font-size: 14px;
    }
    
    body.mobile-device .applicant-form-content {
        padding: 12px;
    }
    
    body.mobile-device .form-row-2col,
    body.mobile-device .form-row-3col {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    body.mobile-device .form-field-full {
        margin-bottom: 12px;
    }
    
    body.mobile-device .form-field label,
    body.mobile-device .form-field-full label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* 移动端按钮组优化 */
    body.mobile-device .form-actions-center {
        flex-direction: column;
        gap: 10px;
        padding: 16px 0 8px 0;
    }
    
    body.mobile-device .btn-submit-large,
    body.mobile-device .btn-reset {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
    
    /* 移动端统计卡片优化 */
    body.mobile-device .stats-grid {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    body.mobile-device .stat-card {
        padding: 16px 12px;
    }
    
    body.mobile-device .stat-card h3 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    body.mobile-device .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .bank-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-form-header h2 {
        font-size: 22px;
    }
    
    .applicant-form-content {
        padding: 15px;
    }
    
    /* 移动端优化 */
    .quick-parse-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    .quick-parse-textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px;
        min-height: 100px;
    }
    
    .btn-parse {
        padding: 16px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    /* 移动端表单优化 */
    .form-input {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 14px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-row-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* 移动端按钮优化 */
    .btn-submit-large {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    .btn-reset {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    /* 移动端申请人卡片优化 */
    .applicant-form-card {
        margin-top: 16px;
    }
    
    .applicant-header-bar {
        padding: 12px 16px;
    }
    
    /* 移动端导航优化 */
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* 移动端表格优化 - 紧凑行式布局 */
    .data-table-wrapper {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .data-table {
        font-size: 12px;
        border-collapse: collapse;
    }
    
    .data-table thead {
        display: table-header-group;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }
    
    .data-table thead th {
        padding: 6px 4px;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }
    
    .data-table tbody {
        display: table-row-group;
    }
    
    .data-table tr {
        display: table-row;
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s ease;
    }
    
    .data-table tr:last-child {
        border-bottom: none;
    }
    
    .data-table tr:hover {
        background: rgba(102, 126, 234, 0.05);
    }
    
    .data-table td {
        display: table-cell;
        text-align: left;
        padding: 6px 4px;
        vertical-align: middle;
        border: none;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* 移动端客户行优化 - 更紧凑 */
    .customer-row td,
    .delivery-row td,
    .recent-app-row td {
        padding: 5px 3px;
        font-size: 11px;
    }
    
    .customer-row td:first-child,
    .delivery-row td:first-child,
    .recent-app-row td:first-child {
        font-weight: 600;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 移动端发货行按钮优化 */
    .delivery-row .btn-edit,
    .delivery-row .btn-primary {
        padding: 3px 6px;
        font-size: 10px;
        margin: 1px;
    }
    
    /* 移动端按钮优化 - 紧凑 */
    .btn-edit, .btn-delete {
        padding: 3px 6px;
        font-size: 10px;
        margin: 1px;
        border-radius: 4px;
    }
    
    /* 移动端状态标签优化 */
    .status-badge {
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 10px;
        display: inline-block;
    }
    
    /* 移动端表格容器优化 */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    /* 移动端section优化 */
    body.mobile-device .section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    body.mobile-device .section-title {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
}


@media (max-width: 768px) {
    .header {
        padding: 20px 16px;
    }
    
    .header-wrapper {
        gap: 16px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* 隐藏元素 */
.admin-only {
    display: none;
}

.admin-only.show {
    display: block;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
}

/* 月份筛选器 */
.month-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.month-filter select {
    padding: 8px 12px;
    border: 1.5px solid #dde2e8;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.month-filter select:focus {
    outline: none;
    border-color: #4a6fa5;
}

/* 状态筛选下拉框 */
.status-filter-select {
    padding: 8px 12px;
    border: 1.5px solid #dde2e8;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.status-filter-select:focus {
    outline: none;
    border-color: #4a6fa5;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-export {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-export:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* 备注输入框样式 */
.remark-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde2e8;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.remark-input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* 银行下拉选择样式 */
.bank-select {
    width: 100%;
}

/* 用户角色显示隐藏 */
.user-only {
    display: block;
}

.admin-only {
    display: none;
}
