/*
Theme Name: Hanyun Child
Theme URI: https://hanyun.site/
Description: Lightweight child theme for Hanyun Technology based on Twenty Twenty-Five.
Author: Hanyun
Template: twentytwentyfive
Version: 1.0.0
Text Domain: hanyun-child
*/

:root {
  --hanyun-blue: #0b4f8a;
  --hanyun-blue-dark: #083a66;
  --hanyun-accent: #1f8dd6;
  --hanyun-soft: #f3f7fb;
  --hanyun-border: #dbe7f2;
}

html { scroll-behavior: smooth; }
body { background: #ffffff; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.hanyun-site-header {
  border-bottom: 1px solid var(--hanyun-border);
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 100%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(11, 79, 138, 0.06);
}
.hanyun-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.hanyun-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.hanyun-brand img { width: 44px; height: auto; }
.hanyun-brand strong {
  color: var(--hanyun-blue-dark);
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.wp-block-navigation.hanyun-main-nav {
  font-size: 15px;
  font-weight: 500;
}
.wp-block-navigation.hanyun-main-nav a { color: #16324f; }
.wp-block-navigation.hanyun-main-nav a:hover { color: var(--hanyun-accent); }

.hanyun-hero {
  background: linear-gradient(135deg, rgba(8,58,102,0.93), rgba(31,141,214,0.78)), url('/wp-content/uploads/hanyun-assets/site.jpg') center/cover no-repeat;
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hanyun-hero .wp-block-cover__inner-container,
.hanyun-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 82px;
}
.hanyun-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 820px;
}
.hanyun-hero p {
  color: rgba(255,255,255,0.94);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
  max-width: 840px;
}
.hanyun-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hanyun-button,
.hanyun-button-outline {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.hanyun-button { background: #fff; color: var(--hanyun-blue-dark); }
.hanyun-button-outline { border: 1px solid rgba(255,255,255,0.72); color: #fff; }

.hanyun-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
}
.hanyun-section-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px;
}
.hanyun-section h2,
.hanyun-section-narrow h2 {
  color: var(--hanyun-blue-dark);
  font-size: clamp(25px, 3vw, 36px);
  margin-top: 0;
}
.hanyun-lead { font-size: 18px; line-height: 1.8; color: #334155; }
.hanyun-muted { color: #64748b; }

.hanyun-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.hanyun-card {
  background: #fff;
  border: 1px solid var(--hanyun-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(15, 55, 90, 0.07);
}
.hanyun-card h3 { color: var(--hanyun-blue-dark); margin-top: 0; }
.hanyun-card p, .hanyun-card li { line-height: 1.75; }
.hanyun-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 14px;
}
.hanyun-band {
  background: var(--hanyun-soft);
  border-top: 1px solid var(--hanyun-border);
  border-bottom: 1px solid var(--hanyun-border);
}
.hanyun-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hanyun-two-col img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 55, 90, 0.12);
}
.hanyun-list-check {
  list-style: none;
  padding-left: 0;
}
.hanyun-list-check li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.75;
}
.hanyun-list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hanyun-accent);
  font-weight: 800;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
  border: 1px solid var(--hanyun-border);
  border-radius: 16px;
  padding: 16px !important;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 55, 90, 0.06);
}
.woocommerce ul.products li.product a img {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.woocommerce div.product .product_title { color: var(--hanyun-blue-dark); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-block-button__link {
  border-radius: 999px !important;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--hanyun-blue) !important;
  color: #fff !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--hanyun-blue-dark) !important;
}
.woocommerce .price { color: var(--hanyun-blue-dark) !important; font-weight: 700; }

.hanyun-site-footer {
  background: #082f53;
  color: rgba(255,255,255,0.86);
  margin-top: 48px;
}
.hanyun-site-footer a { color: #fff; }
.hanyun-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.hanyun-footer-inner h3,
.hanyun-footer-inner h4 { color: #fff; margin-top: 0; }

@media (max-width: 900px) {
  .hanyun-header-inner { align-items: flex-start; }
  .hanyun-main-nav { justify-content: flex-end; }
  .hanyun-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hanyun-two-col { grid-template-columns: 1fr; }
  .hanyun-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hanyun-header-inner { padding: 10px 14px; gap: 10px; }
  .hanyun-brand strong { font-size: 17px; }
  .hanyun-brand img { width: 36px; }
  .hanyun-hero-inner { padding: 56px 16px 60px; }
  .hanyun-section, .hanyun-section-narrow { padding: 38px 16px; }
  .hanyun-card-grid { grid-template-columns: 1fr; gap: 14px; }
  .hanyun-card { padding: 20px; }
  .hanyun-cta-row a { width: 100%; text-align: center; }
  .woocommerce ul.products[class*=columns-] li.product { width: 100% !important; float: none !important; }
  table.shop_table_responsive tr td::before { color: var(--hanyun-blue-dark); }
}

/* Amy 2026-09-17: compact top TranslatePress language switcher; hide bottom floating switcher. */
.hanyun-header-nav-language {
  gap: 8px !important;
  align-items: center !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper {
  flex: 0 0 82px !important;
  width: 82px !important;
  max-width: 82px !important;
  min-width: 0 !important;
  --font-size: 11px !important;
  --flag-size: 13px !important;
  --border-radius: 4px !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-language-switcher,
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-current-language-item__wrapper,
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-language-item {
  width: 82px !important;
  max-width: 82px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-language-item {
  min-height: 26px !important;
  padding: 3px 5px !important;
  line-height: 1.15 !important;
  gap: 3px !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-language-item-name {
  font-size: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-shortcode-arrow {
  width: 12px !important;
  height: 12px !important;
}
.hanyun-header-nav-language .trp-shortcode-switcher__wrapper .trp-switcher-dropdown-list {
  width: 82px !important;
  max-width: 82px !important;
}
/* Remove the bottom floating TranslatePress language navigation/switcher. */
.trp-floating-switcher,
.trp-switcher-position-bottom,
.trp-language-switcher.trp-floating-switcher,
.trp-language-switcher.trp-switcher-position-bottom,
#trp-floater-ls,
.trp-language-switcher-container.trp-floater-ls,
.trp-floater-ls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Amy: compact top TranslatePress language switcher height */
.site-header .trp-language-switcher,
.site-header .trp-language-switcher > div,
.site-header .trp-shortcode-switcher,
.site-header .trp-shortcode-switcher__wrapper,
header .trp-language-switcher,
header .trp-language-switcher > div,
header .trp-shortcode-switcher,
header .trp-shortcode-switcher__wrapper {
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.05 !important;
}

.site-header .trp-language-switcher a,
.site-header .trp-language-switcher .trp-ls-shortcode-current-language,
.site-header .trp-language-switcher .trp-ls-shortcode-language,
.site-header .trp-shortcode-switcher a,
.site-header .trp-shortcode-switcher__wrapper a,
header .trp-language-switcher a,
header .trp-language-switcher .trp-ls-shortcode-current-language,
header .trp-language-switcher .trp-ls-shortcode-language,
header .trp-shortcode-switcher a,
header .trp-shortcode-switcher__wrapper a {
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.05 !important;
  min-height: 0 !important;
}

.site-header .trp-language-switcher img,
.site-header .trp-shortcode-switcher img,
header .trp-language-switcher img,
header .trp-shortcode-switcher img {
  max-height: 10px !important;
  width: auto !important;
  margin-right: 2px !important;
}

/* Amy: keep the top site title link white and without underline */
.wp-site-blocks header .wp-block-site-title a,
.wp-site-blocks header .wp-block-site-title a:visited,
.wp-site-blocks header .wp-block-site-title a:hover,
.wp-site-blocks header .wp-block-site-title a:focus,
.wp-site-blocks header .wp-block-site-title a:active,
.wp-site-blocks header a[href="https://hanyun.site/"],
.wp-site-blocks header a[href="/"] {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Amy customization: make top navigation hamburger/toggle bars more visible */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: #111111 !important;
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  width: 32px !important;
  height: 32px !important;
  stroke: #111111 !important;
  fill: #111111 !important;
}

.wp-block-navigation__responsive-container-open svg rect,
.wp-block-navigation__responsive-container-open svg path,
.wp-block-navigation__responsive-container-close svg rect,
.wp-block-navigation__responsive-container-close svg path {
  stroke: #111111 !important;
  fill: #111111 !important;
  stroke-width: 2.6px !important;
}

.wp-block-navigation__responsive-container-open {
  background: rgba(255,255,255,0.78) !important;
  border: 1px solid rgba(0,0,0,0.22) !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  line-height: 1 !important;
}

/* Amy customization: replace text site title with original static CHY logo */
.hanyun-site-header .hanyun-header-logo,
.hanyun-site-header .hanyun-header-logo figure,
.hanyun-site-header .hanyun-header-logo img {
  margin: 0 !important;
}
.hanyun-site-header .hanyun-header-logo img {
  display: block !important;
  width: 95px !important;
  max-width: 95px !important;
  height: auto !important;
}

/* Amy 2026-09-17: center the top navigation area and make navigation links blue */
.hanyun-site-header > .wp-block-group.alignwide {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center !important;
  column-gap: 18px;
}

.hanyun-site-header .hanyun-header-logo {
  grid-column: 1;
  justify-self: start;
}

.hanyun-site-header .hanyun-header-nav-language {
  grid-column: 2 / 4;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  column-gap: 14px;
  width: 100%;
}

.hanyun-site-header .wp-block-navigation {
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hanyun-site-header .wp-block-navigation .wp-block-navigation__container {
  justify-content: center !important;
  gap: 14px 20px;
}

.hanyun-site-header .wp-block-navigation a,
.hanyun-site-header .wp-block-navigation a:visited,
.hanyun-site-header .wp-block-navigation .wp-block-navigation-item__content {
  color: #005bbb !important;
  text-decoration: none !important;
}

.hanyun-site-header .wp-block-navigation a:hover,
.hanyun-site-header .wp-block-navigation a:focus {
  color: #003f86 !important;
  text-decoration: none !important;
}

.hanyun-site-header .trp-shortcode-switcher__wrapper {
  justify-self: end !important;
}

@media (max-width: 900px) {
  .hanyun-site-header > .wp-block-group.alignwide {
    grid-template-columns: auto 1fr;
  }
  .hanyun-site-header .hanyun-header-nav-language {
    grid-column: 2;
    grid-template-columns: 1fr auto;
  }
}

/* Amy: move CHY logo further left */
.wp-site-blocks header .wp-block-site-logo,
.wp-site-blocks header .hanyun-chy-logo,
.wp-site-blocks header .chy-logo,
.wp-site-blocks header img[src*="chy-logo"] {
    margin-left: 0 !important;
}
.wp-site-blocks header .wp-block-group:first-child,
.wp-site-blocks header > .wp-block-group,
.wp-site-blocks header .wp-block-template-part > .wp-block-group {
    padding-left: 10px !important;
}
@media (min-width: 782px) {
    .wp-site-blocks header .wp-block-group:first-child,
    .wp-site-blocks header > .wp-block-group,
    .wp-site-blocks header .wp-block-template-part > .wp-block-group {
        padding-left: 8px !important;
    }
}

/* AMY: move CHY logo left by about 4ch */
.wp-site-blocks header,
.wp-site-blocks .wp-block-template-part:has(.chy-header-logo),
.wp-site-blocks .wp-block-group:has(.chy-header-logo) {
    padding-left: max(0px, calc(8px - 2ch)) !important;
}
.chy-header-logo,
.chy-header-logo img,
.header-chy-logo,
.header-chy-logo img {
    margin-left: -2ch !important;
}
@media (max-width: 782px) {
    .chy-header-logo,
    .chy-header-logo img,
    .header-chy-logo,
    .header-chy-logo img {
        margin-left: 0ch !important;
    }
}

/* Amy 2026-09-17: transparent top header and light-blue center navigation/menu icon */
.hanyun-site-header,
.wp-site-blocks header .hanyun-site-header,
.wp-block-template-part > .hanyun-site-header {
  background: transparent !important;
  background-color: transparent !important;
}

.hanyun-site-header.has-background {
  background: transparent !important;
  background-color: transparent !important;
}

.hanyun-site-header .wp-block-navigation a,
.hanyun-site-header .wp-block-navigation a:visited,
.hanyun-site-header .wp-block-navigation .wp-block-navigation-item__content {
  color: #4db8ff !important;
  text-decoration: none !important;
}

.hanyun-site-header .wp-block-navigation a:hover,
.hanyun-site-header .wp-block-navigation a:focus {
  color: #1e9fff !important;
  text-decoration: none !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open,
.hanyun-site-header .wp-block-navigation__responsive-container-close {
  color: #4db8ff !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open svg,
.hanyun-site-header .wp-block-navigation__responsive-container-close svg {
  stroke: #4db8ff !important;
  fill: #4db8ff !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open svg rect,
.hanyun-site-header .wp-block-navigation__responsive-container-open svg path,
.hanyun-site-header .wp-block-navigation__responsive-container-close svg rect,
.hanyun-site-header .wp-block-navigation__responsive-container-close svg path {
  stroke: #4db8ff !important;
  fill: #4db8ff !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open {
  background: rgba(77,184,255,0.10) !important;
  border-color: rgba(77,184,255,0.55) !important;
}

/* Amy 2026-09-17: place the top user/account icon immediately to the left of the navigation menu icon. */
.hanyun-site-header .hanyun-header-nav-language {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.hanyun-site-header .wp-block-woocommerce-customer-account {
    order: 1 !important;
    margin-right: 2px !important;
    margin-left: 0 !important;
}

.hanyun-site-header .wp-block-navigation {
    order: 2 !important;
}

.hanyun-site-header .trp-shortcode-switcher__wrapper,
.hanyun-site-header .trp-language-switcher,
.hanyun-site-header .trp-ls-dropdown {
    order: 3 !important;
}

.hanyun-site-header .wc-block-customer-account__link,
.hanyun-site-header .wc-block-customer-account__visual,
.hanyun-site-header .wc-block-customer-account__account-icon {
    color: #4db8ff !important;
    text-decoration: none !important;
}

.hanyun-site-header .wc-block-customer-account__account-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

/* Amy 2026-09-17: reduce top language switcher height by about two thirds */
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher__wrapper,
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp-language-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp-ls-dropdown,
.hanyun-site-header .hanyun-header-nav-language .trp-current-language-item__wrapper {
  min-height: 12px !important;
  height: 14px !important;
  max-height: 14px !important;
  line-height: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}

.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher__wrapper a,
.hanyun-site-header .hanyun-header-nav-language .trp-language-item,
.hanyun-site-header .hanyun-header-nav-language .trp-language-item-name,
.hanyun-site-header .hanyun-header-nav-language .trp-ls-shortcode-current-language,
.hanyun-site-header .hanyun-header-nav-language .trp-ls-shortcode-language {
  min-height: 12px !important;
  height: 14px !important;
  max-height: 14px !important;
  line-height: 12px !important;
  padding: 0 2px !important;
  margin: 0 !important;
  font-size: 9px !important;
}

.hanyun-site-header .hanyun-header-nav-language img,
.hanyun-site-header .hanyun-header-nav-language .trp-flag-image {
  width: 10px !important;
  height: 7px !important;
  max-height: 7px !important;
  margin: 0 1px 0 0 !important;
  vertical-align: middle !important;
}

.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-arrow {
  transform: scale(0.55) !important;
  margin-left: 1px !important;
}

/* Amy 2026-09-17: evenly distribute top CHY logo, user icon, navigation icon, and language selector with small side margins */
.hanyun-site-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hanyun-site-header > .wp-block-group.alignwide {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  column-gap: 0 !important;
}

.hanyun-site-header .hanyun-header-logo {
  grid-column: 1 !important;
  justify-self: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hanyun-site-header .hanyun-header-logo img {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
}

.hanyun-site-header .hanyun-header-nav-language {
  grid-column: 2 / 5 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hanyun-site-header .wp-block-woocommerce-customer-account {
  grid-column: 1 !important;
  order: 1 !important;
  justify-self: center !important;
  margin: 0 !important;
}

.hanyun-site-header .wp-block-navigation {
  grid-column: 2 !important;
  order: 2 !important;
  justify-self: center !important;
  margin: 0 !important;
  width: auto !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open {
  margin: 0 !important;
}

.hanyun-site-header .trp-shortcode-switcher__wrapper,
.hanyun-site-header .trp-language-switcher,
.hanyun-site-header .trp-ls-dropdown {
  grid-column: 3 !important;
  order: 3 !important;
  justify-self: end !important;
  margin: 0 !important;
}

.hanyun-site-header .trp-shortcode-switcher__wrapper {
  max-width: 72px !important;
  width: 72px !important;
}

@media (max-width: 782px) {
  .hanyun-site-header > .wp-block-group.alignwide {
    padding-left: 3px !important;
    padding-right: 3px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .hanyun-site-header .hanyun-header-logo img {
    max-width: 82px !important;
  }
  .hanyun-site-header .trp-shortcode-switcher__wrapper {
    max-width: 62px !important;
    width: 62px !important;
  }
}

/* Amy: swap top header 4-zone positions - language in zone 2, user icon in zone 4 */
@media (min-width: 783px) {
  header .wp-block-group:has(.chy-logo),
  .site-header .wp-block-group:has(.chy-logo),
  .wp-site-blocks > header .wp-block-group:has(.chy-logo) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    column-gap: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  header .chy-logo,
  header .chy-logo-wrap,
  header .wp-block-image:has(img[src*="chy-logo"]),
  .wp-site-blocks > header .wp-block-image:has(img[src*="chy-logo"]) {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  header .trp-language-switcher,
  header .trp-shortcode-switcher,
  header .trp_language_switcher_shortcode,
  header .wp-block-shortcode:has(.trp-language-switcher),
  header .wp-block-shortcode:has(.trp-shortcode-switcher),
  .wp-site-blocks > header .wp-block-shortcode:has(.trp-language-switcher),
  .wp-site-blocks > header .wp-block-shortcode:has(.trp-shortcode-switcher) {
    grid-column: 2 !important;
    justify-self: center !important;
  }

  header .wp-block-navigation,
  header .wp-block-navigation__responsive-container-open,
  .wp-site-blocks > header .wp-block-navigation {
    grid-column: 3 !important;
    justify-self: center !important;
  }

  header .wc-block-mini-cart,
  header .wp-block-woocommerce-customer-account,
  header .wp-block-woocommerce-customer-account a,
  header a[href*="my-account"],
  .wp-site-blocks > header .wc-block-mini-cart,
  .wp-site-blocks > header .wp-block-woocommerce-customer-account,
  .wp-site-blocks > header a[href*="my-account"] {
    grid-column: 4 !important;
    justify-self: end !important;
  }
}

@media (max-width: 782px) {
  header .wp-block-group:has(.chy-logo),
  .site-header .wp-block-group:has(.chy-logo),
  .wp-site-blocks > header .wp-block-group:has(.chy-logo) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    column-gap: 2px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  header .chy-logo,
  header .chy-logo-wrap,
  header .wp-block-image:has(img[src*="chy-logo"]) {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  header .trp-language-switcher,
  header .trp-shortcode-switcher,
  header .trp_language_switcher_shortcode,
  header .wp-block-shortcode:has(.trp-language-switcher),
  header .wp-block-shortcode:has(.trp-shortcode-switcher) {
    grid-column: 2 !important;
    justify-self: center !important;
  }

  header .wp-block-navigation,
  header .wp-block-navigation__responsive-container-open {
    grid-column: 3 !important;
    justify-self: center !important;
  }

  header .wc-block-mini-cart,
  header .wp-block-woocommerce-customer-account,
  header .wp-block-woocommerce-customer-account a,
  header a[href*="my-account"] {
    grid-column: 4 !important;
    justify-self: end !important;
  }
}


/* Amy 2026-09-17: use bottom TranslatePress language switcher, remove top language selector */
#trp-floater-ls,
.trp-floater-ls,
.trp-language-switcher-container.trp-floater-ls {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.hanyun-site-header .hanyun-header-nav-language .wp-block-shortcode,
.hanyun-site-header .hanyun-header-nav-language .trp-language-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp_language_switcher_shortcode {
  display: none !important;
}


/* Amy 2026-09-17: footer-only TranslatePress language switcher, text only, bottom right */
#trp-floater-ls,
.trp-floater-ls,
.trp-floating-switcher,
.trp-switcher-position-bottom,
.trp-language-switcher-container.trp-floater-ls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hanyun-footer-language {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  text-align: right !important;
}

.hanyun-footer-language .trp-language-switcher,
.hanyun-footer-language .trp-ls-dropdown,
.hanyun-footer-language .trp-shortcode-switcher,
.hanyun-footer-language .trp-shortcode-switcher__wrapper {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
}

.hanyun-footer-language img,
.hanyun-footer-language .trp-flag-image {
  display: none !important;
}

.hanyun-footer-language a,
.hanyun-footer-language span,
.hanyun-footer-language .trp-ls-shortcode-current-language,
.hanyun-footer-language .trp-ls-shortcode-language a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.hanyun-footer-language a:hover {
  text-decoration: underline !important;
}

/* Amy 2026-09-17: robust 3-zone header layout after moving language switcher to footer */
.hanyun-site-header,
.hanyun-site-header * {
  box-sizing: border-box !important;
}

.hanyun-site-header {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hanyun-site-header > .wp-block-group.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 0 !important;
}

.hanyun-site-header .hanyun-header-logo {
  grid-column: 1 !important;
  justify-self: start !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.hanyun-site-header .hanyun-header-logo img {
  display: block !important;
  width: auto !important;
  max-width: min(95px, 30vw) !important;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hanyun-site-header .hanyun-header-nav-language {
  grid-column: 2 / 4 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.hanyun-site-header .wp-block-navigation {
  grid-column: 1 !important;
  justify-self: center !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.hanyun-site-header .wp-block-navigation__responsive-container-open {
  justify-self: center !important;
  margin: 0 !important;
}

.hanyun-site-header .wp-block-woocommerce-customer-account,
.hanyun-site-header .wp-block-woocommerce-customer-account a,
.hanyun-site-header a[href*="my-account"] {
  grid-column: 2 !important;
  justify-self: end !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

.hanyun-site-header .wc-block-customer-account__link {
  padding: 2px !important;
}

.hanyun-site-header .wc-block-customer-account__account-icon {
  width: 28px !important;
  height: 28px !important;
  color: #4db8ff !important;
}

@media (max-width: 782px) {
  .hanyun-site-header > .wp-block-group.alignwide {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  .hanyun-site-header .hanyun-header-logo img {
    max-width: min(82px, 29vw) !important;
  }
  .hanyun-site-header .wp-block-navigation__responsive-container-open svg,
  .hanyun-site-header .wp-block-navigation__responsive-container-close svg {
    width: 28px !important;
    height: 28px !important;
  }
  .hanyun-site-header .wc-block-customer-account__account-icon {
    width: 26px !important;
    height: 26px !important;
  }
}


/* Amy 2026-09-17: restore top language selector to the state before it was deleted. */
.hanyun-site-header .hanyun-header-nav-language .wp-block-shortcode,
.hanyun-site-header .hanyun-header-nav-language .trp-language-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp_language_switcher_shortcode,
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher__wrapper,
.hanyun-site-header .hanyun-header-nav-language .trp-ls-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.hanyun-site-header .hanyun-header-nav-language {
  grid-column: 2 / 5 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0 !important;
}
.hanyun-site-header .hanyun-header-nav-language .wp-block-navigation {
  grid-column: 2 !important;
  justify-self: center !important;
}
.hanyun-site-header .hanyun-header-nav-language .wp-block-shortcode,
.hanyun-site-header .hanyun-header-nav-language .trp-shortcode-switcher__wrapper,
.hanyun-site-header .hanyun-header-nav-language .trp-language-switcher,
.hanyun-site-header .hanyun-header-nav-language .trp-ls-dropdown {
  grid-column: 3 !important;
  justify-self: end !important;
}
.hanyun-footer-language {
  display: none !important;
  visibility: hidden !important;
}
#trp-floater-ls,
.trp-floater-ls,
.trp-floating-switcher,
.trp-switcher-position-bottom,
.trp-language-switcher-container.trp-floater-ls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Amy 2026-09-18: footer horizontal text-only language row above contact separator */
.hanyun-footer-language-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px 12px !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin: 22px auto 16px !important;
  padding: 0 8px !important;
  text-align: center !important;
  line-height: 1.5 !important;
}
.hanyun-footer-language-row img,
.hanyun-footer-language-row .trp-flag-image {
  display: none !important;
}
.hanyun-footer-language-link,
.hanyun-footer-language-link:visited {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  min-width: 70px !important;
  line-height: 1.2 !important;
}
.hanyun-footer-language-primary,
.hanyun-footer-language-native {
  display: block !important;
}
.hanyun-footer-language-native {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.82) !important;
  letter-spacing: 0 !important;
}
.hanyun-footer-language-link:hover,
.hanyun-footer-language-link:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}
.hanyun-footer-language-link:hover .hanyun-footer-language-primary,
.hanyun-footer-language-link:focus .hanyun-footer-language-primary {
  text-decoration: underline !important;
}
.hanyun-footer-language-separator {
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
@media (max-width: 640px) {
  .hanyun-footer-language-row {
    gap: 6px 9px !important;
    margin-top: 18px !important;
    margin-bottom: 14px !important;
  }
  .hanyun-footer-language-link {
    font-size: 13px !important;
    min-width: 58px !important;
  }
  .hanyun-footer-language-native {
    font-size: 11px !important;
  }
}


/* Amy 2026-09-18: final header repair - keep CHY/menu/user aligned and keep navigation collapsed until clicked. */
.hanyun-site-header > .wp-block-group.alignwide {
  display: grid !important;
  grid-template-columns: minmax(90px, 1fr) minmax(48px, 1fr) minmax(48px, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  column-gap: 10px !important;
}
.hanyun-site-header .hanyun-header-logo {
  grid-column: 1 !important;
  justify-self: start !important;
  margin: 0 !important;
}
.hanyun-site-header .hanyun-header-logo img {
  width: 95px !important;
  max-width: 95px !important;
  height: auto !important;
  display: block !important;
}
.hanyun-site-header .hanyun-header-nav-language {
  grid-column: 2 / 4 !important;
  display: grid !important;
  grid-template-columns: minmax(48px, 1fr) minmax(48px, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}
.hanyun-site-header .wp-block-navigation {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1000 !important;
}
.hanyun-site-header .wp-block-woocommerce-customer-account {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  position: relative !important;
  z-index: 1000 !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  line-height: 1 !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container:not(.is-menu-open):not(.has-modal-open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container.is-menu-open,
.hanyun-site-header .wp-block-navigation__responsive-container.has-modal-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  color: #16324f !important;
  overflow-y: auto !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hanyun-site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-container-content {
  padding: 72px 24px 32px !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.hanyun-site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__container,
.hanyun-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list,
.hanyun-site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-page-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hanyun-site-header .wp-block-navigation__responsive-container.is-menu-open a,
.hanyun-site-header .wp-block-navigation__responsive-container.has-modal-open a {
  color: #005bbb !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
}
@media (max-width: 640px) {
  .hanyun-site-header > .wp-block-group.alignwide {
    grid-template-columns: minmax(82px, 1fr) minmax(42px, 1fr) minmax(42px, 1fr) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .hanyun-site-header .hanyun-header-logo img {
    width: 82px !important;
    max-width: 82px !important;
  }
}

html[lang^="en"] footer .hanyun-footer-title-two-line {
  display: inline-block !important;
  line-height: 1.15 !important;
}

/* Amy 2026-09-18: align the three footer columns visually on desktop/tablet. */
footer.wp-block-group > .wp-block-columns.alignwide,
footer .wp-block-columns.alignwide {
  align-items: stretch !important;
}
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column,
footer .wp-block-columns.alignwide > .wp-block-column {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
footer .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h1,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h2,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h3,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h4,
footer .wp-block-columns.alignwide > .wp-block-column > h1,
footer .wp-block-columns.alignwide > .wp-block-column > h2,
footer .wp-block-columns.alignwide > .wp-block-column > h3,
footer .wp-block-columns.alignwide > .wp-block-column > h4 {
  min-height: 2.35em !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.18 !important;
  display: flex !important;
  align-items: flex-start !important;
}
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > .amy-footer-list,
footer .wp-block-columns.alignwide > .wp-block-column > .amy-footer-list {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
@media (max-width: 640px) {
  footer.wp-block-group > .wp-block-columns.alignwide,
  footer .wp-block-columns.alignwide {
    gap: 18px !important;
  }
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
  footer .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h1,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h2,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h3,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h4,
  footer .wp-block-columns.alignwide > .wp-block-column > h1,
  footer .wp-block-columns.alignwide > .wp-block-column > h2,
  footer .wp-block-columns.alignwide > .wp-block-column > h3,
  footer .wp-block-columns.alignwide > .wp-block-column > h4 {
    min-height: 2.35em !important;
    margin-bottom: 8px !important;
  }
}

/* Amy 2026-09-18: footer columns equal-height; keep English User Center as one line. */
footer.wp-block-group > .wp-block-columns.alignwide,
footer .wp-block-columns.alignwide {
  align-items: stretch !important;
}
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column,
footer .wp-block-columns.alignwide > .wp-block-column {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
footer .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h1,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h2,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h3,
footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h4,
footer .wp-block-columns.alignwide > .wp-block-column > h1,
footer .wp-block-columns.alignwide > .wp-block-column > h2,
footer .wp-block-columns.alignwide > .wp-block-column > h3,
footer .wp-block-columns.alignwide > .wp-block-column > h4 {
  min-height: 2.35em !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.18 !important;
  display: flex !important;
  align-items: flex-start !important;
}
html[lang^="en"] footer .hanyun-footer-user-center-title,
html[lang^="en"] footer .hanyun-footer-title-two-line {
  display: inline !important;
  min-height: 0 !important;
  line-height: inherit !important;
}
@media (max-width: 640px) {
  footer.wp-block-group > .wp-block-columns.alignwide,
  footer .wp-block-columns.alignwide {
    gap: 18px !important;
  }
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
  footer .wp-block-columns.alignwide > .wp-block-column > .wp-block-heading,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h1,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h2,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h3,
  footer.wp-block-group > .wp-block-columns.alignwide > .wp-block-column > h4,
  footer .wp-block-columns.alignwide > .wp-block-column > h1,
  footer .wp-block-columns.alignwide > .wp-block-column > h2,
  footer .wp-block-columns.alignwide > .wp-block-column > h3,
  footer .wp-block-columns.alignwide > .wp-block-column > h4 {
    min-height: 2.35em !important;
    margin-bottom: 8px !important;
  }
}

/* Hanyun footer: remove underlines from footer links */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active,
footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:focus,
footer a:active,
.hanyun-footer a,
.hanyun-footer a:link,
.hanyun-footer a:visited,
.hanyun-footer a:hover,
.hanyun-footer a:focus,
.hanyun-footer a:active,
.hanyun-footer-language a,
.hanyun-footer-language a:link,
.hanyun-footer-language a:visited,
.hanyun-footer-language a:hover,
.hanyun-footer-language a:focus,
.hanyun-footer-language a:active {
  text-decoration: none !important;
}


/* Amy 2026-09-18: normalize Simplified Chinese homepage typography and text colors */
body.home.translatepress-zh_CN,
body.home.translatepress-zh_CN .entry-content,
body.home.translatepress-zh_CN .entry-content * {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif !important;
}

body.home.translatepress-zh_CN .entry-content {
  color: #334155 !important;
}

body.home.translatepress-zh_CN .entry-content p,
body.home.translatepress-zh_CN .entry-content li,
body.home.translatepress-zh_CN .hanyun-card p,
body.home.translatepress-zh_CN .hanyun-card li {
  color: #334155 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.home.translatepress-zh_CN .entry-content h1,
body.home.translatepress-zh_CN .entry-content h2,
body.home.translatepress-zh_CN .entry-content h3,
body.home.translatepress-zh_CN .entry-content h4,
body.home.translatepress-zh_CN .hanyun-card h3 {
  color: #083a66 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

body.home.translatepress-zh_CN .hanyun-hero,
body.home.translatepress-zh_CN .hanyun-hero h1,
body.home.translatepress-zh_CN .hanyun-hero p {
  color: #ffffff !important;
}

body.home.translatepress-zh_CN .hanyun-lead {
  color: #334155 !important;
  font-weight: 400 !important;
}

body.home.translatepress-zh_CN .hanyun-muted {
  color: #64748b !important;
  font-weight: 400 !important;
}

body.home.translatepress-zh_CN .entry-content strong {
  color: #083a66 !important;
  font-weight: 700 !important;
}

body.home.translatepress-zh_CN .entry-content a:not(.hanyun-button):not(.hanyun-button-outline) {
  color: #0b4f8a !important;
}

body.home.translatepress-zh_CN .hanyun-button {
  background: #ffffff !important;
  color: #083a66 !important;
  font-weight: 700 !important;
}

body.home.translatepress-zh_CN .hanyun-button-outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.72) !important;
  font-weight: 700 !important;
}

/* Amy 2026-09-18: keep homepage company intro paragraphs at the original first-paragraph text color */
body.home.translatepress-zh_CN .hanyun-two-col > div:first-child > p.hanyun-lead {
  color: #334155 !important;
}

/* Amy 2026-09-18: center the Contact Us button text/row in the Chinese homepage contact block */
body.home.translatepress-zh_CN .hanyun-band .hanyun-card .hanyun-cta-row {
  justify-content: center !important;
  text-align: center !important;
}
body.home.translatepress-zh_CN .hanyun-band .hanyun-card .hanyun-cta-row .hanyun-button {
  text-align: center !important;
}

/* Amy 2026-09-18: align Chinese homepage contact email rows cleanly */
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@chinahanyun.com"]),
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@hanyun.site"]) {
  display: grid !important;
  grid-template-columns: max-content 1fr !important;
  column-gap: 0 !important;
  align-items: baseline !important;
  margin-top: 0.45em !important;
  margin-bottom: 0.45em !important;
}
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@chinahanyun.com"]) strong,
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@hanyun.site"]) strong {
  white-space: nowrap !important;
}
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@chinahanyun.com"]) a,
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p:has(a[href="mailto:mail@hanyun.site"]) a {
  justify-self: start !important;
  text-align: left !important;
}


/* Amy 2026-09-18: on Chinese homepage contact block, put email label on its own line and align both email addresses below it for mobile readability */
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p.hanyun-email-label {
  margin-bottom: 0.15em !important;
}
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p.hanyun-email-line {
  display: block !important;
  margin-top: 0.15em !important;
  margin-bottom: 0.15em !important;
  padding-left: 0 !important;
  text-align: left !important;
}
body.home.translatepress-zh_CN .hanyun-band .hanyun-card p.hanyun-email-line a {
  display: inline-block !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

/* Amy 2026-09-19: unify the three Company Overview / 公司简介 homepage paragraphs.
   Scope is limited to hanyun.site's WordPress child theme; chinahanyun.com static files are untouched. */
body.home .hanyun-hero + .hanyun-section.hanyun-two-col > div:first-child > p,
.hanyun-en-home > h2:first-of-type + p,
.hanyun-en-home > h2:first-of-type + p + p,
.hanyun-en-home > h2:first-of-type + p + p + p {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
}
