:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #111318;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --dark: #111318;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html.restore-pending body {
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
}

html,
body {
  overflow-anchor: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

a,
img {
  -webkit-user-drag: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.burger-layer {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  pointer-events: none;
}

.burger-peek {
  position: absolute;
  right: clamp(-84px, -5.8vw, -40px);
  top: -4vh;
  width: clamp(560px, 64vw, 960px);
  height: min(116vh, 1120px);
  border: 0;
  filter: saturate(1.10) brightness(1.02) contrast(1.0);
  transform-origin: top center;
  will-change: transform;
  background: transparent;
  clip-path: inset(22% 24% 10% 24% round 28px);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .burger-layer { display: none; }
}

.burger-notes {
  position: absolute;
  right: calc(clamp(420px, 45vw, 900px) - 38px);
  top: calc(6vh + 76px);
  z-index: 26;
  width: 760px;
  height: 650px;
  pointer-events: none;
  transform-origin: top center;
}

.burger-notes-inner {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: top left;
}

.scrap-note {
  position: absolute;
  width: 178px;
  min-height: 205px;
  padding: 22px 17px 18px;
  border: 1px solid rgba(92, 78, 72, 0.12);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(48, 52, 62, 0.1), 0 1px 2px rgba(48, 52, 62, 0.06);
  color: #3d3a42;
}

.scrap-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.75), transparent 45%);
  pointer-events: none;
}

.photo-stack {
  position: absolute;
  left: 0;
  top: 20px;
  width: 178px;
  height: 205px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  will-change: transform, opacity;
}

.photo-sheet {
  inset: 0;
  width: 178px;
  min-height: 205px;
  background: #fffdf7;
  box-shadow: none;
  cursor: grab;
  opacity: 0.82;
  filter: blur(2.2px) saturate(0.9) brightness(1.04);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease,
    filter 260ms ease,
    opacity 260ms ease;
}

.photo-sheet.is-selected,
.photo-sheet.is-second {
  opacity: 1;
  filter: none;
}

.photo-sheet:not(.is-selected):not(.is-second):not(.is-third) {
  display: none;
}

.photo-sheet:nth-of-type(1) { z-index: 1; transform: rotate(-11deg) translate(-9px, 8px); }
.photo-sheet:nth-of-type(2) { z-index: 2; transform: rotate(-7deg) translate(-4px, 3px); }
.photo-sheet:nth-of-type(3) { z-index: 3; transform: rotate(-2deg) translate(1px, -2px); }
.photo-sheet:nth-of-type(4) { z-index: 4; transform: rotate(4deg) translate(7px, 2px); }
.photo-sheet:nth-of-type(5) { z-index: 5; transform: rotate(9deg) translate(12px, 7px); }

.photo-sheet.is-second {
  box-shadow: 0 2px 5px rgba(48, 52, 62, 0.06);
}

.photo-sheet.is-selected {
  z-index: 20;
  box-shadow: 0 6px 14px rgba(48, 52, 62, 0.1), 0 1px 2px rgba(48, 52, 62, 0.06);
}

.photo-sheet:hover { filter: brightness(1.04); }



.memo-stack {
  position: absolute;
  left: 170px;
  top: 62px;
  width: 178px;
  height: 205px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.memo-sheet {
  inset: 0;
  width: 178px;
  min-height: 205px;
  background: #fff5bd;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 100% 25px;
  cursor: grab;
  box-shadow: none;
}

.memo-sheet:nth-of-type(1) { z-index: 1; transform: rotate(8deg) translate(-8px, 5px); }
.memo-sheet:nth-of-type(2) { z-index: 2; transform: rotate(4deg) translate(-4px, 2px); }
.memo-sheet:nth-of-type(3) { z-index: 3; transform: rotate(0deg) translate(0, -2px); }
.memo-sheet:nth-of-type(4) { z-index: 4; transform: rotate(-4deg) translate(5px, 2px); }
.memo-sheet:nth-of-type(5) { z-index: 5; transform: rotate(-8deg) translate(9px, 6px); }

.memo-sheet.is-second {
  box-shadow: 0 2px 5px rgba(48, 52, 62, 0.06);
}

.memo-sheet.is-selected {
  z-index: 20;
  box-shadow: 0 6px 14px rgba(48, 52, 62, 0.1), 0 1px 2px rgba(48, 52, 62, 0.06);
}

.memo-sheet:not(.is-selected):not(.is-second):not(.is-third) {
  display: none;
}

.note-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  pointer-events: none;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff7c4, #f3b83e 45%, #b47716 100%);
  box-shadow: 0 3px 6px rgba(99, 67, 28, .38);
  z-index: 2;
}

.note-kicker {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #a198a7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.note-image {
  position: relative;
  z-index: 1;
  height: 110px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 73% 28%, rgba(255,255,255,.9) 0 8%, transparent 9%),
    linear-gradient(145deg, #ffd7e5, #d9ecff 46%, #fff1ba);
}

.scrap-note p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #948a87;
  font-size: 11px;
  line-height: 1.5;
}

.note-title {
  color: #5b514e !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.35 !important;
}

.note-lines {
  margin-top: 12px !important;
  font-size: 10px !important;
  color: #a89775 !important;
}

@media (max-width: 900px) {
  .burger-notes { display: none; }
}

.site-header,
.brand-name,
.site-nav,
.site-nav a,
.product-card,
.product-card h3,
.product-card p,
.product-cat,
.demo-card,
.usage-card,
.modal-panel {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease;
}

html.dark .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 20, 0.84);
}

html.dark #products,
html.dark #products .pin-stage {
  background: transparent !important;
}

html.dark .burger-peek {
  background: transparent !important;
}

html.dark .brand-name,
html.dark .site-nav a:hover {
  color: #f6f7fb;
}

html.dark .site-nav {
  color: #aab3c1;
}

html.dark .product-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #111722, #0a0f17);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.28);
  color: #f4f6fb;
}

html.dark .product-card::before {
  opacity: 0.22;
}

html.dark .product-card::after {
  opacity: 0.06;
}

html.dark .product-card h3 {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

html.dark .product-card p {
  color: rgba(245, 247, 252, 0.8);
}

html.dark .product-cat {
  color: rgba(245, 247, 252, 0.56);
}

html.dark .product-more {
  border-color: rgba(255, 255, 255, 0.24);
  background: #05070a;
  color: #ffffff;
}

html.dark .photo-sheet {
  border-color: rgba(255, 255, 255, 0.2);
  background: #293242;
  box-shadow: none;
}

html.dark .photo-sheet.is-selected,
html.dark .photo-sheet.is-second {
  background: #171d27;
}

html.dark .photo-sheet.is-second {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

html.dark .photo-sheet.is-selected {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.16);
}

html.dark .photo-sheet .note-kicker,
html.dark .photo-sheet p {
  color: rgba(238, 241, 247, 0.58);
}

html.dark .note-paper {
  border-color: rgba(255, 214, 99, 0.26);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32), 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.dark .demo-card,
html.dark .usage-card,
html.dark .modal-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: #131923;
}

html.dark .modal-panel {
  color: #f4f6fb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

html.dark .modal-panel h2 {
  color: #ffffff;
}

html.dark .modal-cat {
  color: rgba(238, 241, 247, 0.6);
}

html.dark .modal-desc {
  color: rgba(242, 245, 250, 0.84);
}

html.dark .feature-list li {
  color: rgba(242, 245, 250, 0.82);
}

html.dark .modal-note {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0d131d;
  color: rgba(238, 241, 247, 0.66);
}

html.dark .modal-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1a2230;
  color: #eef1f7;
}

html.dark .demo-viewer-image {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0d131d;
}

.theme-toggle {
  position: fixed;
  top: 62px;
  left: 50%;
  z-index: 60;
  width: 28px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-14px);
}

.theme-cord {
  position: absolute;
  top: 0;
  left: 13px;
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, #b9ab94, #8b7960);
  box-shadow: 0 1px 2px rgba(36, 28, 18, 0.18);
  transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-grip {
  position: absolute;
  left: 4px;
  top: 21px;
  width: 20px;
  height: 24px;
  border: 1px solid rgba(116, 89, 48, 0.35);
  border-radius: 7px;
  background: linear-gradient(145deg, #f1d49b, #c99a50);
  box-shadow: 0 5px 10px rgba(94, 66, 24, 0.28), inset 0 1px 0 rgba(255,255,255,.6);
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms ease,
    box-shadow .6s ease,
    background .6s ease;
}

.theme-toggle:hover .theme-cord,
.theme-toggle.is-open .theme-cord {
  height: 50px;
}

.theme-toggle:hover .theme-grip,
.theme-toggle.is-open .theme-grip {
  top: 47px;
}

.theme-toggle:hover .theme-grip,
.theme-toggle.is-open .theme-grip {
  transform: translateY(3px);
}

html.dark .theme-grip {
  background: linear-gradient(145deg, #f8d997, #b98237);
  box-shadow: 0 0 18px rgba(255, 190, 98, 0.32), 0 5px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,.65);
}

.theme-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 220;
  max-width: calc(100vw - 36px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.theme-hint[hidden] {
  display: none;
}

.theme-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.night-scene {
  position: fixed;
  inset: 0;
  z-index: 24;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

html.dark .night-scene {
  opacity: 1;
}

.night-beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 198deg at 92% 10%,
    transparent 0deg,
    rgba(255, 201, 126, 0.16) 7deg,
    rgba(255, 201, 126, 0.06) 24deg,
    transparent 42deg
  );
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.night-beam::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(215deg, rgba(255, 204, 128, 0.18), rgba(255, 204, 128, 0.07) 38%, transparent 72%);
  clip-path: polygon(100% 0, 91% 0, 0 100%, 18% 100%);
  filter: blur(24px);
  mix-blend-mode: screen;
}

.night-beam::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 25%;
  background: radial-gradient(ellipse at 100% 0, rgba(255, 214, 150, 0.14), transparent 70%);
  filter: blur(10px);
}

.night-moon {
  position: fixed;
  top: 8vh;
  right: 8vw;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(119, 82, 42, 0.2) 0 5%, transparent 6%),
    radial-gradient(circle at 58% 23%, rgba(119, 82, 42, 0.14) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 50%, rgba(105, 73, 38, 0.16) 0 6%, transparent 7%),
    radial-gradient(circle at 42% 64%, rgba(105, 73, 38, 0.12) 0 8%, transparent 9%),
    radial-gradient(circle at 27% 52%, rgba(255, 238, 181, 0.22) 0 4%, transparent 5%),
    radial-gradient(circle at 38% 34%, #fff0c5, #dfb777 52%, #9e7139 100%);
  box-shadow: 0 0 56px rgba(255, 208, 132, 0.2), 0 0 120px rgba(255, 184, 94, 0.08);
  filter: blur(2px);
  opacity: 0.24;
  will-change: transform;
}

.night-moon-glow {
  position: fixed;
  top: calc(8vh - 58px);
  right: calc(8vw - 58px);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 132, 0.2), rgba(255, 181, 91, 0.07) 45%, transparent 72%);
  filter: blur(20px);
  opacity: 0.55;
  will-change: transform;
}

.night-moon::before {
  display: none;
}

.night-moon::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 23px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #090d14;
  filter: blur(9px);
  opacity: 0.98;
}

@media (max-width: 900px) {
  .night-moon-glow {
    top: calc(14vh - 48px);
    right: calc(12vw - 48px);
    width: 174px;
    height: 174px;
  }
  .theme-toggle { top: 58px; }
  .night-moon { top: 14vh; right: 12vw; width: 64px; height: 64px; }
  .night-moon::after { width: 64px; height: 64px; top: -5px; left: 14px; }
  .night-beam { display: none; }
}

.page-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.page-scrollbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-scrollbar::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 5px;
  width: 4px;
  border-radius: 999px;
  background: rgba(111, 126, 160, 0.18);
}

.page-scroll-thumb {
  position: absolute;
  top: 0;
  right: 4px;
  width: 7px;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(105, 126, 255, 0.82), rgba(64, 197, 211, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 14px rgba(91, 108, 245, 0.28);
  cursor: grab;
  will-change: transform;
}

.page-scroll-thumb:active {
  cursor: grabbing;
  background: linear-gradient(180deg, #5b6cf5, #2cc0d0);
}

html {
  background: var(--bg);
  transition: background-color .6s ease;
}

html.dark {
  color-scheme: dark;
  --bg: #090d14;
  --panel: #131923;
  --text: #eef1f7;
  --muted: #9aa4b2;
  --line: #252d39;
  --line-strong: #374151;
  --dark: #f4f6fb;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.55;
  transition: background-color .6s ease, color .6s ease;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5c542;
  box-shadow: 0 2px 8px rgba(29, 29, 31, 0.12);
}

.brand-name {
  color: var(--dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5563;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: #f8f9fa;
}

.btn-dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #2b2d33;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: #fff;
  color: var(--dark);
}

.btn-light:hover {
  background: #f1f2f4;
}

.header-cta {
  padding: 9px 16px;
  font-size: 13px;
}

.hero {
  padding: clamp(200px, 36vh, 380px) 0 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.55);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 48px 0;
  scroll-margin-top: 90px;
}

#demos {
  padding-top: calc(48px + 5 * 1.55em);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-head.centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: calc(1.55em + 36px);
  margin-bottom: 22px;
  text-align: center;
}

.section-head.centered h2 {
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
}

#demos .section-head.centered .eyebrow {
  margin-top: calc(2 * 1.55em);
}

#demos .section-head.centered.reveal-ready {
  opacity: 0;
  transform: translateY(58px);
  will-change: transform, opacity;
}

#demos .section-head.centered.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: demos-rise 2800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes demos-rise {
  0% {
    opacity: 0;
    transform: translateY(58px);
  }
  46% {
    opacity: 1;
    transform: translateY(-18px);
  }
  74% {
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #demos .section-head.centered.reveal-ready {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.section-head.centered .section-note {
  max-width: 640px;
  text-align: center;
}

.section-note {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

#products {
  position: relative;
  --reveal: 480px;
  height: calc(100vh + var(--reveal));
  min-height: calc(620px + var(--reveal));
  --card-gap: 54px;
  --card-base: 129px;
  background: transparent;
}

.pin-stage {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: calc(100vh - 72px);
  padding: 24px 0 14px;
}

.products-intro {
  padding-bottom: 14px;
}

.products-intro .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.products-intro h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.products-heading {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 24px;
}

.products-heading h1 {
  flex: none;
}

.products-intro .hero-copy {
  max-width: 360px;
  margin: 0 0 12px;
  font-size: 15px;
}

.marquee {
  width: 100%;
  padding: 4px 0 8px;
  overflow: hidden;
  transform: translateY(var(--card-base, 0px));
  will-change: transform;
}

.marquee-track {
  display: flex;
  flex: none;
  width: max-content;
  margin-left: var(--track-offset, 0px);
  gap: 0;
  animation: marquee 80s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.marquee.is-auto .marquee-track {
  animation-play-state: running;
}

.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: var(--card-gap, 16px);
  padding-right: var(--card-gap, 16px);
  transition: gap 180ms ease-out;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #products { height: auto; min-height: 0; --reveal: 0px; }
  .pin-stage { position: static; height: auto; }
  .marquee { transform: none; }
  .marquee-group { transition: none; }
  .marquee-track { animation: none; }
}

.product-card {
  position: relative;
  top: var(--stagger, 0px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: clamp(280px, 21.2vw, 360px);
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -3px 0 rgba(255, 255, 255, 0.94),
    inset 0 0 42px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  color: #111318;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, filter 200ms ease, opacity 200ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 94%, color-mix(in srgb, var(--accent, #5b5bd6) 62%, transparent) 0 18%, transparent 58%),
    radial-gradient(circle at 84% 88%, color-mix(in srgb, var(--accent, #5b5bd6) 42%, white) 0 16%, transparent 54%),
    radial-gradient(circle at 52% 58%, color-mix(in srgb, var(--accent, #5b5bd6) 22%, white) 0 22%, transparent 60%),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.86) 0 12%, transparent 44%);
  filter: blur(30px) saturate(175%) brightness(1.3);
  opacity: 0.62;
  pointer-events: none;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(
      60deg,
      transparent 0%,
      transparent 29%,
      rgba(255, 255, 255, 0.3) 35%,
      transparent 46%
    ),
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.44) 0%,
      rgba(255, 255, 255, 0.04) 36%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    radial-gradient(ellipse at 50% 112%, rgba(255, 255, 255, 0.58), transparent 38%),
    radial-gradient(ellipse at 72% 0%, rgba(255, 255, 255, 0.34), transparent 36%);
  pointer-events: none;
}

.product-card > * {
  position: relative;
  z-index: 2;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.marquee .product-card:hover,
.marquee .product-card:focus-visible {
  filter: none;
  opacity: 1;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  background: #ffffff;
  backdrop-filter: blur(8px);
  flex: none;
  transition: transform 180ms ease;
}

.product-icon img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.product-card:hover .product-icon {
  transform: scale(1.1);
}

.product-cat {
  margin-top: 0;
  color: rgba(17, 19, 24, 0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.product-card h3 {
  margin: 0;
  color: #111318;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.product-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(14px * 1.55 * 2);
  margin: 16px 0 0;
  color: rgba(17, 19, 24, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.product-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid #111318;
  border-radius: 999px;
  background: #111318;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-card:hover .product-more,
.product-card:focus-visible .product-more {
  background: #000000;
}

.product-card:hover .product-more,
.product-card:focus-visible .product-more {
  opacity: 1;
  transform: translateY(0);
}

.collection-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.demo-placeholder {
  height: clamp(200px, 16vw, 240px);
  margin-top: 14px;
}

.demo-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.demo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.demo-card:hover img {
  transform: scale(1.03);
}

.demo-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 20px 18px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}

.demo-overlay strong {
  display: block;
  font-size: 17px;
}

.demo-overlay small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.demo-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
}

.usage-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  padding: 42px;
  border-radius: 30px;
  background: #111318;
  color: #fff;
}

.usage-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.usage-copy p {
  margin: 0 0 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.steps li > span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps strong {
  display: block;
  font-size: 14px;
}

.steps p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.support-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter.active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
}

.text-link:hover {
  color: var(--text);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.supporter {
  display: flex;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfc;
}

.supporter.hidden {
  display: none;
}

.supporter img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}

.supporter-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supporter-name strong {
  font-size: 14px;
}

.platform {
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.supporter p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-note {
  margin: 18px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.site-footer {
  padding: 30px 0 42px;
  color: #9ca3af;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0.42);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 54px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  background: #ffffff;
  flex: none;
}

.modal-icon img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.modal-panel h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.modal-cat {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.demo-viewer .eyebrow {
  margin-bottom: 8px;
}

.demo-viewer-image {
  display: block;
  width: 100%;
  max-height: 64vh;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  object-fit: contain;
  background: #f5f6f8;
}

.modal-desc {
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 15px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #374151;
  font-size: 14px;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #111318);
  flex: none;
}

.modal-note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 26px, 1180px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding: clamp(120px, 24vh, 220px) 0 30px;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 8px;
    text-align: left;
  }

  #products { --reveal: 360px; --card-base: 110px; height: calc(100vh + var(--reveal)); min-height: calc(540px + var(--reveal)); }
  .pin-stage { top: 62px; height: calc(100vh - 62px); padding: 24px 0 14px; }
  .products-intro { padding-bottom: 12px; }

  .product-card {
    width: 260px;
    min-height: 260px;
    padding: 20px;
  }

  .product-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .product-icon img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .product-card h3 {
    font-size: 22px;
  }

  .product-card p {
    font-size: 13px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .support-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .usage-card {
    padding: 26px;
    border-radius: 24px;
  }

  .modal-panel {
    padding: 26px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .product-card,
  .product-icon,
  .demo-card img {
    transition: none;
  }
}


/* 进入产品体验时的退场动画 */
body.leaving-to-experience {
  overflow: hidden;
}

body.leaving-to-experience .site-header,
body.leaving-to-experience main {
  transform: translateY(-16vh) scale(0.94);
  opacity: 0;
  filter: blur(10px);
  transition:
    transform 560ms cubic-bezier(0.72, 0, 0.24, 1),
    opacity 380ms ease,
    filter 520ms ease;
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  body.leaving-to-experience .site-header,
  body.leaving-to-experience main {
    transition: none;
  }
}

@media (max-width: 900px) {
  .products-heading {
    display: block;
    padding-bottom: 14px;
  }

  .products-intro .hero-copy {
    max-width: 100%;
    margin: 10px 0 0;
    font-size: 14px;
    transform: none;
  }
}


.photo-sheet:nth-of-type(1) .note-image {
  background: linear-gradient(145deg, #ffd9e6, #d9ecff 46%, #fff1ba);
}
.photo-sheet:nth-of-type(2) .note-image {
  background: linear-gradient(145deg, #d9f5ff, #dfe3ff 48%, #ffe1ef);
}
.photo-sheet:nth-of-type(3) .note-image {
  background: linear-gradient(145deg, #e6e1ff, #d8f4e7 50%, #fff0c7);
}
.photo-sheet:nth-of-type(4) .note-image {
  background: linear-gradient(145deg, #ffe2c7, #ffeaf0 48%, #dce8ff);
}
.photo-sheet:nth-of-type(5) .note-image {
  background: linear-gradient(145deg, #d8f1ff, #e3ddff 48%, #ffe8cc);
}

/* 手机端保留汉堡、照片和便签，放在产品区上方 */
@media (max-width: 900px) {
  #products {
    padding-top: 300px;
  }

  .burger-notes {
    display: block;
    top: 80px;
    left: 50%;
    right: auto;
    width: 700px;
    height: 430px;
    transform: translateX(-50%);
    z-index: 26;
  }

  .burger-notes-inner {
    width: 360px;
    height: 260px;
    transform: scale(1.45);
    transform-origin: top left;
  }

  .photo-stack {
    top: 14px;
    left: 0;
  }

  .memo-stack {
    top: 44px;
    left: 170px;
  }

  .burger-layer {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 820px;
    z-index: 25;
  }

  .burger-peek {
    position: absolute;
    display: block;
    top: 310px;
    left: 50%;
    right: auto;
    margin-left: -380px;
    width: 760px;
    height: 760px;
    pointer-events: auto;
    z-index: 25;
  }
}

/* 手机竖屏：取消钉住滚动，产品改为横向滑动卡片 */
@media (max-width: 900px) {
  html {
    zoom: 0.5;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .wrap {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .header-inner {
    position: relative;
    min-height: 62px;
    gap: 6px;
    padding: 10px 0 8px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .site-nav {
    position: absolute;
    top: 9px;
    right: 120px;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.4;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .theme-toggle {
    top: 6px;
    right: 44px;
    left: auto !important;
    width: 76px;
    height: 92px;
    transform: none;
    z-index: 70;
  }

  .theme-cord {
    left: 37px;
    height: 14px;
  }

  .theme-grip {
    top: 10px;
    left: 26px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .theme-toggle:hover .theme-cord,
  .theme-toggle.is-open .theme-cord {
    height: 14px;
  }

  .theme-toggle:hover .theme-grip,
  .theme-toggle.is-open .theme-grip {
    top: 10px;
  }

  .theme-toggle.is-pulled .theme-cord {
    height: 26px;
  }

  .theme-toggle.is-pulled .theme-grip {
    top: 21px;
  }

  .theme-hint {
    top: 99vh;
    bottom: auto;
    max-width: calc(100vw - 40px);
    padding: 16px 24px;
    border-color: rgba(17, 19, 24, 0.1);
    background: #fff;
    color: #111318;
    font-size: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
    transform: translate(-50%, -50%);
  }

  .theme-hint.is-visible {
    transform: translate(-50%, -50%);
  }

  .site-footer {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #products {
    height: auto;
    min-height: 0;
    padding: 900px 0 6px;
    --reveal: 0px;
  }

  .pin-stage {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .products-intro,
  .products-intro h1,
  .products-intro .eyebrow {
    transform: none !important;
  }

  .products-intro {
    padding-bottom: 12px;
  }

  .products-intro .eyebrow {
    margin-bottom: 6px;
  }

  .products-heading {
    display: block;
    padding-bottom: 12px;
  }

  .products-intro h1 {
    font-size: clamp(44px, 13.5vw, 60px);
    line-height: 0.98;
  }

  .products-intro .hero-copy {
    max-width: 100%;
    margin: 10px 0 0;
    font-size: 14px;
  }

  .marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 14px 22px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none !important;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
  }

  .marquee.is-autoing,
  .marquee.is-dragging {
    scroll-snap-type: none;
  }

  .marquee.is-dragging {
    cursor: grabbing;
  }

  .marquee::-webkit-scrollbar {
    display: none;
  }

  .marquee-track {
    margin-left: 0 !important;
    animation: none !important;
    transform: none !important;
  }

  .marquee-group {
    gap: 12px !important;
    padding-right: 0;
  }

  .marquee-group[aria-hidden="true"] {
    display: flex;
  }

  .marquee .product-card {
    top: 0 !important;
    width: min(78vw, 330px);
    min-height: 300px;
    padding: 20px;
    border-radius: 28px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .product-icon,
  .product-icon img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .product-card h3 {
    font-size: 23px;
  }

  .product-card p {
    margin-top: 12px;
    font-size: 13px;
  }

  .product-more {
    align-self: flex-start;
    margin-top: auto;
    opacity: 1;
    transform: none;
  }

  .marquee .product-card:hover,
  .marquee .product-card:focus-visible {
    transform: none;
  }

  #demos {
    padding: 28px 0 18px;
  }

  #demos .section-head {
    padding-bottom: 16px;
  }

  #demos .section-head.centered {
    gap: 2px;
    padding-top: 0;
    margin-bottom: 16px;
  }

  #demos .section-head.centered .eyebrow {
    margin-top: 0;
    margin-bottom: 2px;
  }

  #demos h2 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .section-note {
    margin-top: 8px;
    font-size: 13px;
  }

  .demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .demo-card img,
  .demo-overlay {
    border-radius: 14px;
  }

  .demo-card img {
    aspect-ratio: 16 / 9;
  }

  .demo-overlay {
    gap: 4px;
    padding: 18px 8px 7px;
  }

  .demo-overlay strong {
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-overlay small {
    display: none;
  }

  .demo-play {
    width: 20px;
    height: 20px;
    font-size: 8px;
    flex: none;
  }

  .demo-placeholder {
    height: 70px;
    margin-top: 10px;
  }

  .page-scrollbar {
    display: none;
  }
}


@media (min-width: 901px) {
  .products-intro {
    transform: translateY(38px);
  }

  .marquee {
    transform: translateY(calc(var(--card-base, 0px) + 38px));
  }
}


/* iOS/Safari: WebGL iframe clipping and compositing fallbacks */
html.ios .burger-peek {
  -webkit-clip-path: inset(12% 18% 0 18%);
  clip-path: inset(12% 18% 0 18%);
  filter: none;
  will-change: auto;
}

html.ios .burger-layer {
  isolation: isolate;
}


/* Android WeChat WebView: keep the lower bun inside the visible clipping area */
html.wechat .burger-peek {
  -webkit-clip-path: inset(12% 18% 0 18%);
  clip-path: inset(12% 18% 0 18%);
  filter: none;
}

html.wechat .burger-layer {
  isolation: isolate;
}


/* Mobile/tablet and narrow desktop: only the photo/memo group remains. */
@media (max-width: 1180px) {
  .burger-layer,
  .burger-peek {
    display: none !important;
  }
}


@media (max-width: 1180px) {
  .burger-notes {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 12px auto 0 !important;
  }

  #products {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 6px !important;
    --reveal: 0px;
  }

  .pin-stage {
    position: relative !important;
    top: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .products-intro,
  .products-intro h1,
  .products-intro .eyebrow {
    transform: none !important;
  }

  .marquee {
    transform: none !important;
  }
}


/* Mobile clients stay photo-only even when the browser requests a desktop-width viewport. */
html.mobile-client .burger-layer,
html.mobile-client .burger-peek {
  display: none !important;
}

html.mobile-client .burger-notes {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 12px auto 0 !important;
}

html.mobile-client #products {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 6px !important;
  --reveal: 0px;
}

html.mobile-client .pin-stage {
  position: relative !important;
  top: auto !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html.mobile-client .products-intro,
html.mobile-client .products-intro h1,
html.mobile-client .products-intro .eyebrow {
  transform: none !important;
}

html.mobile-client .marquee {
  transform: none !important;
}


@media (pointer: coarse) {
  .burger-layer,
  .burger-peek {
    display: none !important;
  }

  .burger-notes {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 12px auto 0 !important;
  }

  #products {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 6px !important;
    --reveal: 0px;
  }

  .pin-stage {
    position: relative !important;
    top: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .products-intro,
  .products-intro h1,
  .products-intro .eyebrow {
    transform: none !important;
  }

  .marquee {
    transform: none !important;
  }
}


@media (max-width: 1180px) {
  .burger-notes {
    height: auto !important;
    aspect-ratio: 348 / 290;
  }
}

html.mobile-client .burger-notes {
  height: auto !important;
  aspect-ratio: 348 / 290;
}

@media (pointer: coarse) {
  .burger-notes {
    height: auto !important;
    aspect-ratio: 348 / 290;
  }
}


html,
body {
  overscroll-behavior-y: none;
}

.catalog-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.catalog-entry small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.catalog-entry:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel);
}

html.dark .catalog-entry {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 27, 38, 0.82);
  color: #eef1f7;
}

.experience-entry {
  padding: 26px 0 8px;
}

.experience-entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 201, 87, 0.22), transparent 34%),
    color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  color: var(--text);
  overflow: hidden;
}

.experience-kicker {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.experience-entry-card strong {
  grid-column: 1;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.experience-entry-card small {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}

.experience-entry-card i {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111318;
  color: #fff;
  font-style: normal;
  font-size: 24px;
}

html.dark .experience-entry-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 201, 87, 0.16), transparent 34%),
    rgba(20, 27, 38, 0.84);
  color: #eef1f7;
}

@media (max-width: 900px) {
  .experience-entry {
    padding: 18px 0 4px;
  }

  .experience-entry-card {
    padding: 20px;
    border-radius: 20px;
  }

  .experience-entry-card strong {
    font-size: 24px;
  }
}

.modal-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}


a,
button,
.experience-entry-card,
.catalog-entry {
  -webkit-tap-highlight-color: transparent;
}

.experience-entry-card {
  outline: none;
}

.experience-entry-card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #f5c451) 55%, transparent), 0 18px 50px rgba(15, 23, 42, 0.07);
}

#top {
  overscroll-behavior-y: none;
}


@media (max-width: 1180px), (pointer: coarse) {
  .experience-entry {
    display: flex;
    align-items: center;
    min-height: 260px;
  }

  .experience-entry-card {
    width: 100%;
  }

  .products-intro {
    text-align: center;
  }

  .products-intro .products-heading {
    justify-content: center;
  }

  .products-intro h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 900px) {
  .experience-entry {
    min-height: 1000px;
  }
}


/* Homepage product directory */
.home-catalog {
  padding: 64px 0 18px;
}

.home-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.home-catalog-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-catalog-head a {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.home-catalog-head a:hover {
  color: var(--text);
}

.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
}

.home-catalog-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.home-catalog-item img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.home-catalog-item strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-catalog-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.home-catalog-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .home-catalog {
    padding: 38px 0 12px;
  }

  .home-catalog-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-catalog-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-catalog-item {
    padding: 15px 0;
  }
}

/* Demo coverflow */
#demo-grid.demo-carousel {
  position: relative;
  display: block;
  height: clamp(280px, 39vw, 470px);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1200px;
}

.demo-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62%, 660px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.76);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms ease, filter 520ms ease;
}

.demo-slide.is-prev {
  z-index: 1;
  opacity: 0.62;
  filter: saturate(0.7);
  transform: translate(calc(-50% - 68%), -50%) scale(0.76) rotateY(13deg);
}

.demo-slide.is-next {
  z-index: 1;
  opacity: 0.62;
  filter: saturate(0.7);
  transform: translate(calc(-50% + 68%), -50%) scale(0.76) rotateY(-13deg);
}

.demo-slide.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
  cursor: zoom-in;
}

.demo-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  background: #f3f4f6;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
}

.demo-slide-copy {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 4px 2px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(transparent, rgba(10, 15, 22, 0.58));
  color: #fff;
  text-align: left;
}

.demo-slide-copy strong {
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.03em;
}

.demo-slide-copy small {
  max-width: 44%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-slide.is-prev .demo-slide-copy,
.demo-slide.is-next .demo-slide-copy {
  opacity: 0.35;
}

@media (max-width: 760px) {
  #demo-grid.demo-carousel {
    height: 245px;
  }

  .demo-slide {
    width: min(74%, 340px);
  }

  .demo-slide.is-prev {
    transform: translate(calc(-50% - 72%), -50%) scale(0.66) rotateY(10deg);
  }

  .demo-slide.is-next {
    transform: translate(calc(-50% + 72%), -50%) scale(0.66) rotateY(-10deg);
  }

  .demo-slide img {
    border-radius: 15px;
  }

  .demo-slide-copy {
    right: 11px;
    bottom: 8px;
    left: 11px;
    padding: 16px 2px 3px;
  }

  .demo-slide-copy strong {
    font-size: 17px;
  }

  .demo-slide-copy small {
    display: none;
  }
}


/* Desktop separation between pinned product cards and homepage catalog */
@media (min-width: 901px) {
  .home-catalog {
    padding-top: 200px;
    scroll-margin-top: 150px;
  }
}

/* Compact experience entry: demos -> CTA -> footer */
.experience-entry {
  min-height: 0 !important;
  padding: 16px 0 8px !important;
}

/* Demo coverflow transition */
#demo-grid.demo-carousel {
  transform-style: preserve-3d;
}

#demo-grid.demo-carousel.is-switching {
  animation: demo-stage-turn 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-slide.is-active {
  animation: demo-center-in 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes demo-stage-turn {
  0% { transform: rotateY(0deg) scale(1); }
  42% { transform: rotateY(-7deg) scale(0.985); }
  100% { transform: rotateY(0deg) scale(1); }
}

@keyframes demo-center-in {
  from { opacity: 0.45; transform: translate(-50%, -50%) scale(0.82) rotateY(-10deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateY(0deg); }
}


.demo-slide {
  overflow: hidden;
  border-radius: 20px;
}

.demo-slide-copy {
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 0 0 20px 20px;
  padding: 30px 20px 16px;
}

@media (max-width: 760px) {
  .demo-slide {
    border-radius: 15px;
  }

  .demo-slide-copy {
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0 0 15px 15px;
    padding: 24px 13px 11px;
  }
}


@media (max-width: 900px) {
  .site-nav .nav-discover {
    display: none;
  }
}


@media (max-width: 900px) {
  .site-nav {
    top: 50%;
    transform: translateY(-50%);
  }
}


@media (max-width: 900px) {
  .night-moon-glow {
    display: none !important;
  }

  .night-moon {
    position: fixed !important;
    top: 14vh !important;
    right: 12vw !important;
    transform: none !important;
    will-change: auto;
    filter: none;
  }
}


/* 照片与便签统一角度，后方卡片作为淡影子 */
.photo-sheet:nth-of-type(n),
.memo-sheet:nth-of-type(n) {
  transform: rotate(-2.5deg);
}

.photo-sheet.is-second,
.memo-sheet.is-second {
  transform: rotate(-1deg) translate(8px, 5px) scale(0.98);
  opacity: 0.34;
  filter: blur(0.7px) saturate(0.8);
  box-shadow: 0 8px 18px rgba(48, 52, 62, 0.07);
}

.photo-sheet.is-selected,
.memo-sheet.is-selected {
  transform: rotate(-2.5deg);
  opacity: 1;
  filter: none;
}

.photo-sheet.is-selected {
  box-shadow: 0 10px 22px rgba(48, 52, 62, 0.13), 0 2px 4px rgba(48, 52, 62, 0.06);
}

.memo-sheet.is-selected {
  box-shadow: 0 10px 22px rgba(48, 52, 62, 0.13), 0 2px 4px rgba(48, 52, 62, 0.06);
}


/* 让便签组与照片组拉开距离 */
.memo-stack {
  left: 198px;
}

@media (max-width: 900px) {
  .memo-stack {
    left: 198px;
  }
}


/* 照片组与便签组整体上移约两个字符高度 */
.photo-stack {
  top: -4px;
}

.memo-stack {
  top: 38px;
}

@media (max-width: 900px) {
  .photo-stack {
    top: -10px;
  }

  .memo-stack {
    top: 20px;
  }
}


/* 三层卡片：后两层只用颜色表示，不显示内容 */
.photo-sheet.is-second,
.photo-sheet.is-third,
.memo-sheet.is-second,
.memo-sheet.is-third {
  opacity: 1;
  filter: none;
}

.photo-sheet.is-second > *,
.photo-sheet.is-third > *,
.memo-sheet.is-second > *,
.memo-sheet.is-third > * {
  visibility: hidden;
}

.photo-sheet.is-second,
.memo-sheet.is-second {
  z-index: 19;
  transform: rotate(-1deg) translate(8px, 5px) scale(0.98);
  box-shadow: 0 8px 18px rgba(48, 52, 62, 0.08);
}

.photo-sheet.is-third,
.memo-sheet.is-third {
  z-index: 18;
  transform: rotate(0.5deg) translate(16px, 10px) scale(0.96);
  box-shadow: 0 10px 22px rgba(48, 52, 62, 0.1);
}

.photo-sheet.is-second {
  background: #d7dae0;
  background-image: none;
}

.photo-sheet.is-third {
  background: #a8afb9;
  background-image: none;
}

.memo-sheet.is-second {
  background: #f2df8e;
  background-image: none;
}

.memo-sheet.is-third {
  background: #d7b33f;
  background-image: none;
}

html.dark .photo-sheet.is-second {
  background: #d7dae0;
}

html.dark .photo-sheet.is-third {
  background: #e6e9ee;
}

html.dark .memo-sheet.is-second {
  background: #f2df8e;
}

html.dark .memo-sheet.is-third {
  background: #ffe58f;
}


/* 手机端照片组/便签组下移并左移 */
@media (max-width: 900px) {
  .photo-stack {
    top: 14px;
    left: -24px;
  }

  .memo-stack {
    top: 44px;
    left: 174px;
  }
}

/* 照片组背后两层：浅色依次加黑，深色依次加白 */
.photo-sheet.is-second {
  background: #cccccc;
}

.photo-sheet.is-third {
  background: #999999;
}

html.dark .photo-sheet.is-second {
  background: #333333;
}

html.dark .photo-sheet.is-third {
  background: #666666;
}


/* 手机端两组再向右移动一个字符 */
@media (max-width: 900px) {
  .photo-stack {
    left: -12px;
  }

  .memo-stack {
    left: 186px;
  }
}

/* 照片组浅色：白色依次加 10% 黑 */
.photo-sheet.is-second {
  background: #e6e6e6;
}

.photo-sheet.is-third {
  background: #cccccc;
}


/* 手机首页产品目录：去掉右侧留白，放大标题和列表 */
@media (max-width: 900px) {
  .home-catalog {
    padding: 44px 0 16px;
  }

  .home-catalog-head h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .home-catalog-item {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 0;
  }

  .home-catalog-item img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .home-catalog-item strong {
    font-size: 21px;
    line-height: 1.25;
  }

  .home-catalog-item small {
    margin-top: 4px;
    font-size: 12px;
  }

  .home-catalog-item p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
  }
}


/* 手机首页产品目录整块向右移动 5 个字符，右侧留出同等空间避免溢出 */
@media (max-width: 900px) {
  .home-catalog.wrap {
    width: calc(100% - 28px - 60px);
    margin-left: calc(14px + 60px);
    margin-right: 14px;
  }
}


/* 让左右半张卡片从画布内部开始，露出完整圆角 */
@media (min-width: 761px) {
  .demo-slide.is-prev {
    transform: translate(calc(-50% - 68% + 150px), -50%) scale(0.76) rotateY(13deg);
  }

  .demo-slide.is-next {
    transform: translate(calc(-50% + 68% - 150px), -50%) scale(0.76) rotateY(-13deg);
  }
}


/* 科技质感拉绳开关 */
.theme-toggle{
  filter: drop-shadow(0 4px 12px rgba(24, 76, 110, .14));
}
.theme-toggle::before{
  content:"";
  position:absolute;
  left:8px;
  top:-3px;
  width:12px;
  height:7px;
  border-radius:4px;
  background:linear-gradient(180deg,#e8fdff,#4f8199);
  box-shadow:0 0 7px rgba(88,226,255,.55), inset 0 1px 0 rgba(255,255,255,.9);
}
.theme-cord{
  left:13px;
  width:2px;
  border-radius:2px;
  background:
    repeating-linear-gradient(180deg, rgba(155,248,255,.95) 0 2px, rgba(58,124,255,.35) 2px 4px),
    linear-gradient(180deg,#a8f7ff,#2b80ff);
  box-shadow:
    0 0 7px rgba(74,225,255,.8),
    0 0 15px rgba(44,112,255,.26);
}
.theme-grip{
  left:5px;
  width:18px;
  height:26px;
  border-radius:12px;
  border:1px solid rgba(116,239,255,.62);
  background:
    radial-gradient(circle at 50% 24%, rgba(226,255,255,.92), transparent 19%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px),
    linear-gradient(145deg,#153048,#050b13 55%,#1b4d69);
  box-shadow:
    0 0 12px rgba(78,225,255,.52),
    0 6px 12px rgba(0,16,30,.36),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(190,252,255,.45);
}
.theme-grip::before{
  content:"";
  position:absolute;
  left:50%;
  top:6px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#a9fbff;
  box-shadow:0 0 8px #64eaff, 0 0 16px #2faeff;
  transform:translateX(-50%);
}
.theme-grip::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:5px;
  width:10px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,transparent,#67e8ff,transparent);
  transform:translateX(-50%);
  opacity:.82;
}
.theme-toggle:hover .theme-grip,
.theme-toggle.is-open .theme-grip{
  border-color:rgba(155,250,255,.9);
  box-shadow:
    0 0 18px rgba(78,225,255,.75),
    0 8px 16px rgba(0,16,30,.4),
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 0 1px 0 rgba(220,255,255,.6);
}
html.dark .theme-cord{
  background:
    repeating-linear-gradient(180deg, rgba(255,239,171,.95) 0 2px, rgba(255,139,62,.42) 2px 4px),
    linear-gradient(180deg,#ffe9a6,#ff9c48);
  box-shadow:0 0 7px rgba(255,205,93,.72), 0 0 15px rgba(255,132,46,.28);
}
html.dark .theme-grip{
  background:
    radial-gradient(circle at 50% 24%, rgba(255,250,222,.95), transparent 19%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px),
    linear-gradient(145deg,#3a2612,#090705 55%,#5a3518);
  border-color:rgba(255,207,113,.7);
  box-shadow:
    0 0 14px rgba(255,190,92,.5),
    0 6px 12px rgba(20,10,0,.42),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,239,190,.5);
}
html.dark .theme-grip::before{
  background:#fff0b0;
  box-shadow:0 0 8px #ffd166, 0 0 16px #ff9d3d;
}
html.dark .theme-grip::after{
  background:linear-gradient(90deg,transparent,#ffd166,transparent);
}
@media (max-width: 900px){
  .theme-toggle::before{ left:32px; top:2px; }
  .theme-cord{ left:37px; }
  .theme-grip{ left:26px; width:24px; height:24px; border-radius:12px; }
}


/* 简洁灯泡主题开关：浅色熄灭，深色点亮 */
.theme-toggle{
  top:62px;
  left:50%;
  width:36px;
  height:54px;
  transform:translateX(-18px);
  filter:drop-shadow(0 4px 10px rgba(20,55,80,.16));
  background:transparent;
}
.theme-toggle::before{ content:none !important; display:none !important; }
.theme-bulb{
  position:absolute;
  left:50%;
  top:0;
  width:28px;
  height:31px;
  transform:translateX(-50%);
  border-radius:50% 50% 43% 43%;
  border:1px solid rgba(146,171,188,.7);
  background:radial-gradient(circle at 35% 27%, rgba(255,255,255,.95), rgba(218,231,240,.7) 42%, rgba(165,188,204,.3) 100%);
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.theme-filament{
  position:absolute;
  left:50%;
  top:11px;
  width:9px;
  height:9px;
  transform:translateX(-50%);
  border:1.5px solid rgba(122,145,160,.8);
  border-radius:50%;
  transition:border-color .35s ease, box-shadow .35s ease;
}
.theme-cap{
  position:absolute;
  left:50%;
  top:27px;
  width:16px;
  height:11px;
  transform:translateX(-50%);
  border-radius:0 0 4px 4px;
  background:linear-gradient(180deg,#aab9c4,#667986 55%,#3d4d58);
  border:1px solid rgba(255,255,255,.35);
  transition:background .35s ease, border-color .35s ease;
}
.theme-toggle:hover .theme-bulb{ border-color:rgba(120,150,168,.95); }
html.dark .theme-bulb{
  border-color:rgba(255,224,140,.9);
  background:radial-gradient(circle at 50% 42%, #fffbd0 0%, #ffe68a 38%, #ffbc4b 72%, #d8861d 100%);
  box-shadow:0 0 16px rgba(255,194,82,.75), 0 0 34px rgba(255,157,43,.32);
}
html.dark .theme-filament{
  border-color:#fff3b0;
  box-shadow:0 0 7px #ffd45e;
}
html.dark .theme-cap{
  background:linear-gradient(180deg,#c7a25b,#7a5a24 60%,#3c2a0f);
  border-color:rgba(255,231,168,.55);
}
@media (max-width: 900px){
  .theme-toggle{
    top:10px;
    right:18px;
    left:auto !important;
    width:36px;
    height:54px;
    transform:none;
  }
}


/* 竖向拉闸式主题开关 */
.theme-toggle{
  top:62px;
  left:50%;
  width:44px;
  height:84px;
  transform:translateX(-22px);
  background:transparent;
  filter:drop-shadow(0 6px 14px rgba(16,48,70,.18));
}
.theme-switch-track{
  position:absolute;
  left:50%;
  top:0;
  width:12px;
  height:68px;
  transform:translateX(-50%);
  border-radius:8px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.12) 0 1px, transparent 1px 9px),
    linear-gradient(90deg,#0b1722,#233e4e 48%,#09121a);
  border:1px solid rgba(126,220,255,.28);
  box-shadow:inset 0 0 8px rgba(0,0,0,.7), 0 0 12px rgba(65,196,255,.12);
}
.theme-switch-track::before{
  content:"";
  position:absolute;
  left:50%;
  top:7px;
  bottom:7px;
  width:2px;
  transform:translateX(-50%);
  border-radius:2px;
  background:linear-gradient(180deg,rgba(124,239,255,.55),rgba(47,112,255,.16));
  box-shadow:0 0 5px rgba(84,222,255,.35);
  transition:background .35s ease, box-shadow .35s ease;
}
.theme-switch-track::after{
  content:"";
  position:absolute;
  left:50%;
  top:-5px;
  width:18px;
  height:7px;
  transform:translateX(-50%);
  border-radius:4px;
  background:linear-gradient(180deg,#c3dfeb,#4c6978);
  border:1px solid rgba(255,255,255,.25);
}
.theme-switch-lever{
  position:absolute;
  left:50%;
  bottom:2px;
  width:28px;
  height:23px;
  transform:translateX(-50%);
  border-radius:9px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.3),transparent 38%),
    linear-gradient(145deg,#d5f5ff,#2c6e8b 55%,#0b2433);
  border:1px solid rgba(157,238,255,.55);
  box-shadow:
    0 5px 12px rgba(0,20,35,.4),
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 10px rgba(82,213,255,.18);
  transition:bottom .38s cubic-bezier(.22,1,.36,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.theme-switch-lever::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:2px;
  transform:translate(-50%,-50%);
  border-radius:2px;
  background:linear-gradient(90deg,transparent,#e8ffff,transparent);
  opacity:.82;
}
.theme-toggle:hover .theme-switch-lever{
  border-color:rgba(190,250,255,.9);
  box-shadow:
    0 6px 14px rgba(0,20,35,.45),
    inset 0 1px 0 rgba(255,255,255,.65),
    0 0 16px rgba(82,213,255,.38);
}
html.dark .theme-switch-track{
  border-color:rgba(255,210,118,.34);
  box-shadow:inset 0 0 8px rgba(0,0,0,.72), 0 0 13px rgba(255,173,63,.16);
}
html.dark .theme-switch-track::before{
  background:linear-gradient(180deg,rgba(255,222,135,.8),rgba(255,132,45,.22));
  box-shadow:0 0 7px rgba(255,184,69,.55);
}
html.dark .theme-switch-track::after{
  background:linear-gradient(180deg,#f1d293,#6c5225);
  border-color:rgba(255,228,162,.35);
}
html.dark .theme-switch-lever{
  bottom:43px;
  background:
    linear-gradient(180deg,rgba(255,250,219,.42),transparent 38%),
    linear-gradient(145deg,#ffe9a2,#b87822 55%,#3c270b);
  border-color:rgba(255,226,151,.8);
  box-shadow:
    0 5px 14px rgba(30,14,0,.42),
    inset 0 1px 0 rgba(255,255,235,.7),
    0 0 18px rgba(255,178,60,.55);
}
@media (max-width: 900px){
  .theme-toggle{
    top:10px;
    right:18px;
    left:auto !important;
    width:44px;
    height:84px;
    transform:none;
  }
}


/* 狗骨头线条主题开关：浅色线稿，深色实心白 */
.theme-toggle{
  top:62px;
  left:50%;
  width:38px;
  height:38px;
  padding:3px;
  transform:translateX(-19px);
  background:transparent;
  filter:none;
}
.theme-toggle::before{ content:none !important; display:none !important; }
.theme-bone{
  display:block;
  width:32px;
  height:32px;
  fill:none;
  stroke:#586978;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:fill .25s ease, stroke .25s ease, transform .2s ease;
}
.theme-toggle:hover .theme-bone{
  stroke:#18232d;
  transform:scale(1.06);
}
html.dark .theme-bone{
  fill:#fff;
  stroke:#fff;
}
html.dark .theme-toggle:hover .theme-bone{
  fill:#f3f7fb;
  stroke:#f3f7fb;
}
@media (max-width: 900px){
  .theme-toggle{
    top:10px;
    right:32px;
    left:auto !important;
    width:38px;
    height:38px;
    transform:none;
  }
}


/* 骨头跟随产品体验按钮摆放 */
.header-inner .theme-toggle{
  position:relative;
  top:auto;
  left:auto;
  right:auto;
  transform:none;
  margin:0 0 0 10px;
  flex:0 0 auto;
}
@media (max-width: 900px){
  .header-inner .theme-toggle{
    position:fixed;
    top:10px;
    right:32px;
    left:auto;
    margin:0;
  }
}


@media (min-width: 901px){
  .header-inner .theme-toggle{
    width:30px;
    height:30px;
    padding:2px;
    margin-left:8px;
  }
  .header-inner .theme-bone{
    width:26px;
    height:26px;
  }
}


@media (min-width: 901px){
  .header-inner .site-nav{
    margin-left:auto;
  }
}


@media (min-width: 901px){
  .header-inner .theme-toggle{
    align-self:center;
    transform:translateY(2px);
  }
}


@media (max-width: 900px){
  .header-inner .theme-toggle{
    right:64px;
    transform:translateY(4px);
  }
}
