html {
  scrollbar-gutter: stable;
}

.nav-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.nav-item {
  min-height: 42px;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .48rem !important;
  padding: .62rem .96rem !important;
  border: 1px solid transparent !important;
  border-radius: 9999px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: .95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.nav-item svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

.nav-item:hover {
  background: rgba(255,255,255,.78) !important;
  color: #0f172a !important;
}

.nav-item--active {
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(147,51,234,.10)) !important;
  color: #0f172a !important;
  border-color: rgba(99,102,241,.28) !important;
  box-shadow: 0 10px 20px -16px rgba(15,23,42,.35), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.nav-item--active svg {
  opacity: 1 !important;
}

header > div {
  min-height: 44px;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-wrap { gap: .1rem !important; }
  .nav-item {
    min-height: 38px;
    gap: .3rem !important;
    padding: .48rem .55rem !important;
    font-size: .8rem !important;
  }
  .nav-item svg {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px;
  }
}

@media (min-width: 1280px) {
  .nav-item { padding: .66rem 1.02rem !important; }
}
.site-announcement {
  position: relative;
  z-index: 42;
  overflow: hidden;
  max-height: 0;
  border-bottom: 0 solid rgba(165, 180, 252, .35);
  background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 52%, #eff6ff 100%);
  opacity: 0;
  transition: max-height .22s ease, opacity .18s ease, border-width .22s ease;
}

.site-announcement.is-visible {
  max-height: 96px;
  border-bottom-width: 1px;
  opacity: 1;
}

.site-announcement__inner {
  display: flex;
  width: min(1280px, calc(100% - 32px));
  min-height: 46px;
  margin: 0 auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #3730a3;
}

.site-announcement__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #4f46e5;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.site-announcement__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  gap: 10px;
}

.site-announcement__copy strong {
  flex: 0 0 auto;
  color: #1e1b4b;
  font-size: 14px;
  font-weight: 800;
}

.site-announcement__copy span {
  overflow: hidden;
  color: #6366a2;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-announcement__close {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #6366a2;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.site-announcement__close:hover { background: #fff; color: #312e81; }
.site-announcement__close svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .site-announcement__inner { width: min(100% - 24px, 1280px); gap: 8px; }
  .site-announcement__copy { display: block; }
  .site-announcement__copy strong,
  .site-announcement__copy span { display: block; }
  .site-announcement__copy span { margin-top: 2px; font-size: 12px; }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out 120ms ease both;
}

::view-transition-new(root) {
  animation: page-fade-in 180ms ease both;
}

@keyframes page-fade-out {
  to { opacity: 0; }
}

@keyframes page-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

.customer-service {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.customer-service__trigger {
  display: inline-flex;
  width: 58px;
  min-width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 18px 38px -18px rgba(79, 70, 229, .82), 0 7px 18px -9px rgba(37, 99, 235, .48);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.customer-service__trigger:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 22px 42px -18px rgba(79, 70, 229, .92), 0 9px 22px -10px rgba(37, 99, 235, .58);
  transform: translateY(-2px);
}

.customer-service__trigger:active { transform: translateY(0) scale(.98); }
.customer-service__trigger svg { width: 24px; height: 24px; flex: 0 0 24px; }
.customer-service__trigger span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.customer-service__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 330px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 64px -28px rgba(15, 23, 42, .5), 0 14px 30px -22px rgba(79, 70, 229, .42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  transform-origin: right bottom;
  visibility: hidden;
  transition: opacity .18s ease, transform .2s ease, visibility .2s ease;
}

.customer-service.is-open .customer-service__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.customer-service__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 16px;
  border-bottom: 1px solid #eef2f7;
}

.customer-service__header > div { display: grid; gap: 6px; }
.customer-service__header strong { font-size: 18px; font-weight: 850; line-height: 1.25; }

.customer-service__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.customer-service__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.customer-service__close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.customer-service__close:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }
.customer-service__close svg { width: 16px; height: 16px; }

.customer-service__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  padding: 18px 20px 20px;
}

.customer-service__qr {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.customer-service__qr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.customer-service__details { min-width: 0; }
.customer-service__details > span { color: #64748b; font-size: 12px; font-weight: 700; }
.customer-service__details > strong { display: block; margin-top: 3px; color: #0f172a; font-size: 18px; font-weight: 850; line-height: 1.3; }

.customer-service__copy {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  margin-top: 11px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.customer-service__copy:hover { border-color: #a5b4fc; background: #e0e7ff; }
.customer-service__copy.is-copied { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.customer-service__copy svg { width: 15px; height: 15px; }
.customer-service__details small { display: block; margin-top: 9px; color: #94a3b8; font-size: 11px; line-height: 1.5; }

@media (max-width: 640px) {
  .customer-service { right: 14px; bottom: 14px; }
  .customer-service__trigger { width: 52px; min-width: 52px; height: 52px; padding: 0; }
  .customer-service__panel { width: min(330px, calc(100vw - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-service__trigger,
  .customer-service__panel { transition: none; }
}
