/*鼠标悬停显示下拉菜单的 CSS*/
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.dropdown-menu {
  transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
}
.navbar {
  background-color: #002b5e;
}
.navbar-brand {
  font-weight: bold;
}
.navbar-nav .nav-link {
  color: #fff !important;
}
/*鼠标悬停显示下拉菜单的 CSS end*/
/*背景图*/
.banner {
  width: 100%;
  height: 400px; /* 你可以根据图像比例调整高度 */
  background: url("../images/9944.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}

.banner-text {
  color: white;
  padding-left: 80px; /* 距离左侧 */
}

.banner-text h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: 2px;
}

.banner-text h1 {
  font-size: 48px;
  margin: 10px 0 0;
  font-weight: bold;
  line-height: 1.2;
}

/*  footer */
footer {
  background-color: white;
  color: black;
  padding: 2rem 0;
}

footer a {
  color: black;
  text-decoration: none;
}

footer a:hover {
  color: blue;
}

footer h5 {
  color: rgb(64, 64, 195); /* 小标题变蓝 */
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

/* 内容块之间加一条美观的分隔线 */
footer .col-md-3 {
  border-right: 1px solid #ccc;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

footer .col-md-3:last-child {
  border-right: none;
}

/* 加一点呼吸感 */
footer ul {
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
}
/* 页脚*/
#footer {
  background-color: #2e5980; /* 深蓝背景 */
  color: white; /* 白色文字 */
  text-align: center; /* 文字居中 */
  padding: 15px 0; /* 上下内边距 */
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* 内容*/
.container1 {
  max-width: 720px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px 40px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}
p.notice {
  font-size: 16px;
  color: #004080;
  border-left: 5px solid #0074d9;
  padding-left: 15px;
  margin-bottom: 30px;
  white-space: pre-line;
}
h2 {
  color: #004080;
  border-bottom: 2px solid #0074d9;
  padding-bottom: 6px;
  margin-bottom: 20px;
  font-weight: 700;
}
.privacy-text {
  font-size: 15px;
  color: #333;
  white-space: pre-line; /* 换行生效 */
}
.important {
  color: #d60000;
  font-weight: 700;
}
/* table*/
.contact-wrapper {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  font-family: "Helvetica Neue", sans-serif;
}

.contact-form .form-group {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: nowrap; /* 禁止子项换行（核心） */
}

.contact-form label {
  /* 统一宽度设置 */
  width: 180px; /* 根据最长文本调整 */
  min-width: 180px; /* 固定最小宽度 */
  white-space: nowrap; /* 强制文本同行（关键） */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 溢出显示省略号（可选） */

  /* 以下为原有样式 */
  background-color: #6c63ff;
  color: white;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 6px 6px 0;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6c63ff;
  background-color: #f9f9ff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  text-align: right;
}

.form-submit input[type="submit"] {
  background-color: #6c63ff;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.form-submit input[type="submit"]:hover {
  background-color: #554ee0;
}
/* 控制与上文的间距 */
.agreement-container {
  margin-top: 10px; /* 控制与上文的间距 */
  display: flex;
  align-items: center;
}

/* Toast 容器 */
.toast-message {
  display: none;
  position: fixed;
  top: 30px; /* 距离顶部 */
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #f44336;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
  font-size: 16px;
  text-align: center;

  max-width: 90%;    /* 在小屏幕时不会超出屏幕 */
  word-wrap: break-word; /* 超长内容换行 */
}

/* 针对移动端（小于 480px 屏幕宽度） */
@media (max-width: 480px) {
  .toast-message {
    font-size: 14px;
    padding: 10px 15px;
  }
}
