/* ==========================================================================
   aune 官网入口页样式
   仅作用于 index.html 里的静态落地页（#landing），
   SPA 页面（隐私政策 / 用户协议）走 base.css，不受影响。
   ========================================================================== */

:root {
  --land-bg: #050506;
  --land-panel: #08080a;
  --land-line: rgba(255, 255, 255, 0.08);
  --land-line-strong: rgba(255, 255, 255, 0.16);
  --land-fg: #f5f5f7;
  --land-muted: #a1a1aa;
  --land-dim: #6b6b76;
  --land-faint: #4b4b55;
  --land-violet: #7c5cff;
  --land-blue: #2b9bff;
  --land-amber: #ffb45c;
  --land-mono:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  --land-sans:
    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --land-maxw: 1080px;
  --land-pad: clamp(20px, 5vw, 48px);
}

html:not([data-mode='spa']) body {
  background: var(--land-bg);
  color: var(--land-fg);
  font-family: var(--land-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:not([data-mode='spa']) #app,
html[data-mode='spa'] #landing {
  display: none;
}

/* --------------------------------------------------------------------------
   容器与背景
   -------------------------------------------------------------------------- */

#landing {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background: var(--land-bg);
  color: var(--land-fg);
  font-family: var(--land-sans);
}

#landing .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#landing .bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    115% 78% at 50% 0%,
    #000 8%,
    rgba(0, 0, 0, 0.4) 42%,
    transparent 72%
  );
  mask-image: radial-gradient(
    115% 78% at 50% 0%,
    #000 8%,
    rgba(0, 0, 0, 0.4) 42%,
    transparent 72%
  );
}

#landing .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

#landing .orb--violet {
  top: -22vw;
  left: -10vw;
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 62%);
  animation: orb-drift 26s ease-in-out infinite alternate;
}

#landing .orb--blue {
  top: -18vw;
  right: -12vw;
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  background: radial-gradient(circle, rgba(43, 155, 255, 0.4), transparent 62%);
  animation: orb-drift 32s ease-in-out infinite alternate-reverse;
}

#landing .orb--amber {
  top: 26vh;
  left: 50%;
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  margin-left: -15vw;
  background: radial-gradient(circle, rgba(255, 180, 92, 0.22), transparent 64%);
  animation: orb-drift 22s ease-in-out infinite alternate;
}

#landing .bg-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.06),
    transparent 66%
  );
}

#landing .bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 5vh, 0) scale(1.12);
  }
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

#landing .nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--land-pad);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

#landing .nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--land-fg);
  text-decoration: none;
}

#landing .nav__mark {
  width: 22px;
  height: 22px;
  color: var(--land-amber);
}

#landing .nav__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: lowercase;
}

#landing .nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

#landing .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--land-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--land-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--land-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

#landing .pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.08);
  }
}

#landing .nav__link {
  font-family: var(--land-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--land-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

#landing .nav__link:hover {
  color: var(--land-fg);
}

#landing .nav__sep {
  color: var(--land-faint);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

#landing .hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--land-maxw);
  margin: 0 auto;
  padding: clamp(26px, 5.5vh, 64px) var(--land-pad) 0;
  text-align: center;
}

#landing .rings {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 1px;
  height: 1px;
  z-index: -1;
}

#landing .rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 7.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

#landing .rings i:nth-child(2) {
  animation-delay: 2.4s;
}

#landing .rings i:nth-child(3) {
  animation-delay: 4.8s;
}

@keyframes ripple {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  18% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

#landing .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--land-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--land-dim);
  text-transform: uppercase;
  animation: rise 0.9s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#landing .eyebrow__bar {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
}

#landing .title {
  margin: 20px 0 0;
  font-size: clamp(38px, 7.4vw, 82px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 18%, #b6b6c0 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#landing .title em {
  font-style: normal;
  background: linear-gradient(96deg, #ffd7a8 0%, var(--land-amber) 42%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#landing .title__en {
  margin-top: 16px;
  font-family: var(--land-mono);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--land-faint);
  animation: rise 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#landing .lede {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(13.5px, 1.4vw, 15px);
  line-height: 1.95;
  color: var(--land-muted);
  animation: rise 1s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#landing .lede strong {
  color: #d6d6dd;
  font-weight: 500;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   入口按钮
   -------------------------------------------------------------------------- */

#landing .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 5vh, 44px);
  animation: rise 1s 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#landing .btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 216px;
  padding: 15px 20px 14px;
  border: 1px solid var(--land-line-strong);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 12, 0.6);
  color: var(--land-fg);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

#landing .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--bx, 50%) var(--by, 0%),
    rgba(255, 255, 255, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#landing .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 40px -22px rgba(124, 92, 255, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#landing .btn:hover::after {
  opacity: 1;
}

#landing .btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e7e7ec 100%);
  color: #0a0a0c;
}

#landing .btn--primary:hover {
  box-shadow:
    0 20px 46px -20px rgba(255, 180, 92, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

#landing .btn__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#landing .btn__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#landing .btn__host {
  font-family: var(--land-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

#landing .btn--primary .btn__host {
  opacity: 0.5;
}

#landing .btn__arrow {
  margin-left: 12px;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#landing .btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* 按钮里的微型电平条：纯装饰 */
#landing .eq {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 11px;
}

#landing .eq i {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.5;
  height: 35%;
}

#landing .eq i:nth-child(2) {
  height: 70%;
  animation-delay: 0.12s;
}
#landing .eq i:nth-child(3) {
  height: 50%;
  animation-delay: 0.24s;
}
#landing .eq i:nth-child(4) {
  height: 88%;
  animation-delay: 0.06s;
}

#landing .btn:hover .eq i {
  animation: eq-bounce 0.9s ease-in-out infinite;
}

@keyframes eq-bounce {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

#landing .hint {
  margin-top: 16px;
  font-family: var(--land-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #5f5f6a;
  animation: rise 1s 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --------------------------------------------------------------------------
   频谱
   -------------------------------------------------------------------------- */

#landing .spectrum {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(64px, 11vw, 132px);
  margin-top: clamp(18px, 3.6vh, 40px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

#landing .spectrum__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* JS 未执行时的静态兜底条纹；Canvas 开始绘制后隐藏 */
#landing .spectrum::before {
  content: '';
  position: absolute;
  inset: 28% 8%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.09) 0 2px,
    transparent 2px 13px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}

#landing .spectrum.is-live::before {
  display: none;
}

/* --------------------------------------------------------------------------
   滚动字条
   -------------------------------------------------------------------------- */

#landing .ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--land-line);
  border-bottom: 1px solid var(--land-line);
  background: rgba(255, 255, 255, 0.014);
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

#landing .ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

#landing .ticker__group {
  display: flex;
  flex: 0 0 auto;
}

#landing .ticker:hover .ticker__track {
  animation-play-state: paused;
}

#landing .ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  font-family: var(--land-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7a7a86;
  white-space: nowrap;
}

#landing .ticker__item::after {
  content: '·';
  color: #3b3b44;
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   三格特性
   -------------------------------------------------------------------------- */

#landing .features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: var(--land-maxw);
  margin: clamp(28px, 5vh, 52px) auto 0;
  padding: 0;
  border: 1px solid var(--land-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--land-line);
  list-style: none;
}

#landing .feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 26px;
  background: var(--land-panel);
  transition: background 0.3s ease;
}

#landing .feature:hover {
  background: #0d0d11;
}

#landing .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 180, 92, 0.5),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

#landing .feature:hover::before {
  opacity: 1;
}

#landing .feature__num {
  font-family: var(--land-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--land-faint);
}

#landing .feature__title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#landing .feature__title span {
  font-family: var(--land-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--land-dim);
  text-transform: uppercase;
}

#landing .feature__desc {
  font-size: 12.5px;
  line-height: 1.9;
  color: #86868f;
}

/* --------------------------------------------------------------------------
   页脚（备案信息：静态直出，必须始终可见）
   -------------------------------------------------------------------------- */

#landing .site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  width: 100%;
  max-width: var(--land-maxw);
  margin: auto auto 0;
  padding: 26px var(--land-pad) 30px;
  border-top: 1px solid var(--land-line);
  font-size: 12px;
  color: var(--land-dim);
}

#landing .site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#landing .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

#landing .site-footer a {
  color: #8b8b95;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

#landing .site-footer a:hover {
  color: var(--land-fg);
  text-decoration: underline;
}

#landing .site-footer__sep {
  color: #33333c;
}

#landing .gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#landing .gongan__icon {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  #landing .features {
    grid-template-columns: 1fr;
    border-radius: 12px;
    margin-left: var(--land-pad);
    margin-right: var(--land-pad);
    width: auto;
  }

  #landing .feature {
    padding: 20px 18px 22px;
  }

  #landing .site-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  #landing .site-footer__legal {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  #landing .nav {
    padding: 18px 18px;
  }

  #landing .pill {
    display: none;
  }

  #landing .hero {
    padding-top: 34px;
  }

  #landing .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  #landing .eyebrow__bar {
    width: 16px;
  }

  #landing .cta {
    flex-direction: column;
    align-items: stretch;
  }

  #landing .btn {
    min-width: 0;
    width: 100%;
  }

  #landing .lede br {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   无障碍：尊重"减少动态效果"
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #landing *,
  #landing *::before,
  #landing *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #landing .rings i {
    opacity: 0.16;
    transform: scale(0.9);
  }
}
