/* ============ AccordionGallery ============ */
.accordion-gallery {
  --ag-accent: #ffffff;
  --ag-overlay: #060010;
  --ag-text: #ffffff;
  --ag-gap: 10px;
  --ag-radius: 16px;
  --ag-media-size: 320px;

  display: flex;
  flex-direction: row;
  gap: var(--ag-gap);
  width: 100%;
  max-width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.accordion-gallery--vertical {
  flex-direction: column;
}

.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ag-radius);
  cursor: pointer;
  display: block;
  text-decoration: none;
  outline: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  background: #0a0713;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  will-change: flex-grow, transform;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel:focus-visible {
  box-shadow:
    0 0 0 2px var(--ag-accent),
    0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.ag-panel__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ag-panel__media {
  --ag-gray: 1;
  --ag-dim: 0.35;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ag-media-size);
  height: 100%;
  filter: grayscale(var(--ag-gray));
  will-change: transform, filter;
}

.accordion-gallery--vertical .ag-panel__media {
  width: 100%;
  height: var(--ag-media-size);
}

.ag-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ag-panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ag-overlay) 78%, transparent) 100%),
    color-mix(in srgb, var(--ag-overlay) calc(var(--ag-dim, 0.35) * 100%), transparent);
}

.ag-panel__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.ag-panel__bar {
  flex: 0 0 auto;
  width: 3px;
  height: 26px;
  border-radius: 3px;
  background: var(--ag-accent);
  opacity: 0;
  box-shadow: 0 0 12px color-mix(in srgb, var(--ag-accent) 60%, transparent);
}

.ag-panel__text {
  color: var(--ag-text);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

@media (max-width: 520px) {
  .accordion-gallery {
    flex-direction: column;
    perspective: none;
    height: auto !important;
  }
  .ag-panel {
    min-height: 84px;
    transform: none !important;
  }
  .accordion-gallery .ag-panel__media {
    width: 100%;
    height: var(--ag-media-size);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-panel,
  .ag-panel__media {
    will-change: auto;
  }
}

/* ============ Beams ============ */
.beams-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============ BorderGlow ============ */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgb(255 255 255 / 15%);
  background: var(--card-bg, #120F17);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px,
    rgba(0, 0, 0, 0.1) 0px 32px 64px;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* ============ CardNav ============ */
.card-nav-container {
  position: absolute;
  top: 2em;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  z-index: 99;
  box-sizing: border-box;
}

.card-nav {
  display: block;
  height: 60px;
  padding: 0;
  background-color: white;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  will-change: height;
}

.card-nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.45rem 0.55rem 1.1rem;
  z-index: 2;
}

.hamburger-menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
}

.hamburger-menu:hover .hamburger-line {
  opacity: 0.75;
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background-color: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    margin 0.3s ease;
  transform-origin: 50% 50%;
}

.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.logo-container {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo {
  height: 28px;
}

.card-nav-cta-button {
  background-color: #111;
  color: white;
  border: none;
  border-radius: calc(0.75rem - 0.35rem);
  padding: 0 1rem;
  height: 100%;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: center;
}

.card-nav-cta-button:hover {
  background-color: #333;
}

.card-nav-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 0.5rem;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.card-nav.open .card-nav-content {
  visibility: visible;
  pointer-events: auto;
}

.nav-card {
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  border-radius: calc(0.75rem - 0.2rem);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 8px;
  user-select: none;
}

.nav-card-label {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-card-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-card-link {
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-card-link:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .card-nav-container {
    width: 90%;
    top: 1.2em;
  }

  .card-nav-top {
    padding: 0.5rem 1rem;
    justify-content: space-between;
  }

  .hamburger-menu {
    order: 2;
  }

  .logo-container {
    position: static;
    transform: none;
    order: 1;
  }

  .card-nav-cta-button {
    display: none;
  }

  .card-nav-content {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0.5rem;
    bottom: 0;
    justify-content: flex-start;
  }

  .nav-card {
    height: auto;
    min-height: 60px;
    flex: 1 1 auto;
    max-height: none;
  }

  .nav-card-label {
    font-size: 18px;
  }

  .nav-card-link {
    font-size: 15px;
  }
}

/* ============ SpecularButton ============ */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.specular-button:active {
  transform: scale(0.97);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 1rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* Canvas extends past the button so the rim glow can bleed outside the edge */
.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

/* ============ 站点适配覆盖 ============ */
/* hero Beams 背景 */
.hero-beams{position:absolute;inset:0;z-index:0;pointer-events:none}
.beams-inner{position:relative;width:100%;height:100%}

/* CardNav 固定顶栏 + 毛玻璃 */
.card-nav-container{position:fixed;top:14px;left:50%;transform:translateX(-50%);width:min(92%,1180px);max-width:1180px;z-index:1000;margin:0}
.card-nav{background:rgba(15,17,22,0.55);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 38px rgba(0,0,0,.5)}
.logo{height:32px;width:32px;border-radius:10px;display:block}
.card-nav-cta-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;font-size:13.5px;font-weight:600;border-radius:10px;padding:0 18px;height:100%;transition:opacity .3s ease}
.card-nav-cta-button:hover{opacity:.88;background-color:inherit}

/* AccordionGallery 容器 */
#gallery-root{position:relative}
#gallery-root .accordion-gallery{margin:0 auto}
#gallery-root .ag-panel__text{font-size:clamp(0.9rem,1.4vw,1.25rem)}
#gallery-root .ag-panel--active .ag-panel__overlay{opacity:0}
#gallery-root .ag-panel--active .ag-panel__media{filter:grayscale(0) brightness(1.08)}
.gallery-block{margin-top:70px}
.gallery-block .sec-head{margin-bottom:44px}

/* 产品描述（恢复原样，无卡片背景） */
.feat-text .feat-tag{margin-bottom:6px}
.feat-text .specular-button{margin-top:16px;align-self:flex-start}
.feat-text .feat-note{margin-top:4px;font-size:12.5px;color:var(--dim)}

@media (max-width:900px){
  .feat-text .specular-button{align-self:center}
}

@media (max-width:768px){
  .card-nav-container{width:92%;top:10px}
}

/* Hero 演示视频模块 */
.demo-video{position:relative;background:#000}
.demo-video__player{width:100%;height:auto;display:block;background:#000}
.demo-video__play{position:absolute;inset:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:transparent;color:#fff;border:none;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:.02em;transition:transform .25s}
.demo-video__play svg{width:62px;height:62px;padding:15px;box-sizing:content-box;background:rgba(10,12,16,.5);border-radius:50%;filter:drop-shadow(0 4px 16px rgba(0,0,0,.45));transition:transform .25s}
.demo-video__play span{text-shadow:0 1px 12px rgba(0,0,0,.85)}
.demo-video__play:hover svg{transform:scale(1.08)}

/* Hero 背景层（Beams / Prism / 渐变 / 虹彩 切换） */
.hero-in{position:relative;z-index:2}
.hero-bg-layer{position:absolute;inset:0;z-index:0;pointer-events:none;transition:opacity .45s ease}
.hero-bg-layer.is-leaving{transition:opacity .5s ease}
/* 产品页 hero 暗色滤镜（与主页同一层遮罩） */
.product-hero::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(9,12,22,.62) 0%,rgba(9,12,22,.22) 42%,rgba(9,12,22,.32) 62%,rgba(9,12,22,.68) 100%)}
.hero-bg-layer .beams-inner{position:relative;width:100%;height:100%}
.hero-bg-layer .prism-container{position:absolute;inset:0;width:100%;height:100%}
.hero-bg-layer .gradient-blinds-container{position:absolute;inset:0}
.hero-bg-layer .iridescence-container{position:absolute;inset:0;mix-blend-mode:multiply;opacity:.9}
.gradient-blinds-container{position:relative;width:100%;height:100%;overflow:hidden}
.iridescence-container{width:100%;height:100%}

/* 背景切换按钮（hero 右下角） */
.bg-switch{position:absolute;right:20px;bottom:18px;z-index:5;display:flex;gap:4px;padding:4px;border-radius:999px;background:rgba(15,17,22,.55);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:auto}
.bg-switch__btn{border:none;background:transparent;color:rgba(255,255,255,.62);font-size:12px;font-weight:600;padding:6px 14px;border-radius:999px;cursor:pointer;transition:all .2s}
.bg-switch__btn:hover{color:#fff}
.bg-switch__btn.on{background:var(--grad);color:#fff;box-shadow:0 2px 10px rgba(240,68,56,.4)}

/* 底部背景切换按钮 */
.bg-bottom-wrap{display:flex;justify-content:center;padding:0 0 56px;background:var(--bg)}
.bg-bottom-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 28px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:all .25s}
/* ============ 页面分层背景（FirePanel 之后） ============ */
.bg-band{width:100vw;margin-left:calc(50% - 50vw);padding:72px 0;background:var(--bg)}
.bg-band .wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.bg-tools{background:#10141c;border-top:1px solid rgba(255,255,255,.05)}
.bg-gallery{background:#15131a;border-top:1px solid rgba(255,255,255,.05)}
#client-features{background:#191317;border-top:1px solid rgba(255,255,255,.05)}
.cta-sec{background:#221614;border-top:1px solid rgba(255,255,255,.06)}
/* 消除分层之间的中灰带：products 底部贴齐，底部按钮区延续 footer 色 */
#products{padding-bottom:0}
.bg-bottom-wrap{background:#08090b}
