/* 自动生成：抽取自 src/styles/global.css（scripts/dev/admin-theme.mjs）。不要手改本文件——改站点源码。 */
:root{--font-display:"Noto Serif SC Variable", "Songti SC", "SimSun", ui-serif, serif;--font-accent:"Instrument Serif", "Noto Serif SC Variable", ui-serif, serif}
:root {
  color-scheme: dark;
  
  --bg: #6b5054;
  --bg-2: #123840;
  --fg: #fdf8ef;
  --muted: #e4d7c3;
  --accent: #ffb37c;
  --hairline: rgba(250, 243, 232, 0.16);

  --lg-tint: linear-gradient(
      115deg,
      rgba(255, 252, 245, 0.10),
      rgba(255, 252, 245, 0.03) 38%,
      rgba(255, 252, 245, 0) 60%
    ),
    rgba(20, 40, 48, 0.21);
  --lg-tint-lifted: linear-gradient(
      115deg,
      rgba(255, 252, 245, 0.16),
      rgba(255, 252, 245, 0.09) 38%,
      rgba(255, 252, 245, 0) 60%
    ),
    rgba(20, 40, 48, 0.27);
  --lg-edge: inset 0 1.5px 0.5px rgba(255, 250, 240, 0.26),
    inset 0 0 0 1px rgba(255, 250, 240, 0.08),
    inset 0 -1px 1px rgba(0, 0, 0, 0.18);
  --lg-shadow: 0 2px 10px rgba(4, 9, 11, 0.36), 0 14px 44px rgba(4, 9, 11, 0.5);
  
  --lg-shadow-2: var(--lg-shadow);
  --lg-shadow-3: var(--lg-shadow), 0 24px 64px rgba(4, 9, 11, 0.55);
  --solid-surface: rgba(18, 42, 50, 0.97);

  
  --press-scale: 0.95;
  
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  
  --reading-surface: rgba(10, 30, 38, 0.86);
  --reading-border: rgba(250, 243, 232, 0.14);

  
  --text-hero: clamp(2.7rem, 7vw, 5rem);
  --text-h1: clamp(1.9rem, 5vw, 2.8rem);
  --text-h2: clamp(1.8rem, 3.2vw, 2.4rem);
  --text-overline: 0.82rem;

  
  --mist: rgba(8, 24, 32, 0.5);

  
  --lg-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  
  --scene-fallback: linear-gradient(
    180deg,
    #0d1a24 0%,
    #16303a 26%,
    #4e5a5c 36%,
    #c97a4e 41%,
    #93554d 44%,
    #1f4550 50%,
    #17414b 64%,
    #6f6a52 72%,
    #a08a68 82%,
    #c2ab86 100%
  );
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0a1226;
  --bg-2: #16233f;
  --fg: #e6ecf7;
  --muted: #93a3c4;
  --accent: #a9c9ff;
  --hairline: rgba(226, 238, 255, 0.13);

  --lg-tint: linear-gradient(
      115deg,
      rgba(220, 235, 255, 0.09),
      rgba(220, 235, 255, 0.02) 38%,
      rgba(220, 235, 255, 0) 60%
    ),
    rgba(14, 24, 48, 0.2);
  --lg-tint-lifted: linear-gradient(
      115deg,
      rgba(220, 235, 255, 0.15),
      rgba(220, 235, 255, 0.08) 38%,
      rgba(220, 235, 255, 0) 60%
    ),
    rgba(14, 24, 48, 0.26);
  --lg-edge: inset 0 1.5px 0.5px rgba(220, 235, 255, 0.2),
    inset 0 0 0 1px rgba(220, 235, 255, 0.08),
    inset 0 -1px 1px rgba(0, 2, 10, 0.28);
  --lg-shadow: 0 2px 10px rgba(2, 6, 16, 0.4), 0 14px 44px rgba(2, 6, 16, 0.55);
  --lg-shadow-2: var(--lg-shadow);
  --lg-shadow-3: var(--lg-shadow), 0 24px 64px rgba(2, 6, 16, 0.6);
  --solid-surface: rgba(12, 20, 40, 0.97);

  --reading-surface: rgba(6, 14, 30, 0.86);
  --reading-border: rgba(226, 238, 255, 0.12);

  
  --scene-fallback: linear-gradient(
    180deg,
    #060b1c 0%,
    #0c1834 26%,
    #27406b 37%,
    #3d5a86 40%,
    #10223f 46%,
    #0b1c38 62%,
    #23283e 70%,
    #3a405a 82%,
    #494f68 100%
  );
}
:root[data-theme="light"],
:root[data-theme="auto"][data-scene-band="light"] {
  color-scheme: light;
  
  --bg: #57b8ac;
  --bg-2: #8fd0dd;
  --fg: #0e343c;
  --muted: #3f6b70;
  --accent: #b34a2a; 
  --hairline: rgba(14, 52, 60, 0.14);

  --lg-tint: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.12) 38%,
      rgba(255, 255, 255, 0) 60%
    ),
    rgba(255, 255, 255, 0.22);
  
  --lg-tint-lifted: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.46),
      rgba(255, 255, 255, 0.18) 38%,
      rgba(255, 255, 255, 0) 60%
    ),
    rgba(255, 255, 255, 0.28);
  --lg-edge: inset 0 1.5px 0.5px rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(44, 53, 48, 0.08);
  --lg-shadow: 0 2px 10px rgba(52, 64, 58, 0.1), 0 12px 36px rgba(52, 64, 58, 0.16);
  --lg-shadow-2: var(--lg-shadow);
  --lg-shadow-3: var(--lg-shadow), 0 24px 64px rgba(52, 64, 58, 0.2);
  --solid-surface: rgba(247, 248, 245, 0.97);

  --reading-surface: rgba(248, 250, 248, 0.94);
  --reading-border: rgba(14, 52, 60, 0.14);

  
  --scene-fallback: linear-gradient(
    180deg,
    #bfe2ea 0%,
    #d8eef0 26%,
    #f2f7f2 38%,
    #6fc2b6 44%,
    #4aa9a2 50%,
    #3c948f 64%,
    #d8c8a4 72%,
    #e9d9b7 84%,
    #efe0bf 100%
  );
}
:root[data-theme="dawn"],
:root[data-theme="auto"][data-scene-band="dawn"] {
  color-scheme: light;
  --bg: #c99a8b;
  --bg-2: #8f9db4;
  --fg: #33222b;
  --muted: #3f2a31;
  --accent: #a8433a;
  --hairline: rgba(51, 34, 43, 0.16);

  --lg-tint: linear-gradient(
      115deg,
      rgba(255, 244, 236, 0.42),
      rgba(255, 244, 236, 0.14) 38%,
      rgba(255, 244, 236, 0) 60%
    ),
    rgba(255, 244, 236, 0.24);
  --lg-tint-lifted: linear-gradient(
      115deg,
      rgba(255, 244, 236, 0.48),
      rgba(255, 244, 236, 0.2) 38%,
      rgba(255, 244, 236, 0) 60%
    ),
    rgba(255, 244, 236, 0.3);
  --lg-edge: inset 0 1.5px 0.5px rgba(255, 248, 240, 0.9),
    inset 0 0 0 1px rgba(255, 248, 240, 0.55),
    inset 0 -1px 1px rgba(51, 34, 43, 0.1);
  --lg-shadow: 0 2px 10px rgba(51, 34, 43, 0.14), 0 12px 36px rgba(51, 34, 43, 0.18);
  --lg-shadow-2: var(--lg-shadow);
  --lg-shadow-3: var(--lg-shadow), 0 24px 64px rgba(51, 34, 43, 0.22);
  --solid-surface: rgba(250, 242, 236, 0.97);

  --reading-surface: rgba(250, 244, 240, 0.94);
  --reading-border: rgba(51, 34, 43, 0.14);

  
  --scene-fallback: linear-gradient(
    180deg,
    #8f9db4 0%,
    #a391ab 22%,
    #dca88c 36%,
    #e8b99b 41%,
    #7e99a0 47%,
    #5f858d 60%,
    #567b83 70%,
    #c8ae97 78%,
    #e2cbae 90%,
    #ecd6ba 100%
  );
}
@media (prefers-reduced-motion: no-preference) {
  html[data-boot] body {
    animation: pagefade 700ms ease both;
  }
  @keyframes pagefade {
    from {
      opacity: 0;
    }
  }
}
:root[data-theme="light"] .sailboat,
:root[data-theme="auto"][data-scene-band="light"] .sailboat {
  --sail-color: rgba(250, 250, 248, 0.96);
  --sail-front: rgba(228, 236, 238, 0.95);
  --hull-color: rgba(24, 52, 58, 0.92);
}
:root[data-theme="light"] .gull path,
:root[data-theme="auto"][data-scene-band="light"] .gull path {
  stroke: rgba(28, 62, 68, 0.75);
}
:root[data-theme="night"] .gull path {
  stroke: rgba(175, 196, 220, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .gull-flock {
    display: none;
  }
}
:root[data-theme="night"] .frond-anchor {
  color: rgba(6, 14, 24, 0.92);
}
:root[data-theme="night"] .sailboat {
  --sail-color: rgba(225, 235, 250, 0.95);
  --sail-front: rgba(200, 215, 235, 0.92);
  --hull-color: rgba(10, 18, 32, 0.95);
}
:root[data-theme="light"] .frond-anchor,
:root[data-theme="auto"][data-scene-band="light"] .frond-anchor {
  color: rgba(16, 56, 50, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  .frond,
  .sailboat {
    animation: none;
  }
}
.lg {
  position: relative;
  border-radius: var(--lg-r, 24px);
  box-shadow: var(--lg-shadow);
}
.lg-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(165%);
  
  background-image: var(--lg-noise);
  background-size: 160px 160px;
}
@media (prefers-reduced-transparency: no-preference) {
  html[data-scrolling] [data-lg-refracted] .lg-filter {
    backdrop-filter: blur(14px) saturate(165%) !important;
  }
  html[data-scrolling] .reading-surface {
    backdrop-filter: blur(10px) saturate(120%) !important;
  }
  
  html[data-degrade] [data-lg-refracted] .lg-filter {
    backdrop-filter: blur(14px) saturate(165%) !important;
  }
}
.lg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: var(--lg-tint);
  box-shadow: var(--lg-edge);
  pointer-events: none;
}
.lg-specular {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  background: radial-gradient(
    170px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.17),
    rgba(255, 255, 255, 0) 62%
  );
}
.lg-breath {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.3;
  animation: breath 9s ease-in-out infinite alternate;
}
.lg-breath::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.09) 45%,
    rgba(255, 255, 255, 0.02) 70%,
    transparent
  );
  transform: translateX(0) skewX(-12deg);
  animation: sheen 9s ease-in-out infinite alternate;
  will-change: transform;
}
.lg:nth-of-type(even) .lg-breath,
.lg:nth-of-type(even) .lg-breath::before {
  animation-delay: -4.5s;
}
@keyframes breath {
  0% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.55;
  }
}
@keyframes sheen {
  0% {
    transform: translateX(-8%) skewX(-12deg);
  }
  100% {
    transform: translateX(240%) skewX(-12deg);
  }
}
@media (hover: hover) and (pointer: fine) {
  .lg:hover > .lg-specular {
    opacity: 1;
  }
}
.lg-content {
  position: relative;
  z-index: 3;
}
.glass-pop {
  border: 1px solid var(--hairline);
  background: var(--solid-surface);
  background-image: var(--lg-noise);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--lg-shadow-3);
}
:root { --dock-icon-opacity: 0.66; }
:root[data-theme="light"],
:root[data-theme="auto"][data-scene-band="light"] { --dock-icon-opacity: 0.82; }
:root[data-theme="dawn"],
:root[data-theme="auto"][data-scene-band="dawn"] { --dock-icon-opacity: 0.82; }
:root[data-theme="night"] { --dock-icon-opacity: 0.58; }
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 640ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.in > :nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in > :nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in > :nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in > :nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in > :nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in > :nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.in > :nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.in > :nth-child(n + 9) { transition-delay: 560ms; }
.link-grow {
  padding-bottom: 2px;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 260ms cubic-bezier(0.23, 1, 0.32, 1);
}
.link-grow:focus-visible {
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  .sun-track {
    transition: none;
  }
  
  .scroll-cue-dot {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .link-grow {
    transition: none;
  }
  .lg-breath,
  .lg-breath::before {
    animation: none;
  }
  .lg-specular {
    display: none;
  }
  button.lg,
  a.lg {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .lg-filter {
    backdrop-filter: none !important;
  }
  .lg-tint {
    background: var(--solid-surface) !important;
  }
  
  .reading-surface {
    background: var(--solid-surface) !important;
    backdrop-filter: none !important;
  }
  
  .glass-pop,
  .dock-item::after {
    backdrop-filter: none !important;
  }
  
  .chat-lightbox {
    backdrop-filter: none !important;
    background: var(--mist);
  }
}
@media (prefers-contrast: more) {
  .lg-tint {
    background: var(--solid-surface) !important;
    box-shadow: inset 0 0 0 2px var(--fg) !important;
  }
  
  .chat-bubble {
    background: var(--solid-surface) !important;
    box-shadow: inset 0 0 0 2px var(--fg) !important;
  }
  
  .reading-surface {
    background: var(--solid-surface) !important;
    box-shadow: inset 0 0 0 2px var(--fg), var(--lg-shadow) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; }
}
