/* ============================================================
   layout.css — 顶部通栏、导航、页脚
   ============================================================ */

/* ---------- 顶部信息通栏 ---------- */
.topbar {
  background: linear-gradient(90deg, #091320 0%, #123048 50%, #091320 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.topbar__item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.75;
}

a.topbar__item:hover { color: #fff; }
a.topbar__item:hover svg { opacity: 1; }

.topbar__right { display: flex; gap: 22px; }

@media (max-width: 768px) {
  .topbar__right .topbar__item--hours { display: none; }
}

@media (max-width: 480px) {
  .topbar__inner { justify-content: center; }
  .topbar__left { display: none; }
}

/* ---------- 主导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base), backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: rgba(12, 27, 42, 0.07);
  box-shadow: var(--shadow-nav);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  white-space: nowrap;
}

.navbar__logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 134, 246, 0.35));
}

.navbar__logo small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu__link {
  position: relative;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), background var(--transition-base);
}

.nav-menu__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-menu__link:hover {
  color: var(--color-primary-deep);
  background: rgba(0, 134, 246, 0.05);
}

.nav-menu__link:hover::after { width: 22px; }

.nav-menu__link.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-menu__link.is-active::after { width: 26px; }

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0, 134, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.03);
}

.navbar__cta svg { width: 16px; height: 16px; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}

.nav-toggle:hover { background: rgba(0, 134, 246, 0.06); }

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar__cta { display: none; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 330px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: calc(var(--header-height) + 32px) 20px 24px;
    border-radius: 20px 0 0 20px;
    box-shadow: -24px 0 60px -20px rgba(12, 27, 42, 0.35);
    transform: translateX(100%);
    transition: transform 0.36s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.is-open { transform: translateX(0); }

  .nav-menu__link {
    display: block;
    padding: 16px 14px;
    font-size: 1rem;
    border-radius: 10px;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-menu__link::after { display: none; }

  .nav-menu__link.is-active {
    background: var(--color-primary-tint);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 26, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 998;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero 页面顶部透明导航：未滚动时文字白色 */
body.has-hero .header:not(.is-scrolled) .navbar__logo,
body.has-hero .header:not(.is-scrolled) .nav-menu__link {
  color: #fff;
}

body.has-hero .header:not(.is-scrolled) .navbar__logo small { color: rgba(255, 255, 255, 0.7); }

body.has-hero .header:not(.is-scrolled) .nav-menu__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body.has-hero .header:not(.is-scrolled) .nav-menu__link::after {
  background: #fff;
}

body.has-hero .header:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

body.has-hero .header:not(.is-scrolled) .navbar__logo svg {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
  body.has-hero .header:not(.is-scrolled) .nav-menu { color: var(--color-text-secondary); }
  body.has-hero .header:not(.is-scrolled) .nav-menu__link { color: var(--color-text-secondary); }
  body.has-hero .header:not(.is-scrolled) .nav-menu__link.is-active {
    color: var(--color-primary);
  }
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  background:
    radial-gradient(1100px 480px at 12% -18%, rgba(0, 134, 246, 0.28), transparent 62%),
    radial-gradient(800px 400px at 92% 8%, rgba(255, 138, 31, 0.12), transparent 60%),
    linear-gradient(180deg, #0B1622 0%, #070E17 100%);
  color: rgba(255, 255, 255, 0.62);
  padding: 76px 0 0;
  font-size: 0.875rem;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand-line);
  opacity: 0.9;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding-bottom: 52px;
}

.footer__brand .navbar__logo { color: #fff; margin-bottom: 18px; }
.footer__brand .navbar__logo small { color: rgba(255, 255, 255, 0.5); }
.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 330px;
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer__title {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.footer__list li { margin-bottom: 11px; }

.footer__list a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

.footer__list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer__contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--color-primary-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer { padding-top: 56px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
