/* 杏吧 xbapp.pics — 移动优先品牌站 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Sora:wght@500;700&display=swap");

:root {
  --xba-ink: #0b0614;
  --xba-panel: #160e22;
  --xba-glass: rgba(28, 16, 42, 0.72);
  --xba-line: rgba(255, 140, 180, 0.22);
  --xba-rose: #ff4d8d;
  --xba-orchid: #c84bff;
  --xba-ember: #ff6a3d;
  --xba-gold: #ffc46b;
  --xba-mist: #f3e9f7;
  --xba-mute: #b9a8c9;
  --xba-grad: linear-gradient(125deg, #c84bff 0%, #ff4d8d 48%, #ff6a3d 100%);
  --xba-grad-soft: linear-gradient(160deg, rgba(200, 75, 255, 0.25), rgba(255, 106, 61, 0.12));
  --xba-radius: 22px;
  --xba-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --xba-nav-h: 64px;
  --xba-promo-gap: 0px;
  --xba-font: "Noto Sans SC", "Sora", system-ui, sans-serif;
  --xba-display: "Sora", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--xba-font);
  color: var(--xba-mist);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 75, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 77, 141, 0.22), transparent 55%),
    radial-gradient(800px 700px at 50% 100%, rgba(255, 106, 61, 0.12), transparent 50%),
    var(--xba-ink);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--xba-rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--xba-gold);
}

.xba-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* —— 顶部推广 —— */
.xba-promo {
  position: relative;
  z-index: 40;
  padding: 10px 0 4px;
  background: linear-gradient(180deg, rgba(11, 6, 20, 0.95), rgba(11, 6, 20, 0.55));
  border-bottom: 1px solid var(--xba-line);
}

.xba-promo[hidden] {
  display: none !important;
}

/* 全站广告图标样式与 PC 漂浮广告区（xb.html #ads）保持一致 */
#ads,
#xba-promo-ads,
#xba-dock-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
}

#ads > div,
#xba-promo-ads > div,
#xba-dock-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure,
#xba-promo-ads figure,
#xba-dock-ads figure {
  margin: 0;
}

#ads img,
#xba-promo-ads img,
#xba-dock-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a,
#xba-promo-ads a,
#xba-dock-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
#xba-promo-ads img:hover,
#xba-dock-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption,
#xba-promo-ads figcaption,
#xba-promo-ads .caption,
#xba-dock-ads figcaption,
#xba-dock-ads .caption {
  height: 15px;
  font-size: 12px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

/* —— 导航 —— */
.xba-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--xba-glass);
  border-bottom: 1px solid var(--xba-line);
}

.xba-topbar__inner {
  height: var(--xba-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xba-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.xba-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.xba-brand__name {
  font-family: var(--xba-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  background: var(--xba-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xba-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.xba-nav a {
  color: var(--xba-mist);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.xba-nav a:hover,
.xba-nav a.is-on {
  background: rgba(255, 77, 141, 0.15);
  color: #fff;
}

.xba-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--xba-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.xba-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.xba-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.xba-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.xba-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.xba-drawer {
  display: none;
  border-top: 1px solid var(--xba-line);
  background: rgba(11, 6, 20, 0.96);
  padding: 12px 16px 18px;
}

.xba-drawer.is-open {
  display: block;
}

.xba-drawer a {
  display: block;
  padding: 12px 10px;
  color: var(--xba-mist);
  text-decoration: none;
  border-radius: 12px;
}

.xba-drawer a:hover {
  background: rgba(200, 75, 255, 0.12);
  color: #fff;
}

@media (min-width: 900px) {
  .xba-nav {
    display: flex;
  }

  .xba-burger {
    display: none;
  }

  .xba-drawer {
    display: none !important;
  }
}

/* —— 滚动后固定下载条 —— */
.xba-dock {
  position: sticky;
  top: var(--xba-nav-h);
  z-index: 45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  background: rgba(14, 8, 24, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.xba-dock.is-show {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0;
  border-bottom-color: var(--xba-line);
}

/* 固定下载条：限制每行个数，图标样式仍与 #ads 一致 */
#xba-dock-ads {
  width: min(100%, 350px); /* 70px × 5 */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  #xba-dock-ads {
    width: min(100%, 560px); /* 70px × 8 */
  }
}

/* —— Hero —— */
.xba-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  padding: 48px 0 56px;
  overflow: hidden;
}

.xba-hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(200, 75, 255, 0.45), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(255, 77, 141, 0.35), transparent 40%),
    radial-gradient(circle at 55% 70%, rgba(255, 106, 61, 0.28), transparent 45%);
  filter: blur(8px);
  animation: xba-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes xba-pulse {
  from {
    transform: scale(1) translateY(0);
    opacity: 0.85;
  }
  to {
    transform: scale(1.08) translateY(12px);
    opacity: 1;
  }
}

.xba-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.xba-hero__brand-mark {
  width: min(220px, 58vw);
  filter: drop-shadow(0 20px 40px rgba(255, 77, 141, 0.35));
  animation: xba-float 5.5s ease-in-out infinite;
}

@keyframes xba-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.xba-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 5.2vw, 2.75rem);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0.02em;
  max-width: 18em;
}

.xba-hero__lead {
  margin: 12px 0 0;
  color: var(--xba-mute);
  font-size: 1.02rem;
  max-width: 36em;
}

.xba-hero__mesh {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--xba-ink));
  pointer-events: none;
}

@media (min-width: 900px) {
  .xba-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .xba-hero__visual {
    justify-self: end;
  }
}

/* —— 通用区块 —— */
.xba-section {
  padding: 56px 0;
  position: relative;
}

.xba-section + .xba-section {
  border-top: 1px solid rgba(255, 140, 180, 0.08);
}

.xba-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xba-gold);
  margin-bottom: 10px;
  font-family: var(--xba-display);
}

.xba-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  line-height: 1.35;
  font-weight: 800;
}

.xba-section h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: #ffe3f0;
  font-weight: 700;
}

.xba-prose p {
  margin: 0 0 1.05em;
  color: #e8dcef;
  font-size: 1rem;
}

.xba-prose p:last-child {
  margin-bottom: 0;
}

/* 图文交错 */
.xba-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.xba-split--flip .xba-split__media {
  order: -1;
}

@media (min-width: 860px) {
  .xba-split {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .xba-split--flip .xba-split__media {
    order: 0;
  }

  .xba-split--flip .xba-split__text {
    order: -1;
  }
}

.xba-phone {
  position: relative;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--xba-shadow);
  overflow: hidden;
}

.xba-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--xba-grad-soft);
  pointer-events: none;
}

.xba-phone img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

/* 卡片矩阵 */
.xba-mosaic {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .xba-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .xba-mosaic--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.xba-tile {
  background: linear-gradient(165deg, rgba(36, 22, 54, 0.95), rgba(18, 10, 30, 0.9));
  border: 1px solid var(--xba-line);
  border-radius: var(--xba-radius);
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.xba-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 141, 0.45);
}

.xba-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--xba-grad);
  margin-bottom: 14px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 800;
  font-family: var(--xba-display);
}

.xba-tile h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.xba-tile p {
  margin: 0;
  color: var(--xba-mute);
  font-size: 0.95rem;
}

.xba-tile--media {
  padding: 0;
  overflow: hidden;
}

.xba-tile--media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.xba-tile--media .xba-tile__body {
  padding: 16px 18px 20px;
}

/* 纯文本强调块 */
.xba-ribbon {
  border-radius: 26px;
  padding: 28px 22px;
  background: var(--xba-grad-soft);
  border: 1px solid var(--xba-line);
  position: relative;
  overflow: hidden;
}

.xba-ribbon::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 196, 107, 0.12);
  pointer-events: none;
}

/* 行动区（非 Hero / 非导航） */
.xba-cta-band {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.xba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
}

.xba-btn--glow {
  color: #fff;
  background: var(--xba-grad);
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
}

.xba-btn--glow:hover {
  color: #fff;
  filter: brightness(1.06);
}

.xba-btn--ghost {
  color: #fff;
  background: transparent;
  border: 1px solid var(--xba-line);
}

.xba-btn--ghost:hover {
  border-color: var(--xba-rose);
  color: #fff;
}

/* 面包屑 */
.xba-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--xba-mute);
}

.xba-crumb a {
  color: var(--xba-mute);
  text-decoration: none;
}

.xba-crumb a:hover {
  color: var(--xba-rose);
}

.xba-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* 法律页 */
.xba-legal {
  padding: 24px 0 72px;
}

.xba-legal h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 8px 0 18px;
}

.xba-legal h2 {
  margin-top: 36px;
  font-size: 1.25rem;
}

.xba-legal p,
.xba-legal li {
  color: #e8dcef;
}

.xba-legal ul {
  padding-left: 1.2em;
}

.xba-panel {
  background: rgba(22, 14, 34, 0.75);
  border: 1px solid var(--xba-line);
  border-radius: 24px;
  padding: 26px 22px;
}

/* 错误页 */
.xba-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.xba-error__code {
  font-family: var(--xba-display);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--xba-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.xba-error h1 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.xba-error p {
  color: var(--xba-mute);
  max-width: 28em;
  margin: 0 auto 24px;
}

/* 页脚 */
.xba-foot {
  margin-top: 40px;
  border-top: 1px solid var(--xba-line);
  padding: 36px 0 48px;
  background: rgba(0, 0, 0, 0.25);
}

.xba-foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.xba-foot__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.xba-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.xba-foot nav a {
  color: var(--xba-mute);
  text-decoration: none;
  font-size: 0.92rem;
}

.xba-foot nav a:hover {
  color: #fff;
}

.xba-foot__copy {
  color: #8f7ea3;
  font-size: 0.85rem;
  margin: 0;
}

/* 入场微动效 */
.xba-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.xba-reveal.is-in {
  opacity: 1;
  transform: none;
}

.xba-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.xba-chip {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--xba-line);
  color: var(--xba-mute);
  background: rgba(255, 255, 255, 0.03);
}

.xba-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .xba-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.xba-stat {
  text-align: center;
  padding: 16px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 140, 180, 0.12);
}

.xba-stat strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--xba-display);
  background: var(--xba-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xba-stat span {
  font-size: 0.82rem;
  color: var(--xba-mute);
}
