:root {
  --ink: #101820;
  --ink-soft: #42505d;
  --navy: #06356f;
  --ocean: #0574c8;
  --aqua: #00a7c8;
  --brass: #b98a3c;
  --paper: #f7f9fb;
  --line: rgba(16, 24, 32, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 31, 68, 0.16);
  font-family:
    "Noto Serif SC", "Songti SC", "STSong", "Microsoft YaHei UI", "Microsoft YaHei",
    serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 251, 0.98) 42%),
    radial-gradient(circle at 72% 8%, rgba(0, 167, 200, 0.13), transparent 28%),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(2, 24, 55, 0.22));
}

.brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.86;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 0.74;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(92vh, 880px);
  padding: 148px clamp(20px, 5vw, 72px) 40px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(4, 20, 42, 0.93) 0%, rgba(5, 48, 100, 0.88) 46%, rgba(3, 68, 113, 0.78) 100%),
    url("./assets/shenhai-logo.png") right 7vw center / min(52vw, 680px) no-repeat,
    #052c5f;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, black 0%, transparent 72%);
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -24vw;
  width: 72vw;
  height: 38vw;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background img {
  position: absolute;
  right: clamp(-60px, 3vw, 64px);
  bottom: 22%;
  width: min(46vw, 560px);
  opacity: 0.17;
  filter: saturate(1.2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  align-self: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  box-shadow: 0 16px 36px rgba(0, 114, 205, 0.32);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  width: min(980px, 100%);
  margin-top: 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  min-height: 142px;
  padding: 24px;
  background: rgba(4, 20, 42, 0.24);
}

.hero-panel span {
  display: block;
  margin-bottom: 18px;
  font-family: "Avenir Next", sans-serif;
  color: var(--brass);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 0;
  width: min(740px, 100%);
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  background: var(--white);
}

.intro-copy {
  display: grid;
  gap: 20px;
  padding-top: 42px;
  color: var(--ink-soft);
}

.intro-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
}

.services {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef4f8 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  border-color: rgba(5, 116, 200, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-index {
  display: inline-block;
  margin-bottom: 52px;
  font-family: "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ocean);
}

.service-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.solutions {
  background: var(--white);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: 52px;
}

.solution-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.solution-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.solution-item span {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ocean);
}

.solution-item strong {
  font-size: 22px;
  line-height: 1.4;
}

.solution-item.is-active strong,
.solution-item:hover strong {
  color: var(--navy);
}

.solution-detail {
  min-height: 420px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 32, 67, 0.96), rgba(5, 79, 130, 0.92)),
    url("./assets/shenhai-logo.png") right -72px bottom -96px / 360px no-repeat;
  box-shadow: var(--shadow);
}

.detail-label {
  margin: 0 0 22px;
  font-family: "Avenir Next", sans-serif;
  font-size: 12px;
  color: var(--brass);
  text-transform: uppercase;
}

.solution-detail h3 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.solution-detail p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
}

.solution-detail ul {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.solution-detail li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.solution-detail li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--aqua);
}

.process {
  background: #f4f7f9;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 34px 28px 0 0;
  border-right: 1px solid var(--line);
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  border: 1px solid rgba(5, 116, 200, 0.3);
  border-radius: 50%;
  font-family: "Avenir Next", sans-serif;
  color: var(--ocean);
  background: var(--white);
}

.timeline h3 {
  margin: 0 0 14px;
  font-size: 23px;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(4, 20, 42, 0.94), rgba(5, 56, 110, 0.92)),
    url("./assets/shenhai-logo.png") right 10vw center / min(46vw, 540px) no-repeat,
    var(--navy);
}

.contact .eyebrow,
.contact h2 {
  color: var(--white);
}

.contact-content p:last-child {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
  padding: 13px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 167, 200, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 167, 200, 0.16);
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.form-note.is-success {
  color: #9df0dc;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.site-footer img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer .beian-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .solution-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-top: 0;
  }

  .timeline li:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    max-width: 188px;
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 88vh;
    padding: 112px 18px 28px;
    background:
      linear-gradient(145deg, rgba(4, 20, 42, 0.94), rgba(5, 52, 101, 0.88)),
      url("./assets/shenhai-logo.png") center 42% / 84vw no-repeat,
      var(--navy);
  }

  .hero-background img {
    right: -130px;
    bottom: 30%;
    width: 92vw;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 42px;
  }

  .section {
    padding: 70px 18px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .service-card {
    min-height: auto;
  }

  .service-index {
    margin-bottom: 34px;
  }

  .solution-detail {
    min-height: auto;
    padding: 28px;
    background:
      linear-gradient(135deg, rgba(5, 32, 67, 0.96), rgba(5, 79, 130, 0.92)),
      url("./assets/shenhai-logo.png") right -80px bottom -90px / 280px no-repeat;
  }

  .timeline {
    border-top: 0;
  }

  .timeline li {
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .timeline span {
    margin-bottom: 18px;
  }

  .contact {
    background:
      linear-gradient(120deg, rgba(4, 20, 42, 0.94), rgba(5, 56, 110, 0.92)),
      url("./assets/shenhai-logo.png") center 18% / 86vw no-repeat,
      var(--navy);
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
