/* 商城主样式 */
:root {
    --primary-color: #405c70;
    --secondary-color: #5d7b93;
    --accent-color: #f8b400;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #333;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 1200px;
    margin: 0 auto;
	padding: 0 15px 50px; /* 为底部按钮留空间 */
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    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: calc(25% - 15px);
    margin-bottom: 25px;
    text-align: center;
}

.product-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 81.25%; /* 16:13 长宽比 */
    overflow: hidden;
    background-color: white;
    margin-bottom: 10px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 16px;
    margin-top: 5px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 底部样式 */
footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.about-section {
    margin-bottom: 25px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.friend-links a {
    margin-right: 15px;
    color: var(--primary-color);
    text-decoration: none;
}

.copyright {
    font-size: 14px;
    color: #777;
}

/* 产品页面样式 */
.product-content {
    margin-bottom: 30px;
}

.product-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.related-products {
    margin-top: 40px;
}

.related-products h2 {
    margin-bottom: 15px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
}

.related-links a {
    margin-right: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-decoration: none;
}

/* 底部订单栏 */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: flex;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
}

.home-btn {
    width: 20%;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.home-btn:hover {
    background: #e6a700;
}

.product-btn {
    width: 80%;
    background: transparent;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .product-item {
        width: 100%;
    }
    
    .pagination a {
        padding: 6px 12px;
        margin: 0 2px;
    }
}