/* ============================================
   DormHub - 骑手宿舍管理系统
   设计风格：精致工业风 (Refined Industrial)
   ============================================ */

:root {
  /* 主色调 - 深蓝灰系 */
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-primary-bg: #eff6ff;

  /* 成功色 */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-bg: #ecfdf5;

  /* 警告色 */
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-bg: #fffbeb;

  /* 危险色 */
  --color-danger: #ef4444;
  --color-danger-light: #f87171;
  --color-danger-bg: #fef2f2;

  /* 紫色点缀 */
  --color-accent: #8b5cf6;
  --color-accent-light: #a78bfa;
  --color-accent-bg: #f5f3ff;

  /* 中性色 */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* 背景 */
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;

  /* 文字 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* 边框 */
  --border-color: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* 字体 */
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

code {
  font-family: var(--font-mono);
}

/* ============================================
   布局结构
   ============================================ */

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   登录页
   ============================================ */

.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden,
.already-logged-in .login-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.login-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.login-tabs {
  display: flex;
  background: var(--color-gray-50);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.login-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-tab:hover {
  color: var(--text-primary);
}

.login-tab.active {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
}

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

.login-error {
  min-height: 20px;
  font-size: 12px;
  color: var(--color-danger);
  margin-bottom: 12px;
}

.login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: var(--color-primary-dark);
}

.login-hint {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   侧边栏
   ============================================ */

.sidebar {
  width: 220px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.1), transparent);
}

.sidebar-header {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 2px;
}

.nav-section {
  margin-bottom: 16px;
}

.nav-section-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 10px;
  margin-bottom: 6px;
}

/* ===== 菜单分组 ===== */
.nav-group {
  margin-bottom: 4px;
}

.nav-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-align: left;
}

.nav-group-header:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #f1f5f9;
}

.nav-group-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-group-title {
  flex: 1;
  letter-spacing: 0.3px;
}

.nav-group-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.25s ease;
  transform: rotate(-90deg);
}

.nav-group-arrow.expanded {
  transform: rotate(0deg);
  color: var(--color-primary-light);
}

/* 分组下的菜单项容器 */
.nav-group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 8px;
}

.nav-group-items.expanded {
  max-height: 600px;
}

.nav-subgroup {
  margin-bottom: 8px;
}

.nav-subgroup:first-child {
  margin-top: 4px;
}

.nav-subgroup-title {
  font-size: 11px;
  color: #64748b;
  padding: 4px 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 450;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #e2e8f0;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  color: #fff;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--color-primary-light);
  border-radius: 0 2px 2px 0;
}

/* 待开发模块样式 */
.nav-item.planned {
  opacity: 0.55;
}

.nav-item.planned:hover {
  opacity: 0.85;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
}

.nav-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--color-danger);
  color: white;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.user-card:hover {
  background: var(--bg-sidebar-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.user-more {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.user-more:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}

.user-more svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   主内容区
   ============================================ */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================
   顶部栏
   ============================================ */

.topbar {
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.breadcrumb-current {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  height: 40px;
  padding: 0 14px;
  background: var(--color-gray-100);
  border-radius: 10px;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
}

.search-box:focus-within {
  background: white;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.region-selector {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 6px 14px;
  background: var(--color-gray-100);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  position: relative;
}

.region-selector:hover {
  background: var(--color-gray-200);
}

.region-selector svg:first-child {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 8px;
}

.region-select-trigger {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.region-select-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  display: inline-block;
  vertical-align: middle;
}

.region-select-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-left: 10px;
}

.station-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}

.station-dropdown.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-animation: stationDropdownIn 0.2s ease;
          animation: stationDropdownIn 0.2s ease;
}

@-webkit-keyframes stationDropdownIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes stationDropdownIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.station-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.station-check-all {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.station-check-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-right: 8px;
}

.station-dropdown-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.station-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.station-dropdown-body::-webkit-scrollbar-track {
  background: transparent;
}

.station-dropdown-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.station-city-group {
  margin-bottom: 4px;
}

.station-city-header {
  padding: 6px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.station-city-toggle {
  width: 18px;
  height: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  margin-right: 2px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-radius: 4px;
}

.station-city-toggle:hover {
  color: #3b82f6;
  background: #eff6ff;
}

.station-city-toggle svg {
  width: 14px;
  height: 14px;
}

.station-city-group.collapsed .station-city-toggle {
  -webkit-transform: rotate(-90deg);
      -ms-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.station-city-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.station-city-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin-right: 8px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.station-city-name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.station-city-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.station-list {
  padding-left: 12px;
  overflow: hidden;
  max-height: 1000px;
  -webkit-transition: max-height 0.3s ease;
  transition: max-height 0.3s ease;
}

.station-city-group.collapsed .station-list {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.station-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 6px 16px 6px 24px;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  -webkit-transition: background 0.15s;
  transition: background 0.15s;
}

.station-item:hover {
  background: #f8fafc;
}

.station-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin-right: 8px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.station-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: #f8fafc;
}

.station-selected-count {
  font-size: 12px;
  color: #64748b;
}

.station-confirm-btn {
  padding: 6px 18px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.station-confirm-btn:hover {
  background: #2563eb;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background: var(--color-gray-100);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid white;
}

/* 设置下拉菜单 */
.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.settings-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.settings-item:hover {
  background: var(--color-gray-100);
  color: var(--text-primary);
}

.settings-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.settings-item-danger {
  color: var(--color-danger);
}

.settings-item-danger:hover {
  background: rgba(239, 68, 68, 0.06);
  color: var(--color-danger);
}

.settings-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* ============================================
   页面容器
   ============================================ */

.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-subtitle strong {
  color: var(--color-primary);
  font-weight: 600;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 日期范围选择器 */
.date-range {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}

.date-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 7px;
  transition: all var(--transition-fast);
}

.date-btn:hover {
  background: var(--color-gray-100);
}

.date-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ============================================
   按钮样式
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: white;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--color-gray-50);
  color: var(--text-primary);
  border-color: var(--color-gray-300);
}

.text-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.text-btn:hover {
  background: var(--color-primary-bg);
}

/* ============================================
   卡片
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-body {
  padding: 24px;
}

/* ============================================
   统计卡片
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card-clickable:active {
  transform: translateY(-1px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card-primary::before {
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}

.stat-card-success::before {
  background: linear-gradient(90deg, var(--color-success-light), var(--color-success));
}

.stat-card-warning::before {
  background: linear-gradient(90deg, var(--color-warning-light), var(--color-warning));
}

.stat-card-accent::before {
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.stat-trend.up {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.stat-trend.down {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

.stat-trend svg {
  width: 12px;
  height: 12px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.stat-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.stat-rate {
  color: var(--color-primary);
  font-weight: 600;
}

.stat-progress {
  height: 6px;
  background: var(--color-gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.stat-chart {
  height: 50px;
  margin: 0 -4px -8px;
}

.stat-chart svg {
  width: 100%;
  height: 100%;
}

.stat-score {
  margin-top: 4px;
}

.score-dots {
  display: flex;
  gap: 4px;
}

.score-dots .dot {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-gray-200);
}

.score-dots .dot.active {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
}

.score-dots .dot.half {
  background: linear-gradient(90deg, var(--color-accent) 50%, var(--color-gray-200) 50%);
}

/* ============================================
   看板网格
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-grid-bottom {
  grid-template-columns: 1fr 1.2fr;
}

/* ============================================
   图表
   ============================================ */

.chart-container {
  position: relative;
  height: 280px;
}

.line-chart {
  width: 100%;
  height: 240px;
}

.grid-lines line {
  stroke: var(--border-color);
  stroke-width: 1;
  stroke-dasharray: 4, 4;
  opacity: 0;
  -webkit-animation: gridLineFadeIn 0.6s ease forwards;
          animation: gridLineFadeIn 0.6s ease forwards;
}

.grid-lines line:nth-child(1) { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; }
.grid-lines line:nth-child(2) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.grid-lines line:nth-child(3) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.grid-lines line:nth-child(4) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }

@-webkit-keyframes gridLineFadeIn {
  from { opacity: 0; -webkit-transform: translateX(-10px); transform: translateX(-10px); }
  to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
}

@keyframes gridLineFadeIn {
  from { opacity: 0; -webkit-transform: translateX(-10px); transform: translateX(-10px); }
  to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
}

.chart-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  fill: none;
}

.chart-line.animate {
  -webkit-animation: drawLine 2s ease-out forwards;
          animation: drawLine 2s ease-out forwards;
}

.chart-line-success.animate {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

@-webkit-keyframes drawLine {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}

@keyframes drawLine {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}

.chart-area {
  opacity: 0;
  -webkit-transform-origin: bottom;
      -ms-transform-origin: bottom;
          transform-origin: bottom;
}

.chart-area.animate {
  -webkit-animation: areaGrow 1.8s ease-out forwards;
          animation: areaGrow 1.8s ease-out forwards;
}

.chart-area-success.animate {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

@-webkit-keyframes areaGrow {
  0% { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); }
  50% { opacity: 0.5; }
  100% { opacity: 1; -webkit-transform: scaleY(1); transform: scaleY(1); }
}

@keyframes areaGrow {
  0% { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); }
  50% { opacity: 0.5; }
  100% { opacity: 1; -webkit-transform: scaleY(1); transform: scaleY(1); }
}

.data-points .data-point {
  opacity: 0;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
}

.data-points .data-point.animate {
  -webkit-animation: pointPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
          animation: pointPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.data-points .data-point:nth-child(1).animate { -webkit-animation-delay: 1.2s; animation-delay: 1.2s; }
.data-points .data-point:nth-child(2).animate { -webkit-animation-delay: 1.6s; animation-delay: 1.6s; }
.data-points .data-point:nth-child(3).animate { -webkit-animation-delay: 2s; animation-delay: 2s; }

@-webkit-keyframes pointPop {
  0% { opacity: 0; -webkit-transform: scale(0); transform: scale(0); }
  100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes pointPop {
  0% { opacity: 0; -webkit-transform: scale(0); transform: scale(0); }
  100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

.chart-labels {
  opacity: 0;
}

.chart-labels.animate {
  -webkit-animation: labelsFadeIn 0.6s ease 0.8s forwards;
          animation: labelsFadeIn 0.6s ease 0.8s forwards;
}

@-webkit-keyframes labelsFadeIn {
  from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes labelsFadeIn {
  from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.data-points circle {
  -webkit-filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
          filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.chart-legend {
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-primary {
  background: var(--color-primary);
}

.legend-success {
  background: var(--color-success);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   各区域入住情况
   ============================================ */

.region-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.region-info {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.region-count {
  font-size: 12px;
  color: var(--text-muted);
}

.region-bar {
  flex: 1;
  height: 8px;
  background: var(--color-gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.region-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.region-percent {
  width: 55px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   环形图
   ============================================ */

.donut-chart-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-total {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.donut-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.fee-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fee-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fee-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fee-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.fee-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.fee-percent {
  width: 40px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   活动动态
   ============================================ */

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 18px;
  height: 18px;
}

.activity-checkin {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.activity-checkout {
  background: var(--color-gray-100);
  color: var(--text-secondary);
}

.activity-hygiene {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.activity-feedback {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.activity-warning {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.activity-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ============================================
   盈亏概览
   ============================================ */

.profit-summary {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-success-bg), #f0fdf4);
  border-radius: 12px;
}

.profit-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.profit-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.profit-value.positive {
  color: var(--color-success);
}

.profit-value.negative {
  color: var(--color-danger);
}

.profit-rate {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profit-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.compare-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--color-gray-50);
  border-radius: 10px;
}

.compare-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.compare-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.compare-divider {
  color: var(--text-muted);
  flex-shrink: 0;
}

.compare-divider svg {
  width: 20px;
  height: 20px;
}

.profit-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profit-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.profit-detail-item:last-child {
  border-bottom: none;
}

.profit-detail-item span:first-child {
  color: var(--text-secondary);
}

.profit-detail-item span:last-child {
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.profit-detail-item .positive {
  color: var(--color-success);
}

.profit-detail-item .negative {
  color: var(--color-danger);
}

/* ============================================
   筛选栏
   ============================================ */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
}

.filter-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 7px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-tab:hover {
  background: var(--color-gray-50);
}

.filter-tab.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.filter-tab span {
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.filter-tab:not(.active) span {
  background: var(--color-gray-100);
  color: var(--text-muted);
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-select select {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: white;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all var(--transition-fast);
}

.filter-select select:hover {
  border-color: var(--color-gray-300);
}

.filter-select select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-size-selector {
  position: relative;
}

.page-size-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: white;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-size-trigger:hover {
  border-color: var(--color-gray-300);
  background-color: var(--color-gray-50);
}

.page-size-trigger svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.page-size-selector.open .page-size-trigger svg {
  transform: rotate(180deg);
}

.page-size-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 120px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.page-size-selector.open .page-size-options {
  display: block;
}

.page-size-selector.dropup .page-size-options {
  top: auto;
  bottom: calc(100% + 6px);
}

.page-size-option {
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-size-option:hover {
  background: var(--color-gray-50);
}

.page-size-option.active {
  color: #22c55e;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.06);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: white;
  transition: all var(--transition-fast);
}

.filter-search:focus-within {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
}

.filter-search input::placeholder {
  color: var(--text-muted);
}

/* ============================================
   数据表格
   ============================================ */

.table-card {
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.data-table thead {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

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

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.station-name-cell {
  text-align: center !important;
  min-width: 180px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 复选框 */
.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-wrapper input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: 5px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-wrapper input:checked + .checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

/* 骑手信息单元格 */
.rider-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rider-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.rider-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rider-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.rider-phone {
  font-size: 12px;
  color: var(--text-muted);
}

.rider-id {
  font-size: 12px;
  padding: 3px 8px;
  background: var(--color-gray-100);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* 状态徽章 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  line-height: 1.4;
}

.status-living {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-new {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.status-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-checkout {
  background: var(--color-gray-100);
  color: var(--text-muted);
}

/* 行操作按钮 */
.row-actions {
  display: flex;
  gap: 4px;
}

.row-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.row-btn:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.row-btn.row-btn-danger:hover {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.row-btn.row-btn-disabled {
  color: var(--color-gray-300);
  cursor: not-allowed;
}

.row-btn.row-btn-disabled:hover {
  background: transparent;
  color: var(--color-gray-300);
}

.row-btn svg {
  width: 16px;
  height: 16px;
}

/* 表格底部 */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--color-gray-50) 0%, white 100%);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-total {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-total span {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  background: white;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.page-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  background: transparent;
  user-select: none;
}

.page-btn:hover:not(:disabled):not(.active) {
  background: var(--color-gray-50);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.page-btn:disabled {
  color: var(--color-gray-300);
  cursor: not-allowed;
  background: transparent;
}

.page-btn svg {
  width: 14px;
  height: 14px;
}

.page-num {
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
}

.page-num:hover:not(.active) {
  background: var(--color-gray-50);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.page-num.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.page-dot {
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   弹窗
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: all var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-lg {
  width: 680px;
}

.modal-medium {
  width: 520px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-gray-100);
  color: var(--text-primary);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
}

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input,
.form-select {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover {
  border-color: var(--color-gray-300);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input[readonly] {
  background: var(--color-gray-50);
  color: var(--text-secondary);
  cursor: default;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.form-divider span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 费用预览 */
.fee-preview {
  margin-top: 24px;
  padding: 20px;
  background: var(--color-gray-50);
  border-radius: 12px;
}

.fee-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.fee-preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.fee-preview-row.fee-total {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   新增页面样式
   ============================================ */

/* 统计卡片网格变体 */
.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.stats-grid-6 .stat-card {
  padding: 18px;
}

.stats-grid-6 .stat-label {
  font-size: 13px;
}

.stats-grid-6 .stat-value {
  font-size: 24px;
}

.stats-grid-6 .stat-foot {
  font-size: 11px;
}

/* 统计卡片警告色 */
.stat-card-warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* 统计卡片信息色 */
.stat-card-info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* 统计卡片紫色 */
.stat-card-purple::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

/* 统计卡片危险色 */
.stat-card-danger::before {
  background: linear-gradient(90deg, var(--color-danger-light), var(--color-danger));
}

/* 正负数值颜色 */
.positive {
  color: var(--color-success);
}

.negative {
  color: var(--color-danger);
}

/* 状态徽章扩展 */
.status-badge.status-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-badge.status-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* ============================================
   房间床位 - 树形结构
   ============================================ */

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tree-item {
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.tree-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.tree-region .tree-header {
  background: linear-gradient(135deg, var(--color-primary-bg), #eef2f7);
}

.tree-building .tree-header {
  background: var(--color-gray-50);
}

.tree-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tree-region .tree-icon {
  color: var(--color-primary);
}

.tree-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
}

.tree-count {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.tree-bar {
  width: 120px;
  height: 6px;
  background: var(--color-gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.tree-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 3px;
}

.tree-percent {
  width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.tree-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.tree-toggle:hover {
  background: var(--color-gray-200);
  color: var(--text-primary);
}

.tree-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.tree-children {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tree-children.collapsed {
  display: none;
}

.tree-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tree-item:hover .tree-actions {
  opacity: 1;
}

/* ============================================
   卫生安全页面
   ============================================ */

.hygiene-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hygiene-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-gray-50);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.hygiene-item:hover {
  background: var(--color-gray-100);
}

.hygiene-score {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.hygiene-score.excellent {
  background: linear-gradient(135deg, var(--color-success-light), var(--color-success));
  color: white;
}

.hygiene-score.good {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: white;
}

.hygiene-score.warning {
  background: linear-gradient(135deg, var(--color-warning-light), var(--color-warning));
  color: white;
}

.hygiene-score.danger {
  background: linear-gradient(135deg, var(--color-danger-light), var(--color-danger));
  color: white;
}

.hygiene-content {
  flex: 1;
}

.hygiene-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hygiene-room {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hygiene-date {
  font-size: 13px;
  color: var(--text-muted);
}

.hygiene-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hygiene-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: 6px;
}

.hygiene-detail-item svg {
  width: 14px;
  height: 14px;
}

.hygiene-detail-item.warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.hygiene-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   系统设置页面
   ============================================ */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.setting-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
  }

  .search-box {
    width: 280px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 180px;
  }

  .page-container {
    padding: 20px 16px;
  }

  .topbar {
    padding: 0 16px;
  }

  .search-box {
    width: 220px;
  }

  .topbar-left {
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stats-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card {
    padding: 18px;
  }

  .reminder-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-title {
    font-size: 20px;
  }

  .data-table th {
    padding: 12px 16px;
  }

  .data-table td {
    padding: 10px 16px;
  }

  .modal-medium,
  .modal-lg {
    width: 90%;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    flex-shrink: 0;
  }

  .sidebar-header {
    border-bottom: none;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    padding: 10px 12px;
    flex-shrink: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex: 1;
    overflow-x: auto;
    padding: 0 8px;
  }

  .nav-group {
    flex-shrink: 0;
  }

  .nav-group-title {
    display: none;
  }

  .nav-item {
    flex-direction: row;
    gap: 6px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .sidebar-footer {
    display: none;
  }

  .page-container {
    padding: 16px 12px;
  }

  .topbar {
    padding: 0 12px;
    height: 56px;
  }

  .topbar-left {
    gap: 12px;
  }

  .search-box {
    width: 160px;
    height: 36px;
  }

  .breadcrumb-current {
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 16px;
  }

  .reminder-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    flex-direction: column;
    gap: 12px;
  }

  .page-title {
    font-size: 18px;
  }

  .page-actions {
    width: 100%;
  }

  .data-table th {
    padding: 10px 12px;
    font-size: 12px;
  }

  .data-table td {
    padding: 8px 12px;
    font-size: 13px;
  }

  .modal-medium,
  .modal-lg {
    width: 95%;
    max-width: none;
  }

  .modal {
    padding: 20px;
  }

  .table-card {
    border-radius: 12px;
  }

  .login-card {
    margin: 16px;
    padding: 28px 24px;
  }
}

/* ============================================
   数据看板 - 今日运营提醒
   ============================================ */

.dashboard-today-reminder {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dashboard-today-reminder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.reminder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
}

.reminder-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.reminder-icon {
  font-size: 18px;
}

.reminder-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 10px;
  background: var(--color-gray-100);
  border-radius: 12px;
  margin-left: 4px;
}

.reminder-summary {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  letter-spacing: 0.3px;
}

.reminder-summary.all-clear {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.reminder-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.reminder-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gray-200);
}

.reminder-item.reminder-success::before { background: var(--color-success); }
.reminder-item.reminder-info::before { background: var(--color-primary); }
.reminder-item.reminder-warning::before { background: var(--color-warning); }
.reminder-item.reminder-danger::before { background: var(--color-danger); }
.reminder-item.reminder-accent::before { background: var(--color-accent); }

.reminder-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.reminder-item.reminder-success:hover { background: var(--color-success-bg); }
.reminder-item.reminder-info:hover { background: var(--color-primary-bg); }
.reminder-item.reminder-warning:hover { background: var(--color-warning-bg); }
.reminder-item.reminder-danger:hover { background: var(--color-danger-bg); }
.reminder-item.reminder-accent:hover { background: var(--color-accent-bg); }

.reminder-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--color-gray-100);
}

.reminder-item.reminder-success .reminder-item-icon { background: var(--color-success-bg); }
.reminder-item.reminder-info .reminder-item-icon { background: var(--color-primary-bg); }
.reminder-item.reminder-warning .reminder-item-icon { background: var(--color-warning-bg); }
.reminder-item.reminder-danger .reminder-item-icon { background: var(--color-danger-bg); }
.reminder-item.reminder-accent .reminder-item-icon { background: var(--color-accent-bg); }

.reminder-item-body {
  flex: 1;
  min-width: 0;
}

.reminder-item-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.reminder-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .reminder-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .reminder-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   右下角动态提醒弹窗 - 单条独立弹出
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 360px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateX(40px);
  pointer-events: auto;
  transition: opacity 350ms ease, transform 350ms ease;
  position: relative;
}

.toast-item.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-item .activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.toast-item .activity-icon svg {
  width: 17px;
  height: 17px;
}

.toast-item .activity-content {
  flex: 1;
  min-width: 0;
}

.toast-item .activity-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-item .activity-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.toast-item .activity-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 150ms ease;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0;
}

.toast-close:hover {
  background: var(--color-gray-100);
  color: var(--text-primary);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .toast-container {
    right: 16px;
    bottom: 16px;
    left: 16px;
    align-items: stretch;
  }

  .toast-item {
    width: 100%;
  }
}
