:root {
  --bg: #050505;
  --fg: #f5f5f5;
  --muted: #a0a0a0;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
}

body[data-theme="light"] {
  --bg: #f7f7f7;
  --fg: #111111;
  --muted: #777777;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #000000;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #151515, #000000 55%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition:
    background 260ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

/* 更细的右侧滚动条，仅影响支持的浏览器 */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

body[data-theme="light"]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] {
  background: radial-gradient(circle at top left, #ffffff, #e9e9e9 55%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7vw 14px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.82),
    transparent
  );
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.logo {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero,
.section,
.card,
.specs,
.site-header,
.site-footer {
  transition:
    background 260ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease;
}

/* 主题切换时整体轻微缩放和淡入，让变化更明显但仍然克制 */
body.theme-switching .hero,
body.theme-switching .section,
body.theme-switching .site-header,
body.theme-switching .site-footer {
  animation: theme-pop 260ms ease-out;
}

@keyframes theme-pop {
  0% {
    opacity: 0.5;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 48px;
  padding: 80px 7vw 72px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(40px, 4vw, 56px);
  margin: 0 0 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text {
  margin: 0;
  max-width: 32rem;
  color: #d0d0d0;
  line-height: 1.7;
  font-size: 14px;
}

body[data-theme="light"] .hero-text {
  color: #4a4a4a;
}

.hero-device {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at top right, #202020, #050505 60%);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

body[data-theme="light"] .device-frame {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.98));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

.device-inner {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07), transparent 32%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 6px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px 22px;
  flex-direction: column;
  gap: 12px;
}

body[data-theme="light"] .device-inner {
  border-color: rgba(0, 0, 0, 0.04);
  background:
    linear-gradient(to bottom, #fcfcfc, #f4f4f4),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.015),
      rgba(0, 0, 0, 0.015) 1px,
      transparent 1px,
      transparent 6px
    );
}

.device-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 82%;
}

.section {
  padding: 40px 7vw 24px;
}

.section-header h2 {
  font-size: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body[data-theme="light"] .section-header p {
  color: #555555;
}

.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, #191919, #050505 55%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

body[data-theme="light"] .card {
  background: radial-gradient(circle at top, #ffffff, #e9e9e9 55%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.card-media {
  height: 160px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-gradient {
  background: linear-gradient(135deg, #ffffff, #585858);
  mask-image: radial-gradient(circle at center, black 0, black 38%, transparent 60%);
}

body[data-theme="light"] .placeholder-gradient {
  background: radial-gradient(circle at center, #f0f0f0 0, #d0d0d0 40%, #f7f7f7 75%);
  mask-image: radial-gradient(circle at center, black 0, black 42%, transparent 70%);
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}

.wave-bars span {
  width: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  animation: wave-pulse 1.4s ease-in-out infinite;
}

.wave-bars span:nth-child(1) {
  height: 24%;
  animation-delay: -0.1s;
}
.wave-bars span:nth-child(2) {
  height: 52%;
  animation-delay: -0.2s;
}
.wave-bars span:nth-child(3) {
  height: 88%;
  animation-delay: -0.3s;
}
.wave-bars span:nth-child(4) {
  height: 60%;
  animation-delay: -0.4s;
}
.wave-bars span:nth-child(5) {
  height: 34%;
  animation-delay: -0.5s;
}

@keyframes wave-pulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }
}

.placeholder-outline {
  position: relative;
  background: #050505;
}

body[data-theme="light"] .placeholder-outline {
  background: #f5f5f5;
}

.placeholder-outline::before {
  content: "";
  position: absolute;
  inset: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body[data-theme="light"] .placeholder-outline::before {
  border-color: rgba(0, 0, 0, 0.2);
}

.transcribe-lines {
  position: relative;
  width: 74%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transcribe-line {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body[data-theme="light"] .transcribe-line {
  background: rgba(0, 0, 0, 0.06);
}

.transcribe-line--one {
  width: 100%;
}

.transcribe-line--two {
  width: 82%;
}

.transcribe-line--three {
  width: 64%;
}

.transcribe-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: translateX(-100%);
  animation: transcribe-shimmer 1.8s ease-in-out infinite;
}

body[data-theme="light"] .transcribe-line::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.75),
    transparent
  );
}

.transcribe-line--two::before {
  animation-delay: 0.15s;
}

.transcribe-line--three::before {
  animation-delay: 0.3s;
}

@keyframes transcribe-shimmer {
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.placeholder-grid {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    );
  background-size: 24px 24px;
}

body[data-theme="light"] .placeholder-grid {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px
    );
}

.ai-stack {
  position: relative;
  width: 72%;
  max-width: 260px;
  height: 72px;
}

.ai-sheet {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  opacity: 0.7;
}

body[data-theme="light"] .ai-sheet {
  border-color: rgba(0, 0, 0, 0.18);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.02)
  );
}

.ai-sheet--one {
  transform: translate(-6px, 6px);
  animation: ai-float-one 3s ease-in-out infinite;
}

.ai-sheet--two {
  transform: translate(0, 0);
  animation: ai-float-two 3s ease-in-out infinite;
}

.ai-sheet--three {
  transform: translate(6px, -6px);
  animation: ai-float-three 3s ease-in-out infinite;
}

@keyframes ai-float-one {
  0%,
  100% {
    transform: translate(-6px, 6px);
    opacity: 0.55;
  }
  50% {
    transform: translate(-4px, 4px);
    opacity: 0.8;
  }
}

@keyframes ai-float-two {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: translate(0, -2px);
    opacity: 1;
  }
}

@keyframes ai-float-three {
  0%,
  100% {
    transform: translate(6px, -6px);
    opacity: 0.6;
  }
  50% {
    transform: translate(8px, -4px);
    opacity: 0.9;
  }
}

.card-body {
  padding: 16px 16px 18px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card-body p {
  margin: 0;
  color: #c0c0c0;
  font-size: 13px;
  line-height: 1.6;
}

body[data-theme="light"] .card-body p {
  color: #444444;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.specs {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #1a1a1a, #050505 60%);
  padding: 18px 18px 10px;
}

body[data-theme="light"] .specs {
  background: radial-gradient(circle at top left, #ffffff, #e9e9e9 60%);
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: radial-gradient(circle at left, rgba(255, 255, 255, 0.04), transparent 55%);
}

.spec-row span:first-child {
  color: var(--muted);
}

body[data-theme="light"] .spec-row span:first-child {
  color: #555555;
}

.spec-row--header {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  background: transparent;
  padding-bottom: 4px;
}

body[data-theme="light"] .spec-row {
  background: radial-gradient(circle at left, rgba(0, 0, 0, 0.04), transparent 55%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.download-card {
  display: flex;
  justify-content: flex-end;
}

.download-card-inner {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 55%);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body[data-theme="light"] .download-card-inner {
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.04), transparent 55%);
}

.download-qr {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.download-text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-text--secondary {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.site-footer {
  padding: 24px 7vw 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .dot {
  background: rgba(0, 0, 0, 0.6);
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.beian-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.beian-link span {
  border-bottom: 1px solid transparent;
}

.beian-link:hover {
  color: #3b82f6;
}

.beian-link:hover span {
  border-bottom-color: #3b82f6;
}

.mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.mode-toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--fg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.mode-toggle-label {
  min-width: 34px;
  text-align: right;
}

.mode-toggle--light {
  background: rgba(0, 0, 0, 0.03);
}

body[data-theme="dark"] .mode-toggle--light {
  background: rgba(255, 255, 255, 0.04);
}

.mode-toggle--light .mode-toggle-knob {
  transform: translateX(2px);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.lang-toggle-label {
  min-width: 26px;
  text-align: center;
}

.lang-select {
  position: relative;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 96px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(16px);
  display: none;
}

body[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.96);
}

.lang-select.lang-select--open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .lang-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
  }

  .hero-device {
    order: -1;
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .nav {
    display: none;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
