:root {
  color-scheme: light dark;
  --bg-solid: #5ac5ff;
  --bg-secondary: #00b77d;
  --blob-one: #0098ac;
  --blob-two: #004c86;
  --blob-three: #009e7c;
  --blob-four: #00a45a;
  --text-primary: #042d2e;
  --text-muted: rgba(4, 45, 46, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 25px 45px rgba(7, 28, 35, 0.18);
  --menu-divider: rgba(4, 45, 46, 0.14);
  --menu-item-hover-bg: rgba(4, 45, 46, 0.08);
  --console-btn-hover-overlay: rgba(0, 0, 0, 0.05);
  --console-surface-overlay: rgba(191, 255, 255, 0.7);
  --console-menu-size-duration: 350ms;
  --console-menu-size-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --console-menu-fade-duration: 100ms;
  --console-menu-fade-easing: ease;
  --console-menu-open-fade-delay: 80ms;
  --console-menu-btn-fade-delay: 100ms;

  /* === 新增：液态高光专用变量 === */
  --c-glass: #bbbbbc;
  --c-light-day: rgb(190, 253, 254); /* 白天：高光颜色 */
  --c-dark-day: rgb(184, 240, 253); /* 白天：阴影颜色 */
  --c-light-night: rgb(55, 103, 238); /* 夜间：高光颜色 */
  --c-dark-night: rgb(24, 48, 131); /* 夜间：阴影颜色 */
  --c-light: var(--c-light-day); /* 当前模式生效值 */
  --c-dark: var(--c-dark-day); /* 当前模式生效值 */
  --c-bg: #e8e8e9;
  --glass-reflex-light: 1; /* 亮部反光强度 (0-1) */
  --glass-reflex-dark: 1; /* 暗部反光强度 (0-1) */
  --saturation: 150%;

  background: var(--c-bg);
  transition:
    background 100ms cubic-bezier(1, 0, 0.4, 1),
    color 100ms cubic-bezier(1, 0, 0.4, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-solid: #02296b;
    --bg-secondary: #142a71;
    --blob-one: #631af6;
    --blob-two: #6300b4;
    --blob-three: #00306e;
    --blob-four: #351895;
    --text-primary: #f4fbff;
    --text-muted: rgba(244, 251, 255, 0.6);
    --glass-bg: rgba(4, 10, 26, 0.55);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 30px 55px rgba(0, 0, 0, 0.55);
    --menu-divider: rgba(255, 255, 255, 0.18);
    --menu-item-hover-bg: rgba(255, 255, 255, 0.14);
    --console-btn-hover-overlay: rgba(255, 255, 255, 0.05);
    --console-surface-overlay: rgba(191, 255, 255, 0);

    /* === 新增：深色模式下降低一点反光强度 === */
    --glass-reflex-light: 0.6;
    --glass-reflex-dark: 0.8;

    /* 深色模式：切换到夜间高光/阴影色 */
    --c-light: var(--c-light-night);
    --c-dark: var(--c-dark-night);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100dvh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-solid);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.background-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg-solid);
  z-index: 0;
  pointer-events: none;

  filter: blur(80px);
  transform: scale(1.2);
  transform-origin: center;
  will-change: transform;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  filter: hue-rotate(0deg);
  mix-blend-mode: screen;
  will-change: transform, filter;
  animation: blobColor 12s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .blob {
    mix-blend-mode: hard-light;
    opacity: 0.6;
  }
}

.blob-one {
  width: 60vw;
  height: 60vw;
  background: var(--blob-one);
  top: -10%;
  left: -10%;
  animation:
    blobRoam 25s infinite linear,
    blobColor 12s linear infinite;
}

.blob-two {
  width: 70vw;
  height: 70vw;
  background: var(--blob-two);
  bottom: -10%;
  right: -10%;
  animation:
    blobRoamReverse 28s infinite linear,
    blobColor 15s linear infinite reverse;
  animation-delay: -5s;
}

.blob-three {
  width: 50vw;
  height: 50vw;
  background: var(--blob-three);
  top: 20%;
  right: -10%;
  animation:
    blobRoam 30s infinite linear,
    blobColor 14s linear infinite;
  animation-delay: -15s;
}

.blob-four {
  width: 60vw;
  height: 60vw;
  background: var(--blob-four);
  bottom: -20%;
  left: 10%;
  animation:
    blobRoamReverse 22s infinite linear,
    blobColor 16s linear infinite;
  animation-delay: -10s;
}

@keyframes blobRoam {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(40vw, -10vh, 0) scale(1.1);
  }
  50% {
    transform: translate3d(30vw, 30vh, 0) scale(0.9);
  }
  75% {
    transform: translate3d(-10vw, 20vh, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes blobRoamReverse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(-20vw, 40vh, 0) scale(1.2);
  }
  66% {
    transform: translate3d(50vw, -20vh, 0) scale(0.95);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes blobColor {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(25deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

.main-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding-top: calc(env(safe-area-inset-top) + 24px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
  padding-left: calc(env(safe-area-inset-left) + 24px);
  padding-right: calc(env(safe-area-inset-right) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: calc(env(safe-area-inset-top) + 16px) calc(env(safe-area-inset-right) + 24px) 0 calc(env(safe-area-inset-left) + 24px);
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}

.console-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: auto;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
  z-index: 30;
  isolation: isolate;
}

.console-menu {
  width: 104px;
  height: 42px;
  border-radius: 24px;
  overflow: hidden;
  transition:
    width var(--console-menu-size-duration) var(--console-menu-size-easing),
    height var(--console-menu-size-duration) var(--console-menu-size-easing);
  will-change: width, height;
}

.console-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--console-surface-overlay);
  pointer-events: none;
  z-index: 0;
}

.console-menu.liquid-interactive:hover,
.console-menu.liquid-interactive:active {
  transform: none;
}

.console-menu.open {
  width: clamp(112px, 34vw, 160px);
  height: 187px;
}

.console-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  border-radius: inherit;
  padding: 0;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition:
    opacity var(--console-menu-fade-duration) var(--console-menu-fade-easing) var(--console-menu-btn-fade-delay);
  transform-origin: top right;
  will-change: opacity;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

.console-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--console-btn-hover-overlay);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.console-btn:active::before {
  opacity: 1;
}

.console-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55) inset;
}

.console-menu.open .console-btn {
  opacity: 0;
  transition-delay: 0s;
  pointer-events: none;
}

.console-dropdown {
  position: absolute;
  inset: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity var(--console-menu-fade-duration) var(--console-menu-fade-easing),
    visibility 0s linear var(--console-menu-fade-duration);
  will-change: opacity;
  z-index: 1;
}

.console-menu-divider {
  flex: 0 0 1px;
  height: 1px;
  background-color: var(--menu-divider);
  margin: 8px 10px;
  border-radius: 999px;
  pointer-events: none;
  transform: translateZ(0);
}

.console-menu.open .console-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--console-menu-fade-duration) var(--console-menu-fade-easing) var(--console-menu-open-fade-delay),
    visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .console-menu {
    transition-duration: 0.01ms !important;
  }
  .console-btn,
  .console-dropdown {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.console-menu-section {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.console-menu-section + .console-menu-section {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.console-menu-item {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  padding: 9px 12px;
  border-radius: 14px;
  display: block;
  letter-spacing: 0.04em;
  position: relative;
  isolation: isolate;
  transition: color 0.25s ease;
}

.console-menu-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--menu-item-hover-bg);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.console-menu-item-label {
  display: inline-block;
  transition: transform 0.25s ease;
  will-change: transform;
}

.console-menu-item:focus-visible {
  outline: none;
}

.console-menu-item:focus-visible::before {
  opacity: 1;
}

.console-menu-item:focus-visible .console-menu-item-label {
  transform: translateX(2px);
  outline: none;
}

.console-menu-item:active {
  outline: none;
}

.console-menu-item:active::before {
  opacity: 1;
}

.console-menu-item:active .console-menu-item-label {
  transform: translateX(2px);
}

.hero {
  flex: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  transform: translateY(-4vh);
}

.glass {
  position: relative;
  z-index: 0;
  box-sizing: border-box;

  /* 1. 移除原本的边框，改用 box-shadow 模拟 */
  border: none;
  /* 移除 border-radius，让具体的元素（logo/menu）自己决定圆角，
     但这里为了保险可以写 inherit 或保留不做限制 */

  /* 2. 核心：有角度的高光边框 (从之前的模板移植) */
  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 1.8px 3px 0px -2px
      color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
    inset -2px -2px 0px -2px
      color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
    inset -3px -8px 1px -7px
      color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
    inset -0.3px -1px 4px 0px
      color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 12%), transparent),
    inset -1.5px 2.5px 0px -2px
      color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 0px 3px 4px -2px
      color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
    inset 2px -6.5px 1px -4px
      color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0px 1px 5px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent),
    0px 6px 16px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);

  /* 3. 动画过渡：增加 box-shadow 的过渡，使高光在变形时平滑流动 */
  transition:
    transform 0.4s ease,
    background-color 100ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 100ms cubic-bezier(1, 0, 0.4, 1),
    width 0.44s cubic-bezier(0.34, 1.56, 0.64, 1), /* 适配 console-menu */
    height 0.44s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.45s ease;

  overflow: hidden;
  background-color: color-mix(in srgb, var(--c-glass) 5%, transparent);
}

.console-menu.glass {
  z-index: 30;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.console-menu > .console-btn,
.console-menu > .console-dropdown {
  position: absolute;
}


.logo-shell {
  width: clamp(160px, 28vw, 260px);
  height: clamp(160px, 28vw, 260px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.logo-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-name {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 24px calc(env(safe-area-inset-bottom) + 16px);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 2px 0;
}

.liquid-interactive:active {
  transform: translateY(0) scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .console-btn:hover::before {
    opacity: 1;
  }

  .console-menu-item:hover {
    outline: none;
  }

  .console-menu-item:hover::before {
    opacity: 1;
  }

  .console-menu-item:hover .console-menu-item-label {
    transform: translateX(2px);
  }

  .liquid-interactive:hover {
    transform: translateY(-2px) scale(1.02);
  }
}

@media (max-width: 480px) {
  .hero {
    transform: translateY(-2vh);
  }
  .console-btn {
    font-size: 0.85rem;
    padding-inline: 1.1rem;
    letter-spacing: 0.04em;
  }

  .logo-shell {
    padding: 24px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .main-container {
    justify-content: space-between;
    padding-top: calc(env(safe-area-inset-top) + 12px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  }

  .hero {
    flex: 0 0 auto;
    transform: none;
    gap: 12px;
  }

  .logo-shell {
    width: clamp(120px, 28vh, 180px);
    height: clamp(120px, 28vh, 180px);
    padding: 18px;
  }

  .company-name {
    font-size: clamp(1.2rem, 3.2vh, 2rem);
  }

  .site-footer {
    position: relative;
    margin-top: auto;
    padding: 8px 24px calc(env(safe-area-inset-bottom) + 12px);
  }
}

.filters {
  position: absolute;     /* 脱离文档流 */
  width: 0;               /* 消除宽度占位 */
  height: 0;              /* 消除高度占位 */
  pointer-events: none;   /* 确保不阻挡点击 */
  z-index: -1;
}
