/* ==============================================
【1. 全局基础重置层】
全局统一清除内外边距、盒模型、默认字体
============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei",sans-serif;
}
body {
    background-color: #fff;
}
/* ==============================================
【2. 顶部导航栏模块】
Logo、主导航、下拉菜单、移动端汉堡菜单
============================================== */
/* 2.1 导航外层容器 */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
/* 2.2 Logo 区域 */
/* Logo链接容器 */
.nav-container .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #222;
  font-size: 24px;
  font-weight: bold;
}
/* Logo图片样式 */
.nav-container .logo img {
  max-height: 80px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* 2.3 导航下拉二级菜单 */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  display: none;
  z-index: 9999;
}
.submenu a {
  display: block;
  padding: 10px 15px;
  color: #333;
}
.submenu a:hover {
  background: #f5f5f5;
  color: #007bff;
}
.dropdown:hover .submenu {
  display: block;
}

/* ========= PC端主导航菜单 胶囊样式 + Home永久常亮蓝色 栏目间距缩小为4px ========= */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 4px;
        list-style: none;
    }
    .nav-menu .nav-item {
        height: auto;
        display: flex;
        align-items: center;
        position: relative;
    }
    .nav-menu .nav-item > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 80px;
        height: 42px;
        padding: 0 10px;
        border-radius: 50px;
        color: #222;
        text-decoration: none;
        font-size: 24px;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease;
        background-color: transparent;
    }
    .nav-menu .nav-item > a:hover {
        background-color: #0f4086;
        color: #ffffff;
    }
    /* 单独锁定第一个Home菜单，永久蓝色胶囊高亮，不需要active类！ */
    .nav-menu .nav-item:first-child > a {
        background-color: #0f4086 !important;
        color: #ffffff !important;
    }
    .nav-menu .dropdown > a span {
        margin-left: 6px;
        font-size: 12px;
    }
}

/* ==============================================
【4. 公共通用样式】
版块标题、页面内容容器、友情链接
============================================== */
/* 4.1 版块统一标题 */
.title {
    text-align: center;
    margin: 40px 0 25px;
}
.title h2 {
    font-size: clamp(26px, 3vw, 25px);
    margin-bottom: 6px;
}
.title p {
    color: #666;
    font-size: 14px;
}
/* 4.2 内页内容统一容器 */
.page-wrap{
    max-width: 100%;
    width:92%;
    margin:0 auto;
    padding:40px 0;
}
/* 4.3 底部友情链接 */
.friend-link {
    width: 100%;
    margin: 60px auto 30px;
    padding: 30px 20px;
    border-top: 1px solid #e5e7eb;
}
.friend-link h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}
.friend-link h3::before {
    content: "";
    width: 4px;
    height: 18px;
    background: #007bff;
    position: absolute;
    left: 0;
    top: 3px;
    border-radius: 2px;
}
/* ==============================================
【5. 关于我们模块（首页+内页）】
首页图文介绍、内页四格公司信息卡片
============================================== */
/* 5.1 首页关于我们图文版块 */
.about-section {
    width: 100%;
    margin: 35px 0;
    padding: 0;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}
.about-img {
    width: 50%;
    height: 520px;
    overflow: hidden;
    border-radius: 0;
    padding: 0 0 0 40px;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.about-img img:hover {
    transform: scale(1.05);
}
.about-text {
    width: 50%;
    padding: 0 40px 0 0;
}
.about-subtitle {
    font-size: 16px;
    color: #1677ff;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}
.about-title {
    font-size: 25px;
    color: #222;
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 700;
}
.about-line {
    width: 60px;
    height: 3px;
    background-color: #1677ff;
    margin-bottom: 28px;
}
.about-desc {
    font-size: 16px;
    color: #666;
    line-height: 2;
    margin-bottom: 16px;
}
/* 关于我们按钮样式 */
.about-more-btn {
    display: inline-block;
    margin-top: 180px;
    margin-right: 120px;
    padding: 16px 40px;
    background-color: #1677ff;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    float: right;
}
.about-more-btn:hover {
    background-color: #0958d9;
}
.about-text::after {
    content: "";
    display: block;
    clear: both;
}
.about-btn-wrap {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.about-blue-btn {
    display: inline-block;
    margin-left: 150px;
    padding: 16px 40px;
    background-color: #1677ff;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 999px;
    border: none;
}
/* 5.2 内页公司信息四格卡片 */
.about-info{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap:20px;
    margin-top:50px;
}
.info-item{
    background:#fff;
    padding:40px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    border-radius:10px;
}
.info-item h4{
    font-size:18px;
    margin-bottom:12px;
    color:#0f172a;
}
.info-item p{
    color:#666;
    line-height:1.7;
}
/* ==============================================
【6. 内页子Banner（页面顶部标题横幅）】
产品/新闻/关于等内页顶部背景横幅
============================================== */
.sub-banner {
    margin-top: 104px;
    width: 100%;
    height: 180px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub-banner h2 {
    color: #fff;
    font-size: 32px;
}
/* ==============================================
【7. 产品列表模块】
产品网格卡片、图片hover缩放、信息文字
============================================== */
.product {
    width: 100%;
    padding: 20px 20px;
    background: #f9f9f9;
    box-sizing: border-box;
}
.product-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.product-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
/* 鼠标悬浮图片收缩效果 */
.product-card:hover img {
    transform: scale(0.9);
}
.product-info {
    padding: 20px;
}
.product-name {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 500;
}
.product-desc {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}
/* ==============================================
【8. 新闻列表模块】
新闻网格卡片、封面图、信息文字（与产品列表样式统一）
============================================== */
.news {
    width: 100%;
    padding: 20px 20px;
    background: #f9f9f9;
    box-sizing: border-box;
}
.news-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
/* 鼠标悬浮图片收缩效果，和产品卡片保持一致 */
.news-card:hover img {
    transform: scale(0.9);
}
.news-info {
    padding: 20px;
}
.news-name {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 500;
}
.news-desc {
    font-size: 22px;
    color: #666;
    line-height: 1.5;
}
/* PC端布局 */
.news-card a {
    display: flex;
    gap: 0;
    text-decoration: none;
    color: #333;
}
.news-card .img-box{
    width:200px;
    height:140px;
    flex-shrink:0;
    overflow:hidden;
}
.news-card-action a {
    display: inline-block;
    padding: 7px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
/* ==============================================
【9. 响应式媒体查询（多屏幕适配）】
分两档：平板992 / 手机768
============================================== */
/* 9.1 平板端 ≤992px */
@media (max-width: 992px) {
    .about-info{ grid-template-columns: repeat(2,1fr); }
   
    .product-list, .news-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 9.2 普通手机 ≤768px */
@media screen and (max-width: 768px) {
    /* 导航logo缩小 */
    .nav-container .logo img {
        max-height: 50px;
        max-width: 130px;
    }
    .nav-container .logo {
        font-size: 20px;
    }
    /* 移动端下拉菜单 */
    .menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 10px 20px;
        display: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .menu a {
        line-height: 50px;
        height: 50px;
        border-bottom: 1px solid #f5f5f5;
    }
    .burger { display: block; }
    .logo { margin-left: 0; }
    /* 关于我们版块改为上下排列 */
    .about-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    .about-img, .about-text {
        width: 100%;
    }
    .about-img {
        height: 300px;
        padding: 0;
    }
    .about-title {
        font-size: 28px;
    }
    .about-text {
        padding: 0;
    }
    .about-more-btn {
        float: none;
        display: block;
        text-align: center;
        margin: 30px auto 0;
        width: fit-content;
        margin-right: 0;
    }
    /* 内页子banner高度缩小 */
    .sub-banner{ height:120px; }
    .sub-banner h2{ font-size:24px; }
    .about-info{ grid-template-columns:1fr; }
    /* ========== 手机端产品、新闻 1列 ========== */
    .product-list, .news-list {
        grid-template-columns: 1fr;
    }
}
/* 9.5 手机端 ≤640px */
@media screen and (max-width: 640px) {
    /* 手机隐藏PC导航菜单 */
    .nav-menu {
        display: none;
    }
    /* 右侧汉堡容器 */
    .header-right-wrap {
        display: flex;
        align-items: center;
        gap: 0;
    }
    /* 汉堡按钮 */
    .hamburger {
        height: 60px;
        display: flex;
        align-items: center;
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
}
/* 修复手机端产品、新闻列表横向溢出，左右保留12px安全边距 */
@media screen and (max-width: 768px) {
    .product,
    .news {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
