
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
	padding: 0 15px 55px;
}

a {
    text-decoration: none;
    color: #9400D3;
}

a:hover {
    text-decoration: underline;
}

/* 顶部样式 */
header {
    background-color: #9400D3;
    color: white;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 25px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

/* 产品列表样式 */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.product-item {
    width: 23%;
    margin-bottom: 25px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-link {
    display: block;
    color: #333;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 81.25%; /* 16:13 长宽比 */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    color: #9400D3;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #9400D3;
    color: white;
    border-color: #9400D3;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* 产品页面样式 */
.product-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.product-content h1 {
    color: #9400D3;
    margin-bottom: 20px;
    font-size: 28px;
}

.product-content h2 {
    color: #6a0dad;
    margin: 25px 0 15px;
    font-size: 22px;
}

.product-content p {
    margin-bottom: 25px;
}

.product-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 相关内容样式 */
.related-products {
    margin-top: 30px;
}

.related-products h3 {
    color: #9400D3;
    margin-bottom: 15px;
    font-size: 20px;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-list a {
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
}

.related-list a:hover {
    background: #9400D3;
    color: white;
    text-decoration: none;
}

/* 底部样式 */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.about-us {
    margin-bottom: 25px;
}

.about-us h3 {
    color: #9400D3;
    margin-bottom: 15px;
    font-size: 20px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.friend-links a {
    color: #6a0dad;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 底部订单栏 */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient(90deg, #9400D3, #4B0082);
    display: flex;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.home-btn {
    width: 20%;
    background: linear-gradient(90deg, #FF8C00, #FF4500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    text-decoration: none;
}

.product-btn {
    width: 80%;
    background: linear-gradient(90deg, #9400D3, #4B0082);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: linear-gradient(90deg, #4B0082, #9400D3);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-item {
        width: 48%;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .pagination a {
        padding: 6px 12px;
        margin: 0 3px;
    }
    
    .order-bar {
        height: 50px;
    }
    
    .product-btn {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-item {
        width: 100%;
    }
    
    .pagination a {
        padding: 4px 8px;
        margin: 0 2px;
    }
    
    .order-bar {
        height: 45px;
    }
    
    .product-btn {
        font-size: 16px;
    }
}
