/* 模桥 site chrome — Arena-quality sticky nav + footer */

.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transform: translateY(0);
  transition: transform .36s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}
.site-chrome.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  box-shadow: none;
}
.site-chrome:after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  z-index: -1;
  background: #ffffff9e;
  backdrop-filter: blur(26px) saturate(108%);
  -webkit-backdrop-filter: blur(26px) saturate(108%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.23,1,.32,1) .12s;
}
html[data-theme="dark"] .site-chrome:after { background: #0f1419cc; }
.site-chrome:has(.nav-links li.has-dropdown:hover):after,
.site-chrome:has(.nav-links li.has-dropdown:focus-within):after,
.site-chrome.is-menu-open:after {
  opacity: 1;
  transition-delay: 0ms;
}

.nav {
  width: 100%;
  margin: 0 auto;
  padding: calc((var(--nav-height) - 40px - 2px) / 2) 0;
  border: 1px solid transparent;
  background: transparent;
  transition: background .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.site-chrome.is-condensed .nav {
  border: 1px solid rgba(31, 41, 55, .08);
  background: #ffffff6b;
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow:
    inset 0 0 2px 1px #ffffff8c,
    inset 0 0 10px 4px #ffffff38,
    0 6px 24px #11111a0f,
    0 12px 40px #11111a0d;
}
html[data-theme="dark"] .site-chrome.is-condensed .nav {
  border-color: rgba(255,255,255,.08);
  background: #11182799;
  box-shadow: 0 6px 24px #0008;
}

.nav-inner {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding-inline: 32px;
}
@media (max-width: 1080px) { .nav-inner { padding-inline: 24px; gap: 16px; } }
@media (max-width: 880px) { .nav-inner { padding-inline: 16px; } }

.brand {
  order: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-symbol {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand-word {
  font-size: 15px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .brand-word { display: none; }
}

.nav-primary { order: 1; justify-self: start; }
.nav-side { order: 3; justify-self: end; display: inline-flex; align-items: center; gap: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-links .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  white-space: nowrap;
  background: transparent;
}
.nav-links a:hover,
.nav-links .nav-trigger:hover,
.nav-links a.is-current,
.nav-links li.has-dropdown:hover > .nav-trigger,
.nav-links li.has-dropdown:focus-within > .nav-trigger {
  color: var(--ink);
  background: #1f29370a;
}
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.is-current {
  background: #ffffff10;
}
.nav-links a.is-current { font-weight: 650; }
.dropdown-caret {
  width: 10px; height: 10px;
  opacity: .55;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(31,41,55,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 5;
}
html[data-theme="dark"] .nav-dropdown {
  background: #1a222c;
  border-color: var(--line);
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown,
.nav-links li.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: normal;
}
.nav-dropdown .dropdown-name {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 2px;
  color: var(--ink);
}
.nav-dropdown .dropdown-blurb {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle-bars {
  display: block; width: 16px; height: 10px; position: relative;
}
.nav-toggle-bars:before,
.nav-toggle-bars:after,
.nav-toggle-bars span {
  content: "";
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ink); border-radius: 1px;
}
.nav-toggle-bars:before { top: 0; }
.nav-toggle-bars span { top: 4.25px; }
.nav-toggle-bars:after { bottom: 0; }

.theme-toggle, .icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
}
.theme-toggle:hover, .icon-btn:hover { background: #1f29370a; color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff !important;
  font-size: 13px;
  font-weight: 650;
}
.nav-cta:hover { background: #111827; }
.nav-ghost {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-soft);
}
.nav-ghost:hover { color: var(--ink); background: #1f29370a; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px; right: 12px;
    padding: 12px;
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav-primary { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a, .nav-links .nav-trigger { height: 44px; }
  .nav-dropdown { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; opacity: 1; visibility: visible; display: none; }
  .nav-links li.has-dropdown.is-open .nav-dropdown,
  .nav-links li.has-dropdown:focus-within .nav-dropdown { display: block; }
  .brand { order: 2; }
  .nav-side { order: 3; }
  .nav-toggle { order: 1; }
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin-top: 0;
}
html[data-theme="dark"] .site-footer { background: #111827; }
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 64px 28px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .site-footer-inner { grid-template-columns: 1fr; padding: 40px 24px 24px; gap: 28px; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-qiao {
  width: 72px;
  height: auto;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand-text strong {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.footer-brand-text span {
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.footer-cols h5 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-cols ul { list-style: none; }
.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-cols a:hover { color: var(--ink); }
.foot-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 64px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
}
@media (max-width: 880px) { .foot-bar { padding: 12px 24px 24px; } }

/* Shared page shell */
.page-shell { padding: 96px 0 80px; }
.page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 1080px) { .page-wrap { padding: 0 32px; } .site-footer-inner { padding-inline: 32px; } .foot-bar { padding-inline: 32px; } }
@media (max-width: 880px) { .page-wrap { padding: 0 24px; } }
@media (max-width: 560px) { .page-wrap { padding: 0 16px; } }

html.chrome-hidden { --chrome-offset: 12px; }
