@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #143a32;
  --ink-soft: #2a5349;
  --mint: #dcefe8;
  --mint-deep: #c5e3d8;
  --cream: #f6f3eb;
  --paper: #f3faf7;
  --line: rgba(20, 58, 50, 0.12);
  --hero-photo: url("assets/hero-city.jpg");
  --font-display: "Smiley Sans", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 1.25rem;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(197, 227, 216, 0.7), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(220, 239, 232, 0.9), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 0.85rem 1.1rem;
}

.top__brand {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 58, 50, 0.12);
  background: var(--mint);
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.top__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 36, 30, 0.35) 0%,
      rgba(12, 36, 30, 0.42) 45%,
      rgba(12, 36, 30, 0.82) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 36rem);
  padding: 5.5rem 0 4rem;
}

.hero__title,
.hero__lead,
.hero__sub {
  text-shadow: 0 2px 24px rgba(8, 24, 20, 0.45);
}

.hero__logo {
  width: clamp(6.5rem, 18vw, 9rem);
  height: auto;
  margin: 0 auto 0.85rem;
  border-radius: 1.4rem;
  opacity: 0;
  animation: rise 0.9s ease 0.1s forwards;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

.hero__lead {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: rise 0.9s ease 0.4s forwards;
}

.hero__sub {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  color: rgba(246, 243, 235, 0.86);
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  animation: rise 0.9s ease 0.7s forwards;
}

.hero__cta--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 235, 0.55);
}

.hero__actions .hero__cta:nth-child(2) {
  animation-delay: 0.82s;
}

.hero__actions .hero__cta:nth-child(3) {
  animation-delay: 0.94s;
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero__cta--ghost:hover {
  background: rgba(246, 243, 235, 0.12);
  border-color: var(--cream);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

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

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.section__desc {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.services {
  background:
    linear-gradient(180deg, rgba(220, 239, 232, 0.65), rgba(243, 250, 247, 0.2));
}

.service-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.service-list li:nth-child(1) { animation-delay: 0.05s; }
.service-list li:nth-child(2) { animation-delay: 0.12s; }
.service-list li:nth-child(3) { animation-delay: 0.19s; }
.service-list li:nth-child(4) { animation-delay: 0.26s; }
.service-list li:nth-child(5) { animation-delay: 0.33s; }

.service-list__name {
  font-weight: 700;
  font-size: 1.12rem;
}

.service-list__text {
  color: var(--ink-soft);
}

.why {
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(197, 227, 216, 0.55), transparent 60%),
    linear-gradient(180deg, transparent, rgba(220, 239, 232, 0.35));
}

.why__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.why__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.why__item p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.close {
  padding-bottom: 4rem;
}

.close__inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    linear-gradient(145deg, var(--ink) 0%, #1f4d42 55%, #27584c 100%);
  color: var(--cream);
}

.close .section__desc {
  margin-left: auto;
  margin-right: auto;
  color: rgba(246, 243, 235, 0.82);
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.close__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.close__cta--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 235, 0.55);
}

.close__cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.close__cta--ghost:hover {
  background: rgba(246, 243, 235, 0.12);
  border-color: var(--cream);
}

.close__cta:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.close__mark {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.16em;
}

body.is-guide-open {
  overflow: hidden;
}

.profile-guide[hidden] {
  display: none;
}

.profile-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem max(1.25rem, env(safe-area-inset-bottom));
  background: rgba(16, 42, 36, 0.42);
  backdrop-filter: blur(10px);
}

.profile-guide__card {
  position: relative;
  width: min(22.5rem, 100%);
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  margin: 0;
  padding: 1.55rem 1.2rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.85rem;
  background:
    radial-gradient(18rem 8rem at 50% -10%, rgba(220, 239, 232, 0.95), transparent 70%),
    linear-gradient(180deg, #fbfaf6 0%, var(--cream) 42%, #f3faf7 100%);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 58, 50, 0.22);
  text-align: center;
  animation: rise 0.35s ease;
}

.profile-guide__dismiss {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 58, 50, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
}

.profile-guide__dismiss svg {
  width: 1rem;
  height: 1rem;
}

.profile-guide__logo {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto;
  border-radius: 1.05rem;
  box-shadow: 0 10px 24px rgba(20, 58, 50, 0.12);
}

.profile-guide__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.profile-guide__lead {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.profile-guide__steps {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  text-align: left;
}

.profile-guide__steps li {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(20, 58, 50, 0.06);
}

.profile-guide__steps span {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.65rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.profile-guide__steps strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-guide__steps p {
  margin: 0.12rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-guide__note {
  margin: 0.85rem 0 0;
  color: rgba(42, 83, 73, 0.78);
  font-size: 0.78rem;
  line-height: 1.55;
}

.profile-guide__retry {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-guide__close {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.profile-guide__close:hover {
  background: #1d4c42;
}

.profile-guide__dismiss:focus-visible,
.profile-guide__close:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
}

.open-guide {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
}

.open-guide.is-open {
  display: block;
}

.open-guide__sheet {
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
}

.open-guide__arrow {
  position: absolute;
  top: 0.35rem;
  right: 1.1rem;
  width: 7.2rem;
  height: auto;
  color: #fff;
}

.open-guide__bubble {
  box-sizing: border-box;
  position: absolute;
  top: 7.6rem;
  left: 50%;
  width: min(20rem, calc(100% - 2.4rem));
  margin: 0;
  padding: 1.2rem 0.95rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.88);
  border-radius: 1.7rem;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  white-space: pre-line;
}

.footer {
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer__icp {
  margin-top: 0.35rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

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

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (min-width: 720px) {
  .top {
    padding: 1.1rem 1.5rem;
  }

  .top__brand {
    width: 3.6rem;
    height: 3.6rem;
  }

  .service-list li {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    padding: 1.4rem 0;
  }

  .why__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .top__brand,
  .hero__logo,
  .hero__title,
  .hero__lead,
  .hero__sub,
  .hero__cta,
  .service-list li,
  .hero__media,
  .profile-guide__card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
