/* 现代化优化样式 */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 优化过渡效果 */
a, button, .nav li, .more, .pro dl {
  transition: all 0.3s ease;
}

/* 改进导航悬停效果 */
.head .nav li a {
  position: relative;
  overflow: hidden;
}

.head .nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #FFC000;
  transition: width 0.3s ease;
}

.head .nav li:hover a::after {
  width: 100%;
}

/* 改进卡片样式 */
.pro dl {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pro dl:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.pro dl dt {
  border: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.pro dl dt img {
  transition: transform 0.3s ease;
}

.pro dl:hover dt img {
  transform: scale(1.05);
}

/* 改进按钮样式 */
.more {
  border-radius: 4px;
  background: linear-gradient(135deg, #0085E3 0%, #0065E9 100%);
  color: white !important;
  border: none;
  padding: 8px 20px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.more:hover {
  background: linear-gradient(135deg, #0065E9 0%, #0055C9 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 新闻卡片优化 */
.news dl {
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-bottom: none;
  margin-bottom: 20px;
}

.news dl:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.news dl dt {
  border-radius: 8px;
  overflow: hidden;
  border: none;
}

.news dl dt img {
  transition: transform 0.3s ease;
}

.news dl:hover dt img {
  transform: scale(1.05);
}

/* 客户案例优化 */
.friend ul li {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: white;
  border: none;
}

.friend ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.friend ul li img {
  transition: transform 0.3s ease;
}

.friend ul li:hover img {
  transform: scale(1.1);
}

/* 优化侧边栏 */
.scd_l {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.scd_l .s_nav {
  border: none;
}

.scd_l .s_nav li {
  border-bottom: 1px solid #f0f0f0;
}

.scd_l .s_nav li:last-child {
  border-bottom: none;
}

.scd_l .s_nav li a {
  transition: all 0.3s ease;
  position: relative;
}

.scd_l .s_nav li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #0099FF;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.scd_l .s_nav li.now a::before,
.scd_l .s_nav li:hover a::before {
  transform: scaleY(1);
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* 优化页脚 */
.f_bg {
  background: linear-gradient(135deg, #414244 0%, #2a2b2d 100%);
}

/* 添加加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pro dl,
.news dl,
.friend ul li {
  animation: fadeIn 0.6s ease backwards;
}

.pro dl:nth-child(2) { animation-delay: 0.1s; }
.pro dl:nth-child(3) { animation-delay: 0.2s; }
.pro dl:nth-child(4) { animation-delay: 0.3s; }
.pro dl:nth-child(5) { animation-delay: 0.4s; }
.pro dl:nth-child(6) { animation-delay: 0.5s; }

/* 优化文字可读性 */
.about {
  line-height: 1.8;
}

.about h2 {
  color: #0065E9;
  margin: 30px 0 20px;
  font-size: 28px;
}

.about h3 {
  color: #333;
  margin: 25px 0 15px;
  font-size: 20px;
  border-left: 4px solid #FFC000;
  padding-left: 12px;
}

.about ul {
  list-style: none;
  padding-left: 20px;
}

.about ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.about ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0065E9;
  font-weight: bold;
}

/* 优化表单元素 */
input, textarea, select {
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 10px;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #0065E9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 101, 233, 0.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .scd {
    flex-direction: column;
  }
  
  .scd_l {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  
  .scd_r {
    width: 100%;
  }
  
  .pro dl {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .news dl dt,
  .news dl dd {
    width: 100%;
    float: none;
  }
  
  .friend ul li {
    width: calc(50% - 10px);
    margin-right: 20px;
  }
  
  .friend ul li:nth-child(2n) {
    margin-right: 0;
  }
}

/* 优化加载性能 */
.banner img,
.banner_s img {
  display: block;
  width: 100%;
  height: auto;
}

/* 添加焦点样式 */
a:focus {
  outline: 2px solid #0065E9;
  outline-offset: 2px;
}

/* 优化打印样式 */
@media print {
  .header, .footer, .nav_m, .scd_l {
    display: none;
  }
  
  .scd_r {
    width: 100%;
  }
}