/* 头部导航 */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  height: 82px;
  box-shadow: 0px 4px 16px 1px rgba(0, 0, 0, 0.1);
}

.header-scrolled {
  background-color: #fff;
  box-shadow: 0px 4px 16px 1px rgba(0, 0, 0, 0.1);
  height: 82px;
}

.header-scrolled .nav {
  height: 100%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 64px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  height: 100%;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
}



/* 导航 */
.nav-links {
  display: flex;
  align-items: center;
  flex-grow: 1;
  margin-left: 120px;
  position: relative;
  gap: 0;
}

.nav-links li {
  padding: 0 34px;
}

.nav-links li:hover {
  cursor: pointer;
}

.nav-links li a {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li:hover a,
.nav-active a {
  font-weight: 500;
  color: #2f318b;
}

.nav-links li:hover a::after,
.nav-active a::after {
  content: "";
  position: absolute;
  bottom: -33px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2f318b;
}

/* 用户信息 */
.user-section {
  display: flex;
  flex-shrink: 0;
}

.user-icon {
  color: #000000;
  font-size: 18px;
  padding: 0.8rem 1.2rem;
  border-radius: 0.4rem;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.user-icon img {
  vertical-align: middle;
}

#user-name {
  margin-left: 8px;
  color: #000000;
}

.layout {
  margin-left: 8px;
  color: #000000;
}

.layout:hover,
#user-name:hover {
  cursor: pointer;
  color: #0066cc;
}

.text-center {
  text-align: center;
}

/* 登录状态样式 */
.user-icon.logged-in {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 未登录状态样式 */
.user-icon.not-logged-in {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.user-icon.not-logged-in:hover {
  color: #0066cc;
}

/* 方法1：使用 Chrome 专有属性（推荐） */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  background-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* 联系我们 */
.contact {
  background: #0066cc;
  color: white;
  position: relative;
  overflow: hidden;
  background: url("/static/images/contact-bg.png") no-repeat center center;
  background-size: 100% 100%;
  height: 20rem;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('/static/images/contact-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
}

.contact-content {
  width: 70%;
  padding-top: 4rem;
  padding-bottom: 3rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.contact-left {
  flex: 1;
  padding-right: 4rem;
}

/* 全局消息提示样式 (Toast) */
.msg-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.msg-item {
  width: fit-content;
  max-width: min(88vw, 640px);
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  pointer-events: auto;
  animation: msgFadeIn 0.3s ease-out;
  border: 1px solid #dfe4ea;
  background-color: #ffffff;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.msg-item .msg-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-item .msg-text {
  color: #1f2329;
  width: auto;
}

.msg-item.success {
  border-color: #b7ebc6;
}

.msg-item.success .msg-icon {
  background: #e8f9ee;
  color: #17a34a;
}

.msg-item.error {
  border-color: #f5c2c7;
}

.msg-item.error .msg-icon {
  background: #fff0f1;
  color: #d93026;
}

.msg-item.warning {
  border-color: #ffe3a3;
}

.msg-item.warning .msg-icon {
  background: #fff8e8;
  color: #b77500;
}

.msg-item.info {
  border-color: #c9d8f5;
}

.msg-item.info .msg-icon {
  background: #edf4ff;
  color: #2a67d8;
}

@keyframes msgFadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.msg-item.fade-out {
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.28s ease-in;
}

.contact-left h2,
.contact-right h2 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.contact-left p,
.contact-right p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-btn {
  color: #fff;
  border: 1px solid white;
  font-size: 1.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 17rem;
  padding: 0.8rem 1rem;
  text-align: center;
  background: none;
}

.contact-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 0.04rem 1.2rem rgba(0, 0, 0, 0.15);
}

.contact-btn:hover a {
  color: #000;
}

.contact-right {
  text-align: left;
  position: relative;
  width: 40rem;
}

.phone-number {
  font-size: 3rem !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
  letter-spacing: 5px;
}


/* 页脚 */
/* 页脚 */
.footer {
  background: #121417;
  color: white;
  padding: 2.5rem 0 3.5rem;
}

.footer-box {
  margin: 0 auto;
  padding: 0 0 !important;
  display: flex;
  justify-content: space-between;
  /*width: auto !important;*/
}
.footer-box.container {
  width: 70% !important;
}

.footer-content {
  width: calc(100% - 24rem);
  display: flex;
  align-items: center;
}

.qrcode dt {
  width: 117px;
  height: 117px;
}

.qrcode img {
  width: 100%;
  height: 100%;
}

.footer-line {
  margin-right: 0 !important;
}

.footer-info {
  position: relative;
  top: -27px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-icon {
  font-size: 2.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  border-radius: 50px;
}

.footer-info-text span {
  display: block;
  font-size: 16px;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.footer-info-text p {
  font-size: 14px;
  margin: 0;
}

.footer-links {
  padding: 0;
  font-size: 1.6rem;
}

.footer-links span {
  color: #ccc;
  margin-right: 0;
}

.footer-links a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0066cc;
}

.footer-copyright {
  padding-top: 2rem;
  font-size: 1.4rem;
  color: #fff;
}

.footer-copyright p {
  margin: 0;
}

.qrcode-text {
  font-size: 14px;
  margin-top: 10px;
}



/* 视频弹窗样式 */
.video-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.dialog-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

.close-btn:hover {
  color: #fff;
}

.video-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*********** 登录弹窗 (仿抖音风格) **********/
#loginModal {
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 8888;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#loginModal .modal-content {
  max-width: 700px;
  padding: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-height: 350px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(380px, 1.2fr) minmax(320px, 1fr);
}

#loginModal .modal-content .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  z-index: 10;
}

#loginModal .modal-content .close:hover {
  cursor: pointer;
  color: #fff;
}

.login-left {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #f0f0f0;
  width: 100%;
  height: 100%;
}

.login-left img {
  width: 100%;
  object-fit: fill;
  margin: 0;
  padding: 0;
  height: 100%;
}

.login-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h3 {
  margin-bottom: 30px;
  font-size: 22px;
  color: #333;
  font-weight: bold;
  text-align: center;
}

.login-right .form-group {
  margin-bottom: 20px;
}

.form-group-box {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.form-control {
  padding: 10px 10px;
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 100%;
}

.login_box {
  display: flex;
  gap: 2rem;
}

.login_obn {
  width: 100%;
  padding: 10px 10px;
  background: #1164D5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.login_obn:hover {
  cursor: pointer;
  opacity: .85;
}

.login-proto {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.login_obn__cancel {}

/* 响应式调整 */
@media (max-width: 767px) {
  .logo {
      display: none;
  }

  .user-section {
      display: none !important;
  }

  .header {
      height: 62px;
  }

  .nav {
      padding: 0 30px;
  }

  .nav-links {
      margin-left: 0;
  }

  .nav-links li {
      /* padding: 0 5px; */
  }

  .nav-links li a {
      font-size: 14px;
  }

  .nav-links li:hover a::after,
  .nav-active a::after {
      bottom: -22px;
  }

  .dialog-content {
      width: 95%;
  }

  #loginModal .modal-content {
      flex-direction: column;
      width: 95% !important;
      min-height: auto;
  }

  #loginModal .login-left {
      display: none;
  }

  #loginModal .login-right {
      padding: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .logo {
      display: none;
  }

  .header {
      height: 62px;
  }

  .nav {
      padding: 0 30px;
  }

  .nav-links {
      margin-left: 0;
  }

  .nav-links li {
      padding: 0 10px;
  }

  .nav-links li a {
      font-size: 14px;
  }

  .nav-links li:hover a::after,
  .nav-active a::after {
      bottom: -22px !important;
  }

  .user-icon {
      font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .header {
      height: 62px;
  }

  .nav {
      padding: 0 30px;
  }

  .nav-links {
      margin-left: 50px;
  }

  .nav-links li {
      padding: 0 5px;
  }

  .nav-links li a {
      font-size: 16px;
  }

  .nav-links li:hover a::after,
  .nav-active a::after {
      bottom: -18px  !important;
  }

  .user-icon {
      font-size: 16px;
  }
}

@media (min-width: 1440px) and (max-width: 1900px) {
  .header {
      height: 72px;
  }

  .nav {
      padding: 0 50px;
  }

  .nav-links li {
      padding: 0 20px;
  }

  .nav-links li:hover a::after,
  .nav-active a::after {
      bottom: -28px;
  }
}

@media (min-width: 2560px) and (max-width: 3839px) {
  .header {
      height: 92px;
  }

  .nav {
      padding: 0 70px;
  }

  .nav-links {
      margin-left: 150px;
  }

  .nav-links li {
      padding: 0 50px;
  }

  .nav-links li a {
      font-size: 20px;
  }

  .nav-links li:hover a::after,
  .nav-active a::after {
      bottom: -34px;
  }

  .user-icon {
      font-size: 20px;
  }
}
