
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333333;
    background-color: #fff;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #FF6B6B;
    text-decoration: none;
}

a:hover {
    color: #007CB0;
    font-weight: bold;
    text-decoration: underline;
}

/* 头部样式 */
.header {
    background-color: #007CB0;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 产品图片容器 - 保持1:1比例 */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: white;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-item {
    margin: 5px;
}

.page-link {
    display: block;
    padding: 8px 16px;
    background-color: #5D9CEC;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.page-link:hover, .current-page {
    background-color: #007CB0;
}

/* 内容页样式 */
.product-header {
    text-align: center;
    margin: 30px 0;
}

.product-title {
    font-size: 2.2rem;
    color: #007CB0;
    margin-bottom: 15px;
}

.product-image-full {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 8px;
}

.product-content {
    margin: 40px 0;
}

.product-content p {
    margin-bottom: 25px;
}

/* 相关产品 */
.related-products {
    background-color: #F8F9FA;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.section-title {
    font-size: 1.5rem;
    color: #007CB0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B6B;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.related-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 底部样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #FF6B6B;
}

.about-text {
    line-height: 1.8;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-link {
    color: #ddd;
    text-decoration: none;
}

.friend-link:hover {
    color: #FF6B6B;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a506b;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* 底部按钮栏 */
.order-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    z-index: 1000;
}

.home-btn {
    flex: 2;
    background: linear-gradient(135deg, #FF6B6B, #ff8e8e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.home-btn:hover {
    background: linear-gradient(135deg, #e55b5b, #ff8e8e);
    font-size: 1.15rem;
}

.product-btn {
    flex: 8;
    background: linear-gradient(135deg, #007CB0, #5D9CEC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.product-btn:hover {
    background: linear-gradient(135deg, #006a9c, #5D9CEC);
    font-size: 1.25rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-section {
        flex: 100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
}
