:root {
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --accent: #6fd3ff;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #0b0f14;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 轮播图片 ---------- */
.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
  will-change: opacity, transform;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 底部渐变，保证文字可读 */
.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.18) 34%,
    rgba(0, 0, 0, 0) 55%
  );
}

/* ---------- 文字介绍 ---------- */
.caption {
  position: absolute;
  left: clamp(20px, 6vw, 88px);
  bottom: clamp(96px, 16vh, 150px);
  max-width: 640px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.caption h1 {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.caption .loc {
  font-size: clamp(13px, 1.4vw, 17px);
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.caption .desc {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--ink-soft);
}
.caption .fade { animation: rise 0.9s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 指示点 ---------- */
.dots {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.dots button {
  width: 9px; height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.dots button.on { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- 左右箭头 ---------- */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}
.nav:hover { background: rgba(255, 255, 255, 0.22); opacity: 1; }
.nav.prev { left: 26px; }
.nav.next { right: 26px; }

/* ---------- 底部联系按钮 ---------- */
.footer {
  position: absolute;
  left: 0; right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  z-index: 5;
}
.contact {
  display: inline-block;
  padding: 12px 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.28s ease;
}
.contact:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #123;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ---------- 图片来源（低调标注） ---------- */
.src {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s ease;
}
.src:hover { color: rgba(255, 255, 255, 0.92); }

/* ---------- 手机端（竖屏） ---------- */
@media (max-width: 640px) {
  .caption {
    left: 22px;
    right: 22px;
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .caption h1 {
    font-size: clamp(26px, 8.5vw, 40px);
    margin-bottom: 8px;
  }
  .caption .loc {
    font-size: 12px;
    letter-spacing: 0.22em;
    margin-bottom: 10px;
  }
  .caption .desc {
    font-size: 14px;
    line-height: 1.72;
  }
  /* 手机端用左右滑动手势，隐藏箭头让画面更干净 */
  .nav { display: none; }

  .dots { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .footer { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .contact { padding: 11px 34px; font-size: 14px; }
  .src { display: none; }
}

/* ---------- 手机横屏（高度很小） ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .caption { bottom: 78px; }
  .caption .desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dots { bottom: 54px; }
  .footer { bottom: 10px; }
  .nav { display: none; }
}
