/* Food & Beverage 餐饮美食组件样式 */

/* 主容器样式 */
.food-beverage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 表单字段特殊样式 */
.food-beverage-form .form-group {
    margin-bottom: 20px;
}

/* 菜系类型选择器样式 */
.cuisine-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.cuisine-type-option {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cuisine-type-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cuisine-type-option.selected {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

/* 风味特点复选框组样式 */
.flavor-profile-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.flavor-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.flavor-checkbox:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.flavor-checkbox.checked {
    border-color: #f59e0b;
    background: #f59e0b;
    color: white;
}

.flavor-checkbox input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #f59e0b;
}

/* 辣度级别指示器 */
.spicy-level-container {
    position: relative;
}

.spicy-level-display {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.spicy-level-display.level-0 {
    background: #6b7280;
}

.spicy-level-display.level-1 {
    background: #f59e0b;
}

.spicy-level-display.level-2 {
    background: #f97316;
}

.spicy-level-display.level-3 {
    background: #ef4444;
}

.spicy-level-display.level-4 {
    background: #dc2626;
}

.spicy-level-display.level-5 {
    background: #991b1b;
}

/* 内容输出特殊格式化样式 */
.food-content .ingredient {
    color: #059669;
    font-weight: 500;
    background: #d1fae5;
    padding: 1px 4px;
    border-radius: 3px;
}

.food-content .amount {
    color: #dc2626;
    font-weight: 600;
    margin-left: 2px;
}

.food-content .temperature {
    color: #2563eb;
    font-weight: 500;
    background: #dbeafe;
    padding: 1px 4px;
    border-radius: 3px;
}

.food-content .time {
    color: #7c2d12;
    font-weight: 500;
    background: #fed7aa;
    padding: 1px 4px;
    border-radius: 3px;
}

/* 条件字段显示/隐藏 */
.conditional-field {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.conditional-field.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 餐厅特定字段样式 */
.restaurant-fields {
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    background: #f9fafb;
}

.restaurant-fields .field-header {
    color: #374151;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.restaurant-fields .field-header::before {
    content: "🏪";
    margin-right: 8px;
    font-size: 18px;
}

/* 食谱特定字段样式 */
.recipe-fields {
    border: 2px solid #ecfccb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    background: #f7fee7;
}

.recipe-fields .field-header {
    color: #365314;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.recipe-fields .field-header::before {
    content: "👨‍🍳";
    margin-right: 8px;
    font-size: 18px;
}

/* 美食攻略特定字段样式 */
.food-guide-fields {
    border: 2px solid #fef3c7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    background: #fffbeb;
}

.food-guide-fields .field-header {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.food-guide-fields .field-header::before {
    content: "🗺️";
    margin-right: 8px;
    font-size: 18px;
}

/* 价格档位指示器 */
.price-range-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.price-symbol {
    color: #f59e0b;
    font-weight: bold;
    font-size: 16px;
}

/* 营养分析提示 */
.nutrition-analysis {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #047857;
}

.nutrition-analysis::before {
    content: "✅ ";
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cuisine-type-selector {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .flavor-profile-group {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .flavor-checkbox {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .restaurant-fields,
    .recipe-fields,
    .food-guide-fields {
        padding: 16px;
        margin-top: 12px;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .cuisine-type-option {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .cuisine-type-option:hover {
        border-color: #60a5fa;
        background: #1e3a8a;
    }
    
    .flavor-checkbox {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .flavor-checkbox:hover {
        border-color: #fbbf24;
        background: #92400e;
    }
    
    .restaurant-fields {
        background: #1f2937;
        border-color: #374151;
    }
    
    .recipe-fields {
        background: #1f2937;
        border-color: #365314;
    }
    
    .food-guide-fields {
        background: #1f2937;
        border-color: #92400e;
    }
    
    .restaurant-fields .field-header,
    .recipe-fields .field-header,
    .food-guide-fields .field-header {
        color: #f3f4f6;
    }
} 