/**
 * 广州阿拉丁数字科技 — 产品解决方案站
 */

:root {
  --ald-navy: #071526;
  --ald-navy-2: #0c2340;
  --ald-gold: #e6a317;
  --ald-gold-2: #f3c25a;
  --ald-blue: #1b6cff;
  --ald-text: #1b2430;
  --ald-muted: #5c6778;
  --ald-bg: #f6f4ef;
  --ald-card: #ffffff;
  --yg-primary: #c9890a;
  --yg-primary-dark: #a36d08;
  --yg-hero-gradient: linear-gradient(135deg, #071526 0%, #0c2340 52%, #163a63 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 不用全局 scroll-behavior:smooth —— 滚轮会被浏览器做成“粘滞感”。
   锚点/回顶的平滑滚动改由 JS 按需触发。 */
html {
  scroll-behavior: auto;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ald-text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* —— 滚动进度条 —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1080;
  background: linear-gradient(90deg, var(--ald-gold), var(--ald-gold-2), #fff3c4);
  box-shadow: 0 0 12px rgba(230, 163, 23, 0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* —— 导航 —— */
.navbar-ald {
  background: rgba(7, 21, 38, 0.72);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.navbar-ald.is-scrolled {
  background: rgba(7, 21, 38, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.navbar-brand img,
.navbar-brand .brand-mark {
  height: 32px !important;
  width: 32px !important;
  max-height: 32px;
  max-width: 32px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.35s var(--ease-out);
}

.navbar-brand:hover img {
  transform: scale(1.06) rotate(-4deg);
}

.navbar-brand .brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.navbar-ald .nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.navbar-ald .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--ald-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.navbar-ald .nav-link:hover::after,
.navbar-ald .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-ald .nav-link.active {
  color: #fff !important;
}

.btn-gold {
  --bs-btn-bg: var(--ald-gold);
  --bs-btn-border-color: var(--ald-gold);
  --bs-btn-hover-bg: #d49410;
  --bs-btn-hover-border-color: #d49410;
  --bs-btn-color: #1a1406;
  --bs-btn-hover-color: #1a1406;
  --bs-btn-active-bg: #c9890a;
  --bs-btn-active-border-color: #c9890a;
  --bs-btn-active-color: #1a1406;
  font-weight: 600;
}

.btn-press {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn-press:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 163, 23, 0.28);
}

.btn-press:active {
  transform: translateY(0);
}

/* —— Hero —— */
.hero-yg {
  background: var(--yg-hero-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-yg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(230, 163, 23, 0.28), transparent 42%),
    radial-gradient(circle at 86% 70%, rgba(27, 108, 255, 0.18), transparent 40%);
  pointer-events: none;
}

.hero-yg::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 46%;
  height: 80%;
  background: url("https://aldaiot-center.oss-cn-guangzhou.aliyuncs.com/company/logo.png") no-repeat right bottom;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  animation: flameFloat 8s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: orbDrift 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 220px;
  height: 220px;
  background: rgba(230, 163, 23, 0.35);
  top: 12%;
  left: 8%;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(27, 108, 255, 0.28);
  bottom: 8%;
  right: 12%;
  animation-delay: -4s;
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.08);
  }
}

@keyframes flameFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
    opacity: 0.18;
  }
}

.hero-yg .container {
  position: relative;
  z-index: 1;
}

.hero-in {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.15s);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-visual {
  perspective: 900px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-visual img {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-visual:hover img {
  transform: scale(1.03);
  box-shadow: 0 32px 70px rgba(230, 163, 23, 0.22);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--ald-gold-2);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
  border-color: var(--ald-gold-2);
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.kicker {
  color: var(--ald-gold-2);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-yg .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
}

/* —— 整屏 3D 卧室 Hero —— */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 100dvh;
  overflow: hidden;
  background: #05070c;
  padding: 0;
  margin: 0;
}

.hero-bedroom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  contain: layout paint;
}

.hero-bedroom.is-scrolling canvas {
  visibility: hidden !important;
}

.hero-bedroom canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  contain: layout paint size;
}

.hero-3d-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: radial-gradient(ellipse at center, #0c1524 0%, #05070c 70%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-sky-dock {
  position: absolute;
  top: calc(4.25rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(920px, calc(100% - 1.5rem));
  pointer-events: none;
}

.hero-sky-dock-inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.55);
  border: 1px solid rgba(230, 163, 23, 0.28);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(230, 163, 23, 0.12);
  animation: skyDockIn 0.9s var(--ease-out) both;
}

@keyframes skyDockIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sky-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #071526;
  background: linear-gradient(135deg, var(--ald-gold-2), var(--ald-gold));
  box-shadow: 0 0 18px rgba(230, 163, 23, 0.45);
}

.hero-sky-mode-name {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-width: 4.5em;
  text-align: center;
}

.hero-sky-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.hero-sky-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.hero-sky-pill:hover {
  border-color: rgba(230, 163, 23, 0.55);
  color: #fff;
  background: rgba(230, 163, 23, 0.12);
}

.hero-sky-pill.is-active {
  color: #071526;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, #fff3c4, var(--ald-gold-2));
  box-shadow: 0 0 22px rgba(243, 194, 90, 0.45);
  transform: translateY(-1px);
}

.hero-brand-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 4.5rem 1.25rem 3.25rem;
  background: linear-gradient(to top, rgba(5, 7, 12, 0.88) 0%, rgba(5, 7, 12, 0.45) 55%, transparent 100%);
  text-align: center;
  color: #fff;
  pointer-events: none;
  animation: heroBrandIn 1s var(--ease-out) 0.2s both;
}

@keyframes heroBrandIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand-kicker {
  margin: 0 0 0.5rem;
  color: var(--ald-gold-2);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-brand-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-brand-lead {
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.92rem, 2vw, 1.08rem);
}

.hero-brand-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  pointer-events: auto;
}

.scroll-hint-3d {
  z-index: 5;
  bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-3d-stage {
    min-height: 100svh;
  }

  .hero-sky-dock {
    top: calc(3.75rem + env(safe-area-inset-top, 0px));
  }

  .hero-sky-dock-inner {
    border-radius: 1.1rem;
    padding: 0.55rem 0.65rem;
  }

  .hero-sky-mode-name {
    display: none;
  }

  .hero-sky-pill {
    font-size: 0.68rem;
    padding: 0.32rem 0.55rem;
  }

  .hero-brand-overlay {
    padding: 3.5rem 1rem 2.75rem;
  }
}

.section-title {
  letter-spacing: 0.02em;
}

.section-kicker {
  color: var(--ald-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* —— 滚动显现 —— */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal-scale.is-visible {
  transform: scale(1);
}

/* —— 卡片交互 —— */
.card-hover {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent !important;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 1.1rem 2.4rem rgba(7, 21, 38, 0.14);
  border-color: rgba(230, 163, 23, 0.35) !important;
}

.card-hover .product-thumb,
.card-hover .img-contain-box img {
  transition: transform 0.55s var(--ease-out);
}

.card-hover:hover .product-thumb,
.card-hover:hover .img-contain-box img {
  transform: scale(1.06);
}

.card-hover .chip {
  transition: background 0.3s ease, color 0.3s ease;
}

.card-hover:hover .chip {
  background: rgba(230, 163, 23, 0.22);
  color: #7a5400;
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.bg-ald-dark {
  background: var(--ald-navy);
}

.bg-ald-soft {
  background: var(--ald-bg);
}

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

.img-contain-box {
  background: #0b1628;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.img-contain-box img {
  max-height: 280px;
  object-fit: contain;
}

.img-contain-box.light {
  background: #f3f1ec;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: #f3f1ec;
}

.product-thumb.contain {
  object-fit: contain;
  padding: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(230, 163, 23, 0.12);
  color: #9a6c08;
  font-size: 0.75rem;
  font-weight: 600;
}

.spec-list {
  font-size: 0.92rem;
  color: var(--ald-muted);
}

.spec-list li + li {
  margin-top: 0.35rem;
}

.process-step {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3rem;
  border-radius: 0.75rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
  cursor: default;
}

.process-step:hover {
  background: rgba(230, 163, 23, 0.1);
  transform: translateX(4px);
}

.process-step .num {
  position: absolute;
  left: 0.65rem;
  top: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ald-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.process-step:hover .num {
  background: var(--ald-gold);
  color: #1a1406;
  transform: scale(1.08);
}

.filter-bar .btn {
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-bar .btn:hover {
  transform: translateY(-2px);
}

.filter-bar .btn.active,
.filter-bar .btn:hover {
  background: var(--ald-navy);
  color: #fff;
  border-color: var(--ald-navy);
}

.filter-bar .btn.active {
  box-shadow: 0 8px 20px rgba(7, 21, 38, 0.22);
}

.product-block {
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.product-block.is-hiding {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.product-block.is-showing {
  animation: blockIn 0.45s var(--ease-out);
}

@keyframes blockIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cap-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent !important;
  cursor: default;
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(7, 21, 38, 0.12);
  border-color: rgba(230, 163, 23, 0.4) !important;
}

.cap-card .badge-tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  transition: transform 0.3s var(--ease-out);
}

.cap-card:hover .badge-tag {
  transform: scale(1.06);
}



.qr-box img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  border-radius: 0.75rem;
}

.qr-box img:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(7, 21, 38, 0.15);
}

.footer-yg {
  background: #071018;
  color: rgba(255, 255, 255, 0.85);
}

.footer-yg a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-yg a:hover {
  color: var(--ald-gold-2);
}

.footer-main {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.footer-logo {
  height: 28px !important;
  width: 28px !important;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  opacity: 0.98;
}

.footer-brand-text {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
  line-height: 1.7;
  max-width: 22rem;
}

.footer-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.footer-links {
  font-size: 0.86rem;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-contact {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.footer-contact li + li {
  margin-top: 0.65rem;
}

.footer-label {
  display: block;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 1rem 0 1.15rem;
  text-align: center;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.2rem;
}

.footer-beian a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.footer-beian-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.footer-mps-icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px;
  max-height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.mode-grid img {
  border-radius: 0.85rem;
  width: 100%;
}

.feature-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ald-gold);
  display: inline-block;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.about-point {
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.about-point:hover {
  background: rgba(230, 163, 23, 0.1);
  transform: translateX(4px);
}

.about-point:hover .feature-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(230, 163, 23, 0.18);
}

.pill-stat {
  transition: transform 0.35s var(--ease-out), background 0.35s ease, box-shadow 0.35s ease;
}

.pill-stat:hover {
  transform: translateY(-4px);
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(7, 21, 38, 0.1);
}

/* —— 回到顶部 / Toast —— */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1060;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--ald-navy);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-out), background 0.25s ease;
  box-shadow: 0 10px 24px rgba(7, 21, 38, 0.28);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--ald-gold);
  color: #1a1406;
}

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast-center {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.toast-center.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  background: rgba(7, 21, 38, 0.42);
}

.ald-center-toast {
  width: min(420px, 100%);
  background: #fff;
  color: var(--ald-text);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(7, 21, 38, 0.28);
  border-top: 4px solid var(--ald-gold);
  animation: centerToastIn 0.35s var(--ease-out);
}

.ald-center-toast.is-leaving {
  animation: centerToastOut 0.28s ease forwards;
}

.ald-center-toast__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
  color: var(--ald-navy, #071526);
}

.ald-center-toast__detail {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(7, 21, 38, 0.72);
}

@keyframes centerToastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes centerToastOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

.ald-toast {
  background: #fff;
  color: var(--ald-text);
  border-left: 4px solid var(--ald-gold);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 40px rgba(7, 21, 38, 0.18);
  animation: toastIn 0.4s var(--ease-out);
}

.ald-toast.is-leaving {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.form-control:focus {
  border-color: rgba(230, 163, 23, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(230, 163, 23, 0.18);
}

/* —— 台灯 3D 预览 —— */
.lamp-3d-panel {
  background: #fff;
}

.lamp-viewer-wrap {
  position: relative;
  min-height: 420px;
  height: 100%;
  /* 夜晚窗边：深蓝夜空 + 窗内暖光暗示 */
  background:
    radial-gradient(ellipse 70% 55% at 72% 22%, rgba(210, 225, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 45% at 28% 78%, rgba(255, 180, 110, 0.08), transparent 62%),
    linear-gradient(165deg, #060a14 0%, #0c1526 42%, #101b2c 100%);
  overflow: hidden;
}

.lamp-viewer-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  touch-action: none;
}

.lamp-viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lamp-viewer-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.lamp-viewer-hint {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid rgba(170, 195, 230, 0.18);
  color: rgba(220, 232, 248, 0.88);
  font-size: 0.72rem;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.lamp-3d-panel .col-lg-5 {
  min-height: 420px;
}

.lamp-3d-panel .card-body {
  justify-content: center;
}

.lamp-controls .btn {
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  .hero-yg {
    min-height: auto;
  }

  .navbar-brand img,
  .navbar-brand .brand-mark {
    height: 28px !important;
    width: 28px !important;
    max-height: 28px;
    max-width: 28px;
  }

  .scroll-hint {
    display: none;
  }

  .back-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .lamp-viewer-wrap,
  .lamp-viewer-wrap canvas {
    min-height: 320px;
  }
}
