/* White and green brand theme, shared across all page types. */
:root {
  --navy: #1e3029;
  --navy-deep: #0b4937;
  --blue: #12634b;
  --gold: #bce0c9;
  --gold-dark: #12634b;
  --blue-line: #dfe6e1;
  --blue-soft: #f5f7f5;
}
.topline { background: #f3f5f3; color: var(--muted); border-bottom: 1px solid var(--line); }
.topline .top-hotline { color: var(--green); }
.header nav > a:hover, .header nav > a[aria-current] { color: var(--green); }
.header nav > a[aria-current]::after { background: var(--green); }
.header .button.primary, .wechat-dialog .button.primary,
.marketing .button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.header .button.primary:hover, .wechat-dialog .button.primary:hover,
.marketing .button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.contact-band { background: var(--green); }
.contact-band .eyebrow { color: #c7ddcc; }
.contact-band .button { background: #fff; color: var(--green); }
.footer { background: #f5f7f5; color: #52675a; }
.footer-brand, .footer h3 { color: var(--ink); }
.footer-brand small, .footer-grid .footer-phone, .footer-grid a:hover, .footer-wechat { color: var(--green); }
.footer-bottom { color: #52675a; border-color: var(--line); }
.footer-grid > div:last-child { border-color: var(--line); }
.m-heading > p:last-child:not(.m-eyebrow), .m-feature-description,
.m-benefit p, .m-mini-stats dd, .m-product-lines dd, .m-fineprint,
.m-cargo-grid p, .m-mode-grid article > p:last-child, .m-city-grid article > p:last-child,
.m-profile > div > p, .m-timeline p, .m-resource-list dd, .m-intro-copy,
.m-inline-cta p:not(.m-eyebrow), .marketing .faq-list details > div { color: #596d61; }
.m-home-shade { background: linear-gradient(90deg, #092f27eb 0%, #092f27bd 42%, #092f2736 78%, #092f2720); }
.m-home-hero .button.primary { background: #fff; border-color: #fff; color: var(--green-dark); }
.m-home-hero .button.primary:hover { background: #edf5f0; }
.m-backup-hotline { display: inline-block; margin-top: 12px; font-size: 13px; color: #e5efe9; }
.m-backup-hotline + .m-hero-route { margin-top: 14px; }
.knowledge-banner .m-banner-image { object-position: center 62%; }
.knowledge-banner .m-banner-shade { background: #082d2766; }
.knowledge-banner .m-page-hero { min-height: 340px; }
.knowledge-banner + .section .section-heading h2 { font-size: 28px; }
.knowledge-banner + .section .section-heading p:last-child { margin-top: 12px; color: var(--muted); }
.business-phones.inline-phones a { justify-content: center; }
@media (max-width: 850px) {
  .knowledge-banner .m-page-hero { min-height: 260px; }
  .knowledge-banner + .section .section-heading h2 { font-size: 23px; }
}
.m-hero-stats { background: #fff; border-bottom: 1px solid var(--line); border-top: 0; color: var(--ink); }
.m-stats dt, .m-stats-light dt { color: var(--green); }
.m-stats dd, .m-stats-light dd { color: #596d61; }
.m-stats > div + div::before { background: var(--line); }
.m-feature-icon { background: var(--green-soft); color: var(--green); }
.m-benefit:hover { border-color: #89b5a2; box-shadow: 0 8px 24px #163d2408; }
.m-dark { background: var(--green-soft); color: var(--ink); }
.m-dark .m-eyebrow { color: var(--green); }
.m-dark .m-heading > p:last-child:not(.m-eyebrow), .m-dark .m-benefit p,
.m-dark .m-flow p, .m-dark .m-fineprint { color: #596d61; }
.m-dark .m-benefit { background: #fff; border-color: var(--line); }
.m-dark .m-feature-icon { background: var(--green-soft); color: var(--green); }
.m-index, .m-dark .m-index { color: #dfe9e2; }
.m-dark .m-flow b { color: var(--green); }
.m-flow b { border-color: #99b9a6; }
.m-flow li { border-top-color: #8bb5a0; }
.m-photo-card { display: flex; flex-direction: column; align-items: stretch; min-height: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.m-photo-card > img { position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.m-photo-card::after { content: none; }
.m-photo-card > div { flex: 1; display: flex; flex-direction: column; padding: 25px; }
.m-photo-card h3 { font-size: 22px; }
.m-photo-card > div > p:first-child { color: var(--green); }
.m-card-description { color: #596d61; }
.m-photo-more { margin-top: auto; padding-top: 20px; color: var(--green); }
.m-photo-tag { background: #0b4937e8; color: #fff; border-color: #ffffff66; }
.m-feature-photo > span { background: var(--green-dark); border-color: #bce0c9; }
.m-banner-shade { background: #092f279c; }
.m-table thead { background: var(--green); }
.m-dark .m-table caption { color: var(--ink); }
.m-group-list, .m-group-list article { border-color: #cfdfd3; }
.m-group-number, .m-group-list .icon, .m-group-role { color: var(--green); }
.m-group-list article p { color: #596d61; }
.m-group-list h3 { font-size: 19px; }
.m-city-grid article { border-color: var(--green); }
.consult-tools > a:first-child { background: var(--green); border-color: var(--green); color: #fff; }
.mobile-dock .dock-primary { background: var(--green); color: #fff; }
.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-group-label { display: flex; align-items: center; position: relative; }
.nav-group-label > a { white-space: nowrap; font-size: 14px; font-weight: 550; padding-block: 15px; }
.nav-group.is-current .nav-group-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); }
.nav-group.is-current .nav-group-label, .nav-group-label > a:hover { color: var(--green); }
.nav-submenu-toggle { border: 0; background: transparent; width: 26px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--green); }
.nav-submenu-toggle .icon { width: 15px; height: 15px; transition: transform .15s; }
.nav-submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: 100%; right: 0; min-width: 184px; padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px #173f2414; }
.nav-submenu a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; font-size: 14px; }
.nav-submenu a:hover, .nav-submenu a[aria-current] { background: var(--green-soft); color: var(--green); }
.nav-submenu .icon { width: 15px; height: 15px; }
.contact-page-actions { display: flex; align-items: center; gap: 25px; margin-top: 20px; }
.contact-wechat { background: none; border: 0; padding: 8px 0; }

.sales-section { padding-block: 46px 60px; background: var(--soft); border-block: 1px solid var(--line); }
.sales-heading { text-align: center; margin-bottom: 30px; }
.sales-heading h2 { font-size: 30px; }
.sales-heading > p:last-child { font-size: 14px; color: var(--muted); margin-top: 12px; }
.sales-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.sales-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sales-photo { position: relative; overflow: hidden; background: #f0f3f5; }
.sales-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.sales-photo > span { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); padding: 5px 10px; border-radius: 4px; background: #ffffffed; color: var(--green-dark); font-size: 12px; font-weight: 600; }
.sales-info { flex: 1; display: flex; flex-direction: column; padding: 22px 18px 20px; }
.sales-info h3 { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; font-size: 22px; line-height: 1.5; }
.sales-info h3 > span { font-size: 14px; color: var(--green); font-weight: 550; }
.sales-description { font-size: 14px; line-height: 1.9; color: #596d61; margin-top: 11px; }
.sales-phones { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 72px; margin-top: auto; padding-top: 22px; }
.sales-phones a { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; line-height: 1.7; font-variant-numeric: tabular-nums; }
.sales-phones a:hover { color: var(--green); }
.sales-phones .icon { width: 14px; height: 14px; color: var(--green); }
.sales-phones small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: auto; white-space: nowrap; }
.sales-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.sales-actions .button { min-height: 44px; padding: 9px 6px; gap: 5px; font-size: 12px; }
.sales-actions .icon { width: 15px; height: 15px; }
.contact-qr-dialog { width: min(410px,calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 0; border-radius: 8px; color: var(--ink); box-shadow: 0 20px 80px #0004; }
.contact-qr-dialog::backdrop { background: #081f19c9; }
.contact-qr-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.contact-qr-heading > div { min-width: 0; }
.contact-qr-heading p { font-size: 11px; color: var(--green); margin-bottom: 6px; }
.contact-qr-heading h2 { font-size: 23px; }
.contact-qr-heading h2 span { font-size: 15px; color: var(--green); margin-left: 7px; }
.contact-qr-heading .icon-button { border: 0; border-radius: 4px; background: var(--soft); flex-shrink: 0; }
.contact-qr-image { width: auto; max-width: min(286px,100%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 24px auto 18px; }
.contact-qr-hint { text-align: center; font-size: 12px; color: var(--muted); }
.contact-qr-phone { display: flex; justify-content: center; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; color: var(--green); font-size: 18px; font-weight: 600; }
@media (max-width:1100px) {
  .sales-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .sales-info { padding-inline: 22px; }
  .sales-photo img { aspect-ratio: 5 / 7; }
}
@media (max-width:560px) {
  .sales-section { padding-block: 32px 38px; }
  .sales-heading h2 { font-size: 25px; }
  .sales-heading > p:last-child { font-size: 13px; }
  .sales-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .sales-photo img { aspect-ratio: 5 / 7; }
  .sales-info { padding: 21px; }
  .sales-phones a { font-size: 15px; }
  .sales-actions .button { font-size: 13px; min-height: 46px; }
  .contact-page-actions { gap: 14px; flex-wrap: wrap; }
  .contact-qr-dialog { padding: 20px; }
}
@media print {
  .contact-qr-dialog { display: none !important; }
}

/* Keep entire documents visible, regardless of portrait or landscape format. */
.certificate-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 22px; }
.certificate-item { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.certificate-preview { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1.12; padding: 19px; background: #f8faf8; border-bottom: 1px solid var(--line); }
.certificate-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .2s; }
.certificate-preview:hover img { transform: scale(1.035); }
.certificate-zoom { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--green); }
.certificate-zoom .icon { width: 16px; height: 16px; }
.certificate-caption { padding: 17px 18px 20px; }
.certificate-category { display: flex; justify-content: space-between; gap: 10px; color: var(--green); font-size: 11px; margin-bottom: 9px; }
.certificate-category > span:last-child { color: #788a7f; font-variant-numeric: tabular-nums; }
.marketing .certificate-caption h3 { font-size: 16px; line-height: 1.6; text-wrap: initial; margin-bottom: 7px; }
.certificate-caption h3 a:hover { color: var(--green); }
.certificate-caption > p:last-child { font-size: 12px; color: #596d61; line-height: 1.8; overflow-wrap: anywhere; }
.certificate-dialog { padding: 0; border: 0; border-radius: 8px; width: min(1100px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); color: var(--ink); background: #fff; overflow: hidden; box-shadow: 0 20px 80px #0004; }
.certificate-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: min(900px, calc(100dvh - 40px)); }
.certificate-dialog::backdrop { background: #081f19c9; }
.certificate-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.certificate-dialog-head > div:first-child { min-width: 0; }
.marketing .certificate-dialog-head h2 { font-size: 19px; line-height: 1.5; text-wrap: initial; }
#certificate-counter { font-size: 11px; color: var(--green); font-variant-numeric: tabular-nums; }
.certificate-controls { display: flex; gap: 8px; flex-shrink: 0; }
.certificate-controls .icon-button, .certificate-dialog-footer .icon-button { border-radius: 4px; color: var(--green); }
.certificate-stage { overflow: auto; min-height: 0; background: #f1f4f1; padding: 16px; display: flex; align-items: center; justify-content: center; }
.certificate-stage img { width: 100%; height: 100%; object-fit: contain; }
.certificate-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--line); }
.certificate-dialog-footer p { text-align: center; color: #596d61; font-size: 12px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width:1350px) {
  .consult-tools { display: none; }
}
@media (min-width:851px) and (max-width:1250px) {
  .header-row { gap: 18px; }
  .header nav { gap: 14px; }
  .brand img { width: 190px; }
  .header-action { gap: 8px; }
  .header nav > a, .nav-group-label > a { font-size: 13px; }
  .header .button.compact { font-size: 12px; padding-inline: 12px; }
}
@media (min-width:851px) and (max-width:1000px) {
  .header-row { gap: 12px; }
  .header nav { gap: 12px; }
  .brand img { width: 154px; }
  .header nav > a, .nav-group-label > a { font-size: 12px; }
  .header .button.compact { padding-inline: 9px; font-size: 11px; gap: 6px; }
  .nav-submenu-toggle { width: 22px; }
}
@media (max-width:1100px) {
  .certificate-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
}
@media (max-width:850px) {
  .nav-group { display: block; border-bottom: 1px solid var(--line); }
  .nav-group-label { justify-content: space-between; }
  .nav-group-label > a { font-size: 15px; flex: 1; padding-block: 14px; }
  .nav-submenu-toggle { width: 44px; }
  .nav-group.is-current .nav-group-label::after { content: none; }
  .nav-submenu { position: static; border: 0; box-shadow: none; background: var(--soft); border-radius: 4px; margin-bottom: 12px; }
  .certificate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .m-home-shade { background: linear-gradient(90deg,#092f27eb,#092f27a8 70%,#092f2755); }
}
@media (max-width:560px) {
  .m-home-shade { background: #092f27b5; }
  .m-home-hero .m-actions .button.primary { color: var(--green-dark); }
  .m-photo-card > div { padding: 22px; }
  .m-photo-card h3 { font-size: 22px; }
  .certificate-grid { gap: 15px 12px; }
  .certificate-preview { aspect-ratio: .88; padding: 12px; }
  .certificate-caption { padding: 13px 12px 16px; }
  .marketing .certificate-caption h3 { font-size: 14px; }
  .certificate-caption > p:last-child { font-size: 11px; }
  .certificate-category { font-size: 10px; gap: 4px; }
  .certificate-zoom { width: 28px; height: 28px; right: 6px; bottom: 6px; }
  .certificate-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  .certificate-dialog[open] { height: calc(100dvh - 24px); }
  .certificate-dialog-head { padding: 12px; gap: 10px; }
  .marketing .certificate-dialog-head h2 { font-size: 16px; }
  .certificate-controls { gap: 4px; }
  .certificate-controls .icon-button { width: 38px; height: 42px; }
  .certificate-stage { padding: 8px; }
  .certificate-dialog-footer { padding: 10px 12px; gap: 10px; }
  .certificate-dialog-footer p { font-size: 11px; }
}
@media (max-width:360px) {
  .certificate-grid { grid-template-columns: minmax(0,1fr); }
  .certificate-preview { aspect-ratio: 1.12; padding: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  .certificate-preview img, .nav-submenu-toggle .icon { transition: none; }
}
@media print {
  .certificate-dialog { display: none !important; }
}
