/* 详情页样式 */

.recipe-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FF6B35;
}

.breadcrumb span {
    margin: 0 8px;
}

.breadcrumb .current-page {
    color: #FF6B35;
    font-weight: 500;
}

/* 菜谱标题区域 */
.recipe-title-section {
    margin-bottom: 30px;
}

.recipe-title-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    color: #FFD700;
}

.rating-value {
    font-weight: 600;
    font-size: 16px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.recipe-save {
    display: flex;
    gap: 15px;
}

.save-button, .share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-button:hover, .share-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* 菜谱主图区域 */
.recipe-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

.recipe-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 作者信息 */
.recipe-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 14px;
    color: #666;
}

.follow-button {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #FF6B35;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.follow-button:hover {
    background-color: #e85a26;
}

/* 菜谱信息概览 */
.recipe-overview {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.overview-item i {
    font-size: 24px;
    color: #FF6B35;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-label {
    font-size: 14px;
    color: #666;
}

.item-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 菜谱内容区域 */
.recipe-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* 主内容区域 */
.recipe-main-content > div {
    margin-bottom: 40px;
}

.recipe-main-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.recipe-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 原料列表 */
.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.recipe-ingredients input[type="checkbox"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.recipe-ingredients label {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.amount {
    color: #666;
    font-size: 14px;
}

/* 烹饪步骤 */
.recipe-steps ol {
    list-style: none;
    counter-reset: step-counter;
}

.recipe-steps li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FF6B35;
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.step-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 小贴士 */
.recipe-tips ul {
    list-style-type: disc;
    padding-left: 20px;
}

.recipe-tips li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #444;
}

/* 评论区 */
.recipe-comments h2 {
    display: flex;
    align-items: center;
}

.recipe-comments h2 span {
    margin-left: 10px;
    font-size: 16px;
    color: #999;
    font-weight: normal;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
    height: 120px;
    font-size: 16px;
    margin-bottom: 15px;
    outline: none;
}

.comment-form textarea:focus {
    border-color: #FF6B35;
}

.comment-form button {
    padding: 10px 25px;
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: A5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form button:hover {
    background-color: #e85a26;
}

.comment {
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.comment-author h4 {
    font-size: 16px;
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-rating {
    margin-bottom: 10px;
    color: #FFD700;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.show-more-comments {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #FF6B35;
    text-decoration: none;
}

.show-more-comments:hover {
    text-decoration: underline;
}

/* 右侧边栏 */
.recipe-sidebar > div {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.recipe-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* 营养信息 */
.nutrition-info .per-serving {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.nutrition-name {
    font-size: 14px;
    color: #333;
}

.nutrition-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 相关推荐 */
.recommended-recipe {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recommended-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-info {
    flex: 1;
}

.recommended-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.recommended-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.recommended-meta i {
    margin-right: 5px;
}

.recommended-meta .rating i {
    color: #FFD700;
}

/* 标签 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recipe-tags-section .tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.recipe-tags-section .tag:hover {
    background-color: #FF6B35;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .recipe-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .recipe-main-image {
        height: 300px;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .recipe-save {
        width: 100%;
        justify-content: space-between;
    }
    
    .recipe-author {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .follow-button {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .recipe-title-section h1 {
        font-size: 28px;
    }
    
    .recipe-main-image {
        height: 200px;
    }
    
    .recipe-overview {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-image {
        height: 180px;
    }
} 