/* styles.css */

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* 导航栏 */
.navbar {
  background-color: #f0f0f0; /* 浅灰色背景 */
  padding: 15px 0; /* 内边距 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.navbar-brand img {
  margin-right: 20px; /* Logo 和导航项之间的间距 */
}

.navbar-nav .nav-link {
  color: #333; /* 链接颜色 */
  font-size: 18px; /* 字体大小 */
  font-weight: 500; /* 字体粗细 */
  padding: 0 20px; /* 链接内边距 */
  transition: color 0.3s; /* 颜色过渡效果 */
}

.navbar-nav .nav-link:hover {
  color: #0d6efd; /* 鼠标悬停时的颜色 */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 轮播图 */
.carousel {
  height: 400px;
}

.carousel img {
  height: 100%;
  object-fit: cover;
}

/* 新闻部分 */
.news-section {
  padding: 60px 20px;
  background-color: #fff;
}

.news-card {
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.news-excerpt {
  color: #555;
}

/* 技术文章 */
.article-section {
  padding: 60px 20px;
  background-color: #f1f5ff;
}

.article-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.article-item {
  margin-bottom: 20px;
}

/* 服务模块 */
.service-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.service-box {
  border: 1px solid #e0e0e0;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.service-box:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 合作伙伴 */
.partner-section {
  padding: 40px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.partner-logo {
  max-height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-logo:hover {
  opacity: 1;
}

/* 页脚 */
footer {
  background-color: black;
  color: white;
  padding: 40px 20px;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  color: #cce0ff;
}