@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  /* Logo-matched palette */
  --orange: #e85a2d;
  --orange-deep: #c9451c;
  --navy: #3a466e;
  --navy-deep: #2a3458;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --ink: #24304f;
  --muted: #6b7594;
  --brand: var(--orange);
  --brand-deep: var(--orange-deep);
  --accent: var(--navy);
  --line: #d9deea;
  --shadow: 0 14px 40px rgba(58, 70, 110, 0.1);
  --max: 1160px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(232, 90, 45, 0.14), transparent 55%),
    radial-gradient(760px 420px at 100% 0%, rgba(58, 70, 110, 0.12), transparent 50%),
    linear-gradient(180deg, #fbfbfd 0%, #f3f5fa 45%, #eef1f7 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(58, 70, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 70, 110, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-deep);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 222, 234, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(300px, 62vw);
  object-fit: contain;
}

.brand-mark {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 74px;
}

.nav-item .nav-link,
.nav > a {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  display: inline-block;
}

.nav-item .nav-link::after,
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #f0a27a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link,
.nav-item.is-active .nav-link,
.nav > a:hover,
.nav > a.is-active,
.nav-link.is-active {
  color: var(--orange-deep);
}

.nav-item:hover .nav-link::after,
.nav-item.is-active .nav-link::after,
.nav > a:hover::after,
.nav > a.is-active::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  margin: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}

/* 填补菜单与下拉之间的空隙，避免鼠标移过去时菜单消失 */
.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  display: grid;
  gap: 0.15rem;
}

.nav-sub a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.9rem;
}

.nav-sub a:hover {
  background: var(--bg-soft);
  color: var(--orange-deep);
}

.about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.about-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.about-subnav a:hover,
.about-subnav a.is-active {
  border-color: rgba(232, 90, 45, 0.45);
  color: var(--orange-deep);
  background: #fff4ef;
}

.people-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.people-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 960px) {
  .people-card {
    grid-template-columns: 1fr;
  }

  .nav-item {
    height: auto;
    display: block;
  }

  .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0.4rem 0.6rem;
    background: transparent;
  }

  .nav-sub::before {
    display: none;
  }

  .nav-item.is-open .nav-sub,
  .nav-item:focus-within .nav-sub,
  .nav-item:hover .nav-sub {
    display: grid;
  }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

/* Hero slider */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: min(56vh, 560px);
  overflow: hidden;
  background: #1f2740;
}

.slider-track {
  position: absolute;
  inset: 0;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.slider-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-copy .hero-brand {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.slider-copy h1 {
  margin: 0 0 1rem;
  max-width: 16em;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  animation: fade-up 0.8s ease 0.18s both;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(36, 48, 79, 0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.slider-btn:hover {
  border-color: var(--orange);
  color: #ffd2c0;
}

.slider-btn.prev {
  left: max(0.8rem, calc((100% - var(--max)) / 2));
}

.slider-btn.next {
  right: max(0.8rem, calc((100% - var(--max)) / 2));
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 2rem;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.is-active {
  background: linear-gradient(90deg, var(--orange), #f0a27a);
}

.hero-brand {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  animation: fade-up 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: fade-up 0.8s ease 0.1s both;
}

.hero-kicker i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  animation: fade-up 0.8s ease 0.34s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #f07545, var(--orange) 45%, var(--orange-deep));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* Sections */
.section {
  padding: 3.2rem 0 1.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}

.section-head p,
.lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-head > a {
  color: var(--orange-deep);
  font-weight: 600;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.product-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-tile.has-media {
  min-height: 260px;
}

.product-tile .tile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.product-tile .tile-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(36, 48, 79, 0.45) 30%, rgba(36, 48, 79, 0.9) 100%);
}

.product-tile::before {
  content: attr(data-index);
  position: absolute;
  right: 0.6rem;
  top: 0.2rem;
  z-index: 3;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.product-tile:first-child {
  grid-row: span 2;
  min-height: 440px;
  border-color: rgba(232, 90, 45, 0.35);
}

.product-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(232, 90, 45, 0.55);
  color: inherit;
}

.product-tile:hover .tile-media {
  transform: scale(1.08);
}

.product-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.product-tile:first-child h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.product-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.product-tile .meta {
  margin-top: 1rem;
  color: #ffc4a8;
  font-weight: 700;
  font-size: 0.88rem;
}

.solution-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.solution-panel {
  position: relative;
  display: block;
  min-height: 340px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
  background: #fff;
  box-shadow: var(--shadow);
}

.solution-panel .panel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.solution-panel .panel-body {
  position: relative;
  z-index: 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, rgba(36, 48, 79, 0.1) 0%, rgba(36, 48, 79, 0.78) 55%, rgba(36, 48, 79, 0.94) 100%);
}

.solution-panel:hover {
  transform: translateY(-4px);
  color: #fff;
}

.solution-panel:hover .panel-media {
  transform: scale(1.06);
}

.solution-panel h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.7rem;
}

.solution-panel p {
  margin: 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.86);
}

.solution-panel .meta {
  margin-top: 1.4rem;
  font-weight: 700;
  color: #ffc4a8;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 24px rgba(58, 70, 110, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 90, 45, 0.45);
  color: inherit;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .meta {
  margin-top: 0.9rem;
  color: var(--orange-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.product-card > div {
  padding: 1rem 1.1rem;
}

.page-banner {
  padding: 2.8rem 0 1.2rem;
}

.page-banner h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}

.page-banner p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40em;
}

.crumbs {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs a {
  color: var(--muted);
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.content-panel h2 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.3rem;
  color: var(--orange-deep);
}

.content-panel h2:first-child,
.content-panel > section:first-child h2 {
  margin-top: 0;
}

.content-panel h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.content-panel p {
  margin: 0.7rem 0;
  text-align: justify;
  color: var(--ink);
}

.content-panel ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.content-panel li {
  margin: 0.35rem 0;
}

.content-panel .figure {
  margin: 1.2rem auto;
  text-align: center;
}

.content-panel .figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery.gallery-docs {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery figure,
.gallery > img {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
}

.gallery.gallery-docs img {
  max-height: none;
}

.gallery figcaption {
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.file-item strong {
  display: block;
}

.file-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: auto;
  padding: 2.6rem 0 2rem;
  background: linear-gradient(180deg, #2f3a5c, var(--navy-deep));
  color: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #fff;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  margin: 0.3rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ffc4a8;
}

.footer-note {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .product-mosaic,
  .solution-band,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-tile:first-child {
    grid-row: auto;
    min-height: 280px;
  }

  .product-card {
    grid-template-columns: 110px 1fr;
  }

  .hero-slider {
    min-height: min(48vh, 420px);
  }

  .slider-btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
