:root {
  --spectra-bg: #07040f;
  --spectra-surface: #120a20;
  --spectra-magenta: #f20f7a;
  --spectra-coral: #ff553d;
  --spectra-violet: #a64dff;
  --spectra-cyan: #49e6ff;
  --spectra-text: #f8f5ff;
  --spectra-muted: #a99dbb;
}

html { scroll-behavior: smooth; }
body { background: var(--spectra-bg); }

header {
  height: 72px;
  color: var(--spectra-text);
  background: rgba(7, 4, 15, .82);
  border-color: rgba(255, 255, 255, .1);
}

.brand-mark { background: linear-gradient(135deg, var(--spectra-coral), var(--spectra-magenta)) !important; }
.btn.primary { background: linear-gradient(100deg, var(--spectra-coral), var(--spectra-magenta)); }

.hero {
  min-height: min(850px, calc(100vh - 72px));
  display: block;
  position: relative;
  color: var(--spectra-text);
  background:
    radial-gradient(circle at 67% 46%, rgba(166, 77, 255, .22), transparent 28%),
    radial-gradient(circle at 73% 72%, rgba(242, 15, 122, .17), transparent 20%),
    linear-gradient(135deg, #05030b 0%, #0c0618 58%, #090313 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.hero-copy {
  width: min(39vw, 610px);
  min-height: 670px;
  padding: clamp(90px, 11vh, 142px) 0 80px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.hero-copy::before { display: none; }
.hero h1 {
  max-width: 580px;
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 6.2vw, 102px);
  line-height: .98;
  letter-spacing: -.075em;
  text-wrap: balance;
  text-shadow: 0 0 45px rgba(242, 15, 122, .17);
}
.hero h1::first-line { color: #fff; }
.hero p {
  max-width: 450px;
  margin: 28px 0 0;
  color: var(--spectra-muted);
  font-size: 14px;
  line-height: 1.75;
}
.hero-actions { margin-top: 30px; pointer-events: auto; }
.hero-actions .btn {
  min-height: 50px;
  border-radius: 6px;
  font-size: 13px;
}
.hero-actions .ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.035); }
.hero-visual { display: none; }

.spectra-stage {
  --active: 0;
  position: absolute;
  inset: 0 0 0 36%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  perspective: 1400px;
  user-select: none;
}
.spectra-stage:active { cursor: grabbing; }
.spectra-stage::before,
.spectra-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(217, 124, 255, .22);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-8deg);
}
.spectra-stage::before {
  width: 900px; height: 570px; left: 5%; top: 29%;
  box-shadow: 0 0 60px rgba(242, 15, 122, .12), inset 0 0 45px rgba(166, 77, 255, .08);
}
.spectra-stage::after {
  width: 710px; height: 420px; left: 15%; top: 39%;
  border-color: rgba(242, 15, 122, .42);
  box-shadow: 0 0 35px rgba(242, 15, 122, .2);
}

.spectra-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.spectra-atmosphere i {
  --x: calc((var(--i) * 13% + 6%));
  position: absolute;
  left: var(--x);
  top: calc(9% + (var(--i) % 3) * 29%);
  color: rgba(188, 99, 255, .24);
  font: 300 clamp(22px, 3vw, 48px)/1 sans-serif;
  filter: blur(.15px);
  animation: spectra-float calc(5s + var(--i) * .7s) ease-in-out infinite alternate;
}

.spectra-orbit { position: absolute; inset: 0; transform-style: preserve-3d; }
.spectra-product {
  --distance: max(calc(var(--offset) * -1), var(--offset));
  width: clamp(160px, 23vw, 380px);
  height: clamp(220px, 40vw, 570px);
  position: absolute;
  left: 47%;
  top: 46%;
  z-index: calc(20 - var(--distance));
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 31vw))
    translateY(calc(var(--distance) * 5.5vh))
    translateZ(calc(var(--distance) * -230px))
    rotateY(calc(var(--offset) * -22deg))
    scale(calc(1 - var(--distance) * .12));
  opacity: calc(1 - var(--distance) * .22);
  transition: transform .8s cubic-bezier(.2,.8,.15,1), opacity .6s ease, filter .6s ease;
  filter: saturate(calc(1 - var(--distance) * .18));
}
.spectra-product img {
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 35px 28px rgba(0,0,0,.58)) drop-shadow(0 0 26px rgba(188,73,255,.18));
  animation: product-hover 3.8s ease-in-out infinite alternate;
}
.spectra-product img.background-kept { border-radius: 18px; }
.spectra-product > span {
  position: absolute; left: 16%; top: 11%;
  color: rgba(255,255,255,.38);
  font: 600 10px/1 sans-serif;
  letter-spacing: .16em;
}
.spectra-product[data-active="true"] img {
  filter: drop-shadow(0 42px 35px rgba(0,0,0,.66)) drop-shadow(0 0 34px rgba(242,15,122,.28));
}

.spectra-panel {
  width: min(270px, 24vw);
  padding: 24px;
  position: absolute;
  right: 4vw;
  top: 22%;
  z-index: 30;
  color: #fff;
  background: linear-gradient(145deg, rgba(33,15,54,.84), rgba(13,8,25,.65));
  border: 1px solid rgba(230, 159, 255, .28);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
  transform: rotateY(-5deg);
}
.spectra-panel > span { color: var(--spectra-magenta); font: 700 9px/1 sans-serif; letter-spacing: .16em; }
.spectra-panel h2 { margin: 18px 0 10px; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.22; }
.spectra-panel p { margin: 0 0 26px; color: var(--spectra-muted); font-size: 11px; }
.spectra-panel button {
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; color: #fff;
  border: 0; border-radius: 6px;
  background: linear-gradient(100deg, var(--spectra-coral), var(--spectra-magenta));
}

.spectra-arrow {
  width: 48px; height: 48px;
  position: absolute; z-index: 35; top: 53%;
  color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  background: rgba(10,5,18,.6); backdrop-filter: blur(10px);
  transition: background .2s, transform .2s;
}
.spectra-arrow:hover { background: var(--spectra-magenta); transform: scale(1.08); }
.spectra-arrow.prev { left: 3%; }
.spectra-arrow.next { right: 3%; }
.spectra-hint {
  position: absolute; left: 47%; bottom: 7%; z-index: 35;
  transform: translateX(-50%); color: rgba(255,255,255,.72);
  font-size: 11px; letter-spacing: .08em;
}
.spectra-hint span { margin-right: 10px; color: var(--spectra-magenta); font-weight: 800; }
.spectra-progress {
  position: absolute; left: 47%; bottom: 4%; z-index: 35;
  display: flex; gap: 7px; transform: translateX(-50%);
}
.spectra-progress b { width: 20px; height: 2px; background: rgba(255,255,255,.22); transition: width .3s, background .3s; }
.spectra-progress b.active { width: 38px; background: linear-gradient(90deg, var(--spectra-coral), var(--spectra-magenta)); }
.spectra-phone {
  position: fixed; left: 26px; bottom: 24px; z-index: 48;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 17px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(14,7,25,.78); box-shadow: 0 16px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
}
.spectra-phone::before {
  content: "☎"; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--spectra-coral), var(--spectra-magenta));
}
.spectra-phone span { color: var(--spectra-muted); font-size: 10px; }
.spectra-phone b { font-size: 13px; letter-spacing: .04em; }

.featured-section { background: #0d0716; border-top: 1px solid rgba(255,255,255,.08); }
.category-section {
  --category-progress: 0;
  padding: 72px 0 54px;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at calc(12% + var(--category-progress) * 76%) 100%, rgba(242,15,122,.14), transparent 26%),
    #090511;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: background-position .3s;
}
.category-title { padding-bottom: 30px; }
.category-title h2 { font-size: clamp(36px, 4vw, 64px); }
.category-title p { color: #84798f; font-size: 11px; letter-spacing: .08em; }
.category-rail {
  gap: 12px;
  padding: 0 4vw 18px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.category-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.category-item {
  flex: 0 0 clamp(160px, 15vw, 218px);
  min-height: 112px;
  padding: 22px 20px;
  gap: 15px;
  color: #b9abc8;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  scroll-snap-align: center;
  transform: translateY(0);
  transition: color .25s, background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.category-item svg { font-size: 27px; color: #c77dff; }
.category-item::after {
  content: "选择类目";
  position: absolute; left: 20px; bottom: 14px;
  color: rgba(255,255,255,.28); font-size: 8px; letter-spacing: .14em;
}
.category-item:hover {
  color: #fff;
  background: rgba(166,77,255,.12);
  border-color: rgba(199,125,255,.42);
  transform: translateY(-5px);
}
.category-item.selected {
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.17), transparent 32%),
    linear-gradient(115deg, var(--spectra-coral), var(--spectra-magenta) 58%, #8429db);
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(242,15,122,.22);
  transform: translateY(-5px);
}
.category-item.selected svg { color: #fff; }
.category-item.selected::after { color: rgba(255,255,255,.68); content: "CURRENT / 当前"; }
.category-slider-meta {
  padding: 2px 4vw 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  color: #776d82;
  font-size: 10px;
  letter-spacing: .06em;
}
.category-slider-meta b { margin-right: 8px; color: var(--spectra-magenta); letter-spacing: .14em; }
.category-slider-progress { height: 1px; position: relative; overflow: hidden; background: rgba(255,255,255,.1); }
.category-slider-progress i {
  width: 18%; height: 100%; position: absolute; left: 0; top: 0;
  background: linear-gradient(90deg, var(--spectra-coral), var(--spectra-magenta), var(--spectra-violet));
  transform: translateX(calc(var(--category-progress) * 455%));
  transition: transform .16s linear;
}
.category-section .rail-arrows button {
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  transition: background .2s, border-color .2s, transform .2s;
}
.category-section .rail-arrows button:hover {
  background: var(--spectra-magenta);
  border-color: var(--spectra-magenta);
  transform: translateY(-2px);
}
.catalog { color: #fff; background: linear-gradient(180deg, #0b0613, #08040e); }
.catalog-head h2,
.catalog-head h3,
.catalog-head strong,
.catalog-tools,
.product-info h3 { color: #fff; }
.catalog-head p,
.product-info p,
.product-info small,
.product-info span { color: #a99dbb; }
.catalog-tools label,
.catalog-tools select {
  color: #ece6f5;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
}
.catalog-tools input { color: #fff; }
.catalog-tools input::placeholder { color: #756b82; }
.product-card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
.product-card:hover { border-color: rgba(242,15,122,.55); box-shadow: 0 24px 55px rgba(0,0,0,.35); }
.image-button {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.98), rgba(239,233,246,.94) 54%, rgba(197,184,211,.9) 100%);
}
.image-button img {
  mix-blend-mode: normal;
  filter: brightness(1.07) contrast(1.04) saturate(1.08);
}
.product-info { color: #fff; }
.product-info > button {
  color: #fff;
  border-color: rgba(255,255,255,.14);
}
.product-info > button:hover { color: var(--spectra-magenta); }
.service { background: linear-gradient(125deg, #140923, #090510); }
.service h2,
.service p,
.service b { color: #fff; }
.contact-strip {
  color: #fff;
  background:
    radial-gradient(circle at 75% 15%, rgba(166,77,255,.12), transparent 28%),
    #08040e;
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact-heading h2 { color: #fff; }
.contact-heading p { color: #a99dbb; }
.contact-grid {
  border-top-color: rgba(255,255,255,.11);
  border-left-color: rgba(255,255,255,.11);
}
.contact-grid button {
  color: #d9d1e3;
  border-right-color: rgba(255,255,255,.11);
  border-bottom-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.018);
}
.contact-grid button:hover {
  color: #fff;
  background: color-mix(in srgb, var(--channel-color) 72%, #170b25);
}
.contact-grid span { color: inherit; }

@keyframes spectra-float {
  from { transform: translate3d(-8px, -10px, 0) rotate(-8deg); opacity: .18; }
  to { transform: translate3d(14px, 18px, 0) rotate(12deg); opacity: .5; }
}
@keyframes product-hover {
  from { transform: translateY(-7px) rotate(-1deg); }
  to { transform: translateY(9px) rotate(1.2deg); }
}

@media (max-width: 900px) {
  .hero { min-height: 790px; }
  .hero-copy {
    width: 100%; min-height: 0; padding: 62px 22px 0;
    align-items: flex-start; justify-content: flex-start;
  }
  .hero h1 { max-width: 390px; font-size: clamp(48px, 14vw, 74px); }
  .hero p { max-width: 330px; margin-top: 18px; font-size: 12px; }
  .hero-actions { margin-top: 20px; flex-direction: row; }
  .spectra-stage { inset: 285px 0 0; touch-action: pan-y; }
  .spectra-stage::before { width: 650px; height: 410px; left: -30%; top: 25%; }
  .spectra-stage::after { width: 520px; height: 310px; left: -7%; top: 35%; }
  .spectra-product {
    width: min(58vw, 310px); height: min(74vw, 410px);
    left: 50%; top: 47%;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--offset) * 72vw))
      translateY(calc(var(--distance) * 3vh))
      translateZ(calc(var(--distance) * -160px))
      rotateY(calc(var(--offset) * -18deg))
      scale(calc(1 - var(--distance) * .12));
  }
  .spectra-panel {
    width: 150px; padding: 14px; right: 12px; top: 8%;
    border-radius: 10px; transform: none;
  }
  .spectra-panel > span, .spectra-panel p { display: none; }
  .spectra-panel h2 { margin: 0 0 10px; font-size: 12px; }
  .spectra-panel button { height: 36px; padding: 0 10px; font-size: 10px; }
  .spectra-arrow { display: none; }
  .spectra-hint { bottom: 8%; }
  .spectra-hint span { display: none; }
  .spectra-hint::after { content: "左右滑动切换商品"; }
  .spectra-hint { font-size: 0; }
  .spectra-hint::after { font-size: 11px; }
  .spectra-progress { bottom: 5%; }
  .spectra-phone {
    left: 14px; bottom: 82px; padding: 9px 12px;
  }
  .spectra-phone::before { width: 28px; height: 28px; }
  .spectra-phone span { display: none; }
  .spectra-phone b { font-size: 11px; }
  .category-section { padding: 54px 0 42px; }
  .category-title { padding-bottom: 22px; }
  .category-title h2 { font-size: 34px; }
  .category-item { flex-basis: 150px; min-height: 98px; padding: 18px 16px; }
  .category-item::after { left: 16px; bottom: 11px; }
  .category-slider-meta { grid-template-columns: 1fr; gap: 10px; }
}

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