/* ========== 美食页面增强样式 ========== */

/* 美食卡片容器 */
.food-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}


.food-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}


/* 美食图片区域 - 优化尺寸 */
.food-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}


.food-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.food-card:hover .food-image-container img {
    transform: scale(1.06);
}


.food-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.food-card:hover .food-overlay {
    opacity: 1;
}

/* 美食徽章 */
.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #1f2937;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 2;
    border: 1.5px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rating-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(251, 191, 36, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.food-card:hover .rating-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(251, 191, 36, 0.5);
}

.food-card:hover .rating-badge::before {
    left: 100%;
}

.rating-badge i {
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
    animation: starPulse 2s ease-in-out infinite;
}

.rating-badge span {
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.price-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    backdrop-filter: blur(12px);
    color: white;
    border-radius: 18px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
    max-width: calc(100% - 2rem);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.price-label-small {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.5s ease;
}

.food-card:hover .price-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.food-card:hover .price-badge::before {
    left: 100%;
}

.price-amount {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: baseline;
}

.price-amount::before {
    content: '¥';
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 1px;
    opacity: 0.9;
}

.price-unit {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: 0.3px;
    margin-left: 0.15rem;
    display: inline;
}
}

.price-text {
    font-size: 0.938rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}



/* 美食内容区域 */
.food-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* 美食标题 - 优化样式 */
.food-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
}


.food-title i {
    color: #10b981;
    font-size: 1.4rem;
    flex-shrink: 0;
}


/* 美食描述 - 优化排版 */
.food-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 营养信息区域 */
.nutrition-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 3px solid #10b981;
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
}


.nutrition-info h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #047857;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.nutrition-info h6 i {
    color: #10b981;
    font-size: 1rem;
}


.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}


.nutrition-item {
    text-align: center;
    padding: 0.6rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}


.nutrition-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}


.nutrition-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.25rem;
    line-height: 1;
}


.nutrition-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}


/* 食材区域 */
.ingredients-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 0.9rem;
    margin-top: auto;
}


.ingredients-section h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.ingredients-section h6 i {
    color: #f59e0b;
    font-size: 1rem;
}


.ingredient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}


.ingredient-tag {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}


.ingredient-tag:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
    transform: translateY(-1px);
}


/* 品尝建议区域 - 现代化升级 */
.tasting-suggestions {
    background: #ffffff;
    border-radius: 28px;
    padding: 4.5rem 3rem;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tasting-suggestions::before {
    display: none;
}

.tasting-suggestions .text-center {
    position: relative;
    z-index: 2;
    margin-bottom: 3.5rem;
}

.tasting-suggestions h2.neon-text {
    font-size: 2.6rem;
    font-weight: 900;
    color: #1f2937;
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
    text-shadow: none;
}

.tasting-suggestions .text-white {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0 1.5rem;
    position: relative;
    z-index: 2;
}

.suggestion-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.suggestion-card:hover::before {
    opacity: 1;
}

.suggestion-card:hover {
    background: #ffffff;
    border-color: #10b981;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.suggestion-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #059669;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    position: relative;
}

.suggestion-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    opacity: 0;
    transition: all 0.4s ease;
}

.suggestion-card:hover .suggestion-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #059669;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.suggestion-card:hover .suggestion-icon::after {
    opacity: 1;
    inset: -12px;
}

.suggestion-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.suggestion-text {
    font-size: 0.938rem;
    line-height: 1.7;
    color: #6b7280;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tasting-suggestions {
        padding: 4rem 2.5rem;
    }
    
    .suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 991px) {
    .food-image-container {
        height: 280px;
    }
    
    .food-title {
        font-size: 1.5rem;
    }
    
    .food-title i {
        font-size: 1.75rem;
    }
    
    .food-content {
        padding: 1.75rem;
    }
    
    .tasting-suggestions {
        padding: 3.5rem 2rem;
        border-radius: 28px;
    }
    
    .tasting-suggestions h2.neon-text {
        font-size: 2.5rem;
    }
    
    .suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .suggestion-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .food-image-container {
        height: 240px;
    }
    
    .food-title {
        font-size: 1.375rem;
    }
    
    .food-title i {
        font-size: 1.5rem;
    }
    
    .food-content {
        padding: 1.5rem;
    }
    
    .food-description {
        font-size: 1rem;
    }
    
    .nutrition-info,
    .ingredients-section {
        padding: 1.25rem;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .nutrition-value {
        font-size: 1.25rem;
    }
    
    /* 移动端价格徽章优化 */
    .price-badge {
        bottom: 0.875rem;
        left: 0.875rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.813rem;
        border-radius: 16px;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .price-amount::before {
        font-size: 0.688rem;
    }
    
    .price-unit {
        font-size: 0.688rem;
    }
    
    .price-text {
        font-size: 0.875rem;
    }
    
    /* 移动端评分徽章优化 */
    .rating-badge {
        top: 0.875rem;
        right: 0.875rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.813rem;
        border-radius: 16px;
    }
    
    .rating-badge i {
        font-size: 0.938rem;
    }
    
    .tasting-suggestions {
        padding: 3rem 1.5rem;
        border-radius: 24px;
        margin: 4rem 0;
    }
    
    .tasting-suggestions h2.neon-text {
        font-size: 2rem;
    }
    
    .tasting-suggestions .text-white {
        font-size: 1.0625rem;
    }
    
    .suggestion-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .suggestion-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }
    
    .suggestion-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .suggestion-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .suggestion-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* 空状态样式 */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1.0625rem;
    color: #9ca3af;
}
