/* 义乌市呈海科技有限公司 — 视觉升级版 */

:root {
  --navy-950: #04101f;
  --navy-900: #071828;
  --navy-800: #0c2740;
  --navy-700: #143a5c;
  --cyan-500: #2eb8c8;
  --cyan-400: #5ecfdb;
  --steel-100: #e8eef4;
  --steel-200: #d0dae6;
  --text: #142433;
  --text-muted: #4d6074;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --line: #d7e1ec;
  --header-height: 72px;
  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface-soft);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 16, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--cyan-400);
  transform: rotate(45deg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(135deg, var(--cyan-400), transparent 70%);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-menu a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.04em;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--cyan-400);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: #fff;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 56px) 24px 96px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.banner-media {
  position: absolute;
  inset: 0;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-ken 22s ease-in-out infinite alternate;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 16, 31, 0.55) 0%, rgba(4, 16, 31, 0.72) 45%, rgba(4, 16, 31, 0.88) 100%),
    linear-gradient(120deg, rgba(7, 24, 40, 0.75) 0%, rgba(20, 58, 92, 0.35) 55%, rgba(46, 184, 200, 0.12) 100%);
}

.banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 15%, transparent 72%);
  animation: grid-pan 30s linear infinite;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.banner-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  text-indent: 0.22em;
  animation: rise 0.9s var(--ease) both;
}

.banner h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.35rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.slogan {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--cyan-400);
  margin-bottom: 2.25rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.banner-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise 0.9s var(--ease) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.btn-primary {
  background: var(--cyan-500);
  color: var(--navy-950);
}

.btn-primary:hover {
  background: var(--cyan-400);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.65);
  animation: bounce-soft 2.2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.75;
}

.scroll-hint:hover {
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 110px 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.08em;
  text-align: center;
}

.section-title--left {
  text-align: left;
  letter-spacing: 0.1em;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .section-eyebrow {
  text-align: center;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-lead--left {
  text-align: left;
  max-width: 420px;
}

/* ---------- About ---------- */

.about {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(46, 184, 200, 0.08), transparent 60%),
    var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.9) contrast(1.05);
}

.about-visual-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--cyan-500);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.55;
}

.about-copy .section-eyebrow {
  text-align: left;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-ideograph;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Business ---------- */

.business {
  background:
    linear-gradient(180deg, #eef3f8 0%, #e6edf4 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 184, 200, 0.45);
  background: linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--steel-200);
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fbfd, #eef4f8);
  color: var(--navy-700);
  transition: border-color var(--transition), color var(--transition);
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 1.75;
}

.card:hover .card-icon {
  border-color: rgba(46, 184, 200, 0.5);
  color: var(--cyan-500);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags li {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
}

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(46, 184, 200, 0.07), transparent 55%),
    var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfe 0%, #f3f7fb 100%);
}

.contact-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.03em;
}

.contact-item dt svg {
  width: 1rem;
  height: 1rem;
  color: var(--cyan-500);
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-item dd {
  color: var(--text);
  word-break: break-word;
  padding-top: 1px;
}

.contact-item a {
  color: var(--navy-700);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--cyan-500);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 24px;
}

.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.site-footer p:last-child {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.card-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes grid-pan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(64px);
  }
}

@keyframes bounce-soft {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .banner-media img,
  .banner-grid,
  .banner-brand,
  .banner h1,
  .slogan,
  .banner-cta,
  .scroll-hint,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    max-width: 560px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-title--left,
  .section-lead--left,
  .about-copy .section-eyebrow {
    text-align: center;
  }

  .section-lead--left {
    margin-inline: auto;
  }

  .contact-intro {
    text-align: center;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .container,
  .nav-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 16, 31, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition), opacity var(--transition);
  }

  .nav-menu.is-open {
    max-height: 260px;
    opacity: 1;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .banner {
    min-height: 92vh;
    padding-bottom: 80px;
  }

  .banner-brand {
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .banner h1 {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .slogan {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .section {
    padding: 72px 0;
  }

  .about-visual-frame {
    inset: 12px -12px -12px 12px;
  }

  .about-text p {
    text-align: left;
  }

  .contact-item {
    padding: 16px 18px;
  }
}
