/**
 * ==========================================================================
 * MS International | Mesoskin Beauty Skincare
 * Navigation & Footer Styles
 * ==========================================================================
 */

/* ==========================================================================
 * Navigation Bar — 固定顶部导航栏
 * 白色半透明毛玻璃效果
 * ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

/* 桌面导航链接列表 */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent);
}

/* 移动端汉堡菜单按钮（默认隐藏） */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* 移动端展开导航面板（全屏覆盖） */
.mobile-nav {
  display: none;
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav.active {
  display: flex !important;
  background: #ffffff !important;
  /* position: fixed !important; */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
}

.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* ==========================================================================
 * Footer — 页脚
 * 深色背景 + 四列网格
 * ========================================================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent);
}

/* 社交媒体图标 */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent);
}

/* 底部版权栏 */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
 * Responsive — 响应式适配
 * ========================================================================== */

/* ----- 平板（≤768px）----- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  /* 导航：隐藏桌面链接，显示汉堡按钮 */
  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
    position: absolute;
    right: 1.5rem;
    top: 25px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
    padding: 0.25rem 0.5rem;
    line-height: 1;
  }

  /* 移动端导航容器：确保布局正确 */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* 移动端导航面板 */
  .mobile-nav {
    top: 0;
    z-index: 9999;
    background: #ffffff;
  }

  /* 页脚单列居中 */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  /* 页脚合规声明允许换行 */
  .footer p[style*="white-space"] {
    white-space: normal !important;
    font-size: 12px !important;
    line-height: 1.6;
    padding: 12px 0 0 !important;
  }
}

/* ----- 手机（≤480px）----- */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  .mobile-menu-btn {
    right: 1rem;
    font-size: 1.3rem;
  }

  .mobile-nav {
    top: 0;
    padding: 1.5rem;
  }

  .mobile-nav a {
    font-size: 1rem;
  }

  .footer-section {
    padding: 0 0.5rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 14px;
  }
}
