:root {
  --blue-50: #f0f7ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --text-primary: #1e3a5f;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.15);
  --radius: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--blue-50);
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

.landing {
  min-height: 100vh;
  min-height: 100dvh;
}

.layer {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* 浅蓝背景装饰 */
.layer::before,
.layer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ========== 第一层 ========== */
.layer--1 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e0f2fe 0%, #bae6fd 45%, #7dd3fc 100%);
}

.layer--1::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: rgba(255, 255, 255, 0.45);
}

.layer--1::after {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -50px;
  background: rgba(255, 255, 255, 0.35);
}

.layer1-center {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  text-align: center;
}

.layer1-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  max-width: 340px;
}

.layer1-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-md);
}

.layer1-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.layer1-card__desc {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--blue-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:active {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

.btn-outline__icon {
  font-size: 18px;
  line-height: 1;
}

/* ========== 第二层 ========== */
.layer--2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.layer--2::before {
  width: 320px;
  height: 320px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
}

.layer--2::after {
  width: 180px;
  height: 180px;
  bottom: 12%;
  right: -40px;
  background: rgba(147, 197, 253, 0.4);
}

.layer2-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  text-align: center;
}

.slogan-en {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--blue-500);
  font-weight: 600;
  text-transform: uppercase;
}

.slogan-cn {
  margin: 0 0 32px;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.slogan-cn::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
}

.layer2-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ========== 第三层（底图 + 内嵌线路） ========== */
.layer--3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #5b21b6;
  background-image: url('./bg-layer3.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.layer--3::before,
.layer--3::after {
  display: none;
}

.layer3-lines {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  padding: 20px 16px;
  background: rgba(45, 10, 70, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.layer3-lines__title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.06em;
}

.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.line-item__signal {
  width: 20px;
  flex-shrink: 0;
  font-size: 14px;
}

.line-item__ms {
  min-width: 40px;
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
}

.line-item__name {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-item__go {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3b0764;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.line-item__go:active {
  transform: scale(0.97);
}

@media (min-width: 768px) {
  .layer2-inner,
  .layer1-card {
    max-width: 420px;
  }
}
