/* Chinese navigation and footer use the original site's typography and palette. */
.v2-header {
  --teal: #00B1AD;
  --teal-soft: #E6F9F8;
  color: #334155;
  background: #F3FAFD;
  border-bottom-color: transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.v2-header.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-bottom-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.v2-header .v2-header-inner { min-height: 68px; gap: 20px; }
.v2-header .v2-brand img { width: 198px; height: 26px; }
.v2-header .v2-nav { gap: 4px; font-size: .9rem; font-weight: 500; }
.v2-header .v2-nav > a,
.v2-header .v2-nav summary {
  padding: 8px 14px;
  min-height: 0;
  border-radius: 8px;
  color: #334155;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color .25s ease, background .25s ease;
}
.v2-header .v2-nav > a:hover,
.v2-header .v2-nav summary:hover,
.v2-header .v2-nav details[open] summary {
  color: #1E293B;
  background: #F8FAFC;
}
.v2-header .v2-nav [aria-current="page"] { color: #1E293B; text-decoration: none; }
.v2-header .v2-subnav a { color: #334155; font-weight: 400; }
.v2-header .v2-subnav a:hover { color: #1E293B; background: #F8FAFC; }
.v2-header .v2-header-actions { gap: 10px; }
.v2-header .chrome-language {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 9px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: white;
  white-space: nowrap;
}
.v2-header .chrome-language > .v2-icon { width: 15px; height: 15px; margin-right: 5px; color: #64748B; }
.v2-header .chrome-language-current,
.v2-header .chrome-language-option {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #64748B;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.45;
}
.v2-header .chrome-language-current { background: #E6F9F8; border-color: rgba(0,177,173,.35); color: #1E293B; font-weight: 600; }
.v2-header .chrome-language-option:hover { color: #1E293B; }
.v2-header .v2-header-actions .chrome-demo-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  min-height: 0;
  padding: 9px 20px;
  border: 1.5px solid #00B1AD;
  border-radius: 10px;
  color: #00B1AD;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.6;
}
/* The four footer columns and lower legal rows mirror the pre-refactor source. */
.site-footer-original.footer { padding: 56px 0 28px; background: white; border-top: 1px solid #E2E8F0; line-height: 1.6; }
.site-footer-original .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer-original .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.site-footer-original .footer-grid > div { min-width: 0; }
.site-footer-original .footer-grid > div:first-child > svg { width: 198px !important; height: 26px; max-width: 100%; }
.site-footer-original .footer-tagline { margin-top: 20px; width: 198px; max-width: 100%; font-size: .875rem; line-height: 1.6; color: #334155; text-align: start; }
.site-footer-original .footer-col-title { margin: 0 0 14px; color: #1E293B; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.site-footer-original .footer-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer-original .footer-links a { color: #334155; font-size: .875rem; font-weight: 400; line-height: 1.6; text-decoration: none; }
.site-footer-original .footer-links a:hover { color: #00B1AD; }
.site-footer-original .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: none; }
.site-footer-original .footer-bottom p { margin: 0; color: #64748B; font-size: .8125rem; line-height: 1.6; }
.site-footer-original .footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer-original .footer-legal a { color: #64748B; font-size: .8125rem; text-decoration: none; }
.site-footer-original .footer-legal a:hover { color: #00B1AD; }

@media (max-width: 1120px) {
  .v2-header .v2-header-inner { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .v2-header .v2-brand img { width: 172px; height: auto; }
  .v2-header.v2-header--ready .v2-menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0; background: none; color: #1E293B; order: 2; }
  .v2-header .v2-header-actions { order: 1; }
  .v2-header .v2-nav { order: 3; flex: 1 0 100%; margin: 0; padding-block: 0 12px; align-items: start; flex-wrap: wrap; }
  .v2-header.v2-header--ready .v2-menu-toggle[aria-expanded="false"] ~ .v2-nav { display: none; }
  .v2-header.v2-header--ready .v2-nav { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; max-height: calc(100dvh - 66px); }
  .v2-header.v2-header--ready .v2-nav > * { width: 100%; }
  .v2-header .v2-nav-contact { display: block; }
  .v2-header .v2-subnav { position: static; min-width: 0; box-shadow: none; background: #F8FAFC; }
  .site-footer-original .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .v2-header .v2-brand img { width: 130px; }
  .v2-header .chrome-language-current { display: none; }
  .v2-header .v2-header-actions .chrome-demo-button { padding-inline: 12px; font-size: .8125rem; }
  .site-footer-original .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer-original .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .site-footer-original .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .v2-header .v2-header-inner { gap: 8px; padding-inline: 16px; }
  .v2-header .v2-brand img { width: 117px; }
  .v2-header .chrome-language { padding: 3px; }
  .v2-header .chrome-language > .v2-icon { display: none; }
  .v2-header .chrome-language-option { padding-inline: 6px; }
  .v2-header .v2-header-actions { gap: 6px; }
  .v2-header .v2-header-actions .chrome-demo-button { padding: 7px 8px; }
  .v2-header.v2-header--ready .v2-menu-toggle { min-width: 36px; width: 36px; }
  .site-footer-original .container { padding-inline: 20px; }
  .site-footer-original .footer-links a { overflow-wrap: anywhere; }
}
@media (max-width: 350px) {
  .v2-header .v2-brand img { width: 96px; }
  .v2-header .v2-header-inner { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-header, .v2-header .v2-nav > a, .v2-header .v2-nav summary { transition: none; }
}

/* Solution audiences stay distinct, with enterprise scenarios visible in the menu. */
.v2-header .solution-subnav { min-width: 250px; max-height: calc(100dvh - 100px); overflow-y: auto; }
.v2-header .solution-nav-group + .solution-nav-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #E2E8F0; }
.v2-header .solution-subnav .solution-nav-overview { font-weight: 600; }
.v2-header .solution-subnav .solution-nav-case { padding-inline-start: 26px; }
@media (max-width: 1120px) {
  .v2-header .solution-subnav { min-width: 0; max-height: none; overflow-y: visible; }
}

/* Shared demo/CTA motion; dark sections invert only the surface colors. */
.v2-header .v2-header-actions .chrome-demo-button,
.restore-home .hero-cta .btn-primary,
.restore-home #cta .home-cta-button {
  --cta-rest-ink: #00B1AD;
  --cta-fill: #00B1AD;
  --cta-hover-ink: #FFFFFF;
  --cta-border: #00B1AD;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: var(--cta-rest-ink);
  border-color: var(--cta-border);
  box-shadow: none;
  transition: color .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}
.restore-home #cta .home-cta-button {
  --cta-rest-ink: #FFFFFF;
  --cta-fill: #FFFFFF;
  --cta-hover-ink: #007A88;
  --cta-border: rgba(255, 255, 255, .7);
}
.v2-header .v2-header-actions .chrome-demo-button::before,
.restore-home .hero-cta .btn-primary::before,
.restore-home #cta .home-cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--cta-fill);
  transform: translateY(101%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
.v2-header .v2-header-actions .chrome-demo-button:is(:hover, :focus-visible),
.restore-home .hero-cta .btn-primary:is(:hover, :focus-visible),
.restore-home #cta .home-cta-button:is(:hover, :focus-visible) {
  background: transparent;
  color: var(--cta-hover-ink);
  border-color: var(--cta-fill);
  transform: translateY(-1px);
  box-shadow: none;
}
.v2-header .v2-header-actions .chrome-demo-button:is(:hover, :focus-visible)::before,
.restore-home .hero-cta .btn-primary:is(:hover, :focus-visible)::before,
.restore-home #cta .home-cta-button:is(:hover, :focus-visible)::before {
  transform: translateY(0);
}
.v2-header .v2-header-actions .chrome-demo-button:focus-visible,
.restore-home .hero-cta .btn-primary:focus-visible,
.restore-home #cta .home-cta-button:focus-visible {
  outline: 2px solid var(--cta-fill);
  outline-offset: 4px;
}
@media (hover: none), (pointer: coarse) {
.v2-header .v2-header-actions .chrome-demo-button,
.restore-home .hero-cta .btn-primary,
.restore-home #cta .home-cta-button {
  background: transparent !important;
  color: var(--cta-rest-ink) !important;
}
.v2-header .v2-header-actions .chrome-demo-button:hover,
.restore-home .hero-cta .btn-primary:hover,
.restore-home #cta .home-cta-button:hover {
  background: transparent !important;
  color: var(--cta-rest-ink) !important;
  border-color: var(--cta-border);
  transform: none !important;
}
.v2-header .v2-header-actions .chrome-demo-button::before,
.restore-home .hero-cta .btn-primary::before,
.restore-home #cta .home-cta-button::before {
  display: none;
}
.v2-header .v2-header-actions .chrome-demo-button:focus-visible,
.restore-home .hero-cta .btn-primary:focus-visible,
.restore-home #cta .home-cta-button:focus-visible {
  background: var(--cta-fill) !important;
  color: var(--cta-hover-ink) !important;
}
}
@media (prefers-reduced-motion: reduce) {
.v2-header .v2-header-actions .chrome-demo-button,
.restore-home .hero-cta .btn-primary,
.restore-home #cta .home-cta-button {
  transition: none;
}
.v2-header .v2-header-actions .chrome-demo-button::before,
.restore-home .hero-cta .btn-primary::before,
.restore-home #cta .home-cta-button::before {
  transition: none;
}
.v2-header .v2-header-actions .chrome-demo-button:is(:hover, :focus-visible),
.restore-home .hero-cta .btn-primary:is(:hover, :focus-visible),
.restore-home #cta .home-cta-button:is(:hover, :focus-visible) {
  transform: none;
}
}

/* Keep solution audiences explicit, with enterprise scenarios nested below. */
.site-footer-original .footer-solution-groups { display: grid; gap: 18px; }
.site-footer-original .footer-solution-group-title { display: inline-block; color: #334155; font-size: .875rem; font-weight: 600; line-height: 1.6; text-decoration: none; }
.site-footer-original .footer-solution-group-title:hover { color: #00B1AD; }
.site-footer-original .footer-solution-group-title:focus-visible { outline: 2px solid #00B1AD; outline-offset: 4px; border-radius: 2px; }
.site-footer-original .footer-solution-items { margin-top: 12px; padding-inline-start: 12px; border-inline-start: 1px solid #E2E8F0; }

/* Larger touch controls keep the existing compact Chinese mobile header. */
@media (max-width: 1120px) {
  .v2-header.v2-header--ready .v2-menu-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .v2-header .v2-header-actions .chrome-demo-button { min-height: 44px; }
  .v2-header .chrome-language-option { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
  .v2-header .v2-nav > a, .v2-header .v2-nav summary, .v2-header .v2-subnav a { min-height: 44px; }
}
@media (max-width: 350px) {
  .v2-header .v2-header-inner { gap: 4px; }
  .v2-header .v2-header-actions .chrome-demo-button { padding-inline: 6px; }
}
