/* #region 基础设置 */
.container {
    width: 1190px;
    margin: 0 auto;
}
html {
    scroll-behavior: smooth;
}
/* #endregion */

/* #region 顶部条 start */
.topbar {
    height: 30px;
    background-color: #e8e8e8;
    line-height: 30px;
    font-size: 12px;
    color: #666;
}
.topbar .welcome {
    color: #333;
}
.topbar .topbar-contact span {
    margin-left: 20px;
}
/* #endregion 顶部条 end */

/* #region 头部和导航栏 start */
.header {
    height: 120px;
    background-color: #D2691E;
    position: relative;
    /* 为巨型菜单提供定位锚点 */
}
.header .logo {
    margin-top: 10px;
}
.header .logo img {
    width: 200px;
    height: 100px;
}

/* 主导航 */
.main-nav {
    margin-top: 42px;
}
.main-nav > li {
    float: left;
    height: 36px;
    line-height: 36px;
    margin-left: 20px;
    font-size: 16px;
    position: static;
}
.main-nav > li > a {
    color: #333;
    padding: 8px 6px;
}
.main-nav > li > a:hover {
    color: #0052a3;
    border-bottom: 2px solid #0052a3;
}
/* 产品中心：加高 hover 区，桥接导航栏与下拉列表之间的间隙 */
.nav-product-center {
    padding-bottom: 42px;
    margin-bottom: -42px;
}
/* #endregion 头部和导航栏 end */

/* #region 产品中心巨型菜单 start */
/*
 * 布局策略：
 * .mega-menu 绝对定位在 .header 底部，覆盖轮播图区域
 * L1 左列 -> L2 第二列 -> L3 第三列 -> 预览面板最右
 * 每级默认 display:none，父级 hover 时显示
 * 同级元素共享同一绝对定位位置，同一时刻只有一个可见
 */

/* 巨型菜单容器 */
.mega-menu {
    box-sizing: border-box;
    display: none;
    position: absolute;
    left: 50%;
    margin-left: -595px;
    /* 1190px / 2，居中于 .header */
    top: 100%;
    /* 相对于 .header 底部 */
    width: 1190px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: 2px solid #0052a3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    z-index: 100;
}
.nav-product-center:hover .mega-menu {
    display: block;
}

/* ===== L1 一级列表（左列，始终可见）===== */
.mega-l1 {
    width: 160px;
    height: 448px;
    background-color: #f5f5f5;
    padding-top: 2px;
}
.mega-l1>li {
    height: 50px;
    line-height: 50px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
    position: static;
}
.mega-l1>li>a {
    color: #333;
    display: block;
}
.mega-l1>li:hover {
    background-color: #0052a3;
}
.mega-l1>li:hover>a {
    color: #fff;
}

/* ===== L2 二级列表（绝对定位在 L1 右侧）===== */
.mega-l2 {
    display: none;
    position: absolute;
    left: 160px;
    top: 0;
    width: 190px;
    height: 448px;
    background-color: #f5f5f5;
    border-left: 1px solid #e8e8e8;
    overflow: visible;
}
.mega-l1>li:hover>.mega-l2 {
    display: block;
}
.mega-l2>li {
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
}
.mega-l2>li>a {
    color: #555;
    display: block;
}
.mega-l2>li:hover {
    background-color: #e8f0fe;
}
.mega-l2>li:hover>a {
    color: #0052a3;
}

/* ===== L3 三级列表（绝对定位，相对 .mega-l2，紧贴 L2 右侧）===== */
.mega-l3 {
    display: none;
    position: absolute;
    left: 189px;
    top: 0;
    width: 200px;
    height: 448px;
    background-color: #fafafa;
    border-left: 1px solid #e8e8e8;
    overflow: visible;
}
.mega-l2>li:hover>.mega-l3 {
    display: block;
}
.mega-l3>li {
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
    position: static;
}
.mega-l3>li>a {
    color: #666;
    display: block;
}
.mega-l3>li:hover {
    background-color: #fff3e0;
}
.mega-l3>li:hover>a {
    color: #0052a3;
}

/* ===== 产品规格预览面板（绝对定位，相对 .mega-l3，紧贴 L3 右侧）===== */
.mega-preview {
    display: none;
    position: absolute;
    left: 200px;
    top: 0;
    width: 640px;
    height: 428px;
    background-color: #fff;
    border-left: 1px solid #e8e8e8;
    padding: 10px 15px;
    cursor: pointer;
}
.mega-l3>li:hover>.mega-preview {
    display: block;
}

/* 预览面板内部布局 */
.preview-imgs {
    float: left;
    width: 300px;
    margin-right: 15px;
}
.preview-imgs img {
    width: 300px;
    height: 200px;
    display: block;
    margin-bottom: 12px;
    border: 1px solid #eee;
    object-fit: cover;
}
.preview-params {
    float: left;
    width: 310px;
}
.preview-params h3 {
    font-size: 15px;
    font-weight: bold;
    color: #0052a3;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0052a3;
}
.preview-params p {
    font-size: 12px;
    line-height: 2;
    color: #555;
    margin-bottom: 4px;
}
.preview-params .view-detail {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    background-color: #0052a3;
    color: #fff;
    font-size: 13px;
    border-radius: 2px;
}
.preview-params .view-detail:hover {
    background-color: #003d7a;
}

/* 无L3项目的L2项，直接链接样式 */
.mega-l2>li.no-l3>a {
    color: #555;
}
.mega-l2>li.no-l3:hover>a {
    color: #0052a3;
}
/* #endregion 产品中心巨型菜单 end */

/* #region 轮播图区 start */
.banner-section {
    margin-top: 0;
}
.banner-carousel {
    position: relative;
    width: 1190px;
    height: 450px;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    animation: bannerFade 18s infinite;
}
.banner-slide img {
    width: 1190px;
    height: 450px;
    display: block;
    object-fit: cover;
}
/* 每张图延迟3s，6张共18s一个循环 */
.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 3s; }
.banner-slide:nth-child(3) { animation-delay: 6s; }
.banner-slide:nth-child(4) { animation-delay: 9s; }
.banner-slide:nth-child(5) { animation-delay: 12s; }
.banner-slide:nth-child(6) { animation-delay: 15s; }

@keyframes bannerFade {
    0%      { opacity: 0; z-index: 0; }
    1.5%    { opacity: 1; z-index: 1; }
    14%     { opacity: 1; z-index: 1; }
    16.5%   { opacity: 0; z-index: 0; }
    100%    { opacity: 0; z-index: 0; }
}
/* #endregion 轮播图区 end */

/* #region 楼层区共用样式 start */
.floor {
    margin-top: 48px;
}
.floor-header {
    height: 40px;
    line-height: 40px;
    border-bottom: 2px solid #0052a3;
    margin-bottom: 24px;
}
.floor-header .floor-title {
    font-size: 22px;
    font-weight: bold;
    color: #0052a3;
}
.floor-header .floor-subtitle {
    font-size: 14px;
    color: #999;
}
.floor-body .floor-text {
    width: 700px;
    font-size: 18px;
    line-height: 2.2;
    color: #444;
    text-align: justify;
    text-indent: 36px;
    /* 相对右侧图片垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 616px;
}
.floor-body .floor-imgs {
    width: 430px;
}
.floor-body .floor-imgs img {
    width: 400px;
    height: 300px;
    display: block;
    margin-bottom: 16px;
    border: 1px solid #eee;
    object-fit: cover;
}
/* #endregion 楼层区共用样式 end */

/* #region 页脚区 start */
.footer {
    margin-top: 48px;
    background-color: #2c2c2c;
    color: #ccc;
    padding: 40px 0 20px;
}
/* 联系方式：2列2行布局，占左侧 */
.footer-contact {
    width: 750px;
}
.footer-contact h3 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}
.footer-contact-col {
    width: 320px;
}
.footer-contact-col:nth-child(2) {
    margin-left: 100px;
}
.footer-contact-col p {
    font-size: 13px;
    line-height: 2;
    color: #bbb;
}
.footer-contact-col .addr {
    white-space: nowrap;
}
/* 关注我们：放在页脚最右侧 */
.footer-follow {
    width: 360px;
}
.footer-follow h3 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}
.footer-follow p {
    font-size: 13px;
    line-height: 2;
    color: #bbb;
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}
/* #endregion 页脚区 end */

/* #region 详情页样式 start */

/* 详情页导航栏：面包屑 + 返回按钮 */
.detail-nav {
    margin-top: 42px;
    line-height: 36px;
    font-size: 14px;
}
.detail-breadcrumb-nav {
    font-size: 14px;
    color: #999;
}
.detail-breadcrumb-nav a {
    color: #666;
    padding: 0 4px;
}
.detail-breadcrumb-nav a:hover {
    color: #0052a3;
}
.detail-breadcrumb-nav .current {
    color: #0052a3;
    font-weight: bold;
}
.detail-breadcrumb-nav .nav-product-center {
    display: inline;
}
.detail-breadcrumb-nav .nav-product-center > a {
    display: inline;
    padding: 8px 4px;
}
/* 返回首页按钮 */
.btn-return {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    margin-left: 20px;
    margin-top: 2px;
    background-color: #0052a3;
    color: #fff;
    font-size: 13px;
    border-radius: 2px;
}
.btn-return:hover {
    background-color: #003d7a;
    color: #fff;
}

/* 详情内容区 */
.detail-content {
    margin-top: 20px;
    margin-bottom: 40px;
}
/* 产品图片：左右排列 */
.detail-gallery {
    margin-bottom: 30px;
}
.detail-gallery img {
    width: 500px;
    height: 450px;
    display: block;
    border: 1px solid #eee;
    object-fit: cover;
}
/* 规格参数：图片下方 */
.detail-specs h2 {
    font-size: 20px;
    font-weight: bold;
    color: #0052a3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0052a3;
}
.detail-specs p {
    font-size: 14px;
    line-height: 2.2;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px dashed #e8e8e8;
}
.detail-specs p strong {
    color: #333;
}
/* #endregion 详情页样式 end */
