:root {
  --primary-color: #128BED;
  --secondary-color: #FFA018;
  --text-dark: #0C0C0C;
  --text-gray: #818383;
  --text-light: #757981;
  --bg-light: #FFFFFF;
  --bg-gray: #F8FAFC;
  --shadow-light: rgba(38, 73, 197, 0.15);
  --transition-base: all 0.3s ease;
}

/* 基础样式 */
body {
  font-family: 'Noto Sans SC', sans-serif;
  scroll-behavior: smooth;
  padding-top: 100px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 背景样式 */
.bg-gradient-custom {
  /* 使用vector-design.png作为临时背景图片，实际应使用bg.png */
  background-image: url('../imgs/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-pattern {
  background: linear-gradient(9deg, rgb(48, 37, 181) 0%, rgb(18, 139, 237) 100%);
  background-size: cover;
  background-position: center;
}

/* 毛玻璃效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 页面容器 */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* 固定头部 */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* 使用bg.png作为背景图片 */
  background-image: url('../imgs/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px var(--shadow-light);
  z-index: 1000;
  transition: var(--transition-base);
  padding-left: 1rem;
  padding-right: 1rem;
  /* 默认字体颜色为白色 */
  color: white;
}

.fixed-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* 滚动后字体颜色为黑色 */
  color: black;
}

/* 导航链接在默认状态下的颜色 */
.fixed-header .nav-link {
  color: inherit;
  /* 继承父元素的白色 */
}

/* 导航链接在滚动状态下的颜色 */
.fixed-header.scrolled .nav-link {
  color: inherit;
  /* 继承父元素的黑色 */
}

/* 公司标题在默认状态下的颜色 */
.fixed-header h1 {
  color: inherit;
  /* 继承父元素的白色 */
}

/* 公司标题在滚动状态下的颜色 */
.fixed-header.scrolled h1 {
  color: inherit;
  /* 继承父元素的黑色 */
}

/* Logo在默认状态下的样式 */
.fixed-header .logo {
  filter: brightness(0) invert(1);
  /* 白色logo */
  transition: filter 0.3s ease;
}

/* Logo在滚动状态下的样式 */
.fixed-header.scrolled .logo {
  filter: brightness(0) invert(0);
  /* 黑色logo */
}

/* 返回顶部按钮 */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  background-color: #0f7bd6;
  transform: translateY(-5px);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 箭头图标 */
.arrow-icon {
  width: 48px;
  height: 48px;
  margin-top: 2rem;
  transition: var(--transition-base);
}

.arrow-icon:hover {
  transform: scale(1.1);
}

/* 导航链接样式 */
.nav-link {
  position: relative;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

/* 章节标题 */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* 联系我们按钮 */
.contact-button {
  border-radius: 50px;
  /* 圆角矩形 */
  transition: var(--transition-base);
  display: inline-block;
  text-decoration: none;
}

.contact-button:hover {
  transform: scale(1.05);
}

/* 技术卡片 */
.tech-card {
  transition: var(--transition-base);
  will-change: transform, box-shadow;
  text-decoration: none;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 列表文本 */
.list-text {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
}

.list-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .content-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fixed-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-wrapper {
    overflow-x: hidden;
  }

  /* 移动端优化 */
  body {
    padding-top: 80px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .tech-card {
    margin-bottom: 1rem;
  }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
  .content-container {
    max-width: 1400px;
  }
  
  /* 超大屏幕下导航栏和企业介绍栏的背景通栏处理 */
  .fixed-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc((100vw - 1920px) / -2);
  }
  
  .bg-gradient-custom {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc((100vw - 1920px) / -2);
  }
}
