tracexd/target/classes/static/css/style.css
2026-06-09 16:03:44 +08:00

120 lines
9.6 KiB
CSS

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f7; color: #1d1d1f; min-height: 100vh; }
a { color: #007aff; text-decoration: none; }
a:hover { text-decoration: underline; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e5e5e7; position: sticky; top: 0; z-index: 100; }
.header-title { font-size: 18px; font-weight: 600; }
.header-link { font-size: 14px; color: #007aff; }
.header-nav { display: flex; align-items: center; gap: 12px; }
.header-logout { font-size: 14px; color: #999; cursor: pointer; }
.header-logout:hover { color: #ff3b30; }
.main-content { max-width: 960px; margin: 0 auto; padding: 16px; min-height: calc(100vh - 52px); padding-bottom: 100px; }
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 999; transition: opacity 0.3s; text-align: center; max-width: 90%; white-space: nowrap; }
.toast.hidden { opacity: 0; pointer-events: none; }
.toast.show { opacity: 1; }
.toast-success { background: #34c759; color: #fff; }
.toast-error { background: #ff3b30; color: #fff; }
.toast-info { background: #007aff; color: #fff; }
.mic-btn { position: fixed; bottom: 40px; left: 50%; margin-left: -40px; width: 80px; height: 80px; border-radius: 50%; background: #007aff; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(0,122,255,0.4); display: flex; align-items: center; justify-content: center; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; z-index: 200; touch-action: none; }
.mic-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,122,255,0.5); }
.mic-btn:active, .mic-btn.recording { transform: scale(0.95); background: #ff3b30; box-shadow: 0 4px 16px rgba(255,59,48,0.4); }
.mic-icon { width: 38px; height: 38px; color: #fff; }
.result-area { margin-bottom: 16px; }
.query-result-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e5e5e7; }
.query-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.query-table th, .query-table td { padding: 8px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.query-table th { font-weight: 600; color: #666; background: #fafafa; }
.ai-summary { padding: 8px 0; font-size: 14px; line-height: 1.6; color: #333; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #333; }
.empty-hint { color: #999; font-size: 14px; text-align: center; padding: 32px 0; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.record-item { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); border: 1px solid #e5e5e7; font-size: 14px; }
.rec-time { color: #666; min-width: 50px; font-size: 13px; white-space: nowrap; }
.rec-person { color: #007aff; font-weight: 500; min-width: 36px; }
.rec-content { flex: 1; color: #333; }
.rec-amount { font-weight: 600; color: #333; min-width: 60px; text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #fff; white-space: nowrap; }
.badge-default { background: #666; }
.card-default { background: transparent; }
.card-c1 { background: rgba(255, 149, 0, 0.08); }
.card-c2 { background: rgba(0, 122, 255, 0.08); }
.card-c3 { background: rgba(255, 45, 85, 0.08); }
.card-c4 { background: rgba(175, 82, 222, 0.08); }
.card-c5 { background: rgba(52, 199, 89, 0.08); }
.card-c6 { background: rgba(88, 86, 214, 0.08); }
.card-c7 { background: rgba(255, 149, 0, 0.08); }
.card-c8 { background: rgba(0, 122, 255, 0.08); }
.card-c9 { background: rgba(255, 45, 85, 0.08); }
.card-c10 { background: rgba(175, 82, 222, 0.08); }
.card-c11 { background: rgba(52, 199, 89, 0.08); }
.card-c12 { background: rgba(88, 86, 214, 0.08); }
.badge-c1 { background: #ff9500; }
.badge-c2 { background: #007aff; }
.badge-c3 { background: #ff2d55; }
.badge-c4 { background: #af52de; }
.badge-c5 { background: #34c759; }
.badge-c6 { background: #5856d6; }
.badge-c7 { background: #ff9500; }
.badge-c8 { background: #007aff; }
.badge-c9 { background: #ff2d55; }
.badge-c10 { background: #af52de; }
.badge-c11 { background: #34c759; }
.badge-c12 { background: #5856d6; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%); }
.login-container { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); width: 360px; max-width: 90%; }
.login-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 4px; color: #1d1d1f; }
.login-subtitle { text-align: center; font-size: 14px; color: #999; margin-bottom: 24px; }
.login-error { background: #fff2f2; color: #ff3b30; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.login-info { background: #e8f4ff; color: #007aff; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #555; }
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid #d1d1d6; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: #007aff; box-shadow: 0 0 0 3px rgba(0,122,255,0.1); }
.form-remember { margin-bottom: 20px; font-size: 13px; color: #666; }
.form-remember input { margin-right: 6px; }
.login-btn { width: 100%; padding: 12px; background: #007aff; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.login-btn:hover { background: #0056cc; }
.filter-section { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e5e5e7; margin-bottom: 16px; }
.filter-section.hidden { display: none; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-of-type { margin-bottom: 12px; }
.filter-label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 8px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn { display: inline-block; padding: 6px 14px; border-radius: 6px; border: 1px solid #d1d1d6; background: #fff; font-size: 13px; cursor: pointer; transition: all 0.15s; user-select: none; color: #333; }
.tag-btn:hover { border-color: #007aff; color: #007aff; }
.tag-btn.active { background: #007aff; color: #fff; border-color: #007aff; }
.filter-date-range { display: flex; align-items: center; gap: 8px; }
.date-input { padding: 6px 12px; border: 1px solid #d1d1d6; border-radius: 6px; font-size: 13px; outline: none; }
.date-input:focus { border-color: #007aff; }
.date-sep { color: #999; }
.filter-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.btn { padding: 8px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; }
.btn-primary { background: #007aff; color: #fff; }
.btn-primary:hover { background: #0056cc; }
.btn-secondary { background: #f5f5f7; color: #333; border: 1px solid #d1d1d6; }
.btn-secondary:hover { background: #e8e8ed; }
.btn-link { background: none; color: #007aff; padding: 4px 8px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-page { padding: 6px 14px; font-size: 13px; background: #fff; border: 1px solid #d1d1d6; border-radius: 6px; color: #333; }
.btn-page:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-page:hover:not(:disabled) { border-color: #007aff; color: #007aff; }
.filter-summary { background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e5e5e7; margin-bottom: 16px; font-size: 13px; color: #666; display: flex; align-items: center; gap: 12px; }
.summary-bar { background: #e8f4ff; border-radius: 8px; padding: 10px 16px; margin-bottom: 12px; font-size: 14px; color: #007aff; }
.summary-bar strong { font-size: 16px; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); border: 1px solid #e5e5e7; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.data-table th { background: #fafafa; font-weight: 600; color: #666; white-space: nowrap; }
.data-table tbody tr:hover { background: #f8f8fa; }
.empty-cell { text-align: center; color: #999; padding: 32px 0 !important; }
.col-time { width: 180px; white-space: nowrap; }
.col-person { width: 80px; }
.col-location { min-width: 120px; max-width: 200px; }
.col-content { min-width: 160px; max-width: 400px; }
.col-amount { width: 100px; text-align: right; }
.col-amount-cell { text-align: right; font-weight: 600; }
.col-category { width: 80px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; font-size: 13px; color: #666; }
@media (max-width: 640px) { .main-content { padding: 12px; padding-bottom: 100px; } .mic-btn { bottom: 24px; left: 50%; margin-left: -34px; width: 68px; height: 68px; } .mic-icon { width: 32px; height: 32px; } .data-table { font-size: 12px; } .data-table th, .data-table td { padding: 8px 10px; } .col-time { width: 140px; } .col-location { max-width: 120px; } .col-content { max-width: 200px; } }