/* 知识库页面样式 */
.personal-knowledge-card,
.regional-recipes-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.personal-knowledge-card:hover,
.regional-recipes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.knowledge-action-btn {
    transition: all 0.2s ease;
}

.knowledge-action-btn:hover {
    background-color: #3b82f6;
    color: white;
}

/* 文章卡片样式 */
.article-card {
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-card:hover {
    background-color: #f3f4f6;
    transform: scale(1.02);
}

/* 分类按钮 */
.category-button {
    transition: all 0.2s ease;
}

.category-button.active {
    font-weight: 500;
}

/* 模态框样式 */
#knowledge-modal {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

#knowledge-modal.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* 模态框内容区域滚动样式 */
#knowledge-modal .modal-content {
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 5px;
}

#knowledge-modal .modal-content::-webkit-scrollbar {
    width: 4px;
}

#knowledge-modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#knowledge-modal .modal-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

#knowledge-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* 返回按钮样式 */
#back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#back-button:hover {
    background-color: #f0f0f0;
    transform: translateX(-2px);
}

/* 区域卡片容器样式 */
.regions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 季节卡片容器样式 */
.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Toast提示样式 */
#knowledge-toast {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

#knowledge-toast.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* 文章详情样式 */
.article-detail {
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 图片样式 */
.recipe-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* 地区食谱卡片样式 */
.recipe-region-card {
    transition: all 0.3s ease;
    font-weight: 500;
}

.recipe-region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 季节卡片样式 */
.season-recipe-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.season-recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 季节卡片特定样式 */
.season-autumn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.season-spring {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.season-summer {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.season-winter {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
}

.recipe-card {
    transition: all 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.modal-content .flex.items-center.text-sm.text-gray-500 span.cursor-pointer {
    transition: all 0.3s ease;
}

/* 轮播导航样式 */
.carousel-nav {
    margin-top: 12px;
    padding: 6px 0;
}

.carousel-nav div {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav div:hover {
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .personal-knowledge-card,
    .regional-recipes-card {
        margin-bottom: 16px;
    }
    
    .recipe-image {
        height: 100px;
    }
}

/* 食谱表格样式 */
.recipe-detail table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recipe-detail table tr:hover td {
    background-color: #f9fafb;
}

.recipe-detail table td {
    transition: background-color 0.2s ease;
}

.recipe-detail table td:first-child {
    font-weight: 500;
    color: #4b5563;
}

.recipe-detail h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

/* 知识库页面特定样式 */

/* 卡片样式 */
.knowledge-card, .region-recipe-card {
    transition: transform 0.3s ease;
}

.knowledge-card:hover, .region-recipe-card:hover {
    transform: translateY(-3px);
}

/* 笔记编辑器样式 */
.personal-knowledge-editor .note-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.personal-knowledge-editor .note-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 保存按钮样式 */
#save-note {
    background-color: #10B981;
    color: white;
    transition: all 0.2s;
}

#save-note:hover {
    background-color: #059669;
}

#save-note:active {
    transform: scale(0.98);
} 