* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5; min-height: 100vh; color: #333;
}

.login-view { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); overflow: hidden; }
.login-card .login-header { background: linear-gradient(135deg, #1a6fb5, #0d4f85); padding: 32px 24px; text-align: center; }
.login-card .login-header .logo-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 30px; color: #fff; }
.login-card .login-header h1 { color: #fff; font-size: 20px; font-weight: 600; }
.login-card .login-header .subtitle { color: rgba(255,255,255,0.75); font-size: 13px; margin-top: 4px; }
.login-card .login-body { padding: 24px; }
.login-step-list { list-style: none; margin-bottom: 16px; }
.login-step-list .login-step { display: flex; align-items: center; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: #f8fafb; transition: all .3s; }
.login-step-list .login-step .step-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.login-step-list .login-step .step-text .step-title { font-size: 13px; font-weight: 500; }
.login-step-list .login-step .step-text .step-desc { font-size: 11px; color: #999; margin-top: 2px; }
.step-pending .step-dot { background: #e8ecf0; color: #aaa; }
.step-pending .step-title { color: #999; }
.step-active .step-dot { background: #e6f0fa; color: #1a6fb5; animation: dotPulse 1.2s ease-in-out infinite; }
.step-active .step-title { color: #1a6fb5; font-weight: 600; }
.step-success .step-dot { background: #e6f8ee; color: #27ae60; }
.step-success .step-title { color: #27ae60; }
.step-error .step-dot { background: #fdeaea; color: #e74c3c; }
.step-error .step-title { color: #e74c3c; }
@keyframes dotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.login-detail { text-align: center; }
.login-detail .status-msg { font-size: 14px; color: #1a6fb5; font-weight: 500; }
.login-detail .status-err { padding: 14px; border-radius: 8px; margin-top: 12px; display: none; }
.login-detail .status-err.show { display: block; }
.login-detail .status-err.success { background: #e6f8ee; border:1px solid #b8e6cc; }
.login-detail .status-err.success .err-title { color: #27ae60; font-size: 15px; font-weight: 600; }
.login-detail .status-err.error { background: #fdeaea; border:1px solid #f5c6c6; }
.login-detail .status-err.error .err-title { color: #e74c3c; font-size: 15px; font-weight: 600; }
.login-detail .status-err .err-desc { font-size: 12px; color: #666; margin-top: 4px; }
.login-detail .status-err .err-tip { font-size: 11px; color: #999; margin-top: 6px; }
.login-outside { text-align: center; padding: 32px 16px; display: none; }
.login-outside.show { display: block; }
.login-outside .warn-icon { font-size: 48px; margin-bottom: 12px; }
.login-outside h2 { color: #e74c3c; font-size: 17px; margin-bottom: 8px; }
.login-outside p { color: #888; font-size: 13px; line-height: 1.6; }

.dashboard-view { display: none; }
.dashboard-view.show { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.navbar { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, #1a6fb5, #0d4f85); padding: 0 16px; height: 48px; display: flex; align-items: center; justify-content: space-between; }
.navbar .nav-left { display: flex; align-items: center; gap: 4px; }
.navbar .nav-logo { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.navbar .nav-logo-icon { font-size: 20px; margin-right: 2px; }
.navbar .nav-tabs { display: flex; align-items: center; gap: 0; margin-left: 16px; }
.navbar .nav-tab { color: rgba(255,255,255,0.72); font-size: 13px; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.navbar .nav-tab.active { color: #fff; background: rgba(255,255,255,0.18); font-weight: 600; }
.navbar .nav-tab:active { background: rgba(255,255,255,0.25); }
.navbar .nav-right { display: flex; align-items: center; gap: 10px; }
.navbar .nav-user { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.navbar .nav-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.navbar .nav-user .user-name { color: #fff; font-size: 13px; font-weight: 500; }
.navbar .nav-logout { color: rgba(255,255,255,0.7); font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.navbar .nav-logout:active { background: rgba(255,255,255,0.15); }
.breadcrumb { padding: 10px 16px; font-size: 12px; color: #999; background: #fff; border-bottom: 1px solid #eee; }
.breadcrumb span { color: #1a6fb5; font-weight: 500; }
.main-content { padding: 12px 10px 24px; }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .2s; }
.stat-card:active { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stat-card .stat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stat-card .stat-icon.blue { background: #e6f0fa; color: #1a6fb5; }
.stat-card .stat-icon.green { background: #e6f8ee; color: #27ae60; }
.stat-card .stat-icon.orange { background: #fef5e7; color: #f39c12; }
.stat-card .stat-icon.red { background: #fdeaea; color: #e74c3c; }
.stat-card .stat-title { font-size: 12px; color: #999; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; color: #333; margin: 4px 0; }
.stat-card .stat-sub { font-size: 11px; color: #999; }
.section-title { font-size: 15px; font-weight: 600; color: #333; padding: 6px 2px 10px; display: flex; align-items: center; gap: 6px; }
.section-title::before { content:''; width:3px; height:16px; background:#1a6fb5; border-radius:2px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.module-card { background: #fff; border-radius: 10px; padding: 16px 10px 12px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; transition: all .2s; text-decoration: none; }
.module-card:active { box-shadow: 0 2px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }
.module-card .mod-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.module-card .mod-name { font-size: 13px; font-weight: 500; color: #333; }
.module-card .mod-desc { font-size: 10px; color: #aaa; margin-top: 2px; }
.mod-icon.blue { background: #e6f0fa; color: #1a6fb5; }
.mod-icon.green { background: #e6f8ee; color: #27ae60; }
.mod-icon.orange { background: #fef5e7; color: #f39c12; }
.mod-icon.purple { background: #f3e8fa; color: #8e44ad; }
.mod-icon.teal { background: #e6fafa; color: #16a085; }
.mod-icon.pink { background: #fde8f0; color: #e91e63; }
.quick-actions { margin-bottom: 14px; }
.quick-actions .action-btns { display: flex; gap: 8px; }
.quick-actions .action-btn { flex: 1; padding: 10px 0; border-radius: 8px; border: 1px solid #e0e4e8; background: #fff; font-size: 12px; color: #1a6fb5; font-weight: 500; text-align: center; cursor: pointer; transition: all .2s; }
.quick-actions .action-btn:active { background: #f0f6fb; border-color: #1a6fb5; }
.page-content { display: none; }
.page-content.active { display: block; animation: fadeIn .3s ease; }
.empty-page { text-align: center; padding: 60px 20px; }
.empty-page .empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-page .empty-title { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 6px; }
.empty-page .empty-desc { font-size: 13px; color: #aaa; }
.app-footer { text-align: center; padding: 16px; font-size: 11px; color: #bbb; }

.quality-module { max-width: 1200px; margin: 0 auto; }
.ql-steps { display: flex; background: #fff; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); align-items: center; }
.ql-step { display: flex; align-items: center; flex: 1; }
.ql-step .ql-step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; background: #e8ecf0; color: #aaa; transition: all .3s; }
.ql-step .ql-step-info { margin-left: 10px; }
.ql-step .ql-step-info .ql-label { font-size: 13px; font-weight: 500; color: #999; }
.ql-step .ql-step-info .ql-desc { font-size: 11px; color: #bbb; margin-top: 2px; }
.ql-step-divider { flex: 0 0 40px; height: 2px; background: #e8ecf0; margin: 0 8px; transition: all .3s; }
.ql-step.active .ql-step-num { background: #1a6fb5; color: #fff; }
.ql-step.active .ql-label { color: #1a6fb5 !important; font-weight: 600 !important; }
.ql-step.done .ql-step-num { background: #27ae60; color: #fff; }
.ql-step.done .ql-label { color: #27ae60 !important; }
.ql-step-divider.done { background: #27ae60; }
.ql-panel { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 16px; }
.ql-panel .ql-panel-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }
.ql-panel .ql-panel-subtitle { font-size: 12px; color: #999; margin-bottom: 16px; }
.ql-form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ql-date-input { padding: 8px 14px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 14px; color: #333; outline: none; width: 180px; font-family: inherit; }
.ql-date-input:focus { border-color: #1a6fb5; box-shadow: 0 0 0 3px rgba(26,111,181,0.1); }
.ql-btn { padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ql-btn-primary { background: #1a6fb5; color: #fff; }
.ql-btn-primary:hover { background: #155d96; }
.ql-btn-primary:disabled { background: #a0c4de; cursor: not-allowed; }
.ql-btn-outline { background: #fff; color: #1a6fb5; border: 1px solid #1a6fb5; }
.ql-btn-outline:hover { background: #f0f6fb; }
.ql-btn-success { background: #27ae60; color: #fff; }
.ql-btn-success:hover { background: #219a52; }
.ql-btn-success:disabled { background: #a3d6b5; cursor: not-allowed; }
.ql-btn-sm { padding: 4px 12px; font-size: 12px; }
.ql-progress { height: 4px; background: #e8ecf0; border-radius: 2px; margin: 12px 0; overflow: hidden; }
.ql-progress-bar { height: 100%; background: #1a6fb5; border-radius: 2px; transition: width .3s; }
.ql-upload-zone { border: 2px dashed #d0d5dd; border-radius: 12px; padding: 36px 20px; text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 16px; }
.ql-upload-zone:hover, .ql-upload-zone.dragover { border-color: #1a6fb5; background: #f8fafc; }
.ql-upload-zone .ql-upload-icon { font-size: 42px; margin-bottom: 10px; }
.ql-upload-zone .ql-upload-text { font-size: 14px; color: #555; font-weight: 500; }
.ql-upload-zone .ql-upload-hint { font-size: 12px; color: #999; margin-top: 6px; }
.ql-upload-zone input[type="file"] { display: none; }
.ql-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ql-upload-table-scroll { max-height: 740px; overflow-y: auto; border: 1px solid #e8ecf0; border-radius: 6px; }
.ql-upload-table-scroll .ql-table { min-width: 100%; }
.ql-upload-table-scroll thead { position: sticky; top: 0; z-index: 1; }
.ql-dual-scroll { max-height: 660px; overflow-y: auto; border: 1px solid #e8ecf0; border-radius: 6px; }
.ql-dual-scroll .ql-table { min-width: 100%; }
.ql-dual-scroll thead { position: sticky; top: 0; z-index: 1; }
.ql-table { width: auto; min-width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.ql-table th { text-align: left; padding: 8px 10px; background: #f8fafb; color: #777; font-weight: 600; font-size: 12px; border-bottom: 2px solid #e8ecf0; white-space: nowrap; position: relative; cursor: default; }
.ql-table th.dragover { background: #e8f0fe; }
.ql-table th.dragging { opacity: 0.5; }
.ql-table th.ql-sortable { cursor: pointer; user-select: none; }
.ql-table th.ql-sortable:hover { background: #e8f0fe; }
.ql-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; color: #444; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ql-table th .col-label { display: inline-block; vertical-align: middle; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.col-toggle-btn { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; cursor: pointer; color: #999; font-size: 13px; margin-left: 4px; border-radius: 4px; vertical-align: middle; user-select: none; }
.col-toggle-btn:hover { color: #333; background: #e8ecf0; }
.col-toggle-drop { position: absolute; top: 100%; right: 0; z-index: 100; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 8px 0; min-width: 180px; max-height: 300px; overflow-y: auto; display: none; }
.col-toggle-drop.show { display: block; }
.col-toggle-drop .drop-item { display: flex; align-items: center; padding: 6px 14px; cursor: pointer; font-size: 12px; color: #444; }
.col-toggle-drop .drop-item:hover { background: #f5f7fa; }
.col-toggle-drop .drop-item input { margin-right: 8px; }
.col-toggle-drop .drop-item.checked { color: #111; font-weight: 500; }
.th-gear { width: 36px; text-align: center; padding: 4px 0 !important; cursor: default !important; }
.th-gear .col-toggle-btn { font-size: 15px; margin-left: 0; }
.ql-table tr:last-child td { border-bottom: none; }
.ql-table tr:hover td { background: #fafbfc; }
.ql-img-link { color: #1890ff; cursor: pointer; text-decoration: none; font-size: 12px; }
.ql-img-link:hover { text-decoration: underline; }
.ql-img-viewer { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; }
.ql-img-viewer.show { display: flex; }
.ql-img-viewer img { max-width: 90vw; max-height: 90vh; border-radius: 6px; }
.ql-img-viewer .ql-img-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 32px; cursor: pointer; }
.ql-match-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ql-match-tag.success { background: #e6f8ee; color: #27ae60; }
.ql-match-tag.error { background: #fdeaea; color: #e74c3c; }
.ql-row-error td { background: #fff5f5 !important; }
.ql-row-deleted td { background: #f0f0f0 !important; color: #999 !important; text-decoration: line-through; }
.ql-step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.ql-step-actions .ql-actions-right { display: flex; gap: 10px; }
.ql-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.ql-summary-card { background: #fff; border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ql-summary-card .ql-summary-val { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.ql-summary-card .ql-summary-val.green { color: #27ae60; }
.ql-summary-card .ql-summary-val.orange { color: #f39c12; }
.ql-summary-card .ql-summary-val.red { color: #e74c3c; }
.ql-summary-card .ql-summary-val.blue { color: #1a6fb5; }
.ql-summary-card .ql-summary-label { font-size: 12px; color: #999; }
.ql-dual-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ql-dual-tables .ql-table-section { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); overflow: hidden; }
.ql-dual-tables .ql-section-hd { padding: 12px 16px; font-size: 14px; font-weight: 600; color: #333; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.ql-dual-tables .ql-section-badge { font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.ql-dual-tables .ql-section-badge.blue { background: #e6f0fa; color: #1a6fb5; }
.ql-dual-tables .ql-section-badge.green { background: #e6f8ee; color: #27ae60; }
.ql-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 1000; align-items: center; justify-content: center; }
.ql-modal-overlay.show { display: flex; }
.ql-modal { background: #fff; border-radius: 14px; width: 90%; max-width: 680px; max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.15); animation: modalIn .25s ease; }
@keyframes modalIn { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
.ql-modal-header { padding: 18px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.ql-modal-header h3 { font-size: 17px; font-weight: 600; color: #333; }
.ql-modal-close { width: 32px; height: 32px; border-radius: 50%; background: #f5f5f5; border: none; cursor: pointer; font-size: 16px; color: #666; display: flex; align-items: center; justify-content: center; }
.ql-modal-body { padding: 20px 24px; }
.ql-modal-footer { padding: 14px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }
.ql-assign-table { width: 100%; border-collapse: collapse; }
.ql-assign-table td { padding: 8px 6px; vertical-align: middle; }
.ql-assign-input { width: 100%; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 13px; outline: none; font-family: inherit; }
.ql-assign-input:focus { border-color: #1a6fb5; }
.ql-assign-select { width: 100%; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 13px; outline: none; font-family: inherit; background: #fff; cursor: pointer; appearance: auto; }
.ql-assign-select:focus { border-color: #1a6fb5; }
.ql-edit-input { border: 1px solid #c0c4cc; border-radius: 4px; padding: 4px 8px; font-size: 12px; color: #444; background: #fff; }
.ql-edit-input:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15); }
.ql-action-btn { padding: 3px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; border: 1px solid; transition: all .2s; }
.ql-delete-btn { color: #e74c3c; border-color: #e74c3c; background: #fff; }
.ql-delete-btn:hover { color: #fff; background: #e74c3c; }
.ql-restore-btn { color: #27ae60; border-color: #27ae60; background: #fff; }
.ql-restore-btn:hover { color: #fff; background: #27ae60; }
.ql-empty-row td { text-align: center; color: #bbb; padding: 32px !important; }
.ql-loading { text-align: center; padding: 40px 20px; }
.ql-loading .spinner { width: 28px; height: 28px; border-width: 3px; margin: 0 auto 12px; display: block; }
.ql-toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 500; z-index: 2000; animation: toastIn .3s ease; white-space: nowrap; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(-10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.ql-toast.success { background: #e6f8ee; color: #27ae60; border: 1px solid #b8e6cc; }
.ql-toast.error { background: #fdeaea; color: #e74c3c; border: 1px solid #f5c6c6; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #e0e4e8; border-top-color: #1a6fb5; border-radius: 50%; animation: spin .7s linear infinite; margin-right: 6px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
