﻿/*body {
    font-family: Arial, sans-serif;
}*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.navbar {
    background-color: #f8f9fa;
}

/* 确保导航栏右侧选项始终可见 */
.navbar-nav.me-auto {
    flex-grow: 0;
}

.navbar-nav:last-child {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* 大屏幕（桌面）：并排显示9到10个图标，保持在容器内 */
@media screen and (min-width: 1024px) {
    .categories {
        overflow-x: hidden; /* 确保大屏幕不滚动 */
    }
}

/* 小屏幕（移动设备）：强制横向滚动 */
@media screen and (max-width: 1023px) {
    .category-wrapper {
        overflow-x: auto; /* 启用横向滚动 */
        -webkit-overflow-scrolling: touch; /* 更好的移动端滚动体验 */
    }

 /*   .categories {
        padding: 10px 0;
    }

        .categories::-webkit-scrollbar {
            display: none; 
        }

    .category {
        margin-right: 15px; 
    }

        .category:last-child {
            margin-right: 0;
        }*/
}

@media (max-width: 768px) {
    .navbar-nav:last-child {
        position: static;
        transform: none;
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .navbar-collapse {
        flex-grow: 0;
    }

    .promotion-card, .product-card {
        margin-bottom: 15px;
    }

 /*   .categories {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        margin: 10px 0;
    }
    .icon {
        width: 80px;
        height: 80px;
    }

    .category {
        width: 100px;
    }

        .category span {
            font-size: 0.8em;
        }*/
}
@media (min-width: 768px) {
    .carousel-control-prev, .carousel-control-next {
        display: block; /* 在桌面设备上显示箭头 */
    }
}

.banner {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
}

.promotion-card, .product-card {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

    .promotion-card img, .product-card img {
        max-width: 100%;
        height: auto;
    }

.rating {
    color: #ffc107;
}

.categories {
    margin-top: 20px;
}

.category-card {
    text-align: center;
    margin: 10px;
}

    .category-card img {
        border-radius: 50%;
        max-width: 100px;
        height: auto;
    }

.footer-banner {
    background-color: #333;
    color: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}
/* Carousel样式 */
.carousel {
    margin-bottom: 20px;
}

.banner {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.carousel-indicators {
    bottom: -30px; /* 调整导航点位置 */
}

    .carousel-indicators button {
        background-color: #ffc107 !important; /* 移除背景颜色，使用透明背景 */
        border: 2px solid #666; /* 添加灰色边框，方便在白色底色上可见 */
        border-radius: 50%;
        width: 12px;
        height: 12px;
        margin: 0 5px;
        opacity: 0.7; /* 稍微降低透明度，使其更柔和 */
    }

    .carousel-indicators .active {
        background-color: #ff0000 !important; /* 活动状态为红色填充 */
        border: 2px solid #ff0000; /* 匹配活动状态的边框颜色 */
        opacity: 1; /* 活动状态完全不透明 */
    }

/* 隐藏左右箭头，仅在桌面显示 */
.carousel-control-prev, .carousel-control-next {
    display: none; /* 隐藏箭头，或者根据需要调整 */
}


/* 手机上优化滑动体验 */
.carousel-inner {
    touch-action: pan-x; /* 确保支持水平滑动 */
}

.container .row.mb-4 {
    padding: 20px 0;
}

    .container .row.mb-4 h2 {
        color: #333;
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .container .row.mb-4 p {
        color: #666;
        margin-bottom: 20px;
    }

.category-wrapper {
    width: 100%;
    overflow-x: hidden; /* 防止意外的横向滚动 */
    margin: 0 -10px; /* 调整与 Bootstrap 列的间距 */
}

.categories {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* 改为从左到右对齐 */
    flex-wrap: nowrap; /* 始终不换行，确保大屏幕和小屏幕都并排 */
    padding: 10px 0;
}

/* 每个类别项的样式 */
.category {
    text-align: center;
    width: 120px; /* 固定宽度以确保图标大小一致 */
    flex: 0 0 auto; /* 确保每个项固定宽度，不拉伸 */
    margin: 0 10px; /* 调整与 Bootstrap 列的间距 */
}

.icon {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* 圆形图标 */
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}

.category span {
    display: block;
    font-size: 0.9em;
    color: #333;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏溢出的文字 */
    text-overflow: ellipsis; /* 用省略号表示溢出 */
}

/* 鼠标悬停效果 */
.category:hover .icon {
    transform: scale(1.1);
}
/*productos*/
.header-section {
      background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    min-height: 150px;
    position: relative;
    overflow: hidden;

}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.1"><path fill="white" d="M50 20h100v30H50zM20 60h160v30H20zM40 100h120v30H40zM60 140h80v30H60z"/></svg>');
    background-repeat: repeat;
    z-index: 0;
}

.display-4 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    font-family: 'Arial', sans-serif; /* 可根据需要更换字体 */
    animation: fadeIn 1.5s ease-in-out;
}

.z-1 {
    z-index: 1; /* 确保文字在覆盖层之上 */
}

@keyframes glow {
    0% {
        background-position: 0% 0%;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    100% {
        background-position: 100% 0%;
        text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-section {
        min-height: 120px;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

