@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --xb-ink: #102832;
  --xb-deep: #0a1c24;
  --xb-sea: #1a6b6a;
  --xb-mint: #5ec4b0;
  --xb-apricot: #e89a5c;
  --xb-peach: #f3c29a;
  --xb-mist: #eef6f3;
  --xb-foam: #f7fbf9;
  --xb-cloud: #d5e8e2;
  --xb-mute: #5a7370;
  --xb-line: rgba(16, 40, 50, 0.12);
  --xb-glass: rgba(255, 255, 255, 0.55);
  --xb-shadow: 0 18px 40px rgba(16, 40, 50, 0.12);
  --xb-radius: 22px;
  --xb-max: 1080px;
  --xb-font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  --xb-font-body: 'Noto Serif SC', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--xb-font-body);
  color: var(--xb-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 196, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(232, 154, 92, 0.22), transparent 50%),
    linear-gradient(180deg, #f3faf7 0%, var(--xb-foam) 40%, #e8f3ef 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--xb-sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--xb-apricot);
}

.xb-wrap {
  width: min(100% - 32px, var(--xb-max));
  margin-inline: auto;
}

/* Top promo strip */
.xb-promo-strip {
  background: linear-gradient(90deg, #12353a, #1a5550 48%, #2a4a3a);
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(243, 194, 154, 0.25);
}

.xb-promo-strip .xb-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  padding: 0 10px;
}

.xb-promo-strip .xb-ads figure {
  margin: 0;
  width: 64px;
  text-align: center;
}

.xb-promo-strip .xb-ads img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.xb-promo-strip .xb-ads a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.xb-promo-strip .xb-ads .xb-cap {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(238, 246, 243, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
.xb-mast {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 251, 249, 0.82);
  border-bottom: 1px solid var(--xb-line);
}

.xb-mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.xb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--xb-ink);
}

.xb-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(26, 107, 106, 0.25);
}

.xb-brand span {
  font-family: var(--xb-font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.xb-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.xb-nav a {
  text-decoration: none;
  color: var(--xb-ink);
  font-size: 0.95rem;
  position: relative;
}

.xb-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--xb-mint), var(--xb-apricot));
  transition: width 0.25s ease;
}

.xb-nav a:hover::after,
.xb-nav a.xb-on::after {
  width: 100%;
}

.xb-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xb-line);
  border-radius: 12px;
  background: var(--xb-glass);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.xb-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--xb-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.xb-burger.xb-open i:nth-child(2) {
  opacity: 0;
}

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

/* Sticky download dock */
.xb-dock {
  position: sticky;
  top: 64px;
  z-index: 70;
  background: rgba(16, 40, 50, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  border-bottom: 1px solid rgba(94, 196, 176, 0.25);
}

.xb-dock.xb-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.xb-dock-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: min(100% - 24px, var(--xb-max));
  margin-inline: auto;
}

.xb-dock-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(238, 246, 243, 0.8);
  font-size: 10px;
}

.xb-dock-grid img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.xb-dock-grid span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.xb-hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}

.xb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 107, 106, 0.9), rgba(16, 40, 50, 0.85)),
    url('screen-home-recommend.jpg') center/cover no-repeat;
  z-index: 0;
}

.xb-hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 154, 92, 0.45), transparent 70%);
  filter: blur(10px);
  animation: xb-drift 9s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes xb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, -30px) scale(1.08); }
}

.xb-hero-inner {
  position: relative;
  z-index: 2;
  color: var(--xb-mist);
  max-width: 720px;
}

.xb-hero-brand {
  font-family: var(--xb-font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #fff, var(--xb-peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: xb-rise 0.9s ease both;
}

.xb-hero h1 {
  font-family: var(--xb-font-display);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.45;
  animation: xb-rise 1s ease 0.12s both;
}

.xb-hero p {
  margin: 0;
  font-size: 1.02rem;
  opacity: 0.92;
  max-width: 34em;
  animation: xb-rise 1.05s ease 0.22s both;
}

@keyframes xb-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb */
.xb-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--xb-mute);
}

.xb-crumb a {
  text-decoration: none;
}

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

/* Sections */
.xb-section {
  padding: 42px 0;
}

.xb-section h2 {
  font-family: var(--xb-font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: 0 0 16px;
  color: var(--xb-deep);
}

.xb-section h3 {
  font-family: var(--xb-font-display);
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--xb-sea);
}

.xb-section p {
  margin: 0 0 1.1em;
  font-size: 1.02rem;
  color: #243c42;
}

.xb-lead {
  font-size: 1.08rem;
  color: var(--xb-mute);
}

.xb-panel {
  background: var(--xb-glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--xb-radius);
  padding: 28px 24px;
  box-shadow: var(--xb-shadow);
  backdrop-filter: blur(10px);
}

.xb-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.xb-split.xb-flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.xb-split.xb-flip .xb-shot {
  order: -1;
}

.xb-shot {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--xb-shadow);
  position: relative;
}

.xb-shot img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.xb-shot:hover img {
  transform: scale(1.03);
}

.xb-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(16, 40, 50, 0.2));
  pointer-events: none;
}

.xb-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.xb-tile {
  background: linear-gradient(160deg, #fff, #eef8f4);
  border: 1px solid var(--xb-cloud);
  border-radius: 18px;
  padding: 20px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xb-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(26, 107, 106, 0.12);
}

.xb-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

.xb-tile img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  max-height: 280px;
}

.xb-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.xb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.xb-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(94, 196, 176, 0.15);
  color: var(--xb-sea);
  font-size: 0.88rem;
  border: 1px solid rgba(94, 196, 176, 0.35);
}

.xb-quote {
  border-left: 4px solid var(--xb-apricot);
  padding: 8px 0 8px 18px;
  margin: 24px 0;
  color: var(--xb-mute);
  font-style: italic;
}

.xb-band {
  background: linear-gradient(120deg, #12353a, #1f5c57);
  color: var(--xb-mist);
  border-radius: 28px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.xb-band::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, rgba(232, 154, 92, 0.35), transparent 70%);
  animation: xb-pulse 4s ease-in-out infinite;
}

@keyframes xb-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.xb-band h2,
.xb-band p {
  position: relative;
  z-index: 1;
  color: inherit;
}

.xb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.xb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xb-apricot), #d67a3c);
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px rgba(232, 154, 92, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xb-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(232, 154, 92, 0.45);
}

.xb-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.xb-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.xb-timeline {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.xb-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.xb-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--xb-mint), var(--xb-sea));
  color: #fff;
  font-family: var(--xb-font-display);
  font-size: 1.2rem;
}

.xb-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.xb-gallery .xb-shot {
  border-radius: 14px;
}

.xb-gallery img {
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* Legal pages */
.xb-legal {
  padding: 20px 0 60px;
}

.xb-legal .xb-panel {
  padding: 32px 28px;
}

.xb-legal h1 {
  font-family: var(--xb-font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 8px;
}

.xb-legal .xb-meta {
  color: var(--xb-mute);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.xb-legal h2 {
  margin-top: 32px;
}

/* Error pages */
.xb-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.xb-error-code {
  font-family: var(--xb-font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--xb-sea), var(--xb-apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: xb-rise 0.8s ease both;
}

.xb-error h1 {
  font-family: var(--xb-font-display);
  font-size: 1.5rem;
  margin: 12px 0;
}

/* Footer */
.xb-foot {
  margin-top: 40px;
  background: var(--xb-deep);
  color: rgba(238, 246, 243, 0.78);
  padding: 36px 0 28px;
}

.xb-foot a {
  color: rgba(238, 246, 243, 0.88);
  text-decoration: none;
}

.xb-foot a:hover {
  color: var(--xb-peach);
}

.xb-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-bottom: 18px;
}

.xb-copy {
  font-size: 0.88rem;
  opacity: 0.7;
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .xb-split,
  .xb-split.xb-flip {
    grid-template-columns: 1fr;
  }

  .xb-split.xb-flip .xb-shot {
    order: 0;
  }

  .xb-mosaic {
    grid-template-columns: 1fr;
  }

  .xb-rail {
    grid-template-columns: 1fr;
  }

  .xb-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .xb-dock-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .xb-burger {
    display: inline-flex;
  }

  .xb-nav {
    position: fixed;
    inset: 64px 12px auto;
    background: rgba(247, 251, 249, 0.96);
    border: 1px solid var(--xb-line);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 0;
    box-shadow: var(--xb-shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .xb-nav.xb-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .xb-nav a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--xb-line);
  }

  .xb-nav a:last-child {
    border-bottom: 0;
  }

  .xb-dock {
    top: 64px;
  }
}

@media (max-width: 560px) {
  .xb-hero {
    padding: 36px 0 44px;
  }

  .xb-panel {
    padding: 22px 16px;
  }

  .xb-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .xb-dock-grid img {
    width: 42px;
    height: 42px;
  }
}
