/* 悦之趣公司主页 — company-web */

:root {
  --brand: #e65100;
  --brand-mid: #f57c00;
  --ink: #141414;
  --muted: #5a5a5a;
  --paper: #f7f7f5;
  --line: rgba(20, 20, 20, 0.1);
  --hero-ink: #f5f2ee;
  --hero-muted: rgba(245, 242, 238, 0.78);
  --max: 1120px;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-link {
  color: var(--ink);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
  transition: color 0.3s var(--ease);
}

.brand span {
  color: var(--brand-mid);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hero-muted);
  transition: color 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--brand-mid);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--hero-ink);
  transition: background 0.3s;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--hero-ink);
  overflow: hidden;
  background: #0c0c0c;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230, 81, 0, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 124, 0, 0.18), transparent 50%),
    linear-gradient(165deg, #121212 0%, #1a120c 45%, #0a0a0a 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1' d='M0 40 Q15 10 30 40 T60 40 T90 40 T120 40'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1' d='M0 50 Q15 25 30 50 T60 50 T90 50 T120 50'/%3E%3C/svg%3E");
  background-size: 180px 120px;
  animation: wave-drift 28s linear infinite;
}

@keyframes wave-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 180px 0;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.35) 45%,
    rgba(8, 8, 8, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 5.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand em {
  font-style: normal;
  color: var(--brand-mid);
}

.hero-title {
  margin: 0 0 0.75rem;
  max-width: 18em;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.32s forwards;
}

.hero-sub {
  margin: 0 0 2rem;
  max-width: 28em;
  color: var(--hero-muted);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.58s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgba(245, 242, 238, 0.45);
}

.btn-ghost:hover {
  border-color: var(--brand-mid);
  color: var(--brand-mid);
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section-title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-body {
  max-width: 42rem;
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.point {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.point.is-in {
  opacity: 1;
  transform: translateY(0);
}

.point-label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--brand);
  width: fit-content;
}

.point-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-item {
  padding: 0.25rem 1.5rem 0.25rem 0;
  border-right: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.service-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.service-item:first-child {
  padding-left: 0;
}

.service-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.service-item + .service-item {
  padding-left: 1.5rem;
}

.service-name {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-row dd {
  margin: 0;
  font-weight: 500;
}

.contact-row a {
  color: var(--brand);
}

.contact-row a:hover {
  text-decoration: underline;
}

.qrcode {
  width: 148px;
  text-align: center;
}

.qrcode img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.qrcode p {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.qrcode.is-hidden {
  display: none;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: #111;
  color: rgba(245, 242, 238, 0.65);
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(245, 242, 238, 0.85);
}

.site-footer a:hover {
  color: var(--brand-mid);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-meta {
  margin: 0;
  line-height: 1.7;
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .points,
  .services-list {
    grid-template-columns: 1fr 1fr;
  }

  .service-item,
  .service-item + .service-item {
    border-right: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
  }

  .service-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 247, 245, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    color: var(--ink);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header:not(.is-scrolled) .nav.is-open .nav-link {
    color: var(--ink);
  }

  .points {
    grid-template-columns: 1fr 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .points {
    grid-template-columns: 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-visual::after,
  .hero-brand,
  .hero-title,
  .hero-sub,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .point,
  .service-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
