.carousel {
    position: relative;
    max-width: auto;
    margin: auto;
    overflow: hidden;
    padding-top: 2rem;
    border-radius: 16px; /* 添加圆角 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    margin-bottom: 2rem; /* 增加底部间距 */
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); /* 更平滑的动画 */
    border-radius: 16px; /* 保持圆角 */
}

.carousel-item {
    min-width: 100%;
    position: relative;
    border-radius: 16px; /* 保持圆角 */
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 16px; /* 保持圆角 */
    transition: transform 0.5s ease; /* 添加缩放过渡 */
}

.carousel-caption {
    position: absolute;
    bottom: 40px; /* 提高位置 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* 更深的背景 */
    padding: 15px 30px; /* 增加内边距 */
    border-radius: 30px; /* 更大的圆角 */
    font-size: 1.5rem; /* 更大的字体 */
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 文字阴影 */
    backdrop-filter: blur(4px); /* 背景模糊效果 */
    max-width: 80%; /* 限制最大宽度 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); /* 浅色背景 */
    color: #333; /* 深色图标 */
    padding: 12px 16px; /* 调整大小 */
    cursor: pointer;
    border: none;
    z-index: 1;
    border-radius: 50%; /* 圆形按钮 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    font-size: 1.2rem;
    transition: all 0.3s ease; /* 添加过渡效果 */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: white; /* 悬停时变白色 */
    transform: translateY(-50%) scale(1.1); /* 悬停放大 */
}

.carousel-control.prev {
    left: 20px; /* 增加左侧距离 */
}

.carousel-control.next {
    right: 20px; /* 增加右侧距离 */
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px; /* 增加间距 */
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3); /* 半透明背景 */
    border-radius: 30px; /* 圆角容器 */
}

.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6); /* 半透明白色 */
    cursor: pointer;
    border: none;
    transition: all 0.3s ease; /* 添加过渡效果 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2); /* 激活状态放大 */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* 发光效果 */
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.9); /* 悬停变亮 */
    transform: scale(1.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px; /* 调整移动端高度 */
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 1.1rem;
        border-radius: 20px;
    }
    
    .carousel-control {
        padding: 8px 12px;
        width: 36px;
        height: 36px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .card-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        font-size: 0.9rem;
        bottom: 15px;
    }
}

/* 卡片容器优化 */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* 增加间距 */
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* 卡片样式优化 - 美食主题 */
.card {
    background: #fff;
    border-radius: 16px; /* 更大的圆角 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */
    padding: 1.5rem;
    transition: all 0.3s ease; /* 添加过渡效果 */
    overflow: hidden; /* 隐藏溢出的内容 */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05); /* 添加细边框 */
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, #fff, #f9f9f9); /* 添加渐变背景 */
}

/* 卡片顶部装饰 - 美食主题 */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee); /* 多彩渐变 */
    z-index: 1;
}

/* 响应式图片优化 */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px; /* 更大的圆角 */
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease; /* 添加缩放过渡 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 图片阴影 */
    position: relative;
    z-index: 2;
}

/* 文字内容优化 */
.card-title {
    font-size: 1.4rem;
    color: #d35400; /* 暖色调标题 */
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

/* 标题下划线装饰 */
.card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e74c3c; /* 红色下划线 */
    border-radius: 2px;
}

.card-desc {
    font-size: 0.95rem;
    color: #555; /* 更深的灰色 */
    line-height: 1.7; /* 增加行高 */
    margin-bottom: 1.5rem;
    flex-grow: 1; /* 让描述占据剩余空间 */
}

/* 按钮样式优化 - 美食主题 */
.card-button {
    display: block;
    padding: 0.8rem;
    background: linear-gradient(to right, #e74c3c, #c0392b); /* 红色渐变 */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 按钮悬停效果 */
.card-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #c0392b, #e74c3c);
    transition: all 0.4s ease;
    z-index: -1;
}

.card-button:hover::before {
    width: 100%;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); /* 红色阴影 */
}

/* 交互效果优化 */
.card:hover {
    transform: translateY(-8px); /* 增加悬停上移距离 */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* 悬停时增加阴影 */
}

.card:hover .card-img {
    transform: scale(1.03); /* 悬停时图片轻微放大 */
}

/* 添加美食图标装饰 */
.card::after {
    content: "🍴";
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    opacity: 0.1;
    z-index: 0;
}

/* 移动端优化 */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr); /* 中等屏幕显示3列 */
    }
}

@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕显示2列 */
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .card {
        margin: 1rem 0;
    }
    
    .card-img {
        height: 220px; /* 移动端增加图片高度 */
    }
}