/* 全局重置：去掉所有链接默认下划线 */
a {
    text-decoration: none;
    color: #333;
}

/* 鼠标悬停时有下划线 */
a:hover {
    text-decoration: underline;
}

/* 全局初始化：清除默认样式，统一盒子模型 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

/* 设置页面高度为100%，用于页脚贴底 */
html, body {
    height: 100%;
}

/* 页面整体布局：垂直弹性布局，让页脚永远在最底部 */
body {
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===================== 顶部导航栏样式（电脑端水平布局） ===================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    height: 70px;
    padding: 0 25px;
}

/* Logo 区域布局 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo 图标 */
.logo-icon {
    width: 50px;
    height: 50px;
    background: url('../img/商标.png') center / contain no-repeat;
}

/* Logo 文字 */
.logo-cn {
    font-size: 30px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

/* 导航菜单容器 */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 导航菜单链接样式 */
nav a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    position: relative;
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    height: 70px;
}

/* 导航当前选中样式 */
nav a.active {
    color: #348de9;
}

/* 导航选中底部线条 */
nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #348de9;
}

/* 右侧导航按钮区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 右侧按钮样式 */
.header-right a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

/* ===================== 页面主体内容（所有页面通用） ===================== */
.container,
.contact-section {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
}

/* ===================== 联系页面专用：左右两栏居中布局 ===================== */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

/* 联系页面左侧信息宽度固定 */
.contact-info {
    flex: 0 0 250px;
    line-height: 2.5;
    font-size: 16px;
}

/* 联系页面右侧地图宽度固定 */
.contact-map {
    flex: 0 0 500px;
}
.contact-map img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

/* ===================== 面包屑导航 ===================== */
.breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: #348de9;
    text-decoration: none;
}

/* ===================== 页脚样式 ===================== */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    width: 100%;
}

/* ===================== 产品页面专用布局 ===================== */
.product-page {
    display: flex;
    gap: 40px;
}

/* 左侧分类菜单 */
.product-sidebar {
    flex: 0 0 160px;
    border: 1px solid #eee;
    background: #fff;
    align-self: flex-start;
}
.product-sidebar ul {
    list-style: none;
}
.product-sidebar li {
    border-bottom: 1px solid #eee;
}
.product-sidebar li:last-child {
    border-bottom: none;
}
.product-sidebar a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
.product-sidebar a:hover {
    background-color: #f8f8f8;
    color: #348de9;
}

/* 【当前选中/激活状态】字体变蓝色（核心代码） */
.product-sidebar a.active {
    color: #348de9;
    font-weight: bold;
    background: #f5f9ff;
}

/* 右侧产品网格：强制3列，自动换行 */
.product-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

/* 产品项：固定宽度，防止图片被拉伸 */
.product-item {
    text-align: center;
    max-width: 250px;
}
.product-item img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-bottom: 10px;
}
.product-item p {
    font-size: 16px;
    color: #333;
}

/* ----------------- 核心修复：产品文字 鼠标悬浮+选中 都变蓝 ----------------- */
.product-item a {
    text-decoration: none;
}
.product-item a:hover p {
    color: #348de9 ;
}
.product-item a.active p {
    color: #348de9 ;
    font-weight: bold;
}

/* ===================== 产品详情页：放大缩小都不乱版 ===================== */
.product-detail {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左侧图片：固定宽度，不放大 */
.product-image {
  flex: 0 0 400px;
  max-width: 400px;
}
.product-image img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
}

/* 右侧内容：自适应，但不超过容器 */
.product-info {
  flex: 1;
  min-width: 400px;
  max-width: calc(100% - 450px);
}

/* 标题样式 */
.product-info .title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}
.product-info .model {
  font-size: 36px;
  color: #348de9;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-desc {
    min-height: 100px;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    padding: 10px 0;
    margin-bottom: 20px;
}

.product-info ul {
    list-style: none;
    margin-bottom: 40px;
}
.product-info li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}
.product-info li::before {
    content: "○";
    color: #333;
    position: absolute;
    left: 0;
    top: 0;
}

/* 联系方式模块 */
.contact-box {
    background-color: #00479b;
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}
.contact-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-box p {
    margin: 6px 0;
    font-size: 15px;
}
.contact-box p span {
    display: inline-block;
    width: 60px;
}

/* 咨询按钮 */
.product-detail-btn {
    display: block;
    width: 140px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #00479b;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    margin: 0 auto;
    font-size: 16px;
}

/* ===================== 手机端响应式适配 ===================== */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    /* 手机端Logo和语言按钮在同一行 */
    .logo {
        order: 1;
    }
    .header-right {
        order: 2;
    }

    /* 导航菜单在手机端换行到下一行 */
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 16px;
        height: 40px;
    }

    .logo-cn {
        font-size: 28px;
    }
    .logo-icon {
        width: 45px;
        height: 45px;
    }

    /* 联系页面手机端自动换行 */
   
   	 /* 内容内边距适配 */
    .breadcrumb,
    .contact-section {
        padding: 12px 20px;
    }
    .contact-section {
    	padding: 40px 20px;
        flex-wrap: wrap;
        gap: 30px;
    }
    
     .contact-section h2 {
        font-size: 24px;
    }
    .contact-section p {
        font-size: 16px;
    
    .contact-map {
        flex: 0 0 100%;
    }

    /* 产品页面手机端适配 */
    .product-page {
        flex-wrap: wrap;
    }
    .product-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 产品详情页手机端适配 */
    .product-detail {
        flex-wrap: wrap;
    }
    .product-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-info {
        min-width: 100%;
        max-width: 100%;
    }
    .product-info .model {
        font-size: 28px;
    }
}