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

:root {
  --hanyun-blue: #0b4f8a;
  --hanyun-blue-dark: #07365f;
  --hanyun-accent: #1f8dd6;
  --hanyun-gold: #f6b64a;
  --hanyun-soft: #f3f7fb;
  --hanyun-soft-2: #eef5fb;
  --hanyun-border: #dbe7f2;
  --hanyun-text: #23384d;
  --hanyun-muted: #637486;
  --hanyun-shadow: 0 10px 28px rgba(7, 54, 95, 0.10);
}

html { scroll-behavior: smooth; }
body {
  background: #ffffff;
  color: var(--hanyun-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.72;
}

a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--hanyun-accent); }
img { max-width: 100%; height: auto; }

/* Overall layout */
.wp-site-blocks {
  overflow-x: hidden;
}
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
  width: 100%;
}
main.wp-block-group,
.entry-content,
.wp-block-post-content {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-post-content > * {
  max-width: 100%;
}
.wp-block-post-content > h1,
.wp-block-post-content > h2,
.wp-block-post-content > h3,
.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol,
.wp-block-post-content > table,
.wp-block-post-content > .wp-block-buttons {
  margin-left: auto;
  margin-right: auto;
}
.wp-block-post-content {
  padding: 22px 18px 44px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--hanyun-blue-dark);
  line-height: 1.28;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(30px, 4.8vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); }
p { margin-bottom: 1em; }

/* Header / navigation improvements for Twenty Twenty-Five block theme */
header.wp-block-template-part {
  border-bottom: 1px solid var(--hanyun-border);
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 2px 12px rgba(7, 54, 95, 0.05);
}
header.wp-block-template-part .wp-block-site-title a,
.wp-block-site-title a {
  color: var(--hanyun-blue-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  color: #17334f;
  font-weight: 500;
  text-decoration: none;
}
.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--hanyun-accent);
}
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 26px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  gap: 14px;
}
.wp-block-navigation__responsive-container.is-menu-open a {
  font-size: 18px;
  padding: 7px 0;
}

/* Common enterprise visual blocks */
.hanyun-hero,
.entry-content .hanyun-hero {
  background: linear-gradient(135deg, rgba(7,54,95,0.94), rgba(31,141,214,0.80)), url('/wp-content/uploads/hanyun-assets/site.jpg') center/cover no-repeat;
  color: #fff;
  border-radius: 0 0 26px 26px;
  padding: clamp(44px, 7vw, 86px) 24px;
  margin: -22px -18px 34px;
}
.hanyun-hero h1,
.hanyun-hero h2,
.hanyun-hero h3,
.hanyun-hero p {
  color: #fff;
  max-width: 850px;
}
.hanyun-hero p {
  color: rgba(255,255,255,0.94);
  font-size: clamp(17px, 2.2vw, 22px);
}
.hanyun-section,
.wp-block-group.hanyun-section {
  padding: clamp(28px, 4vw, 52px) 0;
}
.hanyun-card-grid,
.wp-block-columns.hanyun-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hanyun-card,
.wp-block-column.hanyun-card,
.wp-block-group.hanyun-card {
  background: #fff;
  border: 1px solid var(--hanyun-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--hanyun-shadow);
}
.hanyun-card h2,
.hanyun-card h3,
.hanyun-card h4 {
  margin-top: 0;
}
.hanyun-muted { color: var(--hanyun-muted); }
.hanyun-soft-box {
  background: var(--hanyun-soft);
  border: 1px solid var(--hanyun-border);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 36px);
}

/* Buttons */
.wp-block-button__link,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button {
  border-radius: 999px !important;
  background: var(--hanyun-blue) !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 0.78em 1.35em !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 18px rgba(11, 79, 138, 0.18);
}
.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: var(--hanyun-blue-dark) !important;
  transform: translateY(-1px);
}

/* Tables and legacy imported content */
table {
  width: 100%;
  border-collapse: collapse;
}
table td,
table th {
  border-color: var(--hanyun-border);
}
.wp-block-table,
.entry-content table {
  overflow-x: auto;
  display: block;
}

/* WooCommerce base improvements */
.woocommerce .woocommerce-breadcrumb {
  color: var(--hanyun-muted);
  font-size: 14px;
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--hanyun-border);
  border-radius: 16px;
  padding: 16px !important;
  box-shadow: var(--hanyun-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(7, 54, 95, 0.14);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--hanyun-blue-dark);
  font-size: 17px;
  line-height: 1.45;
  min-height: 3em;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hanyun-blue) !important;
  font-weight: 700;
}
.woocommerce div.product {
  background: #fff;
}
.woocommerce div.product .product_title {
  color: var(--hanyun-blue-dark);
}
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs {
  line-height: 1.72;
}
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce {
  background: #fff;
  border: 1px solid var(--hanyun-border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--hanyun-shadow);
}
.woocommerce table.shop_table {
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--hanyun-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--hanyun-blue);
  background: var(--hanyun-soft);
}

/* Footer */
footer.wp-block-template-part {
  background: var(--hanyun-blue-dark);
  color: rgba(255,255,255,0.88);
  margin-top: 36px;
}
footer.wp-block-template-part a,
footer.wp-block-template-part .wp-block-site-title a {
  color: #fff;
}

/* Mobile and tablet responsiveness */
@media (max-width: 1024px) {
  .hanyun-card-grid,
  .wp-block-columns.hanyun-card-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-block-post-content { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.68; }
  .wp-block-post-content { padding: 18px 14px 34px; }
  .hanyun-hero,
  .entry-content .hanyun-hero {
    margin: -18px -14px 26px;
    padding: 38px 18px 44px;
    border-radius: 0 0 18px 18px;
  }
  .hanyun-card-grid,
  .wp-block-columns.hanyun-card-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hanyun-card,
  .wp-block-column.hanyun-card,
  .wp-block-group.hanyun-card,
  .hanyun-soft-box {
    padding: 18px;
    border-radius: 14px;
  }
  .wp-block-navigation__responsive-container-open {
    display: flex;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: auto;
  }
  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-result-count {
    float: none;
    width: 100%;
  }
  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    text-align: left !important;
  }
  .woocommerce-cart-form,
  .woocommerce-checkout,
  .woocommerce-account .woocommerce {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  h3 { font-size: 20px; }
  .wp-block-button__link,
  .button,
  button,
  input[type="submit"],
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    width: 100%;
    text-align: center;
  }
}

/* Stage 5D-2 homepage layout enhancements */
.home .hy-hero,
.hy-hero {
  padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 52%, #eaf2fb 100%);
  box-shadow: 0 18px 45px rgba(24, 68, 112, 0.08);
  margin-top: 18px;
  margin-bottom: 36px;
}
.hy-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  color: #123a63;
  margin-bottom: 0.45em;
}
.hy-lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.8;
  color: #334155;
  max-width: 760px;
}
.hy-hero-image img {
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 45, 80, 0.18);
  background: #fff;
}
.hy-section {
  padding: clamp(28px, 4vw, 56px) clamp(14px, 3vw, 36px);
  margin: 22px 0;
}
.hy-section-desc {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #526173;
}
.hy-light {
  background: #f7fbff;
  border: 1px solid #e5eef7;
  border-radius: 22px;
}
.hy-card-grid {
  gap: 18px !important;
  align-items: stretch !important;
}
.hy-card {
  background: #ffffff;
  border: 1px solid #e5eef7;
  border-radius: 18px;
  padding: 22px !important;
  box-shadow: 0 10px 26px rgba(15, 45, 80, 0.07);
}
.hy-card h3 {
  color: #174a7c;
  margin-top: 0;
  font-size: 1.18rem;
}
.hy-card p {
  color: #4b5d70;
  line-height: 1.75;
}
.hy-highlight-box {
  background: #123a63;
  color: #ffffff;
  border-radius: 20px;
  padding: 26px !important;
  box-shadow: 0 16px 34px rgba(18, 58, 99, 0.18);
}
.hy-highlight-box h3,
.hy-highlight-box p {
  color: #ffffff;
}
.hy-contact-cta {
  background: linear-gradient(135deg, #123a63 0%, #1e6091 100%);
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(18, 58, 99, 0.18);
}
.hy-contact-cta h2,
.hy-contact-cta p {
  color: #ffffff;
}
.hy-contact-cta .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,0.9);
  color: #ffffff;
}
.hy-primary-btn .wp-block-button__link,
.wp-block-button .wp-block-button__link {
  border-radius: 999px;
  padding: 0.78em 1.35em;
}
@media (max-width: 782px) {
  .hy-hero,
  .hy-section {
    border-radius: 16px;
    padding: 24px 16px;
  }
  .hy-hero .wp-block-buttons,
  .hy-contact-cta .wp-block-buttons {
    justify-content: stretch !important;
  }
  .hy-hero .wp-block-button,
  .hy-contact-cta .wp-block-button {
    width: 100%;
  }
  .hy-hero .wp-block-button__link,
  .hy-contact-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
  .hy-card {
    padding: 18px !important;
  }
  .hy-hero-image {
    margin-top: 18px;
  }
}
/* End Stage 5D-2 homepage layout enhancements */

/* Stage 5D-3 navigation and footer enhancements */
.hy-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hanyun-border);
  box-shadow: 0 8px 24px rgba(7, 54, 95, 0.08);
  backdrop-filter: blur(10px);
}
.hy-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  gap: 18px;
}
.hy-brand {
  gap: 12px;
  min-width: 230px;
}
.hy-brand-logo {
  margin: 0 !important;
  flex: 0 0 auto;
}
.hy-brand-logo img {
  display: block;
  border-radius: 8px;
}
.hy-brand-text {
  margin: 0 !important;
}
.hy-brand-text .wp-block-site-title {
  margin: 0;
  line-height: 1.15;
}
.hy-brand-text .wp-block-site-title a {
  font-size: clamp(20px, 2.3vw, 26px);
}
.hy-brand-tagline {
  margin: 4px 0 0 !important;
  color: var(--hanyun-muted);
  font-size: 13px;
  line-height: 1.35;
}
.hy-main-nav {
  gap: 10px;
  font-size: 15px;
}
.hy-main-nav .wp-block-navigation-item__content {
  padding: 8px 9px;
  border-radius: 999px;
  line-height: 1.2;
}
.hy-main-nav .wp-block-navigation-item__content:hover {
  background: #eef6ff;
  text-decoration: none;
}
.hy-main-nav .wp-block-navigation__responsive-container-open,
.hy-main-nav .wp-block-navigation__responsive-container-close {
  color: var(--hanyun-blue-dark);
}
.hy-main-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #ffffff;
  color: var(--hanyun-text);
}
.hy-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: stretch;
  padding-top: 16px;
}
.hy-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hanyun-border);
  border-radius: 0;
}
.hy-site-footer {
  margin-top: 56px;
  background: linear-gradient(135deg, #07365f 0%, #0b4f8a 65%, #1f8dd6 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 44px 18px 18px;
}
.hy-site-footer h3,
.hy-site-footer h4,
.hy-site-footer p,
.hy-site-footer li {
  color: rgba(255, 255, 255, 0.92);
}
.hy-site-footer h3,
.hy-site-footer h4 {
  margin-top: 0;
  color: #ffffff;
}
.hy-footer-columns {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 28px;
}
.hy-site-footer a {
  color: #ffffff;
  text-decoration: none;
}
.hy-site-footer a:hover {
  color: #d7ecff;
  text-decoration: underline;
}
.hy-footer-links {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.hy-footer-links li {
  margin: 0 0 8px;
}
.hy-footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0 !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 12px;
  font-size: 14px;
}
.hy-footer-bottom p {
  margin: 0;
}
body.admin-bar .hy-site-header {
  top: 32px;
}
@media (max-width: 900px) {
  .hy-header-inner {
    align-items: center;
  }
  .hy-brand {
    min-width: 0;
  }
  .hy-brand-tagline {
    display: none;
  }
  .hy-main-nav {
    margin-left: auto;
  }
  .hy-footer-columns {
    gap: 10px;
  }
}
@media (max-width: 782px) {
  .hy-site-header {
    position: sticky;
  }
  .hy-header-inner {
    padding: 10px 14px;
    flex-wrap: nowrap !important;
  }
  .hy-brand-logo img {
    width: 44px !important;
    height: 44px !important;
  }
  .hy-brand-text .wp-block-site-title a {
    font-size: 20px;
    white-space: nowrap;
  }
  .hy-main-nav .wp-block-navigation__responsive-container-open {
    padding: 8px;
    border: 1px solid var(--hanyun-border);
    border-radius: 999px;
    background: #f7fbff;
  }
  .hy-site-footer {
    padding: 34px 16px 18px;
  }
  .hy-footer-columns {
    display: block !important;
  }
  .hy-footer-columns .wp-block-column {
    margin-bottom: 22px;
  }
  .hy-footer-bottom {
    display: block !important;
    text-align: left;
  }
  .hy-footer-bottom p + p {
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  body.admin-bar .hy-site-header {
    top: 0;
  }
}
/* End Stage 5D-3 navigation and footer enhancements */

/* Stage menu-adjust: top one-line navigation and mobile hamburger on upper-left */
.hy-site-header {
  padding: 0 !important;
}
.hy-top-menu-bar {
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 8px 18px 4px;
  border-bottom: 1px solid rgba(27, 99, 168, 0.12);
}
.hy-top-line-nav {
  width: 100%;
  justify-content: flex-start !important;
  font-size: 14px;
}
.hy-top-line-nav .wp-block-navigation__container {
  gap: 4px 6px;
  width: 100%;
  justify-content: flex-start;
}
.hy-top-line-nav .wp-block-navigation-item__content {
  padding: 7px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.hy-top-line-nav .wp-block-navigation-item:nth-last-child(-n+4) .wp-block-navigation-item__content {
  background: #eef6ff;
  color: var(--hanyun-blue-dark);
  font-weight: 700;
}
.hy-top-line-nav .wp-block-navigation-item:nth-last-child(-n+4) .wp-block-navigation-item__content:hover {
  background: var(--hanyun-blue);
  color: #fff;
}
.hy-header-inner {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
  justify-content: center !important;
}
.hy-header-inner .hy-brand {
  justify-content: center;
}
@media (min-width: 783px) {
  .hy-top-line-nav .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}
@media (max-width: 782px) {
  .hy-top-menu-bar {
    order: -1;
    padding: 8px 14px;
    justify-content: flex-start !important;
  }
  .hy-top-line-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: auto;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
    position: relative;
    left: 0;
    margin: 0 auto 0 0 !important;
    padding: 9px 12px;
    border: 1px solid var(--hanyun-border);
    border-radius: 10px;
    background: #f7fbff;
    color: var(--hanyun-blue-dark);
    box-shadow: 0 4px 12px rgba(7, 54, 95, 0.08);
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container-open::after {
    content: "菜单";
    margin-left: 6px;
    font-size: 14px;
    font-weight: 700;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open {
    padding: 18px;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 36px;
    align-items: stretch;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 0;
    width: 100%;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid var(--hanyun-border);
    border-radius: 0;
    background: transparent !important;
    color: var(--hanyun-text) !important;
  }
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-last-child(-n+4) .wp-block-navigation-item__content {
    font-weight: 800;
    color: var(--hanyun-blue-dark) !important;
  }
  .hy-header-inner {
    padding: 8px 14px 10px !important;
    justify-content: center !important;
  }
  .hy-header-inner .hy-brand {
    width: 100%;
    justify-content: center;
  }
}
/* End stage menu-adjust */

/* Hanyun menu final fix - 2026-09-17 */
.hy-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hy-top-menu-bar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hy-top-line-nav,
.hy-top-line-nav .wp-block-navigation__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 10px;
  flex-wrap: wrap;
  width: 100%;
}

.hy-top-line-nav a,
.hy-top-line-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #12335f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.hy-top-line-nav a:hover,
.hy-top-line-nav .wp-block-navigation-item__content:hover {
  background: #eaf2ff;
  color: #0b63ce;
}

.hy-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 14px;
}

.hy-brand .wp-block-site-title,
.hy-brand .wp-block-site-title a {
  color: #0f2d52;
  text-decoration: none;
}

@media (max-width: 782px) {
  .hy-site-header {
    position: sticky;
    top: 0;
  }

  .hy-top-menu-bar {
    justify-content: flex-start;
    padding: 8px 12px;
    min-height: 48px;
  }

  .hy-top-line-nav {
    justify-content: flex-start !important;
  }

  .hy-top-line-nav .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    position: static;
    margin: 0 auto 0 0;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(18, 51, 95, 0.22);
    border-radius: 999px;
    background: #f8fbff;
    color: #12335f;
    font-weight: 700;
  }

  .hy-top-line-nav .wp-block-navigation__responsive-container-open::after {
    content: "菜单";
    margin-left: 6px;
    font-size: 14px;
  }

  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open {
    padding: 22px;
  }

  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start;
    gap: 10px;
  }

  .hy-top-line-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
    font-size: 18px;
  }

  .hy-header-inner {
    padding: 8px 12px 12px;
  }

  .hy-brand-tagline {
    display: none;
  }
}

/* User request 2026-09-17: translucent horizontal scroll menu, account icon below, footer link columns */
.hy-scroll-header,
.hy-site-header.hy-scroll-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(18, 51, 95, 0.13);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.hy-scroll-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 12px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.hy-scroll-menu::-webkit-scrollbar { height: 5px; }
.hy-scroll-menu::-webkit-scrollbar-thumb {
  background: rgba(27, 99, 168, 0.25);
  border-radius: 999px;
}
.hy-scroll-menu a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(27, 99, 168, 0.12);
  color: #12335f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.hy-scroll-menu a:hover,
.hy-scroll-menu a:focus {
  background: rgba(11, 99, 206, 0.12);
  border-color: rgba(11, 99, 206, 0.28);
  color: #0b63ce;
}
.hy-scroll-menu a.hy-shop-link {
  background: rgba(232, 244, 255, 0.86);
  border-color: rgba(11, 99, 206, 0.20);
  color: #073a79;
}
.hy-account-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 7px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hy-account-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 45, 82, 0.08);
  color: #0f2d52;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(15, 45, 82, 0.12);
}
.hy-account-icon:hover,
.hy-account-icon:focus {
  background: rgba(11, 99, 206, 0.14);
  color: #0b63ce;
}
.hy-account-symbol { font-size: 17px; line-height: 1; }
.hy-scroll-brand-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 14px 11px !important;
}
.hy-scroll-brand-row .hy-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hy-logo-link { display: inline-flex; align-items: center; }
.hy-brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.hy-site-name {
  color: #0f2d52;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}
.hy-scroll-brand-row .hy-brand-tagline {
  margin: 2px 0 0;
  color: #58708d;
  font-size: 13px;
}
.hy-site-footer .hy-footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(135px, .75fr) minmax(150px, .75fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}
.hy-site-footer .hy-footer-link-col,
.hy-site-footer .hy-footer-shop-col {
  min-width: 0;
}
.hy-footer-one-col,
.hy-footer-links.hy-footer-one-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hy-footer-one-col li { margin: 0 !important; padding: 0 !important; }
@media (max-width: 782px) {
  .hy-scroll-header,
  .hy-site-header.hy-scroll-header { top: 0; }
  .hy-scroll-menu {
    justify-content: flex-start;
    padding: 8px 10px 6px;
    gap: 7px;
  }
  .hy-scroll-menu a {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .hy-account-row {
    justify-content: flex-start;
    padding: 0 10px 6px;
  }
  .hy-account-icon {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .hy-scroll-brand-row {
    padding: 5px 10px 9px !important;
  }
  .hy-scroll-brand-row .hy-brand {
    justify-content: flex-start;
  }
  .hy-brand-logo-img { width: 36px; height: 36px; }
  .hy-site-name { font-size: 19px; }
  .hy-scroll-brand-row .hy-brand-tagline { display: none; }
  .hy-site-footer .hy-footer-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }
  .hy-site-footer .hy-footer-company,
  .hy-site-footer .hy-footer-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .hy-site-footer .hy-footer-wrap { grid-template-columns: 1fr; }
}
/* End user request 2026-09-17 */
