* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif; background: #F8FAFC; color: #0F172A; min-height: 100vh; }
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%); padding: 20px; }
.login-container { display: flex; width: 960px; max-width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.login-left-brand { flex: 1; background: #1E1B4B; color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.brand-badge { display: inline-block; padding: 4px 10px; background: #4338CA; border-radius: 20px; font-size: 11px; font-weight: 700; color: #C7D2FE; margin-bottom: 12px; }
.brand-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.brand-subtitle { font-size: 13px; color: #A5B4FC; line-height: 1.5; margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon { font-size: 18px; }
.feature-title { font-size: 13px; font-weight: 700; color: #E0E7FF; }
.feature-desc { font-size: 11.5px; color: #94A3B8; }
.store-footer { font-size: 11.5px; color: #94A3B8; border-top: 1px solid #312E81; padding-top: 14px; }
.login-right-form { width: 440px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.form-header h2 { font-size: 18px; font-weight: 800; color: #1E1B4B; margin-bottom: 6px; }
.form-header p { font-size: 12.5px; color: #64748B; margin-bottom: 18px; }
.input-group { margin-bottom: 14px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 13px; outline: none; }
.role-switch-divider { text-align: center; margin: 16px 0 10px; position: relative; }
.role-switch-divider span { background: #fff; padding: 0 10px; font-size: 11px; color: #94A3B8; }
.quick-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-card { border: 1px solid #E2E8F0; border-radius: 8px; padding: 8px; text-align: center; cursor: pointer; transition: all 0.15s; }
.role-card:hover { border-color: #7C3AED; background: #FAF5FF; }
.role-name { font-size: 11.5px; font-weight: 700; color: #1E1B4B; margin-top: 2px; }
.role-dept { font-size: 10px; color: #64748B; }

.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 230px; background: #1E1B4B; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { padding: 18px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #312E81; }
.brand-name { font-size: 15px; font-weight: 800; color: #fff; }
.brand-store { font-size: 10.5px; color: #A5B4FC; }
.sidebar-menu { flex: 1; padding: 10px 8px; list-style: none; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; color: #C7D2FE; cursor: pointer; margin-bottom: 4px; transition: all 0.15s; }
.menu-item.active { background: #7C3AED; color: #fff; font-weight: 700; }
.menu-item:hover:not(.active) { background: #312E81; color: #fff; }
.sidebar-user { padding: 12px 16px; border-top: 1px solid #312E81; display: flex; align-items: center; gap: 10px; background: #18153B; }
.user-avatar { font-size: 20px; }
.user-name { font-size: 12px; font-weight: 700; color: #fff; }
.user-role { font-size: 10.5px; color: #94A3B8; }
.btn-logout { margin-left: auto; background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 16px; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-nav { height: 56px; background: #fff; border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.nav-title h3 { font-size: 15px; font-weight: 800; color: #1E1B4B; }
.nav-sub { font-size: 11px; color: #64748B; margin-left: 10px; }
.nav-actions { display: flex; gap: 8px; }
.page-container { flex: 1; overflow-y: auto; padding: 18px; }
.kpi-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.kpi-card.warning { border-color: #F87171; background: #FEF2F2; }
.kpi-num { font-size: 24px; font-weight: 800; color: #1E1B4B; line-height: 1.2; }
.kpi-label { font-size: 11.5px; color: #64748B; margin-top: 4px; }
.content-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12.5px; }
.data-table th { background: #F8FAFC; padding: 10px 12px; font-weight: 700; color: #64748B; border-bottom: 1px solid #E2E8F0; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; transition: all 0.15s; }
.btn-primary { background: #7C3AED; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #CBD5E1; color: #334155; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.badge-tag { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #F1F5F9; color: #475569; }
.badge-tag.danger { background: #FEE2E2; color: #DC2626; }
.badge-tag.warning { background: #FEF3C7; color: #D97706; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.status-badge.PENDING { background: #FEF3C7; color: #D97706; }
.status-badge.DOING { background: #DBEAFE; color: #1D4ED8; }
.status-badge.ACCEPTING { background: #EDE9FE; color: #7C3AED; }
.status-badge.CLOSED { background: #DCFCE7; color: #15803D; }

/* 语音交互模式库模态框 */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.7); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.voice-modal { width: 520px; max-width: 95vw; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); border: 2px solid #7C3AED; }
.voice-modal-header { background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 100%); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.voice-modal-body { padding: 20px; }
.wave-bars { display: flex; gap: 4px; align-items: center; justify-content: center; height: 36px; margin: 16px 0; }
.wave-bar { width: 4px; height: 12px; background: #7C3AED; border-radius: 2px; animation: wave 0.8s infinite ease-in-out alternate; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 24px; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 32px; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; height: 20px; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; height: 28px; }
@keyframes wave { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1.4); } }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { padding: 4px 10px; background: #EDE9FE; color: #6D28D9; border-radius: 16px; font-size: 11.5px; font-weight: 700; border: 1px solid #C4B5FD; cursor: pointer; }
.room-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.room-box { border: 1px solid #CBD5E1; border-radius: 8px; padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.room-box.done { background: #F1F5F9; color: #94A3B8; cursor: not-allowed; }
.room-box.selected { background: #7C3AED; color: #fff; border-color: #7C3AED; }
.toast-notice { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #1E1B4B; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 12.5px; font-weight: 700; z-index: 10000; box-shadow: 0 10px 25px rgba(0,0,0,0.25); border: 1px solid #A855F7; }
