/* ==========================================================================
   NEXUS Layout — layout.css
   全站框架：页头 / 导航 / 抽屉 / 页脚 / 悬浮客服 / 返回顶部 / 移动端工具条 / Cookies
   ========================================================================== */

/* ==========================================================================
   Header — 顶部工具条
   ========================================================================== */

.nx-head {
  position: sticky;
  top: 0;
  z-index: var(--nx-z-header);
  background: var(--nx-white);
  border-bottom: 1px solid var(--nx-line);
  /* 顶栏高度（吸顶时通过 header 整体位移将其移出视口，仅触发合成，不引起重排） */
  --nx-bar-h: 46px;
  transition: transform var(--nx-dur) var(--nx-ease),
              box-shadow var(--nx-dur) var(--nx-ease),
              background-color var(--nx-dur) var(--nx-ease);
}

.nx-head.is-stuck {
  transform: translateY(calc(var(--nx-bar-h) * -1));
  box-shadow: 0 8px 30px -22px rgba(20, 22, 26, .5);
}

.nx-head__bar {
  position: relative;
  z-index: 2;
  height: var(--nx-bar-h);
  background: var(--nx-graphite);
  color: rgba(255, 255, 255, .78);
}

.nx-head__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-4);
  height: 46px;
}

.nx-head__contact {
  display: flex;
  align-items: center;
  gap: var(--nx-sp-4);
  min-width: 0;
  overflow: hidden;
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  transition: color var(--nx-dur-fast) var(--nx-ease);
}

.nx-pill .iconfont {
  font-size: 14px;
  color: var(--nx-amber-bright);
}

.nx-pill:hover { color: #fff; }

.nx-head__bar-right {
  display: flex;
  align-items: center;
  gap: var(--nx-sp-4);
}

/* 社交图标 */
.nx-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--nx-radius);
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-social__link:hover {
  background: var(--nx-amber);
  border-color: var(--nx-amber);
  color: #fff;
  transform: translateY(-2px);
}

/* 语言切换 */
.nx-lang { position: relative; }

.nx-lang__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--nx-radius);
  color: rgba(255, 255, 255, .84);
  font-size: 12.5px;
  cursor: pointer;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-lang__current:hover { border-color: rgba(255, 255, 255, .42); color: #fff; }

.nx-lang__current img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
}

.nx-lang__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--nx-dur-fast) var(--nx-ease);
}

.nx-lang.is-open .nx-lang__caret { transform: rotate(180deg); }

.nx-lang__drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 178px;
  padding: 6px;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--nx-dur) var(--nx-ease);
}

.nx-lang.is-open .nx-lang__drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nx-lang__drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--nx-ink-70);
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-lang__drop a img {
  width: 22px;
  height: 15px;
  object-fit: cover;
}

.nx-lang__drop a:hover {
  background: var(--nx-sand-deep);
  color: var(--nx-amber-deep);
  padding-left: 16px;
}

/* ==========================================================================
   Header — 主导航
   ========================================================================== */

.nx-head__main-inner {
  display: flex;
  align-items: center;
  gap: var(--nx-sp-5);
  height: var(--nx-header-h);
}

.nx-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  max-width: 240px;
}

.nx-logo img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--nx-dur-fast) var(--nx-ease);
}

.nx-logo:hover img { opacity: .82; }

.nx-nav { flex: 1; min-width: 0; }

.nx-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}

.nx-nav__item { position: relative; }

.nx-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--nx-font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--nx-ls-wide);
  text-transform: uppercase;
  color: var(--nx-ink);
  white-space: nowrap;
  position: relative;
}

.nx-nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1px;
  background: var(--nx-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--nx-dur) var(--nx-ease-out);
}

.nx-nav__item:hover > .nx-nav__link::after,
.nx-nav__link.inmenu_1::after { transform: scaleX(1); }

.nx-nav__item:hover > .nx-nav__link { color: var(--nx-amber-deep); }

/* 二级/三级下拉 */
.nx-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 236px;
  padding: 8px 0;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-top: 2px solid var(--nx-amber);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: all var(--nx-dur) var(--nx-ease);
}

.nx-nav__item:hover > .nx-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nx-sub__item { position: relative; }

.nx-sub__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--nx-ink-70);
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-sub__link:hover {
  background: var(--nx-sand-deep);
  color: var(--nx-ink);
  padding-left: 26px;
}

.nx-sub__item:hover > .nx-sub__link {
  background: var(--nx-sand-deep);
  color: var(--nx-amber-deep);
}

.nx-sub .nx-sub {
  top: -9px;
  left: 100%;
  transform: translate(10px, 0);
}

.nx-sub__item:hover > .nx-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

.nx-nav__caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .55;
}

/* 头部右侧操作区 */
.nx-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  color: var(--nx-ink);
  font-size: 17px;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-icon-btn:hover {
  background: var(--nx-graphite);
  border-color: var(--nx-graphite);
  color: #fff;
}

.nx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  cursor: pointer;
}

.nx-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--nx-ink);
  transition: transform var(--nx-dur) var(--nx-ease), opacity var(--nx-dur) var(--nx-ease);
}

.nx-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nx-burger.is-active span:nth-child(2) { opacity: 0; }
.nx-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 搜索面板 */
.nx-search-panel {
  overflow: hidden;
  max-height: 0;
  background: var(--nx-sand);
  border-top: 1px solid transparent;
  transition: max-height var(--nx-dur) var(--nx-ease), border-color var(--nx-dur) var(--nx-ease);
}

.nx-search-panel.is-open {
  max-height: 120px;
  border-top-color: var(--nx-line);
}

.nx-search-panel__inner {
  display: flex;
  align-items: center;
  gap: var(--nx-sp-4);
  padding: var(--nx-sp-5) 0;
}

.nx-search-panel form {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  border-bottom: 1px solid var(--nx-ink);
}

.nx-search-panel input[type="text"] {
  flex: 1;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  font-size: 16px;
}

.nx-search-panel input[type="text"]:focus { outline: none; }

.nx-search-panel input::placeholder {
  color: var(--nx-ink-45);
  letter-spacing: .04em;
}

.nx-search-panel button {
  padding: 12px 4px 12px 16px;
  font-size: 18px;
  color: var(--nx-ink);
  transition: color var(--nx-dur-fast) var(--nx-ease);
}

.nx-search-panel button:hover { color: var(--nx-amber); }

/* ==========================================================================
   Mobile drawer & mask
   ========================================================================== */

.nx-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, .58);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--nx-dur) var(--nx-ease);
  z-index: var(--nx-z-mask);
}

.nx-mask.is-open { opacity: 1; visibility: visible; }

/* 中等宽度：进一步压缩导航密度，避免栏目溢出压到 LOGO 上 */
@media (max-width: 1360px) {
  .nx-nav__list { gap: 0; }
  .nx-nav__link { padding: 10px 8px; font-size: 13px; letter-spacing: .02em; }
}

@media (max-width: 1200px) {
  .nx-head { --nx-bar-h: 40px; }
  .nx-head__bar-inner { height: 40px; }
  .nx-head__contact { display: none; }
  .nx-head__bar-right { margin-left: auto; }

  .nx-burger { display: flex; }

  .nx-head__actions { margin-left: auto; }

  .nx-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    background: var(--nx-white);
    border-left: 1px solid var(--nx-line);
    box-shadow: var(--nx-shadow-lg);
    transform: translateX(102%);
    transition: transform var(--nx-dur-slow) var(--nx-ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: var(--nx-z-drawer);
    padding: 76px 0 var(--nx-sp-7);
  }

  .nx-nav.is-open { transform: none; }

  .nx-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .nx-nav__item { border-bottom: 1px solid var(--nx-line-soft); }

  .nx-nav__link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .nx-nav__link::after { display: none; }

  .nx-nav__item > .nx-nav__link:active { color: var(--nx-amber-deep); }

  .nx-sub {
    position: static;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    display: none;
    background: #F2EFE8;
    padding: 0;
    list-style: none;
    margin: 0;
  }

  .nx-nav__item.is-open > .nx-sub,
  .nx-sub__item.is-open > .nx-sub { display: block; }

  .nx-sub__item { width: 100%; border-top: 1px solid rgba(0,0,0,.05); }

  .nx-sub__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px 14px 40px;
    font-size: 15px;
    line-height: 1.4;
    color: #14161A !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: normal;
    overflow: visible;
    text-decoration: none;
  }
  .nx-sub__link:hover,
  .nx-sub__link:active { padding-left: 40px; color: #8A5A16 !important; background: #E9E4D9; }

  .nx-sub .nx-sub { background: #EAE6DC; }
  .nx-sub .nx-sub .nx-sub__link {
    padding-left: 56px;
    font-size: 14px;
    color: #5A5F66 !important;
  }

  .nx-nav__link,
  .nx-sub__link { position: relative; }

  .nx-nav__caret {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: -12px -12px -12px 0;
    border: 0;
    background: transparent;
    opacity: 1;
    transition: transform var(--nx-dur) var(--nx-ease);
  }
  .nx-nav__caret::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -6px 0 0 -6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .nx-nav__item.is-open > .nx-nav__link .nx-nav__caret,
  .nx-sub__item.is-open > .nx-sub__link .nx-nav__caret { transform: rotate(180deg); }
}

@media (max-width: 640px) {
  .nx-head__main-inner { height: 68px; gap: var(--nx-sp-3); }
  .nx-logo img { max-height: 36px; }
  .nx-head__actions .nx-btn { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.nx-foot {
  position: relative;
  background: var(--nx-graphite);
  color: rgba(255, 255, 255, .7);
  margin-top: var(--nx-section);
}

/* 页脚 CTA 条 */
.nx-cta {
  position: relative;
  background: var(--nx-graphite-soft);
  border-top: 1px solid var(--nx-graphite-line);
  border-bottom: 1px solid var(--nx-graphite-line);
  overflow: hidden;
}

.nx-cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 120, 30, .18), transparent 68%);
  pointer-events: none;
}

.nx-cta__text {
  max-width: 760px;
}

.nx-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-6);
  padding-top: var(--nx-sp-6);
  padding-bottom: var(--nx-sp-6);
}

.nx-cta__title {
  font-size: var(--nx-fs-h3);
  color: #fff;
  margin-bottom: 6px;
}

.nx-cta__desc { font-size: 14px; color: rgba(255, 255, 255, .6); }

.nx-foot__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--nx-sp-7);
  padding: var(--nx-sp-8) 0 var(--nx-sp-7);
}

.nx-foot__col-title {
  font-size: 15px;
  color: #fff;
  margin-bottom: var(--nx-sp-5);
  padding-bottom: 12px;
  position: relative;
  letter-spacing: var(--nx-ls-wide);
}

.nx-foot__col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--nx-amber);
}

.nx-foot__brand-block { max-width: 380px; }

.nx-foot__logo {
  display: inline-block;
  margin-bottom: var(--nx-sp-4);
}

.nx-foot__logo img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nx-foot__intro {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .58);
  margin-bottom: var(--nx-sp-5);
}

.nx-foot__qr {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--nx-graphite-line);
  border-radius: var(--nx-radius);
}

.nx-foot__qr img {
  width: 108px;
  height: 108px;
  object-fit: cover;
}

.nx-foot__qr span {
  font-size: 11px;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  text-align: center;
}

.nx-foot__list li { margin-bottom: 11px; }

.nx-foot__list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, .66);
  padding-left: 14px;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-foot__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--nx-amber);
  transform: translateY(-50%);
  transition: width var(--nx-dur-fast) var(--nx-ease);
}

.nx-foot__list a:hover {
  color: #fff;
  padding-left: 22px;
}

.nx-foot__list a:hover::before { width: 14px; }

.nx-foot__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.nx-foot__contact-item .iconfont {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nx-graphite-line);
  border-radius: var(--nx-radius);
  color: var(--nx-amber);
  font-size: 15px;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.nx-foot__contact-item:hover .iconfont {
  background: var(--nx-amber);
  border-color: var(--nx-amber);
  color: #fff;
}

.nx-foot__contact-item span {
  display: block;
  font-size: 11px;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 2px;
}

.nx-foot__contact-item a,
.nx-foot__contact-item p {
  color: rgba(255, 255, 255, .82);
  word-break: break-word;
}

.nx-foot__contact-item a:hover { color: var(--nx-amber-bright); }

.nx-foot__bottom {
  border-top: 1px solid var(--nx-graphite-line);
  padding: var(--nx-sp-5) 0;
}

.nx-foot__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-4);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.nx-foot__bottom-inner a:hover { color: var(--nx-amber-bright); }

.nx-foot__social {
  display: flex;
  gap: 8px;
}

.nx-foot__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nx-graphite-line);
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  transition: all var(--nx-dur) var(--nx-ease);
}

.nx-foot__social a:hover {
  background: var(--nx-amber);
  border-color: var(--nx-amber);
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .nx-foot__main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--nx-sp-6);
  }
}

@media (max-width: 640px) {
  .nx-cta__inner { flex-direction: column; align-items: flex-start; }
  .nx-foot__main { grid-template-columns: 1fr; padding-top: var(--nx-sp-7); }
  .nx-foot__bottom-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   悬浮客服 / 返回顶部 / 移动端底部工具条
   ========================================================================== */

.nx-float {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: var(--nx-z-float);
}

.nx-float__toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-graphite);
  color: #fff;
  border-radius: var(--nx-radius) 0 0 var(--nx-radius);
  font-size: 19px;
  box-shadow: var(--nx-shadow-md);
  transition: background-color var(--nx-dur-fast) var(--nx-ease);
}

.nx-float__toggle:hover { background: var(--nx-amber); }

.nx-float__panel {
  position: absolute;
  right: -232px;
  top: 0;
  width: 232px;
  padding: var(--nx-sp-4);
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-right: 0;
  border-radius: var(--nx-radius) 0 0 var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  transition: right var(--nx-dur-slow) var(--nx-ease-out);
}

.nx-float.is-open .nx-float__panel { right: 46px; }

.nx-float__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  color: var(--nx-ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--nx-line);
}

.nx-float__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--nx-ink-70);
  border-bottom: 1px dashed var(--nx-line-soft);
}

.nx-float__item:last-child { border-bottom: 0; }

.nx-float__item i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-sand-deep);
  border-radius: var(--nx-radius);
}

.nx-float__item i img { max-width: 15px; max-height: 15px; }
.nx-float__item:hover { color: var(--nx-amber-deep); }
.nx-float__item:hover i { background: var(--nx-amber-wash); }

@media (max-width: 1024px) {
  .nx-float { display: none; }
}

.nx-totop {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  color: var(--nx-ink);
  font-size: 18px;
  box-shadow: var(--nx-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--nx-dur) var(--nx-ease);
  z-index: var(--nx-z-float);
}

.nx-totop.is-show { opacity: 1; visibility: visible; transform: none; }

.nx-totop:hover {
  background: var(--nx-graphite);
  border-color: var(--nx-graphite);
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .nx-totop { bottom: 78px; right: 14px; width: 40px; height: 40px; }
}

/* 移动端底部工具条 */
.nx-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nx-white);
  border-top: 1px solid var(--nx-line);
  box-shadow: 0 -6px 24px -18px rgba(20, 22, 26, .5);
  z-index: var(--nx-z-float);
}

.nx-tabbar__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nx-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  font-size: 11px;
  color: var(--nx-ink-70);
  transition: color var(--nx-dur-fast) var(--nx-ease);
}

.nx-tabbar__item .iconfont { font-size: 19px; line-height: 1; }

.nx-tabbar__item:active,
.nx-tabbar__item.is-active { color: var(--nx-amber); }

.nx-tabbar__item--quote {
  background: var(--nx-amber);
  color: #fff;
}

@media (max-width: 1024px) {
  .nx-tabbar { display: block; }
  body { padding-bottom: 58px; }
}

/* ==========================================================================
   Cookies 协议条
   ========================================================================== */

#cookies_agreement {
  position: fixed;
  z-index: var(--nx-z-cookie);
  left: var(--nx-sp-4);
  bottom: var(--nx-sp-4);
  width: min(420px, calc(100% - var(--nx-sp-4) * 2));
  padding: var(--nx-sp-5);
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-top: 3px solid var(--nx-amber);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-4);
  transition: opacity var(--nx-dur) var(--nx-ease), transform var(--nx-dur) var(--nx-ease);
}

#cookies_agreement.cookies-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding: var(--nx-sp-4) var(--nx-gutter);
}

#cookies_agreement .cookies-content {
  flex: 1;
  min-width: 220px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-ink-70);
}

#cookies_agreement .cookies-content a { color: var(--nx-amber-deep); text-decoration: underline; }

#cookies_agreement .cookies-button {
  padding: 12px 26px;
  background: var(--nx-graphite);
  color: #fff;
  border-radius: var(--nx-radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

#cookies_agreement .cookies-button:hover {
  background: var(--nx-amber);
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow-amber);
}

.cookies_none { display: none !important; }

.cookies-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--nx-z-cookie) + 1);
  background: rgba(20, 22, 26, .58);
  backdrop-filter: blur(3px);
}

.cookies-open-popup { display: block; }

.cookies-popup-box {
  width: min(920px, 90%);
  max-height: 80vh;
  margin: 6vh auto;
  padding: var(--nx-sp-6);
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  overflow-y: auto;
}

.cookies-popup-box-top {
  font-size: 26px;
  margin-bottom: var(--nx-sp-4);
  padding-bottom: var(--nx-sp-3);
  border-bottom: 1px solid var(--nx-line);
}

.cookies-popup-box-con {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--nx-ink-70);
}

.cookies-popup-box-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--nx-sp-5);
}

.cookies-popup-box-foot .cookies-button {
  padding: 13px 34px;
  background: var(--nx-graphite);
  color: #fff;
  border-radius: var(--nx-radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  transition: all var(--nx-dur-fast) var(--nx-ease);
}

.cookies-popup-box-foot .cookies-button:hover { background: var(--nx-amber); }

@media (max-width: 640px) {
  #cookies_agreement { padding: var(--nx-sp-4); }
  #cookies_agreement .cookies-button { width: 100%; }
  .cookies-popup-box { padding: var(--nx-sp-4); margin: 4vh auto; }
}
