/* 放各个页面相同样式的css代码：头，尾部 */

/* 版心 */
.container 
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
 /* ========== 头部导航【通栏】 ========== */
header {
    width: 100%;
    background-color: #0b1727;
    position: sticky;   /* 相当于首行冻结的效果 */
    top: 0;
    z-index: 999;
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
}

.logo img {
    height: 36px;
}
/* 导航居中 */
nav {
    flex: 1;   /*所有写了 flex:1 的子元素，平分父容器剩下的空间，宽度相等。*/
    text-align: center;
}
.main-nav > li {
    display: inline-block;
    position: relative;
    margin: 0 22px;
}

/* 给a开启相对定位，伪元素的参照 */
.main-nav > li > a {
  position: relative;
  padding: 8px 12px 8px 0; /* 腾出空间放三角，防止文字盖住 */
  font-size: 16px;
  color: #e8edf7;
  display: block;
}

/* 伪元素：倒三角 */
.main-nav > li:nth-child(2)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 70%;
  transform: translateY(-50%);
  /* 三角画法：透明边框技巧 */
  border: 4px solid transparent;
  border-top-color: #fff; /* 三角颜色，和导航文字一致 */
}

.main-nav > li > a {
    font-size: 16px;
    color: #e8edf7;
    padding: 8px 0;
    display: block;
}
.main-nav > li > a:hover {
    color: #3498ff;
}

.main-nav > li:nth-child(2):hover::after {
    border-top-color: #3498ff;   /* 三角颜色改变 */
}

/* 实现链接下面短划线，并且长度渐变 */
.main-nav > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #2563eb; /* 你的主题蓝色，可以改成别的色 */
  transition: width 0.3s ease; /* 动画时长，0.3s很舒服 */
}
.main-nav > li > a:hover::after {
  width: 100%;
}
/* Products下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: #121a2b;
    display: none;
}
.dropdown li a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    text-align: left;
    color: #c9d3e4;
}
.dropdown li a:hover {
    background-color: #1a273f;
    color: #3498ff;
}
.has-dropdown:hover .dropdown {
    display: block;
}
/* 移动端汉堡这里先省略，满足你【简单实现，允许部分变形】 */
@media (max-width:768px) {
    .header-wrap {
        flex-direction: column;
        gap:12px;
        padding:12px;
    }
    .main-nav > li {
        margin:0 8px;
    }
    .dropdown {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* ========== 底部【通栏】 ========== */
footer {
    width: 100%;
    background-color: #0b101b;
    color: #c9d3e4;
    padding: 60px 0 24px;
}
.footer-wrap {
    display: grid;
    /* grid-template-columns: 1.4fr 1fr 1fr 1.2fr; */   /*如果底部加上解决方案这个板块，就分成4份*/
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 40px;
    padding-left: 5%;
}
.footer-logo-box{
    padding-right: 18%;
}
.footer-logo img {
    height: 36px;
    margin-bottom:16px;
}
.footer-logo-box p {
    /* max-width: 350px; */
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
    color: #c9d3e4;
}

/* footer-title的文本属性可以继承给子孙 */
.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

/* 用子代选择器，只选择footer-links的儿子a,不选择孙子a */
.footer-links>a {
    display: block;
    color: #c9d3e4;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-links a:hover,.footer-contact a:hover {
    color: #3498ff;
}
.footer-contact p {
    font-size: 14px;
    line-height: 1.7;
    color: #c9d3e4;
    margin-bottom: 12px;
}
.footer-contact strong {
    color: #fff;
}
.copyright {
    width: 100%;
    margin-top: 48px;
    padding: 24px 5%;
    border-top: 1px solid #1c2840;
    font-size: 13px;
    color: #8892a5;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
@media (max-width: 991px) {
    .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .copyright {
        flex-direction: column;
        text-align: center;
    }
}