18:06 2026/5/2218:06 2026/5/22* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 导航栏 */

header {
  background: #fff;
  color: #0066ff; /* 黑色字体 */
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 轻微阴影更好看 */
}
header,
header a,
header span,
header div {
  color: #0066ff !important;
}
.nav {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 45px;
  display: block;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-list a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}
.nav-list a:hover,
.nav-list a.active {
  color: #3498db;
}

/* 轮播图 */
.slider {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: #3498db;
}

/* 通用容器 */
.container {
  width: 1200px;
  margin: 50px auto;
}
.section-title {
  text-align: center;
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 30px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #3498db;
  margin: 10px auto 0;
}

/* 公司简介 */
.about-intro {
  display: flex;
  gap: 40px;
  align-items: center;
}
.intro-text {
  flex: 1;
  line-height: 1.8;
  color: #555;
}
.intro-img {
  flex: 1;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}
.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 行业方案中心 */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.solution-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.solution-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.solution-info {
  padding: 20px;
}
.solution-info h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}
.solution-info p {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

/* IT资讯新闻 */
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.news-item {
  display: flex;
  gap: 20px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 20px;
}
.news-img {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-text h4 {
  color: #2c3e50;
  margin-bottom: 8px;
}
.news-text p {
  color: #777;
  font-size: 14px;
  line-height: 1.5;
}

/* 底部 */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav, .container {
    width: 95%;
  }
  .nav-list {
    gap: 15px;
  }
  .about-intro {
    flex-direction: column;
  }
  .solution-grid {
    grid-template-columns: 1fr;
  }
  .news-list {
    grid-template-columns: 1fr;
  }
}
html {
  scroll-behavior: smooth;
}
.solution-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}
.solution-item {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
/* 新闻列表布局 */
#newsSection .news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

/* 新闻卡片基础样式 */
#newsSection .news-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* 图片大小 */
#newsSection .news-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* 文字部分默认只显示一行 */
#newsSection .news-text p {
  margin: 6px 0 0;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 默认只显示1行 */
  -webkit-box-orient: vertical;
  transition: all 0.3s;
}

/* ======================
   鼠标悬浮：凸显效果
======================= */
#newsSection .news-item:hover {
  transform: scale(1.03); /* 轻微放大 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 加深阴影 */
  border-color: #0066ff; /* 蓝色边框高亮 */
  z-index: 10;
}

/* ======================
   激活状态：显示完整内容
======================= */
#newsSection .news-item.active {
  background: #f8f9ff;
  border-color: #0066ff;
}
#newsSection .news-item.active .news-text p {
  -webkit-line-clamp: 999; /* 显示全部文字 */
  max-height: 500px;
}

/* 去掉链接默认下划线 */
.news-item {
  text-decoration: none;
  color: inherit;
}