/* 产品实力列表页样式 */

/* 页面头部 */
.product-header {
    padding: 80px 0 60px;
    text-align: center;
    background: #f8f5f0;
}

.product-header .sub-title {
    color: #8B4513;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
}

.product-header .desc {
    font-size: 14px;
    color: #666;
}

/* 分类筛选 */
.category-filter {
    padding: 30px 0;
    background: #f8f5f0;;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tab {
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    color: #666;
    background: #fff;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

/* 产品列表 */
.product-list-section {
    padding: 60px 0 80px;
    background: #f8f5f0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.product-tag {
    padding: 3px 10px;
    background: #8B4513;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.product-price {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    background: #D2691E;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.product-feature {
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 4px;
}

.product-sales {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 产品详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .product-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-close:hover {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.modal-content {
    padding: 40px;
}

.modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-image {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-info {
    flex: 1;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.modal-price {
    font-size: 20px;
    color: #D2691E;
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-features {
    margin-bottom: 30px;
}

.modal-features h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-feature {
    padding: 8px 15px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 4px;
}

.modal-nutrition {
    margin-bottom: 30px;
}

.modal-nutrition h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-nutrition p {
    font-size: 14px;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #8B4513;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #D2691E;
}

.btn-secondary {
    background: #fff;
    color: #8B4513;
    border: 1px solid #8B4513;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #f8f5f0;
}

/* 分页 */
.pagination-section {
    padding: 40px 0;
    text-align: center;
    background: #f8f5f0;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active span {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

/* 工艺特色板块 */
.craft-feature-section {
    padding: 60px 0;
    background: var(--primary-color);
    color: #fff;
}

.craft-feature-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.craft-carousel {
    flex: 0 0 50%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.craft-swiper {
    height: 350px;
}

.craft-slide-item {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.craft-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-number {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    z-index: 10;
}

.slide-caption {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    background: rgb(139 69 19 / 25%);
    color: #fff;
    padding: 20px;
}

.slide-caption h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-caption p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.craft-content {
    flex: 1;
    padding: 0 20px;
}

.craft-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
    color: #fff;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-check {
    flex: 0 0 40px;
    height: 40px;
    background: #E74C3C;
    color: #fff;
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 500;
}

.feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* 食材溯源板块 */
.ingredients-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ingredient-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ingredient-image {
    height: 200px;
    overflow: hidden;
}

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

.ingredient-card:hover .ingredient-image img {
    transform: scale(1.1);
}

.ingredient-content {
    padding: 20px;
    text-align: center;
}

.ingredient-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.ingredient-origin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: #8B4513;
    margin-bottom: 8px;
}

.ingredient-origin i {
    font-size: 12px;
}

.ingredient-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-header {
        padding: 60px 0 40px;
    }
    
    .product-header h1 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-image {
        flex: none;
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .craft-feature-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .craft-carousel {
        flex: none;
        width: 100%;
    }
    
    .craft-swiper {
        height: 280px;
    }
    
    .slide-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 20px;
        left: 20px;
    }
    
    .craft-content h2 {
        font-size: 24px;
    }
    
    .ingredients-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ingredient-image {
        height: 180px;
    }
}