/* Xunyi Blocks 2.4.0 — restrained real-photography feature. */
.xunyi-photo-feature {
  padding: 72px 24px 78px;
  background: #fff;
}
.xunyi-photo-feature .xunyi-photo-feature-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  gap: 52px;
}
.xunyi-photo-feature-image {
  margin: 0;
}
.xunyi-photo-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #e3ebf3;
  border-radius: 14px;
}
.xunyi-photo-feature-image figcaption {
  margin-top: 11px;
  color: #8291a1;
  font-size: 12px;
  line-height: 1.75;
  text-align: left;
}
.xunyi-photo-feature-copy h2 {
  margin: 0 0 16px;
  color: #173351;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.4;
  letter-spacing: -.035em;
}
.xunyi-photo-feature-copy > p:not(.xunyi-eyebrow) {
  margin: 0 0 18px;
  color: #71849a;
  font-size: 16px;
  line-height: 1.9;
}
.xunyi-photo-feature-copy ul {
  margin: 0 0 20px;
  padding-left: 1.1em;
  color: #526d88;
  font-size: 14px;
  line-height: 2;
}
.xunyi-photo-feature-copy .wp-block-button__link {
  font-size: 15px;
}
@media (max-width: 1000px) {
  .xunyi-photo-feature-grid { gap: 30px; }
}
@media (max-width: 781px) {
  .xunyi-photo-feature { padding: 48px 20px 52px; }
  .xunyi-photo-feature-grid { gap: 26px; }
  .xunyi-photo-feature-copy h2 { font-size: 29px; }
  .xunyi-photo-feature-copy > p:not(.xunyi-eyebrow) { font-size: 15px; }
  .xunyi-photo-feature-image figcaption { font-size: 11px; }
}

/* Core may retain legacy flex item widths on a post template rendered as grid. */
.xunyi-services-query ul.wp-block-post-template > li,
.xunyi-archive-query ul.wp-block-post-template > li,
.xunyi-section .wp-block-query ul.wp-block-post-template > li {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
.xunyi-services-query .xunyi-content-card,
.xunyi-archive-query .xunyi-content-card,
.xunyi-section .wp-block-query .xunyi-content-card,
.xunyi-news-query .xunyi-news-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
}


/* 2.5.0 mobile refinement: prevent the Chinese header, hero and navigation from crowding small screens. */
@media (max-width: 782px) {
  .xunyi-site-header .nav-wrap {
    width: calc(100% - 32px);
    min-height: 66px;
    flex-wrap: nowrap !important;
    gap: 10px;
    margin-inline: auto;
  }
  .xunyi-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }
  .xunyi-brand .wp-block-site-logo img { width: 38px; height: 38px; }
  .xunyi-brand .brand-copy { min-width: 0; overflow: hidden; }
  .xunyi-site-title {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .xunyi-tagline {
    overflow: hidden;
    font-size: 8px;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .xunyi-header-cta { display: none !important; }
  .xunyi-navigation { flex: 0 0 auto; margin-left: auto; }
  .xunyi-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .xunyi-navigation .wp-block-navigation__responsive-container-open {
    display: grid !important;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #dce6f0;
    border-radius: 9px;
    background: #fff;
    color: #244c70;
  }
  .xunyi-navigation .wp-block-navigation__responsive-container-open svg { width: 21px; height: 21px; }
  .xunyi-navigation .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    z-index: 99999 !important;
    inset: 0 !important;
    display: block !important;
    overflow-y: auto;
    padding: 68px 22px 24px;
    background: #fff;
  }
  .xunyi-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: 16px;
    right: 17px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #dce6f0;
    border-radius: 9px;
    color: #244c70;
  }
  .xunyi-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: block;
    width: 100%;
    padding: 0;
  }
  .xunyi-navigation .wp-block-navigation__container {
    display: flex;
    width: 100%;
    align-items: stretch !important;
    flex-direction: column;
    gap: 0;
  }
  .xunyi-navigation .wp-block-navigation-item { width: 100%; border-bottom: 1px solid #edf1f5; }
  .xunyi-navigation .wp-block-navigation-item__content {
    display: block;
    padding: 13px 4px;
    color: #284b6e;
    font-size: 16px !important;
    line-height: 1.5;
  }
  .xunyi-home-hero { padding: 26px 16px 13px; }
  .xunyi-home-hero-grid { gap: 10px; }
  .xunyi-hero-copy { padding: 5px 0 0; }
  .xunyi-hero-title {
    max-width: 100%;
    margin-bottom: 13px;
    font-size: clamp(29px, 7.4vw, 34px);
    line-height: 1.43;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  .xunyi-hero-lead { font-size: 14px; line-height: 1.82; }
  .xunyi-hero-copy .wp-block-buttons { gap: 8px; }
  .xunyi-hero-copy .wp-block-button__link { padding: 11px 14px; font-size: 13px; }
  .xunyi-hero-foot { font-size: 11px; line-height: 1.75; }
  .xunyi-hero-media { width: 100%; margin-top: 3px; }
  .xunyi-hero-image {
    height: clamp(215px, 61vw, 285px);
    border-radius: 14px;
  }
  .xunyi-hero-image img { max-height: 100%; padding: 10px; object-fit: contain; }
  .xunyi-image-hint { margin-top: 6px; font-size: 10px; }
  .xunyi-hero-meta { margin-top: 6px; padding-top: 10px; font-size: 10px; }
}

/* Matching read-only preview presentation. */
.map-star {
  position: absolute;
  z-index: 4;
  top: calc(50% - 30px);
  left: calc(50% + 43px);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #efa247;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 1px 0 #fff, 0 3px 8px rgba(76, 91, 108, .18);
}
.map-center small { display: none; }
@media (max-width: 720px) {
  .home-hero-copy h1 { font-size: clamp(29px, 7.4vw, 34px); line-height: 1.43; letter-spacing: -.045em; }
  .home-hero-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.82; }
  .hero-buttons { flex-wrap: wrap; gap: 8px; }
  .hero-buttons .button { min-height: 44px; padding: 0 14px; font-size: 12px; }
  .home-visual { height: clamp(265px, 76vw, 315px); margin-top: 8px; }
  .visual-panel { height: 260px; padding: 13px 12px; }
  .panel-top { font-size: 10px; }
  .panel-top small { display: none; }
  .system-map { height: 184px; margin: 9px 0; }
  .map-node { width: 36%; min-width: 0; gap: 5px; padding: 7px 6px; font-size: 9px; line-height: 1.35; }
  .map-node b { width: 22px; height: 22px; flex: 0 0 22px; font-size: 11px; }
  .map-node span { min-width: 0; }
  .map-left { left: 0; }
  .map-right { right: 0; }
  .map-top { left: calc(50% - 48px); }
  .map-bottom { left: calc(50% - 48px); }
  .map-top, .map-bottom { width: 96px; justify-content: center; }
  .map-center { width: 66px; height: 66px; top: calc(50% - 33px); left: calc(50% - 33px); border-width: 5px; }
  .map-center span { font-size: 15px; }
  .map-star { top: calc(50% - 25px); left: calc(50% + 29px); width: 20px; height: 20px; font-size: 20px; }
  .panel-bottom { padding-top: 8px; font-size: 8px; letter-spacing: .04em; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .map-node { width: 38%; gap: 4px; font-size: 8px; }
  .map-node b { width: 20px; height: 20px; flex-basis: 20px; }
  .map-center { width: 60px; height: 60px; top: calc(50% - 30px); left: calc(50% - 30px); }
  .map-center span { font-size: 14px; }
  .map-star { left: calc(50% + 26px); top: calc(50% - 23px); font-size: 18px; }
}


/* Final visual spacing: keep the star distinct from the circle and the schematic footer unobstructed. */
.map-star { left: calc(50% + 53px); top: calc(50% - 36px); }
.visual-floating { display: none; }
@media (max-width: 720px) {
  .map-star { left: calc(50% + 41px); top: calc(50% - 27px); }
}
@media (max-width: 390px) {
  .map-star { left: calc(50% + 38px); top: calc(50% - 25px); }
}
