/* 全站顶栏导航 — 首页 / 维修页 / 内页共用 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease), background 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: transparent;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px 24px;
}

.logo-brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  color: inherit;
  flex-shrink: 0;
}

.logo-brand:hover {
  color: inherit;
}

.logo-brand img {
  height: 34px;
  width: auto;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  border-left: 1px solid rgba(208, 32, 0, 0.22);
}

.logo-wordmark__cn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink, var(--dark));
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.logo-wordmark__sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  color: var(--ink-3, var(--text-muted));
  line-height: 1.3;
}

nav.menu {
  display: flex;
  flex: 1;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

nav.menu .menu__list {
  display: flex;
  flex: 1;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

nav.menu .menu__list > li,
nav.menu li,
.footer-col .menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.menu .menu__list > li {
  position: relative;
  flex: 0 0 auto;
}

.mobile-drawer .mobile-menu-links ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer .mobile-menu-links li,
.mobile-drawer .panel > a {
  margin: 0;
}

nav.menu .menu__list > li > a,
nav.menu > a {
  position: relative;
  display: block;
  flex: 0 0 auto;
  font-family: var(--font-body);
  color: var(--ink-2, var(--text));
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  white-space: nowrap;
  line-height: 1.2;
}

nav.menu .menu__list > li > a::after,
nav.menu > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

nav.menu .menu__list > li > a:hover,
nav.menu > a:hover {
  color: var(--primary);
}

nav.menu .menu__list > li > a:hover::after,
nav.menu > a:hover::after,
nav.menu .menu__list > li:hover > a::after,
nav.menu .menu__list > li:focus-within > a::after {
  transform: scaleX(1);
}

nav.menu .menu__list > li > a.is-active,
nav.menu > a.is-active {
  color: var(--primary);
}

nav.menu .menu__list > li > a.is-active::after,
nav.menu > a.is-active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* 汉堡 / 抽屉 / 底栏：桌面默认隐藏（品牌壳页不加载 legacy style.css） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin: 0;
  line-height: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink, var(--dark));
  border-radius: 2px;
}

.mobile-drawer,
.mobile-bar {
  display: none !important;
}

.mobile-drawer.open {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-drawer .mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mobile-drawer .panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: #fff;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  z-index: 1;
}

.mobile-drawer .panel .close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-3, var(--text-muted));
  cursor: pointer;
}

.mobile-drawer .panel .logo-brand {
  margin-bottom: 24px;
  padding-right: 36px;
}

.mobile-drawer .mobile-menu-links a,
.mobile-drawer .panel > a {
  display: block;
  padding: 12px 4px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2, var(--text));
  border-bottom: 1px solid var(--line);
}

.mobile-drawer .mobile-menu-links a:hover,
.mobile-drawer .panel > a:hover {
  color: var(--primary);
}

.mobile-drawer .phone {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
}

@media (max-width: 1100px) {
  nav.menu .menu__list > li > a,
  nav.menu > a {
    padding: 8px 8px;
  }

  nav.menu .menu__list > li > a::after,
  nav.menu > a::after {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 860px) {
  nav.menu,
  .nav-phone,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }

  .mobile-bar a {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-2, var(--text));
    line-height: 1.3;
  }

  .mobile-bar a.primary {
    background: var(--primary);
    color: #fff !important;
    padding: 8px;
    border-radius: 8px;
  }

  body {
    padding-bottom: 80px;
  }
}
