/* === 共享导航栏样式 === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 20px 0;
  transition: padding var(--transition);
}

.site-header.scrolled {
  padding-top: 8px;
}

.nav-outer {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.site-header.scrolled .nav-outer {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 20px;
  gap: 0;
}

/* 品牌区域 */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover .nav-site-name {
  color: var(--color-purple);
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-site-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-sub-title {
  font-size: 10px;
  color: var(--color-gray-400);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* 分隔线 */
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--color-gray-200);
  margin: 0 16px;
  flex-shrink: 0;
}

/* 中间菜单 */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-500);
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-black);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: var(--color-purple);
  font-weight: 600;
}

.nav-active-dot {
  width: 4px;
  height: 4px;
  background: var(--color-purple);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 右侧按钮组 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-500);
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-btn-ghost:hover {
  color: var(--color-gray-700);
  background: rgba(0, 0, 0, 0.04);
}

.nav-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-purple);
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(87, 61, 124, 0.25);
}

.nav-btn-solid:hover {
  background: var(--color-purple-light);
  color: var(--color-white);
  box-shadow: 0 3px 10px rgba(87, 61, 124, 0.3);
  transform: translateY(-1px);
}

.nav-btn-solid .nav-btn-icon {
  opacity: 0.9;
}

/* 汉堡按钮 — 2 条线 */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hamburger-bar {
  display: block;
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-bar:first-child {
  transform: translateY(-3px);
}

.hamburger-bar:last-child {
  transform: translateY(3px);
}

.nav-hamburger.is-active .hamburger-bar:first-child {
  transform: translateY(0) rotate(45deg);
}

.nav-hamburger.is-active .hamburger-bar:last-child {
  transform: translateY(0) rotate(-45deg);
}

/* 移动端遮罩 */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
}

/* 移动端抽屉 */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 280px;
  max-width: 80vw;
  background: var(--color-white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

.nav-drawer-body {
  padding: 80px 24px 32px;
}

.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer-list .nav-link {
  display: flex;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.nav-drawer-list .nav-link.active {
  color: var(--color-purple);
  background: rgba(87, 61, 124, 0.06);
  font-weight: 600;
}

.nav-drawer-divider {
  height: 1px;
  background: var(--color-gray-100);
  margin: 16px 0;
}

.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-drawer-btn-ghost:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
}

.nav-drawer-btn-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-purple);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(87, 61, 124, 0.25);
}

.nav-drawer-btn-solid:hover {
  background: var(--color-purple-light);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(87, 61, 124, 0.3);
}

/* 导航响应式 */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 12px 0;
  }

  .nav-container {
    height: 48px;
    padding: 0 14px;
  }

  .nav-outer {
    border-radius: 12px;
  }

  .nav-divider,
  .nav-center,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    position: relative;
  }

  .nav-drawer,
  .nav-overlay {
    display: block;
  }
}


/* === 共享页脚样式 === */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}

/* 顶部渐变线 */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 61, 124, 0.3), transparent);
}

.footer-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部区域：Logo + 品牌 + 联系方式 */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.footer-brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* 右侧联系方式 */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(87, 61, 124, 0.2);
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* 底部声明 */
.footer-notice {
  max-width: 100%;
}

.footer-notice-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
  margin: 0 0 8px;
}

.footer-notice-text:last-child {
  margin-bottom: 0;
}

.footer-notice-en {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-notice-text a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-notice-text a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* 页脚响应式 */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-contact {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 24px 0 16px;
  }
}
