:root {
  --header-height: 60px;
}

.site-header {
  --header-height: 60px;
}

.site-header .container,
.site-header .nav-wrap {
  height: var(--header-height);
}

.site-header:not(.index-header) {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e3eaf6;
  transition: 0.3s ease;
}

.site-header:not(.index-header).scrolled {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(189, 212, 255, 0.82);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow: 0 10px 28px rgba(20, 56, 130, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.site-header:not(.index-header) .container,
.site-header:not(.index-header) .nav-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 72px;
  position: relative;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header:not(.index-header) .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header:not(.index-header) .brand img {
  width: 58px;
}

.site-header:not(.index-header) .main-nav {
  display: flex;
  align-items: center;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  gap: 62px !important;
}

.site-header:not(.index-header) .main-nav > a,
.site-header:not(.index-header) .nav-trigger {
  color: #0f214c !important;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
}

.site-header .main-nav > a,
.site-header .nav-trigger {
  position: relative;
}

.site-header .main-nav > a.is-current,
.site-header .nav-item.is-current .nav-trigger {
  font-weight: 700;
}

.site-header:not(.index-header) .main-nav > a:hover,
.site-header:not(.index-header) .nav-trigger:hover {
  color: #1f5dff !important;
  text-shadow: none !important;
}

.site-header:not(.index-header) .main-nav > a.is-current,
.site-header:not(.index-header) .nav-item.is-current .nav-trigger {
  color: #1f5dff !important;
}

.site-header.index-header .main-nav > a.is-current,
.site-header.index-header .nav-item.is-current .nav-trigger {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.48);
}

.site-header.index-header.scrolled .main-nav > a.is-current,
.site-header.index-header.scrolled .nav-item.is-current .nav-trigger {
  color: #1b2b67;
  text-shadow: none;
}

.site-header:not(.index-header) .login-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #111751;
  height: 38px;
  border-radius: 999px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: bold;
}

.nav-trigger .iconfont {
  transition: transform 0.28s ease;
  transform-origin: center;
}

.nav-item.open .nav-trigger .iconfont {
  transform: rotate(180deg);
}

.nav-arrow {
  transition: transform 0.28s ease;
}

.nav-item.open .nav-arrow {
  transform: rotate(225deg) translateY(-1px);
}

.product-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 370px;
  border-radius: 18px;
  border: 1px solid rgba(194, 213, 246, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(21, 37, 73, 0.22);
  padding: 14px 14px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1200;
}

.product-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.product-menu a {
  display: block;
  text-decoration: none;
  color: #0E1724;
  border-radius: 12px;
  padding: 15px 8px;
}

.product-menu a:hover {
  background: #f4f7ff;
}

.product-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.product-item img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.product-item span {
  display: grid;
  gap: 2px;
}

.product-item strong {
  font-size: 16px;
  line-height: 1.2;
  color: #0E1724;
  font-weight: 700;
}

.product-item em {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #758194;
}

.product-note {
  margin-top: 10px;
  padding: 6px 8px 2px;
  font-size: 14px;
  color: #0E1724;
  opacity: 0.35;
  text-align: center;
}

.footer-col h4 a {
  color: inherit;
  text-decoration: none;
}

.footer-col h4 a:hover {
  color: #1b4fff;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(27, 46, 88, 0.2);
  border-radius: 50px;
  background: #121f67;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  position: relative;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-menu-btn span::before {
  top: -5px;
}

.mobile-menu-btn span::after {
  top: 5px;
}

.shared-footer {
  background: #f5f7fb;
  border-top: 1px solid #dde4f2;
}

.shared-footer .footer-main {
  padding: 8px 0 10px;
  display: grid;
  grid-template-columns: 220px 1fr 2fr;
  gap: 24px;
  align-items: start;
}

.shared-footer .footer-main h4,
.shared-footer .footer-main p,
.shared-footer .footer-main a,
.shared-footer .footer-meta span {
  font-size: 14px;
}

.shared-footer .footer-meta {
  border-top: 1px solid #dde4f2;
  background: #edf1f7;
}

.shared-footer .footer-meta .container {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.login-modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.login-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 40, 0.42);
  backdrop-filter: blur(3px);
}

.login-modal__panel {
  position: relative;
  width: min(90vw, 760px);
  min-height: 408px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(8, 20, 58, 0.28);
}

.login-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #b9c1d2;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  z-index: 5;
}

.login-modal__aside {
  background: url("img/loginimg.png") no-repeat center bottom #cfe6ff;
  padding: 26px 24px 0;
  background-size: 100% auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.login-modal__logo {
  width: 40px;
  height: auto;
}

.login-modal__aside h3 {
  margin: 44px 0 12px;
  font-size: 18px;
  line-height: 1.45;
  color: #1c2b63;
}

.login-modal__aside p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #617091;
}

.login-modal__visual {
  display: none;
}

.login-modal__main {
  padding: 88px 56px 44px;
}

.login-modal__main h2 {
  position: relative;
  display: inline-block;
  z-index: 1;
  isolation: isolate;
  margin: 0 0 30px;
  font-size: 22px !important;
  line-height: 1.2;
  color: #09132d;
  font-weight: 800;
}

.login-modal__main h2::after {
  content: "";
  position: absolute;
  left: 82%;
  bottom: -6px;
  width: 86px;
  height: 12px;
  transform: translateX(-50%);
  background: url("img/zhengmo/line2.png") center/contain no-repeat;
  pointer-events: none;
  z-index: -1;
  transform-origin: left center;
  opacity: 0;
  animation: modalLineDraw 0.75s ease-out 0.08s forwards;
}

.login-input {
  height: 56px;
  border-radius: 8px;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.login-input i {
  color: #949fb2;
  font-size: 20px;
}

.login-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f1728;
  font-size: 16px;
}

.login-input input::placeholder {
  color: #a8b0bf;
}

.login-submit {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #0f4fff, #1a5fff);
}

.login-tip {
  margin: 18px 0 14px;
  color: #4f5c75;
  font-size: 14px;
}

.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3d4a63;
  font-size: 13px;
  line-height: 1.5;
}

.login-agree input {
  margin-top: 3px;
}

.reserve-modal {
  position: fixed;
  inset: 0;
  z-index: 3010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  display: grid;
  place-items: center;
  padding: 24px;
}

.reserve-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reserve-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 40, 0.42);
  backdrop-filter: blur(3px);
}

.reserve-modal__panel {
  position: relative;
  width: min(90vw, 760px);
  min-height: 468px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(8, 20, 58, 0.28);
}

.reserve-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #b9c1d2;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  z-index: 5;
}

.reserve-modal__aside {
  background: url("img/yuyueimg.png") center bottom #C3DBF9 no-repeat;
  padding: 26px 24px 0;
  background-size: 100% auto;
  display: flex;
  flex-direction: column;
}

.reserve-modal__logo {
  width: 40px;
  height: auto;
}

.reserve-modal__aside h3 {
  margin: 44px 0 12px;
  font-size: 18px;
  line-height: 1.45;
  color: #1c2b63;
}

.reserve-modal__aside p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #617091;
}

.reserve-modal__main {
  padding: 56px 30px 36px;
  text-align: center;
}

.reserve-modal__main h2 {
  position: relative;
  display: inline-block;
  z-index: 1;
  isolation: isolate;
  margin: 0 0 10px;
  font-size: 22px !important;
  line-height: 1.35;
  font-weight: 800;
  color: #0b1538;
  text-align: left;
  width: 100%;
}

.reserve-modal__main h2::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: 28px;
  width: 116px;
  height: 12px;
  transform: translateX(-50%);
  background: url("img/zhengmo/line2.png") center/contain no-repeat;
  pointer-events: none;
  z-index: -1;
  transform-origin: left center;
  opacity: 0;
  animation: modalLineDraw 0.75s ease-out 0.08s forwards;
}

@keyframes modalLineDraw {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.2);
    filter: blur(1px);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
    filter: blur(0);
  }
}

.reserve-desc {
  margin: 0 0 58px;
  font-size: 13px;
  line-height: 1.6;
  color: #6f7b91;
  text-align: left;
}

.reserve-qrcode {
  width: 128px;
  height: 128px;
  border-radius: 10px;
  margin: 0 auto 24px;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 4px rgba(43, 146, 255, 0.95),
    0 0 10px rgba(38, 160, 255, 0.85),
    0 0 14px rgba(38, 160, 255, 0.45),
    0 14px 16px rgba(11, 39, 86, 0.28);
  background: #fff url("img/code.jpg") center/cover no-repeat;
}

.reserve-modal__main h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  color: #111a38;
}

.reserve-contact {
  margin: 0;
  font-size: 16px;
  color: #1767d8;
  line-height: 1.4;
}

@media (max-width: 768px) {


  .site-header:not(.index-header) .nav-wrap,
  .site-header:not(.index-header) .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 14px !important;
  }

  .site-header .nav-wrap,
  .site-header .container {
    justify-content: flex-start;
    gap: 8px;
  }

  .site-header .brand {
    margin-right: auto;
  }

  .mobile-menu-btn {
    display: inline-flex;
    order: 3;
    position: relative;
    z-index: 1301;
  }

  .site-header .login-btn {
    display: inline-flex !important;
    order: 2;
  }

  .site-header .nav-wrap {
    position: relative;
    overflow: visible;
  }

  .site-header .container {
    position: relative;
    overflow: visible;
  }

  .site-header .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: auto;
    right: 12px;
    width: 200px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(190, 206, 236, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(19, 36, 71, 0.16);
    z-index: 1200;
    flex-direction: column;
    gap: 6px;
    transform:initial;
  }

  .site-header:not(.index-header) .main-nav {
    display: none !important;
    position: absolute !important;
    left: auto !important;
    right: 12px !important;
    transform: none !important;
    gap: 6px !important;
  }

  .site-header.mobile-open .main-nav {
    display: flex !important;
  }

  .site-header .main-nav > a,
  .site-header .main-nav .nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 42px;
    line-height: 42px;
    padding: 0 4px;
    font-size: 16px;
    color:#0b1538;
  }

  .site-header.index-header .main-nav > a.is-current,
  .site-header.index-header .nav-item.is-current .nav-trigger {
    color: #1f5dff !important;
    text-shadow: none !important;
  }

  .site-header .main-nav .nav-item {
    width: 100%;
  }

  .site-header .main-nav .product-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -100%;
    transform: translateY(8px);
    min-width: min(320px, calc(100vw - 48px));
    max-width: min(92vw, 320px);
    border-radius: 18px;
    border: 1px solid rgba(194, 213, 246, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(21, 37, 73, 0.22);
    max-height: none;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    padding: 14px 14px 12px;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .site-header .main-nav .product-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .shared-footer .footer-main {
    grid-template-columns: 1fr;
  }

  .shared-footer .footer-meta .container {
    min-height: auto;
    padding: 10px 0;
    display: grid;
    gap: 6px;
    justify-content: start;
  }

  .login-modal__panel {
    width: min(94vw, 500px);
    min-height: auto;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .login-modal__aside {
    display: none;
  }

  .login-modal__main {
    padding: 58px 22px 24px;
  }

  .login-modal__main h2 {
    font-size: 32px !important;
    margin-bottom: 16px;
  }

  .login-input,
  .login-submit {
    height: 46px;
  }

  .login-input input {
    font-size: 16px;
  }

  .login-submit {
    font-size: 18px;
  }

  .login-tip,
  .login-agree {
    font-size: 14px;
  }

  .reserve-modal__panel {
    width: min(94vw, 500px);
    min-height: auto;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .reserve-modal__aside {
    display: none;
  }

  .reserve-modal__main {
    padding: 58px 22px 28px;
  }

  .reserve-modal__main h2 {
    font-size: 24px !important;
    margin-bottom: 8px;
  }

  .reserve-desc {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .reserve-qrcode {
    width: 108px;
    height: 108px;
    margin-bottom: 10px;
  }

  .reserve-modal__main h4 {
    font-size: 18px;
  }

  .reserve-contact {
    font-size: 18px;
  }
}
