/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 2.0;
    color: #3E4C49;
}

/* 头部样式 */
header {
    background: linear-gradient(45deg, #3E4C49, #3E4C49);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 130px;
    padding: 20px 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

header p {
    font-size: 1em;
    margin-bottom: 0px;
    margin-top:0;
}

.btn {
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e60008;
}

/* 导航栏样式 */
nav {
    background-color: #333;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 20px 10px;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3E4C49;
}

/* 主体内容样式 */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

section p {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
	justify-content: center;
}

/* 产品中心样式 */
.product-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.product {
    width: 300px;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-10px);
}

.product img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 关于我们样式 */
#about {
    background-color: #f9f9f9;
}

/* 联系我们样式 */
#contact form {
    max-width: 600px;
    margin: 0 auto;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 8px;
}
html {
    scroll-behavior: smooth;
}


.flex-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    align-items: center; /* 垂直居中对齐 */
	justify-content: center;
    gap: 20px; /* 图片和文字之间的间距 */
}

.flex-container img {
    flex: 0 0 auto; /* 图片不伸缩 */
}

.flex-container p {
    flex: 1; /* 文字部分占据剩余空间 */
}


/* 定义返回顶部按钮的样式 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #E4E1DF; /* 半透明背景 */
    backdrop-filter: blur(40px); /* 磨砂效果 */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #3E4C49;
    cursor: pointer;
    display: none;
    outline: none;
    margin-bottom: 70px;
    margin-right: 70px;
}

#back-to-top:hover {
    background-color: rgba(50, 42, 42, 0.1); /* 鼠标悬停时背景更不透明 */
}

.welcome-section {
    background-image: url('../source/hdforest33.jpg');
    background-size: cover;
    background-position: center;
}

.white-text {
    color: white;
    text-align: left;
}


.onlineshop{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.shopicon{
	margin: 15px;
}