@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1d2654;
  background: #f0f4ff;
}

.login-body {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

.login-shell {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.login-card {
  background: #fff;
  border: 1px solid #e4e8f6;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 29, 87, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f7ff;
  border: 1px solid #e4e8f6;
  padding: 8px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #2867dd;
}

.login-subtitle {
  font-size: 13px;
  color: #7a84ab;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.login-field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8def2;
  background: #f9fbff;
  font-size: 14px;
  font-family: inherit;
}

.login-field input:focus {
  outline: none;
  border-color: #6fb4ff;
  box-shadow: 0 0 0 3px rgba(111, 180, 255, 0.25);
}

.login-actions {
  display: flex;
  justify-content: flex-end;
}

.login-actions button {
  background: linear-gradient(120deg, #6fb4ff, #4375ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(67, 117, 255, 0.25);
}

.login-actions button:hover {
  transform: translateY(-1px);
}

.login-status {
  font-size: 13px;
  color: #6a708d;
}

.page-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 0 16px;
}

main {
  width: 100%;
  max-width: 1180px;
  padding: 32px 48px 64px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* 改为底部对齐 */
  gap: 16px;
  margin-bottom: 24px;
}

.company-name {
  font-size: 28px;
  font-weight: 700;
  flex: 1;
  letter-spacing: 0.08em;
  color: #2867dd; /* 改为与底部联系板块相同的颜色 */
  font-family: "Orbitron", "Microsoft YaHei", sans-serif;
  text-align: center;
  padding-bottom: 4px; /* 添加底部内边距以微调对齐 */
}

.top-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  border: 2px solid rgba(111, 180, 255, 0.4);
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end; /* 确保导航链接底部对齐 */
  padding-bottom: 4px; /* 与公司名称相同的底部内边距 */
}

nav a {
  color: #2867dd; /* 改为与底部联系板块相同的颜色 */
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  color: #1e5fb4; /* 悬停时使用稍深的蓝色 */
  border-color: #1e5fb4;
}

/* 修改轮播图区域 - 扁平化充满显示 */
.hero {
  background: transparent; /* 改为透明背景 */
  border: none; /* 去掉边框 */
  border-radius: 0; /* 改为直角 */
  padding: 0; /* 去掉内边距 */
  box-shadow: none; /* 去掉阴影 */
  margin-bottom: 32px; /* 添加底部外边距与其他内容分隔 */
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* 改为直角 */
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 400px; /* 稍微增加高度，使其更突出 */
  object-fit: cover;
  border-radius: 0; /* 改为直角 */
  display: block; /* 确保图片显示正常 */
}

/* 与网站主题色一致的蓝色指示器 */
.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(40, 103, 221, 0.4); /* 使用主题蓝色，40%透明度 */
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.is-active {
  background: #2867dd; /* 主题蓝色 */
  transform: scale(1.2);
}

.dot:hover {
  background: #1e5fb4; /* 稍深的蓝色 */
  transform: scale(1.1);
}

/* 扁平化风格的信息板块 - 直角边框 */
.info-section {
  margin-top: 32px;
  border-radius: 0; /* 改为直角 */
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(220px, 40%) 1fr;
  gap: 32px;
  align-items: center;
  /* 扁平化设计 - 移除阴影和边框 */
  box-shadow: none;
  border: none;
}

/* 公司简介 - 浅蓝色背景 */
#about {
  background-color: #e6f7ff;
}

/* 业务介绍 - 浅绿色背景 */
#business {
  background-color: #f6ffed;
}

/* 团队介绍 - 浅紫色背景 */
#team {
  background-color: #f9f0ff;
}

/* 联系我们 - 浅橙色背景 */
#contact {
  background-color: #fff7e6;
}

.info-section.reverse {
  grid-template-columns: 1fr minmax(220px, 40%);
}

.info-section img {
  width: 100%;
  border-radius: 0; /* 改为直角 */
  object-fit: cover;
}

.info-section h2 {
  margin-top: 0;
  color: #1d2654;
}

.info-section p {
  line-height: 1.6;
  margin: 0;
}

/* 联系我们板块样式 */
.contact-card {
  margin-top: 32px;
  border-radius: 0; /* 改为直角 */
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start; /* 顶部对齐 */
  /* 扁平化设计 - 移除阴影和边框 */
  box-shadow: none;
  border: none;
  position: relative; /* 为绝对定位子元素提供参考 */
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%; /* 确保左侧容器高度与右侧一致 */
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
  color: #2867dd;
  margin-bottom: 0;
}

.company-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 0; /* 改为直角 */
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px; /* 增加行间距 */
  flex-grow: 1; /* 让列表占据剩余空间 */
  justify-content: space-between; /* 在垂直方向上均匀分布 */
}

.contact-card li {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 0;
}

.contact-card li span {
  display: inline-block;
  width: 60px; /* 增加标签宽度 */
  color: #2c3e50; /* 更深的颜色 */
  font-weight: 600; /* 加粗 */
  margin-right: 12px;
  font-size: 15px;
  letter-spacing: 0.5px; /* 字母间距 */
}

.contact-card li:not(:first-child) {
  border-top: 1px solid rgba(0, 0, 0, 0.05); /* 添加分隔线 */
  padding-top: 16px;
}

.address-map-container {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.address-map {
  width: 100%;
  border-radius: 0; /* 改为直角 */
  object-fit: cover; /* 覆盖整个容器，保持比例 */
  align-self: stretch; /* 拉伸以填充容器高度 */
}

.site-footer {
  margin-top: 36px;
  text-align: center;
  color: #6a708d;
  font-size: 14px;
}

.cta-floating {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(14, 39, 106, 0.2);
  text-decoration: none;
  color: inherit;
  border: 2px solid #f3f5ff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.cta-floating span {
  font-weight: 700;
  padding: 12px;
}

.cta-floating img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.cta-floating:hover {
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 100px;
  }

  main {
    padding: 20px 16px 48px;
  }

  .top-nav {
    flex-direction: column;
    align-items: center;
  }

  .top-logo {
    width: 64px;
    height: 64px;
  }

  .company-name {
    width: 100%;
    font-size: 24px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0; /* 在移动设备上重置底部内边距 */
  }

  .info-section,
  .info-section.reverse,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  nav {
    flex-direction: column;
    gap: 8px;
    align-items: center; /* 在移动设备上居中对齐 */
  }

  .top-logo {
    width: 56px;
    height: 56px;
  }

  .company-name {
    font-size: 20px;
    letter-spacing: 0.04em;
    padding-bottom: 0; /* 在移动设备上重置底部内边距 */
  }

  nav a {
    width: 100%;
    border-bottom: 1px solid #eef0fb;
    padding-bottom: 8px;
    text-align: center; /* 在移动设备上居中对齐 */
  }

  /* 移动设备上的轮播图调整 */
  .hero {
    margin-bottom: 24px;
  }

  .slide img {
    height: 220px; /* 移动设备上适当调整高度 */
  }

  .dots {
    bottom: 12px; /* 移动设备上调整指示器位置 */
  }

  .info-section {
    padding: 20px;
  }

  .contact-card {
    padding: 20px;
  }
  
  .contact-card li {
    font-size: 15px;
    flex-direction: column;
  }
  
  .contact-card li span {
    width: 100%;
    margin-bottom: 4px;
  }

  .cta-floating {
    right: 12px;
    bottom: 12px;
    width: 130px;
  }
}
