:root {
  --ink: #2f2634;
  --muted: #7a657c;
  --paper: #fff9f4;
  --paper-strong: #fffefb;
  --rose: #f29aa3;
  --peach: #ffd2a6;
  --sun: #f7c56b;
  --leaf: #92b98d;
  --mint: #87c9b1;
  --blue: #7aaecf;
  --line: rgba(104, 72, 96, 0.14);
  --shadow: 0 28px 80px rgba(126, 82, 92, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 214, 164, 0.46), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(242, 154, 163, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 76%, rgba(122, 174, 207, 0.18), transparent 24rem),
    linear-gradient(135deg, #fff6ec 0%, #fffaf1 45%, #f8efe9 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite;
}

.page-glow-a {
  top: 9rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(255, 196, 120, 0.72), transparent 68%);
}

.page-glow-b {
  right: -5rem;
  bottom: 9rem;
  background: radial-gradient(circle, rgba(122, 174, 207, 0.38), transparent 68%);
  animation-delay: -3s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 12px;
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: rgba(47, 38, 52, 0.72);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 26px rgba(128, 89, 103, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.nav-link.is-active,
.nav-link:hover {
  color: #70485d;
  background: rgba(255, 255, 255, 0.78);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px rgba(128, 89, 103, 0.12);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ef8e9e, #f4bd73);
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand-text span:last-child {
  color: rgba(64, 48, 64, 0.62);
  font-size: 12px;
  font-weight: 600;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 28px 0 82px;
}

.hero-copy {
  position: relative;
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 247, 237, 0.22));
  box-shadow: 0 26px 70px rgba(128, 89, 103, 0.12);
  backdrop-filter: blur(10px);
}

.hero-copy::after {
  position: absolute;
  top: -52px;
  right: 15%;
  width: 54px;
  height: 70px;
  border-radius: 50% 50% 46% 46%;
  content: "";
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(242, 154, 163, 0.65));
  box-shadow: inset -10px -12px 18px rgba(200, 102, 122, 0.12), 0 18px 42px rgba(198, 120, 128, 0.18);
  animation: balloonFloat 4.8s ease-in-out infinite;
}

.hero-copy::before {
  position: absolute;
  top: 15px;
  right: calc(15% + 26px);
  width: 1px;
  height: 108px;
  content: "";
  background: linear-gradient(to bottom, rgba(122, 101, 124, 0.22), transparent);
  animation: balloonFloat 4.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 16px;
  color: #905163;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #2c2030;
  font-size: clamp(46px, 6.4vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  overflow-wrap: normal;
  text-shadow: 0 10px 28px rgba(116, 76, 86, 0.22);
}

.hero-text {
  max-width: 470px;
  margin-bottom: 26px;
  color: #6e536f;
  font-size: clamp(21px, 2.7vw, 30px);
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.work-link,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #70485d;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(149, 91, 103, 0.12);
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.work-link {
  justify-content: flex-start;
  width: min(100%, 340px);
  padding: 7px 16px 7px 8px;
  gap: 10px;
}

.work-link img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(75, 48, 62, 0.16);
}

.work-link-mine {
  color: #425f68;
}

.work-link:hover,
.detail-button:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(149, 91, 103, 0.16);
  transform: translateY(-2px);
}

[data-lightbox] {
  cursor: zoom-in;
}

.hero-stack {
  position: relative;
  min-height: 520px;
  transform-style: preserve-3d;
  transition: transform 350ms ease;
}

.hero-art {
  position: absolute;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(126, 82, 92, 0.28);
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.hero-art:not([data-lightbox]) {
  cursor: default;
}

.hero-art:hover {
  box-shadow: 0 38px 100px rgba(126, 82, 92, 0.28);
}

.hero-art::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 40px;
  content: "";
  background: linear-gradient(135deg, rgba(247, 197, 107, 0.32), rgba(242, 154, 163, 0.22), rgba(146, 185, 141, 0.24));
  filter: blur(18px);
}

.hero-art-primary {
  top: 18px;
  right: 0;
  left: 0;
  z-index: 2;
}

.hero-art-secondary {
  right: 34px;
  bottom: 0;
  z-index: 1;
  width: 58%;
  transform: rotate(3deg);
}

.hero-art-secondary::before {
  background: linear-gradient(135deg, rgba(122, 174, 207, 0.32), rgba(135, 201, 177, 0.26), rgba(247, 197, 107, 0.18));
}

.hero-art img,
.work-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.16) contrast(1.12);
}

.hero-art figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  max-width: calc(100% - 56px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #614454;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.works {
  display: grid;
  gap: 28px;
  padding: 12px 0 42px;
}

.section-heading {
  max-width: 560px;
}

h2 {
  margin-bottom: 8px;
  color: #2c2030;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 26px;
  align-items: center;
  padding: 18px;
  scroll-margin-top: 96px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 247, 237, 0.28));
  box-shadow: 0 28px 76px rgba(126, 82, 92, 0.16);
  backdrop-filter: blur(12px);
}

.work-card-mine {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(238, 249, 244, 0.34)),
    linear-gradient(145deg, rgba(122, 174, 207, 0.12), rgba(247, 197, 107, 0.1));
}

.work-media {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 54px rgba(126, 82, 92, 0.16);
}

.work-media img {
  border-radius: 16px;
}

.work-content {
  padding: 8px 12px 8px 0;
}

.work-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.work-title img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(75, 48, 62, 0.18);
}

h3 {
  margin-bottom: 0;
  color: #2c2030;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.work-content p {
  margin-bottom: 22px;
  color: #6e536f;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #70485d;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(149, 91, 103, 0.12);
  font-size: 14px;
}

.work-card-mine .hero-tags span {
  color: #425f68;
}

.detail-button {
  width: fit-content;
  min-width: 118px;
  padding: 10px 18px;
}

.work-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.platform-button {
  gap: 8px;
}

.platform-button img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(75, 48, 62, 0.14);
}

.taptap-button {
  color: #1f6d72;
}

.appstore-button.is-disabled {
  cursor: default;
  color: rgba(81, 71, 84, 0.54);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.appstore-button.is-disabled:hover {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  transform: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: rgba(47, 38, 52, 0.62);
  font-size: 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(47, 38, 52, 0.9);
}

.about-main {
  display: grid;
  gap: 26px;
  padding-bottom: 42px;
}

.about-hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 34px 0 8px;
}

.about-copy,
.message-section {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 247, 237, 0.28));
  box-shadow: 0 28px 76px rgba(126, 82, 92, 0.16);
  backdrop-filter: blur(12px);
}

.about-copy {
  position: relative;
  max-width: 900px;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
}

.about-copy::after {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(122, 174, 207, 0.28), transparent 68%);
  pointer-events: none;
}

.about-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 62px);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bilibili-button {
  color: #2b7b92;
}

.gallery-section {
  display: grid;
  gap: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 26px 70px rgba(126, 82, 92, 0.16);
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 18px;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #614454;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.message-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
}

.message-note {
  margin-bottom: 0;
  color: #7a657c;
  font-size: 17px;
  line-height: 1.7;
}

.message-form {
  display: grid;
  gap: 14px;
}

.message-form textarea {
  width: 100%;
  min-height: 164px;
  resize: vertical;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 28px rgba(149, 91, 103, 0.1);
  font: inherit;
  line-height: 1.65;
  outline: none;
}

.message-form textarea:focus {
  border-color: rgba(242, 154, 163, 0.58);
  box-shadow: 0 0 0 4px rgba(242, 154, 163, 0.14);
}

.message-button:disabled {
  cursor: default;
  color: rgba(81, 71, 84, 0.54);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(38, 27, 42, 0.68);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: min(1120px, 100%);
  max-height: min(86vh, 900px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 58px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 34px 100px rgba(20, 12, 24, 0.38);
  object-fit: contain;
}

.lightbox-caption {
  justify-self: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #4a384c;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(20, 12, 24, 0.22);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox-close:hover {
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -18px, 0) scale(1.08);
  }
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-top: 50px;
  }

  .hero-stack {
    min-height: 510px;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-content {
    padding: 2px 6px 8px;
  }

  .message-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 66px;
    padding-bottom: 52px;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .hero-stack {
    min-height: auto;
  }

  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 8px;
    border-radius: 22px;
  }

  .hero-art + .hero-art {
    margin-top: 18px;
  }

  .hero-art-secondary {
    transform: none;
  }

  .hero-art img,
  .work-media img {
    border-radius: 16px;
  }

  .hero-art figcaption {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }

  .work-card {
    gap: 18px;
    padding: 12px;
    border-radius: 22px;
  }

  .work-media {
    padding: 8px;
    border-radius: 20px;
  }

  .work-title {
    align-items: flex-start;
  }

  .work-title img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .work-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-button {
    width: 100%;
  }

  .appstore-button {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .about-hero {
    min-height: auto;
    padding: 30px 0 10px;
  }

  .about-copy,
  .message-section {
    border-radius: 22px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    padding: 8px;
    border-radius: 22px;
  }

  .gallery-card img {
    max-height: none;
    border-radius: 16px;
  }

  .message-section {
    padding: 22px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox img {
    max-height: calc(84vh - 54px);
    border-radius: 16px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .page-glow {
    width: 16rem;
    height: 16rem;
    opacity: 0.34;
  }

  .page-glow-a {
    left: -5rem;
  }

  .page-glow-b {
    right: -5rem;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 48px;
  }

  .work-link {
    width: 100%;
    font-size: 14px;
  }

  .hero-tags span {
    font-size: 13px;
  }

  h3 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
