/* Shared across all pages: design tokens, header, drawer, footer, nav. */

body {
  margin: 0;
}

.esun-site {
  --font-site: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  --c-text: #1b2532;
  --c-purple: #b63dff;
  --c-cyan: #0aa9e3;
  --c-orange: #f08200;
  --c-muted: #798ab0;
  --c-body: #334d8b;
  --c-blue: #0051d7;
  --c-svc-feat-num-bg: #e6efff;
  --c-violet: #824bfb;
  --c-hero-end: #f8f5ff;
  --c-hero-start: #e7eeff;
  --c-section: linear-gradient(90deg, #f0f5ff 0%, #dfeaff 100%);
  --c-map-card: linear-gradient(157deg, #f8fbff 0%, #e0eaff 100%);
  --c-footer-bg: #fafaff;
  --c-footer-grad: linear-gradient(157deg, #fafaff 0%, #e8f0ff 90%);
  --shadow-sm: 0 2px 17px 6px rgba(0, 42, 194, 0.1);
  --shadow-lg: 0 2px 50px 5px rgba(0, 42, 194, 0.2);
  --inner: min(1200px, 100% - 2.5rem);
  /* Line arrows (→): use stroke-width ≈2.4 in SVG; chevrons use --oh-arrow-chevron-px */
  --oh-arrow-size: 20px;
  --oh-arrow-chevron-size: 18px;
  --oh-back-arrow-w: 16px;
  --oh-back-arrow-h: 12px;
  font-family: var(--font-site);
  color: var(--c-text);
  background: #fff;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.esun-site *,
.esun-site *::before,
.esun-site *::after {
  box-sizing: border-box;
}

.esun-site img {
  max-width: 100%;
  display: block;
}

@keyframes oh-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes oh-float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes oh-bounce-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.6;
  }
}

.oh-f-inner {
  width: var(--inner);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Detail subpages: back link + shared arrow size (products / services / news / stories) */
.oh-f-pi-back,
.oh-f-svc-detail-back,
.oh-f-nd-back,
.oh-f-cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-orange);
  text-decoration: none;
}

.oh-f-pi-back:hover,
.oh-f-svc-detail-back:hover,
.oh-f-nd-back:hover,
.oh-f-cs-back:hover {
  opacity: 0.88;
  text-decoration: none;
}

.oh-f-pi-back svg,
.oh-f-svc-detail-back svg,
.oh-f-nd-back svg,
.oh-f-cs-back svg {
  width: var(--oh-back-arrow-w);
  height: var(--oh-back-arrow-h);
  flex-shrink: 0;
  display: block;
}

.oh-f-pi-back {
  margin-bottom: 1.75rem;
}

.oh-f-svc-detail-back {
  margin-bottom: 1.5rem;
}

.oh-f-nd-back {
  margin-bottom: 1.25rem;
}

.oh-f-cs-back {
  margin-bottom: 1.5rem;
}

.oh-f-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 102px;
  display: flex;
  align-items: center;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.oh-f-top--scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.oh-f-top__bar {
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.oh-f-top__row {
  width: var(--inner);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oh-f-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.oh-f-brand:hover,
.oh-f-brand:focus-visible {
  text-decoration: none;
  color: inherit;
}

/* Logo：组合标（eSUN 21），保持比例、限高以免顶栏过高 */
.oh-f-brand-logo {
  height: 44px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.oh-f-brand__t {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.2rem;
}

.oh-f-brand__t strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.oh-f-brand__t span {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.oh-f-menu {
  display: none;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  flex: 1;
  justify-content: flex-end;
  margin-right: 0.5rem;
}

@media (min-width: 900px) {
  .oh-f-menu {
    display: flex;
  }
}

/* 勿把 LinkedIn 算进「纯文字链」重置，否则会清掉图标底色 */
.oh-f-menu a:not(.oh-f-globe),
.oh-f-menu button:not(.oh-f-contact) {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  padding: 0.25rem;
  text-decoration: none;
}

.oh-f-menu a.oh-f-globe {
  text-decoration: none;
}

.oh-f-menu a:not(.oh-f-globe):visited {
  color: var(--c-muted);
  text-decoration: none;
}

.page-home .oh-f-menu a.oh-f-nav--home:visited,
.page-products .oh-f-menu a.oh-f-nav--products:visited,
.page-services .oh-f-menu a.oh-f-nav--services:visited,
.page-about-us .oh-f-menu a.oh-f-nav--about:visited,
.page-success-stories .oh-f-menu a.oh-f-nav--stories:visited,
.page-news .oh-f-menu a.oh-f-nav--news:visited {
  color: var(--c-blue);
}

/* After :visited so hover beats visited (same specificity) */
.oh-f-menu a:not(.oh-f-globe):hover,
.oh-f-menu button:hover {
  color: var(--c-blue);
  text-decoration: none;
}

.oh-f-menu a.is-active {
  color: var(--c-blue);
}

.oh-f-contact {
  flex-shrink: 0;
  background: linear-gradient(180deg, #1678ff 0%, #0051d7 55%, #0046c4 100%);
  color: #fff !important;
  padding: 11px 34px;
  min-height: 46px;
  border-radius: 23px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 22px rgba(0, 81, 215, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.oh-f-contact:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(0, 81, 215, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.oh-f-globe {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(173, 198, 255, 0.35);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 10%, rgba(86, 150, 255, 0.25) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG fill="currentColor" — LinkedIn glyph in brand blue */
.oh-f-menu a.oh-f-globe {
  color: #0a66c2;
}

.oh-f-menu a.oh-f-globe:hover {
  color: #004182;
}

.oh-f-burger {
  display: flex;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .oh-f-burger {
    display: none;
  }
}

.oh-f-drawer {
  display: none;
  position: fixed;
  top: 102px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 81, 215, 0.08);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}

.oh-f-drawer.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .oh-f-drawer {
    display: none !important;
  }
}

/* --- Site footer (all pages) --- */

.oh-f-foot {
  background: #fff;
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  border-top: 1px solid rgba(0, 81, 215, 0.06);
}

.oh-f-foot__grid {
  width: var(--inner);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .oh-f-foot__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.oh-f-foot p,
.oh-f-foot li {
  color: var(--c-body);
  font-size: 16px;
  line-height: 26px;
}

.oh-f-foot h4 {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

.oh-f-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oh-f-foot li {
  margin-bottom: 0.65rem;
}

.oh-f-foot-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: block;
  width: 100%;
}

.oh-f-foot-link:hover {
  color: var(--c-blue);
}

.oh-f-qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0.35rem;
  margin-top: 1rem;
}

.oh-f-qr-caption {
  margin-top: 0.5rem;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Multi-page nav: current section (use `a.` so it wins over base .oh-f-menu a { color: muted }) */
.page-home .oh-f-menu a.oh-f-nav--home,
.page-home .oh-f-drawer a.oh-f-nav--home,
.page-products .oh-f-menu a.oh-f-nav--products,
.page-products .oh-f-drawer a.oh-f-nav--products,
.page-services .oh-f-menu a.oh-f-nav--services,
.page-services .oh-f-drawer a.oh-f-nav--services,
.page-about-us .oh-f-menu a.oh-f-nav--about,
.page-about-us .oh-f-drawer a.oh-f-nav--about,
.page-success-stories .oh-f-menu a.oh-f-nav--stories,
.page-success-stories .oh-f-drawer a.oh-f-nav--stories,
.page-news .oh-f-menu a.oh-f-nav--news,
.page-news .oh-f-drawer a.oh-f-nav--news {
  color: var(--c-blue);
}

/* Current item: slightly darker on hover so feedback is visible (already blue) */
.page-home .oh-f-menu a.oh-f-nav--home:hover,
.page-home .oh-f-drawer a.oh-f-nav--home:hover,
.page-products .oh-f-menu a.oh-f-nav--products:hover,
.page-products .oh-f-drawer a.oh-f-nav--products:hover,
.page-services .oh-f-menu a.oh-f-nav--services:hover,
.page-services .oh-f-drawer a.oh-f-nav--services:hover,
.page-about-us .oh-f-menu a.oh-f-nav--about:hover,
.page-about-us .oh-f-drawer a.oh-f-nav--about:hover,
.page-success-stories .oh-f-menu a.oh-f-nav--stories:hover,
.page-success-stories .oh-f-drawer a.oh-f-nav--stories:hover,
.page-news .oh-f-menu a.oh-f-nav--news:hover,
.page-news .oh-f-drawer a.oh-f-nav--news:hover {
  color: #0a3385;
}

.oh-f-drawer a {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
  padding: 0.35rem 0;
}

.oh-f-drawer a:visited {
  text-decoration: none;
}

.page-home .oh-f-drawer a.oh-f-nav--home:visited,
.page-products .oh-f-drawer a.oh-f-nav--products:visited,
.page-services .oh-f-drawer a.oh-f-nav--services:visited,
.page-about-us .oh-f-drawer a.oh-f-nav--about:visited,
.page-success-stories .oh-f-drawer a.oh-f-nav--stories:visited,
.page-news .oh-f-drawer a.oh-f-nav--news:visited {
  color: var(--c-blue);
}

.oh-f-drawer a:hover {
  color: var(--c-blue);
  text-decoration: none;
}

a.oh-f-foot-link {
  text-decoration: none;
  color: inherit;
}

.oh-f-foot-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oh-f-foot-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.oh-f-foot-contact__icon {
  flex-shrink: 0;
  color: var(--c-violet);
  margin-top: 3px;
}

.oh-f-foot-contact a {
  color: inherit;
  text-decoration: none;
}

.oh-f-foot-contact a:hover {
  color: var(--c-blue);
}

/* Inline “→” next to links; stroke-width in markup should match ~2.4 */
.oh-f-link__arrow {
  width: var(--oh-arrow-size);
  height: var(--oh-arrow-size);
  flex-shrink: 0;
}
