/* 顶部导航 + 页脚 + App 浮层 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(11, 58, 103, 0.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--brand-deep) !important;
  font-weight: 700;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 48px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.brand-text h3,
.brand-text strong {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-menu a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--brand);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-actions .btn {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links ul,
.footer-contact ul {
  display: grid;
  gap: 0.55rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  line-height: 1.45;
}

.footer-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.app-qr-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: min(220px, calc(100vw - 2rem));
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.app-qr-float-title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.app-qr-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.app-qr-item {
  text-align: center;
}

.app-qr-item canvas {
  width: 84px !important;
  height: 84px !important;
  margin: 0 auto;
  border-radius: 6px;
}

.app-qr-label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 600;
}

.app-qr-version {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.app-qr-version.is-error {
  color: #999;
}
