/* 前端主样式 */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  min-height: 100vh;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'pnum' 1, 'tnum' 0, 'onum' 1, 'lnum' 0, 'dlig' 0;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
  transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* 焦点可见性 */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 导航栏 */
.navbar {
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  letter-spacing: -0.025em;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.nav-link {
  font-weight: 600;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* 卡片 */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.1);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  font-weight: 700;
  padding: 1.5rem;
  position: relative;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem;
}

/* 按钮 */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition-fast);
  border: none;
  padding: 0.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
  font-size: 0.9rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 表单 */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-200);
  padding: 0.875rem 1rem;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: white;
  transform: translateY(-1px);
}

.form-label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.form-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* 输入组 */
.input-group {
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.input-group-text {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
}

/* 消息提示 */
.alert {
  border-radius: var(--border-radius-lg);
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(37, 99, 235, 0.1));
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

/* 表格 */
.table {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
  margin-bottom: 0;
}

.table thead th {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  font-weight: 700;
  padding: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(37, 99, 235, 0.05));
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--gray-200);
  border-left: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 进度条 */
.progress {
  border-radius: 1rem;
  height: 0.75rem;
  background: var(--gray-200);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 1rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 徽章和标签 */
.badge {
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.badge-pill {
  border-radius: 1rem;
}

/* 工具提示 */
.tooltip {
  font-size: 0.8rem;
}

.tooltip-inner {
  background: var(--gray-900);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
}

/* 下拉菜单 */
.dropdown-menu {
  display: none;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
  margin: 0 0.5rem;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* 弹窗 */
.modal-content {
  border-radius: var(--border-radius-xl);
  border: none;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--gray-50), white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .card {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
  }

  .card-body {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .table-responsive {
    font-size: 0.85rem;
  }
}

/* 暗色主题 */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-100);
  }

  .card {
    background: rgba(30, 41, 59, 0.9);
    color: var(--gray-100);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  }

  .card-footer {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }

  .form-control {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--gray-600);
    color: var(--gray-100);
  }

  .form-control:focus {
    background: var(--gray-700);
    color: white;
  }

  .table {
    background: var(--gray-800);
    color: var(--gray-100);
  }

  .table thead th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  }

  .alert {
    color: inherit;
  }

  .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }

  .dropdown-item {
    color: var(--gray-100);
  }

  .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --gray-800: #000000;
    --gray-100: #ffffff;
  }

  .card {
    border: 2px solid var(--gray-300);
  }

  .btn {
    border: 2px solid;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 基础布局：固定导航 + 页面居中留白 */
.main-content {
  padding-top: 5.5rem;
}

.page-shell {
  width: min(100% - 2rem, 1360px);
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.footer-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 5rem;
  }

  .page-shell {
    width: calc(100% - 1.25rem);
  }
}

/* 打印样式 */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .btn, .navbar, .footer {
    display: none !important;
  }
}

/* 应用外层 */
:root {
  --app-bg: #dbe4ef;
  --app-panel: #f7f9fc;
  --app-panel-strong: #ffffff;
  --app-line: #cad5e3;
  --app-line-strong: #aebed2;
  --app-ink: #19395c;
  --app-ink-soft: #5f7692;
  --app-accent: #5b7fa7;
  --app-accent-dark: #3e6288;
  --app-chrome: #708cac;
  --app-chrome-dark: #577495;
  --app-shadow: 0 18px 40px rgba(31, 49, 76, 0.14);
  --font-family: 'Manrope', 'Noto Sans SC', 'Segoe UI', sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, #d6e0eb 0%, #e9eef5 55%, #d8e2ee 100%);
  color: var(--app-ink);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background:
    radial-gradient(circle at left top, rgba(83, 161, 255, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(9, 30, 57, 0.98) 0%, rgba(20, 55, 94, 0.97) 52%, rgba(9, 36, 70, 0.98) 100%);
  border-bottom: 1px solid rgba(170, 207, 255, 0.2);
  box-shadow: 0 18px 42px rgba(17, 35, 61, 0.22);
}

.app-topbar .navbar,
.app-topbar.navbar,
.app-topbar-inner.navbar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.95rem;
  padding: 0.5rem 0;
  background: transparent !important;
}

.app-brand {
  color: #f8fbff !important;
  gap: 0.72rem;
  padding: 0.16rem 0.2rem 0.16rem 0;
}

.app-brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(113, 184, 255, 0.13) 100%);
  border: 1px solid rgba(210, 233, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(5, 18, 34, 0.18);
}

.app-brand-mark i {
  font-size: 0.98rem;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.app-brand-title {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.app-brand-subtitle {
  display: block;
  color: rgba(246, 250, 255, 0.84) !important;
  font-size: 0.66rem;
  margin-top: 0.02rem;
}

.app-brand-pills {
  display: none;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
  margin-top: 0.16rem;
}

.app-brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.28rem;
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 228, 248, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 249, 255, 0.9);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.app-topbar .navbar-nav,
.app-topbar .dropdown-menu,
.app-topbar .app-user-nav {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.app-topbar .navbar-brand,
.app-topbar .navbar-brand:hover,
.app-topbar .navbar-brand:focus,
.app-topbar .navbar-dark .navbar-nav .nav-link,
.app-topbar .navbar .dropdown-toggle,
.app-topbar .navbar small {
  color: #f4f8ff !important;
}

.app-topbar .navbar-dark .navbar-nav .nav-link:hover,
.app-topbar .navbar-dark .navbar-nav .nav-link:focus,
.app-topbar .navbar .dropdown-toggle:hover,
.app-topbar .navbar .dropdown-toggle:focus {
  color: #ffffff !important;
}

.app-user-nav .nav-link {
  color: #eff6ff !important;
  margin: 0;
  padding: 0.45rem 0.72rem;
  border-radius: 0.88rem;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(211, 232, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.app-user-nav .nav-link:hover,
.app-user-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  transform: none;
}

.app-user-nav .nav-link::before {
  display: none;
}

.app-user-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.app-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.app-user-toggle-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.app-user-toggle-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}

.app-user-toggle-copy strong {
  display: none;
}

.app-user-toggle-copy span {
  font-size: 0.76rem;
  color: #f5fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-guest-actions {
  display: flex;
  align-items: center;
}

.app-guest-actions .btn {
  min-width: 92px;
  min-height: 2.2rem;
  border-radius: 999px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.app-subbar {
  display: none;
}

.app-subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.app-subbar-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-ink-soft);
}

.app-subbar-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.app-subbar-link {
  font-size: 0.77rem;
  font-weight: 700;
  color: #325476;
  padding: 0.28rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
}

.app-subbar-link:hover {
  background: #fff;
  border-color: var(--app-line);
}

.main-content {
  flex: 1 1 auto;
  padding-top: 0.95rem;
  padding-bottom: 1.5rem;
}

.page-shell {
  width: min(100% - 2.25rem, 1500px);
}

.app-content-frame {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 245, 251, 0.45) 100%);
  border: 1px solid rgba(190, 202, 219, 0.9);
  border-radius: 1.35rem;
  box-shadow: var(--app-shadow);
  padding: 1.05rem;
  min-height: calc(100vh - 9.2rem);
}

.app-flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.navbar,
.navbar-light,
.navbar.bg-light {
  background: transparent !important;
  box-shadow: none;
  border-bottom: 0;
  backdrop-filter: none;
}

.card {
  border-radius: 1.05rem;
  border: 1px solid rgba(200, 213, 230, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(40, 59, 84, 0.08);
  backdrop-filter: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(40, 59, 84, 0.1);
  border-color: rgba(165, 184, 207, 0.95);
}

.card-header {
  background: linear-gradient(180deg, #eef4fb 0%, #dfe9f6 100%);
  color: var(--app-ink);
  border-bottom: 1px solid rgba(204, 216, 230, 0.95);
  padding: 1rem 1.15rem;
}

.card-header::before {
  display: none;
}

.card-body,
.modal-body {
  padding: 1.15rem;
}

.card-footer,
.modal-footer {
  background: #f3f7fb;
  border-top: 1px solid rgba(206, 217, 230, 0.95);
  padding: 0.95rem 1.15rem;
}

.btn {
  border-radius: 0.8rem;
  font-weight: 700;
  padding: 0.68rem 1.08rem;
}

.btn-primary {
  background: linear-gradient(180deg, #6b8bb0 0%, #507193 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(65, 92, 122, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5d7fa6 0%, #456687 100%);
}

.btn-outline-primary {
  border: 1px solid #6a87ab;
  color: #335475;
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline-primary:hover {
  background: #5c7ca1;
  border-color: #5c7ca1;
}

.btn-success {
  background: linear-gradient(180deg, #5e9a7a 0%, #3e7e5f 100%);
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 0.75rem;
  border: 1px solid #c7d4e3;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-control:focus,
.form-select:focus {
  border-color: #7f9ec1;
  box-shadow: 0 0 0 0.22rem rgba(111, 140, 172, 0.16);
  transform: none;
}

.table {
  border-radius: 0.95rem;
  box-shadow: none;
  border: 1px solid #d4deea;
}

.table thead th {
  background: linear-gradient(180deg, #e3ebf6 0%, #d2ddec 100%);
  color: #234365;
  border-bottom: 1px solid #c5d2e3;
  font-size: 0.82rem;
  text-transform: none;
  padding: 0.85rem;
}

.table tbody tr:hover {
  background: #eef4fb;
  transform: none;
}

.table tbody td {
  padding: 0.85rem;
}

.footer.app-footer-shell {
  margin-top: auto;
  background: linear-gradient(180deg, #4d6888 0%, #314b68 100%);
  color: #ecf4ff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer.app-footer-shell::before {
  opacity: 0.35;
}

.app-route-main-index .app-content-frame,
.app-route-auth-login .app-content-frame,
.app-route-auth-register .app-content-frame,
.app-route-export-index .app-content-frame,
.app-route-dashboard-dashboard .app-content-frame {
  padding: 1.35rem;
}

.app-hero,
.app-page-panel,
.auth-shell,
.result-workspace,
.workspace-panel {
  border: 1px solid var(--app-line);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 252, 0.98) 100%);
  box-shadow: 0 16px 28px rgba(40, 59, 84, 0.1);
}

.app-hero {
  padding: 1.4rem;
  overflow: hidden;
}

.app-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.app-hero-copy {
  padding: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, #eff4fb 0%, #dde8f5 100%);
  position: relative;
  overflow: hidden;
}

.app-hero-copy::after {
  content: '';
  position: absolute;
  inset: auto -10% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 70%);
}

.app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 57, 92, 0.08);
  color: #35567a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.app-hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  margin: 0 0 0.9rem;
  color: #17395b;
}

.app-hero-text {
  font-size: 1.02rem;
  color: #4f6783;
  max-width: 58ch;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.app-hero-aside {
  display: grid;
  gap: 0.75rem;
}

.app-stat-card,
.app-info-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #d5e0ed;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.app-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #183c61;
}

.app-stat-label,
.app-info-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #69809b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.app-feature-card {
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid #d2ddeb;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.app-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
  color: #1d3f63;
}

.auth-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.82fr);
  overflow: hidden;
  border-radius: 1.4rem;
}

.auth-shell-aside {
  padding: 2.2rem;
  background: linear-gradient(155deg, #5d7ea4 0%, #34516f 100%);
  color: #f5f9ff;
}

.auth-shell-panel {
  padding: 2.15rem;
}

.auth-shell-title {
  font-size: 2rem;
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.auth-shell-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.auth-shell-point {
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.workspace-panel {
  padding: 1.3rem;
}

.workspace-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(209, 220, 235, 0.92);
}

.workspace-panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: #173b60;
}

.workspace-panel-subtitle {
  font-size: 0.86rem;
  color: #627b97;
  margin: 0.15rem 0 0;
}

.result-workspace {
  padding: 1.25rem;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.result-toolbar-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .app-topbar-inner,
  .app-subbar-inner,
  .auth-shell,
  .app-hero-header,
  .app-grid-3 {
    grid-template-columns: 1fr;
  }

  .app-topbar-inner,
  .app-subbar-inner {
    display: grid;
  }

  .app-user-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .app-user-nav {
    gap: 0.4rem;
  }

  .app-user-nav .nav-link,
  .app-guest-actions,
  .app-guest-actions .btn {
    width: auto;
  }

  .app-user-nav .nav-link {
    display: inline-flex;
    align-items: center;
  }

  .app-user-nav .dropdown-menu {
    position: absolute;
    margin-top: 0.35rem;
  }

  .page-shell {
    width: calc(100% - 1rem);
  }

  .app-content-frame {
    padding: 0.8rem;
    min-height: auto;
  }

  .app-hero-actions,
  .result-toolbar-actions {
    flex-direction: column;
  }

  .app-hero-actions .btn,
  .result-toolbar-actions .btn,
  .app-guest-actions .btn {
    width: 100%;
  }
}

/* 自定义组件 */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(37, 99, 235, 0.05));
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-dark);
}

.stats-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.stats-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.05em;
}

.stats-label {
  opacity: 0.95;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 工作台侧边栏与主内容 */
.sidebar {
  position: sticky;
  top: 86px;
  align-self: flex-start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1rem;
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  backdrop-filter: blur(20px);
}

.sidebar .nav-link {
  display: block;
  color: var(--gray-700);
  margin: 0.25rem 0;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  font-weight: 600;
  position: relative;
}

.sidebar .nav-link:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
  color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.nav-header {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 800;
  text-transform: uppercase;
  padding: 1rem 1rem 0.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.data-preview {
  max-height: 420px;
  overflow: auto;
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
}

.snapshot-list {
  max-height: 220px;
  overflow-y: auto;
}

.card .card-body {
  padding: 2rem;
}

.card-header h5, .card-header h6 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-content {
  border-radius: var(--border-radius-xl);
  border: none;
  box-shadow: var(--shadow-2xl);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
}

.frm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.frm-col {
  flex: 1;
  min-width: 200px;
}

/* 搜索框 */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-xl);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.2rem;
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--gray-200);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  color: var(--gray-400);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 标签页 */
.nav-tabs {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem;
  backdrop-filter: blur(10px);
}

.nav-tabs .nav-link {
  border: none;
  color: var(--gray-600);
  font-weight: 600;
  border-radius: var(--border-radius);
  margin: 0 0.25rem;
  transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

/* 浮动操作按钮 */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

.fab:active {
  transform: scale(0.95);
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loader-text {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 1.1rem;
}

/* 错误页 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.1;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* 通知提示 */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1060;
}

.toast {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: none;
  max-width: 350px;
  backdrop-filter: blur(20px);
}

.toast-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* 代码块 */
.code-block {
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* 图片画廊 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* 步骤指示器 */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.step.active .step-circle {
  background: var(--primary-color);
  color: white;
}

.step.completed .step-circle {
  background: var(--success-color);
  color: white;
}

.step-line {
  width: 4rem;
  height: 2px;
  background: var(--gray-200);
  margin: 0 0.5rem;
  transition: var(--transition-normal);
}

.js-hidden {
  display: none !important;
}

.loading-overlay.js-hidden {
  display: none !important;
}

.sponsor-qr-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.sponsor-qr-frame {
  display: flex;
  justify-content: center;
}

.sponsor-modal-note {
  margin-bottom: 0.55rem;
}

.pre-wrap {
  white-space: pre-wrap;
}

.pre-compact {
  font-size: 0.9rem;
  line-height: 1.4;
}

.progress-thin {
  height: 8px;
}

/* 全局视觉层 */
:root {
  --primary-color: #1663d8;
  --primary-dark: #0f4fb1;
  --primary-light: #3d84ed;
  --accent-color: #14b8a6;
  --font-family: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background:
    radial-gradient(1200px 600px at 8% -5%, rgba(20, 184, 166, 0.14), transparent 52%),
    radial-gradient(900px 420px at 98% 0%, rgba(22, 99, 216, 0.12), transparent 50%),
    linear-gradient(160deg, #f3f8ff 0%, #f8fbff 45%, #f7fbf9 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 85%);
  z-index: -1;
}

.navbar {
  box-shadow: 0 10px 40px rgba(13, 58, 122, 0.12);
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(190, 212, 242, 0.9);
}

.navbar-brand {
  color: #12355f !important;
}

.navbar.navbar-dark .navbar-nav .nav-link,
.navbar .dropdown-toggle,
.navbar small {
  color: #1f3555 !important;
}

.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar .dropdown-toggle:hover {
  color: #0f4fb1 !important;
}

.card {
  border-radius: 1.1rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 220, 242, 0.9);
  backdrop-filter: blur(16px);
}

.card:hover {
  box-shadow: 0 16px 40px rgba(14, 65, 140, 0.18);
  transform: translateY(-6px);
  border-color: rgba(22, 99, 216, 0.28);
}

.card-header {
  background: linear-gradient(125deg, #f2f8ff 0%, #ecf6ff 45%, #edf9f6 100%);
  color: #1f3f63;
}

.card-header::before {
  background: linear-gradient(135deg, rgba(22, 99, 216, 0.08), rgba(20, 184, 166, 0.08));
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0f57c2);
  box-shadow: 0 10px 20px rgba(22, 99, 216, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(15, 79, 177, 0.3);
  background: linear-gradient(135deg, #0f4fb1, #1663d8);
}

.btn-outline-primary {
  border: 2px solid #b4cdf5;
  color: #1f4f94;
  background: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary:hover {
  background: linear-gradient(120deg, #e8f2ff, #ecfbf8);
  border-color: #8fb4ef;
  color: #133c73;
  box-shadow: 0 10px 24px rgba(22, 99, 216, 0.16);
}

.btn-outline-secondary {
  border: 1px solid #d1dde9;
  background: #ffffff;
  color: #334155;
}

.btn-outline-secondary:hover {
  border-color: #afc2de;
  background: #f5f9ff;
  color: #163b66;
}

.form-control {
  border-radius: 0.9rem;
  border: 1px solid #d1deef;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(22, 99, 216, 0.12), 0 8px 24px rgba(15, 79, 177, 0.1);
}

.dropdown-menu {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid #dbe7f6;
}

.feature-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.86));
  box-shadow: 0 14px 34px rgba(13, 57, 121, 0.12);
  border: 1px solid rgba(175, 203, 240, 0.72);
}

.feature-card::before {
  background: linear-gradient(135deg, rgba(22, 99, 216, 0.05), rgba(20, 184, 166, 0.06));
}

.feature-card:hover {
  box-shadow: 0 22px 44px rgba(13, 59, 128, 0.2);
}

.main-content .container,
.main-content .container-fluid {
  animation: fadeInPage 0.3s ease-out both;
}

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

.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.5rem;
  background: rgba(10, 24, 43, 0.4);
  z-index: 4000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 43, 0.46);
  z-index: 3990;
}

.collapse:not(.show) {
  display: none;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active,
.tab-content > .show {
  display: block;
}

.btn-close {
  appearance: none;
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
  padding: 0.25rem;
  position: relative;
}

.btn-close::before,
.btn-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform-origin: center;
}

.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: min(calc(100vw - 1rem), 720px);
  max-width: calc(100vw - 1rem);
  margin: auto;
  max-height: calc(100vh - 1.5rem);
  pointer-events: auto;
}

.modal-dialog.modal-lg {
  width: min(calc(100vw - 1rem), 860px);
}

.modal-dialog.modal-xl {
  width: min(calc(100vw - 1rem), 1080px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(199, 216, 240, 0.88);
  border-radius: 1rem;
  box-shadow: 0 28px 60px rgba(10, 36, 74, 0.22);
  overflow: hidden;
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: default;
  user-select: none;
}

.modal-body {
  overflow: auto;
}

.modal-title {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-header .btn-close {
  margin-left: auto;
  margin-right: 0;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
}

.app-floating-modal .modal-header {
  cursor: grab;
}

.app-floating-modal.is-dragging .modal-header {
  cursor: grabbing;
}

@media (min-width: 992px) {
  .app-floating-modal .modal-dialog {
    position: absolute;
    margin: 0;
    display: block;
    min-height: 0;
  }

  .app-floating-modal .modal-dialog.modal-dialog-scrollable {
    height: auto;
    max-height: calc(100vh - 16px);
  }

  .app-floating-modal .modal-dialog.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 16px);
  }
}

@media (max-width: 991.98px) {
  .modal {
    display: none;
    padding: 0.65rem 0.35rem 1rem;
  }

  .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-dialog,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    max-height: calc(100vh - 1rem);
    margin: auto;
  }
}

.sponsor-modal .modal-dialog {
  max-width: 1040px;
}

.sponsor-modal .modal-body {
  padding: 0.7rem 0.75rem 0.85rem;
}

.sponsor-modal .modal-content {
  border-radius: 1.2rem;
}

.sponsor-modal .modal-header {
  padding-bottom: 0.5rem;
}

.sponsor-modal .sponsor-qr-image {
  display: block;
  width: min(100%, 980px);
  aspect-ratio: 47 / 32;
  object-fit: contain;
  margin: 0.1rem auto 0;
  border-radius: 1rem;
  border: 1px solid rgba(199, 213, 230, 0.95);
  box-shadow: 0 18px 38px rgba(39, 57, 83, 0.14);
}

@media (max-width: 992px) {
  .app-topbar-inner {
    min-height: auto;
    align-items: flex-start;
  }

  .app-brand-pills {
    display: none;
  }

  .app-user-toggle {
    min-width: 0;
    width: 100%;
  }

  .navbar-brand small {
    display: none;
  }

  .btn {
    width: auto;
  }

  .sponsor-modal .modal-dialog {
    max-width: calc(100vw - 0.75rem);
  }

  .sponsor-modal .sponsor-qr-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body::before {
    opacity: 0.35;
  }

  .card:hover,
  .feature-card:hover {
    transform: translateY(-3px);
  }
}

.step.completed + .step .step-line {
  background: var(--success-color);
}

/* 评分组件 */
.rating {
  display: inline-flex;
  gap: 0.25rem;
}

.star {
  color: var(--gray-300);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.star:hover,
.star.active {
  color: var(--warning-color);
}

.star:hover ~ .star {
  color: var(--gray-300);
}

/* 切换开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  transition: var(--transition-normal);
  border-radius: 1rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background: white;
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

/* 折叠面板 */
.collapse-header {
  background: var(--gray-100);
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.collapse-header:hover {
  background: var(--gray-200);
}

.collapse-header::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  transition: var(--transition-fast);
  color: var(--gray-500);
}

.collapse-header[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.collapse-content {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-top: -0.5rem;
}

/* 粘性导航 */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.sticky-nav.scrolled {
  box-shadow: var(--shadow-lg);
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: var(--gray-300);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* 社交媒体图标 */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-700);
  color: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* 图片懒加载 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: var(--gray-100);
}

.lazy-image.loaded {
  opacity: 1;
}

/* 响应式图片 */
.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* 视频容器 */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* 引用样式 */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-700);
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
}

/* 代码内联样式 */
code {
  background: var(--gray-100);
  color: var(--danger-color);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 500;
}

/* 键盘快捷键提示 */
kbd {
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-300);
}

/* 状态指示器 */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.status-indicator.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-indicator.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-indicator.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.status-indicator.info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info-color);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* 内容区块 */
.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background: rgba(37, 99, 235, 0.02);
}

/* 英雄区块 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.05em;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
  border: none;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f4f6;
  border-left: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 进度条 */
.progress {
  border-radius: 1rem;
  height: 0.75rem;
  background-color: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 1rem;
  transition: width 0.6s ease;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* 暗色主题 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f172a;
    color: #e2e8f0;
  }
  
  .card {
    background-color: #1e293b;
    color: #e2e8f0;
  }
  
  .form-control {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .form-control:focus {
    background-color: #334155;
    color: #e2e8f0;
  }
}

/* 自定义组件 */
.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stats-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-label {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* 工作台侧边栏与主内容 */
.sidebar {
  position: sticky;
  top: 86px;
  align-self: flex-start;
  max-height: calc(192vh - 96px);
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 1rem 0.65rem;
}

.sidebar .nav-link {
  display: block;
  color: var(--dark-color);
  margin: 0.25rem 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.sidebar .nav-link:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  background-color: rgba(37, 99, 235, 0.16);
  color: rgba(37, 99, 235, 1);
  border-color: rgba(37, 99, 235, 0.26);
}

.nav-header {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 0.75rem 0.35rem;
}

.data-preview {
  max-height: 420px;
  overflow: auto;
  border-radius: var(--border-radius);
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.snapshot-list {
  max-height: 220px;
  overflow-y: auto;
}

.card .card-body {
  padding: 1rem;
}

.card-header h5, .card-header h6 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-content {
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
}

.frm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.frm-row .form-group {
  flex: 1 1 45%;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-label {
  opacity: 0.9;
  font-size: 0.9rem;
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.action-strip .btn {
  min-width: 160px;
}

.progress {
  border-radius: 999px;
  height: 0.85rem;
}

.progress-bar {
  border-radius: 999px;
  outline: 1px solid rgba(255, 255, 255, 0.12);
}

/* 安装提示样式 */
.install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-2xl);
  padding: 1.5rem;
  max-width: 350px;
  z-index: 1060;
  border: 1px solid var(--gray-200);
  animation: slideInUp 0.3s ease-out;
}

.install-content h5 {
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.install-content p {
  margin-bottom: 1rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.install-actions {
  display: flex;
  gap: 0.5rem;
}

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

/* 跳过链接样式 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* 键盘快捷键样式 */
.keyboard-shortcuts {
  max-width: 500px;
}

.shortcuts-list {
  display: grid;
  gap: 0.5rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.shortcut-item kbd {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.shortcut-item span {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* 搜索结果样式 */
.search-results h6 {
  color: var(--gray-800);
  margin-bottom: 1rem;
  font-weight: 600;
}

.results-list {
  max-height: 400px;
  overflow-y: auto;
}

.result-item {
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--gray-50);
}

.result-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.result-type {
  font-size: 0.8rem;
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.result-item:hover .result-type {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.result-text {
  font-size: 0.9rem;
}

.result-text mark {
  background: rgba(255, 255, 0, 0.3);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.more-results {
  text-align: center;
  color: var(--gray-500);
  font-style: italic;
  padding: 1rem;
}

/* 震动动画 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-content {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.loading-content .loading-spinner {
  margin: 0 auto 1rem;
}

.loading-content p {
  color: var(--gray-600);
  margin: 0;
  font-weight: 500;
}

/* 骨架屏 */
.skeleton-text {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0.25rem;
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-card {
  background: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.skeleton-card .skeleton-text {
  height: 0.875rem;
  margin-bottom: 0.25rem;
}

.skeleton-card .skeleton-text:nth-child(1) { width: 80%; }
.skeleton-card .skeleton-text:nth-child(2) { width: 60%; }
.skeleton-card .skeleton-text:nth-child(3) { width: 40%; }

/* 粘性导航栏滚动效果 */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

/* 浮动操作按钮动画 */
.fab:hover {
  transform: scale(1.1) rotate(5deg);
}

.fab:active {
  transform: scale(0.95);
}

/* 工具提示增强 */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background: var(--gray-900);
  color: white;
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-lg);
}

.tooltip-arrow::before {
  border-top-color: var(--gray-900);
}

/* 弹窗增强 */
.modal-content {
  border: none;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--gray-50), white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

/* 表单增强 */
.form-floating > label {
  padding: 1rem 0.75rem;
}

.form-floating > .form-control {
  padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* 自定义复选框和单选框 */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* 进度条增强 */
.progress {
  border-radius: 1rem;
  height: 0.75rem;
  background: var(--gray-200);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 1rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* 输入组增强 */
.input-group-text {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
}

/* 标签页增强 */
.nav-tabs .nav-link {
  border: none;
  color: var(--gray-600);
  font-weight: 600;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: 0 0.25rem;
  transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* 折叠面板增强 */
.collapse-header {
  background: var(--gray-100);
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.collapse-header:hover {
  background: var(--gray-200);
}

.collapse-header::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  transition: var(--transition-fast);
  color: var(--gray-500);
}

.collapse-header[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.collapse-content {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-top: -0.5rem;
}

/* 代码块增强 */
.code-block {
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  position: relative;
  border: 1px solid var(--gray-700);
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* 图片画廊 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* 步骤指示器 */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.step.active .step-circle {
  background: var(--primary-color);
  color: white;
}

.step.completed .step-circle {
  background: var(--success-color);
  color: white;
}

.step-line {
  width: 4rem;
  height: 2px;
  background: var(--gray-200);
  margin: 0 0.5rem;
  transition: var(--transition-normal);
}

.step.completed + .step .step-line {
  background: var(--success-color);
}

/* 评分组件 */
.rating {
  display: inline-flex;
  gap: 0.25rem;
}

.star {
  color: var(--gray-300);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.star:hover,
.star.active {
  color: var(--warning-color);
}

.star:hover ~ .star {
  color: var(--gray-300);
}

/* 切换开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  transition: var(--transition-normal);
  border-radius: 1rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background: white;
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

/* 粘性导航 */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.sticky-nav.scrolled {
  box-shadow: var(--shadow-lg);
}

/* 页脚增强 */
.footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: var(--gray-300);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
  pointer-events: none;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-700);
  color: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-xl);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.95);
}

/* 错误页 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.1;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* 通知提示 */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1060;
}

.toast {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: none;
  max-width: 350px;
  backdrop-filter: blur(20px);
}

.toast-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loader-text {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 1.1rem;
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.skeleton-text:last-child {
  width: 60%;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --gray-800: #000000;
    --gray-100: #ffffff;
  }

  .card {
    border: 2px solid var(--gray-300);
  }

  .btn {
    border: 2px solid;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 打印样式 */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .btn, .navbar, .footer {
    display: none !important;
  }
}
