/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 科技风变量定义 */
:root {
  --primary: #165DFF;       /* 主色调：深空科技蓝 */
  --primary-light: #4080FF; /* 浅蓝 */
  --primary-dark: #0E42D2;  /* 深蓝 */
  --bg-dark: #0F172A;       /* 深空灰背景 */
  --bg-light: #F8FAFC;      /* 浅灰背景 */
  --text-main: #1E293B;     /* 主文本色 */
  --text-light: #FFFFFF;    /* 白色文本 */
  --text-secondary: #64748B;/* 次要文本色 */
  --border-light: #E2E8F0;  /* 浅色边框 */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* 基础阴影 */
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12); /* 悬浮阴影 */
  --radius: 8px;            /* 圆角 */
  --transition: all 0.3s ease; /* 过渡效果 */
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* 通用容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用标题样式 */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  color: var(--text-main);
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* 导航栏样式 */
.header {
  background-color: var(--text-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-list a {
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.nav-list a.active, .nav-list a:hover {
  color: var(--primary);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-list a:hover::after, .nav-list a.active::after {
  width: 100%;
}

/* 移动端导航（适配） */
.mobile-nav-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* 首页Banner样式 */
.banner {
  height: 680px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://picsum.photos/id/1/1920/1080") center/cover no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.banner h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.banner h1 span {
  color: var(--primary-light);
}

.banner p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

/* 卡片布局样式 */
.section {
  padding: 100px 0;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.card {
  background-color: var(--text-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 32px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* 联系信息样式 */
.contact-info {
  font-size: 18px;
  line-height: 2.2;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-info span {
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  width: 120px;
  text-align: left;
}

/* 地图容器 */
.map-box {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1000px;
}

/* 新闻列表样式 */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  padding: 32px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-item:hover {
  background-color: var(--bg-light);
  border-radius: var(--radius);
}

.news-title {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.news-date {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.news-desc {
  font-size: 16px;
  line-height: 1.7;
}

/* 技术研发页面样式 */
.tech-content {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.tech-content h3 {
  font-size: 24px;
  color: var(--primary);
  margin: 32px 0 16px;
}

.tech-content ul {
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 24px;
}

.tech-content li {
  margin-bottom: 8px;
}

/* 页脚样式 */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  margin-top: 50px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: #94A3B8;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #94A3B8;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .banner h1 {
    font-size: 42px;
  }
  .section-title {
    font-size: 30px;
  }
  .card-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
  }
  .mobile-nav-btn {
    display: block;
  }
  .banner {
    height: 500px;
    text-align: center;
  }
  .banner h1 {
    font-size: 32px;
  }
  .banner p {
    font-size: 16px;
  }
  .section {
    padding: 60px 0;
  }
  .card-container {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  .contact-info span {
    display: block;
    width: 100%;
    margin-bottom: 4px;
  }
}