* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background:#f5f5f5; color:#333; -webkit-font-smoothing:antialiased; }

/* Header */
.header { position:fixed; top:0; left:0; right:0; height:50px; background:#1677FF; display:flex; align-items:center; justify-content:space-between; padding:0 16px; z-index:100; }
.header-title { color:#fff; font-size:17px; font-weight:600; }
.header-user { color:#fff; font-size:13px; opacity:0.9; cursor:pointer; }

/* Main */
.main { margin-top:50px; margin-bottom:56px; padding:12px; }

/* Stats */
.stats-bar { display:flex; background:#fff; border-radius:12px; padding:16px 0; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.stat-item { flex:1; text-align:center; }
.stat-num { display:block; font-size:24px; font-weight:700; color:#333; }
.stat-num.orange { color:#FF9800; }
.stat-num.blue { color:#2196F3; }
.stat-num.green { color:#4CAF50; }
.stat-num.red { color:#F44336; }
.stat-label { font-size:11px; color:#999; margin-top:2px; }

/* Search */
.search-bar { display:flex; gap:8px; margin-bottom:12px; }
.search-input { flex:1; height:38px; border:1px solid #e0e0e0; border-radius:20px; padding:0 16px; font-size:14px; background:#fff; outline:none; }
.search-input:focus { border-color:#1677FF; }
.search-btn { width:38px; height:38px; border:none; background:#1677FF; color:#fff; border-radius:50%; font-size:16px; cursor:pointer; }

/* Status Tabs */
.status-tabs { display:flex; gap:8px; margin-bottom:12px; overflow-x:auto; padding-bottom:4px; }
.status-tabs .tab { padding:6px 14px; border-radius:16px; font-size:13px; background:#fff; color:#666; cursor:pointer; white-space:nowrap; border:1px solid #e8e8e8; }
.status-tabs .tab.active { background:#1677FF; color:#fff; border-color:#1677FF; }

/* Order Cards */
.order-list { display:flex; flex-direction:column; gap:10px; }
.order-card { background:#fff; border-radius:12px; padding:14px; box-shadow:0 1px 4px rgba(0,0,0,0.04); cursor:pointer; transition:transform 0.1s; }
.order-card:active { transform:scale(0.98); }
.card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.card-order-no { font-size:15px; font-weight:600; }
.card-status { padding:3px 10px; border-radius:10px; color:#fff; font-size:11px; font-weight:500; }
.card-info { font-size:13px; color:#666; line-height:1.8; }
.card-info .label { color:#999; }
.card-footer { display:flex; justify-content:space-between; margin-top:10px; padding-top:8px; border-top:1px solid #f5f5f5; font-size:12px; color:#999; }
.card-days { color:#FF9800; font-weight:500; }

/* FAB */
.fab { position:fixed; right:20px; bottom:76px; width:50px; height:50px; border-radius:50%; background:#1677FF; color:#fff; border:none; font-size:28px; box-shadow:0 3px 12px rgba(22,119,255,0.4); cursor:pointer; z-index:90; }

/* Tab Bar */
.tab-bar { position:fixed; bottom:0; left:0; right:0; height:56px; background:#fff; display:flex; border-top:1px solid #eee; z-index:100; }
.tab-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; color:#999; }
.tab-item.active { color:#1677FF; }
.tab-icon { font-size:20px; }
.tab-label { font-size:11px; margin-top:2px; }

/* Modal */
.modal { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:200; display:flex; align-items:flex-end; justify-content:center; }
.modal-content { background:#fff; border-radius:16px 16px 0 0; width:100%; max-width:500px; max-height:90vh; overflow-y:auto; }
.modal-content.modal-full { border-radius:0; height:100vh; max-height:100vh; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; z-index:1; }
.modal-header h3 { font-size:16px; }
.modal-close { font-size:24px; color:#999; cursor:pointer; padding:4px 8px; }
.modal-body { padding:20px; }

/* Form */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; color:#666; margin-bottom:6px; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding:10px 12px; border:1px solid #e0e0e0; border-radius:8px; font-size:14px; outline:none; }
.form-group input:focus, .form-group textarea:focus { border-color:#1677FF; }
.form-group textarea { height:100px; resize:none; }
.btn-primary { width:100%; height:44px; background:#1677FF; color:#fff; border:none; border-radius:22px; font-size:15px; font-weight:600; cursor:pointer; }
.btn-primary:active { background:#0958d9; }

/* Quick Tags */
.quick-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.qtag { padding:6px 12px; background:#f0f7ff; color:#1677FF; border-radius:14px; font-size:12px; cursor:pointer; }
.qtag:active { background:#dbeafe; }

/* Detail Page */
.detail-info { margin-bottom:20px; }
.detail-row { display:flex; padding:10px 0; border-bottom:1px solid #f8f8f8; font-size:14px; }
.detail-label { width:80px; color:#999; flex-shrink:0; }
.detail-value { flex:1; color:#333; word-break:break-all; }
.detail-value.issue { color:#F44336; }

.timeline { padding-left:20px; margin:16px 0; }
.timeline-item { position:relative; padding:0 0 20px 20px; border-left:2px solid #e8e8e8; }
.timeline-item:last-child { border-left-color:transparent; }
.timeline-item::before { content:''; position:absolute; left:-6px; top:4px; width:10px; height:10px; border-radius:50%; background:#ddd; }
.timeline-item:first-child::before { background:#1677FF; box-shadow:0 0 6px rgba(22,119,255,0.3); }
.tl-date { font-size:12px; color:#999; }
.tl-text { font-size:14px; color:#333; margin:4px 0; }
.tl-operator { font-size:11px; color:#bbb; }

.detail-actions { display:flex; gap:10px; padding:16px 0; position:sticky; bottom:0; background:#fff; }
.btn-action { flex:1; height:40px; border:none; border-radius:20px; color:#fff; font-size:14px; cursor:pointer; }
.btn-action.blue { background:#1677FF; }
.btn-action.green { background:#4CAF50; }
.btn-action.orange { background:#FF9800; }

/* Feedback order info */
.feedback-order { font-size:13px; color:#999; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #f0f0f0; }

/* Toast */
.toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,0.75); color:#fff; padding:10px 24px; border-radius:8px; font-size:14px; z-index:999; }

/* Load more */
.load-more { text-align:center; padding:16px; color:#1677FF; font-size:14px; cursor:pointer; }

/* Empty state */
.empty-state { text-align:center; padding:60px 20px; color:#999; }
.empty-state .emoji { font-size:48px; margin-bottom:12px; }

/* Responsive */
@media (min-width:768px) {
  .main { max-width:600px; margin-left:auto; margin-right:auto; }
  .modal-content { border-radius:16px; max-height:80vh; }
  .modal-content.modal-full { border-radius:12px; height:auto; max-height:90vh; }
  .modal { align-items:center; }
}

/* Login Tabs */
.login-tabs { display:flex; gap:0; margin-bottom:20px; border-bottom:2px solid #f0f0f0; }
.ltab { flex:1; text-align:center; padding:10px; font-size:15px; color:#999; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; }
.ltab.active { color:#1677FF; border-bottom-color:#1677FF; font-weight:600; }

/* Remind section */
.remind-section { margin:16px 0; padding:12px; background:#fff8e1; border-radius:8px; border:1px solid #ffe082; }
.remind-toggle { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.remind-toggle input[type=checkbox] { width:18px; height:18px; }

/* Overdue filter */
.overdue-filter { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#fff3e0; border-radius:8px; margin-bottom:12px; font-size:13px; color:#e65100; }
.overdue-filter select { padding:4px 8px; border:1px solid #ffcc80; border-radius:6px; font-size:13px; background:#fff; }
.tab.overdue { color:#F44336!important; border-color:#ffcdd2!important; background:#fff5f5!important; }
.tab.overdue.active { background:#F44336!important; color:#fff!important; border-color:#F44336!important; }

/* Upload */
.upload-area { margin-top:4px; }
.upload-btn { display:inline-flex; align-items:center; gap:4px; padding:8px 16px; border:1px dashed #bbb; border-radius:8px; color:#666; font-size:13px; cursor:pointer; }
.upload-btn:active { background:#f5f5f5; }
.preview-list { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.preview-item { position:relative; width:64px; height:64px; border-radius:6px; overflow:hidden; }
.preview-item img { width:100%; height:100%; object-fit:cover; }
.preview-remove { position:absolute; top:0; right:0; width:18px; height:18px; background:rgba(0,0,0,0.6); color:#fff; font-size:12px; text-align:center; line-height:18px; cursor:pointer; border-radius:0 0 0 4px; }

/* Timeline images */
.tl-images { display:flex; gap:6px; margin:8px 0; flex-wrap:wrap; }
.tl-images img { width:56px; height:56px; object-fit:cover; border-radius:6px; cursor:pointer; border:1px solid #eee; }

/* Feedback time display */
.fb-time-display { font-size:13px; color:#666; padding:8px 12px; background:#f8f8f8; border-radius:8px; margin-bottom:16px; }

/* Countdown */
.card-countdown { font-size:12px; color:#FF9800; padding:4px 8px; background:#FFF8E1; border-radius:4px; margin-top:6px; }
