:root {
  --ink: #14243d;
  --muted: #5b6b83;
  --line: #dbe7f4;
  --panel: #ffffff;
  --ice: #f5faff;
  --blue: #2563eb;
  --cyan: #10a9c7;
  --green: #18a77b;
  --amber: #f2a93b;
  --shadow: 0 16px 42px rgba(32, 88, 151, 0.14);
  --soft-shadow: 0 10px 30px rgba(35, 70, 111, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 42%, #f9fbfd 100%);
  background-size: 36px 36px, 36px 36px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(16, 169, 199, 0.12), transparent 30%),
    linear-gradient(245deg, rgba(24, 167, 123, 0.12), transparent 34%);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 118px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(192, 215, 239, 0.7);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(38, 75, 121, 0.08);
}

.brand-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 260px;
}

.brand img {
  max-height: 48px;
  width: auto;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 280px;
  margin-left: auto;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.search-form input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.search-form button {
  width: 72px;
  height: 38px;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
}

.hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  color: #1c4ca3;
  font-weight: 700;
  background: #eef6ff;
  white-space: nowrap;
}

.hotline::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 167, 123, 0.15);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-search-link {
  position: relative;
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-search-link::before,
.mobile-search-link::after {
  content: "";
  position: absolute;
}

.mobile-search-link::before {
  top: 10px;
  left: 11px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.mobile-search-link::after {
  top: 22px;
  left: 24px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(45deg);
  transform-origin: left center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #233754;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list > li:hover > a,
.nav-list > li:focus-within > a {
  color: var(--blue);
  background: #edf6ff;
}

.has-dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(198, 219, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: #34445c;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown a:hover {
  color: var(--blue);
  background: #edf6ff;
}

.hero-section {
  padding: 22px 0 0;
}

.carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(182, 211, 238, 0.9);
  border-radius: 8px;
  background: #dfefff;
  box-shadow: var(--shadow);
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.carousel-track {
  position: relative;
  aspect-ratio: 1180 / 390;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.8s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.slide a,
.slide img {
  width: 100%;
  height: 100%;
}

.slide img {
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(15, 36, 65, 0.35);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
  background: rgba(15, 36, 65, 0.55);
  transform: translateY(-50%) scale(1.04);
}

.carousel-control::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.carousel-control.prev {
  left: 16px;
}

.carousel-control.prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.carousel-control.next {
  right: 16px;
}

.carousel-control.next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
  width: 46px;
  background: #fff;
}

.mobile-search {
  display: none;
  margin-top: 14px;
}

.section {
  padding: 34px 0 0;
}

.catalog-section {
  padding-top: 24px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.catalog-item {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 14px 8px;
  border: 1px solid rgba(203, 222, 240, 0.92);
  border-radius: 8px;
  color: #243a56;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.95));
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-item::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 169, 199, 0.72));
}

.catalog-item:hover {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

.catalog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7ff;
}

.catalog-icon img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.catalog-item span:last-child {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  min-width: 0;
  border: 1px solid rgba(203, 222, 240, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.media-card a {
  display: block;
  height: 100%;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef7ff;
}

.media-card h3 {
  min-height: 58px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 14px 12px;
  color: #20334d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.consult-banner {
  margin-top: 24px;
  border: 1px solid rgba(203, 222, 240, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.consult-banner img {
  width: 100%;
}

.site-footer {
  margin-top: 42px;
  padding: 36px 0 22px;
  color: #d9e9fb;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #10233c 0%, #123d58 52%, #155c62 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid section {
  padding: 0 0 8px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
}

.footer-grid p {
  margin: 8px 0;
  color: #d9e9fb;
}

.footer-grid a {
  color: #d9e9fb;
}

.footer-grid a:hover,
.copyright a:hover {
  color: #fff;
}

.qr-code {
  width: 120px;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fff;
}

.copyright {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(226, 240, 255, 0.82);
  text-align: center;
  font-size: 14px;
}

.copyright a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: rgba(226, 240, 255, 0.88);
}

.copyright img {
  width: 18px;
  height: 18px;
}

@media (max-width: 1080px) {
  .site-header {
    height: 156px;
  }

  .brand-row {
    flex-wrap: wrap;
    padding: 12px 0 8px;
  }

  .brand {
    min-width: 230px;
  }

  .desktop-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    height: 76px;
  }

  .topbar {
    position: fixed;
  }

  .brand-row {
    min-height: 76px;
    flex-wrap: nowrap;
    padding: 0;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand img {
    max-height: 42px;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-search-link {
    display: block;
  }

  .desktop-search,
  .hotline {
    display: none;
  }

  .nav-list {
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
  }

  .nav-list.open {
    display: block;
  }

  .nav-list > li > a {
    justify-content: space-between;
    min-height: 44px;
    padding: 0 4px;
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 8px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 8px 10px;
    white-space: normal;
  }

  .hero-section {
    padding-top: 14px;
  }

  .carousel-track {
    aspect-ratio: 16 / 7;
  }

  .carousel-control {
    width: 34px;
    height: 34px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .carousel-dots button {
    width: 20px;
  }

  .carousel-dots button.active {
    width: 34px;
  }

  .mobile-search {
    display: flex;
    min-width: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-item {
    min-height: 118px;
    font-size: 12px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .media-card h3 {
    min-height: 64px;
    padding: 9px 10px 11px;
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .copyright {
    text-align: left;
  }

  .copyright a {
    margin: 6px 8px 0 0;
  }
}

@media (max-width: 420px) {
  .brand img {
    max-height: 36px;
    max-width: 230px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
