/* ==========================================================================
   QLU Library Hub - Gemini High-End Design System
   Aesthetic: Apple iOS 18 + Linear Design System (Glassmorphism & Depth)
   ========================================================================== */

:root {
  --primary: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --primary-glow: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-main: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(226, 232, 240, 0.9);
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 16px 36px -8px var(--primary-glow);
  --blur-glass: blur(20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  background: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.09) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.09) 0px, transparent 50%),
    #f8fafc;
  color: var(--text-title);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 12px 14px 70px 14px;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.app-container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 顶部极简浮动导航栏 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-pod {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 19px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-sub {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.brand-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.glass-btn {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.glass-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   1. Titanium Pass Card (超星原版动态借证)
   ========================================================================== */
.original-cred-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.cred-card-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cred-toolbar-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-dot-wrapper {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.radar-wave {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(16, 185, 129, 0.6);
  border-radius: 50%;
  animation: radarWave 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarWave {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.cred-toolbar-actions {
  display: flex;
  gap: 6px;
}

.toolbar-action-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
}

.toolbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.toolbar-action-btn.highlight-sso {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  font-weight: 700;
}

.toolbar-action-btn.highlight-sso:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

.toolbar-action-btn:active {
  transform: scale(0.94);
}

/* 动态视口 (自适应高度，确保登录表单和二维码都能完美展现) */
.cx-iframe-wrapper {
  width: 100%;
  height: 440px;
  background: #ffffff;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: none; /* 默认使用高质感原生动态防伪卡片，避免被三方Cookie登录框拦截 */
}

#cx-live-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 原生 1:1 高精度动态防伪借证卡片 */
.native-cred-wrapper {
  background: #ffffff;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

.cred-header-banner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.cred-school-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-badge-icon {
  font-size: 24px;
}

.cred-school-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.cred-school-sub {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.cred-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 20px;
}

.cred-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s infinite;
}

.cred-user-info-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.cred-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cred-user-meta {
  flex: 1;
}

.cred-user-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.cred-user-id {
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cred-role-badge {
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 3px 8px;
  border-radius: 6px;
}

.cred-barcode-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0 8px;
}

#native-barcode {
  width: 90%;
  max-height: 46px;
}

.cred-qrcode-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.cred-qrcode-box {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: inline-block;
  overflow: hidden;
}

.anti-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
  box-shadow: 0 0 8px #3b82f6;
  animation: scanMove 2.4s ease-in-out infinite alternate;
}

@keyframes scanMove {
  0% { top: 6px; }
  100% { top: calc(100% - 8px); }
}

.cred-timer-row {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.cred-timer-pill {
  font-size: 11px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.cred-timestamp-tip {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* 备用离线码卡片 */
.local-backup-wrapper {
  padding: 20px 16px;
  text-align: center;
  display: none;
  background: #ffffff;
  animation: fadeIn 0.2s ease-out;
}

.backup-chip-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   2. Status Capsule (在座状态胶囊)
   ========================================================================== */
.status-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pin-icon { font-size: 16px; }

.status-seat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
}

.status-pill-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.status-pill-badge.idle {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
}

.status-time-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.status-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.tactile-btn {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.tactile-btn:active { transform: scale(0.94); }
.btn-emerald { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 12px var(--success-glow); }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); }
.btn-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); color: white; box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25); }
.btn-subtle { background: #f1f5f9; color: var(--text-body); border: 1px solid #e2e8f0; }

/* ==========================================================================
   3. Library Reading Room Cards Grid
   ========================================================================== */
.rooms-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented-date-bar {
  display: flex;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.segmented-date-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-date-btn.active {
  background: #ffffff;
  color: var(--text-title);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}

.room-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.room-card.selected {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow), 0 0 0 1px var(--primary);
  transform: translateY(-2px);
}

.room-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 105px;
  background: #cbd5e1;
  overflow: hidden;
}

.room-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.room-card:hover .room-thumb-img { transform: scale(1.04); }

.thumb-shadow-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.room-badge-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(30, 58, 138, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.room-floor-tag {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-title);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.room-body-wrap {
  padding: 11px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.room-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.room-name-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.capacity-progress-track {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2px;
}

.capacity-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
}

.room-meta-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.free-count-highlight {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.room-select-action {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 -2px 10px rgba(37, 99, 235, 0.2);
  animation: slideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card.selected .room-select-action { display: flex; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   4. Seat Selection Drawer Modal (抽屉式选座弹窗)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
}

.drawer-overlay.open { display: flex; }

.drawer-panel {
  background: #ffffff;
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: drawerSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-drag-bar {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  margin: 10px auto 4px auto;
}

.drawer-header {
  padding: 12px 20px 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title-main { font-size: 17px; font-weight: 800; color: var(--text-title); }
.drawer-title-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.drawer-body-scroll { padding: 16px 20px 30px 20px; overflow-y: auto; flex: 1; }

.legend-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot-free { width: 12px; height: 12px; border-radius: 4px; background: #ecfdf5; border: 1.5px solid #10b981; }
.legend-dot-busy { width: 12px; height: 12px; border-radius: 4px; background: #f1f5f9; border: 1.5px solid #cbd5e1; }

.seat-pod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.seat-pod {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.seat-pod.free {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.seat-pod.free:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.seat-pod.free:active { transform: scale(0.92); }

.seat-pod.occupied {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

.pod-num { font-size: 13px; font-weight: 800; }
.pod-tag { font-size: 10px; margin-top: 2px; font-weight: 600; }

/* ==========================================================================
   5. Dedicated Login Modal (专属全屏登录弹窗)
   ========================================================================== */
.login-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  height: 580px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.login-modal-header {
  padding: 14px 18px 10px;
  background: #0f172a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-tab-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.login-tab-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.login-modal-iframe {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}

/* Settings Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.form-group { margin-bottom: 12px; }
.form-label { font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 5px; display: block; }
.form-control { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid #cbd5e1; font-size: 13px; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-action-primary { flex: 1; background: var(--primary-gradient); color: white; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; border: none; cursor: pointer; }
.btn-action-subtle { flex: 1; background: #f1f5f9; color: var(--text-title); padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; border: 1px solid #e2e8f0; cursor: pointer; }

#toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  z-index: 100000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* 授权过期/未登录卡片 */
.auth-expired-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05);
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expired-icon-wrap {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.expired-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.expired-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 16px;
}

.expired-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.btn-expired-primary {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-expired-primary:active {
  transform: scale(0.97);
}

.btn-expired-secondary {
  flex: 1;
  background: #f8fafc;
  color: #334155;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-expired-secondary:active {
  transform: scale(0.97);
}

