/**
 * 定制页下半区 — 案例长廊 / 双路径 / 交付 / CTA
 */

.page-custom,
body[data-page="custom"] {
  --cl-accent: #c8f542;
  --cl-gold: #e8d4a8;
  --cl-ink: #0a090b;
  --cl-card: #121114;
}

.custom-lower {
  background: var(--cl-ink);
  color: #f1eade;
  isolation: isolate;
  margin-top: clamp(-7rem, -14vw, -4rem);
  padding-top: clamp(5rem, 11vw, 8rem);
  position: relative;
}

.custom-lower::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 9, 11, 0.25) 28%,
    rgba(10, 9, 11, 0.72) 58%,
    var(--cl-ink) 88%
  );
  content: "";
  height: clamp(12rem, 26vw, 18rem);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.custom-lower::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.035;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.custom-lower > * {
  position: relative;
  z-index: 1;
}

/* ── 与 c-places 自然衔接（无突兀色带） ── */
.cl-bridge {
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.cl-bridge__fade {
  display: none;
}

.cl-eyebrow {
  color: var(--cl-accent);
  display: block;
  font-family: var(--font-b-regular), "Noto Sans SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.cl-title {
  font-family: var(--dream-serif), "Noto Serif SC", serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
}

.cl-title em {
  color: var(--cl-gold);
  font-style: normal;
}

.cl-title--light {
  color: #f1eade;
}

.cl-title--glow {
  background: linear-gradient(120deg, #f1eade 0%, #fff 42%, var(--cl-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cl-lead {
  color: rgba(241, 234, 222, 0.62);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.75;
  margin: 0.85rem auto 0;
  max-width: 40em;
}

/* ── 案例横滑长廊 ── */
.cl-cases {
  overflow: visible;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.cl-cases__hint {
  color: rgba(241, 234, 222, 0.38);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  margin: 0 auto 0.85rem;
  max-width: min(92vw, 900px);
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
  transition: opacity 0.5s ease;
}

.cl-cases__hint span {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
}

.cl-cases__hint span::before,
.cl-cases__hint span::after {
  background: linear-gradient(90deg, transparent, rgba(200, 245, 66, 0.45));
  content: "";
  height: 1px;
  width: 1.8rem;
}

.cl-cases__hint span::after {
  background: linear-gradient(90deg, rgba(200, 245, 66, 0.45), transparent);
}

.cl-cases__hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.cl-cases::before {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 245, 66, 0.08) 0%, transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.cl-cases::after {
  background: linear-gradient(
    90deg,
    var(--cl-ink) 0%,
    transparent 6%,
    transparent 94%,
    var(--cl-ink) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.cl-cases__head {
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  max-width: min(92vw, 900px);
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  text-align: center;
  z-index: 1;
}

.cl-cases__track {
  cursor: grab;
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cl-cases__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.cl-cases__track::-webkit-scrollbar {
  display: none;
}

.cl-case {
  --tilt: 0deg;
  flex: 0 0 clamp(16rem, 38vw, 22rem);
  position: relative;
  scroll-snap-align: start;
  text-decoration: none;
  transform: perspective(900px) rotateY(var(--tilt)) translateZ(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cl-case__idx {
  color: color-mix(in srgb, var(--cl-accent, #c8f542) 70%, transparent);
  font-family: var(--dream-serif), "Noto Serif SC", serif;
  font-size: 0.72rem;
  left: 0.15rem;
  letter-spacing: 0.12em;
  opacity: 0.65;
  position: absolute;
  top: -1.35rem;
  z-index: 2;
}

.cl-case:hover {
  --tilt: -3deg;
}

.cl-case__frame {
  aspect-ratio: 3 / 4;
  background: var(--cl-card);
  border: 1px solid color-mix(in srgb, var(--cl-accent, #c8f542) 35%, transparent);
  border-radius: 0.75rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px color-mix(in srgb, var(--cl-accent, #c8f542) 12%, transparent);
  overflow: hidden;
  position: relative;
}

.cl-case__frame::after {
  background: linear-gradient(180deg, transparent 55%, rgba(10, 9, 11, 0.55) 100%);
  content: "";
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
}

.cl-case__desk {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease, filter 0.4s ease;
  width: 100%;
}

.cl-case__mob {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  bottom: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  height: 42%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  right: 0.65rem;
  width: 32%;
}

.cl-case:hover .cl-case__desk {
  filter: brightness(1.05) contrast(1.04);
  transform: scale(1.04);
}

.cl-case__shine {
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.4s ease;
}

.cl-case:hover .cl-case__shine {
  opacity: 1;
}

.cl-case__meta {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding-left: 0.1rem;
}

.cl-case__name {
  color: #f1eade;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cl-case__stat {
  color: var(--cl-accent, #c8f542);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.cl-case__tag {
  color: rgba(241, 234, 222, 0.45);
  font-size: 0.62rem;
  line-height: 1.4;
  min-height: 1.4em;
}

.cl-cases__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: 0 1rem;
}

.cl-mode {
  background: rgba(200, 245, 66, 0.06);
  border: 1px solid rgba(200, 245, 66, 0.22);
  border-radius: 999px;
  color: rgba(241, 234, 222, 0.78);
  font-size: 0.78rem;
  padding: 0.5em 1.1em;
}

.cl-mode strong {
  color: var(--cl-gold);
}

.cl-mode a {
  color: var(--cl-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--cl-accent) 45%, transparent);
  text-underline-offset: 0.18em;
}

.cl-mode a:hover {
  color: #fff;
}

/* ── 灵感入口 ── */
.cl-inspire {
  border-top: 1px solid rgba(198, 167, 106, 0.1);
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.cl-inspire__lead {
  color: rgba(241, 234, 222, 0.55);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.cl-inspire__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.cl-inspire__chip {
  backdrop-filter: blur(10px);
  background: rgba(18, 17, 20, 0.72);
  border: 1px solid rgba(198, 167, 106, 0.22);
  border-radius: 0.75rem;
  color: #f1eade;
  display: grid;
  gap: 0.15rem;
  min-width: clamp(7rem, 18vw, 9rem);
  padding: 0.85rem 1rem;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cl-inspire__chip:hover {
  border-color: rgba(200, 245, 66, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.cl-inspire__chip strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.cl-inspire__chip span {
  color: rgba(241, 234, 222, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

/* ── 双路径 ── */
.cl-paths {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.cl-paths__intro {
  margin: 0 auto 2.5rem;
  max-width: 720px;
  text-align: center;
}

.cl-paths__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
}

@media (min-width: 900px) {
  .cl-paths__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cl-paths__vs {
  display: none;
}

@media (min-width: 900px) {
  .cl-paths__vs {
    display: grid;
    left: 50%;
    place-items: center;
    pointer-events: none;
    position: absolute;
    top: 38%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .cl-paths__vs span {
    backdrop-filter: blur(10px);
    background: rgba(10, 9, 11, 0.82);
    border: 1px solid rgba(198, 167, 106, 0.35);
    border-radius: 999px;
    color: var(--cl-gold);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    padding: 0.55em 0.9em;
  }
}

.cl-path {
  background: linear-gradient(145deg, #161518 0%, #0e0d0f 100%);
  border: 1px solid rgba(198, 167, 106, 0.18);
  border-radius: 1rem;
  display: grid;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.cl-path:hover {
  border-color: rgba(200, 245, 66, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cl-path__visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.cl-path__cover {
  filter: brightness(0.55) saturate(0.9);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cl-path__shot {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  bottom: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  height: 55%;
  object-fit: cover;
  position: absolute;
  right: 1rem;
  width: 38%;
}

.cl-path--original .cl-path__shot {
  height: 70%;
  width: 28%;
}

.cl-path__body {
  padding: 1.35rem 1.5rem 1.65rem;
  position: relative;
}

.cl-path__body::before {
  background: linear-gradient(90deg, var(--cl-accent, #c8f542), transparent);
  content: "";
  height: 2px;
  left: 1.5rem;
  opacity: 0.55;
  position: absolute;
  right: 1.5rem;
  top: 0;
}

.cl-path__price {
  color: var(--cl-accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 0.45rem;
}

.cl-path__title {
  font-family: var(--dream-serif), "Noto Serif SC", serif;
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
}

.cl-path__lead {
  color: rgba(241, 234, 222, 0.62);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.cl-path__points {
  color: rgba(241, 234, 222, 0.75);
  display: grid;
  font-size: 0.8rem;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-path__points li::before {
  color: var(--cl-gold);
  content: "— ";
}

/* ── 转化支柱（全幅暗色） ── */
.cl-pillars-sec {
  min-height: clamp(28rem, 70vh, 40rem);
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem);
  position: relative;
}

.cl-pillars-sec__bg {
  background-position: center;
  background-size: cover;
  filter: brightness(0.35) blur(2px);
  inset: 0;
  position: absolute;
  transform: scale(1.08);
}

.cl-pillars-sec__veil {
  background:
    linear-gradient(90deg, rgba(10, 9, 11, 0.92) 0%, rgba(10, 9, 11, 0.55) 50%, rgba(10, 9, 11, 0.92) 100%),
    linear-gradient(180deg, transparent 0%, rgba(10, 9, 11, 0.4) 50%, var(--cl-ink) 100%);
  inset: 0;
  position: absolute;
}

.cl-pillars-sec__inner {
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.cl-pillars__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

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

@media (min-width: 1024px) {
  .cl-pillars__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cl-pillar {
  backdrop-filter: blur(12px);
  background: rgba(18, 17, 20, 0.72);
  border: 1px solid rgba(198, 167, 106, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 1.1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.cl-pillar:hover {
  border-color: rgba(200, 245, 66, 0.4);
  transform: translateY(-4px);
}

.cl-pillar__icon {
  color: var(--cl-gold);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.cl-pillar strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.cl-pillar p {
  color: rgba(241, 234, 222, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

/* ── 交付五步 ── */
.cl-steps {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.cl-steps__head {
  margin: 0 auto 2rem;
  max-width: 720px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.cl-steps__rail {
  cursor: grab;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cl-steps__rail.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cl-steps__rail::-webkit-scrollbar {
  display: none;
}

.cl-step {
  flex: 0 0 clamp(14rem, 32vw, 18rem);
  scroll-snap-align: center;
}

.cl-step__n {
  color: var(--cl-gold);
  display: block;
  font-family: var(--dream-serif), "Noto Serif SC", serif;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.35;
}

.cl-step__card {
  background: var(--cl-card);
  border: 1px solid rgba(198, 167, 106, 0.15);
  border-radius: 0.75rem;
  overflow: hidden;
}

.cl-step__card img {
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  width: 100%;
}

.cl-step__text {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem 1rem;
}

.cl-step__text strong {
  font-size: 0.9rem;
}

.cl-step__text span {
  color: rgba(241, 234, 222, 0.55);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ── 无限滚动画廊 ── */
.cl-loop {
  border-block: 1px solid rgba(198, 167, 106, 0.1);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
  padding: 1.25rem 0;
}

.cl-loop__track {
  animation: cl-loop-scroll 42s linear infinite;
  display: flex;
  gap: 0.85rem;
  width: max-content;
}

.cl-loop__item {
  border-radius: 0.5rem;
  flex: 0 0 clamp(10rem, 22vw, 14rem);
  overflow: hidden;
}

.cl-loop__item img {
  aspect-ratio: 3 / 4;
  display: block;
  filter: brightness(0.82) saturate(1.05);
  object-fit: cover;
  width: 100%;
}

@keyframes cl-loop-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── CTA ── */
.cl-cta {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  text-align: center;
}

.cl-cta::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200, 245, 66, 0.12) 0%, transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.cl-cta__inner {
  backdrop-filter: blur(16px);
  background: rgba(18, 17, 20, 0.55);
  border: 1px solid rgba(200, 245, 66, 0.18);
  border-radius: 1.25rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin: 0 auto;
  max-width: 640px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.cl-cta__inner::before {
  animation: cl-cta-ring 4s ease-in-out infinite;
  border: 1px solid rgba(200, 245, 66, 0.22);
  border-radius: inherit;
  content: "";
  inset: -1px;
  pointer-events: none;
  position: absolute;
}

@keyframes cl-cta-ring {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.015);
  }
}

.cl-cta__price {
  color: var(--cl-accent);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.cl-cta__title {
  font-family: var(--dream-serif), "Noto Serif SC", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.cl-cta__lead {
  color: rgba(241, 234, 222, 0.62);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 auto 2rem;
  max-width: 32em;
}

.cl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cl-btn {
  border-radius: 999px;
  font-family: var(--font-b-regular), "Noto Sans SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.9em 1.75em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cl-btn--primary {
  background: linear-gradient(135deg, #d4f55a 0%, #a8e020 100%);
  box-shadow: 0 8px 32px rgba(200, 245, 66, 0.25);
  color: #0a090b;
}

.cl-btn--primary:hover {
  box-shadow: 0 12px 40px rgba(200, 245, 66, 0.38);
  transform: translateY(-2px);
}

.cl-btn--ghost {
  border: 1px solid rgba(198, 167, 106, 0.35);
  color: var(--cl-gold);
}

.cl-btn--ghost:hover {
  background: rgba(198, 167, 106, 0.08);
}

/* ── 页脚 ── */
.cl-footer {
  border-top: 1px solid rgba(198, 167, 106, 0.12);
  display: grid;
  gap: 1rem;
  margin-top: 0;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cl-footer__brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.cl-footer__brand img {
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  width: auto;
}

.cl-footer__brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.cl-footer__brand p {
  color: rgba(241, 234, 222, 0.5);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.cl-footer__note,
.cl-footer__copy {
  color: rgba(241, 234, 222, 0.38);
  font-size: 0.72rem;
  margin: 0;
}

/* 隐藏旧 Obsidian 页脚 */
.page-custom .page-footer,
body[data-page="custom"] .page-footer {
  display: none !important;
}

/* 滚动入场 */
.cl-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cl-loop__track {
    animation: none;
  }

  .cl-cta__inner::before {
    animation: none;
  }

  .cl-case,
  .cl-pillar,
  .cl-btn {
    transition: none;
  }

  .cl-reveal {
    opacity: 1;
    transform: none;
  }
}
