/* styles/style.css */
/* 导航栏整体样式 */
.navbar {
  position: sticky;
  box-sizing: border-box; /* 关键！防止 padding 超出 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: #f9fafc; /* 略深于页面背景，形成对比 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}
.nav-brand {
  font-weight: bold;
  color: #007bff;
  margin-right: auto; /* 推到左边 */
  display: inline-block;
  font-size: 1.4rem;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-right a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-right a.active {
  color: #007bff;
  font-weight: 600;
}

.nav-right a:hover {
  color: #0056b3;
}

.nav-right a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}

.nav-right a:hover::after {
  width: 100%;
}

.page-body {
  margin: 0;
}

/* 或者加个红色点缀（如登录按钮） */
.nav-right a[href="auth.html"] {
  color: #dc3545; /* 红色 */
}
.nav-right a[href="auth.html"]:hover {
  color: #c82333;
}

.home-intro-blue {
  color: #999;
  font-size: 1.4rem;
}

.home-intro-gray {
  color: #999;
}
.content {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 80px; /* 防止内容被导航栏遮挡 */
  padding: 20px;
}
.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.login-form button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.login-form a {
  color: #007bff;
  text-decoration: none;
  margin-top: 12px;
  display: block;
}

