/* finesse · register=brand · theme=glacial-dark
 * 锁定单一冰蓝强调色，薄层磨砂海岸融图，左右严密对齐零视觉空洞 */
:root {
  --bg: #080e16;
  --surface: #0f1826;
  --surface-raised: #142133;
  --ink: #edf4fb;
  --ink-muted: #93a7be;
  --ink-dim: #667b94;
  --accent: #5bb8f5;
  --accent-ink: #071320;
  --line: rgba(202, 226, 248, 0.11);
  --line-strong: rgba(202, 226, 248, 0.24);
  --gutter: clamp(24px, 4.2vw, 68px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --font-sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "Consolas", ui-monospace, monospace;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--accent);
  background: rgba(91, 184, 245, 0.1);
  padding: 0.08em 0.36em;
  border-radius: 5px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.grain-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: 100%;
  padding-inline: var(--gutter);
}

/* 吸顶极简导航 */
.nav-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 30;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav-bar.is-scrolled {
  background: rgba(8, 14, 22, 0.86);
  border-bottom-color: var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .nav-bar.is-scrolled {
    background: rgba(8, 14, 22, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
}

.brand-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(134, 212, 255, 0.36), 0 0 22px rgba(91, 184, 245, 0.32);
}

.brand-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 64%
  );
  transform: translateX(-120%);
  animation: brand-icon-sheen 4.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: clamp(1.55rem, 2.05vw, 1.92rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  background-image: linear-gradient(
    110deg,
    #e8f3ff 0%,
    #e8f3ff 30%,
    #2ea8ff 44%,
    #ffffff 50%,
    #52c0ff 56%,
    #e8f3ff 70%,
    #e8f3ff 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shimmer 4.4s linear infinite;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

@keyframes brand-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@keyframes brand-icon-sheen {
  0%,
  10% {
    transform: translateX(-120%);
  }
  36%,
  100% {
    transform: translateX(120%);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  color: rgba(237, 244, 251, 0.86);
  text-shadow: 0 2px 10px rgba(8, 14, 22, 0.55);
}

.nav-links a:hover {
  color: var(--ink);
}

/* 全幅薄磨砂海岸融图 Hero：左文右实拍，紧凑平衡 */
.hero {
  position: relative;
  padding: 98px 0 40px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.12);
  filter: blur(14px) saturate(1.05) brightness(0.74);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.76) 0%, rgba(10, 20, 32, 0.34) 22%, rgba(10, 20, 32, 0.32) 60%, rgba(8, 14, 22, 0.92) 90%, var(--bg) 100%),
    linear-gradient(96deg, rgba(8, 14, 22, 0.84) 0%, rgba(8, 14, 22, 0.48) 42%, rgba(8, 14, 22, 0.24) 100%);
}

@supports (backdrop-filter: blur(1px)) {
  .hero-scrim {
    backdrop-filter: blur(2px) saturate(110%);
    -webkit-backdrop-filter: blur(2px) saturate(110%);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  column-gap: clamp(22px, 3vw, 48px);
  row-gap: 10px;
  align-items: stretch;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 0;
  min-height: 0;
}

.hero-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.hero-kicker [data-release-version] {
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.05vw, 3.1rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-shadow: 0 6px 28px rgba(8, 14, 22, 0.55);
}

.hero-desc {
  margin: 12px 0 0;
  max-width: 540px;
  font-size: clamp(0.88rem, 0.96vw, 0.96rem);
  color: rgba(237, 244, 251, 0.86);
  line-height: 1.62;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #77c6f8;
}

.btn-secondary {
  background: rgba(15, 24, 38, 0.78);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-raised);
  border-color: rgba(202, 226, 248, 0.42);
}

.btn-size {
  font-weight: 500;
  font-size: 0.85em;
  opacity: 0.76;
}

.btn-size:empty {
  display: none;
}

.hero-link {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 0.86rem;
  color: rgba(237, 244, 251, 0.82);
  cursor: pointer;
  white-space: nowrap;
}

.hero-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero 右侧纯净无壳实拍画框：与左列同处第 1 行，确保音频频谱与实拍图底边 0px 误差对齐 */
.showcase-frame {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(3, 8, 15, 0.6);
  cursor: zoom-in;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.showcase-frame:hover {
  border-color: rgba(91, 184, 245, 0.55);
  transform: translateY(-1px);
}

.showcase-frame img,
.showcase-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1420;
}

.showcase-frame.is-contain img,
.showcase-frame.is-contain video {
  object-fit: contain;
  background: #0c1522;
}

.showcase-bar {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.study-controls {
  display: inline-flex;
  gap: 6px;
}

.study-tab {
  border: 1px solid var(--line);
  background: rgba(15, 24, 38, 0.56);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.study-tab:hover {
  color: var(--ink);
}

.study-tab.is-active {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}

.showcase-zoom {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.showcase-zoom:hover {
  color: var(--accent);
}

/* 第二区：左右严格顶齐底齐 */
.work-band {
  padding-top: 22px;
  padding-bottom: 36px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: stretch;
}

.spec-column {
  display: flex;
  flex-direction: column;
}

.band-title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.capability-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.capability-rows li {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.capability-rows li:hover {
  background: rgba(91, 184, 245, 0.045);
}

.capability-rows h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.capability-rows p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* 右列：本地边界发丝线纵排，与左列严格顶底齐平 */
.side-column {
  display: flex;
  flex-direction: column;
}

.boundary-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.boundary-rows li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.boundary-rows li:hover {
  background: rgba(91, 184, 245, 0.045);
}

.boundary-rows h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.boundary-rows p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.spectrum-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 92px;
  background: rgba(12, 22, 36, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px 6px;
}

@supports (backdrop-filter: blur(1px)) {
  .spectrum-stage {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.spectrum-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.spectrum-hint {
  color: var(--ink-dim);
  font-size: 0.74rem;
}

.spectrum-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 54px;
}

#spectrum-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.79rem;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 9, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal img,
.modal video {
  max-width: min(1480px, 95vw);
  max-height: 92vh;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0b1420;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.notes-dialog {
  width: min(640px, 94vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.notes-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.notes-dialog-head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.notes-close {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.notes-dialog-body {
  padding: 16px 18px;
  overflow-y: auto;
  font-size: 0.87rem;
  color: var(--ink-muted);
  white-space: pre-wrap;
}

.notes-dialog-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--accent);
}

@media (max-width: 1080px) {
  .hero-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .showcase-frame,
  .showcase-bar {
    grid-column: 1;
    grid-row: auto;
  }

  .showcase-frame {
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 1.38rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.82rem;
  }

  .capability-rows li,
  .boundary-rows li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-bar.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
  }

  .hero-scrim {
    backdrop-filter: none;
  }
}

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

  .brand-name {
    background-image: none;
    color: var(--ink);
    animation: none;
  }

  .brand-icon-wrap::after {
    display: none;
  }

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