/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}
















/* Header Style */
/* header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    border-bottom: 2px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

header .logo img {
    max-width: 100px;
    height: auto;
}

header .logo span {
    font-size: 24px;
    font-weight: bold;
    color: #8fc740;
}

header .contact-info {
    font-size: 16px;
    color: #333;
} */

/* Navigation Menu Style */
/* nav {
    background-color: #8fc740;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 50px;
    z-index: 9;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
} */







/* Header Style */
header {
    display: flex;
    justify-content: space-between;  /* 保持logo和导航栏分开 */
    align-items: center;  /* 垂直居中 */
    background-color: #ffffff;
    padding: 10px 20px;
    margin: 0; /* 去除任何外边距 */
    border-bottom: 2px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

header .logo {
    display: flex;
    align-items: center;  /* 确保logo居中 */
}

header .logo img {
    max-width: 150px;
    height: auto;
}

/* Navigation Menu Style */
nav {
    display: flex;
    justify-content: center;  /* 让导航菜单居中 */
    flex-grow: 1;  /* 让导航菜单填满可用空间 */
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    /* width: 100%; 让ul标签占满整个可用宽度 */
    margin: 0;  /* 确保没有额外的外边距 */
    padding: 0; /* 确保没有内边距 */
}

nav ul li {
    margin: 0 15px;
}

/* nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
} */

/* Navigation Menu Style */
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 5px 0;  /* 添加上下内边距 */
    position: relative;  /* 使得border-bottom可以显示 */
}


/* 鼠标悬停时的底部绿色线条 */
nav ul li a:hover,
nav ul li a:focus {
    color: #8fc740;  /* 改变字体颜色 */
    border-bottom: 3px solid #8fc740;  /* 添加底部绿色线条 */
}










/* Hero Section */
.hero {
    margin-top: 0; /* 留出空间用于header和导航margin-top: 100px; */
    width: 100%;
    height: 100vh; /* 满屏高度 */
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100vh; /* 满屏高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0; /* 默认透明 */
    transition: opacity 1s ease-in-out; /* 淡入淡出效果 */
    position: absolute; /* 确保图片不会重叠 */
    top: 0;
    left: 0;
    z-index: -1; /* 默认不显示 */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片填充容器 */
    object-position: center; /* 图片居中 */
}

/* 使活动的图片显示 */
.hero .image-placeholder.active {
    opacity: 1; /* 当前显示的图片 */
    z-index: 1; /* 使当前显示的图片位于顶部 */
}







/* Product Center Section */
.product-center {
    padding: 50px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.product-center h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.product-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-item {
    width: 22%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-item p {
    font-size: 16px;
    color: #555;
}

/* Footer Style */
footer {
    background-color: #f7f7f7;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    width: 18%;
    padding: 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    font-size: 16px;
    margin-bottom: 8px;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}





/* 搜索框样式 */
.header-right {
    display: flex;
    align-items: center; /* 垂直居中 */
    padding-right: 20px; /* 给右边留出空间 */
}

.search-box {
    width: 250px; /* 设置宽度 */
    height: 40px; /* 设置高度 */
    padding: 0 15px; /* 内边距，避免文字和边框贴得太近 */
    font-size: 16px; /* 设置字体大小 */
    border: 2px solid #8fc740; /* 边框颜色 */
    border-radius: 20px; /* 圆角效果 */
    outline: none; /* 去除点击时的蓝色边框 */
    transition: all 0.3s ease-in-out; /* 添加过渡效果 */
}

/* 聚焦时的效果 */
.search-box:focus {
    border-color: #6a993b; /* 聚焦时边框颜色 */
    box-shadow: 0 0 8px rgba(139, 199, 64, 0.6); /* 聚焦时添加阴影 */
    background-color: #f7f7f7; /* 聚焦时背景色 */
}

/* 提示文字的样式 */
.search-box::placeholder {
    color: #999; /* 设置提示文字颜色 */
    font-style: italic; /* 提示文字斜体 */
}

/* 搜索图标 */
.search-icon {
    font-size: 20px;  /* 图标大小 */
    color: #8fc740;  /* 图标颜色 */
    margin-left: 10px;  /* 搜索框与图标之间的间距 */
}









/* About Us Section */
.about-us {
    padding: 50px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.about-us h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-us p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* 在关于我们部分添加图片的样式 */
.about-image {
    width: 100%;
    max-width: 800px; /* 限制图片最大宽度 */
    height: auto;
    margin: 20px auto;  /* 上下间距，水平居中 */
    display: block;
}









/* Product Center Section */
.product-center {
    padding: 50px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.product-center h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.product-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-item {
    width: 22%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-item p {
    font-size: 16px;
    color: #555;
}

