* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
}

/* 顶部 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
}

/* 加宽容器，整体靠左 */
.header-inner {
  max-width: 1400px;
  margin: 0;
  padding: 0 48px;
  height: 72px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
}

/* Logo */
.logo a {
  display: inline-block;
  color: #111111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 48px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: inline-block;
  color: #333333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px;
  transition: color 0.25s ease;
}

/* hover：文字变蓝，底部细线展开 */
.nav-list a:hover {
  color: #1677ff;
}

.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* 下划线动画 */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 2px;
  background-color: #1677ff;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* 当前页激活态：始终显示蓝色下划线 */
.nav-list a.active {
  color: #1677ff;
}

.nav-list a.active::after {
  transform: scaleX(1);
}

/* 汉堡按钮 */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #111111;
  cursor: pointer;
}

/* 主体内容 */
main {
  max-width: 1400px;
  margin: 0;
  padding: 40px 48px;
}

/* 移动端 */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 24px;
    height: 64px;
    gap: 20px;
  }

  .logo a {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 12px;
  }

  .nav-list a {
    padding: 10px 12px;
  }

  .nav-list a::after {
    left: 12px;
    right: 12px;
    bottom: 2px;
  }
}
