/* 品牌故事页（对应 xanda-site-redesign-package BrandStory） */

.xd-st-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 47.5rem;
  overflow: hidden;
}

.xd-st-hero__img,
.xd-st-hero__shade,
.xd-st-hero__fade,
.xd-st-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.xd-st-hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

html.xd-ab .xd-st-hero__img,
html.xd-ab .xd-st-prod__visual img {
  max-width: none;
  height: 100%;
}

.xd-st-hero__shade {
  background: linear-gradient(90deg, rgba(3, 8, 18, 0.97) 0%, rgba(3, 8, 18, 0.84) 38%, rgba(3, 8, 18, 0.18) 75%, rgba(3, 8, 18, 0.24) 100%);
}

.xd-st-hero__fade {
  top: auto;
  height: 18rem;
  background: linear-gradient(to top, #030812, rgba(3, 8, 18, 0.75), transparent);
}

.xd-st-orbit {
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.12);
}

.xd-st-orbit--1 {
  left: -5rem;
  top: 9rem;
  width: 24rem;
  height: 24rem;
}

.xd-st-orbit--2 {
  left: -1rem;
  top: 12rem;
  width: 16rem;
  height: 16rem;
  border-color: rgba(94, 234, 212, 0.09);
}

@media (prefers-reduced-motion: no-preference) {
  .xd-st-orbit--1 {
    animation: xd-st-drift 16s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
  }
  .xd-st-orbit--2 {
    animation: xd-st-drift 20s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
    animation-delay: -8s;
  }
}

@keyframes xd-st-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(38px, -22px, 0) rotate(12deg); }
}

.xd-st-hero__inner {
  position: relative;
  padding: 5.5rem 0 5rem;
}

.xd-st-hero__copy {
  max-width: 48rem;
}

.xd-st-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.08);
  color: #99f6e4;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.xd-st-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.xd-st-grad {
  background: linear-gradient(90deg, #99f6e4, #bae6fd, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xd-st-hero p {
  margin: 1.6rem 0 0;
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.9;
  color: #e2e8f0;
}

.xd-st-hero p strong {
  color: #fff;
  font-weight: 600;
}

.xd-st-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.xd-st-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #5eead4;
}

.xd-st-origin {
  position: relative;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.xd-st-origin__glow {
  position: absolute;
  left: 4%;
  top: 5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.06);
  filter: blur(100px);
  pointer-events: none;
}

.xd-st-origin__grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

.xd-st-origin h2,
.xd-st-prods h2,
.xd-st-promise h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  word-break: keep-all;
}

.xd-st-origin,
.xd-st-prods,
.xd-st-promise,
.xd-st-prod {
  scroll-margin-top: 5.5rem;
}

.xd-st-lead {
  margin: 1.4rem 0 0;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #94a3b8;
}

.xd-st-quote {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #071423;
  padding: 1.7rem;
}

.xd-st-quote__glow {
  position: absolute;
  right: 0;
  top: 0;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.xd-st-quote__grid {
  position: relative;
  display: grid;
  gap: 1.7rem;
}

.xd-st-hanzi {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  color: rgba(153, 246, 228, 0.8);
}

.xd-st-quote blockquote {
  margin: 1.4rem 0 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid #5eead4;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
  color: #f1f5f9;
}

.xd-st-cite {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #64748b;
}

.xd-st-quote__copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.xd-st-quote__copy p + p {
  margin-top: 1.2rem;
  color: #94a3b8;
}

.xd-st-prods {
  background: #040c18;
  padding: 5rem 0;
}

.xd-st-prods__intro {
  max-width: 36rem;
}

.xd-st-list {
  margin-top: 3.4rem;
  display: grid;
  gap: 1.7rem;
}

.xd-st-prod {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #07111a;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.xd-st-prod__grid {
  display: grid;
}

.xd-st-prod__visual {
  position: relative;
  order: 2;
  min-height: 22rem;
  overflow: hidden;
}

.xd-st-prod__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.xd-st-prod:hover .xd-st-prod__visual img {
  transform: scale(1.05);
}

.xd-st-prod__visual--amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), #07111a 70%);
}
.xd-st-prod__visual--teal {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), #07111a 70%);
}
.xd-st-prod__visual--sky {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), #07111a 70%);
}

.xd-st-prod__ico {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 8, 18, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}

.xd-st-prod__copy {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.7rem;
}

.xd-st-prod__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xd-st-prod__idx {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.xd-st-prod__idx--amber,
.xd-st-en--amber,
.xd-st-more--amber { color: #fcd34d; }
.xd-st-prod__idx--teal,
.xd-st-en--teal,
.xd-st-more--teal { color: #5eead4; }
.xd-st-prod__idx--sky,
.xd-st-en--sky,
.xd-st-more--sky { color: #e0f2fe; }

.xd-st-prod__rule {
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.xd-st-prod__label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #64748b;
}

.xd-st-prod h3 {
  margin: 1.4rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
}

.xd-st-en {
  margin: 0.45rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.875rem;
}

.xd-st-line {
  margin: 1.2rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: #e2e8f0;
}

.xd-st-body {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
}

.xd-st-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.xd-st-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.xd-st-tag--amber { border: 1px solid rgba(252, 211, 77, 0.3); }
.xd-st-tag--teal { border: 1px solid rgba(94, 234, 212, 0.3); }
.xd-st-tag--sky { border: 1px solid rgba(186, 230, 253, 0.3); }

.xd-st-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 700;
}

.xd-st-more:hover {
  opacity: 0.8;
}

.xd-st-promise {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.xd-st-promise__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(20, 184, 166, 0.15), transparent 58%);
  pointer-events: none;
}

.xd-st-promise__inner {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
}

.xd-st-promise__mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.09);
  color: #99f6e4;
}

.xd-st-promise .xd-st-kicker {
  margin-top: 1.6rem;
}

.xd-st-promise p {
  margin: 1.6rem auto 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #cbd5e1;
}

.xd-st-pills {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin: 2.6rem auto 0;
}

.xd-st-pills div {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.xd-st-promise .xd-ab-btn--solid {
  margin-top: 2.4rem;
}

@media (max-width: 639px) {
  .xd-st-desk-only {
    display: none !important;
  }
  .xd-st .xd-ab-head__actions .xd-ab-btn--primary {
    display: none !important;
  }
  .xd-st .xd-ab-brand__name,
  .xd-st .xd-ab-head__actions .xd-ab-btn--ghost {
    white-space: nowrap;
  }
  .xd-st .xd-ab-head__inner {
    flex-wrap: nowrap;
  }
  .xd-st .xd-ab-brand__mark {
    flex-shrink: 0;
  }
}

@media (min-width: 640px) {
  .xd-st-hero {
    min-height: 50rem;
  }
  .xd-st-quote {
    padding: 2.4rem;
  }
  .xd-st-prod__copy {
    padding: 2.4rem;
  }
  .xd-st-pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .xd-st-origin__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .xd-st-quote__grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .xd-st-quote__copy {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.7rem;
  }
  .xd-st-prod__grid {
    grid-template-columns: 1fr 1fr;
  }
  .xd-st-prod--a .xd-st-prod__visual { order: 1; }
  .xd-st-prod--a .xd-st-prod__copy { order: 2; }
  .xd-st-prod--b .xd-st-prod__visual { order: 2; }
  .xd-st-prod--b .xd-st-prod__copy { order: 1; }
  .xd-st-prod__copy {
    padding: 3.4rem;
  }
}
