
.region-card{margin:1.2rem 0;padding:1rem;background:#f1f8f2;color:#173f2c;border:1px solid #bad1bf;border-top:3px solid #246b43}
.region-card.saiyuan{background:#eef5fb;color:#172f49;border-color:#c0d3e3;border-top-color:#164e7d}
.region-card h2{font-size:21px;line-height:1.4}.region-card p{margin:.6rem 0;font-size:15px;line-height:1.65}.region-card .actions{display:flex;gap:.6rem;flex-wrap:wrap}
[data-region-card] .button,.legacy-wechat{cursor:pointer;display:inline-block;padding:.55rem .8rem;font:inherit;font-size:14px;border:1px solid #286744;background:#fff;color:#174c2c;text-decoration:none}
.saiyuan [data-region-card] .button,.saiyuan[data-region-card] .button,[data-phone="15975533616"] .legacy-wechat:not(.wx){border-color:#164e7d;color:#164e7d}
.regional-navigate{display:inline-block;font-weight:750;padding:.4rem .65rem;color:inherit}
#contact-qr{width:318px;width:min(318px,calc(100% - 24px));padding:1rem;border:1px solid #a2b8aa;border-radius:5px;background:white;color:#173f2c;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
#contact-qr::backdrop{background:rgba(19,36,30,0.7373)}#contact-qr form{text-align:right}#contact-qr h2{font-size:20px}#contact-qr img{width:170px;width:min(170px,80%);height:auto;display:block;margin:auto}
#contact-qr .qr-number{text-align:center;font-size:20px;user-select:all}#contact-qr button{padding:.4rem .7rem;cursor:pointer}#contact-qr p{font-size:14px}
body[data-phone="15976647035"] header nav a[href*="/contact/"]:not([aria-current="page"]){text-decoration:none;border-bottom:0}

/* Regional links stay in the primary navigation on both page layouts. */
header nav a.region-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
@media (max-width: 850px) {
  header.sitehead .sitebar nav, body.r17-layout .r17-head .r17-nav #main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .65rem;
    min-width: 0;
  }
  body.r17-layout .r17-head .r17-nav #main-nav { position: static; width: 100%; padding: .35rem 0; justify-content: flex-start; }
  body.r17-layout .r17-head .r17-nav .menu-toggle { display: none; }
  header.sitehead .sitebar nav a, body.r17-layout .r17-head .r17-nav #main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .75rem;
    padding: .4rem 0;
  }
}
.home-region { margin-top: 2rem; margin-bottom: 2rem; margin-block: 2rem; margin-block: clamp(2rem, 5vw, 4.5rem); padding: 1rem; padding: clamp(1rem, 3vw, 2.6rem); }
.home-region h2 { margin: 0 0 .65rem; line-height: 1.22; }
.home-region p { margin-top: .4rem; margin-bottom: .4rem; margin-block: .4rem; }
.home-region .region-steps { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .85rem; }
.home-region .region-steps h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.home-region .region-delivery { padding: .8rem 1rem; font-weight: 650; line-height: 1.65; }
.home-region .actions { margin-top: 1.2rem; }
.home-region .actions .button { white-space: normal; text-align: center; max-width: 100%; }

.home-region { background: #edf7ee; border: 1px solid #bed7c4; border-radius: 14px; }
.home-region .region-delivery { background: #d9eddf; color: #174a32; border-radius: 8px; }
.home-region .region-steps { grid-template-columns: repeat(6,minmax(0,1fr)); }
.home-region .region-steps li { grid-column: span 2; }
.home-region .region-steps li:nth-child(n+4) { grid-column: span 3; }
.home-region .region-steps a { display: block; height: 100%; padding: 1rem; border: 1px solid #bed7c4; border-radius: 9px; background: #fff; color: inherit; text-decoration: none; }
.home-region .region-steps a:hover h3 { text-decoration: underline; }
@media(max-width:760px){.home-region .region-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.home-region .region-steps li,.home-region .region-steps li:nth-child(n+4){grid-column:auto}.home-region .region-steps li:last-child{grid-column:1/-1}}
@media(max-width:350px){.home-region .region-steps{grid-template-columns:1fr}}

.home-region .actions .primary { color: #fff; background: #236241; border-color: #236241; }
.home-region .actions .primary:hover { filter: brightness(.88); }
@media (max-width: 350px) {
  header.sitehead .sitebar nav, body.r17-layout .r17-head .r17-nav #main-nav {
    width: 100%;
    justify-content: space-between;
    column-gap: .2rem;
  }
}

/* Contact controls keep a fixed, measured clearance at the end of the page. */
@media (max-width: 850px) {
  html {
    scroll-padding-bottom: calc(88px + 0px);
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(88px + 0px);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .mobile-cta,
.r17-mobile {
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }
  .mobile-cta[data-inline-contact-visible],
.r17-mobile[data-inline-contact-visible] {
    opacity: 0;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta,
.r17-mobile { transition: none; }
}

/* Shared chrome on frequently visited pages with existing enquiry and model tools. */
body.public-refresh { background: var(--paper); color: var(--ink); }
.public-refresh > .sitehead, .public-refresh > .foot {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin-left: 0;
  margin-right: 0;
  margin-inline: 0;
}
.public-refresh > .sitehead { padding: 0; }
.public-refresh > .foot {
  padding: 1.5rem 1rem;
  padding: 1.5rem max(1rem, calc((100% - 1256px) / 2));
}
.public-refresh .foot p { margin-top: .35rem; margin-bottom: .35rem; margin-block: .35rem; }
.public-refresh .foot nav { display: flex; justify-content: flex-start; }
.public-refresh > main {
  max-width: 1256px;
  min-width: 0;
  color: var(--ink);
}
.public-refresh .public-intro,
.public-refresh .catalog-intro {
  padding: 1rem;
  padding: clamp(1rem, 4vw, 2.8rem);
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
  margin-block: 1.1rem 1.8rem;
  border: 1px solid var(--hair);
  background: var(--sheet);
}
.public-refresh .public-intro > p,
.public-refresh .public-intro > address,
.public-refresh .public-intro > .actions { margin-top: .65rem; margin-bottom: .65rem; margin-block: .65rem; }
.public-refresh .public-intro .lead { color: var(--quiet); }
.public-refresh .public-intro a:not(.button) { text-underline-offset: .24em; }
@media (max-width: 640px) {
  body.public-refresh > main { padding-left: 13px; padding-right: 13px; padding-inline: 13px; }
}

/* Keep the new navigation in flow on pages with the legacy base stylesheet. */
.public-refresh .sitebar nav,
.public-refresh .foot nav {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  inset: auto;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.public-refresh .sitebar nav a {
  padding-top: .35rem;
  padding-bottom: .35rem;
  padding-block: .35rem;
}
.public-refresh .foot nav a {
  padding: .2rem 0;
}
.public-refresh .catalog-intro {
  padding: 0;
}
@media (max-width: 640px) {
  .public-refresh .catalog-intro h1[data-compact-heading] {
    font-size: 17px;
    font-size: clamp(17px, 5.12vw, 28px);
  }
}
@media (max-width: 360px) {
  .public-refresh #md-filter .search-action { padding-left: 13px; padding-right: 13px; padding-inline: 13px; }
}

/* Keep all seven primary links visible in the current and earlier headers. */
header.sitehead .sitebar nav a[href="/about/"][aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
@media (min-width: 851px) {
  body.r17-layout .r17-head .r17-nav #main-nav {
    justify-content: center;
    flex-wrap: nowrap;
    gap: .3rem;
    gap: clamp(.3rem, 1.55vw, 1.4rem);
  }
}
@media (min-width: 1050px) {
  header.sitehead .sitebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  header.sitehead .sitebar .brand { justify-self: start; }
  header.sitehead .sitebar nav {
    grid-column: 2;
    flex-wrap: nowrap;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  header.sitehead .sitebar nav[aria-label="主导航"],
  body.r17-layout .r17-head .r17-nav #main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: .2rem;
    row-gap: .05rem;
  }
  header.sitehead .sitebar nav[aria-label="主导航"] > a,
  body.r17-layout .r17-head .r17-nav #main-nav > a {
    grid-column: span 3;
    padding: .38rem .1rem;
    text-align: center;
  }
  header.sitehead .sitebar nav[aria-label="主导航"] > a:nth-child(n+5),
  body.r17-layout .r17-head .r17-nav #main-nav > a:nth-child(n+5) {
    grid-column: span 4;
  }
}

.q-chat .legacy-wechat.wx { border-color:#19523d; background:#19523d; color:#ffffff; }
.q-chat .legacy-wechat.wx:hover { border-color:#123e2e; background:#123e2e; color:#ffffff; }

/* An article's own footer is a reading card, independent of site-wide chrome. */
main footer, article footer {
  display:block;
  box-sizing:border-box;
  width:auto;
  max-width:100%;
  margin:24px 0 0;
  padding:16px 20px;
  border:1px solid var(--article-footer-border, #d8e7da);
  border-radius:6px;
  background:var(--article-footer-background, #edf4eb);
  color:var(--article-footer-text, #284b38);
  writing-mode:horizontal-tb;
}
body.s {
  --article-footer-border:#d5e3ee;
  --article-footer-background:#eef4fa;
  --article-footer-text:#29445c;
  --article-footer-link:#164e7d;
}
main footer p,
main footer a,
main footer span,
article footer p,
article footer a,
article footer span {
  white-space:normal;
  word-break:normal;
  overflow-wrap:anywhere;
}
main footer a, article footer a { color:var(--article-footer-link, #225b3b); }


/* Preserve native dialog behaviour, with an independent overlay on older engines. */
#contact-qr:not([open]) { display:none; }
#contact-qr.qr-open {
  display:block; position:fixed; z-index:10002; top:50%; left:50%;
  right:auto; bottom:auto; margin:0; transform:translate(-50%,-50%);
  max-height:calc(100vh - 20px); overflow:auto; box-sizing:border-box;
}
.qr-shade { position:fixed; z-index:10001; top:0; right:0; bottom:0; left:0; background:rgba(19,36,30,.74); }
