/* ============================================================
   李拜一 · 个人测试用网站
   一屏背景 + 两行字。无 JS、无外部资源。
   换文字：改 index.html；换背景图：替换 assets/bg.jpg；
   换字体大小/字距：改下面 .title / .subtitle
   ============================================================ */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #070a0f;
  color: #fff;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;                /* 单屏页面，禁止滚动 */
}

/* ---------- 背景层：固定铺满，cover 裁切 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #070a0f url("bg.jpg") center center / cover no-repeat;
  z-index: -2;
}

/* ---------- 压暗层：保证任何设备上白字都读得清 ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(4, 7, 12, .10) 0%, rgba(4, 7, 12, .46) 62%, rgba(3, 5, 9, .72) 100%);
  z-index: -1;
}

/* ---------- 文字 ---------- */
.stage {
  min-height: 100vh;
  min-height: 100svh;              /* 移动端按可视区高度，避开地址栏 */
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 24px 24px 12vh;         /* 整体略微上移，让文字落在山脊之上 */
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 92px);
  font-weight: 500;
  letter-spacing: .16em;
  text-indent: .16em;              /* 补偿字距造成的视觉右偏 */
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.subtitle {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 400;
  letter-spacing: .42em;
  text-indent: .42em;
  color: rgba(255, 255, 255, .66);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) .22s both;
}

/* ---------- 页脚：只放备案号 ---------- */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  animation: fade 1.2s ease .5s both;
}

.foot a {
  color: rgba(255, 255, 255, .34);
  text-decoration: none;
  transition: color .25s ease;
}

.foot a:hover { color: rgba(255, 255, 255, .8); }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .title, .subtitle, .foot { animation: none; }
}

/* ---------- 竖屏手机：字距收一点，避免换行 ---------- */
@media (max-width: 420px) {
  .title { letter-spacing: .10em; text-indent: .10em; }
  .subtitle { letter-spacing: .30em; text-indent: .30em; }
}

/* 极扁的窗口（横屏手机）时收一下字号 */
@media (max-height: 420px) {
  .stage { padding-bottom: 8vh; gap: 12px; }
  .title { font-size: clamp(32px, 7vw, 56px); }
}
