/**
 * 全国民航运行数据频道页样式
 *
 * 配色：
 *   主色 #1e3a8a（深蓝）
 *   辅色 #3b82f6（亮蓝）
 *   强调 #f59e0b（橙）
 *   成功 #10b981（绿）
 *   危险 #ef4444（红）
 */

/* ============ 容器 ============ */
.no-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ============ Hero 区 ============ */
.no-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.no-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.no-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

.no-hero-subtitle {
  font-size: 1.05rem;
  margin: 0 0 8px 0;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.no-hero-meta {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* 地区页用紫色系渐变 */
.no-hero-region {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a78bfa 100%);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.2);
}

/* ============ 面包屑 ============ */
.no-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 20px;
  font-size: 0.95rem;
  color: #64748b;
}

.no-breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.no-breadcrumb a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.no-breadcrumb .bi {
  font-size: 0.8rem;
}

.no-breadcrumb span {
  color: #1e293b;
  font-weight: 500;
}

/* ============ 年月选择器 ============ */
.no-year-month-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.no-ym-btn {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
}

.no-ym-btn:hover {
  border-color: #3b82f6;
  color: #1e3a8a;
  background: #eff6ff;
  transform: translateY(-1px);
}

.no-ym-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* ============ 指标 Tab ============ */
.no-metric-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.no-metric-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
}

.no-metric-tab:hover {
  background: #f1f5f9;
  color: #1e3a8a;
}

.no-metric-tab.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* ============ 核心指标卡片 ============ */
.no-metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.no-metric-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.no-metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.25s ease;
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.no-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.no-metric-card-highlight {
  border-top-color: #f59e0b;
}

.no-metric-card-up {
  border-top-color: #10b981;
}

.no-metric-card-down {
  border-top-color: #ef4444;
}

.no-metric-card-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}

.no-metric-card-body {
  flex: 1;
  min-width: 0;
}

.no-metric-card-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.no-metric-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
  word-break: break-word;
}

.no-metric-card-value .no-unit {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 4px;
}

.no-metric-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.no-metric-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.82rem;
}

.no-metric-card-row .no-metric-card-sub {
  color: #94a3b8;
}

.no-metric-card-yoy {
  font-weight: 600;
  font-size: 0.85rem;
}

/* ============ 同比涨跌色 ============ */
.no-up {
  color: #10b981;
}

.no-down {
  color: #ef4444;
}

.no-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ============ 图表 Section ============ */
.no-chart-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-chart-section h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.no-chart-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.no-chart-container {
  width: 100%;
  min-height: 300px;
}

/* ============ 4地区下钻卡片 ============ */
.no-region-cards {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-region-cards h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.no-region-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.no-region-card {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  overflow: hidden;
}

.no-region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.no-region-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 12px 0;
}

.no-region-card-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.no-region-card-metric .label {
  color: #64748b;
}

.no-region-card-metric .value {
  color: #1e293b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.no-region-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 1.3rem;
  color: #3b82f6;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.no-region-card:hover .no-region-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ============ 机场列表 Section ============ */
.no-airports-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-airports-section h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.no-airports-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.no-airports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 800px;
}

.no-airports-table thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
}

.no-airports-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.no-airports-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.no-airports-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.no-airport-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.no-airport-row:hover {
  background: #eff6ff !important;
  color: #1e3a8a;
}

.no-airport-row:hover td {
  color: #1e3a8a;
}

.no-iata-badge {
  display: inline-block;
  padding: 3px 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 36px;
  text-align: center;
}

/* ============ 空状态 ============ */
.no-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.no-empty-state i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* ============ 返回链接 ============ */
.no-back-link {
  text-align: center;
  padding: 16px 0 32px;
}

.no-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  font-weight: 500;
}

.no-back-link a:hover {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
  transform: translateX(-3px);
}

/* ============ 自定义 Toast ============ */
.no-toast {
  display: block;
  padding: 12px 20px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  min-width: 200px;
}

.no-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.no-toast-info {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.no-toast-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.no-toast-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.no-toast-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* ============ 响应式：移动端单列 ============ */
@media (max-width: 768px) {
  .no-container {
    padding: 12px;
  }

  .no-hero {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .no-hero h1 {
    font-size: 1.5rem;
  }

  .no-hero-subtitle {
    font-size: 0.95rem;
  }

  .no-hero-meta {
    font-size: 0.82rem;
  }

  .no-year-month-selector {
    padding: 12px;
    gap: 6px;
  }

  .no-ym-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .no-metric-tabs {
    padding: 6px;
  }

  .no-metric-tab {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  /* 移动端：4列/3列改单列 */
  .no-metric-cards,
  .no-metric-cards-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .no-metric-card {
    padding: 16px;
  }

  .no-metric-card-value {
    font-size: 1.3rem;
  }

  .no-chart-section,
  .no-region-cards,
  .no-airports-section {
    padding: 16px;
    border-radius: 10px;
  }

  .no-chart-section h2,
  .no-region-cards h2,
  .no-airports-section h2 {
    font-size: 1.1rem;
  }

  .no-chart-container {
    min-height: 280px;
  }

  /* 4地区卡片：移动端 1 列 */
  .no-region-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .no-region-card {
    padding: 16px;
  }

  /* 机场表格：横向滚动 */
  .no-airports-table {
    font-size: 0.82rem;
  }

  .no-airports-table thead th,
  .no-airports-table tbody td {
    padding: 10px 8px;
  }

  .no-back-link a {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
}

/* ============ 响应式：平板中等屏幕 ============ */
@media (min-width: 769px) and (max-width: 1024px) {
  .no-metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .no-metric-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .no-region-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ 滚动条美化 ============ */
.no-airports-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.no-airports-table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.no-airports-table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.no-airports-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
