:root {
  --qy-primary: #1263ff;
  --qy-primary-dark: #0744bd;
  --qy-primary-light: #edf4ff;
  --qy-sky: #20b8ff;
  --qy-title: #0f172a;
  --qy-text: #475569;
  --qy-muted: #64748b;
  --qy-line: #e2e8f0;
  --qy-soft-line: #eef3f8;
  --qy-bg: #f8fbff;
  --qy-white: #ffffff;
  --qy-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --qy-shadow-md: 0 24px 70px rgba(15, 23, 42, 0.12);
  --qy-container: 1200px;
}

.qy-header,
.qy-header * {
  box-sizing: border-box;
}

.qy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", Arial, sans-serif;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.035);
}

.qy-header a {
  color: inherit;
  text-decoration: none;
}

.qy-header button,
.qy-header input {
  font: inherit;
}

.qy-header button {
  cursor: pointer;
}

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

.qy-container {
  width: min(var(--qy-container), calc(100% - 40px));
  margin: 0 auto;
}

.qy-navbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
}

.qy-navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}

.qy-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.qy-logo img {
  width: auto;
  height: 42px;
}

.qy-nav {
  flex: 1;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qy-nav__item {
  height: 76px;
  display: flex;
  align-items: center;
}

.qy-nav__link,
.qy-nav__button {
  position: relative;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #1e293b;
  border: 0;
  background: transparent;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.qy-nav__link::after,
.qy-nav__button::after {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--qy-primary), var(--qy-sky));
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.18s ease;
}

.qy-nav__link:hover,
.qy-nav__button:hover,
.qy-nav__link.is-current,
.qy-nav__item.is-open .qy-nav__button {
  color: var(--qy-primary);
}

.qy-nav__link:hover::after,
.qy-nav__button:hover::after,
.qy-nav__link.is-current::after,
.qy-nav__item.is-open .qy-nav__button::after {
  opacity: 1;
  transform: scaleX(1);
}

.qy-nav__button i {
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.qy-nav__item:hover .qy-nav__button i,
.qy-nav__item:focus-within .qy-nav__button i,
.qy-nav__item.is-open .qy-nav__button i {
  margin-top: 2px;
  transform: rotate(225deg);
}

.qy-dropdown {
  position: absolute;
  left: 0;
  top: 76px;
  width: 100%;
  padding: 14px 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.22s ease;
}

.qy-nav__item:hover .qy-dropdown,
.qy-nav__item:focus-within .qy-dropdown,
.qy-nav__item.is-open .qy-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.qy-mega-panel {
  width: min(1280px, calc(100vw - 36px));
  min-height: 430px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0 0 28px 28px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14);
}

.qy-mega-sidebar {
  position: relative;
  padding: 22px 0 28px;
  background: linear-gradient(145deg, #eef3f9 0%, #f8fbff 46%, #e9eef6 100%);
  overflow: hidden;
}

.qy-mega-sidebar::after {
  position: absolute;
  right: -128px;
  bottom: -74px;
  width: 310px;
  height: 310px;
  content: "";
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.45);
}

.qy-mega-sidebar h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 30px;
  padding: 0 14px;
  color: var(--qy-title);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -1px;
}

.qy-mega-sidebar__tag {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 10px;
  color: var(--qy-title);
  font-size: 15px;
  font-weight: 900;
}

.qy-mega-sidebar__tag em {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  color: #ffffff;
  border-radius: 3px;
  background: #0b63ff;
  font-size: 11px;
  font-style: italic;
  font-weight: 900;
}

.qy-mega-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  max-height: 330px;
  overflow-y: auto;
  padding: 0 0 12px;
}

.qy-mega-nav a,
.qy-mega-nav button {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #0f172a;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  transition: 0.18s ease;
}

.qy-mega-nav a::after,
.qy-mega-nav button::after {
  position: absolute;
  left: 13px;
  bottom: 0;
  width: 68px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #0b63ff;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: 0.18s ease;
}

.qy-mega-nav a:hover,
.qy-mega-nav a.is-active,
.qy-mega-nav button:hover,
.qy-mega-nav button.is-active {
  color: #005cff;
  font-weight: 900;
}

.qy-mega-nav a.is-active::after,
.qy-mega-nav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.qy-mega-main {
  min-width: 0;
  padding: 12px 34px 34px;
  background: #ffffff;
}

.qy-mega-top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 34px;
  min-height: 52px;
  margin-bottom: 20px;
}

.qy-mega-title span {
  display: block;
  color: var(--qy-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.qy-mega-title strong {
  display: block;
  margin-top: 5px;
  color: var(--qy-title);
  font-size: 24px;
  line-height: 1.2;
}

.qy-mega-more {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--qy-primary);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.qy-product-search {
  height: 40px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #f7f9fc;
}

.qy-product-search span {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid #0b63ff;
  border-radius: 50%;
  position: relative;
}

.qy-product-search span::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  content: "";
  background: #0b63ff;
  border-radius: 999px;
  transform: rotate(45deg);
}

.qy-product-search input {
  width: 100%;
  height: 36px;
  color: #1e293b;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.qy-product-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.qy-product-tabs button {
  min-width: 88px;
  height: 40px;
  padding: 0 16px;
  color: #0f172a;
  border: 0;
  background: #f3f5f8;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.18s ease;
}

.qy-product-tabs button:hover,
.qy-product-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--qy-primary), var(--qy-sky));
  box-shadow: 0 10px 24px rgba(18, 99, 255, 0.2);
}

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

.qy-mega-card {
  min-height: 130px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 24px;
  color: inherit;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 99, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
  transition: 0.18s ease;
}

.qy-mega-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 99, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #ffffff, #f2f7ff);
  box-shadow: 0 26px 58px rgba(18, 99, 255, 0.14);
}

.qy-mega-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--qy-primary);
  border-radius: 50%;
  background: var(--qy-primary-light);
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(18, 99, 255, 0.13);
}

.qy-mega-card strong {
  display: block;
  color: var(--qy-title);
  font-size: 19px;
  line-height: 1.35;
}

.qy-mega-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qy-actions a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.qy-actions__login {
  padding: 0 18px;
  color: var(--qy-white);
  background: linear-gradient(135deg, var(--qy-primary), var(--qy-sky));
  box-shadow: 0 12px 28px rgba(18, 99, 255, 0.24);
}

.qy-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
}

.qy-menu-toggle span,
.qy-menu-toggle span::before,
.qy-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--qy-title);
  border-radius: 999px;
}

.qy-menu-toggle span {
  position: relative;
  margin: 0 auto;
}

.qy-menu-toggle span::before,
.qy-menu-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.qy-menu-toggle span::before {
  top: -7px;
}

.qy-menu-toggle span::after {
  top: 7px;
}

.qy-mobile-menu {
  display: none;
}

.qy-mobile-panel {
  display: none;
}

.qy-mobile-panel.is-active {
  display: block;
}

.qy-mobile-panel h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 18px 16px 14px;
  color: var(--qy-title);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--qy-soft-line);
  font-size: 20px;
  line-height: 1.2;
  backdrop-filter: blur(12px);
}

.qy-mobile-panel h4 {
  margin: 18px 14px 10px;
  color: var(--qy-primary);
  font-size: 14px;
  font-weight: 900;
}

.qy-mobile-panel a {
  display: block;
  margin: 0 12px 10px;
  padding: 14px;
  border: 1px solid var(--qy-line);
  border-radius: 16px;
  background: var(--qy-white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.qy-mobile-panel a strong {
  display: block;
  color: var(--qy-title);
  font-size: 15px;
  line-height: 1.25;
}

.qy-mobile-panel a span {
  display: block;
  margin-top: 6px;
  color: var(--qy-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1320px) {
  .qy-mega-panel {
    width: min(1180px, calc(100vw - 28px));
  }

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

@media (max-width: 1220px) {
  .qy-nav__link,
  .qy-nav__button {
    padding: 0 10px;
  }
}

@media (max-width: 1120px) {
  .qy-navbar {
    height: auto;
  }

  .qy-navbar__inner {
    min-height: 72px;
    height: auto;
    flex-wrap: wrap;
    gap: 16px;
  }

  .qy-menu-toggle {
    display: block;
  }

  .qy-nav {
    display: none;
  }

  .qy-mobile-menu {
    position: relative;
    width: 100%;
    height: calc(100vh - 72px);
    min-height: 430px;
    max-height: 760px;
    grid-template-columns: 34% 66%;
    border-top: 1px solid var(--qy-line);
    background: #f8fbff;
    overflow: hidden;
  }

  .qy-mobile-menu.is-open {
    display: grid;
  }

  .qy-mobile-menu__left {
    height: 100%;
    padding: 12px 8px;
    background: #f1f6ff;
    border-right: 1px solid var(--qy-line);
    overflow-y: auto;
  }

  .qy-mobile-menu__left button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    padding: 0 12px;
    color: #334155;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
  }

  .qy-mobile-menu__left button.is-active {
    color: var(--qy-primary);
    background: var(--qy-white);
    box-shadow: 0 10px 24px rgba(18, 99, 255, 0.1);
  }

  .qy-mobile-menu__right {
    height: 100%;
    background: var(--qy-white);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .qy-container {
    width: min(100% - 28px, var(--qy-container));
  }

  .qy-navbar__inner {
    min-height: 66px;
  }

  .qy-logo img {
    height: 36px;
  }

  .qy-actions__login {
    height: 36px;
    padding: 0 14px;
  }

  .qy-mobile-menu {
    height: calc(100vh - 66px);
    min-height: 420px;
    grid-template-columns: 32% 68%;
  }

  .qy-mobile-menu__left {
    padding: 10px 6px;
  }

  .qy-mobile-menu__left button {
    min-height: 46px;
    margin-bottom: 7px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 13px;
  }

  .qy-mobile-panel h3 {
    padding: 16px 14px 12px;
    font-size: 18px;
  }

  .qy-mobile-panel h4 {
    margin: 16px 10px 8px;
  }

  .qy-mobile-panel a {
    margin: 0 10px 9px;
    padding: 12px;
    border-radius: 14px;
  }

  .qy-mobile-panel a strong {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .qy-actions__login {
    display: none;
  }
}


/* ===== 产品卡片国旗图标 ===== */
.qy-mega-card__flag {
  object-fit: cover;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}


/* ===== 产品服务卡片精简版：去掉自动说明文字后的居中优化 ===== */
.qy-product-dropdown .qy-mega-card {
  align-items: center;
  min-height: 104px;
}

.qy-product-dropdown .qy-mega-card strong {
  font-size: 18px;
}

.qy-product-dropdown .qy-mega-card p {
  display: none !important;
}
