:root {
  --global-nav-height: 72px;
  --global-ink: #111318;
  --global-paper: #f4f3f0;
  --global-line: rgba(17, 19, 24, 0.14);
  /* 深色导航（设计规范 V2 §5）：向深空紫 #07051A 靠拢 */
  --global-nav-bg: rgba(7, 5, 26, 0.92);
  --global-nav-text: #f1f5f3;
  --global-nav-muted: #8b9490;
  --global-nav-line: rgba(214, 197, 255, 0.14);
}

fruit-site-nav {
  position: sticky;
  inset: 0 0 auto;
  z-index: 1000;
  display: block;
  height: var(--global-nav-height);
  margin-bottom: calc(-1 * var(--global-nav-height));
  color: var(--global-nav-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

.global-nav-bar {
  height: var(--global-nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 350ms ease, border-color 350ms ease, color 350ms ease;
}

/* 滚动后吸顶：浅灰底 + 深色字（对齐旧 Patago 站 .site-header.scrolled） */
fruit-site-nav.scrolled {
  --global-nav-text: #111318;
  --global-nav-muted: #6f7079;
}

fruit-site-nav.scrolled .global-nav-bar {
  background: rgba(244, 243, 240, 0.9);
  border-bottom-color: rgba(10, 10, 15, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

fruit-site-nav.scrolled .global-nav-links a:hover,
fruit-site-nav.scrolled .global-nav-links a.is-active {
  opacity: 1;
}

.global-nav-brand,
.global-nav-links a,
.global-nav-contact,
.global-mobile-menu a,
.global-footer-bar a {
  color: inherit;
  text-decoration: none;
}

.global-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.global-nav-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.global-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  font-size: 13px;
}

.global-nav-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* 单行项（首页/案例）与双行项统一占位高度，产品名底部对齐到同一水平线 */
  min-height: 28px;
  opacity: 0.76;
  transition: opacity 200ms ease;
  white-space: nowrap;
}

.global-nav-links a:hover,
.global-nav-links a.is-active {
  opacity: 1;
}

/* hover 下划线：文字下方 1px，左→右生长（对齐旧 Patago 站 desktop-nav） */
.global-nav-links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: right 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.global-nav-links a:hover::after,
.global-nav-links a.is-active::after { right: 0; }

.global-nav-links small,
.global-mobile-menu small {
  margin-bottom: 2px;
  color: var(--global-nav-muted);
  font-size: 10px;
  font-weight: 500;
  /* V3 微标签字距；拉开与产品名的宽度差，消除"几乎对齐"的光学错觉 */
  letter-spacing: 0.12em;
  line-height: 1;
}

.global-nav-links strong {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* Muted violet CTA echoes the page accents on both navigation backgrounds. */
fruit-site-nav {
  --contact-fill: #6854c7;
  --contact-hover: #5945b5;
  --contact-active: #4c399f;
}
.global-nav-bar .global-nav-contact,
.global-mobile-menu .global-mobile-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 96px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--contact-fill);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.global-nav-bar .global-nav-contact { justify-self: end; }
@media (hover: hover) {
  .global-nav-bar .global-nav-contact:hover,
  .global-mobile-menu .global-mobile-contact:hover { background: var(--contact-hover); border-color: transparent; }
}
.global-nav-bar .global-nav-contact:focus-visible,
.global-mobile-menu .global-mobile-contact:focus-visible { outline: 2px solid var(--global-nav-text); outline-offset: 4px; }
.global-nav-bar .global-nav-contact:active,
.global-mobile-menu .global-mobile-contact:active { background: var(--contact-active); }
.global-nav-toggle,
.global-mobile-menu { display: none; }

fruit-site-footer {
  display: block;
  scroll-margin-top: var(--global-nav-height);
  color: #f3f4f5;
  background: #0b0d10;
  font-family: "Space Grotesk", "Noto Sans SC", Arial, sans-serif;
}

.global-footer-directory {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 0.8fr) minmax(160px, 0.65fr) minmax(260px, 1fr);
  gap: clamp(36px, 5vw, 88px);
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0 82px;
}

.global-footer-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f3f4f5;
  font-size: 18px;
  text-decoration: none;
}

.global-footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.global-footer-brand p {
  max-width: 260px;
  margin: 25px 0 0;
  color: #858991;
  font-size: 13px;
  line-height: 1.75;
}

.global-footer-brand .global-footer-cta-copy {
  max-width: 300px;
  margin-top: 14px;
  color: #a8abb1;
}

.global-footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.global-footer-group h3 {
  margin: 0 0 9px;
  color: #f3f4f5;
  font-size: 13px;
  font-weight: 650;
}

.global-footer-group a {
  color: #92969e;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease;
}

.global-footer-group a:hover { color: #f3f4f5; }
.global-footer-group a span { display: block; margin-bottom: 2px; color: #62666e; font-size: 10px; }

.global-footer-business { gap: 0; }
.global-footer-business h3 { margin: 0 0 24px; }
.global-footer-contact-methods { display: grid; width: 100%; gap: 18px; }
.global-footer-business .global-footer-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  color: #d8dadd;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.global-footer-business .global-footer-address {
  max-width: 290px;
  margin: 22px 0 0;
  color: #777b83;
  font-size: 11px;
  line-height: 1.8;
}
.global-footer-wechat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.global-footer-wechat img {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
}
.global-footer-wechat figcaption { display: grid; gap: 6px; }
.global-footer-wechat strong { color: #d8dadd; font-size: 13px; font-weight: 500; line-height: 1.5; }
.global-footer-wechat figcaption span { color: #858991; font-size: 11px; line-height: 1.6; }
.global-footer-wechat figcaption .global-footer-wechat-mobile-hint { display: none; }
@media(max-width:760px) {
  .global-footer-contact-methods { gap: 12px; }
  .global-footer-wechat figcaption .global-footer-wechat-mobile-hint { display: block; }
}

.global-footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 32px;
  color: #777b83;
  border-top: 1px solid #282b31;
  font-size: 11px;
}

.global-footer-bar a { color: #f3f4f5; font-weight: 650; }
.global-footer-bar > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }

@media (max-width: 1180px) {
  :root { --global-nav-height: 64px; }
  .global-nav-bar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .global-nav-links,
  .global-nav-bar .global-nav-contact { display: none; }
  .global-nav-toggle {
    display: grid;
    justify-self: end;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--global-nav-text);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .global-nav-toggle span { display: block; width: 22px; height: 1px; margin: 4px 0; background: currentColor; transition: transform 180ms ease; }
  fruit-site-nav.menu-open { height: var(--global-nav-height); }
  fruit-site-nav.menu-open .global-nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  fruit-site-nav.menu-open .global-nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .global-mobile-menu {
    position: absolute;
    top: var(--global-nav-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 14px 18px 22px;
    color: var(--global-nav-text);
    background: rgba(7, 5, 26, 0.98);
    border-bottom: 1px solid var(--global-nav-line);
  }
  .global-mobile-menu[hidden] { display: none; }
  fruit-site-nav.scrolled .global-mobile-menu {
    background: rgba(244, 243, 240, 0.97);
    border-bottom-color: rgba(10, 10, 15, 0.1);
  }
  fruit-site-nav.scrolled .global-mobile-menu a:not(.global-mobile-contact) { border-bottom-color: rgba(17, 19, 24, 0.1); }
  .global-mobile-menu a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
    padding: 0 8px;
    border-bottom: 1px solid var(--global-nav-line);
    font-size: 15px;
  }
  .global-mobile-menu a.is-active { text-decoration: underline; text-underline-offset: 5px; }
  .global-mobile-menu .global-mobile-contact {
    min-height: 48px;
    margin-top: 16px;
    font-size: 14px;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .global-footer-directory {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px 72px;
  }
}

@media (max-width: 760px) {
  .global-footer-directory {
    grid-template-columns: 1fr 1fr;
    gap: 50px 24px;
    width: calc(100% - 36px);
    padding: 56px 0 62px;
  }
  .global-footer-brand,
  .global-footer-business { grid-column: 1 / -1; }
  .global-footer-bar {
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 36px);
    padding: 22px 0 28px;
  }
  .global-footer-bar > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav-links a,
  .global-nav-bar .global-nav-contact,
  .global-nav-toggle span,
  .global-mobile-menu .global-mobile-contact,
  .global-footer-group a { transition: none; }
}

/* Plain platform link with a restrained underline on interaction. */
.global-nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
  white-space: nowrap;
}
.global-platform-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 2px;
  color: var(--global-nav-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}
.global-platform-login::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
@media (hover: hover) { .global-platform-login:hover::after { transform: scaleX(1); } }
.global-platform-login:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media(max-width:1180px) { .global-nav-actions { display: none; } }
@media(prefers-reduced-motion:reduce) { .global-platform-login::after { transition: none; } }
