:root {
  --bg-left: #f5f5f5;
  --bg-right: #74d4c2;
  --panel: rgba(255, 255, 255, 0.34);
  --text: #2f3336;
  --muted: #4a5966;
  --logo: #69d8cb;
  --accent: #a28ae4;
  --lamp-metal: #ab90df;
  --lamp-metal-dark: #9d7fd5;
  --desk: #414148;
  --screen-dark: #67647b;
  --outline: rgba(45, 50, 58, 0.76);
  --card-border: rgba(36, 51, 64, 0.12);
  --shadow: 0 30px 60px rgba(54, 66, 75, 0.14);
  --hero-split: 31.8%;
  --hero-outline: #23262a;
  --hero-script: #2f3336;
  --toggle-border: rgba(255, 255, 255, 0.95);
  --toggle-fill: rgba(255, 255, 255, 0.26);
  --desktop-scale: 1;
  --desktop-header-scale: 1;
  --desktop-scene-scale: 1;
  --desktop-cards-scale: 1;
  --desktop-designs-scale: 1;
  --desktop-contact-scale: 1;
}

body[data-theme="night"] {
  --bg-left: #242228;
  --bg-right: #834878;
  --panel: rgba(23, 18, 27, 0.42);
  --text: #f6f0f3;
  --muted: #ddd2db;
  --logo: #a894e8;
  --accent: #b7adff;
  --lamp-metal: #a494da;
  --lamp-metal-dark: #9582cc;
  --desk: #403f45;
  --screen-dark: #5e596f;
  --outline: rgba(245, 241, 242, 0.84);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  --hero-outline: #f4e9ee;
  --hero-script: #fff7fb;
  --toggle-border: rgba(241, 241, 241, 0.92);
  --toggle-fill: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      90deg,
      var(--bg-left) 0,
      var(--bg-left) var(--hero-split),
      var(--bg-right) var(--hero-split),
      var(--bg-right) 100%
    );
  transition:
    background 400ms ease,
    color 250ms ease;
  overflow-x: hidden;
}

body.wechat-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.mobile-nav {
  display: none;
}

@media (min-width: 901px) {
  .page-shell {
    position: relative;
  }

  .page-shell::after {
    content: "";
    display: block;
    height: 100vh;
  }

  .page-shell > :not(.site-footer) {
    position: relative;
    z-index: 1;
  }

  .hero,
  .hero-scene,
  .hero-copy {
    min-height: calc(100vh - 9rem);
  }
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: var(--hero-split) 1fr auto;
  align-items: start;
  gap: calc(1rem * var(--desktop-header-scale));
  min-height: calc(10.5rem * var(--desktop-header-scale));
  padding:
    calc((7.2rem - 2cm) * var(--desktop-header-scale))
    calc((5.2rem + 3cm) * var(--desktop-header-scale))
    0
    calc(2.3rem * var(--desktop-header-scale));
  background:
    linear-gradient(
      90deg,
      var(--bg-left) 0,
      var(--bg-left) var(--hero-split),
      var(--bg-right) var(--hero-split),
      var(--bg-right) 100%
    );
}

.logo {
  font-family: "Pacifico", cursive;
  justify-self: start;
  margin-left: calc(2cm * var(--desktop-header-scale));
  font-size: clamp(3.15rem, 4vw, 4.35rem);
  color: var(--logo);
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  align-items: center;
  transform: translateY(0.12rem);
  gap: clamp(1.2rem, 1.5vw, 2rem);
  margin-left: 0;
  margin-right: clamp(0.8rem, 1.4vw, 1.6rem);
  font-size: clamp(1.06rem, 1.16vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.site-nav a {
  position: relative;
}

.site-nav {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 0.14rem;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  position: relative;
  width: 4.1rem;
  height: 2.3rem;
  border: 2px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-fill);
  cursor: pointer;
  padding: 0.2rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition:
    background 300ms ease,
    border-color 300ms ease;
}

.toggle-thumb {
  position: relative;
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd684, #f0b147);
  box-shadow: 0 3px 10px rgba(147, 95, 8, 0.22);
  transition:
    transform 300ms ease,
    background 300ms ease;
}

.toggle-thumb::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 35% 38%, rgba(180, 180, 180, 0.95) 0 0.13rem, transparent 0.14rem),
    radial-gradient(circle at 70% 62%, rgba(196, 196, 196, 0.95) 0 0.11rem, transparent 0.12rem);
  transition: opacity 300ms ease;
}

body[data-theme="night"] .toggle-thumb {
  transform: translateX(1.65rem);
  background: linear-gradient(135deg, #fcfcfb, #dfdfde);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
}

body[data-theme="night"] .toggle-thumb::before {
  opacity: 1;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      var(--bg-left) 0,
      var(--bg-left) var(--hero-split),
      var(--bg-right) var(--hero-split),
      var(--bg-right) 100%
    );
  transition: background 400ms ease;
}

.hero-scene {
  position: relative;
  flex: 0 0 var(--hero-split);
  min-height: 100vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.scene-art {
  position: absolute;
  right: calc(-13rem * var(--desktop-scene-scale));
  top: calc(-5cm * var(--desktop-scene-scale));
  width: min(calc(42.25rem * var(--desktop-scene-scale)), 35.5vw);
  aspect-ratio: 670 / 850;
  transform-origin: right top;
  z-index: 4;
}

.lamp-toggle {
  position: absolute;
  left: 50.9%;
  top: 29.8%;
  width: 17.5%;
  height: 19.8%;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.lamp-toggle:focus-visible {
  outline: 3px solid rgba(77, 83, 92, 0.5);
  outline-offset: 0.18rem;
  border-radius: 2rem;
}

.scene-art::after {
  content: "";
  position: absolute;
  left: 23.2%;
  top: 17.9%;
  width: 42.6%;
  height: 68%;
  opacity: 0;
  pointer-events: none;
  clip-path: polygon(51% 0, 57% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(234, 228, 188, 0.42), rgba(214, 175, 186, 0.26));
  transition: opacity 300ms ease;
  z-index: 0;
}

body[data-theme="night"] .scene-art::after {
  opacity: 1;
}

body[data-theme="night"].lamp-flicker .scene-art::after {
  animation: lamp-flicker-beam 0.65s ease-out;
}

body[data-theme="night"].lamp-flicker .scene-image,
body[data-theme="night"].lamp-flicker .scene-graphic {
  animation: lamp-flicker-scene 0.65s ease-out;
}

@keyframes lamp-flicker-beam {
  0% {
    opacity: 0.18;
  }
  28% {
    opacity: 0.92;
  }
  46% {
    opacity: 0.08;
  }
  100% {
    opacity: 1;
  }
}

@keyframes lamp-flicker-scene {
  0% {
    filter: brightness(0.82) saturate(0.92);
  }
  28% {
    filter: brightness(0.7) saturate(0.86);
  }
  46% {
    filter: brightness(0.88) saturate(0.98);
  }
  100% {
    filter: brightness(0.74) saturate(0.88);
  }
}

.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.scene-group {
  position: absolute;
  right: -12.2rem;
  bottom: 1.2rem;
  width: 45rem;
  height: 55rem;
}

.scene-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
  z-index: 1;
}

body[data-theme="night"] .scene-image,
body[data-theme="night"] .scene-graphic {
  filter: brightness(0.74) saturate(0.88);
}

.ceiling-line {
  position: absolute;
  left: 28.45rem;
  top: 0;
  width: 0.32rem;
  height: 17.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #b39ce9, #9c83d4);
}

.lamp {
  position: absolute;
  left: 25.7rem;
  top: 10.7rem;
  width: 5.8rem;
  z-index: 4;
}

.lamp-cap {
  position: relative;
  width: 1.25rem;
  height: 0.7rem;
  margin: 0 auto;
  border-radius: 1rem 1rem 0.2rem 0.2rem;
  background: var(--lamp-metal);
}

.lamp-cap::before,
.lamp-cap::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lamp-metal);
}

.lamp-cap::before {
  top: 0.65rem;
  width: 1.75rem;
  height: 0.85rem;
  border-radius: 0.8rem 0.8rem 0.18rem 0.18rem;
}

.lamp-cap::after {
  top: 1.35rem;
  width: 2rem;
  height: 0.48rem;
  border-radius: 0.2rem 0.2rem 0 0;
}

.lamp-shade {
  position: relative;
  width: 5.6rem;
  height: 5.05rem;
  margin-top: 1.72rem;
  border-radius: 2.85rem 2.85rem 0.25rem 0.25rem;
  background: linear-gradient(180deg, var(--lamp-metal), var(--lamp-metal-dark));
}

.lamp-shade::after {
  content: "";
  position: absolute;
  left: -0.45rem;
  right: -0.45rem;
  bottom: -0.08rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #b5aae8;
}

.lamp-bulb {
  position: absolute;
  left: 50%;
  bottom: -1.2rem;
  width: 2.1rem;
  height: 2.1rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff2b1;
  box-shadow: 0 0 0 0 rgba(255, 243, 174, 0);
  transition: box-shadow 280ms ease;
}

.lamp-glow {
  position: absolute;
  left: 50%;
  top: 5.7rem;
  width: 3.8rem;
  height: 3rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 174, 0.9), rgba(255, 244, 174, 0));
  opacity: 0;
  filter: blur(8px);
  transition: opacity 340ms ease;
}

.light-beam {
  position: absolute;
  top: 5.95rem;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease;
  z-index: -1;
}

.beam-left {
  width: 15rem;
  height: 35rem;
  transform: translateX(-48%);
  clip-path: polygon(48% 0, 58% 0, 7% 100%, 0 100%);
  background: rgba(179, 171, 137, 0.42);
}

.beam-right {
  width: 16.5rem;
  height: 35rem;
  transform: translateX(-42%);
  clip-path: polygon(44% 0, 54% 0, 100% 100%, 24% 100%);
  background: rgba(198, 155, 180, 0.34);
}

body[data-theme="night"] .lamp-glow,
body[data-theme="night"] .light-beam {
  opacity: 1;
}

body[data-theme="night"] .lamp-bulb {
  box-shadow:
    0 0 16px 6px rgba(255, 243, 174, 0.32),
    0 0 30px 10px rgba(255, 243, 174, 0.12);
}

.mini-shelf {
  position: absolute;
  left: 5.2rem;
  bottom: 18.9rem;
  width: 11.9rem;
  height: 7rem;
  border-bottom: 0.52rem solid var(--desk);
  z-index: 3;
}

.plant {
  position: absolute;
  bottom: 0.08rem;
  left: 0.65rem;
  width: 3.95rem;
  height: 5.85rem;
}

.plant::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  bottom: 0;
  width: 2.8rem;
  height: 1.45rem;
  border-radius: 0.2rem 0.2rem 0.38rem 0.38rem;
  background: #b49d8a;
}

.plant::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: 0.45rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0.35rem 0.22rem 0 rgba(255, 255, 255, 0.6),
    0.12rem 0.52rem 0 rgba(255, 255, 255, 0.72);
}

.leaf {
  position: absolute;
  bottom: 1rem;
  width: 1.5rem;
  height: 4.35rem;
  border-radius: 1rem 1rem 0.1rem 1rem;
  background: linear-gradient(180deg, #7ce2cb, #3cae9e);
  transform-origin: bottom center;
}

.leaf-one {
  left: 0;
  transform: rotate(-23deg);
}

.leaf-two {
  left: 1rem;
  height: 4.95rem;
  background: linear-gradient(180deg, #96e9d5, #54c3a4);
}

.leaf-three {
  left: 1.95rem;
  height: 4.7rem;
  transform: rotate(17deg);
}

.leaf-four {
  left: 2.8rem;
  transform: rotate(31deg);
  background: linear-gradient(180deg, #6fd7cc, #2ca395);
}

.book {
  position: absolute;
  bottom: 0.16rem;
  width: 1rem;
  border-radius: 0.08rem;
}

.book-one {
  left: 5.45rem;
  width: 0.94rem;
  height: 3.1rem;
  background: transparent;
  border: 0.16rem solid #79d8d2;
  transform: rotate(16deg);
}

.book-one::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  bottom: 0.14rem;
  right: 0.16rem;
  width: 0.24rem;
  border-radius: 999px;
  background: #c7d6fb;
}

.book-two {
  left: 7.15rem;
  height: 3.6rem;
  background: #e184a3;
}

.book-two::after,
.book-three::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.55rem;
  height: 0.18rem;
  background: rgba(255, 255, 255, 0.4);
}

.book-three {
  left: 8.3rem;
  height: 4.05rem;
  background: #9ad2ea;
}

.desk-illustration {
  position: absolute;
  left: 9.8rem;
  bottom: 0;
  width: 34rem;
  height: 28rem;
  z-index: 4;
}

.monitor {
  position: absolute;
  left: 19.9rem;
  bottom: 4.3rem;
  width: 28.4rem;
  transform: translateX(-50%);
  z-index: 6;
}

.monitor-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  height: 0.9rem;
  padding: 0 0.7rem;
  border: 0.34rem solid var(--desk);
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  background: #ece9f4;
}

.monitor-bar span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #d2bdd7;
}

.monitor-bar span:nth-child(1) {
  background: #e07f8a;
}

.monitor-bar span:nth-child(2) {
  background: #e6b85d;
}

.monitor-bar span:nth-child(3) {
  background: #6ac77a;
}

.monitor-body {
  display: grid;
  grid-template-columns: 9.2rem 1fr;
  gap: 0;
  min-height: 15rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border: 0.74rem solid var(--desk);
  border-top: 0;
  border-radius: 0 0 0.72rem 0.72rem;
  background: #f4f1fb;
}

.screen {
  min-height: 13rem;
}

.screen-left {
  position: relative;
  padding: 0.75rem;
  background: #fbf5fc;
}

.screen-left::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.6rem;
  width: 0.36rem;
  height: 3.7rem;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.25);
}

.screen-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.95rem;
  background: var(--screen-dark);
}

.screen-right span {
  display: block;
  width: 58%;
  height: 0.25rem;
  background: rgba(220, 224, 237, 0.24);
}

.screen-right span:nth-child(2n) {
  width: 72%;
}

.screen-right span:nth-child(3n) {
  width: 38%;
}

.screen-right::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  width: 6rem;
  height: 5.8rem;
  background: #2f3032;
  box-shadow: inset 0 0 0 0.18rem #bdbcc0;
}

.screen-right::before {
  content: ">";
  position: absolute;
  right: 5rem;
  bottom: 4.8rem;
  color: #73f2a0;
  font-size: 1.9rem;
  font-weight: 700;
  z-index: 1;
}

.card {
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
}

.card-pink {
  height: 5.2rem;
  background:
    radial-gradient(circle at 25% 32%, rgba(255, 255, 255, 0.65) 0 0.82rem, transparent 0.84rem),
    linear-gradient(180deg, #f0c2bf, #ebb8b1);
}

.card-blue {
  height: 3.95rem;
  background: linear-gradient(180deg, #c2cdfa, #aeb8ea);
}

.monitor-stand {
  width: 1.45rem;
  height: 3.2rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #73d8c8, #4eb8ad);
  clip-path: polygon(15% 0, 85% 0, 65% 100%, 35% 100%);
}

.monitor-base {
  width: 8.3rem;
  height: 0.34rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #d6dae8;
}

.desk-top {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--desk);
}

.cup {
  position: absolute;
  left: 7rem;
  bottom: 3.72rem;
  width: 1.6rem;
  height: 1.95rem;
  border-radius: 0 0 0.35rem 0.35rem;
  background: #d7829d;
  z-index: 3;
}

.cup::after {
  content: "";
  position: absolute;
  right: -0.42rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.72rem;
  border: 0.18rem solid #d7829d;
  border-left: 0;
  border-radius: 0 0.7rem 0.7rem 0;
}

.mouse {
  position: absolute;
  right: 4rem;
  bottom: 3.74rem;
  width: 1.35rem;
  height: 0.7rem;
  border-radius: 999px 999px 0.5rem 0.5rem;
  background: #f5f6f7;
  z-index: 3;
}

.hero-copy {
  position: relative;
  flex: 1 1 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1;
  padding:
    calc((11.2rem - 5cm) * var(--desktop-scale))
    0
    calc(4rem * var(--desktop-scale))
    calc(22% - (2cm * var(--desktop-scale)));
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.intro {
  display: flex;
  align-items: center;
  gap: calc(0.55rem * var(--desktop-scale));
  margin: 0 0 calc(1.55rem * var(--desktop-scale));
}

.intro-wave {
  font-size: clamp(1.6rem, 1.9vw, 2rem);
  line-height: 1;
}

.intro-script {
  font-family: "Pacifico", cursive;
  font-size: clamp(2rem, 2.2vw, 2.5rem);
  line-height: 1;
  color: var(--hero-script);
}

@media (min-width: 901px) {
  .hero,
  .hero-scene,
  .hero-copy {
    min-height: calc(100vh - 10rem);
  }
}

.hero-copy h1 {
  margin: 0;
  font-family: "Segoe UI Black", "Segoe UI", sans-serif;
  font-size: clamp(4.2rem, 4.55vw, 5.15rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: left;
  max-width: none;
  color: #23262a;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-copy .outline-word,
.hero-copy .outline-link {
  color: transparent;
  -webkit-text-stroke: 1.25px var(--hero-outline);
  text-stroke: 1.25px var(--hero-outline);
  transition:
    color 300ms ease,
    -webkit-text-stroke-color 300ms ease,
    text-stroke-color 300ms ease,
    transform 300ms ease;
}

.hero-copy .outline-word:hover,
.hero-copy .outline-word:focus-visible,
.hero-copy .outline-link:hover,
.hero-copy .outline-link:focus-visible {
  color: var(--hero-outline);
  -webkit-text-stroke-color: var(--hero-outline);
  text-stroke-color: var(--hero-outline);
}

.solid-amp {
  display: inline-block;
  margin-inline: 0.02em;
  color: var(--text);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-family: "Segoe UI Black", "Segoe UI", sans-serif;
  font-weight: 900;
  transition: color 300ms ease;
}

body[data-theme="night"] .solid-amp {
  color: #111111;
}

.quick-links,
.hero-note {
  display: none;
}

.cards-section {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding:
    calc(1.7rem * var(--desktop-cards-scale))
    0
    calc(1.1rem * var(--desktop-cards-scale));
  background: #aa8adb;
  overflow: hidden;
  min-height: calc((760px * var(--desktop-cards-scale)) + 10rem);
  display: flex;
  align-items: flex-start;
}

body[data-theme="night"] .cards-section {
  background: #564277;
}

.cards-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(1980px * var(--desktop-cards-scale));
  height: calc(1000px * var(--desktop-cards-scale));
  transform: translateX(-50%);
  background: #aa8adb;
  z-index: 0;
  pointer-events: none;
}

body[data-theme="night"] .cards-section::before {
  background: #564277;
}

.cards-inner {
  position: relative;
  width: min(calc(1520px * var(--desktop-cards-scale)), calc(100vw - 5rem));
  min-height: calc(760px * var(--desktop-cards-scale));
  margin: 0 auto;
  transform: translateY(0);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  color: #37353d;
}

.cards-title {
  margin: 0;
  position: absolute;
  left: calc(8rem * var(--desktop-cards-scale));
  top: calc(0.3rem * var(--desktop-cards-scale));
  font-size: calc(4.6rem * var(--desktop-cards-scale));
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

body[data-theme="night"] .cards-title {
  color: #fffdfc;
}

.browser-card {
  position: absolute;
  background: #ffffff;
  border: calc(3px * var(--desktop-cards-scale)) solid #4a464d;
  border-radius: calc(1.45rem * var(--desktop-cards-scale));
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body[data-theme="night"] .browser-card {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.card-education {
  left: calc(8rem * var(--desktop-cards-scale));
  top: calc(7.9rem * var(--desktop-cards-scale));
  width: calc(28rem * var(--desktop-cards-scale));
  height: calc(21.8rem * var(--desktop-cards-scale));
}

.card-experience {
  left: calc(49.8rem * var(--desktop-cards-scale));
  top: calc(3.9rem * var(--desktop-cards-scale));
  width: calc(28.6rem * var(--desktop-cards-scale));
  height: calc(19.8rem * var(--desktop-cards-scale));
}

.card-skill {
  left: calc(37.6rem * var(--desktop-cards-scale));
  top: calc((24.35rem + 1cm) * var(--desktop-cards-scale));
  width: calc(29rem * var(--desktop-cards-scale));
  height: calc(19.8rem * var(--desktop-cards-scale));
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: calc(0.55rem * var(--desktop-cards-scale));
  height: calc(2.3rem * var(--desktop-cards-scale));
  padding: 0 calc(1rem * var(--desktop-cards-scale));
  border-bottom: calc(3px * var(--desktop-cards-scale)) solid #4a464d;
  background: #fff;
}

body[data-theme="night"] .browser-bar {
  border-bottom-color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.browser-bar span {
  width: calc(0.92rem * var(--desktop-cards-scale));
  height: calc(0.92rem * var(--desktop-cards-scale));
  border-radius: 50%;
  background: #4a464d;
}

body[data-theme="night"] .browser-bar span {
  background: #fffdfc;
}

.browser-content {
  display: flex;
  height: calc(100% - (2.3rem * var(--desktop-cards-scale)));
  padding:
    calc(1.2rem * var(--desktop-cards-scale))
    calc(1rem * var(--desktop-cards-scale))
    calc(0.9rem * var(--desktop-cards-scale));
  flex-direction: column;
}

.browser-content h3 {
  margin: 0;
  position: relative;
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  font-size: calc(1.5rem * var(--desktop-cards-scale));
  line-height: 1.18;
  font-weight: 700;
  cursor: pointer;
  isolation: isolate;
  transition: color 180ms ease;
}

.browser-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.5em;
  background: rgba(244, 180, 176, 0.92);
  border-radius: 0.12em;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
  z-index: -1;
}

.browser-content h3:hover::before,
.browser-content h3:focus-visible::before {
  transform: scaleX(1);
}

.browser-content h3:focus-visible {
  outline: none;
}

body[data-theme="night"] .browser-content h3 {
  color: #fffdfc;
}

body[data-theme="night"] .browser-content h3::before {
  background: rgba(237, 194, 162, 0.76);
}

.browser-content p {
  margin: 0;
  font-size: calc(0.82rem * var(--desktop-cards-scale));
  line-height: 1.72;
  color: #37353d;
}

body[data-theme="night"] .browser-content p {
  color: rgba(255, 255, 255, 0.96);
}

.browser-copy {
  display: grid;
  gap: calc(0.72rem * var(--desktop-cards-scale));
  margin-top: calc(0.82rem * var(--desktop-cards-scale));
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1rem * var(--desktop-cards-scale));
  font-size: calc(0.9rem * var(--desktop-cards-scale));
  font-weight: 700;
}

body[data-theme="night"] .card-meta {
  color: #fffdfc;
}

.card-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  white-space: nowrap;
}

.card-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.card-meta a:hover .card-arrow,
.card-meta a:focus-visible .card-arrow {
  transform: translateX(0.32rem);
}

.download-card {
  position: absolute;
  left: calc(14rem * var(--desktop-cards-scale));
  top: calc(34.9rem * var(--desktop-cards-scale));
  display: inline-block;
  min-width: calc(11.2rem * var(--desktop-cards-scale));
  min-height: calc(3.45rem * var(--desktop-cards-scale));
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  text-decoration: none;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #4a464d;
  transform: translate(
    calc(0.45rem * var(--desktop-cards-scale)),
    calc(0.45rem * var(--desktop-cards-scale))
  );
  z-index: 0;
}

.download-card-face {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(11.2rem * var(--desktop-cards-scale));
  min-height: calc(3.45rem * var(--desktop-cards-scale));
  padding: calc(0.6rem * var(--desktop-cards-scale)) calc(1rem * var(--desktop-cards-scale));
  border: calc(3px * var(--desktop-cards-scale)) solid #4a464d;
  background: #fff;
  font-size: calc(0.92rem * var(--desktop-cards-scale));
  font-weight: 700;
  color: #4a464d;
  transition: transform 180ms ease;
}

body[data-theme="night"] .download-card {
  color: #fffdfc;
}

body[data-theme="night"] .download-card::before {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="night"] .download-card-face {
  color: #fffdfc;
  border-color: rgba(255, 255, 255, 0.92);
  background: #564277;
}

.download-card:hover .download-card-face,
.download-card:focus-visible .download-card-face {
  transform: translate(
    calc(0.45rem * var(--desktop-cards-scale)),
    calc(0.45rem * var(--desktop-cards-scale))
  );
}

.download-card:focus-visible {
  outline: none;
}

.designs-section {
  margin: 0 calc(50% - 50vw);
  padding: 0;
  background: #fff3a8;
  color: #3a3740;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body[data-theme="night"] .designs-section {
  background: rgb(44, 42, 50);
  color: #f6f1f4;
}

.designs-intro,
.projects-list {
  width: min(calc(1280px * var(--desktop-designs-scale)), calc(100vw - 5rem));
  margin: 0 auto;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.designs-intro {
  display: grid;
  grid-template-columns:
    minmax(calc(360px * var(--desktop-designs-scale)), 0.9fr)
    minmax(calc(420px * var(--desktop-designs-scale)), 1.02fr);
  gap: calc(3rem * var(--desktop-designs-scale));
  align-items: center;
  min-height: calc(29.5rem * var(--desktop-designs-scale));
  padding:
    calc(2.7rem * var(--desktop-designs-scale))
    0
    calc(0.7rem * var(--desktop-designs-scale));
}

.designs-copy h2 {
  margin: 0 0 calc(1.55rem * var(--desktop-designs-scale));
  font-family: "Segoe UI Black", "Arial Black", "Segoe UI", sans-serif;
  font-size: calc(5rem * var(--desktop-designs-scale));
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 900;
  transform: translateY(calc(-1cm * var(--desktop-designs-scale)));
}

.designs-copy p {
  margin: 0 0 calc(1.35rem * var(--desktop-designs-scale));
  max-width: calc(35rem * var(--desktop-designs-scale));
  font-size: calc(1.02rem * var(--desktop-designs-scale));
  line-height: 1.88;
  font-weight: 400;
}

.designs-link {
  display: inline-block;
  margin-top: calc(0.15rem * var(--desktop-designs-scale));
  font-size: calc(1rem * var(--desktop-designs-scale));
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.12rem;
  text-underline-offset: 0.2rem;
}

.designs-link:hover,
.designs-link:focus-visible {
  text-decoration-thickness: 0.15rem;
}

.designs-visual {
  position: relative;
  margin-top: calc(0.3rem * var(--desktop-designs-scale));
}

.designs-visual-image {
  display: block;
  width: 100%;
  max-width: calc(35.8rem * var(--desktop-designs-scale));
  margin-left: auto;
  object-fit: contain;
}

.designs-visual-art {
  display: none;
  width: 100%;
  max-width: calc(35.8rem * var(--desktop-designs-scale));
  margin-left: auto;
}

.projects-list {
  margin-top: 0;
  padding:
    calc(0.15rem * var(--desktop-designs-scale))
    0
    calc(4.8rem * var(--desktop-designs-scale));
  display: grid;
  gap: calc(2.2rem * var(--desktop-designs-scale));
  transform: translateX(calc(4rem * var(--desktop-designs-scale)));
}

.project-item {
  display: grid;
  gap: calc(0.9rem * var(--desktop-designs-scale));
}

.project-head {
  display: grid;
  grid-template-columns:
    calc(8.8rem * var(--desktop-designs-scale))
    calc(8.6rem * var(--desktop-designs-scale))
    minmax(0, 1fr);
  gap: calc(1.6rem * var(--desktop-designs-scale));
  align-items: center;
}

.project-index {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(7rem * var(--desktop-designs-scale));
}

.project-index img {
  display: block;
  width: 100%;
  max-width: calc(6.9rem * var(--desktop-designs-scale));
  height: auto;
  object-fit: contain;
}

.project-rule {
  display: block;
  width: 100%;
  height: 0.2rem;
  background: rgba(58, 55, 64, 0.7);
  border-radius: 999px;
}

body[data-theme="night"] .project-rule {
  background: rgba(245, 241, 244, 0.78);
}

.project-title-stack {
  display: grid;
  gap: calc(0.35rem * var(--desktop-designs-scale));
}

.project-title-stack h3 {
  margin: 0;
  font-size: calc(2.45rem * var(--desktop-designs-scale));
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.project-title-link {
  display: inline;
  background-image: linear-gradient(transparent 58%, rgba(241, 162, 182, 0.72) 58%, rgba(241, 162, 182, 0.72) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition:
    background-size 240ms ease,
    color 180ms ease;
}

.project-title-link:hover,
.project-title-link:focus-visible {
  background-size: 100% 100%;
}

body[data-theme="night"] .project-title-link {
  background-image: linear-gradient(transparent 58%, rgba(196, 149, 173, 0.6) 58%, rgba(196, 149, 173, 0.6) 90%, transparent 90%);
}

.project-subtitle {
  margin: 0;
  font-size: calc(1.1rem * var(--desktop-designs-scale));
  font-weight: 700;
  line-height: 1.42;
}


.project-content {
  padding-left: calc((8.8rem + 1.6rem + 8.6rem + 1.6rem) * var(--desktop-designs-scale));
}

.project-content p:last-child {
  margin: 0;
  max-width: calc(45rem * var(--desktop-designs-scale));
  font-size: calc(0.96rem * var(--desktop-designs-scale));
  line-height: 1.82;
}

.project-item-featured .project-head {
  grid-template-columns:
    calc(8.8rem * var(--desktop-designs-scale))
    calc(8.6rem * var(--desktop-designs-scale))
    minmax(0, 1fr);
  gap: calc(1.6rem * var(--desktop-designs-scale));
}

.project-item-featured .project-index img {
  max-width: calc(7.4rem * var(--desktop-designs-scale));
}

.project-item-featured .project-title-stack h3 {
  font-size: calc(2.55rem * var(--desktop-designs-scale));
}

.project-item-featured .project-subtitle {
  font-size: calc(1.12rem * var(--desktop-designs-scale));
}

.project-details {
  width: min(1280px, calc(100vw - 5rem));
  margin: 5rem auto 0;
  display: grid;
  gap: 1.3rem;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.detail-card {
  padding: 2rem 2.1rem;
  border: 2px solid rgba(58, 55, 64, 0.18);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.28);
  scroll-margin-top: 5rem;
}

body[data-theme="night"] .detail-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.detail-kicker {
  margin: 0 0 0.6rem;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.detail-card .project-subtitle {
  margin-top: 0.5rem;
}

.detail-card p:last-child {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.site-footer {
  margin: 0 calc(50% - 50vw);
  padding:
    calc(4.8rem * var(--desktop-contact-scale))
    0
    calc(5rem * var(--desktop-contact-scale));
  background: rgb(111, 220, 191);
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: 0;
}

body[data-theme="night"] .site-footer {
  background: rgb(119, 64, 105);
}

@media (min-width: 901px) {
  .site-footer {
    inset: auto 0 0 0;
    width: 100%;
    margin: 0;
    position: fixed;
    z-index: 0;
  }
}

.contact-panel {
  width: min(calc(1080px * var(--desktop-contact-scale)), calc(100vw - 9rem));
  min-height: calc(28.4rem * var(--desktop-contact-scale));
  margin: 0 auto;
  padding:
    calc(4.55rem * var(--desktop-contact-scale))
    calc(6.75rem * var(--desktop-contact-scale))
    calc(2.9rem * var(--desktop-contact-scale))
    calc(6.85rem * var(--desktop-contact-scale));
  display: grid;
  grid-template-columns:
    calc(23.5rem * var(--desktop-contact-scale))
    minmax(calc(24rem * var(--desktop-contact-scale)), 1fr);
  gap: calc(3rem * var(--desktop-contact-scale));
  align-items: center;
  background: #ffffff;
  overflow: visible;
  position: relative;
}

body[data-theme="night"] .contact-panel {
  background: #2b292d;
  color: #f9f7f5;
}

.contact-copy {
  position: relative;
  display: flex;
  min-height: calc(20.5rem * var(--desktop-contact-scale));
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: calc(4.85rem * var(--desktop-contact-scale));
}

.contact-copy h2 {
  margin: 0 0 calc(1.7rem * var(--desktop-contact-scale));
  font-size: calc(1.28rem * var(--desktop-contact-scale));
  line-height: 1.06;
  font-weight: 800;
}

.contact-big-title {
  position: absolute;
  left: 0;
  bottom: calc(-3.45rem * var(--desktop-contact-scale));
  font-family: "Segoe UI Black", "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: calc(4.25rem * var(--desktop-contact-scale));
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.contact-lines {
  margin: 0;
  max-width: calc(21rem * var(--desktop-contact-scale));
  font-size: calc(1.12rem * var(--desktop-contact-scale));
  line-height: 1.6;
}

.contact-line {
  display: block;
}

.contact-lines a,
.contact-lines .contact-value {
  font-weight: 700;
  text-decoration: none;
}

.contact-wechat-mark {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: calc(3.15rem * var(--desktop-contact-scale));
  margin-top: calc(2rem * var(--desktop-contact-scale));
}

.contact-wechat-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(16, 18, 20, 0.42);
}

.contact-qr-modal[hidden] {
  display: none !important;
}

.contact-qr-dialog {
  position: relative;
  width: min(25rem, calc(100vw - 2rem));
  padding: 2rem 2rem 1.7rem;
  background: #ffffff;
  color: #23262a;
  text-align: center;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.18);
}

.contact-qr-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.contact-qr-dialog h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.contact-qr-image {
  display: block;
  width: min(17rem, 100%);
  margin: 0 auto 0.85rem;
}

.contact-qr-dialog p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.contact-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(20.5rem * var(--desktop-contact-scale));
}

.contact-portal {
  position: relative;
  width: min(calc(28.25rem * var(--desktop-contact-scale)), 100%);
  aspect-ratio: 1087 / 734;
  overflow: hidden;
}

.contact-portal-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-header {
    top: 0;
    min-height: 0;
    grid-template-columns: 1fr auto;
    padding: 1.6rem 1.5rem 0;
    background: none;
  }

  .logo {
    grid-column: 1 / 2;
  }

  .site-nav {
    grid-column: 1 / 3;
    justify-content: flex-end;
    flex-wrap: wrap;
    order: 3;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.5rem;
  }

  .theme-toggle {
    justify-self: end;
  }

  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    min-height: auto;
    position: relative;
    z-index: 5;
    padding: 3.2rem 1.5rem 3rem;
  }

  .hero-about-link {
    position: relative;
    z-index: 6;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .hero-scene {
    width: 100%;
    min-height: 36rem;
  }

  .scene-group {
    left: 56%;
    right: auto;
    bottom: 0.6rem;
    transform: translateX(-50%) scale(0.7);
    transform-origin: bottom center;
  }

  .scene-art {
    right: -12rem;
    top: 0.2rem;
    transform: scale(0.8);
  }

  .light-beam {
    display: none;
  }

  .cards-section {
    margin-inline: -1.5rem;
  }

  .cards-inner {
    width: calc(100vw - 3rem);
    min-height: auto;
    padding: 7rem 0 2rem;
  }

  .cards-title,
  .browser-card,
  .download-card {
    position: static;
  }

  .cards-title {
    margin-bottom: 2rem;
  }

  .designs-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .designs-visual-art {
    margin-left: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 8vw, 5rem);
  }

  .site-footer {
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
    min-height: auto;
  }

  .contact-panel {
    width: 100%;
    min-height: auto;
    padding: 3rem 2.5rem 2.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-copy {
    min-height: auto;
    padding-bottom: 4.4rem;
  }

  .contact-figure {
    min-height: 20rem;
  }

  .contact-big-title {
    bottom: -0.25rem;
    font-size: 4rem;
  }

  .contact-lines {
    max-width: 100%;
  }

  .contact-portal {
    width: min(24rem, 100%);
  }
}

@media (max-width: 760px) {
  .page-shell {
    position: relative;
  }

  .page-shell::after {
    content: "";
    display: block;
    height: calc(100vh - 6.35rem - env(safe-area-inset-bottom));
  }

  .page-shell > :not(.site-footer) {
    position: relative;
    z-index: 1;
  }

  body {
    padding-bottom: calc(6.35rem + env(safe-area-inset-bottom));
  }

  body {
    background:
      linear-gradient(
        180deg,
        var(--bg-left) 0,
        var(--bg-left) 42%,
        var(--bg-right) 42%,
        var(--bg-right) 100%
      );
  }

  .hero {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background:
      linear-gradient(
        180deg,
        var(--bg-left) 0,
        var(--bg-left) 42%,
        var(--bg-right) 42%,
        var(--bg-right) 100%
      );
  }

  .site-nav {
    display: none;
  }

  .site-nav a,
  .hero-line {
    white-space: normal;
  }

  .site-header {
    min-height: 0;
    grid-template-columns: 1fr auto;
    align-items: center;
    z-index: 20;
    padding-bottom: 0;
    padding-top: calc(env(safe-area-inset-top) + 0.95rem + 0.5cm);
    background: var(--bg-left);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: stretch;
    padding: 0.85rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 2px solid rgba(47, 51, 54, 0.22);
    background: rgba(255, 252, 249, 0.96);
    box-shadow: 0 -12px 28px rgba(48, 54, 60, 0.08);
    backdrop-filter: blur(14px);
  }

  body[data-theme="night"] .mobile-nav {
    border-top-color: rgba(255, 255, 255, 0.14);
    background: rgba(35, 31, 38, 0.94);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.22);
  }

  .mobile-nav-link {
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    padding: 0.25rem 0.15rem;
    color: #454349;
    text-align: center;
    transition:
      color 180ms ease,
      transform 180ms ease;
  }

  body[data-theme="night"] .mobile-nav-link {
    color: rgba(244, 238, 242, 0.84);
  }

  .mobile-nav-link.is-active {
    color: #23262a;
  }

  body[data-theme="night"] .mobile-nav-link.is-active {
    color: #ffffff;
  }

  .mobile-nav-link:active {
    transform: translateY(1px);
  }

  .mobile-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: rgba(111, 220, 191, 0.14);
    color: inherit;
  }

  body[data-theme="night"] .mobile-nav-icon {
    background: rgba(168, 148, 232, 0.16);
  }

  .mobile-nav-link.is-active .mobile-nav-icon {
    background: rgba(111, 220, 191, 0.26);
  }

  body[data-theme="night"] .mobile-nav-link.is-active .mobile-nav-icon {
    background: rgba(168, 148, 232, 0.28);
  }

  .mobile-nav-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
  }

  .hero-scene {
    min-height: 24rem;
    overflow: hidden;
  }

  .scene-group {
    left: 60%;
    bottom: 1.1rem;
    transform: translateX(-50%) scale(0.54);
  }

  .scene-art {
    right: -8.8rem;
    top: 0.5rem;
    transform: scale(0.62);
  }

  .hero-copy {
    margin-top: 0;
    margin-bottom: -4.4cm;
    transform: translateY(-7.5cm);
    background: var(--bg-right);
    padding: calc(1.1rem + 1.35cm) 1rem 0.7rem;
  }

  .hero-tail-i {
    display: none;
  }

  .hero-mobile-also {
    white-space: nowrap;
  }

  .hero-mobile-also::before {
    content: "I ";
  }

  .intro {
    font-size: 1.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 10vw, 4rem);
    line-height: 1.06;
  }

  .cards-section {
    position: relative;
    z-index: 3;
    isolation: isolate;
    margin-inline: -1rem;
    min-height: auto;
    padding: 1rem 1rem 2rem;
    padding-inline: 1rem;
    overflow: hidden;
    background: #aa8adb !important;
  }

  body[data-theme="night"] .cards-section {
    background: #564277 !important;
  }

  .cards-section::before {
    display: none;
  }

  .cards-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #aa8adb;
    z-index: 0;
    pointer-events: none;
  }

  .cards-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: auto;
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    padding-top: 1rem;
    overflow: hidden;
    background: #aa8adb;
  }

  .cards-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #aa8adb;
    z-index: 0;
    pointer-events: none;
  }

  body[data-theme="night"] .cards-section::after,
  body[data-theme="night"] .cards-inner,
  body[data-theme="night"] .cards-inner::before {
    background: #564277;
  }

  .cards-title {
    position: static;
    z-index: 2;
    width: min(30rem, calc(100% - 1.5rem));
    margin: 0 auto 0.35rem;
    color: #fffdfc;
  }

  body[data-theme="night"] .cards-title {
    color: #fffdfc;
  }

  .browser-card {
    position: static;
    left: auto;
    top: auto;
    z-index: 2;
    width: min(30rem, calc(100% - 1.5rem));
    height: auto;
    margin: 0 auto 1.25rem;
    background: #ffffff;
  }

  body[data-theme="night"] .browser-card {
    background: #564277;
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: none;
  }

  body[data-theme="night"] .browser-bar {
    border-bottom-color: rgba(255, 255, 255, 0.9);
    background: transparent;
  }

  body[data-theme="night"] .browser-bar span {
    background: #fffdfc;
  }

  body[data-theme="night"] .browser-content h3,
  body[data-theme="night"] .browser-content p,
  body[data-theme="night"] .card-meta {
    color: #fffdfc;
  }

  .browser-content {
    height: auto;
    gap: 1rem;
  }

  .browser-copy {
    margin-top: 0;
  }

  .card-meta {
    align-items: end;
    gap: 0.8rem;
  }

  .card-meta a {
    margin-left: auto;
    align-self: flex-end;
  }

  .download-card {
    width: min(22rem, calc(100% - 2.5rem));
    min-width: 0;
    margin: 0 auto;
  }

  .download-card-face {
    width: 100%;
    min-width: 0;
  }

  .designs-section {
    margin-inline: 0;
    padding: 4rem 1.45rem;
  }

  .designs-intro,
  .projects-list {
    width: min(100%, calc(100vw - 2.9rem));
  }

  .projects-list {
    transform: none;
  }

  .project-head,
  .project-content {
    transform: translateY(0.5cm);
  }

  .designs-visual-image,
  .designs-visual-art {
    max-width: 100%;
    margin-inline: auto;
  }

  .designs-intro {
    min-height: auto;
    padding: calc(2rem - 0.3cm) 0 0.35rem;
  }

  .designs-copy h2 {
    transform: translateY(-0.45cm);
  }

  .designs-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .designs-link {
    font-size: 1.25rem;
  }

  .designs-copy p,
  .designs-link,
  .designs-visual {
    transform: translateY(-0.3cm);
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .project-index,
  .project-rule {
    display: none;
  }

  .project-head {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .project-index {
    justify-content: flex-start;
    min-height: 0;
  }

  .project-index img {
    max-width: 6.6rem;
  }

  .project-rule {
    width: 8rem;
  }

  .project-title-stack h3,
  .project-item-featured .project-title-stack h3 {
    font-size: 2.2rem;
  }

  .project-subtitle,
  .project-item-featured .project-subtitle {
    font-size: 1.08rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .project-item-featured .project-subtitle {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    letter-spacing: -0.05em;
  }

  .project-content {
    padding-left: 0;
  }

  .project-content p:last-child {
    font-size: 1rem;
  }

  .project-title-link {
    overflow-wrap: anywhere;
  }

  .project-item-featured .project-title-link {
    white-space: nowrap;
  }

  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -0.35cm;
    width: 100%;
    margin: 0;
    z-index: 0;
    min-height: 100vh;
    padding: 3rem 1rem calc(6.35rem + 1.25rem + env(safe-area-inset-bottom));
    align-items: flex-end;
  }

  body[data-theme="night"] .site-footer {
    background: #814b79;
  }

  body[data-theme="night"] .contact-panel {
    width: min(30rem, calc(100% - 2rem));
    margin-inline: auto;
    background: #2b292d;
    color: #fffdfc;
    border-radius: 2rem;
  }

  .contact-panel {
    margin-top: 0.1cm;
    padding: 2.25rem 1.5rem 2rem;
  }

  .contact-copy h2 {
    margin-bottom: 1.4rem;
    font-size: 1.14rem;
  }

  .contact-big-title {
    bottom: -1.7rem;
    font-size: 3.35rem;
  }

  .contact-lines {
    font-size: 1rem;
  }

  .contact-wechat-mark {
    width: 2.75rem;
    margin-top: 1.6rem;
  }

  .contact-portal {
    width: min(18rem, 100%);
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.8rem;
    padding: calc(env(safe-area-inset-top) + 1rem + 0.5cm) 1rem 0;
  }

  .logo {
    margin-left: 0;
    font-size: clamp(2.55rem, 14vw, 3.3rem);
  }

  .theme-toggle {
    width: 3.55rem;
    height: 2rem;
  }

  .toggle-thumb {
    width: 1.4rem;
    height: 1.4rem;
  }

  body[data-theme="night"] .toggle-thumb {
    transform: translateX(1.35rem);
  }

  .site-nav {
    font-size: 0.84rem;
    gap: 0.5rem 0.85rem;
  }

  .mobile-nav {
    padding-inline: 0.45rem;
    gap: 0.12rem;
  }

  .mobile-nav-icon {
    width: 2.22rem;
    height: 2.22rem;
  }

  .mobile-nav-icon svg {
    width: 1.18rem;
    height: 1.18rem;
  }

  .mobile-nav-label {
    font-size: 0.64rem;
  }

  .hero-scene {
    min-height: 18rem;
    overflow: hidden;
  }

  .scene-art {
    right: -10.6rem;
    top: 0.9rem;
    transform: scale(0.48);
  }

  .hero-copy {
    margin-top: 0;
    margin-bottom: -4.4cm;
    transform: translateY(-7.5cm);
    background: var(--bg-right);
    padding: calc(0.85rem + 1.35cm) 0.85rem 0.5rem;
  }

  .intro {
    font-size: 1rem;
  }

  .intro-script {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .cards-section {
    padding-top: 0.9rem;
  }

  .cards-inner {
    padding-top: 0.8rem;
  }

  .browser-card {
    width: min(28rem, calc(100% - 1rem));
  }

  .download-card {
    width: min(20rem, calc(100% - 2rem));
  }

  .browser-content {
    padding: 1rem 0.9rem 0.85rem;
  }

  .browser-content h3 {
    font-size: 1.28rem;
  }

  .browser-content p {
    font-size: 0.86rem;
  }

  .card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .card-meta a,
  .designs-link,
  .contact-lines,
  .contact-value {
    overflow-wrap: anywhere;
  }

  .designs-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .designs-section {
    margin-inline: 0;
    padding: calc(2.5rem - 0.3cm) 1.15rem;
  }

  .designs-intro,
  .projects-list {
    width: min(100%, calc(100vw - 2.3rem));
  }

  .designs-link {
    display: block;
    width: 100%;
    font-size: 1.08rem;
  }

  .project-title-stack h3,
  .project-item-featured .project-title-stack h3 {
    font-size: clamp(1.8rem, 9vw, 2.05rem);
  }

  .project-subtitle,
  .project-item-featured .project-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .project-item-featured .project-subtitle {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    letter-spacing: -0.08em;
  }

  .project-content p:last-child {
    line-height: 1.72;
  }

  .contact-panel {
    padding: 1.75rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
    border-radius: 2rem;
  }

  body[data-theme="night"] .contact-panel {
    width: min(30rem, calc(100% - 2.5rem));
    padding: 1.75rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
    border-radius: 2rem;
  }

  .contact-copy {
    padding-bottom: 1.1rem;
  }

  .contact-big-title {
    position: static;
    margin-top: 0.55rem;
    font-size: clamp(2.35rem, 13vw, 2.85rem);
    line-height: 0.94;
  }

  .contact-figure {
    min-height: 14.8rem;
  }

  .contact-portal {
    width: min(14.2rem, 100%);
  }
}
