/* 杏吧 · xlweb.quest — Ink Tide visual system */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #13221f;
  --ink-soft: #2a403b;
  --foam: #f2faf7;
  --mist: #e4f3ee;
  --leaf: #1f7a62;
  --leaf-deep: #0f4f40;
  --signal: #ef6b45;
  --signal-soft: #ffd8cc;
  --line: rgba(19, 34, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(15, 79, 64, 0.12);
  --radius: 22px;
  --nav-h: 64px;
  --promo-gap: 12px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 122, 98, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(239, 107, 69, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fcfa 0%, var(--foam) 40%, #eef7f3 100%);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal);
}

.xb-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.xb-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* shared ad icons — match xl.html */
.ads-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  gap: 0;
}

.ads-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.ads-grid figure {
  margin: 0;
  text-align: center;
}

.ads-grid a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.ads-grid img {
  width: 65px;
  height: 65px;
  max-width: 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-grid a:hover img,
.ads-grid img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.ads-grid figcaption,
.ads-grid .caption {
  height: 15px;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* top promo rail */
.promo-rail {
  background: #fff;
  padding: 4px 8px 2px;
  border-bottom: 1px solid var(--line);
}

.promo-rail .ads-grid {
  max-width: var(--max);
  margin: 8px auto;
}

/* floating download strip — fixed under nav after scroll */
.dock-download {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 45;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(19, 34, 31, 0.08);
  padding: 4px 8px 2px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.dock-download.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dock-download .ads-grid {
  max-width: var(--max);
  margin: 8px auto;
}

/* mobile: 5 per row; PC: 8 per row */
.dock-download .ads-grid > div {
  width: 20%;
  flex: 0 0 20%;
  max-width: none;
}

@media (min-width: 768px) {
  .dock-download .ads-grid > div {
    width: 12.5%;
    flex: 0 0 12.5%;
    max-width: none;
  }
}

/* reserve space so floating ads do not cover body copy */
body.has-dock-pad {
  padding-top: 0;
}

body.has-dock-pad .tide-nav {
  box-shadow: none;
}

#dock-spacer {
  display: none;
  height: 0;
  transition: height 0.2s ease;
}

body.has-dock-pad #dock-spacer {
  display: block;
}

/* navigation */
.tide-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: var(--nav-h) 12px auto 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 55;
}

.site-menu.is-open {
  display: flex;
  animation: menuRise 0.28s ease;
}

.site-menu a {
  text-decoration: none;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  background: var(--mist);
  color: var(--leaf-deep);
}

@keyframes menuRise {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .site-menu {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 2px;
  }

  .site-menu a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

/* layout shells */
.page-shell {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.crumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 18px 0 6px;
}

.crumb-trail a {
  text-decoration: none;
  color: var(--leaf);
}

.crumb-trail span[aria-hidden="true"] {
  opacity: 0.45;
}

/* hero */
.hero-aurora {
  position: relative;
  margin: 18px auto 28px;
  width: min(100% - 28px, var(--max));
  border-radius: 28px;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(160deg, rgba(15, 79, 64, 0.88), rgba(18, 40, 48, 0.55) 55%, rgba(239, 107, 69, 0.35)),
    url("shot-home-recommend.jpg") center/cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(61, 220, 151, 0.35), transparent 40%),
    linear-gradient(180deg, transparent 35%, rgba(8, 20, 18, 0.82));
  animation: auroraPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraPulse {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
    filter: saturate(1.15);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 36px 24px 42px;
  max-width: 720px;
}

.hero-copy .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: brandIn 0.9s ease both;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ghost,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-solid {
  background: #fff;
  color: var(--leaf-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-solid:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  color: inherit;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* content modules */
.chapter {
  margin: 42px auto;
  width: min(100% - 28px, var(--max));
}

.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 14px;
  color: var(--leaf-deep);
  font-weight: 400;
}

.chapter h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.chapter p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose-block {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(15, 79, 64, 0.06);
}

.split-feature {
  display: grid;
  gap: 18px;
  align-items: center;
}

.split-feature .visual-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.split-feature .visual-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

@media (min-width: 860px) {
  .split-feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
  }

  .split-feature.is-flip {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split-feature.is-flip .visual-frame {
    order: 2;
  }
}

.mosaic-board {
  display: grid;
  gap: 14px;
}

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

.mosaic-card {
  background: linear-gradient(165deg, #fff, var(--mist));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.mosaic-card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.mosaic-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.shot-pair {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .shot-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.shot-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.shot-tile figcaption {
  padding: 14px 16px 16px;
}

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

.shot-tile p {
  margin: 0;
  font-size: 0.95rem;
}

.ribbon-note {
  border-left: 4px solid var(--signal);
  background: #fff7f4;
  padding: 14px 16px;
  border-radius: 0 16px 16px 0;
  margin: 16px 0;
  color: var(--ink-soft);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

@media (min-width: 720px) {
  .metric-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-pill {
  background: var(--leaf-deep);
  color: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}

.metric-pill strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.metric-pill span {
  font-size: 0.82rem;
  opacity: 0.88;
}

.timeline-lane {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-item i {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.legal-doc h2 {
  margin-top: 28px;
}

.legal-doc ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.legal-doc li {
  margin-bottom: 8px;
}

.soft-panel {
  margin: 28px auto;
  width: min(100% - 28px, var(--max));
  padding: 26px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--leaf-deep), #1a6b7a);
  color: #fff;
}

.soft-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
}

.soft-panel p {
  margin: 0 0 16px;
  opacity: 0.92;
}

.soft-panel a {
  color: #fff;
  font-weight: 700;
}

/* error pages */
.fault-stage {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.fault-stage strong {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  color: var(--leaf);
  line-height: 1;
  display: block;
}

.fault-stage h1 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

/* footer */
.site-foot {
  margin-top: 56px;
  padding: 28px 16px 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.foot-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 18px;
}

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

.foot-links a:hover {
  color: var(--leaf);
}

.foot-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.reveal-up {
  animation: revealUp 0.7s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
