/* lanxin.live 首页（QZ-126，B 的首页定稿：画板 https://claude.ai/artifact/CQtCf7U53LkDgU3ZVUMPti，说明 docs/delivery/QZ-126.md）。
   浅色：暖米白书页，左对齐，暖棕纸纹；深色：#1C1C1A 底，一盏暖灯慢慢呼吸。两种都跟随系统。
   出字只用 CSS（QZ-126 补，子汶 11/9）：备案号一打开就在；字标和第一组 0.3 秒起从模糊到清晰浮现，其余依次跟上，约 6.3 秒出完；减少动态时直接显示。
   QZ-126 补 2（子汶 11/9）：去掉右上角入口，只留文字下面一个，写「入座」、居中；备案号手机上也居中；文案仍左对齐。
   颜色能用 token 的都用 token（字标三色 mark-*）；首页自己的三色（备案号两色、暖灯）只写在下面这一块里，别处不写字面颜色。 */
:root {
  --home-bg: var(--mark-rice);
  --home-ink: var(--mark-green);
  --home-foot: #4E6A62;
  --home-lamp: rgba(217, 168, 108, .22);
  --home-lamp-mid: rgba(217, 168, 108, .08);
  --home-lamp-end: rgba(217, 168, 108, 0);
}
@media (prefers-color-scheme: dark) {
  :root {
    --home-bg: var(--mark-night);
    /* 深色文案、字标、「入座」统一用米白 #F6F0E6（A 11/9） */
    --home-ink: var(--mark-rice);
    --home-foot: #A39C8E;
  }
}

@font-face { font-family: "QZ Serif Home"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/qz-serif-home-400.woff") format("woff"); }
/* B 的首页子集里没有「入座」两个字（QZ-126 补 2）：同一版思源宋体（2.003）另取这两个字，同一个字体名、只管这两个字 */
@font-face { font-family: "QZ Serif Home"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/serif-home-extra-400.woff") format("woff"); unicode-range: U+5165, U+5EA7; }

html, body { margin: 0; min-height: 100%; background: var(--home-bg); }
.home {
  position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  color: var(--home-ink); font-family: "QZ Serif Home", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-weight: 400;
}

/* 浅色的纸纹：分形噪点染暖棕，整层 0.05，铺满不滚动；深色不要 */
.home__paper { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home__paper rect { opacity: .05; }
/* 深色的暖灯：浅色不要 */
.home__lamp { display: none; }

/* 「入座」：下划线链接，点按区高 44 */
.home__enter {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: var(--size-tap);
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
}
.home__enter:hover { text-decoration-thickness: 2px; }
.home__enter:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
/* 在文案下面、按整页居中（文案仍左对齐），离「坐吧」手机 56px、宽屏 72px；字距 .3em 只加在字后，用左边同样的内边距补齐，看起来才居中。
   手机的内容列左 36、右 28，列中线比页中线偏右 4px，往左挪 4px 和备案号对齐（不用 transform，出字动画占着它） */
.home__enter--end { align-self: center; left: -4px; margin-top: 56px; padding-left: .3em; font-size: 17px; letter-spacing: .3em; text-underline-offset: 10px; }

/* 内容列：手机左 36、右 28、顶 128；宽屏宽 440 居中、顶 120，里面左对齐 */
.home__col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 128px 28px 0 36px; }
.home__mark { height: 34px; color: var(--home-ink); }
.home__text { margin-top: 48px; font-size: 17px; line-height: 2; letter-spacing: .1em; }
.home__text p { margin: 0; }
.home__text p + p { margin-top: 2.2em; }

/* 备案号：手机、宽屏都居中（QZ-126 补 2）、手机离底 28、12px；屏幕矮时跟在内容后面，不压字 */
.home__foot { position: relative; z-index: 1; margin-top: auto; padding: 48px 28px 28px; font-size: 12px; letter-spacing: .06em; text-align: center; }
.home__foot .foot { margin: 0; color: var(--home-foot); }
.home__foot .foot a { color: inherit; text-decoration: none; }
.home__foot .foot a:hover, .home__foot .foot a:focus-visible { text-decoration: underline; }

/* 出字（QZ-126 补）：从透明、模糊 10px、下移 8px，慢慢变清晰浮到原位，各 2.4 秒，缓入缓出。
   字标和第一组 0.3 秒开始；第二组 1.5、第三组 2.7、「坐吧」3.9；「入座」提前到 2.7，和「窗外有风」同时（QZ-126 补 2），约 6.3 秒出完。
   备案号不做动画。模糊只用在这几处，手机上只合成这几层；还没浮现时已经占好位置，页面不跳 */
@keyframes home-rise { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }
.home__mark, .home__text > p:first-child, .home__rise { animation: home-rise 2.4s cubic-bezier(.22, .61, .36, 1) both; will-change: opacity, filter, transform; }
.home__mark, .home__text > p:first-child { animation-delay: .3s; }
.home__rise--1 { animation-delay: 1.5s; }
.home__rise--2 { animation-delay: 2.7s; }
.home__rise--3 { animation-delay: 3.9s; }
.home__rise--4 { animation-delay: 2.7s; }
/* 还没浮现的「入座」也能用键盘聚焦，聚焦时立刻显示 */
.home__enter.home__rise:focus { animation: none; opacity: 1; filter: none; transform: none; }

@media (min-width: 768px) {
  .home__col { width: 440px; margin-inline: auto; padding: 120px 0 0; }
  .home__mark { height: 44px; }
  .home__text { margin-top: 64px; font-size: 19px; line-height: 2.1; letter-spacing: .12em; }
  .home__text p + p { margin-top: 2.4em; }
  .home__enter--end { left: 0; margin-top: 72px; }
  .home__foot { padding: 56px 24px 32px; font-size: 13px; letter-spacing: .08em; text-align: center; }
}

@media (prefers-color-scheme: dark) {
  .home__paper { display: none; }
  /* 暖灯：#D9A86C 径向光，中心 22%、到 55% 处 8%、边缘 0；手机 640×640，中心在文案中段略上；每 8 秒由暗到亮或由亮到暗（QZ-126 补，原来 4 秒），透明度 0.85 到 1，不缩放 */
  .home__lamp {
    display: block; position: absolute; left: 50%; top: 42%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, var(--home-lamp), var(--home-lamp-mid) 55%, var(--home-lamp-end) 100%);
    animation: home-breathe 8s ease-in-out infinite alternate;
  }
}
@media (prefers-color-scheme: dark) and (min-width: 768px) {
  .home__lamp { top: 46%; width: 1100px; height: 760px; margin: -380px 0 0 -550px; }
}
@keyframes home-breathe { from { opacity: .85; } to { opacity: 1; } }

/* 系统开了「减少动态」：去掉所有动画，全部直接显示，灯光不呼吸 */
@media (prefers-reduced-motion: reduce) {
  .home__mark, .home__text > p:first-child, .home__rise, .home__lamp { animation: none; will-change: auto; }
}
