/* 杏吧 xlweb.mom — 独立视觉体系：潮汐青绿 × 杏色光斑 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
  --ink: #102a43;
  --ink-soft: #334e68;
  --mist: #f3faf9;
  --foam: #e6f7f4;
  --tide: #0e9aa7;
  --tide-deep: #067a86;
  --cyan: #00c2d9;
  --apricot: #e8895a;
  --apricot-deep: #d46b38;
  --line: rgba(16, 42, 67, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 40px rgba(6, 122, 134, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --dock-gap: 8px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 194, 217, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 5%, rgba(232, 137, 90, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14, 154, 167, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fcfb 0%, var(--mist) 40%, #eef8f6 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3 {
  font-family: "Noto Serif SC", serif;
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

/* —— 顶栏 —— */
.xb-mast {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(247, 252, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.xb-mast-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.xb-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(14, 154, 167, 0.25);
}

.xb-brand-name {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.xb-brand-name span {
  color: var(--tide);
}

.xb-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  display: grid;
  place-items: center;
  cursor: pointer;
  gap: 5px;
}

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

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

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

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

.xb-burger {
  display: grid;
  grid-template-rows: repeat(3, auto);
  align-content: center;
  justify-items: center;
}

.xb-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 55;
}

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

.xb-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.xb-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.xb-nav a:hover,
.xb-nav a.is-active {
  background: linear-gradient(90deg, rgba(14, 154, 167, 0.12), rgba(232, 137, 90, 0.1));
  color: var(--tide-deep);
}

@media (min-width: 900px) {
  .xb-burger {
    display: none;
  }

  .xb-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    border: 0;
  }

  .xb-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  .xb-nav a {
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
  }
}

/* —— 顶部推广区 —— */
.xb-promo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(230, 247, 244, 0.5));
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0 0.35rem;
}

.xb-promo-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

/* 顶部推广区与浮动下载坞共用同一套图标样式 */
#ads,
.xb-ads,
.xb-dock-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--dock-gap);
  width: min(100%, var(--max));
  margin: 0 auto;
  justify-items: center;
  background: transparent;
  padding: 0.15rem 0 0.25rem;
}

@media (min-width: 768px) {
  #ads,
  .xb-ads,
  .xb-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

#ads a,
.xb-ads a,
.xb-dock-grid a {
  display: block;
  text-decoration: none;
  width: 100%;
  max-width: 64px;
  border-radius: 14px;
}

#ads img,
.xb-ads img,
.xb-dock-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#ads a:hover img,
.xb-ads a:hover img,
.xb-dock-grid a:hover img {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.16);
}

#ads span,
#ads .caption,
.xb-ads span,
.xb-ads .caption,
.xb-dock-grid span {
  display: block;
  height: auto;
  font-size: 10px;
  color: #666;
  text-align: center;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ads figure,
.xb-ads figure {
  margin: 0;
  width: 100%;
}

#ads > div,
.xb-ads > div {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 64px;
}

/* —— 滚动后固定下载坞 —— */
.xb-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(247, 252, 251, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.75rem 0.35rem;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

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

.xb-dock-title {
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
}

/* —— 首屏 —— */
.xb-splash {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.xb-splash::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 217, 0.35), transparent 70%);
  top: -60px;
  right: -40px;
  animation: xb-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.xb-splash::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 137, 90, 0.28), transparent 70%);
  bottom: 10%;
  left: -50px;
  animation: xb-drift 11s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

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

.xb-splash-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .xb-splash-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.xb-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tide-deep);
  margin-bottom: 0.85rem;
}

.xb-mark::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--tide), var(--apricot));
  border-radius: 2px;
}

.xb-lede {
  font-size: 1.05rem;
  max-width: 36em;
}

.xb-splash-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, #dff7f4, #fff5ef);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin-inline: auto;
  width: min(100%, 360px);
}

.xb-splash-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: xb-ken 14s ease-in-out infinite alternate;
}

@keyframes xb-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.xb-splash-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(16, 42, 67, 0.35));
  pointer-events: none;
}

/* —— 面包屑 —— */
.xb-crumb {
  padding: 1rem 0 0.25rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.xb-crumb a {
  text-decoration: none;
  color: var(--tide-deep);
}

.xb-crumb span {
  margin: 0 0.35rem;
  opacity: 0.45;
}

/* —— 内容模块 —— */
.xb-river {
  padding: 1.5rem 0 3rem;
  display: grid;
  gap: 2.25rem;
}

.xb-pane {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: xb-rise 0.7s var(--ease) both;
}

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

.xb-pane--soft {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(230, 247, 244, 0.75));
}

.xb-pane--tide {
  background: linear-gradient(135deg, rgba(14, 154, 167, 0.1), rgba(255, 255, 255, 0.85) 45%, rgba(232, 137, 90, 0.08));
}

.xb-split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 780px) {
  .xb-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

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

.xb-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.1);
  background: #fff;
}

.xb-shot img {
  width: 100%;
  display: block;
}

.xb-mosaic {
  display: grid;
  gap: 1rem;
}

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

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

.xb-tile {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.xb-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.xb-tile h3 {
  color: var(--tide-deep);
}

.xb-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.xb-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(14, 154, 167, 0.1);
  color: var(--tide-deep);
  border: 1px solid rgba(14, 154, 167, 0.18);
}

.xb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--tide), var(--cyan));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(14, 154, 167, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.xb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 154, 167, 0.42);
  color: #fff !important;
}

.xb-cta--warm {
  background: linear-gradient(120deg, var(--apricot), #f0a57a);
  box-shadow: 0 10px 24px rgba(232, 137, 90, 0.35);
}

.xb-quote {
  border-left: 3px solid var(--apricot);
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 1rem 0;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  font-size: 1.05rem;
}

.xb-statline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .xb-statline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.xb-stat {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.xb-stat b {
  display: block;
  font-size: 1.25rem;
  color: var(--tide-deep);
  font-family: "Noto Serif SC", serif;
}

.xb-stat span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.xb-textblock p:last-child {
  margin-bottom: 0;
}

.xb-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .xb-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.xb-gallery figure {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.xb-gallery figcaption {
  padding: 0.65rem 0.85rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* —— 页脚 —— */
.xb-foot {
  margin-top: 2rem;
  padding: 2rem 0 6.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(14, 154, 167, 0.06));
}

.xb-foot-inner {
  display: grid;
  gap: 1.25rem;
}

.xb-foot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.xb-foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.xb-foot nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

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

.xb-foot nav a:hover {
  color: var(--tide-deep);
}

.xb-copy {
  font-size: 0.8rem;
  color: #627d98;
  margin: 0;
}

/* —— 法律 / 错误页 —— */
.xb-legal .xb-pane {
  max-width: 820px;
  margin-inline: auto;
}

.xb-legal h2 {
  margin-top: 1.75rem;
}

.xb-error {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.xb-error-code {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(3.5rem, 12vw, 6rem);
  background: linear-gradient(120deg, var(--tide), var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.xb-error p {
  max-width: 28em;
  margin-inline: auto;
}

/* —— 工具 —— */
.xb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.xb-links-inline a {
  margin-right: 0.75rem;
}
