:root {
    --bg: #f8f9fa; --surface: #ffffff; --border: #e5e7eb; --border-focus: #d1d5db;
    --text-primary: #111827; --text-secondary: #6b7280; --text-muted: #9ca3af;
    --accent: #111827; --accent-light: #374151; --error: #dc2626; --error-bg: #fef2f2;
    --success: #16a34a; --success-bg: #f0fdf4; --warning: #f59e0b; --info: #3b82f6; --info-bg: #eff6ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { min-height: 100vh; background: var(--bg); font-family: 'PingFang SC', -apple-system, 'Noto Sans SC', 'Microsoft YaHei', sans-serif; color: var(--text-primary); line-height: 1.55; }

/* Login */
.login-page { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 99999; }
.login-card { width: 400px; max-width: 90vw; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px 32px; box-shadow: 0 12px 48px rgba(0,0,0,0.08); }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand h1 { font-size: 28px; font-weight: 700; }
.login-brand p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.lf { margin-bottom: 18px; }
.lf label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.lf input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; outline: none; }
.lf input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.login-btn { width: 100%; height: 44px; margin-top: 24px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.login-btn:hover { opacity: 0.88; }
.login-err { text-align: center; color: var(--error); font-size: 13px; margin-top: 14px; display: none; min-height: 0; pointer-events: none; }
.login-hint { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 12px; position: relative; z-index: 10; }
.login-hint .link-btn { color: var(--text-secondary); cursor: pointer; text-decoration: none; display: inline-block; padding: 6px 0; position: relative; z-index: 11; background: none; border: none; font-size: inherit; font-family: inherit; pointer-events: auto; transition: color 0.2s; }
.login-hint .link-btn:hover { color: var(--text-primary); text-decoration: underline; }

/* Main */
.main-page { display: none; min-height: 100vh; padding-bottom: 80px; }
.main-page.active { display: block; }
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px) saturate(180%); border-bottom: 1px solid var(--border); padding: 0 40px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-size: 22px; font-weight: 700; letter-spacing: -0.8px; }
.navbar-brand span { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-left: 10px; }
.navbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.logout-btn { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 12.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; transition: all 0.15s; }
.logout-btn:hover { background: var(--error-bg); border-color: var(--error-border); color: var(--error); }

/* Tabbar */
.tabbar { padding: 0 40px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.6); display: flex; gap: 0; }
.tab-item { height: 48px; padding: 0 22px; border-bottom: 2px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: all 0.18s; user-select: none; }
.tab-item:hover { color: var(--text-primary); background: rgba(0,0,0,0.02); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.content { padding: 28px 36px; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 28px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat-card .value.success { color: var(--success); }
.stat-card .value.warning { color: var(--warning); }

/* Quick Actions */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; text-decoration: none; color: var(--text-primary); }
.quick-btn:hover { background: var(--bg); }

/* 月度总结入口按钮 */
.summary-entry-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #111827;
    border: none;
    border-radius: 14px;
    margin-bottom: 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}
.summary-entry-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.summary-entry-icon {
    font-size: 24px;
}
.summary-entry-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}
.summary-entry-arrow {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.2s;
}
.summary-entry-btn:hover .summary-entry-arrow {
    transform: translateX(4px);
    color: #fff;
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-secondary); background: var(--bg); font-size: 12px; }
tr:hover { background: var(--bg); }

/* Badges */
.badge { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.approved { background: #d1fae5; color: #065f46; }
.badge.rejected { background: #fee2e2; color: #991b1b; }

/* Filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.filter-bar input { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.filter-bar .custom-select { position: relative; width: 140px; user-select: none; }
.filter-bar .cs-trigger { width: 100%; height: 36px; padding: 0 28px 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text-primary); display: flex; align-items: center; font-family: inherit; }
.filter-bar .cs-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.filter-bar .cs-arrow svg { width: 10px; height: 10px; stroke: var(--text-muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.filter-bar .cs-open .cs-arrow { transform: translateY(-50%) rotate(180deg); }
.filter-bar .cs-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 9999; max-height: 200px; overflow-y: auto; display: none; padding: 4px 0; }
.filter-bar .custom-select.cs-open > .cs-dropdown { display: block; }
.filter-bar .cs-opt { padding: 8px 12px; font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background 0.12s; }
.filter-bar .cs-opt:hover { background: var(--bg); color: var(--accent); }
.filter-bar .cs-opt.cs-selected { background: var(--bg); color: var(--accent); font-weight: 600; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
.pagination button { min-width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; }
.pagination button.active { background: var(--accent); color: #fff; }

/* Bottom Nav */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); border-top: 1px solid var(--border); z-index: 100; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; height: 60px; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; cursor: pointer; color: var(--text-muted); font-size: 11px; border: none; background: none; }
.bottom-nav-item .icon { font-size: 20px; }
.bottom-nav-item.active { color: var(--accent); }

/* Tabs */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; z-index: 100000; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 480px; max-height: 90vh; overflow: hidden; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-footer .btn { height: 40px; padding: 0 20px; border-radius: 10px; border: none; cursor: pointer; font-size: 14px; }
.modal-footer .btn-primary { background: var(--accent); color: #fff; }
.modal-footer .btn-secondary { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--bg); color: var(--text-secondary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--error-bg); color: var(--error); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; transition: all 0.2s ease; }
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,0.06); }

/* 忘记密码弹窗 - 定制化UI */
.forgot-card { width: 400px; max-width: 90vw; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); animation: forgotIn 0.4s cubic-bezier(.22,1,.36,1); }
@keyframes forgotIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.forgot-brand { text-align: center; margin-bottom: 28px; }
.forgot-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.forgot-brand h3 { font-size: 20px; font-weight: 700; }
.forgot-brand p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.forgot-body { margin-bottom: 8px; }
.forgot-field { margin-bottom: 18px; }
.forgot-field:last-child { margin-bottom: 0; }
.forgot-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.forgot-field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; transition: all 0.2s ease; background: var(--surface); }
.forgot-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,0.06); }
.forgot-pwd-wrap { position: relative; }
.forgot-pwd-wrap input { padding-right: 44px; }
.forgot-pwd-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.forgot-pwd-toggle:hover { background: var(--bg); color: var(--text-primary); }
.forgot-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.forgot-submit { width: 100%; height: 46px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.forgot-submit:hover:not(:disabled) { opacity: 0.88; }
.forgot-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.forgot-cancel { width: 100%; height: 40px; background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: color 0.2s; }
.forgot-cancel:hover { color: var(--text-primary); }

/* Components */
.empty-state { text-align: center; padding: 48px; color: var(--text-muted); }
.loading { display: flex; align-items: center; justify-content: center; padding: 48px; color: var(--text-muted); }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transition: all 0.3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--error); color: #fff; }

/* Leaderboard */
.leaderboard-list { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 4px; }
.leaderboard-item { display: flex; align-items: center; gap: 16px; padding: 16px 24px; transition: background 0.15s; border-bottom: none; }
.leaderboard-item:hover { background: var(--bg); }
.leaderboard-item.me { background: var(--info-bg); }
.leaderboard-item.me:hover { background: #dbeafe; }
.rank-num { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; background: var(--bg); color: var(--text-secondary); }
.rank-num.gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.rank-num.silver { background: linear-gradient(135deg, #e5e7eb, #d1d5db); color: #374151; }
.rank-num.bronze { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #9a3412; }
.rank-info { flex: 1; }
.rank-info .name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.rank-stats { text-align: right; }
.rank-stats .count { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.rank-stats .income { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Teammate */
.teammate-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.teammate-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.teammate-info { flex: 1; }
.teammate-info .name { font-weight: 600; font-size: 14px; }
.teammate-info .pid { font-size: 12px; color: var(--text-muted); }
.teammate-actions { display: flex; gap: 8px; }
.teammate-actions button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; font-size: 13px; background: var(--bg); color: var(--text-secondary); transition: all 0.15s; }
.teammate-actions button:hover { background: var(--border); color: var(--text-primary); }
.teammate-actions button.danger { background: var(--error-bg); color: var(--error); border-color: rgba(220,38,38,0.2); }
.teammate-actions button.danger:hover { background: var(--error); color: #fff; }

/* Request */
.request-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.request-actions { display: flex; gap: 8px; }
.request-actions button { padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; }
.request-actions .accept { background: var(--success); color: #fff; }
.request-actions .reject { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* Profile */
.profile-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.profile-item:last-child { border-bottom: none; }
.profile-item .label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.profile-item .value { color: var(--text-primary); font-weight: 500; }
.profile-item .deposit-yes { color: var(--success); }
.profile-item .deposit-no { color: var(--error); }

/* ========== 新建报单 Tab ========== */
#tab-submit { padding: 0; }
#tab-submit .submit-layout { max-width: 800px; margin: 0 auto; padding: 24px 36px 60px; }
#tab-submit .submit-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); position: relative; }

/* 模式选择 */
#tab-submit .mode-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
#tab-submit .mode-card { border: 1px solid var(--border); border-radius: 14px; padding: 22px 18px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: var(--surface); position: relative; overflow: hidden; }
#tab-submit .mode-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--border-focus); }
#tab-submit .mode-card.selected { border-color: var(--accent); background: rgba(17,24,39,0.03); box-shadow: 0 0 0 3px rgba(17,24,39,0.05); }
#tab-submit .mode-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: transform 0.3s; }
#tab-submit .mode-card:hover .mode-icon { transform: scale(1.08); }
#tab-submit .mode-icon svg { width: 22px; height: 22px; stroke-width: 1.8; fill: none; }
#tab-submit .mi-huhang { background: rgba(59,130,246,0.1); color: #3b82f6; }
#tab-submit .mi-peiwan { background: rgba(139,92,246,0.1); color: #8b5cf6; }
#tab-submit .mi-anchor { background: rgba(239,68,68,0.1); color: #ef4444; }
#tab-submit .mi-tiyan { background: rgba(16,185,129,0.1); color: #10b981; }
#tab-submit .mode-name { font-size: 15px; font-weight: 600; }
#tab-submit .mode-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 表单 */
#tab-submit .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; position: relative; z-index: 1; }
#tab-submit .form-grid .field.fullwidth,
#tab-submit .form-toolbar.fullwidth { grid-column: 1 / -1; }
#tab-submit .field { margin-bottom: 0; position: relative; }
#tab-submit .field.field-calendar-open { z-index: 100; }
#tab-submit .label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
#tab-submit .req { color: var(--error); font-size: 12px; }
#tab-submit .opt { color: var(--text-muted); font-size: 11px; font-weight: 400; margin-left: 3px; }

#tab-submit input[type="text"],
#tab-submit input[type="tel"],
#tab-submit input[type="date"] { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text-primary); background: var(--surface); font-family: inherit; transition: all 0.2s ease; outline: none; }
#tab-submit input[type="date"],
#tab-submit input[type="time"] { cursor: pointer; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text-primary); background: var(--surface); font-family: inherit; outline: none; }
#tab-submit input::placeholder { color: var(--text-muted); }
#tab-submit input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
#tab-submit input.err { border-color: var(--error) !important; background: var(--error-bg) !important; }
#tab-submit .shake { animation: shake 0.3s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 50%{transform:translateX(5px)} 75%{transform:translateX(-3px)} }

#tab-submit textarea { width: 100%; height: 72px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; resize: vertical; background: var(--surface); outline: none; color: var(--text-primary); font-family: inherit; transition: all 0.2s ease; }
#tab-submit textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }

/* 日期选择 */
#tab-submit .date-row { display: flex; align-items: center; gap: 10px; position: relative; }
#tab-submit .date-row > input { flex: 1; cursor: pointer; }
#tab-submit .btn-today { height: 44px; min-width: 60px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.25s ease; flex-shrink: 0; }
#tab-submit .btn-today:hover { background: var(--bg); border-color: var(--border-focus); color: var(--accent); }
#tab-submit .btn-today svg { width: 14px; height: 14px; stroke-width: 2.2; fill: none; stroke: currentColor; }

/* 时间选择行 */
#tab-submit .datetime-row { display: flex; align-items: stretch; gap: 10px; justify-content: space-between; }
#tab-submit .dt-date-col { flex: 1; position: relative; }
#tab-submit .dt-date-col > input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text-primary); background: var(--surface); outline: none; cursor: pointer; }
#tab-submit .dt-date-col > input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
#tab-submit .dt-time-col { display: flex; align-items: center; gap: 4px; }
#tab-submit .dt-sep { font-size: 15px; color: var(--text-muted); font-weight: 600; }

/* 自定义时间选择器 */
#tab-submit .time-picker { position: relative; min-width: 56px; flex: 1; user-select: none; z-index: 1; }
#tab-submit .time-picker.tp-open { z-index: 1000; }
#tab-submit .tp-trigger { height: 44px; padding: 0 24px 0 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text-primary); font-weight: 500; background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: all 0.2s ease; }
#tab-submit .tp-trigger:hover { border-color: var(--border-focus); }
#tab-submit .time-picker.tp-open .tp-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
#tab-submit .tp-arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; transition: transform 0.2s ease; }
#tab-submit .tp-arrow svg { width: 10px; height: 10px; stroke: var(--text-muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#tab-submit .time-picker.tp-open .tp-arrow { transform: translateY(-50%) rotate(180deg); }
#tab-submit .tp-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 9999; max-height: 220px; overflow-y: auto; display: none; animation: tpIn 0.18s ease-out; padding: 4px 0; }
#tab-submit .time-picker.tp-open > .tp-dropdown { display: block; }
@keyframes tpIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
#tab-submit .tp-opt { padding: 8px 12px; font-size: 13px; color: var(--text-primary); cursor: pointer; text-align: center; transition: all 0.12s; font-weight: 500; }
#tab-submit .tp-opt:hover { background: var(--bg); color: var(--accent); }
#tab-submit .tp-opt.tp-selected { background: var(--bg); color: var(--accent); font-weight: 700; }

/* 自定义下拉框 */
#tab-submit .custom-select { position: relative; width: 100%; user-select: none; z-index: 10; }
#tab-submit .cs-trigger { width: 100%; height: 44px; padding: 0 32px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 14px; color: var(--text-primary); display: flex; align-items: center; font-family: inherit; transition: all 0.2s ease; }
#tab-submit .cs-trigger:hover { border-color: var(--border-focus); }
#tab-submit .cs-trigger.cs-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
#tab-submit .cs-trigger .cs-placeholder { color: var(--text-muted); }
#tab-submit .cs-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; transition: transform 0.2s ease; }
#tab-submit .cs-arrow svg { width: 12px; height: 12px; stroke: var(--text-muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#tab-submit .cs-open .cs-arrow { transform: translateY(-50%) rotate(180deg); }
#tab-submit .cs-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 9999; max-height: 220px; overflow-y: auto; display: none; animation: csIn 0.18s ease-out; padding: 4px 0; }
#tab-submit .custom-select.cs-open > .cs-dropdown { display: block; }
@keyframes csIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
#tab-submit .cs-opt { padding: 10px 16px; font-size: 14px; color: var(--text-primary); cursor: pointer; transition: background 0.12s; }
#tab-submit .cs-opt:hover { background: var(--bg); color: var(--accent); }
#tab-submit .cs-opt.cs-selected { background: var(--bg); color: var(--accent); font-weight: 600; }

/* 错误提示 */
#tab-submit .err-msg { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
#tab-submit .err-msg.show { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* 提交按钮 */
#tab-submit .btn-submit { width: 100%; height: 46px; margin-top: 16px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
#tab-submit .btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
#tab-submit .btn-submit:active { transform: translateY(0); opacity: 0.9; }

/* 工资预览 */
#tab-submit .wage-hint { margin-top: 12px; padding: 12px 16px; background: var(--info-bg); border: 1px solid rgba(59,130,246,0.2); border-radius: 10px; font-size: 13px; color: var(--info); line-height: 1.6; }
#tab-submit .wage-hint strong { color: var(--info); }

/* 表单工具栏 */
#tab-submit .form-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#tab-submit .form-toolbar-left { display: flex; align-items: center; gap: 10px; }
#tab-submit .btn-smart-rec { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
#tab-submit .btn-smart-rec:hover { opacity: 0.88; }
#tab-submit .btn-history { display: none; align-items: center; gap: 5px; height: 30px; padding: 0 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
#tab-submit .btn-history.open { display: inline-flex; }
#tab-submit .btn-history:hover { opacity: 0.88; }
#tab-submit .btn-back-mode { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 14px; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
#tab-submit .btn-back-mode:hover { background: var(--border); color: var(--text-primary); }
#tab-submit .current-mode-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 8px; }
#tab-submit .cmt-huhang { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
#tab-submit .cmt-peiwan { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.2); }
#tab-submit .cmt-anchor { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
#tab-submit .cmt-tiyan { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }

/* 编辑警告条 */
#tab-submit .edit-warning-bar { grid-column: 1 / -1; display: none; align-items: center; justify-content: space-between; gap: 10px; background: var(--warning-bg); border: 1px solid rgba(245,158,11,0.25); color: var(--warning); padding: 10px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 4px; }
#tab-submit .edit-warning-bar.open { display: flex; }
#tab-submit .edit-warning-bar button { background: var(--surface); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
#tab-submit .edit-warning-bar button:hover { background: var(--bg); }

/* 备注锁定区 */
#tab-submit .remark-locked { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 13px; color: var(--text-secondary); }
#tab-submit .remark-locked-title { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
#tab-submit .remark-locked-content { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--text-muted); word-break: break-all; }

/* 章节标题 */
#tab-submit .section-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; margin: 4px 0 8px; grid-column: 1 / -1; }

/* 成功弹窗 */
.success-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1100; justify-content: center; align-items: center; }
.success-overlay.open { display: flex; }
.smodal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px 24px; max-width: 360px; width: 85%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15); animation: mIn 0.4s cubic-bezier(.22,1,.36,1); }
.sm-check { width: 48px; height: 48px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.sm-check svg { width: 100%; height: 100%; }
.sm-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.sm-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 8px; background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); margin-bottom: 16px; }
.btn-sm-close { height: 38px; padding: 0 24px; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; cursor: pointer; transition: all 0.25s; }
.btn-sm-close:hover { background: var(--border); color: var(--text-primary); }

/* Alert弹窗 */
.lg-alert-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1200; justify-content: center; align-items: center; }
.lg-alert-overlay.open { display: flex; }
.lg-alert-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px 20px; max-width: 360px; width: 85%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.lg-alert-icon { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; background: var(--error-bg); border: 1px solid rgba(220,38,38,0.2); display: flex; align-items: center; justify-content: center; }
.lg-alert-icon svg { width: 20px; height: 20px; stroke: var(--error); stroke-width: 2.2; fill: none; }
.lg-alert-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.lg-alert-btn { height: 36px; padding: 0 24px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.lg-alert-btn:hover { opacity: 0.88; }

/* 历史记录抽屉 */
.history-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 0.35s cubic-bezier(.22,1,.36,1); z-index: 3000; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,0.08); }
.history-drawer.open { transform: translateX(0); }
.history-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.history-drawer-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.history-drawer-close { width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--bg); color: var(--text-secondary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.history-drawer-close:hover { background: var(--error-bg); color: var(--error); }
.history-list { flex: 1; overflow-y: auto; padding: 14px 18px; }
.history-empty { text-align: center; color: var(--text-muted); padding: 36px 16px; font-size: 14px; }
.history-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.history-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.history-id { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.history-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.history-card-body { font-size: 13px; color: var(--text-primary); margin-bottom: 5px; }
.history-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.btn-edit-order { height: 26px; padding: 0 10px; background: var(--info-bg); color: var(--info); border: 1px solid rgba(59,130,246,0.25); border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-edit-order:hover { background: rgba(59,130,246,0.15); }
.history-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 2999; display: none; }
.history-mask.open { display: block; }

/* 智能识别弹窗 */
.smart-rec-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2500; justify-content: center; align-items: center; }
.smart-rec-overlay.open { display: flex; }
.smart-rec-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px 20px; max-width: 480px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.smart-rec-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.smart-rec-area { width: 100%; min-height: 180px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text-primary); font-size: 13px; resize: vertical; outline: none; font-family: inherit; }
.smart-rec-area:focus { border-color: var(--border-focus); }
.smart-rec-summary { display: none; margin-top: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--text-secondary); line-height: 1.7; }
.smart-rec-summary.open { display: block; }
.smart-rec-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.btn-primary { height: 36px; padding: 0 18px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { height: 36px; padding: 0 18px; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }

/* 毛玻璃日历 */
#tab-submit .glass-calendar { position: absolute; top: calc(100% + 8px); left: 0; width: 280px; padding: 14px 14px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,0.12); z-index: 9999; display: none; animation: gcSlideIn 0.22s cubic-bezier(.22,1,.36,1) forwards; }
#tab-submit .glass-calendar.open { display: block; }
@keyframes gcSlideIn { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
#tab-submit .gc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
#tab-submit .gc-month-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
#tab-submit .gc-nav-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.18s ease; }
#tab-submit .gc-nav-btn svg { width: 13px; height: 13px; stroke-width: 2.2; fill: none; stroke: var(--text-muted); }
#tab-submit .gc-nav-btn:hover { border-color: var(--border-focus); background: var(--bg); }
#tab-submit .gc-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; padding: 0 2px; }
#tab-submit .gc-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
#tab-submit .gc-wd.gc-wd-end { color: var(--error); }
#tab-submit .gc-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: 0 2px; }
#tab-submit .gc-day { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--text-primary); cursor: pointer; transition: all 0.15s ease; user-select: none; position: relative; }
#tab-submit .gc-day:hover:not(.gc-empty):not(.gc-selected) { background: var(--bg); color: var(--accent); }
#tab-submit .gc-day.gc-other-month { color: var(--text-muted); }
#tab-submit .gc-day.gc-empty { cursor: default; }
#tab-submit .gc-day.gc-selected { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transform: scale(1.05); }
#tab-submit .gc-day.gc-today:not(.gc-selected) { border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; }
#tab-submit .gc-day.gc-weekend { color: var(--error); }
#tab-submit .gc-day.gc-weekend.gc-selected { color: #fff; }
#tab-submit .gc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
#tab-submit .gc-btn-clear { font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.15s; }
#tab-submit .gc-btn-clear:hover { color: var(--error); background: var(--error-bg); }
#tab-submit .gc-btn-now { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--bg); border: 1px solid var(--border); padding: 4px 12px; border-radius: 6px; cursor: pointer; transition: all 0.18s; }
#tab-submit .gc-btn-now:hover { background: var(--border); }

/* 字段高亮动画 */
#tab-submit .field-flash { animation: fieldFlash 0.8s ease; }
@keyframes fieldFlash { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } 30% { box-shadow: 0 0 0 4px rgba(59,130,246,0.15); background: rgba(59,130,246,0.05); } 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } }

/* Responsive */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; height: 52px; }
    .navbar-brand span { display: none; }
    .tabbar { padding: 0 20px; }
    .tab-item { padding: 0 14px; font-size: 12.5px; }
    .content { padding: 24px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 24px; }
    .bottom-nav { display: block; }
    .main-page { padding-bottom: 80px; }
    th, td { padding: 10px 12px; font-size: 12px; }
    .page-title { font-size: 21px; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .tab-item { padding: 0 10px; font-size: 12px; }
    .content { padding: 16px 14px; }
    .stat-value { font-size: 24px; }
    .tabbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab-item { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 480px) {
    .navbar { padding: 0 14px; height: 48px; }
    .navbar-brand { font-size: 16px; }
    .navbar-right { gap: 10px; font-size: 12px; }
    .logout-btn { height: 28px; padding: 0 10px; font-size: 11px; }
    .tabbar { padding: 0 10px; }
    .tab-item { padding: 0 10px; font-size: 11.5px; height: 44px; }
    .content { padding: 14px 12px; }
    .page-title { font-size: 18px; margin-bottom: 20px; }
    .stat-card { padding: 12px; }
    .stat-card .value { font-size: 22px; }
    .stat-card .label { font-size: 12px; }
    .login-card { width: 92vw; padding: 28px 20px; }
    .login-brand h1 { font-size: 24px; }
    .card-header { padding: 14px 16px; }
    .card-header h3 { font-size: 15px; }
    .filter-bar { padding: 12px 16px; gap: 8px; }
    .filter-bar input { height: 34px; font-size: 12px; }
    .filter-bar .custom-select { width: 120px; }
    .filter-bar .cs-trigger { height: 34px; font-size: 12px; }
    th, td { padding: 8px 10px; font-size: 11.5px; }
    .modal { max-width: 92vw; }
    .modal-header { padding: 16px 18px; }
    .modal-body { padding: 16px 18px; }
    .modal-footer { padding: 14px 18px; }
    .form-group input { height: 40px; }
    .leaderboard-item { padding: 14px 18px; gap: 12px; }
    .rank-num { width: 32px; height: 32px; font-size: 13px; }
    .rank-info .name { font-size: 14px; }
    .rank-stats .count { font-size: 13px; }
    .teammate-item, .request-item { padding: 12px 16px; }
    .bottom-nav-items { height: 56px; }
    .bottom-nav-item { font-size: 10px; gap: 2px; }
    .bottom-nav-item .icon { font-size: 18px; }
    #tab-submit .submit-layout { padding: 16px 14px 60px; }
    #tab-submit .submit-card { padding: 20px 16px 18px; }
    #tab-submit .mode-grid { grid-template-columns: 1fr; gap: 10px; }
    #tab-submit .mode-card { padding: 18px 14px; }
    #tab-submit .form-grid { grid-template-columns: 1fr; gap: 12px; }
    #tab-submit .field { margin-bottom: 0; }
    #tab-submit input, #tab-submit textarea { font-size: 16px; }
    #tab-submit .datetime-row { flex-direction: column; gap: 8px; }
    #tab-submit .dt-date-col, #tab-submit .dt-time-col { width: 100%; }
    #tab-submit .date-row { flex-direction: column; gap: 8px; }
    #tab-submit .btn-today { width: 100%; height: 40px; }
    #tab-submit .btn-submit { height: 44px; font-size: 14px; }
    .history-drawer { width: 100vw; }
    .smart-rec-box { width: 92vw; padding: 18px 16px 16px; }
    .smart-rec-area { min-height: 140px; }
    .forgot-card { width: 92vw; padding: 28px 20px 24px; }
    .forgot-brand h3 { font-size: 18px; }
    .forgot-field input { height: 42px; }
    .forgot-submit { height: 44px; font-size: 14px; }
}
