/* 菜谱样式 */

/* 菜谱列表页面 */
.cook-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cook-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cook-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cook-item-content {
    padding: 15px;
}

.cook-item-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.cook-item-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cook-item-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.cook-item-link {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.cook-item-link:hover {
    background: #555;
}

/* 菜谱详情页面 */
.cook-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cook-single-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.cook-single-meta {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cook-single-content {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #333;
}

/* 图片和食材配料布局 */
.cook-layout {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.cook-image-container {
    flex: 1;
    min-width: 300px;
}

.cook-single-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.cook-ingredients-seasonings {
    flex: 1;
    min-width: 300px;
}

/* 食材和配料部分 */
.cook-ingredients, .cook-seasonings {
    margin: 0 0 5px 0;
    padding: 8px 12px 3px 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cook-ingredients h3, .cook-seasonings h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cook-ingredients ul, .cook-seasonings ul {
    list-style: none;
    padding: 0px 0px 0px 13px;
    margin: 0;
}

.cook-ingredients li, .cook-seasonings li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.cook-ingredients li:last-child, .cook-seasonings li:last-child {
    border-bottom: none;
}

.cook-ingredient-name, .cook-seasoning-name {
    font-weight: bold;
}

.cook-ingredient-quantity, .cook-seasoning-quantity {
    color: #666;
}

.cook-single-content {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #333;
    margin: 0px 0 13px 0;
    padding: 15px 12px 15px 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* 步骤部分 */
.cook-steps {
    margin: 5px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cook-steps h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cook-step {
    margin: 8px 0;
    padding: 10px 8px 5px 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cook-step h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.cook-step-content {
    line-height: 1.6;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cook-list {
        grid-template-columns: 1fr;
    }
    
    .cook-single {
        padding: 15px;
    }
    
    .cook-single-image {
        height: 250px;
    }
    
    .cook-single-title {
        font-size: 20px;
    }
    
    .cook-layout {
        flex-direction: column;
    }
}

/* 调整taoswin高度 */
#taoswin {
    height: calc(100% - 30px) !important;
}

/* 标题栏样式 */
.taoswin_title.page-taoswin_title.ui-draggable-handle {
    background-color: #ececec;
}

span.taoswin_title_text.taoswin_page_title_text {
    color: #5b5b5b;
    text-shadow: 0px 0px 0.5px #606060;
}
