/* Tailwind CSS 配置 */
@layer utilities {
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
    .hover-scale {
        transition: transform 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.05);
    }
    .card-shadow {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .card-shadow:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #2E8B57;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1f6b40;
}

/* 3D熏鸡产品容器 */
#product3DContainer {
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

/* 加载动画 */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2E8B57;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导航栏滚动效果 */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 图片轮播 */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    min-width: 100%;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.carousel-control-prev {
    left: 10px;
}
.carousel-control-next {
    right: 10px;
}

/* AI食谱推荐界面 */
.ai-recommendation {
    background: linear-gradient(135deg, #2E8B57 0%, #4CAF50 100%);
    border-radius: 12px;
    overflow: hidden;
}
.ingredient-item {
    cursor: pointer;
    transition: all 0.3s ease;
}
.ingredient-item:hover, .ingredient-item.selected {
    transform: scale(1.1);
    background-color: rgba(255, 140, 0, 0.8);
    color: white;
}
.recipe-card {
    transition: all 0.3s ease;
}
.recipe-card:hover {
    transform: translateY(-5px);
}