* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--main-black);
    background: var(--main-bg);
    scroll-snap-type: y mandatory;
}
nav {
    color: var(--main-brown-dark);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.4s cubic-bezier(.77,0,.18,1), box-shadow 0.4s, color 0.4s;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav.scrolled {
    background: var(--main-brown);
    box-shadow: 0 2px 10px rgba(90,58,27,0.08);
}
a{
    text-decoration:none;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    padding: 0 20px;
}
.logo-title {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 15px;
    border-radius: 8px;
}
.company-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--main-brown);
    letter-spacing: 2px;
    font-family: 'Arial Black', 'Arial', sans-serif;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
}
nav ul li {
    padding: 20px 30px;
}
nav ul li a {
    color: var(--main-brown);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s;
}
nav.scrolled .company-name,nav.scrolled ul li a {
    color: #fff;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-brown-dark);
    transition: width 0.3s cubic-bezier(.77,0,.18,1);
}
nav ul li:hover a::after {
    width: 100%;
}
nav ul li a.active::after {
    width: 100%;
}
nav.scrolled ul li a::after {
    background-color: var(--main-brown-light);
}
nav ul li a.active,
nav ul li a:hover {
    color: var(--main-brown);
}
nav.scrolled ul li a.active,
nav.scrolled ul li a:hover {
    color: var(--main-brown-light);
}
section {
    min-height: 100vh;
    padding: 80px 20px 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--main-bg);
}
#home {
    background: none;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.home-slider {
    width: 100vw;
    height: 100vh;
    position: relative;
}
.slide {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-content {
    /* background: rgba(0,0,0,0.35); */
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    /* mix-blend-mode: difference; */
    min-width: 320px;
    max-width: 90vw;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.slide-title {
    font-size: 58px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-180px);
    transition: all 0.8s cubic-bezier(.77,0,.18,1);
}
.slide-desc {
    font-size: 34px;
    opacity: 0;
    transform: translateX(180px);
    transition: all 0.8s cubic-bezier(.77,0,.18,1);
}
.slide.active .slide-title.from-left {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}
.slide.active .slide-desc.from-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}
.slide.active .slide-title.from-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}
.slide.active .slide-desc.from-left {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}
.featured-product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.featured-product h1 {
    font-size: 56px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.featured-product p {
    font-size: 20px;
    margin-bottom: 40px;
}
.featured-product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#about {
    background-color: #fffbe9;
    display: flex;
    align-items: center;
}
.about-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: stretch;
}
.about-image {
    flex: 1;
    width: 40%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    height: auto;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-text {
    flex: 1;
    background: none;
}
.about-text h2 {
    color: var(--main-brown);
    margin-bottom: 30px;
}
.about-text p {
    margin-bottom: 20px;
    color: var(--main-brown-dark);
    font-size: 16px;
    text-indent: 2ch;
}
#products {
    background-color: #f8f9fa;
    padding: 100px 20px;
}
#products h2 {
    text-align: center;
    color: var(--main-brown);
    margin-bottom: 50px;
}
.products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 小屏：1 列 */
@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 中屏：2 列 */
@media (min-width: 600px) and (max-width: 899px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏：3 列 */
@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s, border 0.3s;
    box-shadow: 0 4px 18px rgba(90,58,27,0.10);
    border: 1.5px solid var(--main-brown-light);
    overflow: hidden;
}
.product-card:hover {
    box-shadow: 0 8px 32px rgba(90,58,27,0.18);
    border: 2px solid var(--main-brown-light);
    img{
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-card h3 {
    color: var(--main-brown);
    margin-bottom: 10px;
}
.product-card p {
    color: var(--main-brown-dark);
}
#contact {
    min-height: auto !important;
}
#contact h2 {
    text-align: center;
    color: var(--main-brown);
    margin-bottom: 50px;
}
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}
.contact-info {
    min-width: 320px;
    max-width: 630px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 40px 40px 40px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: absolute;
    left: 8%;
    top: 40%;

    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 46px 15px rgba(27, 140, 253, 0.09);
    box-shadow: 0px 0px 46px 15px rgba(27, 140, 253, 0.09);
    border-left: 8px;
    border-style: solid;
    border-color: #7b4a19;
    border-top: 0px;
    border-bottom: 0px;
    border-right: 0px;
    padding-left: 50px;
    padding-top: 35px;
    padding-bottom: 35px;
}
.contact-info h2 {
    color: var(--main-brown);
    margin-bottom: 20px;
    font-size: 28px;
}
.contact-info p {
    margin: 0;
    font-size: 18px;
    color: var(--main-brown-dark);
}
.contact-info strong {
    color: #333;
}
h1, h2 {
    margin-bottom: 20px;
}
h1 {
    font-size: 48px;
}
h2 {
    font-size: 36px;
}
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 10px;
    }
    .logo-title {
        margin-bottom: 10px;
    }
    nav ul {
        flex-wrap: wrap;
    }
    nav ul li {
        padding: 12px 10px;
    }
    .featured-product h1,
    .slide-title {
        font-size: 24px;
    }
    .slide-desc {
        font-size: 15px;
    }
    .slide-content {
        padding: 16px 4vw;
        min-width: unset;
        width: 98vw;
        max-width: 98vw;
    }
    .home-slider, .slide {
        width: 100vw;
        height: 100vh;
        min-height: 320px;
        max-height: 100vh;
        touch-action: pan-y;
    }
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    .about-image {
        width: 100%;
        height: 180px;
        min-height: 120px;
        margin-bottom: 10px;
    }
    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .about-text {
        padding: 0 4vw;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card {
        padding: 10px;
    }
    #contact {
        min-height: 80vh !important;
    }
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    .contact-info {
        padding: 20px 10px 20px 18px;
        min-width: unset;
        max-width: 98vw;
        left: 0;
        top: 0;
        transform: none;
        position: static;
    }
    .contact-label {
        min-width: 80px;
        max-width: 100px;
        font-size: 14px;
    }
    .contact-value {
        font-size: 14px;
    }
    .pro-content-box {
        width: 98vw;
        height: 70vh;
        padding: 0;
        border-width: 8px;
        max-width: 98vw;
    }
    .pro-img-box img {
        max-width: 100vw;
        height: auto;
    }
    .site-footer {
        font-size: 13px;
        padding: 12px 0 40px 0;
    }
    .hide-mobile {
        display: none !important;
    }
    .pro-bg {
        z-index: 2000 !important;
    }
    .pro-bg-box {
        z-index: 2001 !important;
    }
}
.site-footer {
    text-align: center;
    padding: 20px 0 60px 0;
    color: #fff;
    font-size: 15px;
    background: var(--main-brown);
    border-top: 1px solid #eee;
    letter-spacing: 1px;
}
.site-footer img{
    height: 16.5px;
}
.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.contact-label {
    min-width: 110px;
    max-width: 140px;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-block;
    line-height: 1.8;
    color: var(--main-brown);
}
.contact-value {
    flex: 1;
    word-break: break-all;
    line-height: 1.8;
    color: var(--main-black);
} 

.pro-box{
    width: 100%;
    height: 100%;
    display: none;
}
.pro-bg{
    position: fixed; /* 固定定位，使其相对于浏览器窗口定位 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度占满屏幕 */
    height: 100%; /* 高度占满屏幕 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景玻璃状效果，这里使用半透明黑色 */
    z-index: 998; /* 确保弹出层在最上层 */
}
.pro-bg-box{
    position: fixed; /* 固定定位，使其相对于浏览器窗口定位 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度占满屏幕 */
    height: 100%; /* 高度占满屏幕 */
    display: flex;/* 使用Flex布局以实现垂直居中 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    overflow-y: auto; /* 内容可滚动（假设主要沿y轴滚动） */
    z-index: 999; /* 确保弹出层在最上层 */
}
.pro-content-box{
    position: relative;
    height: 80%;
    max-width: 1200px; /* 内容最大宽度800px */
    background-color: #fffbe9;
    padding: 0px; /* 内边距，使内容不紧贴边缘 */
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(90,58,27,0.18);
    border: 20px solid #FFF;
}
.close-pro-box{position: absolute; /* 绝对定位使图标相对于.popup定位 */
    top: 0; /* 距离顶部0 */
    right: 0; /* 距离右边0 */
    width: 25px; /* 图标宽度 */
    height: 25px; /* 图标高度 */
    background: #FFF; /* 图标背景颜色，这里假设为白色 */
    color: var(--main-brown);
    border: none; /* 去除默认按钮边框 */
    cursor: pointer; /* 鼠标悬停时指针变为手型 */
    font-size: 24px; /* 控制叉号大小 */
    line-height: 25px; /* 确保叉号垂直居中 */
    text-align: center; /* 文本水平居中 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* 添加阴影效果 */
    transition: transform 0.5s linear; /* 添加过渡效果，用于鼠标离开时平滑恢复 */
    padding: 0;
}
.pro-img-box{
    width:100%;
    height:100%;
    overflow: auto;
}
/* 顺时针旋转一圈的动画 */
@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* 逆时针旋转一圈的动画 */
@keyframes rotate-counterclockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-180deg); }
}


/* 鼠标悬停时触发动画 */
.close-pro-box:hover {
    animation: rotate-clockwise 0.5s linear forwards; /* 顺时针旋转 */
    color: #FFF;
}

.pro-box-inner{max-width:1200px;display:none;}
.pro-box-inner img{width:100%}

/* 主色调定义 */
:root {
    --main-brown: #5a3a1b;
    /* --main-brown-light: #b97a56; */
    --main-brown-light: #FFF;
    --main-brown-dark: #3e2712;
    --main-bg: #f7f3ef;
    --main-black: #222;
}

/* 按钮样式（如有） */
button, .btn {
    background: var(--main-brown);
    color: #fff;
    border-radius: 8px;
    border: none;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}
button:hover, .btn:hover {
    background: var(--main-brown-dark);
}