/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header / Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f39c12;
    padding: 15px 20px;
    color: white;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Product Section */
.products {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
}

.products h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-list {
    display: flex;
    flex-direction: column; /* Stack products vertically */
    align-items: center; /* Center them */
    gap: 20px; /* Space between products */
}

.product {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product h2 {
    font-size: 22px;
    margin: 15px 0;
}

.product p {
    font-size: 14px;
    color: #666;
}

.product button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.product button:hover {
    background-color: #e67e22;
}

/* Footer */
footer {
    background-color: #f39c12;
    color: white;
    text-align: left;
    padding: 20px;
}

.footer-menu {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
}

.footer-item h4 {
    margin-bottom: 10px;
}

.footer-item a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
}

footer p {
    margin-top: 20px;
}

/* 弹窗样式 */
.modal {
    display: none; /* 初始时隐藏弹窗 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
}

/* 弹窗内容样式 */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

/* 关闭按钮样式 */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
