/* 杏吧官网 · 杏林光影视觉体系 */
:root {
  --ink: #102a32;
  --ink-soft: #2a4a54;
  --apricot: #e8783a;
  --apricot-deep: #c45a22;
  --peach: #fff4eb;
  --sand: #f7e6d6;
  --mist: #e8f2f4;
  --teal: #1a6b78;
  --teal-deep: #0e4a54;
  --foam: #ffffff;
  --line: rgba(16, 42, 50, 0.1);
  --shadow: 0 18px 40px rgba(16, 42, 50, 0.12);
  --radius: 22px;
  --header-h: 64px;
  --sticky-h: 0px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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(232, 120, 58, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 107, 120, 0.14), transparent 50%),
    linear-gradient(180deg, #fff8f2 0%, #f3f7f8 42%, #fff6ef 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-top: var(--header-h);
}

body.xing-lock {
  overflow: hidden;
}

body.xing-sticky-on {
  --sticky-h: 96px;
  padding-top: calc(var(--header-h) + var(--sticky-h));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--apricot-deep);
}

.xing-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.xing-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 248, 242, 0.82);
  border-bottom: 1px solid var(--line);
}

.xing-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.xing-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(232, 120, 58, 0.28);
}

.xing-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.xing-nav-desktop {
  display: none;
  gap: 8px;
}

.xing-nav-desktop a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.xing-nav-desktop a:hover,
.xing-nav-desktop a.is-active {
  background: rgba(232, 120, 58, 0.12);
  color: var(--apricot-deep);
}

.xing-nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.xing-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.xing-nav-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 50, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1001;
}

.xing-nav-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.xing-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(78vw, 300px);
  height: 100%;
  background: linear-gradient(180deg, #fff8f2, #eef6f7);
  z-index: 1002;
  padding: 88px 24px 32px;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 40px rgba(16, 42, 50, 0.18);
}

.xing-nav-drawer.is-open {
  transform: translateX(0);
}

.xing-nav-drawer a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}

/* Sticky download strip */
.xing-sticky {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 8px 0;
}

.xing-sticky.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.xing-ad-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  justify-items: center;
  width: min(1100px, calc(100% - 20px));
  margin: 0 auto;
}

.xing-ad-item {
  text-decoration: none;
  color: var(--ink-soft);
  text-align: center;
  width: 100%;
  max-width: 72px;
}

.xing-ad-item img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(16, 42, 50, 0.12);
}

.xing-ad-item span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promo top band */
.xing-promo-band {
  background: linear-gradient(90deg, rgba(232, 120, 58, 0.1), rgba(26, 107, 120, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 12px 0 8px;
}

.xing-promo-band .xing-ad-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Hero */
.xing-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
}

.xing-hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 120, 58, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.xing-hero-panel {
  position: relative;
  border-radius: 28px;
  padding: 36px 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 235, 0.55)),
    url("logo-mark.png") right 8% center / 180px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.xing-hero-panel::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(26, 107, 120, 0.2), transparent 70%);
}

.xing-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
}

.xing-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  max-width: 16em;
}

.xing-hero-lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Sections */
.xing-section {
  padding: 42px 0;
}

.xing-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
}

.xing-section h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.xing-section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.xing-section p:last-child {
  margin-bottom: 0;
}

.xing-lead {
  font-size: 1.05rem;
  color: var(--ink);
}

/* Layout blocks */
.xing-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

.xing-split.is-reverse .xing-media {
  order: -1;
}

.xing-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
}

.xing-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.xing-card-grid {
  display: grid;
  gap: 16px;
}

.xing-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(16, 42, 50, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.xing-card h3 {
  margin-top: 0;
}

.xing-mosaic {
  display: grid;
  gap: 14px;
}

.xing-mosaic .xing-media {
  margin: 0;
}

.xing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.xing-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(26, 107, 120, 0.1);
  color: var(--teal-deep);
  font-size: 0.88rem;
}

.xing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.xing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.xing-btn-primary {
  background: linear-gradient(135deg, var(--apricot), var(--apricot-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 120, 58, 0.35);
}

.xing-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.xing-btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid var(--line);
}

.xing-btn-ghost:hover {
  color: var(--apricot-deep);
}

.xing-quote {
  margin: 24px 0;
  padding: 22px 20px;
  border-left: 4px solid var(--apricot);
  background: linear-gradient(90deg, rgba(232, 120, 58, 0.1), transparent);
  border-radius: 0 16px 16px 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.xing-band {
  background: linear-gradient(120deg, var(--teal-deep), #196874 45%, #2f8a78);
  color: #fff;
  border-radius: 28px;
  padding: 32px 22px;
  box-shadow: var(--shadow);
}

.xing-band h2,
.xing-band p {
  color: #fff;
}

.xing-band p {
  opacity: 0.92;
}

.xing-timeline {
  display: grid;
  gap: 16px;
}

.xing-timeline-item {
  position: relative;
  padding: 16px 16px 16px 28px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.xing-timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 0 4px rgba(232, 120, 58, 0.2);
}

.xing-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.xing-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Breadcrumb */
.xing-crumb {
  padding: 18px 0 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.xing-crumb a {
  text-decoration: none;
  color: var(--teal);
}

.xing-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Legal pages */
.xing-legal {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: 0 12px 28px rgba(16, 42, 50, 0.06);
  margin: 12px 0 48px;
}

.xing-legal h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 400;
}

.xing-legal h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--teal-deep);
}

.xing-legal p,
.xing-legal li {
  color: var(--ink-soft);
}

.xing-legal ul {
  padding-left: 1.2em;
}

/* Error pages */
.xing-error {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.xing-error-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--apricot), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

/* Footer */
.xing-footer {
  margin-top: 24px;
  padding: 28px 0 100px;
  background: linear-gradient(180deg, transparent, rgba(16, 42, 50, 0.04));
  border-top: 1px solid var(--line);
}

.xing-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.xing-footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.xing-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* Desktop */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  body.xing-sticky-on {
    --sticky-h: 110px;
    padding-top: calc(var(--header-h) + var(--sticky-h));
  }

  .xing-nav-desktop {
    display: flex;
  }

  .xing-nav-toggle {
    display: none;
  }

  .xing-ad-grid,
  .xing-promo-band .xing-ad-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .xing-ad-item img {
    width: 58px;
    height: 58px;
  }

  .xing-hero-panel {
    padding: 52px 48px;
    background-size: 240px;
  }

  .xing-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }

  .xing-split.is-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .xing-split.is-reverse .xing-media {
    order: 0;
  }

  .xing-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .xing-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .xing-legal {
    padding: 40px 42px;
  }

  .xing-footer {
    padding-bottom: 120px;
  }
}

@media (min-width: 1024px) {
  .xing-media img {
    max-height: 560px;
  }
}
