/* 浮游Lev — 轻量静态站（无 Wix 运行时） */

:root {
  --km-side-black: 10px;
  --km-content: calc(100vw - 2 * var(--km-side-black));
  --km-gallery-inset: 80px;
  --km-gap: 23px;
  --km-radius: 6px;
  --km-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
  --km-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --fy-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --fy-stagger: 45ms;
}

@keyframes fy-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fy-drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fy-footer-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body.fy-site {
  margin: 0;
  font-family: var(--km-font);
  color: #111;
  background: #000;
  overflow-x: hidden;
  /* 允许竖滑；关掉双击缩放延迟 */
  touch-action: manipulation;
}

/* 全站常驻彩色光点（片头同款，80% 透明度） */
.fy-bg-float {
  position: fixed;
  inset: 0;
  z-index: 100005;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.22s ease;
}

/* 单图放大：光点沉到 lightbox 暗色遮罩下方，随背景一起变暗 */
body.fy-lightbox-open .fy-bg-float {
  z-index: 99990;
  opacity: 0.1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ── 顶栏 ── */
.fy-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100010;
  background: #000;
  pointer-events: none;
}

.fy-topbar-inner {
  width: var(--km-content);
  max-width: var(--km-content);
  margin: 0 auto;
  padding: 6px 16px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  pointer-events: auto;
  animation: fy-drop 0.52s var(--fy-ease) both;
}

.fy-topbar-logo {
  font-family: lulo-clean-w01-one-bold, Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.fy-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}

.fy-topbar-link {
  position: relative;
  font-family: poppins-black, poppins, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: #000;
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.fy-topbar-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -3px;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--fy-ease);
}

.fy-topbar-link:hover::after,
.fy-topbar-link.is-active::after {
  transform: scaleX(1);
}

.fy-topbar-link:hover,
.fy-topbar-link.is-active {
  opacity: 0.82;
}

/* ── 主栏（白底 + 黑边） ── */
.fy-shell {
  width: var(--km-content);
  max-width: var(--km-content);
  min-width: 0;
  margin: 0 auto;
  background: #fff;
  padding-top: 64px;
  min-height: 100vh;
}

.fy-main {
  width: 100%;
}

/* ── 首页 Hero ── */
.fy-hero {
  text-align: center;
  padding: 40px 24px 8px;
}

.fy-home:not(.fy-home-ready) .fy-avatar-link,
.fy-home:not(.fy-home-ready) .fy-hero-name,
.fy-home:not(.fy-home-ready) .fy-hero-sign,
.fy-home:not(.fy-home-ready) .fy-hero-line,
.fy-home:not(.fy-home-ready) .fy-gallery-section {
  opacity: 0;
}

.fy-home.fy-home-ready .fy-avatar-link {
  animation: fy-rise 0.55s var(--fy-ease) 0.06s both;
}

.fy-home.fy-home-ready .fy-hero-name {
  animation: fy-rise 0.55s var(--fy-ease) 0.14s both;
}

.fy-home.fy-home-ready .fy-hero-sign {
  animation: fy-rise 0.55s var(--fy-ease) 0.22s both;
}

.fy-home.fy-home-ready .fy-hero-line {
  animation: fy-rise 0.55s var(--fy-ease) 0.3s both;
}

.fy-home.fy-home-ready .fy-gallery-section {
  animation: fy-rise 0.6s var(--fy-ease) 0.38s both;
}

.fy-page-content > .fy-page-title {
  animation: fy-rise 0.52s var(--fy-ease) 0.08s both;
}

.fy-page-content > .fy-page-lead,
.fy-page-content > .fy-about-head {
  animation: fy-rise 0.52s var(--fy-ease) 0.16s both;
}

.fy-page-content > .fy-subtitle {
  animation: fy-rise 0.48s var(--fy-ease) 0.24s both;
}

.fy-avatar-link {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  border-radius: 4px;
  transition: opacity 0.2s var(--fy-ease), transform 0.2s var(--fy-ease);
}

.fy-avatar-link:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.fy-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.fy-hero-name {
  font-family: poppins-black, poppins, sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.fy-hero-name a {
  text-decoration: none;
  transition: opacity 0.2s ease, letter-spacing 0.25s ease;
}

.fy-hero-name a:hover {
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.fy-hero-sign {
  font-size: 16px;
  color: #333;
  margin: 0 0 16px;
  line-height: 1.5;
}

.fy-hero-line {
  border: 0;
  border-top: 2px dashed #ccc;
  width: min(365px, 80vw);
  margin: 0 auto 20px;
}

.fy-banners {
  margin-bottom: 8px;
  width: 100%;
  overflow: visible;
}

.profile-banners-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(6px, 1.2vw, 20px);
  width: 100%;
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: visible;
}

.profile-banners-row::-webkit-scrollbar {
  display: none;
}

.profile-banner {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.22s var(--fy-ease), opacity 0.22s ease;
}

.profile-banner--lead {
  flex: 1.08 1 0;
}

.profile-banner:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.profile-banner img {
  width: 100%;
  height: auto;
  max-height: clamp(72px, 9vw, 96px);
  -webkit-user-drag: none;
  user-select: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ── 画廊 ── */
.fy-gallery-section {
  padding: 24px var(--km-gallery-inset) 0;
}

.km-gallery-wrap {
  width: 100%;
}

.km-gallery-wrap--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* 允许竖滑交给页面；仅横向在画廊内滚动 */
  touch-action: pan-x pan-y;
}

.km-gallery-wrap--scroll::-webkit-scrollbar {
  display: none;
}

.km-gallery-wrap--loading {
  opacity: 0.92;
}

.km-gallery--mobile-scroll {
  /* 勿只用 pan-x：手指按在展示图上时竖滑会被浏览器丢掉 */
  touch-action: pan-x pan-y;
}

.km-gallery--mobile-scroll .km-gallery-item,
.km-gallery--mobile-scroll .km-gallery-item img {
  touch-action: pan-x pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.km-load-wrap--mobile-off {
  display: none;
}

.fy-gallery-scroll-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
  user-select: none;
}

.fy-gallery-scroll-hint[hidden] {
  display: none;
}

.fy-menu-toggle {
  display: none;
  margin-left: auto;
  margin-top: 8px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.28s var(--fy-ease), border-color 0.28s var(--fy-ease), transform 0.22s var(--fy-ease);
}

.fy-menu-toggle:active {
  transform: scale(0.96);
}

.fy-menu-toggle.is-open {
  background: #000;
  border-color: #000;
}

.fy-menu-toggle-icon {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}

.fy-menu-toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: transform 0.32s var(--fy-ease), opacity 0.22s ease, top 0.32s var(--fy-ease);
}

.fy-menu-toggle-icon span:nth-child(1) { top: 0; }
.fy-menu-toggle-icon span:nth-child(2) { top: 7px; }
.fy-menu-toggle-icon span:nth-child(3) { top: 14px; }

.fy-menu-toggle.is-open .fy-menu-toggle-icon span {
  background: #fff;
}

.fy-menu-toggle.is-open .fy-menu-toggle-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.fy-menu-toggle.is-open .fy-menu-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.fy-menu-toggle.is-open .fy-menu-toggle-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.fy-menu-backdrop {
  display: none;
}

.fy-menu-backdrop[hidden] {
  display: none !important;
}

.fy-drawer-head {
  display: none;
}

body.fy-menu-open {
  overflow: hidden;
}

body.fy-menu-open .fy-topbar {
  z-index: 100020;
}

.km-gallery {
  position: relative;
  width: 100%;
  min-height: 80px;
}

.km-gallery-item {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.22s var(--fy-ease), opacity 0.22s ease;
}

.km-gallery-item:hover {
  transform: translateY(-2px);
  z-index: 2;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.15);
}

.km-gallery-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s var(--fy-ease);
}

.km-gallery-item:hover img {
  transform: none;
}

.fy-motion-item {
  opacity: 0;
  transition: opacity 0.55s var(--fy-ease);
  transition-delay: calc(var(--fy-base, 0ms) + var(--fy-i, 0) * var(--fy-stagger));
}

.fy-motion-item.fy-in {
  opacity: 1;
}

.km-load-wrap {
  display: flex;
  justify-content: center;
  margin: 36px 0 48px;
}

.km-load-btn {
  appearance: none;
  border: 1px solid #000;
  border-radius: 14px;
  background: #fff;
  color: rgba(0, 0, 0, 0.9);
  font-family: futura-lt-w01-book, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 16px;
  padding: 10px 28px;
  cursor: pointer;
  transition: transform 0.22s var(--fy-ease), box-shadow 0.22s ease, background 0.2s ease;
}

.km-load-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.km-load-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.km-load-btn.hidden {
  display: none;
}

/* ── 子页内容区 ── */
.fy-page-content {
  padding: 32px clamp(24px, 6vw, 80px) 48px;
}

.fy-page-title {
  font-family: poppins-black, poppins, sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 14px;
}

.fy-page-lead {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 32px;
  max-width: 72ch;
}

.fy-page-lead a {
  color: #000;
  font-weight: 600;
}

.data-sync-note {
  margin: -20px 0 28px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
}

.fy-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.fy-work-item a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 100%;
  transition: background 0.22s ease, transform 0.22s var(--fy-ease), box-shadow 0.22s ease;
}

.fy-work-item a:hover {
  background: rgba(255, 222, 95, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.fy-work-item img {
  width: min(168px, 42%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.fy-work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fy-work-meta strong {
  font-size: 15px;
  line-height: 1.4;
}

.fy-work-meta small {
  color: #666;
  font-size: 13px;
}

.fy-more-link {
  margin-top: 24px;
  font-size: 15px;
  color: #333;
}

.fy-more-link a {
  font-weight: 600;
}

.fy-about-head {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.fy-about-avatar {
  width: min(200px, 28vw);
  border-radius: 8px;
  object-fit: cover;
}

.fy-name-en {
  font-size: 0.72em;
  font-weight: normal;
  color: #666;
}

.fy-about-sign {
  font-size: 16px;
  margin: 8px 0 16px;
  line-height: 1.6;
}

.fy-bili-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fb7299;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s var(--fy-ease), box-shadow 0.2s ease, opacity 0.2s ease;
}

.fy-bili-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251, 114, 153, 0.35);
}

.fy-subtitle {
  font-size: 20px;
  margin: 28px 0 14px;
}

.fy-about-picks {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.75;
  font-size: 16px;
  max-width: 72ch;
}

.fy-about-picks li + li {
  margin-top: 6px;
}

.fy-about-picks a {
  transition: color 0.2s ease, transform 0.2s var(--fy-ease);
  display: inline-block;
}

.fy-about-picks a:hover {
  color: #fb7299;
  transform: translateX(4px);
}

.fy-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.fy-portfolio-thumb {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--km-shadow);
  transition: transform 0.28s var(--fy-ease), box-shadow 0.28s ease;
}

.fy-portfolio-thumb:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 4px 8px 26px rgba(0, 0, 0, 0.2);
}

.fy-portfolio-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--fy-ease);
}

.fy-portfolio-thumb:hover img {
  transform: scale(1.06);
}

/* ── 页脚 LINK 栏 ── */
.fy-footer {
  background: #000;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
}

.fy-footer.fy-footer--in {
  animation: fy-footer-up 0.65s var(--fy-ease) both;
}

.link-band-inner {
  max-width: var(--km-content);
  margin: 0 auto;
  padding: 24px 24px 32px;
  text-align: center;
}

.page-updated {
  margin: 0;
  padding: 0 24px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.page-updated time {
  font-variant-numeric: tabular-nums;
}

.link-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.link-band-line {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 0 auto 16px;
  max-width: 420px;
}

.link-desc {
  font-size: 13px;
  line-height: 1.7;
  font-weight: normal;
  margin: 0 auto 20px;
  max-width: 640px;
}

.link-banners {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.link-banners::-webkit-scrollbar {
  display: none;
}

.link-banner {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.22s var(--fy-ease), opacity 0.22s ease;
  touch-action: pan-x pan-y;
}

.link-banner:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.link-banner img {
  width: 156px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
  display: block;
  touch-action: pan-x pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.site-copyright {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
}

.fy-kaya-corner {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.28;
  transition: opacity 0.35s ease, transform 0.25s ease, border-color 0.25s ease;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.fy-kaya-corner:hover,
.fy-kaya-corner:focus-visible {
  opacity: 0.88;
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.fy-kaya-corner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 主页左下角隐秘跳转头像（时雨） */
.fy-home .fy-kaya-corner {
  opacity: 0.05;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox.lightbox--open {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox--loading #lightbox-img {
  opacity: 0.85;
  filter: blur(1px);
}

#lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.28s ease, transform 0.32s var(--fy-ease);
}

#lightbox-img.lightbox-img--in {
  opacity: 1;
  transform: scale(1);
}

.lightbox-title {
  color: #fff;
  margin: 14px 0 0;
  font-size: 15px;
  text-align: center;
}

.lightbox-link {
  color: #fb7299;
  margin-top: 10px;
  font-size: 14px;
}

@media (max-width: 900px) {
  :root {
    --km-gallery-inset: 24px;
  }

  .fy-gallery-section {
    padding: 24px var(--km-gallery-inset) 0;
  }

  .profile-banners-row {
    gap: clamp(4px, 1vw, 12px);
    padding: 0 4px;
  }

  .link-banners {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .fy-topbar-inner {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 8px;
  }

  .fy-menu-toggle {
    display: flex;
    z-index: 100013;
  }

  .fy-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100011;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s var(--fy-ease), visibility 0.38s var(--fy-ease);
  }

  body.fy-menu-open .fy-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .fy-topbar-nav.fy-mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 48px;
    background: #000;
    color: #fff;
    z-index: 100012;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.44s var(--fy-ease);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    border: none;
    gap: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    touch-action: manipulation;
  }

  .fy-topbar-nav.fy-mobile-drawer.is-open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .fy-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0;
    transition: opacity 0.35s var(--fy-ease);
  }

  .fy-topbar-nav.is-open .fy-drawer-head {
    opacity: 1;
    transition-delay: 0.06s;
  }

  .fy-drawer-logo {
    font-family: lulo-clean-w01-one-bold, Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1;
    color: #ffffff;
  }

  .fy-drawer-close {
    flex-shrink: 0;
    margin-top: 4px;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    touch-action: manipulation;
    transition: opacity 0.2s ease, transform 0.2s var(--fy-ease);
  }

  .fy-drawer-close:hover,
  .fy-drawer-close:focus-visible {
    opacity: 0.85;
    transform: scale(1.06);
  }

  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    padding: 18px 24px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
    transition:
      opacity 0.38s var(--fy-ease),
      background 0.2s ease;
  }

  .fy-topbar-nav.fy-mobile-drawer.is-open .fy-topbar-link {
    opacity: 1;
    color: #ffffff;
  }

  .fy-topbar-nav.fy-mobile-drawer.is-open .fy-topbar-link:nth-of-type(1) { transition-delay: 0.1s; }
  .fy-topbar-nav.fy-mobile-drawer.is-open .fy-topbar-link:nth-of-type(2) { transition-delay: 0.14s; }
  .fy-topbar-nav.fy-mobile-drawer.is-open .fy-topbar-link:nth-of-type(3) { transition-delay: 0.18s; }
  .fy-topbar-nav.fy-mobile-drawer.is-open .fy-topbar-link:nth-of-type(4) { transition-delay: 0.22s; }

  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link::after {
    display: none;
  }

  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link:hover,
  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link:focus-visible,
  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link:active {
    opacity: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .fy-topbar-nav.fy-mobile-drawer .fy-topbar-link.is-active {
    opacity: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
  }

  .fy-shell {
    padding-top: 68px;
  }

  .fy-page-content {
    padding: 28px 20px 40px;
  }

  .fy-page-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .fy-about-head {
    gap: 20px;
  }

  .fy-about-avatar {
    width: min(140px, 36vw);
  }

  .km-gallery-item:hover {
    transform: none;
    box-shadow: none;
  }

  .km-gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 780px) {
  .fy-work-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --km-gallery-inset: 8px;
  }

  .fy-gallery-section {
    padding: 12px var(--km-gallery-inset) 0;
  }

  .fy-hero {
    padding: 28px 14px 6px;
  }

  .fy-topbar-logo {
    font-size: 36px;
  }

  .fy-page-content {
    padding: 24px 16px 36px;
  }

  .fy-page-title {
    font-size: 24px;
  }

  .fy-page-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .fy-work-item a {
    padding: 10px 12px;
    gap: 12px;
  }

  .fy-work-item img {
    width: min(120px, 38%);
  }

  .link-band-inner {
    padding: 20px 16px 28px;
  }

  .profile-banner img {
    max-height: clamp(64px, 14vw, 84px);
  }

  .link-banner img {
    width: 132px;
    max-height: 84px;
    height: auto;
  }

  .fy-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  #lightbox-img {
    max-height: 70vh;
  }

  .fy-kaya-corner {
    width: 24px;
    height: 24px;
    left: 4px;
    bottom: 4px;
    opacity: 0.18;
  }

  .fy-home .fy-kaya-corner {
    opacity: 0.05;
  }

  .fy-kaya-corner:hover,
  .fy-kaya-corner:focus-visible {
    opacity: 0.75;
  }
}

/* ── 首页片头（白底） ── */
.fy-intro {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.fy-intro-playing {
  overflow: hidden;
}

.fy-intro-playing .fy-intro {
  opacity: 1;
}

.fy-intro__float,
.fy-intro__grain {
  position: absolute;
  inset: 0;
}

.fy-intro__float {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.fy-intro__grain {
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
}

.fy-intro__stage {
  position: relative;
  z-index: 2;
  text-align: center;
}

.fy-intro__stage::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(0, 0, 0, 0.04), transparent 70%);
  pointer-events: none;
}

.fy-intro__wrap {
  position: relative;
  display: inline-block;
  font-family: lulo-clean-w01-one-bold, Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: #111;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.06);
}

.fy-intro-playing .fy-intro__wrap {
  animation: fy-title-rack 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fy-intro__mark,
.fy-intro__rgb {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.fy-intro__rgb {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.fy-intro-playing .fy-intro__rgb--r {
  color: #d6456a;
  animation: fy-rgb-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.fy-intro-playing .fy-intro__rgb--c {
  color: #4e9cc8;
  animation: fy-rgb-in-alt 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.fy-intro__shine {
  position: absolute;
  top: -30%;
  left: 0;
  width: 28%;
  height: 160%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-140%) skewX(-18deg);
  mix-blend-mode: overlay;
}

.fy-intro-playing .fy-intro__shine {
  animation: fy-light-sweep 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.fy-intro__rule {
  display: block;
  height: 1px;
  width: 0;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, transparent, #111, transparent);
  opacity: 0.35;
}

.fy-intro-playing .fy-intro__rule {
  animation: fy-rule-draw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.fy-intro.is-done {
  opacity: 1;
  animation: fy-intro-out 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fy-intro.is-done .fy-intro__stage {
  animation: fy-intro-stage-out 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fy-intro.is-done .fy-intro__float,
.fy-intro.is-done .fy-intro__grain {
  animation: fy-intro-veil-out 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fy-home:not(.fy-home-ready) .fy-topbar-inner {
  animation: none;
  opacity: 0;
}

.fy-home.fy-home-ready .fy-topbar-inner {
  animation: fy-drop 0.52s var(--fy-ease) both;
}

@keyframes fy-title-rack {
  0% {
    opacity: 0;
    letter-spacing: 0.55em;
    filter: blur(16px);
    transform: scale(1.08);
  }
  62% {
    opacity: 1;
    filter: blur(1.4px);
    transform: scale(1.01);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.18em;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes fy-rgb-in {
  0% { opacity: 0.75; transform: translate(-11px, 1px); }
  70% { opacity: 0.32; transform: translate(-2px, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes fy-rgb-in-alt {
  0% { opacity: 0.75; transform: translate(11px, -1px); }
  70% { opacity: 0.32; transform: translate(2px, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes fy-light-sweep {
  from { transform: translateX(-140%) skewX(-18deg); }
  to { transform: translateX(420%) skewX(-18deg); }
}

@keyframes fy-rule-draw {
  from { width: 0; opacity: 0; }
  to { width: min(16rem, 68vw); opacity: 0.35; }
}

@keyframes fy-intro-out {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  55% {
    opacity: 0.55;
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    filter: blur(8px);
    visibility: hidden;
  }
}

@keyframes fy-intro-stage-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.08) translateY(-10px);
  }
}

@keyframes fy-intro-veil-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fy-motion-item {
    opacity: 1;
    transform: none;
  }

  .fy-footer {
    opacity: 1;
    transform: none;
  }

  .fy-bg-float {
    display: none !important;
  }

  body.fy-menu-open .fy-menu-backdrop,
  .fy-topbar-nav,
  .fy-topbar-link,
  .fy-drawer-head,
  .fy-menu-toggle-icon span {
    transition-duration: 0.01ms !important;
  }

  .fy-topbar-nav.is-open .fy-topbar-link,
  .fy-topbar-nav.is-open .fy-drawer-head {
    opacity: 1;
    transition-delay: 0ms !important;
  }

  .fy-intro {
    display: none;
  }

  .fy-home:not(.fy-home-ready) .fy-avatar-link,
  .fy-home:not(.fy-home-ready) .fy-hero-name,
  .fy-home:not(.fy-home-ready) .fy-hero-sign,
  .fy-home:not(.fy-home-ready) .fy-hero-line,
  .fy-home:not(.fy-home-ready) .fy-gallery-section,
  .fy-home:not(.fy-home-ready) .fy-topbar-inner {
    opacity: 1;
  }
}
