/* 客运购票主题氛围层 */

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 28%),
    radial-gradient(ellipse 90% 50% at 88% 8%, rgba(46, 196, 214, 0.28), transparent 52%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(10, 61, 140, 0.16), transparent 48%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(10, 61, 140, 0.018) 48px,
      rgba(10, 61, 140, 0.018) 49px
    ),
    linear-gradient(160deg, #c8e4f2 0%, #eaf4f9 38%, #f3f6f8 72%, #e4edf3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(46, 196, 214, 0.08), transparent 35%);
}

.nav,
.page {
  position: relative;
  z-index: 1;
}

.nav {
  backdrop-filter: blur(10px);
}

/* 页头：像线路牌 */
.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-head .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 0 0 3px rgba(46, 196, 214, 0.25);
}

.page-head h1 {
  letter-spacing: 0.02em;
}

/* 能力页右侧：仪表盘 / 车队 / 信号 */
.panel-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(10, 61, 140, 0.18);
}

.panel-visual .viz-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.panel-visual .viz-caption {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(6, 30, 70, 0.55) 40%);
  margin: 0 -24px -24px;
  padding: 48px 24px 24px;
}

.panel-visual--ops {
  background: linear-gradient(145deg, #07356f 0%, #0f5fa8 45%, #1aa8c4 100%);
}

.panel-visual--fleet {
  background: linear-gradient(145deg, #0a3d8c 0%, #1568b0 40%, #2a9bb0 100%);
}

.panel-visual--realtime {
  background: linear-gradient(160deg, #062848 0%, #0d5c9e 50%, #2ec4d6 100%);
}

.panel-visual--about {
  background: linear-gradient(145deg, #0a3d8c 0%, #1780d0 50%, #3ec8d4 100%);
}

/* 解决方案：场景主题头图 */
.scene-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
  box-shadow: 0 10px 32px rgba(10, 61, 140, 0.06);
}

.scene-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin: -28px -28px 22px;
  padding: 22px 28px 18px;
  min-height: 110px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.scene-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.06) 18px,
      rgba(255, 255, 255, 0.06) 19px
    );
  pointer-events: none;
}

.scene-banner h2,
.scene-banner p {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
}

.scene-banner p {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 13px;
  max-width: 420px;
  line-height: 1.55;
}

.scene-banner .scene-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  opacity: 0.95;
}

.scene-banner--city {
  background: linear-gradient(120deg, #0a3d8c, #1780d0 60%, #2a9fc4);
}

.scene-banner--tour {
  background: linear-gradient(120deg, #0d5a7a, #1a8f9e 55%, #3ec4b0);
}

.scene-banner--commute {
  background: linear-gradient(120deg, #123a6b, #2a6fad 55%, #4aa8d4);
}

.scene-panel > .scene-body { position: relative; }

.scene-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

.scene-btn.is-active .dot {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* 首页场景卡：带路线色条 */
.scene-card {
  position: relative;
  padding-top: 22px;
  overflow: hidden;
}

.scene-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
}

.scene-card--city::before {
  background: linear-gradient(90deg, #0a3d8c, #1780d0);
}

.scene-card--tour::before {
  background: linear-gradient(90deg, #0d6b72, #2ec4a8);
}

.scene-card--commute::before {
  background: linear-gradient(90deg, #1a4f8c, #4aa8d4);
}

.scene-card .card-ico {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--blue-mid);
}

.scene-card .card-ico svg {
  width: 100%;
  height: 100%;
}

/* 亮点条：站点感 */
.strip-item {
  position: relative;
  padding-left: 28px;
}

.strip-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d0da;
  box-shadow: 0 0 0 3px rgba(197, 208, 218, 0.35);
}

.strip-item.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 196, 214, 0.3);
}

/* 步骤：像站点进程 */
.step b {
  font-variant-numeric: tabular-nums;
}

.home-steps .step.is-active,
.stepper .step.is-active {
  background: linear-gradient(135deg, rgba(10, 61, 140, 0.1), rgba(46, 196, 214, 0.12));
  border-color: rgba(23, 128, 208, 0.4);
}

/* 关于页：电子客票卡片 */
.ticket {
  position: relative;
  border-radius: 12px;
  padding: 22px 22px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0a3d8c 0%, #1780d0 48%, #2ec4d6 100%);
  box-shadow: 0 18px 40px rgba(10, 61, 140, 0.22);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #eaf4f9;
  border-radius: 50%;
  top: 58%;
}

.ticket::before { left: -9px; }
.ticket::after { right: -9px; }

.ticket-dash {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 58%;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ticket-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.ticket-code {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.ticket-route {
  position: relative;
  z-index: 1;
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-route strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticket-route .route-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #fff, rgba(255, 255, 255, 0.2));
  position: relative;
  margin: 0 8px;
}

.ticket-route .route-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left-color: #fff;
  transform: translateY(-50%);
}

.ticket-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding-top: 18px;
  font-size: 11px;
  opacity: 0.9;
}

.ticket-meta b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 1;
}

/* 页脚：路沿线 */
.footer {
  border-top: none;
  position: relative;
  padding-top: 22px;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 61, 140, 0.2) 20%, rgba(46, 196, 214, 0.35) 50%, rgba(10, 61, 140, 0.2) 80%, transparent);
}

/* Tab 更像线路切换 */
.tab-btn.is-active {
  box-shadow: 0 6px 16px rgba(10, 61, 140, 0.2);
}

/* 主题微调：各页主色倾向 */
body.theme-cap {
  background:
    radial-gradient(ellipse 80% 50% at 90% 0%, rgba(23, 128, 208, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 5% 100%, rgba(10, 61, 140, 0.14), transparent 50%),
    linear-gradient(160deg, #d2e8f4 0%, #eef5f9 50%, #e6eef4 100%);
}

body.theme-sol {
  background:
    radial-gradient(ellipse 70% 45% at 10% 10%, rgba(46, 196, 168, 0.16), transparent 45%),
    radial-gradient(ellipse 70% 50% at 95% 90%, rgba(10, 61, 140, 0.14), transparent 50%),
    linear-gradient(155deg, #d6ebf2 0%, #eef6f8 45%, #e8f0f4 100%);
}

body.theme-about {
  background:
    radial-gradient(ellipse 80% 50% at 80% 15%, rgba(46, 196, 214, 0.24), transparent 50%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(10, 61, 140, 0.12), transparent 48%),
    linear-gradient(165deg, #cfe6f3 0%, #eaf5fa 42%, #eef3f6 100%);
}

@media (max-width: 900px) {
  .scene-banner {
    grid-template-columns: 1fr;
    margin: -20px -20px 18px;
    padding: 18px 20px;
  }

  .scene-banner .scene-icon {
    width: 56px;
    height: 56px;
  }

  .ticket-meta {
    grid-template-columns: 1fr 1fr;
  }
}
