/* ========== 全局基础与字体统一优化 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 全平台统一字体栈：优先匹配系统原生优质中文字体，视觉风格一致 */
    font-family: 
        "PingFang SC",
        "Microsoft YaHei",
        "Hiragino Sans GB",
        "Noto Sans CJK SC",
        "Helvetica Neue",
        Arial,
        sans-serif;
    
    /* 统一基础字号与无单位行高，彻底抹平不同字体的行高偏差 */
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #333;
    background-color: #f9f8f5;

    /* 跨浏览器字体渲染统一：抗锯齿、平滑显示 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 禁止移动端横屏自动放大字体，避免iOS/安卓排版错乱 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(45, 95, 69, 0.2);
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

/* 全局容器：大屏居中限宽，小屏自动适配 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 全局段落：首行缩进2字，统一行高与间距 */
p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #666;
}

/* ========== 图片裁剪通用样式 ========== */
.img-crop {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.img-crop.img-center img { object-position: center; }
.img-crop.img-top img { object-position: top; }
.img-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.img-crop:hover img { transform: scale(1.05); }

/* 低版本浏览器 aspect-ratio 降级 */
@supports not (aspect-ratio: 16/9) {
    .img-crop.img-16-9 { padding-bottom: 56.25%; }
    .img-crop.img-4-3 { padding-bottom: 75%; }
    .img-crop.img-3-2 { padding-bottom: 66.67%; }
    .img-crop.img-16-9 img,
    .img-crop.img-4-3 img,
    .img-crop.img-3-2 img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* ========== 头部导航栏 ========== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-size: 24px;
    font-weight: 600;
    color: #2d5f45;
    text-indent: 0;
}
.nav ul {
    display: flex;
    gap: 30px;
}
.nav a {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav a:hover,
.nav a.active {
    color: #2d5f45;
    font-weight: 500;
    background-color: rgba(45, 95, 69, 0.1);
    transform: translateY(-2px);
}

/* 移动端菜单按钮：纯文字，无外部图标依赖 */
.nav-mobile {
    display: none;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}
.nav-mobile:hover {
    color: #2d5f45;
    background-color: rgba(45, 95, 69, 0.1);
}

/* ========== 首屏Banner：自适应图片原始高度 ========== */
.banner {
    width: 100%;
    margin-top: 70px;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
}

/* 低版本浏览器 object-fit 降级 */
@supports not (object-fit: contain) {
    .banner img { width: 100%; height: auto; }
}

/* ========== 通用区块标题 ========== */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d5f45;
    margin-bottom: 10px;
    text-align: center;
    text-indent: 0;
}
.section-line {
    width: 60px;
    height: 3px;
    background-color: #a8b5a0;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* ========== 品牌初心区块 ========== */
.brand {
    padding: 60px 0;
    text-align: center;
}
.brand p {
    max-width: 800px;
    margin: 0 auto 12px;
    text-align: left;
}

/* ========== 核心产品区块 ========== */
.products {
    padding: 60px 0;
    background-color: #fff;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-item {
    background-color: #f9f8f5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.product-item .img-crop {
    aspect-ratio: 4/3;
}
.product-item .info {
    padding: 20px;
    text-align: center;
}
.product-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-indent: 0;
    transition: color 0.3s ease;
}
.product-item:hover h3 { color: #234a37; }
.product-item p {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    text-indent: 0;
    text-align: center;
}
.product-item .price {
    font-size: 18px;
    font-weight: 600;
    color: #2d5f45;
    margin-bottom: 15px;
    text-indent: 0;
    transition: transform 0.3s ease;
}
.product-item:hover .price { transform: scale(1.05); }

/* 按钮通用样式：去除系统默认外观，全浏览器显示一致 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #2d5f45;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-indent: 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.btn:hover { background-color: #234a37; }
.btn:active {
    transform: scale(0.96);
    background-color: #1e3f2f;
}

/* ========== 品质保障区块 ========== */
.quality {
    padding: 60px 0;
}
.quality-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
/* 圆形文字标识：替代外部图标，全浏览器兼容 */
.quality-item .icon-text {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background-color: rgba(45, 95, 69, 0.1);
    color: #2d5f45;
    font-size: 16px;
    font-weight: 600;
    margin: 0 auto 15px;
    display: inline-block;
    text-align: center;
    text-indent: 0;
    transition: all 0.3s ease;
}
.quality-item:hover .icon-text {
    transform: scale(1.1);
    background-color: #2d5f45;
    color: #fff;
}
.quality-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-indent: 0;
}
.quality-item p {
    font-size: 13px;
    color: #777;
    text-indent: 0;
    text-align: center;
}

/* ========== 页脚 ========== */
.footer {
    padding: 60px 0 0;
    background-color: #2d5f45;
    color: #fff;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-indent: 0;
}
.footer-item p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.85;
    color: #fff;
    margin-bottom: 8px;
}
.footer-item ul li {
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}
.footer-item ul li:hover { transform: translateX(5px); }
.footer-item ul a {
    font-size: 13px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.footer-item ul a:hover { opacity: 1; }

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: #234a37;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
.copyright p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
    font-size: 12px;
}
.xmc {
  width: 30%; /* 占父容器90%宽度 */
  max-width: 1200px; /* 限制最大宽度，避免大屏下过宽 */
  margin: 0 auto; /* 水平居中 */
}
/* 父容器 */
.row-box {
    display: flex;
    gap: 30px;          /* 两个div之间的间距，替代margin更省心 */
    align-items: center;/* 垂直居中对齐，可选：flex-start / flex-end */
    justify-content: space-between; /* 水平对齐方式，可选 */
	width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 子div（两个都适用） */
.row-box .item {
    flex:1;            /* 两个div等宽平分父容器宽度，可选 */
    background-color: #f9f8f5;
	/*width: 50%;   也可以写固定宽度：width: 50%; */
}
/* 品牌初心双列布局容器 */
.brand .row-box {
    display: flex;
    align-items: center; /* 两列内容垂直居中对齐 */
    justify-content: space-between;
    gap: 5%; /* 两列之间的间距，百分比适配不同屏幕 */
}

/* 左列：固定占30%宽度 */
.brand .item-img {
    flex: 0 0 20%; 
    /* 三个参数含义：不放大、不缩小、基准宽度30%，严格固定宽度比例 */
}

/* 右列：占剩余70%宽度（减去间距后自动填充） */
.brand .item-text {
    flex: 1;
    /* 等价于占满剩余空间，最终视觉效果为70%左右宽度 */
}

/* 移动端响应式：屏幕小于768px时改为上下排列 */
@media (max-width: 768px) {
    .brand .row-box {
        flex-direction: column;
        gap: 30px;
    }
    .brand .item-img,
    .brand .item-text {
        flex: 0 0 100%;
        width: 100%;
    }
    /* 移动端logo居中并限制最大宽度，避免过大 */
    .brand .item-img {
        max-width: 180px;
        margin: 0 auto;
    }
}
/* ========== 返回顶部按钮 ========== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2d5f45;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    padding: 0 4px;
}
#backToTop:hover {
    background-color: #234a37;
    transform: scale(1.1);
}
#backToTop span { text-indent: 0; }

/* ========== 响应式适配：平板与手机 ========== */
@media (max-width: 768px) {
    body { font-size: 13px; }
    
    .nav ul { display: none; }
    .nav-mobile { display: block; }
    
    .section-title { font-size: 22px; }
    
    .brand, .products, .quality {
        padding: 50px 0;
    }
    
    .quality-item .icon-text {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 14px;
    }
    
    #backToTop {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .logo { font-size: 20px; }
    
    .section-title { font-size: 20px; }
}

/* ========== 低版本浏览器 grid 布局降级 ========== */
@supports not (display: grid) {
    .product-list,
    .quality-list,
    .footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .product-item,
    .quality-item,
    .footer-item {
        width: calc(50% - 15px);
        margin-bottom: 30px;
    }
    @media (max-width: 480px) {
        .product-item,
        .quality-item,
        .footer-item { width: 100%; }
    }
}
/* ========== 柔光线条特效 ========== */
.light-beam {
    position: absolute;
    top: -20%;
    width: 120px;
    height: 140%;
    /* 线性渐变实现两端透明的光带 */
    background: linear-gradient(180deg, rgba(255,248,220,0) 0%, rgba(255,248,220,0.25) 50%, rgba(255,248,220,0) 100%);
    z-index: 2;
    pointer-events: none;
    transform: rotate(25deg);
    animation: lightSweep 10s linear infinite;
}
.light-1 {
    left: 20%;
    animation-delay: 0s;
}
.light-2 {
    left: 60%;
    animation-delay: -5s; /* 错开扫动时间 */
    opacity: 0.7;
}

/* 光线缓慢扫过关键帧 */
@keyframes lightSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(300%) rotate(25deg);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .fog { height: 35%; }
    .light-beam { width: 60px; }
    
    /* 可选：移动端直接关闭光线，保持页面简洁 */
    /* .light-beam { display: none; } */
}

/* ===== 核心修复：确保banner为定位父容器，烟雾相对于banner定位 ===== */
.banner {
    position: relative !important;
}

/* 原有：图片整体呼吸浮动动画 */
.banner img {
    animation: bannerFloat 6s ease-in-out infinite;
    transform-origin: center bottom;
}

/* ===== 烟雾通用样式 ===== */
.fog {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 38%; /* 烟雾集中在底部海面区域，不遮挡左侧文字 */
    /* 柔和渐变：底部浓，向上逐渐透明，模拟自然雾气/香气 */
    background: linear-gradient(to top, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0) 100%);
    z-index: 2; /* 浮在图片之上，保证可见 */
    pointer-events: none; /* 不影响页面任何点击交互 */
    border-radius: 50%;
    filter: blur(15px); /* 模糊柔化边缘，更接近真实烟雾质感 */
    animation: fogDrift 10s ease-in-out infinite;
}

/* 三层烟雾错开位置、大小、速度，营造自然层次感 */
.fog-1 {
    width: 45%;
    left: -5%;
    animation-delay: 0s;
}
.fog-2 {
    width: 55%;
    left: 25%;
    bottom: -5%;
    animation-delay: -3s; /* 负时间提前播放，错开节奏 */
    opacity: 0.8;
}
.fog-3 {
    width: 40%;
    right: -5%;
    left: auto;
    animation-delay: -6s;
    opacity: 0.7;
}

/* 烟雾缓慢飘动+淡入淡出关键帧 */
@keyframes fogDrift {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-18px) translateX(12px) scale(1.08);
        opacity: 0.6;
    }
}

/* 原有图片呼吸浮动动画 */
@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.01);
    }
}

/* 移动端适配：自动压缩烟雾高度，保持画面协调 */
@media (max-width: 768px) {
    .fog {
        height: 30%;
        filter: blur(10px);
    }
}
<style>
.menu-link{
    color:#333;
    text-decoration:none;
}
.menu-link:hover{
    color:#ff3300; /*悬浮想要的颜色，可以自行改，#ff0000红色、#0066cc蓝色 */
}
</style>
