/* =============================
   全局基础
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Microsoft Yahei", Arial, sans-serif;
  background: #f4f6f9; /* 更加柔和的背景色 */
  color: #444; /* 更深的文本颜色 */
  min-height: 100%;
  position: relative;
  padding-bottom: 50px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3; /* 深蓝色的悬浮效果 */
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================
   头部导航样式
============================= */
.site-header {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 添加阴影，使头部浮动 */
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.site-brand {
  font-size: 26px;
  font-weight: bold;
  color: #0056b3;
  transition: opacity 0.3s ease;
}

.site-brand a {
  text-decoration: none;
  color: inherit;
}

.site-brand a:hover {
  opacity: 0.8; /* 悬浮时不透明度变化 */
}

.navbar {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar a {
  font-size: 16px;
  color: #333;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  border-radius: 25px; /* 圆角按钮 */
}

.navbar a:hover {
  color: #ffffff;
  background: #0056b3; /* 悬浮时按钮背景色变为蓝色 */
}

.navbar a.btn-outlined {
  border: 1px solid #0056b3;
  color: #0056b3;
  padding: 8px 18px;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 25px;
}

.navbar a.btn-outlined:hover {
  background-color: #0056b3;
  color: white; /* 悬浮时按钮背景色为蓝色，文字变白 */
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}


/* =============================
   主体/卡片
============================= */
.main-container {
  margin-top: 50px;
  margin-bottom: 50px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card h2 {
  margin-bottom: 15px;
  color: #333;
  font-size: 22px;
  font-weight: 600;
}

/* =============================
   按钮/表单
============================= */
.btn {
  display: inline-block;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background: #0056b3;
  color: #fff;
}

.btn-primary:hover {
  background: #004085;
  transform: translate(-2px);
}

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

input[type="text"], input[type="password"] {
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: #0056b3;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.15);
}

input[type="text"]:invalid, input[type="password"]:invalid {
  border-color: #dc3545;
}

/* =============================
   授权查询卡片
============================= */
.check-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  margin-top: 50px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.check-card input[type="text"] {
  margin: 15px auto;
  display: block;
  width: 100%;
  max-width: 380px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 25px;
  background: #f4f6f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.check-card input[type="text"]:focus {
  border-color: #0056b3;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.15);
}

.btn-check {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background: #0056b3;
  color: #fff;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-check:hover {
  background: #004085;
  transform: translateY(-2px);
}

/* 结果提示 */
.result-message {
  margin-top: 20px;
  font-size: 16px;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.3s ease, transform 0.3s ease;
}

.result-ok {
  background-color: #d4edda;
  color: #155724;
}

.result-fail {
  background-color: #f8d7da;
  color: #721c24;
}

.result-unknown {
  background-color: #fff3cd;
  color: #856404;
}

/* =============================
   响应式
============================= */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .navbar {
    flex-wrap: wrap;
  }
}
/* =============================
   登录页面专用样式
============================= */
.check-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  margin-top: 50px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.check-card h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  font-weight: bold;
}

.check-card label {
  display: block;
  font-size: 16px;
  text-align: left;
  margin: 10px 0 5px;
  color: #333;
}

.check-card input[type="text"],
.check-card input[type="password"] {
  width: 100%;
  max-width: 420px; /* 设置输入框最大宽度 */
  padding: 14px 20px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.check-card input[type="text"]:focus,
.check-card input[type="password"]:focus {
  border-color: #0056b3;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.15);
}

.check-card button[type="submit"] {
  margin-top: 20px;
  padding: 14px 28px;
  font-size: 16px;
  background: #0056b3;
  color: #fff;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.check-card button[type="submit"]:hover {
  background: #004085;
  transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .check-card {
    padding: 20px;
    width: 90%; /* 让卡片在小屏幕设备上占用更多宽度 */
    margin-top: 30px;
  }

  .check-card h2 {
    font-size: 20px; /* 调整标题字体大小 */
  }

  .check-card input[type="text"],
  .check-card input[type="password"] {
    max-width: 100%;
  }

  .check-card button[type="submit"] {
    width: 100%; /* 按钮宽度在小屏设备上占满 */
  }
}



/* =============================
   域名授权查询页面专用样式
============================= */

/* 主要容器 */
.check-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  margin-top: 50px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box; /* 确保 padding 不影响宽度 */
}

/* 标题样式 */
.check-card h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  font-weight: bold;
}

/* 表单样式 */
.check-card form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;  /* 确保表单占满父容器 */
}

/* 输入框样式 */
.check-card input[type="text"] {
  width: 100%;
  max-width: 420px;  /* 限制输入框的最大宽度 */
  padding: 14px 20px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.check-card input[type="text"]:focus {
  border-color: #0056b3;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.15);
}

/* 按钮样式 */
.check-card button[type="submit"] {
  margin-top: 20px;
  padding: 14px 28px;
  font-size: 16px;
  background: #0056b3;
  color: #fff;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.check-card button[type="submit"]:hover {
  background: #004085;
  transform: translateY(-2px);
}

/* 结果消息样式 */
.result-message {
  margin-top: 20px;
  font-size: 16px;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* 各种结果状态的样式 */
.result-ok {
  background-color: #d4edda;
  color: #155724;
}

.result-fail {
  background-color: #f8d7da;
  color: #721c24;
}

.result-unknown {
  background-color: #fff3cd;
  color: #856404;
}

.result-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .check-card {
    padding: 20px;
    width: 90%;
    margin-top: 30px;
  }

  .check-card h2 {
    font-size: 20px;
  }

  .check-card input[type="text"] {
    max-width: 100%; /* 输入框在小屏幕上占满父容器 */
  }

  .check-card button[type="submit"] {
    width: 100%; /* 按钮宽度在小屏设备上占满 */
  }
}