/* 依企嘉缘 · 一城两缘 公司品牌站 */

:root {
  --ink: #0e1014;
  --ink-soft: #1a1d24;
  --paper: #f4efe8;
  --muted: rgba(244, 239, 232, 0.62);
  --dating: #c45c6a;
  --dating-glow: rgba(196, 92, 106, 0.45);
  --care: #6f8f7a;
  --care-glow: rgba(111, 143, 122, 0.4);
  --gold: #d4b896;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-accent: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Topbar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
  pointer-events: none;
  mix-blend-mode: difference;
}

.topbar__brand,
.topbar__nav a {
  pointer-events: auto;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.topbar__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.92;
}

.topbar__nav {
  display: flex;
  gap: 1.35rem;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.topbar__nav a {
  opacity: 0.78;
  transition: opacity 0.3s var(--ease);
}

.topbar__nav a:hover {
  opacity: 1;
}

/* —— Hero dual doors —— */
.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
}

.hero__stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transition: grid-template-columns 0.75s var(--ease);
}

.hero__stage.is-dating {
  grid-template-columns: 1.45fr 0.55fr;
}

.hero__stage.is-care {
  grid-template-columns: 0.55fr 1.45fr;
}

.hero__door {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  transition: filter 0.7s var(--ease);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease);
}

.hero__door--dating .hero__bg {
  object-position: 18% center;
}

.hero__door--care .hero__bg {
  object-position: 82% center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.hero__veil--dating {
  background:
    linear-gradient(90deg, rgba(14, 16, 20, 0.55) 0%, rgba(14, 16, 20, 0.15) 55%, rgba(14, 16, 20, 0.65) 100%),
    radial-gradient(ellipse at 30% 70%, var(--dating-glow), transparent 55%);
}

.hero__veil--care {
  background:
    linear-gradient(270deg, rgba(14, 16, 20, 0.55) 0%, rgba(14, 16, 20, 0.15) 55%, rgba(14, 16, 20, 0.65) 100%),
    radial-gradient(ellipse at 70% 65%, var(--care-glow), transparent 55%);
}

.hero__door-label {
  position: absolute;
  bottom: clamp(2rem, 6vh, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.hero__door--dating .hero__door-label {
  left: clamp(1.25rem, 4vw, 3rem);
}

.hero__door--care .hero__door-label {
  right: clamp(1.25rem, 4vw, 3rem);
  text-align: right;
}

.hero__door-en {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__door-zh {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.28em;
  opacity: 0.88;
}

.hero__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero__center {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
  padding: 1.5rem;
}

.hero__emblem {
  width: clamp(64px, 9vw, 96px);
  height: clamp(64px, 9vw, 96px);
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 0 40px rgba(212, 184, 150, 0.25);
  animation: emblem-breathe 5.5s var(--ease) infinite;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1.1;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero__tagline {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--gold);
}

.hero__hint {
  margin: 1.4rem 0 0;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  opacity: 0.55;
  animation: hint-pulse 3.2s ease-in-out infinite;
}

/* Hover / focus tilt — widen active door */
.hero__stage.is-dating .hero__door--dating,
.hero__stage.is-care .hero__door--care {
  filter: saturate(1.08) brightness(1.05);
}

.hero__stage.is-dating .hero__door--care,
.hero__stage.is-care .hero__door--dating {
  filter: brightness(0.55) saturate(0.7);
}

.hero__stage.is-dating .hero__door--dating .hero__bg,
.hero__stage.is-care .hero__door--care .hero__bg {
  transform: scale(1.12);
}

.hero__stage.is-dating .hero__door--care .hero__door-label,
.hero__stage.is-care .hero__door--dating .hero__door-label {
  opacity: 0.35;
  transform: translateY(8px);
}

.hero__stage.is-dating .hero__veil--dating,
.hero__stage.is-care .hero__veil--care {
  opacity: 0.72;
}

/* —— Worlds —— */
.worlds {
  display: flex;
  flex-direction: column;
}

.world {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.world--care {
  grid-template-columns: 0.85fr 1.15fr;
}

.world--care .world__media {
  order: 2;
}

.world--care .world__copy {
  order: 1;
}

.world__media {
  position: relative;
  min-height: 56vh;
  overflow: hidden;
}

.world__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.world.is-inview .world__media img {
  transform: scale(1);
}

.world__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--ink-soft);
}

.world--dating .world__copy {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(196, 92, 106, 0.18), transparent 55%),
    var(--ink-soft);
}

.world--care .world__copy {
  background:
    radial-gradient(ellipse at 100% 50%, rgba(111, 143, 122, 0.18), transparent 55%),
    var(--ink-soft);
}

.world__eyebrow {
  margin: 0;
  font-family: var(--font-accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.95rem;
}

.world__title {
  margin: 0.8rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.15;
}

.world__line {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.18em;
  color: var(--muted);
}

.world__beats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.world__beats li {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  opacity: 0.9;
  position: relative;
  padding-left: 1rem;
}

.world__beats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
}

.world--dating .world__beats li::before {
  background: var(--dating);
}

.world--care .world__beats li::before {
  background: var(--care);
}

.world__cta-note {
  margin: 2.4rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* —— Connect —— */
.connect {
  position: relative;
  min-height: 72svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.connect__bg {
  position: absolute;
  inset: 0;
}

.connect__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}

.connect__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.55), rgba(14, 16, 20, 0.82));
}

.connect__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
}

.connect__mark {
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(212, 184, 150, 0.28);
}

.connect__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.connect__sub {
  margin: 1rem 0 0;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect__mail {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--font-accent);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 184, 150, 0.35);
  padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.connect__mail:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* —— Footer：协议入口全部保留 —— */
.site-footer {
  background: #08090c;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
  border-top: 1px solid rgba(244, 239, 232, 0.08);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__label {
  margin: 0 0 0.85rem;
  font-family: var(--font-accent);
  letter-spacing: 0.16em;
  color: var(--gold);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer__text {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(244, 239, 232, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__bottom a {
  display: inline;
  margin: 0;
}

/* —— Reveal motion —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.topbar[data-reveal] {
  transform: none;
}

@keyframes emblem-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__stage,
  .hero__stage.is-dating,
  .hero__stage.is-care {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero__door {
    min-height: 50svh;
  }

  .hero__center {
    place-content: center;
    padding-top: 8vh;
  }

  .hero__brand {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .hero__tagline {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero__hint {
    display: none;
  }

  .hero__door-label {
    bottom: 1.2rem;
  }

  .world,
  .world--care {
    grid-template-columns: 1fr;
  }

  .world--care .world__media,
  .world--care .world__copy {
    order: initial;
  }

  .world__media {
    min-height: 42vh;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .topbar__nav {
    gap: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
