:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #f6faff;
  color: #172033;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body.qh-news-site {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f6faff;
  color: #172033;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: #fff;
  color: #075dff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.qh-news-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  min-height: 60px;
  background: #696c6f;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.qh-news-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 120px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.qh-news-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 60px;
}

.qh-news-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.qh-news-nav a:hover,
.qh-news-nav a:focus-visible,
.qh-news-nav a.active {
  color: #79ef9e;
}

.qh-news-nav a.active::after {
  position: absolute;
  right: 18px;
  bottom: 11px;
  left: 18px;
  height: 3px;
  background: #79ef9e;
  content: "";
}

.qh-news-account {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 38px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.qh-news-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 23px;
  line-height: 1;
}

.qh-news-mobile-brand { display: none; }
.qh-news-contact-link { display: inline-block; margin-top: 18px; color: #89d4f3; font-size: 14px; text-decoration: none; }
.qh-news-contact-link:hover { text-decoration: underline; }

#news-main {
  display: block;
  width: 100%;
  min-height: 640px;
}

.qh-news-loading {
  display: grid;
  min-height: 640px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(54, 128, 255, 0.1), transparent 34%),
    linear-gradient(#fff, #f6faff);
  color: #071733;
  text-align: center;
}

.qh-news-loading strong {
  font-size: 20px;
  line-height: 1.4;
}

.qh-news-loading small {
  color: #6b7b91;
  font-size: 14px;
}

.qh-news-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(31, 127, 229, 0.18);
  border-top-color: #1f7fe5;
  border-radius: 50%;
  animation: qh-news-loading-spin 0.8s linear infinite;
}

@keyframes qh-news-loading-spin {
  to { transform: rotate(360deg); }
}

.xy-news-bg {
  min-height: 1050px;
}

.xy-news-head {
  width: 100%;
  max-width: 820px;
}

.xy-news-posts .elementor-post__title a,
.xy-news-posts .elementor-post__read-more,
.xy-news-desc a {
  outline-offset: 4px;
}

.xy-news-detail-page {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 22px;
}

.xy-news-detail-page .xy-news-article-header .elementor-heading-title {
  overflow-wrap: anywhere;
}

.xy-news-content .xy-wp-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.xy-news-content .xy-wp-content pre,
.xy-news-content .xy-wp-content table {
  max-width: 100%;
  overflow-x: auto;
}

.xy-news-content .xy-wp-content a {
  color: #075dff;
}

.xy-news-content img { max-width: 100%; height: auto; }
.xy-news-content .xy-wp-content .xy-cta a { color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid #1f7fe5; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .xy-news-posts article.elementor-post { transition: none; }
  .xy-news-posts article.elementor-post:hover { transform: none; }
  .qh-news-loading-spinner { animation: none; }
}

.qh-news-article-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 960px;
  margin: 28px auto 0;
}

.qh-news-article-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #9bc2ef;
  border-radius: 6px;
  background: #fff;
  color: #1769c2;
  font-weight: 800;
  text-decoration: none;
}

.qh-news-footer {
  width: 100%;
  padding: 44px 30px 20px;
  background: linear-gradient(105deg, #091e47, #062844);
  color: #aab7cc;
}

.qh-news-footer-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.qh-news-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 94px;
  margin-bottom: 30px;
  padding: 18px 26px;
  border: 1px solid rgba(115, 177, 236, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.qh-news-footer-cta h2 {
  margin: 0;
  color: #6ec1e4;
  font-size: clamp(22px, 2.45vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}

.qh-news-footer-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  background: linear-gradient(90deg, #0d6cff, #08a9f5);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.qh-news-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.05fr;
  gap: 46px;
  padding: 0 4px 34px;
}

.qh-news-footer-grid h4 {
  margin: 4px 0 20px;
  color: #fff;
  font-size: 17px;
}

.qh-news-logo {
  display: grid;
  width: 214px;
  min-height: 78px;
  align-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: #071733;
  text-decoration: none;
}

.qh-news-logo strong {
  font-size: 30px;
  line-height: 1;
}

.qh-news-logo span {
  color: #1769c2;
  font-size: 13px;
  font-weight: 900;
}

.qh-news-logo small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
}

.qh-news-footer-brand p {
  max-width: 320px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.85;
}

.qh-news-footer-links {
  display: grid;
  gap: 8px;
}

.qh-news-footer-links a {
  color: #aab7cc;
  font-size: 13px;
  text-decoration: none;
}

.qh-news-footer-links a:hover,
.qh-news-footer-links a:focus-visible {
  color: #6ec1e4;
}

.qh-news-footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qh-news-footer-grid li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.45;
}

.qh-news-footer-grid li::before {
  position: absolute;
  left: 0;
  color: #7f92ae;
  content: "✓";
}

.qh-news-contact-list li {
  padding-left: 0;
}

.qh-news-contact-list li::before {
  content: none;
}

.qh-news-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  min-height: 46px;
  border-top: 1px solid rgba(170, 183, 204, 0.2);
  font-size: 12px;
}

.qh-news-footer-bottom p {
  margin: 0;
}

.qh-news-error {
  display: grid;
  min-height: 640px;
  place-content: center;
  padding: 40px 24px;
  text-align: center;
}

.qh-news-error h1 {
  margin: 0 0 14px;
  font-size: 28px;
}

.qh-news-error a {
  color: #075dff;
}

@media (max-width: 1100px) {
  .qh-news-header-inner {
    padding-right: 110px;
    padding-left: 10px;
  }

  .qh-news-nav a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .qh-news-nav a.active::after {
    right: 10px;
    left: 10px;
  }

  .qh-news-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .qh-news-footer-grid > section:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 960px) {
  .qh-news-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    gap: 0;
    min-height: 60px;
    padding: 14px 14px;
  }

  .qh-news-menu-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #85898f;
    font-size: 16px;
  }

  .qh-news-mobile-brand {
    display: none;
    justify-self: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
  }

  .qh-news-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    min-height: 0;
    padding: 8px 12px 14px;
    background: #616468;
    box-shadow: 0 12px 28px rgba(7, 23, 51, 0.18);
  }

  .qh-news-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qh-news-nav a {
    min-height: 42px;
    padding: 0 8px;
  }

  .qh-news-nav a.active::after {
    right: 20%;
    bottom: 4px;
    left: 20%;
  }

  .qh-news-account {
    position: static;
    grid-column: 3;
    justify-self: end;
    min-width: 91px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
  }

  .xy-news-bg {
    min-height: 0;
  }

  .xy-news-detail-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .qh-news-footer {
    padding: 30px 18px 16px;
  }

  .qh-news-footer-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .qh-news-footer-cta a {
    width: 100%;
  }

  .qh-news-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .qh-news-footer-grid > section:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .qh-news-footer-grid {
    grid-template-columns: 1fr;
  }

  .qh-news-footer-grid > section:last-child {
    grid-column: auto;
  }

  .qh-news-footer-brand p,
  .qh-news-logo {
    max-width: 100%;
  }

  .qh-news-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0 0;
  }
}

/* Shared main-site header contract, scoped to news to leave article CSS intact.
   Values match styles.css (profilehover2); no main workbench bundle is loaded. */
.qh-news-header[data-qh-news-header] {
  position: sticky; top: 0; height: 58px; min-height: 58px;
  border-bottom: 1px solid #dce5f2; background: rgba(247,251,255,.94);
  backdrop-filter: blur(18px); box-shadow: 0 4px 18px rgba(44,79,133,.06);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
.qh-news-header[data-qh-news-header] .qh-news-header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 57px; min-height: 57px; gap: 18px; padding: 0 22px; font-family: inherit;
}
.qh-news-header[data-qh-news-header] .qh-news-nav {
  position: absolute; inset: 0 auto 0 50%; display: flex; align-items: center;
  justify-content: center; width: calc(100% - 360px); min-height: 0; gap: 4px;
  transform: translateX(-50%); padding: 0; background: transparent; box-shadow: none;
}
.qh-news-header[data-qh-news-header] .qh-news-nav a {
  display: inline-flex; min-height: 32px; padding: 9px 12px; border: 0; border-radius: 0;
  font: 400 14px/1 Arial, "Microsoft YaHei", sans-serif; color: #263758;
  background: transparent; white-space: nowrap;
}
.qh-news-header[data-qh-news-header] .qh-news-nav a:hover,
.qh-news-header[data-qh-news-header] .qh-news-nav a:focus-visible,
.qh-news-header[data-qh-news-header] .qh-news-nav a.active {
  color: #3474e8; box-shadow: inset 0 -3px 0 #64dc8b;
}
.qh-news-header[data-qh-news-header] .qh-news-nav a.active::after { content: none; }
.qh-news-header[data-qh-news-header] .profile-menu-wrap { position: relative; margin-left: auto; min-width: 0; }
.qh-news-header[data-qh-news-header] .qh-news-account {
  position: static; display: inline-block; max-width: 240px; min-width: 0; min-height: 39px;
  padding: 9px 14px; border: 0; border-radius: 999px; background: #182034; color: #fff;
  box-shadow: 0 6px 18px rgba(20,34,65,.16);
  font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 16px; font-weight: 400; line-height: normal;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; cursor: pointer;
}
.qh-news-header[data-qh-news-header] .profile-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 35; display: grid;
  min-width: 148px; overflow: hidden; border: 1px solid #d5e0f0; border-radius: 6px;
  padding: 6px 0; background: #fff; box-shadow: 0 12px 28px rgba(23,48,91,.18);
}
.qh-news-header[data-qh-news-header] .profile-menu[hidden] { display: none; }
.qh-news-header[data-qh-news-header] .profile-menu-wrap.open::after {
  content: ""; position: absolute; top: 100%; right: 0; width: 100%; min-width: 148px; height: 8px;
}
.qh-news-header[data-qh-news-header] .profile-menu button {
  border: 0; border-radius: 0; padding: 12px 16px; background: #fff; color: #27395d;
  text-align: left; font: 400 13px Arial, "Microsoft YaHei", sans-serif; white-space: nowrap; cursor: pointer;
}
.qh-news-header[data-qh-news-header] .profile-menu button:hover,
.qh-news-header[data-qh-news-header] .profile-menu button:focus-visible { background: #edf4ff; color: #2868dc; }
.qh-news-account-status { position: fixed; top: 68px; right: 18px; z-index: 45; max-width: calc(100vw - 36px); margin: 0; padding: 12px 16px; border: 1px solid #c9d6ea; border-radius: 8px; color: #263758; background: #fff; box-shadow: 0 8px 24px #17305b20; font: 14px/1.6 Arial, "Microsoft YaHei", sans-serif; }
.qh-news-account-modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 140; padding: 20px; background: rgba(0,0,0,.66); font: 16px Arial, "Microsoft YaHei", sans-serif; }
.qh-news-account-modal .modal { width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #d7e2f2; border-radius: 8px; background: #fff; color: #1c2d51; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.qh-news-account-modal .modal header, .qh-news-account-modal .modal footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e3eaf4; }
.qh-news-account-modal .modal footer { justify-content: flex-end; gap: 8px; border-bottom: 0; border-top: 1px solid #e3eaf4; }
.qh-news-account-modal .modal main { padding: 20px; color: #536887; line-height: 1.75; }
.qh-news-account-modal .modal main p { margin: 1em 0; }
.qh-news-account-modal button { font-family: inherit; cursor: pointer; }
.qh-news-account-modal .icon-button { border: 0; background: transparent; color: #9daab9; font-size: 20px; }
.qh-news-account-modal .primary-button { padding: 13px 18px; border: 0; border-radius: 6px; background: #9ef36f; color: #09111c; font-size: 16px; font-weight: 700; }
.qh-news-account-modal [data-account-retry] { padding: 8px 12px; border: 1px solid #c9d6ea; border-radius: 6px; color: #2465d8; background: #edf4ff; }
.qh-news-account-modal [hidden], .qh-news-account-status[hidden] { display: none; }
@media (max-width: 1190px) {
  .qh-news-header[data-qh-news-header] .qh-news-nav { position: static; width: auto; transform: none; margin-right: 0; }
  .qh-news-header[data-qh-news-header] .qh-news-nav a { padding-inline: 8px; }
  .qh-news-header[data-qh-news-header] .qh-news-account { max-width: 190px; }
}
@media (max-width: 1040px) {
  .qh-news-header[data-qh-news-header] { height: 60px; min-height: 60px; }
  .qh-news-header[data-qh-news-header] .qh-news-header-inner { height: 59px; min-height: 59px; padding: 0 18px; gap: 12px; }
  .qh-news-header[data-qh-news-header] .qh-news-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #d5e0f0; border-radius: 6px; background: #edf4ff; color: #263758; font-size: 20px; cursor: pointer; }
  .qh-news-header[data-qh-news-header] .qh-news-mobile-brand { display: inline; color: #263758; font: 700 16px Arial, "Microsoft YaHei", sans-serif; text-decoration: none; white-space: nowrap; }
  .qh-news-header[data-qh-news-header] .qh-news-nav { position: absolute; inset: 59px 0 auto; display: none; width: 100%; padding: 8px 12px 14px; background: #f7fbff; box-shadow: 0 12px 28px rgba(23,48,91,.18); }
  .qh-news-header[data-qh-news-header] .qh-news-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qh-news-header[data-qh-news-header] .qh-news-nav a { min-height: 42px; white-space: normal; line-height: 1.4; padding: 8px; }
  .qh-news-header[data-qh-news-header] .qh-news-account { max-width: min(190px, 46vw); min-height: 36px; padding: 8px 10px; font-size: 14px; }
}
