body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    margin: 0;
    padding: 0;
    color: #333;
    padding-bottom: 80px; /* 为固定页脚留出空间 */
    padding-top: 100px; /* 为顶部固定元素留出空间 */
}

/* 商品容器与顶部保持一定距离 */
.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 10px;
    box-sizing: border-box;
}

/* 顶部固定区域 */
.top-fixed-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 网站标题样式 */
.header {
    text-align: center;
    padding: 5px 0 0 0;
    background-color: #fff;
}

.website-title {
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: bold;
}

.search-container {
    padding: 5px 20px 5px 20px;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #3498db;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 20px;
        max-width: none;
    }
}

.search-input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-id {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 10;
}

.product-images {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-images img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.prices {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.price {
    font-size: 18px;
    font-weight: 700;
}

.kigali-price-container .location-label {
    color: #e74c3c;
}

.kigali-price-container .price {
    color: #c0392b;
}

.muhanga-price-container .location-label {
    color: #3498db;
}

.muhanga-price-container .price {
    color: #2980b9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 移动端适配的模态框样式 */

.close {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    color: #ccc;
}

.image-indicators-modal {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator-modal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator-modal.active {
    background-color: white;
}

.product-title-modal {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .modal-image {
        width: 100%;
        height: 300px;
    }
    
    .product-title-modal {
        font-size: 20px;
        padding: 0 10px;
    }
    
    .prev, .next {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 98%;
        margin: 10px;
    }
    
    .modal-image {
        width: 100%;
        height: 250px;
    }
    
    .product-title-modal {
        font-size: 18px;
        padding: 0 5px;
    }
    
    .prev, .next {
        font-size: 20px;
    }
    
    .close {
        font-size: 28px;
        top: -25px;
    }
    
    .website-title {
        font-size: 24px;
    }
}

/* 联系信息页脚样式 */
.contact-info {
    text-align: center;
    padding: 5px; /* 减小页脚内边距 */
    background-color: #000000;
    color: #FFFFFF;
    font-size: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.contact-info p {
    margin: 1px 0; /* 减小段落间距 */
}