/* ======================================
   山东荣翔工程咨询 —— 全部独立样式
   你所有修改都在这里！
====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Inter", sans-serif;
    color: #333;
    background: #F5F7FA;
    line-height: 1.6;
  }
  
  a {
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
  }
  
  li{
    list-style: none;
  }

  .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* 导航 */
  #navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: 0.3s;
  }
  
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  
  
  .logo img{
    height: 80px;
  }

  .nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
  }
  .nav-menu .nav-sy{
    display: flex;
    height: 100%;
  }
  .nav-menu .nav-sy>li{
    position: relative;
    line-height: 80px;
    padding:0 20px ;
  }
  .nav-menu .nav-sy>li>a{
    color: white;
    font-size: 18px;
  }
  .nav-menu .nav-sy li .submenu{
    position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  z-index: 999;
  
  /* 动画核心：淡入+下滑 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .nav-menu .nav-sy li .submenu li{
    line-height: 20px;
  }

  .nav-menu .nav-sy li .submenu::before{
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 0;
    height: 0px;
    margin-left: -6px;
    border-style: solid;
    border-width: 6px;
    border-color: #fff #fff transparent transparent;
    -webkit-transform: rotate(-45deg);
    -webkit-box-shadow: 2px -2px 2px rgba(100, 100, 100, .1);
  }
  /* 二级菜单项 */
.submenu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
  text-align: center;
}

/* 二级菜单悬浮 */
.submenu li:hover a {
  color: #0F4C81;
}


/* 触发显示二级菜单 */
.nav-menu .nav-sy  > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width:1400px) {
  .nav-menu .nav-sy>li{
    padding: 0 6px;
  }
}

  

  
  .tel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 18px;
  }
  @media (max-width:1200px) {
    .tel{
      display: none;
    }
  }
  
  /* 手机菜单按钮 */
  #menuBtn {
    display: none;
    background: none;
    border: none;
    color: #090909;
    font-size: 28px;
    cursor: pointer;
  }
  #menuBtn img{
    width: 20px;
  }
  
  #mobileMenu {
    display: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  #mobileMenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 16px;
  }
  
  #mobileMenu .tel {
    padding: 12px 20px;
    color: #0F4C81;
  }
  
  /* 滚动后导航变白 */
  .nav-scroll {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .nav-scroll .logo,
  .nav-scroll .nav-menu a,
  .nav-scroll .tel {
    color: #333 !important;
  }
  
  /* Banner */
  #home {
    padding-top: 80px;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
  }
  
  #home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0.2);
  }
  
  .banner-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .banner-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }
  
  
  .btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn1 {
    background: #015e99;
    color: white;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 18px;
  }
  
  .btn2 {
    background: white;
    color: #0F4C81;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 18px;
  }
  
  /* 通用区块 */
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .section-title h2 {
    font-size: 36px;
    color: #0F4C81;
    margin-bottom: 12px;
  }
  
  .title-line {
    width: 60px;
    height: 3px;
    background: #E6A23C;
    margin: 0 auto;
  }
  @media (max-width:992px) {
    .section{
      padding: 10px 0;
    }
    #home{
      height: auto;
    }
    
  }


  
  /* 关于我们 */
  .about-row {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  
  .about-left, .about-right {
    flex: 1;
    width: 100%;
  }
  
  .about-right h3 {
    font-size: 26px;
    margin-bottom: 16px;
    text-align: center;
  }
  
  .about-right p {
    font-size: 17px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-indent: 2rem;
  }
  
 
.about-scroll {
    width: 100%;
    height: 260px;
    padding: 10px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.about-scroll-list {
    display: flex;
    width: 2240px;
}

.about-scroll-list a {
    position: relative;
    display: block;
    margin-right: 20px;
}

.about-scroll-list a img {
    display: block;
    width: 100%;
    height: 100%;
}

.about-scroll-list a p {
    display: block;
    position: absolute;
    left: 0;
    bottom: 65px;
    width: 100%;
    font-size: 18px;
    line-height: 42px;
    color: #333;
    text-align: center;
    background-color: rgba(255,255,255,0.7);
}
  
  /* 业务领域 */
  .business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .biz-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
  }
  
  .biz-card i {
    font-size: 36px;
    color: #0F4C81;
    margin-bottom: 16px;
  }
  
  .biz-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  /* 工程案例 */
	
  .anzhan_img img{width: 100%;height: auto;}
  .anzhan{border:#e2e2e2 1px solid;width: 100%;}
  .anzhan_nei{background: #fff;padding: 5%;display: block;/*height: 32px;overflow: hidden;*/margin-top:0px;transition: all 0.6s ease;}
  .anzhan_nei_tt{font:600 19px/40px "Microsoft Yahei";color: #333;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;    }
  .anzhan_nei_tt a{color: #333;}
  .anzhan_nei_yy{font:400 16px/29px "Microsoft Yahei";color: #333;background: #fff;}
  .anzhan:hover .anzhan_nei_tt a{color: #015e99;cursor: pointer;}	
  @media screen and (max-width:768px){
    .subpage-head1 .en{font-size:32px}
    .sAbout-honor-swiper{padding: 2rem 0.8rem 1.6rem;}
    .honor ul{    justify-content: space-evenly;}	
    .honor ul li{padding: 0 10px;margin: 0 ;}
  }    
      
      
  .algd{
    width: 120px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 20px;
    border: 1px solid #ccc;
    margin: 20px auto;   
  }
  .algd a{
    color: #000;
  }  
  .algd:hover a{
    color: #015e99;
  }

  /* 核心容器 */
  .news-section {
    max-width: 90%;
    margin: 40px auto;
    padding: 0 20px;
}

/* 标题 */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    color: #1a2b48;
    font-weight: 500;
}
@media (max-width:992px) {
  .section-title{
    margin-bottom: 0;
  }
}

/* 主体布局：分类竖排 + 新闻列表 */
.news-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 竖排3个分类 */
.news-category {
    display: flex;
    flex-direction: column; /* 垂直竖排 */
    gap: 10px;
    min-width: 120px;
}

.news-category a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

/* 分类选中/悬浮样式 */
.news-category a.active,
.news-category a:hover {
    background: #2b5797;
    color: #fff;
}

/* 新闻列表 */
.news-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 极简新闻卡片 */
.news-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.news-card:hover {
    background: #f8f9fa;
}

/* 新闻标题 + 按钮 同行布局 */
.news-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-title {
    font-size: 16px;
    color: #1a2b48;
    font-weight: 500;
}

.read-more {
    font-size: 14px;
    color: #2b5797;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-wrapper {
        flex-direction: column; /* 手机端分类上下排列 */
        gap: 20px;
    }
    .news-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.info-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}


/* 单栏样式 */
.info-column {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: calc((100% - 40px) / 3);
}
@media (max-width:993px) {
  .info-container{
    flex-wrap: wrap;
  }
  .info-column{
    width: 100%;
  }
}

/* 栏目标题+更多 */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.column-header h3 {
    font-size: 24px;
    color: #015e99;
    font-weight: 600;
}

.more-link {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.more-link:hover {
    color: #2b5797;
}

/* 列表样式 */
.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* 列表项前面的点 */
.info-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    top: 0;
    color: #666;
    font-size: 16px;
}

.info-list li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.info-list li a:hover {
    color: #015e99;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
    }
    .info-column {
        margin-bottom: 20px;
    }
}


  /* 联系我们 */
  #contact {
    background: #0F4C81;
    color: white;
    text-align: center;
  }
  
  .contact-info {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .contact-item i {
    color: #E6A23C;
    font-size: 24px;
  }
  
  /* 页脚 */
  footer {
    background: #1A2B3C;
    color: white;
    text-align: center;
    padding: 30px 0;
  }
  
  /* 响应式 */
  @media (max-width: 992px) {
    .nav-menu {
      display: none;
    }
    #menuBtn {
      display: block;
    }
    .about-row {
      flex-direction: column;
    }
    .business-grid,
    .case-grid {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 20px;
    }
    
  }
  
  @media (max-width: 768px) {
    .business-grid,
    .case-grid,
    .news-grid {
      grid-template-columns: 1fr;
    }
    .banner-content h1 {
      font-size: 32px;
    }
  }


  .footbox {
    height: 8rem;
    background: rgba(0, 38, 143, 0.5);
    bottom: 0;
    z-index: 99;
    left: 0;
    width: 100%;
    min-width: 375px;
    position: fixed;
    border-top: 0;
    z-index: 1000;
  }
  
  .flexbox {
    margin-top: 2px;
    text-align: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
  
  .footbox ul li {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
  }
  
  .footbox ul li a {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    line-height: 3rem;
    font-weight: 600;
  }
  
  .footbox ul li a img {
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 5px auto;
  }
  
  @media(min-width:1000px) {
    .footbox {
        display: none;
    }
  }
  
  .sjkx {
    display: block;
  }
  
  @media(min-width:1000px) {
    .sjkx {
        display: none;
    }
  }
  

  .cpzx_n {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
  }

  /* 页面容器，模拟网站内容区 */
.ywly {
  margin: 0 auto;
  padding: 20px;
}



/* 业务卡片网格布局 - 适配多列展示 */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列布局，和常见企业站一致 */
  gap: 20px; /* 卡片间距 */
}

/* 核心：业务卡片基础样式 */
.business-card {
  position: relative; /* 为下拉菜单绝对定位做准备 */
  padding: 30px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease; /*  hover 过渡动画，更丝滑 */
}

/* 卡片 hover 基础效果 */
.business-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #007bff; /*  hover 时边框变蓝，突出交互 */
}

/* 卡片标题样式 */
.business-card h3 {
  color: #005e95;
  text-align: center;
  font-size: 28px;
  border-bottom:3px solid #c8d8ff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-weight: 600;
}

/* 卡片描述文本 */
.business-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;        /* 将元素转为弹性盒模型（webkit内核专用） */
  -webkit-box-orient: vertical;/* 设置弹性盒的排列方向为垂直 */
  -webkit-line-clamp: 2;       /* 限制显示的行数为4行 */
  overflow: hidden;    
}

/* 卡片右侧箭头 */
.business-card .arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 16px;
  color: #999;
  transition: transform 0.3s ease;
}

/* 卡片 hover 时箭头变色 */
.business-card:hover .arrow {
  color: #007bff;
}

/* #################### 核心：二级下拉菜单样式 #################### */
/* 下拉菜单容器 - 默认隐藏 */
.dropdown-menu {
  position: absolute; /* 相对于父卡片定位 */
  top: 100%; /* 紧贴卡片底部 */
  left: 0;
  width: 100%; /* 和卡片同宽 */
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none; /* 取消上边框，和父卡片无缝衔接 */
  border-radius: 0 0 8px 8px; /* 只保留右下、左下圆角 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none; /* 默认隐藏 */
  z-index: 999; /* 确保在最上层，不被遮挡 */
}

/* 下拉菜单项样式 */
.dropdown-menu a {
  display: block; /* 独占一行 */
  padding: 12px 20px;
  font-size: 14px;
  color: #666;
  text-decoration: none; /* 去掉下划线 */
  transition: background 0.3s ease;
}

/* 菜单项 hover 效果 */
.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #007bff;
}

/* 核心触发：鼠标 hover 卡片时，显示下拉菜单 */
.business-card.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* 卡片 hover 时箭头旋转（可选，增强交互） */
.business-card.has-dropdown:hover .arrow {
  transform: rotate(90deg);
}

/* 响应式适配：移动端改为1列布局 */
@media (max-width: 768px) {
  .container {
      width: 100%;
      padding: 10px;
  }
  .business-grid {
      grid-template-columns: 1fr;
  }
}
