:root {
  --main-color: #164865;
  --accent-color: #1e73a8;
  --bg-color: #f7f7f7;
  --text-color: #333;
}
html{
  font-size: 16px;
}
body {
  margin: 0;
  font-family: "微软雅黑", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;

}
a {
  text-decoration: none;
}
.container {
  max-width: 1200px;
  min-width: 650px;
  margin: 0 auto;
  font-size: 18px;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content {
  min-height: calc(100vh - 60px);
  text-align: center;
  margin-top: 50px;
}
.flex-1 {
  flex: 1;
}

.header-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-image: url("../img/header_bg.jpg");
  background-size: cover;
  background-color: var(--bg-color);
}

.top-bar {
  width: calc(100% - 40px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #4d4d4d;
}

.top-bar .user-actions a {
  cursor: pointer;
  color: #4d4d4d;
  text-decoration: none;
}

.main-header {
  width: calc(100% - 40px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.logo {
  max-width: 300px;
  max-height: 60px;
  margin-right: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 347px;
  height: 40px;
}
.search-box .search-input {
  flex: 1;
  height: 100%;
  padding: 0 13px;
  border: none;
  border-radius: 20px 0 0 20px;
  outline: none;
}
.search-box .search-button {
  background-color: var(--accent-color);
  border: none;
  width: 53px;
  height: 100%;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  color: #999;
}
.search-box .search-button img {
  height: 21px;
}

.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
}
.logo-nav .logo {
  display: none;
  margin: 10px 0;
}
.nav-container {
  width: 100%;
  background-color: var(--main-color);
}
.navbar {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 40px;
  margin-left: 20px;
  cursor: pointer;
}
.navbar .menu {
  display: flex;
  list-style: none;
  align-items: start;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}
.menu .menu-item a,
.menu .menu-item .submenu a {
  text-decoration: none;
  padding: 15px 10px;
  color: white;
  display: block;
}
.menu .menu-item a:hover {
  background-color: var(--accent-color);
}

.menu .menu-item .submenu a {
  color: var(--accent-color);
}
.menu .menu-item .submenu a:hover {
  background-color: white;
  color: var(--main-color);
}

.nav-active{
  background-color: var(--accent-color);
  color: var(--main-color);
}

.menu .menu-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background-color: #eee;
}
.menu .menu-item {
  position: relative;
}
.menu .menu-item .submenu {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-80px, 25px);
  width: 90px;
  z-index: 5;
  font-size: 0.8rem;
}
.menu .menu-item .submenu::before {
  content: "▲";
  font-size: 20px;
  color: white;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(10px, -15px);
  z-index: 6;
}
.menu .menu-item .submenu li {
  list-style: none;
  border-bottom: none;
  position: relative;
  background-color: white;
}
.menu .menu-item .has-submenu::after {
  width: 0;
}
.menu .menu-item:hover > .submenu,
.menu .menu-item:focus > .submenu {
  display: block;
}

footer {
  width: calc(100% - 40px);
  padding: 35px 20px 0 20px;
  /*height: 230px;*/
  color: #999;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url("../img/footer_bg.jpg");
  background-size: cover;
  background-position: center;
}
.pc-about {
  display: block;
  width: 100%;
}
.pc-about .contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pc-about .contact .contact-content {
  display: flex;
  align-items: start;
  gap: 20px;
  flex-flow: row;
  justify-content: center;
  width: 100%;
  font-size: 0.9rem;
}
.about-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-qrcode img {
  width: 107px;
  height: 107px;
  background-color: white;
  padding: 5px;
  border: none;
  border-radius: 5px;
}
.about-qrcode .scan-tips {
  margin-top: 12px;
  color: white;
}
.pc-about .contact,
.copyright {
  position: relative;
  width: 100%;
  padding: 19px 0;
  text-align: center;
  font-size: 0.9rem;
}
.copyright-divider {
  width: 100%;
  height: 1px;
  background-color: #999;
}

/* 电脑版右侧悬浮图标 */
.floating-icons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}
.floating-icons .icon-item {
  width: 40px;
  height: 40px;
  background-color: white;
  margin-bottom: 10px;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  position: relative; /* 使 tooltip 相对于 icon-item 定位 */
}
.floating-icons .icon-item:hover {
  transform: scale(1.1);
}
.floating-icons .icon-item img {
  max-width: 70%;
}
.floating-icons .icon-item .tooltip {
  position: absolute;
  left: -150px;
  top: 50%;
  width: 133px;
  transform: translateY(-50%);
  background-color: white;
  color: var(--accent-color);
  padding: 18px 0;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; /* 防止 tooltip 干扰鼠标事件 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.floating-icons .icon-item .tooltip img {
  margin-bottom: 6px;
}
.floating-icons .icon-item .tooltip .scan-tips {
  margin-top: 7px;
  color: var(--accent-color);
}
.floating-icons .icon-item .tooltip .call-phone {
  font-size: 15px;
  font-weight: bold;
  margin-top: 13px;
}
.floating-icons .icon-item:hover .tooltip {
  opacity: 1;
}
.floating-icons #backToUp {
  display: none;
}
.floating-icons #backToUp.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 手机版底部按钮图标 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.tabbar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  font-size: 12px;
  background-color: var(--accent-color);
  color: white;
  height: 100%;
}
.tabbar .tab-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}
.tabbar .tab-item span {
  line-height: 1;
}
.tabbar .tab-item.active {
  background-color: var(--bg-color);
  color: #808080;
}

/* Mobile styles */
@media (max-width: 700px) {
  .floating-icons {
    display: none;
  }
  .tabbar {
    display: flex;
  }
}
.nav{
  height: 44px;
  background: #F5F7FA;
  line-height: 44px;
  margin-bottom: 40px;
}
.main{
  background: #fff;
}
.form-container {
  margin: 0 auto;
  padding: 20px 130px;
  border-radius: 8px;
  /*box-shadow: 0 2px 10px rgb(0 0 0 / 5%);*/
  background: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.8rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

.submit-btn,.login-btn {
  background: #1E73A8;
  color: white;
  padding: 12px 20px;
  border: none;
  width: 280px;
  height: 50px;
  border-radius: 25px;
  font-size: 1rem;
  letter-spacing: 1px;
}


.submit-btn:hover {
  background-color: #0056b3;
}

.submit-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: text-bottom;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-center {
  font-weight: bold;
  font-size: 1.3rem;
  color: #333333;
  text-align: center;
}

.news-content {
  margin: 0;
  margin-bottom: 40px;
}

.text-danger {
  color: red;
}

@media (max-width: 768px) {
  .form-container {
    padding: 15px;
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

#agree {
  width: 20px;
  height: 11px;
}

/* 验证码按钮样式 */
.sms-btn {
  padding: 10px 15px;
  /*border: 1px solid #007BFF;*/
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
  /*width: 120px;*/
  width: 280px;
  height: 50px;
  background: #333333;
  border-radius: 25px;
}

.sms-btn:disabled {
  background-color: #ddd;
  border-color: #ddd;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  gap: 10px;
}
.form-footer ,.ml-2{
  text-align: center;
  font-size: 0.9rem;
}
.form-footer .des-con{
  line-height: 48px;

}