/* 时光全球 · 场景导航 — 园区 lumen 光感 */

:root {
  --bg: #eef3fb;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --ink: #0b1528;
  --ink-2: #1d3a6b;
  --muted: #5a6b85;
  --accent: #1d6fff;
  --accent-strong: #0ea5e9;
  --warm: #7c3aed;
  --line: rgba(29, 111, 255, 0.14);
  --line-strong: rgba(29, 111, 255, 0.26);
  --glow: rgba(29, 111, 255, 0.14);
  --glow-warm: rgba(124, 58, 237, 0.1);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 28px 60px rgba(29, 111, 255, 0.14);
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --radius: 18px;
  --scene-card-width: 172px;
  --scene-card-gap: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* 光感背景 */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 72% 12%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 88%, var(--glow-warm), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #e8f0fc 50%, var(--bg) 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 111, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 111, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black, transparent);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 40px;
}

.portal {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(96px, 20vh, 188px);
  margin-bottom: auto;
}

/* Logo */
.brand {
  text-align: center;
  margin-bottom: 48px;
}

.brand-lockup {
  display: block;
  width: min(200px, 78vw);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 24px rgba(29, 111, 255, 0.1));
}

.brand-lede {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* 场景卡片 */
.scene-cards {
  display: grid;
  grid-template-columns: repeat(4, var(--scene-card-width));
  gap: var(--scene-card-gap);
  width: max-content;
  max-width: 100%;
  justify-content: center;
  margin: 12px auto 0;
  align-items: stretch;
}

.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--scene-card-width);
  min-height: 192px;
  padding: 34px 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, var(--card-glow, var(--glow)), transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

.scene-card > * {
  position: relative;
  z-index: 1;
}

.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.scene-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.scene-card[data-scene="supermarket"] {
  --card-glow: rgba(46, 171, 150, 0.16);
  --icon-from: #2aab96;
  --icon-to: #14534d;
}

.scene-card[data-scene="campus"] {
  --card-glow: rgba(29, 111, 255, 0.18);
  --icon-from: #1d6fff;
  --icon-to: #0ea5e9;
}

.scene-card[data-scene="hospital"] {
  --card-glow: rgba(13, 126, 165, 0.16);
  --icon-from: #0d7ea5;
  --icon-to: #0f2942;
}

.scene-card[data-scene="park"] {
  --card-glow: rgba(124, 58, 237, 0.14);
  --icon-from: #7c3aed;
  --icon-to: #1d6fff;
}

.scene-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--icon-from), var(--icon-to));
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--icon-from) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-top: 6px;
  flex-shrink: 0;
}

.scene-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-shrink: 0;
}

.scene-card-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.scene-card-body span {
  display: block;
  min-height: 2.6em;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.scene-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.scene-card:hover .scene-card-arrow {
  opacity: 1;
}

.foot {
  width: 100%;
  max-width: 900px;
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.foot p {
  margin: 0;
}

@media (max-width: 680px) {
  .portal {
    margin-top: clamp(72px, 16vh, 140px);
  }

  .scene-cards {
    grid-template-columns: repeat(2, var(--scene-card-width));
    gap: 24px;
    margin-top: 8px;
  }

  .scene-card {
    min-height: 184px;
    padding: 30px 12px 12px;
  }
}

@media (max-width: 360px) {
  .scene-cards {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 8px auto 0;
  }

  .scene-card {
    flex-direction: row;
    width: 100%;
    max-width: 300px;
    min-height: auto;
    text-align: left;
    padding: 20px 18px;
    gap: 12px;
    align-items: center;
  }

  .scene-card-icon {
    margin-top: 0;
  }

  .scene-card-body {
    align-items: flex-start;
    margin-top: 0;
    flex: 1;
  }

  .scene-card-body span {
    min-height: auto;
  }

  .scene-card-arrow {
    width: auto;
    height: auto;
    margin-top: 0;
    padding-top: 0;
    align-self: center;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-card {
    transition: none;
  }

  .scene-card:hover {
    transform: none;
  }
}
