:root {
  --bg: #f3f5f9;
  --paper: #ffffff;
  --ink: #122033;
  --muted: #5c6676;
  --line: #d8deea;
  --brand: #c02645;
  --brand-dark: #b92542;
  --brand-soft: #f5e5ea;
  --accent: #0d6f8a;
  --section-gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 120px;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  opacity: 1;
  transform: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-enter {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
}

body.page-enter.page-enter-active {
  opacity: 1;
  transform: none;
}

body.page-leave {
  opacity: 0;
  transform: translateY(-12px) scale(1.004);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  transition: background 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
}

body.page-leave::after {
  background: rgba(255, 255, 255, 0.22);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}

p {
  margin: 0;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(137, 27, 49, 0.17), transparent 70%),
    radial-gradient(800px 500px at -10% 35%, rgba(13, 111, 138, 0.14), transparent 70%),
    linear-gradient(180deg, #f7f9fc, #eef2f8);
}

.site-header {
  padding: 90px 0 0px;
}

.nav-shell {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 40px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 24px;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.15;
  transition: 0.25s ease;
}

.main-nav a em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.main-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.menu-btn {
  display: none;
  border: 0;
  padding: 4px;
  background: transparent;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #1a2432;
}

.hero {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid #cfd7e6;
  min-height: 560px;
  padding: clamp(26px, 4vw, 52px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 251, 0.8)),
    url("images/hefubg.png") center/cover no-repeat;
  gap: 22px;
  overflow: hidden;
  box-shadow: 0 22px 35px rgba(42, 54, 77, 0.12);
}

.hero-copy {
  align-self: center;
}

.hero-subtitle {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(48px, 6.5vw, 88px);
  color: var(--brand);
  letter-spacing: 4px;
}

.hero-slogan {
  margin-top: 12px;
  font-size: clamp(24px, 3.3vw, 36px);
  font-weight: 700;
}

.hero-desc {
  margin-top: 14px;
  color: #2e3748;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-width: 164px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), #b42747);
  box-shadow: 0 12px 22px rgba(137, 27, 49, 0.27);
}

.btn-ghost {
  border: 1px solid #c9d3e5;
  background: rgba(255, 255, 255, 0.72);
}

.hero-visual {
  align-self: end;
  justify-self: end;
  width: min(520px, 100%);
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d1d9e8;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel .swiper-slide {
  width: 100%;
  height: 100%;
}

.carousel .swiper-pagination-bullet {
  background: #8fb8ff;
  opacity: 0.7;
}

.carousel .swiper-pagination-bullet-active {
  background: #1f6dff;
  opacity: 1;
}

.section {
  margin-top: var(--section-gap);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 2.9vw, 36px);
}

.section-title-wrap {
  margin-bottom: 20px;
}

.section-kicker {
  color: #66748a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.section-title-wrap h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title-icon {
  font-size: 0.82em;
  color: var(--brand);
}

.section-sub {
  margin-top: 10px;
  color: #3e4a5f;
  font-size: 18px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adv-card {
  border: 1px solid #d9dfec;
  border-radius: 16px;
  background: var(--paper);
  padding: 18px;
  min-height: 220px;
}

.adv-card h3 {
  font-size: 24px;
  color: var(--brand-dark);
}

.adv-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #3a4557;
  font-size: 16px;
}

.adv-card li {
  margin: 8px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.service-item {
  position: relative;
  min-height: 160px;
  border-radius: 16px;
  border: 1px solid #d9deea;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  outline: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-item:hover,
.service-item:focus-visible {
  transform: translateY(-6px);
  border-color: #c8d6f2;
  background: linear-gradient(180deg, #ffffff, #f2f7ff);
  box-shadow: 0 16px 30px rgba(62, 87, 138, 0.14);
}

.service-item h3 {
  font-size: 24px;
  color: #51172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.22s ease;
}

.service-item h3 i {
  font-size: 0.84em;
  color: var(--brand);
}

.service-item p {
  margin-top: 10px;
  font-size: 16px;
  color: #2f3b50;
  opacity: 1;
}

.service-item:hover h3,
.service-item:focus-visible h3 {
  color: #2c426d;
}

.about-layout {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.about-copy {
  border: 1px solid #d9dfec;
  border-radius: 16px;
  background: var(--paper);
  padding: 20px;
  display: grid;
  color: #2f3b4e;
  font-size: 17px;
}

.about-copy p {
  text-indent: 2em;
}

.about-media {
  display: grid;
  gap: 12px;
}

.about-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d9dfec;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid #d8deea;
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
}

.faq-list p {
  border-top: 1px solid #e4e8f1;
  padding: 14px 16px;
  font-size: 16px;
  color: #39465c;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-card,
.map-card {
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: var(--paper);
  padding: 18px;
}

.contact-card {
  display: grid;
  gap: 9px;
  font-size: 17px;
}

.contact-card p {
  display: flex;
  align-items: center;
}

.contact-item-icon {
  width: 20px;
  margin-right: 8px;
  color: var(--brand);
  text-align: center;
}

.map-card {
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid #d4dbe9;
  background: #f7f9fd;
  padding: 18px 0 32px;
}

.footer-top,
.footer-bottom {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-top {
  margin-bottom: 10px;
}

.footer-top a {
  font-size: 15px;
  color: #3b475d;
}

.footer-bottom {
  color: #536178;
  font-size: 15px;
}

.footer-bottom a {
  color: var(--brand);
  font-weight: 700;
}


@media (max-width: 1100px) {
  .container {
    width: min(1200px, calc(100% - 30px));
  }

  .nav-shell {
    width: min(1200px, calc(100% - 30px));
  }

  .hero {
    min-height: 500px;
  }

  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-block;
  }

  .container {
    width: calc(100% - 24px);
  }

  .site-header {
    padding-top: 92px;
  }

  .nav-shell {
    width: calc(100% - 24px);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    gap: 4px;
    display: grid;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.24s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    align-items: flex-start;
    padding: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }

  .hero-visual {
    justify-self: stretch;
  }

  .adv-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .adv-card {
    min-height: auto;
  }

  .service-item {
    min-height: 170px;
  }

  .map-card,
  .map-card img {
    min-height: 220px;
  }
}

.ico-level2 {
  color: #8dcaf5 !important;
}

.serviceIcon {
  font-size: 2rem;
  color: var(--brand);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.service-item:hover .serviceIcon,
.service-item:focus-visible .serviceIcon {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.serviceIcon.icon-level {
  color: #c54c64;
}

.serviceIcon.icon-crypto {
  color: #c68a1d;
}

.serviceIcon.icon-network {
  color: #1f6dff;
}

.serviceIcon.icon-training {
  color: #0f8a6b;
}

.serviceIcon.icon-testing {
  color: #6d57c8;
}

.important-star {
  color: red;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
    transform: none;
  }

  body::after {
    transition: none;
    background: transparent;
  }

}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-card {
  border: 1px solid #d7deed;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.content-card h3 {
  font-size: 22px;
  color: #29364d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


.content-card h3 i {
  color: var(--brand);
  font-size: 0.82em;
}

.content-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #3e4b61;
  font-size: 16px;
}

.content-card li {
  margin: 20px 0;
  line-height: 1.6;
}

.contact-map {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #d7deed;
  overflow: hidden;
  max-width: 661px;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-subCompany {
  margin: 0;
  font-size: 18px;
  color: #2a3750;
  margin-bottom: 10px;
}


/* 二维码浮动样式 */
.qcode {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #891b31c7;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  z-index: 1000;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.qcode:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.qcode img {
  width: 150px;

  display: block;
  margin: 0 auto 10px;
}

.qcode p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Microsoft YaHei', sans-serif;
}

@media (max-width: 1012px) {
  .content-grid {
      margin-top: 16px;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 12px;
  }

}