/* Lowen 的小站：首屏是一座像素城市，往下滑推进到 Lowen 家亮着的那扇窗，进到房间里。
   天色跟访客当地时间走（html[data-time] = dawn / day / dusk / night，在 head 里设好）；
   卡片区跟系统深浅色走。像素画是内联 SVG（tool/site/pixel_scene.py 生成），颜色全在这里。 */
:root {
  --bg: #f3f6fb;
  --tile: #ffffff;
  --text: #1f2347;
  --muted: #5d6286;
  --line: #1f2347;
  --coral: #ff6b5e;
  --sun: #ffc94d;
  --mint: #bff0d4;
  --peach: #ffe0d6;
  --focus: #3d7be0;
  --font: ui-rounded, "SF Pro Rounded", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;

  /* 城市（白天） */
  --far: #a9c7e6;
  --mid: #7fa3cc;
  --near: #4f6f9c;
  --glass: #3c5a85;
  --lit: #ffe7a3;
  --cloud: #ffffff;
  --cloud-shade: #d6ecfb;
  --road: #4a536b;
  --sky-text: #1f2347;
  /* 房间 */
  --wall: #a9c9c0;
  --wall-line: #9dbfb5;
  --dim: 0;
  --lamp: 0;
  /* 天色开关：窗外那份城市是 <use> 复用的，只能靠变量传进去，不能用 html[data-time] 选择器。 */
  --t1: 0; --t2: 0; --t3: 0;
  --sun-o: 1; --moon-o: 0; --stars-o: 0; --birds-o: 1; --lamp-on: 0;
  --sun-halo: #fff6d6; --sun-core: #fff3cf;
}

:root {
  --sk0: #5fb4ff; --sk1: #65b7ff; --sk2: #6bbaff; --sk3: #71bdff; --sk4: #76c0ff; --sk5: #7cc3ff; --sk6: #82c6ff; --sk7: #88c9ff; --sk8: #8eccff; --sk9: #95cfff; --sk10: #9cd2ff; --sk11: #a2d5ff; --sk12: #a9d9ff; --sk13: #afdcff; --sk14: #b6dfff; --sk15: #bde2ff; --sk16: #c2e4ff; --sk17: #c7e7ff; --sk18: #cce9ff; --sk19: #d0ebff; --sk20: #d5edff; --sk21: #daf0ff; --sk22: #def2ff; --sk23: #e3f4ff;
}
html[data-time="dawn"] {
  --sk0: #7d8fd6; --sk1: #8792d6; --sk2: #9095d6; --sk3: #9a98d6; --sk4: #a49bd6; --sk5: #ad9ed6; --sk6: #b7a1d6; --sk7: #c1a4d6; --sk8: #c9a7d4; --sk9: #d1a9ce; --sk10: #d8abc8; --sk11: #dfaec2; --sk12: #e7b0bc; --sk13: #eeb3b6; --sk14: #f5b5b0; --sk15: #fdb7aa; --sk16: #ffbbaa; --sk17: #ffc1ad; --sk18: #ffc6af; --sk19: #ffcbb2; --sk20: #ffd0b5; --sk21: #ffd6b8; --sk22: #ffdbba; --sk23: #ffe0bd;
}
html[data-time="dusk"] {
  --sk0: #3b2f6b; --sk1: #463571; --sk2: #513a78; --sk3: #5c407e; --sk4: #674584; --sk5: #724b8a; --sk6: #7e518f; --sk7: #90578e; --sk8: #a25d8d; --sk9: #b4648c; --sk10: #c56a8b; --sk11: #d7718a; --sk12: #e37989; --sk13: #e88486; --sk14: #ed8e83; --sk15: #f39980; --sk16: #f8a37d; --sk17: #fead7b; --sk18: #ffb57f; --sk19: #ffbc86; --sk20: #ffc48c; --sk21: #ffcb93; --sk22: #ffd299; --sk23: #ffd9a0;
}
html[data-time="night"] {
  --sk0: #0d1233; --sk1: #0f1438; --sk2: #10163c; --sk3: #121841; --sk4: #141a45; --sk5: #151c4a; --sk6: #171e4e; --sk7: #192053; --sk8: #1b2257; --sk9: #1d245b; --sk10: #1f265f; --sk11: #222963; --sk12: #242b68; --sk13: #272e6c; --sk14: #293070; --sk15: #2b3274; --sk16: #2e3577; --sk17: #32377a; --sk18: #353a7d; --sk19: #393c80; --sk20: #3c3f83; --sk21: #404186; --sk22: #434489; --sk23: #47468c;
}
.sk0 { fill: var(--sk0); }
.sk1 { fill: var(--sk1); }
.sk2 { fill: var(--sk2); }
.sk3 { fill: var(--sk3); }
.sk4 { fill: var(--sk4); }
.sk5 { fill: var(--sk5); }
.sk6 { fill: var(--sk6); }
.sk7 { fill: var(--sk7); }
.sk8 { fill: var(--sk8); }
.sk9 { fill: var(--sk9); }
.sk10 { fill: var(--sk10); }
.sk11 { fill: var(--sk11); }
.sk12 { fill: var(--sk12); }
.sk13 { fill: var(--sk13); }
.sk14 { fill: var(--sk14); }
.sk15 { fill: var(--sk15); }
.sk16 { fill: var(--sk16); }
.sk17 { fill: var(--sk17); }
.sk18 { fill: var(--sk18); }
.sk19 { fill: var(--sk19); }
.sk20 { fill: var(--sk20); }
.sk21 { fill: var(--sk21); }
.sk22 { fill: var(--sk22); }
.sk23 { fill: var(--sk23); }

html[data-time="dawn"] {
  --far: #c8b4d8; --mid: #9a8cbf; --near: #5f5a8f; --glass: #4e4a7d; --lit: #ffe0a0;
  --cloud: #fff1ec; --cloud-shade: #f2c2c0; --road: #4b4766; --dim: 0.06; --lamp: 0.4;
  --t1: 1; --t3: 1; --stars-o: 0.4; --lamp-on: 1; --sun-halo: #ffe7a8;
}
html[data-time="dusk"] {
  --far: #b77a9c; --mid: #7b4f80; --near: #402b55; --glass: #33224a; --lit: #ffcf72;
  --cloud: #f6a1a6; --cloud-shade: #d97f99; --road: #2a1f3a; --sky-text: #fff6ee; --dim: 0.12; --lamp: 0.85;
  --t1: 1; --t2: 1; --lamp-on: 1; --sun-halo: #ffe7a8; --sun-core: #ffe39a;
}
html[data-time="night"] {
  --far: #2a3170; --mid: #222760; --near: #171b45; --glass: #141838; --lit: #ffd27a;
  --cloud: #3b4290; --cloud-shade: #2c3277; --road: #12152f; --sky-text: #f1f2ff; --dim: 0.32; --lamp: 1;
  --t1: 1; --t2: 1; --t3: 1; --sun-o: 0; --moon-o: 1; --stars-o: 1; --birds-o: 0; --lamp-on: 1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12152e;
    --tile: #1c2044;
    --text: #eef0ff;
    --muted: #a8add6;
    --line: #070918;
    --coral: #ff8073;
    --mint: #1f4a3a;
    --peach: #4a2c33;
    --focus: #9dbdff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--wall); overscroll-behavior-y: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ═════ 城市配色 ═════ */
.bf { fill: var(--far); }
.bm { fill: var(--mid); }
.bn { fill: var(--near); }
.gl { fill: var(--glass); }
.wl { fill: var(--lit); }
.t1 { opacity: var(--t1); }
.t2 { opacity: var(--t2); }
.t3 { opacity: var(--t3); }
.cl { fill: var(--cloud); }
.cs { fill: var(--cloud-shade); }
.sun-halo { fill: var(--sun-halo); opacity: 0.55; }
.sun-core { fill: var(--sun-core); }
.moon-c { fill: #fff3c4; }
.bird-c { fill: #2a2f55; }
.birds { opacity: var(--birds-o); }
.star { fill: #fff6c9; }
.stars { opacity: var(--stars-o); }
.moon { opacity: var(--moon-o); }
.sun { opacity: var(--sun-o); }
.beacon { fill: #ff5a4f; }
.road { fill: var(--road); }
.curb { fill: color-mix(in srgb, var(--road) 70%, #ffffff); }
.lane { fill: color-mix(in srgb, var(--road) 55%, #ffffff); }
.lamp-pole { fill: #1b1428; }
.lamp-bulb { fill: #ffe19a; opacity: calc(0.3 + var(--lamp-on) * 0.7); }
.lamp-glow { fill: #ffb84d; opacity: calc(var(--lamp-on) * 0.28); }
.home { fill: #ffd27a; }
.home-frame { fill: #2a1f3a; }

/* ═════ 房间配色 ═════ */
.wall { fill: var(--wall); }
.wall-line { fill: var(--wall-line); }
.wall-rail { fill: #f3ece2; }
.wainscot { fill: #8fb3a8; }
.wainscot-panel { fill: #86aa9f; }
.frame { fill: #f6f1ea; }
.glass-shine { fill: #ffffff; opacity: 0.35; }
.curtain { fill: #f2a99b; }
.curtain-fold { fill: #df8f81; }
.rod { fill: #8a5a3c; }
.sill { fill: #efe6da; }
.sill-shadow { fill: #c9bba8; }
.cat { fill: #3d3a4a; }
.cat-eye { fill: #6f6a85; }
.cat-nose { fill: #ff9fb5; }
.pot { fill: #d9775f; }
.pot-rim { fill: #e58a70; }
.leaf { fill: #4f9a5f; }
.leaf2 { fill: #6dbb73; }
.cactus { fill: #5aa36a; }
.flower { fill: #ff8fb1; }
.board-frame { fill: #8a5a3c; }
.cork { fill: #d4a373; }
.cork-dot { fill: #b9875a; }
.photo { fill: #fffdf8; }
.photo-shadow { fill: #7a5236; opacity: 0.45; }
.photo-text { font: 800 4.2px var(--font); fill: #1f2347; }
.pin { fill: #ff6b5e; }
.pin-b { fill: #3d7be0; }
.sticky { fill: #ffe37a; }
.sticky-top { fill: #f7d45a; }
.note-q { font: 900 12px var(--font); fill: #1f2347; }
.note-text { font: 800 3.6px var(--font); fill: #1f2347; }
.polaroid:hover .photo, .polaroid:focus-visible .photo { fill: #fff3c4; }
.shelf { fill: #8a5a3c; }
.book1 { fill: #5b7bd6; }
.book2 { fill: #ffc94d; }
.book3 { fill: #ff8f6b; }
.book4 { fill: #6dbb73; }
.book-band { fill: #ffffff; opacity: 0.4; }
.globe { fill: #7cc6ff; }
.globe-land { fill: #5aa36a; }
.floor { fill: #c99a72; }
.floor-line { fill: #b88760; }
.rug { fill: #e9ddd0; }
.rug-edge { fill: #d08a7a; }
.desk { fill: #a8714f; }
.desk-edge { fill: #8a5a3e; }
.drawer { fill: #b47c58; }
.knob { fill: #f3ece2; }
.chair { fill: #3d4466; }
.chair-leg { fill: #2a2f4a; }
.lamp { fill: #3d3a4a; }
.lamp-shade { fill: #ffc94d; }
.lamp-bulb-r { fill: #fff3b0; }
.lamp-light { fill: #fff3b0; opacity: calc(var(--lamp) * 0.35); }
.monitor { fill: #2a2d3e; }
.screen { fill: #1e2133; }
.code { opacity: 0.95; }
.c1 { fill: #ff8fb1; } .c2 { fill: #7cc6ff; } .c3 { fill: #ffd27a; } .c4 { fill: #9be3a8; } .c5 { fill: #c3a6ff; }
.keyboard { fill: #e8e3db; }
.key { fill: #c9c2b6; }
.mug { fill: #ff6b5e; }
.headphone { fill: #3d4466; }
.headphone-pad { fill: #ff8f6b; }
.coffee { fill: #6b4430; }
.steam { fill: #ffffff; opacity: 0.6; }
.clock-body { fill: #3d4466; }
.clock-face { fill: #c9f0d8; }
#desk-digits rect { fill: #1f2347; }
.tray { fill: #8a5a3c; }
.letter { fill: #ffffff; }
.letter2 { fill: #f6efe4; }
.letter-line { fill: #c9c2b6; }
.stamp { fill: #ff6b5e; }

/* 房间里能点的东西：悬停描一圈像素白边，头顶冒出像素小标签；平时旁边偶尔闪一颗小星。 */
.hot { cursor: pointer; outline: none; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.hot:hover, .hot:focus-visible { transform: translateY(-1px); }
.hl, .tag { opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.hot:hover .hl, .hot:focus-visible .hl, .hot:hover .tag, .hot:focus-visible .tag { opacity: 1; }
.hl-c { fill: #ffffff; }
.tag-edge { fill: #1f2347; }
.tag-face { fill: #fffdf8; }
.tag-text { font: 800 4px var(--font); fill: #1f2347; }
.spark-c { fill: #fffbe0; }
.spark { opacity: 0; }
.hot:hover .spark, .hot:focus-visible .spark { display: none; }
.room-dim { fill: #0b0f2e; opacity: var(--dim); pointer-events: none; }

/* ═════ 首屏：房间 ═════ */
.top { position: absolute; inset: 0 0 auto; z-index: 5; color: #1f2347; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 clamp(20px, 5vw, 80px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; }
.logo-dot { width: 14px; height: 14px; background: var(--coral); box-shadow: 4px 4px 0 var(--sun); }
.top nav { display: flex; gap: 4px; font-size: 15px; font-weight: 700; }
.top nav a { padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: background-color 0.2s; }
.top nav a:hover { background: rgba(31, 35, 71, 0.08); }

.scene { position: relative; height: clamp(640px, 100svh, 1000px); overflow: hidden; background: var(--wall); }
.room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 80px);
  top: clamp(96px, 14vh, 170px);
  max-width: min(30em, 36vw);
  color: #1f2347;
}
.greet {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fffdf8;
  border: 2px solid #1f2347;
}
.intro h1 { margin-top: 18px; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.sub { margin-top: 16px; font-size: 17px; color: #3d4466; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn.btn-ghost { background: #fffdf8; color: #1f2347; }

/* ═════ 动效：系统要求减少动态效果时全部不做 ═════ */
@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 160s linear infinite; animation-delay: -80s; }
  .drift:nth-of-type(2n) { animation-duration: 210s; animation-delay: -105s; }
  @keyframes drift { from { transform: translateX(-180px); } to { transform: translateX(180px); } }
  .star { animation: twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.6s); }
  @keyframes twinkle { 50% { opacity: 0.25; } }
  .beacon { animation: blink 1.6s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0.2; } }
  /* 一小群鸟，每隔一阵从左往右飞过去，翅膀上下扇。 */
  .birds { animation: fly 38s linear infinite; animation-delay: -6s; }
  @keyframes fly { 0% { transform: translate(-40px, 30px); } 30% { transform: translate(360px, 4px); } 100% { transform: translate(360px, 4px); } }
  .bird { animation: flap 0.5s steps(1) infinite; animation-delay: calc(var(--i) * -0.17s); }
  @keyframes flap { 50% { transform: translateY(1px); } }
  .cat-tail { transform-box: fill-box; transform-origin: 0 100%; animation: tail 6s ease-in-out infinite; }
  @keyframes tail { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-25deg); } 92% { transform: rotate(10deg); } }
  .steam { animation: steam 2.4s ease-in infinite; animation-delay: calc(var(--i) * -0.5s); }
  @keyframes steam { from { transform: translateY(4px); opacity: 0; } 40% { opacity: 0.6; } to { transform: translateY(-4px); opacity: 0; } }
  .code-line { transform-box: fill-box; transform-origin: 0 0; animation: type 9s steps(6) infinite; animation-delay: calc(var(--l) * 0.6s); }
  @keyframes type { 0% { transform: scaleX(0); } 12%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
  /* 能点的东西：小星隔一阵闪一下（各自错开），信封偶尔跳一下。 */
  .spark { animation: spark 5s steps(1) infinite; animation-delay: calc(var(--i) * -1.7s); }
  @keyframes spark { 0%, 84%, 100% { opacity: 0; } 86%, 90% { opacity: 1; } 88% { opacity: 0.4; } }
  .letter-top { animation: hop 5s cubic-bezier(0.3, 1.6, 0.5, 1) infinite; }
  @keyframes hop { 0%, 84%, 100% { transform: translateY(0); } 89% { transform: translateY(-2px); } 94% { transform: translateY(0); } }
  .intro > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .intro > :nth-child(2) { animation-delay: 0.08s; }
  .intro > :nth-child(3) { animation-delay: 0.16s; }
  .intro > :nth-child(4) { animation-delay: 0.24s; }
  dialog.pix[open] { animation: pop 0.24s cubic-bezier(0.3, 1.4, 0.5, 1); }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ═════ 卡片区 ═════ */
.board { padding: 88px 0 112px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.tile {
  position: relative;
  background: var(--tile);
  border: 2.5px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--line); }
}
.tile h2 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }

.zhiyu {
  grid-column: 1 / span 8;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  background: radial-gradient(circle at 92% 8%, var(--peach) 0 28%, transparent 28.5%), var(--tile);
}
.zhiyu-text { padding: 34px 0 34px 34px; display: flex; flex-direction: column; }
.zhiyu-head { display: flex; align-items: center; gap: 16px; }
.zhiyu .icon { width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--line); }
.zhiyu h2 { font-size: 34px; }
.kind { font-size: 14px; color: var(--muted); font-weight: 600; }
.what { margin-top: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts li { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: #1f2347; }
.facts li:nth-child(1) { background: #c9f0d8; }
.facts li:nth-child(2) { background: #ffe39a; }
.facts li:nth-child(3) { background: #cfe5ff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 26px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 14px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 2.5px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.plain { color: var(--muted); font-size: 15px; font-weight: 600; }
.plain:hover { color: var(--text); }
.phones { position: relative; min-height: 360px; }
.phones img {
  position: absolute;
  width: 54%;
  border: 2.5px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line);
  transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.phones img:first-child { left: 6%; top: 34px; transform: rotate(-6deg); z-index: 1; }
.phones img:last-child { right: -4%; top: 70px; transform: rotate(5deg); }
@media (hover: hover) {
  .zhiyu:hover .phones img:first-child { transform: rotate(-9deg) translate(-10px, -8px); }
  .zhiyu:hover .phones img:last-child { transform: rotate(8deg) translate(8px, -14px); }
}

.next {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px;
  background: var(--mint);
}
.qblock { flex: none; width: 64px; height: 64px; }
.q-edge, .q-mark { fill: #1f2347; }
.q-face { fill: #ffc94d; }
.q-shine { fill: #ffe39a; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .next:hover .qblock { animation: bump 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
  @keyframes bump { 40% { transform: translateY(-10px); } }
}
.next p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.mail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 34px;
  background: var(--peach);
  scroll-margin-top: 24px;
}
.envelope { width: 88px; height: 66px; }
.e-edge { fill: #1f2347; }
.e-paper { fill: #ffffff; }
.e-stamp { fill: var(--coral); }
.e-flap { transition: transform 0.3s; }
@media (hover: hover) { .mail:hover .e-flap { transform: translateY(-1px); } }
.mail-text p { margin-top: 4px; color: var(--muted); }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.address a { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.01em; text-decoration-color: var(--coral); }
.copy {
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 12px;
  color: #1f2347;
  background: #ffffff;
  border: 2.5px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  cursor: pointer;
}
.copy:active { transform: translateY(3px); box-shadow: none; }
.copy.done { background: #c9f0d8; }

/* ═════ 页脚：夜晚的街 ═════ */
.ground { position: relative; overflow: hidden; color: #eef0ff; background: #12152f; }
.street-wrap { position: absolute; inset: 0; }
.street { display: block; width: 100%; height: 100%; }
.st-bld { fill: #1d2250; }
.st-win { fill: #ffd27a; opacity: 0.85; }
.st-walk { fill: #2e3360; }
.st-curb { fill: #5a5f8a; }
.st-road { fill: #12152f; }
.st-pole { fill: #0a0c22; }
.st-bulb { fill: #ffe19a; }
.st-glow { fill: #ffb84d; opacity: 0.25; }
.foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding-top: 150px;
  padding-bottom: 36px;
}
.foot .logo { color: #ffffff; }
.foot-brand p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: #c9cdf0; }
.foot-mail { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 18px; text-decoration-color: var(--sun); }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-links h2 { font-size: 13px; font-weight: 800; color: var(--sun); margin-bottom: 8px; }
.foot-links a { display: block; padding: 3px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffe19a;
  color: #1f2347;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 2.5px solid #05071a;
  box-shadow: 0 4px 0 #05071a;
  transition: transform 0.12s, box-shadow 0.12s;
}
.to-top svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.25s; }
.to-top:hover { transform: translateY(2px); box-shadow: 0 2px 0 #05071a; }
@media (prefers-reduced-motion: no-preference) { .to-top:hover svg { transform: translateY(-3px); } }
.foot-legal { position: relative; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 18px; padding-bottom: 28px; font-size: 13px; font-weight: 600; color: #9ea3cf; }
.foot-legal::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; border-top: 2px dashed rgba(255, 255, 255, 0.15); }

/* ═════ 像素风对话框 ═════ */
dialog.pix {
  padding: 0;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  color: #1f2347;
  background: #fffdf8;
  border: 3px solid #1f2347;
  border-radius: 16px;
  box-shadow: 0 8px 0 #1f2347;
}
dialog.pix-small { width: min(440px, calc(100vw - 32px)); }
dialog.pix::backdrop { background: rgba(16, 18, 46, 0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pix-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: #1f2347;
  color: #ffffff;
}
.pix-bar h2 { font-size: 16px; font-weight: 800; }
.pix-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.pix-close svg { width: 12px; height: 12px; fill: #ffffff; }
.pix-close:hover { background: var(--coral); }
.pix-body { padding: 26px 28px 30px; }

.dz { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: center; }
.dz-head { display: flex; align-items: center; gap: 14px; }
.dz-head img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid #1f2347; }
.dz-head p { font-weight: 700; }
.dz-list { margin-top: 20px; display: grid; gap: 12px; }
.dz-list li { padding-left: 14px; border-left: 3px solid var(--sun); color: #3d4466; font-size: 15px; }
.dz-list b { display: block; color: #1f2347; font-size: 16px; }
.dz .actions { padding-top: 24px; }
.dz .plain { color: #5d6286; }
.dz-shots { position: relative; height: 400px; }
.dz-shots img {
  position: absolute;
  width: 46%;
  border: 2.5px solid #1f2347;
  border-radius: 20px;
  box-shadow: 0 6px 0 #1f2347;
}
.dz-shots img:first-child { left: 6%; top: 6px; transform: rotate(-5deg); z-index: 1; }
.dz-shots img:last-child { right: 4%; top: 30px; transform: rotate(5deg); }

.dm, .dn { text-align: center; }
.dm-env { width: 76px; height: 57px; margin: 0 auto 14px; display: block; }
.dn .qblock { margin: 0 auto 16px; display: block; width: 56px; height: 56px; }
.dm p, .dn p { color: #3d4466; }
.dm-address { margin-top: 10px; font-size: 26px; font-weight: 800; color: #1f2347 !important; letter-spacing: -0.01em; }
.dm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn.done { background: #c9f0d8; color: #1f2347; }

/* ═════ 窄屏 ═════ */
@media (max-width: 900px) {
  .zhiyu { grid-column: 1 / -1; grid-row: auto; }
  .next { grid-column: 1 / -1; grid-row: auto; flex-direction: row; }
  .foot { grid-template-columns: 1fr 1fr; }
  .to-top { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .top nav a { padding: 6px 9px; }
  .scene { height: auto; display: flex; flex-direction: column; }
  .intro { order: -1; }
  .intro { position: relative; left: auto; top: auto; max-width: none; padding: 96px 18px 22px; }
  .intro h1 { font-size: 30px; }
  .sub { font-size: 16px; }
  .room { position: relative; height: 380px; }
  .dz { grid-template-columns: 1fr; }
  .dz-shots { height: 330px; }
  .dz-shots img { width: 42%; }
  .pix-body { padding: 22px 20px 26px; }
  .board { padding: 56px 0 72px; }
  .grid { gap: 18px; }
  .zhiyu { grid-template-columns: 1fr; }
  .zhiyu-text { padding: 26px 22px 0; }
  .phones { min-height: 300px; }
  .phones img { width: 46%; }
  .phones img:first-child { left: 8%; top: 30px; }
  .phones img:last-child { right: 6%; top: 52px; }
  .mail { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .envelope { width: 64px; height: 48px; }
  .foot { grid-template-columns: 1fr; gap: 28px; padding-top: 110px; padding-bottom: 40px; }
  .foot-legal::before { left: 18px; right: 18px; }
}
