/* 
 Theme Name:   驾驭网络子主题
 Theme URI:    
 Description:  这是驾驭网络子主题
 Author:       Guangzhou Jiayu wangluokeji Co., Ltd.
 Author URI:   https://yanshi.jiangjunwangluo.top
 Template:     woostify
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* 轮播图区块样式 */
.banner-carousel-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    padding: 60px 40px 40px;
    color: #ffffff;
    z-index: 3;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

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

.carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.3);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图响应式设计 */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 400px;
    }
    
    .slide-content {
        padding: 40px 20px 30px;
    }
    
    .slide-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 300px;
    }
    
    .slide-content {
        padding: 30px 15px 20px;
    }
    
    .slide-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .slide-subtitle {
        font-size: 14px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 食品分类区块样式 */
.food-categories-section {
    padding: 40px 15px;
    background-color: #ffffff;
}

.food-categories-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.food-categories-section .section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.food-categories-section .categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 10px;
}

.food-categories-section .category-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.food-categories-section .category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.food-categories-section .category-image {
    width: 100%;
    padding-top: 100%; /* 1:1 比例 */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.food-categories-section .category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-categories-section .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.food-categories-section .placeholder-icon {
    font-size: 32px;
    color: #6c757d;
    font-weight: bold;
}

.food-categories-section .category-name {
    text-align: center;
    font-size: 13px;
    color: #212529;
    padding: 10px 8px;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

/* 电脑端样式 - 5列3排 */
@media (min-width: 768px) {
    .food-categories-section {
        padding: 60px 20px;
    }
    
    .food-categories-section .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .food-categories-section .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        padding: 0;
    }
    
    .food-categories-section .category-name {
        font-size: 14px;
        padding: 12px 10px;
    }
}

/* 平板端样式 */
@media (min-width: 481px) and (max-width: 767px) {
    .food-categories-section .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* 精选商品区块样式 */
.featured-products-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.featured-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-products-section .header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-products-section .section-subtitle {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

.featured-products-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

.featured-products-section .header-right {
    display: flex;
    align-items: center;
}

.featured-products-section .section-note {
    font-size: 14px;
    color: #6c757d;
}

.featured-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-products-section .product-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.featured-products-section .product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 比例 */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.featured-products-section .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-products-section .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.featured-products-section .placeholder-icon {
    font-size: 48px;
    opacity: 0.3;
}

.featured-products-section .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-products-section .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    min-height: 44px;
}

.featured-products-section .product-price {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin: 0;
}

.featured-products-section .product-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.featured-products-section .product-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 精选商品区块响应式设计 */
@media (max-width: 1024px) {
    .featured-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-products-section {
        padding: 40px 15px;
    }
    
    .featured-products-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-products-section .section-title {
        font-size: 26px;
    }
    
    .featured-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .featured-products-section .section-title {
        font-size: 22px;
    }
    
    .featured-products-section .products-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-products-section .product-info {
        padding: 12px;
    }
    
    .featured-products-section .product-title {
        font-size: 14px;
        min-height: auto;
    }
    
    .featured-products-section .product-price {
        font-size: 16px;
    }
}

/* 服务与产品区块样式 */
.services-products-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.services-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-products-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
}

.services-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-card .card-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .card-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.service-card .card-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .services-products-section {
        padding: 40px 15px;
    }
    
    .services-products-section .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .services-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .services-products-section .section-title {
        font-size: 22px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card .card-title {
        font-size: 18px;
    }
}

