/* 易到家 — Official site */

:root {
  --teal: #00a896;
  --teal-deep: #007a6d;
  --teal-ink: #063f39;
  --teal-mist: #e6f7f5;
  --teal-wash: #d7f4f0;
  --ink: #1a2423;
  --muted: #5c6b69;
  --line: rgba(6, 63, 57, 0.12);
  --paper: #f4faf9;
  --white: #ffffff;
  --orange: #f97316;
  --radius: 18px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* —— Nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  object-fit: cover;
}

.nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.nav__links {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 63, 57, 0.35) 0%,
      rgba(6, 63, 57, 0.18) 38%,
      rgba(6, 63, 57, 0.72) 100%
    ),
    radial-gradient(ellipse 70% 55% at 20% 80%, rgba(0, 168, 150, 0.35), transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 7.5rem 0 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero__brand .accent {
  color: #7fe8dc;
}

.hero__headline {
  max-width: 18ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.32s forwards;
}

.hero__lede {
  max-width: 36ch;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.45s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s var(--ease) 0.58s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 122, 109, 0.35);
}

.btn--primary:hover {
  background: var(--teal-deep);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn--ink {
  background: var(--teal-ink);
  color: var(--white);
}

.btn--ink:hover {
  background: #0a524a;
}

.btn--outline {
  border: 1.5px solid var(--teal);
  color: var(--teal-deep);
  background: transparent;
}

.btn--outline:hover {
  background: var(--teal-mist);
}

.hero__scroll {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s var(--ease) 1s forwards;
}

.hero__scroll-line {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left;
  animation: linePulse 2.2s ease-in-out infinite;
}

@keyframes linePulse {
  0%,
  100% {
    transform: scaleX(0.45);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section--tint {
  background:
    linear-gradient(180deg, var(--teal-wash) 0%, var(--paper) 42%, var(--paper) 100%);
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--teal-ink);
}

.section__lede {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__head {
  margin-bottom: 2.75rem;
}

/* —— Services —— */
.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .services {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .services__item--lead {
    grid-row: 1 / span 2;
  }
}

.services__item {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  min-height: 220px;
  isolation: isolate;
}

.services__item--lead {
  min-height: 460px;
}

.services__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.services__item:hover img {
  transform: scale(1.05);
}

.services__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem 1.4rem 1.45rem;
  background: linear-gradient(180deg, transparent, rgba(6, 63, 57, 0.82));
  color: var(--white);
}

.services__item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.services__item p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Trust —— */
.trust {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .trust {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 3.5rem;
  }
}

.trust__panel {
  position: relative;
  padding: 2rem 0 0;
}

.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.trust__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}

.trust__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.trust__list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--teal-ink);
}

.trust__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust__visual {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 20%, #7fe8dc 0%, transparent 45%),
    linear-gradient(145deg, var(--teal) 0%, var(--teal-ink) 100%);
  color: var(--white);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.trust__visual::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.trust__visual h3 {
  position: relative;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.trust__visual p {
  position: relative;
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--teal-ink);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 800px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    right: -1rem;
    width: calc(100% - 3.5rem);
    height: 1px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity: 0.35;
    pointer-events: none;
  }
}

/* —— Roles —— */
.roles {
  display: grid;
  gap: 1rem;
}

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

.role {
  padding: 1.75rem 1.6rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.role:hover {
  border-color: rgba(0, 168, 150, 0.45);
  transform: translateY(-3px);
}

.role h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--teal-ink);
}

.role p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Download / CTA band —— */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(2.5rem, 5vw, 3.75rem);
  background:
    linear-gradient(120deg, rgba(0, 168, 150, 0.92), rgba(6, 63, 57, 0.95)),
    url("./hero-home.jpg") center / cover;
  color: var(--white);
}

.cta h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 0.04em;
}

.cta p {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 148px;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.store:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.store small {
  font-size: 0.72rem;
  opacity: 0.75;
}

.store strong {
  font-size: 0.98rem;
  font-weight: 650;
}

/* —— Footer —— */
.footer {
  padding: 3.5rem 0 2.25rem;
  background: var(--teal-ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer h4 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a:hover {
  color: #7fe8dc;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

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

  .hero__media img {
    transform: none;
  }

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