/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Header section */
.main-header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center; /* 垂直居中对齐图片和文字 */
}

.logo img {
    display: inline-block;
}

.logo h1 {
    margin: 0;
    font-size: 2rem;
    margin-right: 10px; /* 添加一些间距让文字和图片不紧贴 */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero section */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
}

.btn:hover {
    background-color: #45a049;
}

/* About section */
.about-section {
    padding: 50px;
    background-color: #fff;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Products section */
.products-section {
    padding: 50px;
    background-color: #f4f4f4;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.product-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.smallfont{
    font-size: xx-small;
}
.product-item {
    background-color: white;
    
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-item h3 {
    font-size: 1.5rem;
    margin-top: 15px;
}

.product-item p {
    font-size: 1rem;
    margin-top: 10px;
}

/* Contact section */
.contact-section {
    padding: 50px;
    background-color: #fff;
    text-align: center;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.qrcode {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}