/**
 * 主题美化增强样式
 * Jz52_newthree 主题专用
 */

/* ==================== 1. 颜色和背景增强 ==================== */

/* 渐变背景 */
html {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f7 100%);
}

/* 卡片增强背景 */
.card {
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏渐变增强 */
.navbar-main {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 12px rgba(50, 115, 220, 0.08);
}

/* 链接颜色优化 */
a {
    color: #3273dc;
    transition: color 0.3s ease;
}

a:hover {
    color: #205bbc;
}

/* ==================== 2. 卡片美化 ==================== */

/* 卡片悬停阴影效果 */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(50, 115, 220, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: rgba(50, 115, 220, 0.15);
}

/* 文章卡片图片放大效果 */
.card .card-image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card .card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

/* 卡片内容区域 */
.card .card-content {
    padding: 1.5rem;
}

/* ==================== 3. 标题和排版优化 ==================== */

/* 文章标题 */
.article .title {
    color: #1a1a2e;
    font-weight: 700;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.article .title a:hover {
    color: #3273dc;
}

/* 标题悬停效果 */
.article h2.title a,
.article h3.title a {
    background: linear-gradient(0deg, transparent 60%, rgba(50, 115, 220, 0.1) 0%) no-repeat right bottom;
    background-size: 0% 2px;
    transition: background-size 0.4s ease;
}

.article h2.title a:hover,
.article h3.title a:hover {
    background-size: 100% 2px;
    background-position: left bottom;
}

/* 元信息样式 */
.article-meta {
    color: #8c8c8c;
    font-size: 0.85rem;
}

.article-meta a {
    color: #5a5a5a;
    font-weight: 500;
}

.article-meta a:hover {
    color: #3273dc;
}

/* 文章内容排版 */
.article .content {
    line-height: 1.85;
    color: #3a3a4a;
}

.article .content p {
    margin-bottom: 1.25em;
}

/* 代码块美化 */
.article .content code {
    background: linear-gradient(135deg, #f6f8fa 0%, #f0f2f5 100%);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-size: 0.9em;
    color: #e83e8c;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.article .content pre {
    background: linear-gradient(135deg, #1e1e2e 0%, #282a36 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5em 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.article .content pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
    border: none;
}

/* 引用块美化 */
.article .content blockquote {
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f4ff 100%);
    border-left: 4px solid #3273dc;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(50, 115, 220, 0.08);
}

.article .content blockquote p:last-child {
    margin-bottom: 0;
}

/* ==================== 4. 导航栏美化 ==================== */

/* 导航项悬停效果 */
.navbar-main .navbar-item {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-main .navbar-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3273dc, #5a9fff);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar-main .navbar-item:hover::after,
.navbar-main .navbar-item.is-active::after {
    width: calc(100% - 1.5rem);
}

/* 导航菜单项 */
.navbar-main ul li a {
    color: #3a3a4a;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.navbar-main ul li a:hover,
.navbar-main ul li:hover a {
    color: #3273dc;
    background: rgba(50, 115, 220, 0.06);
}

/* ==================== 5. 按钮美化 ==================== */

/* 主按钮 */
.button.is-primary {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(50, 115, 220, 0.3);
    transition: all 0.3s ease;
}

.button.is-primary:hover {
    background: linear-gradient(135deg, #4a8aff 0%, #3273dc 100%);
    box-shadow: 0 6px 20px rgba(50, 115, 220, 0.4);
    transform: translateY(-2px);
}

/* 文章详情按钮 */
.article-more {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(50, 115, 220, 0.25);
    transition: all 0.3s ease;
}

.article-more:hover {
    background: linear-gradient(135deg, #4a8aff 0%, #3273dc 100%);
    box-shadow: 0 6px 20px rgba(50, 115, 220, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

/* ==================== 6. 侧边栏美化 ==================== */

/* 小部件卡片 */
.widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.widget:hover {
    box-shadow: 0 8px 30px rgba(50, 115, 220, 0.1);
    transform: translateY(-2px);
}

/* 菜单标签 */
.menu-label {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3273dc;
    display: inline-block;
    margin-bottom: 1rem !important;
}

/* 菜单列表项 */
.menu-list a {
    color: #5a5a6a;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.menu-list a:hover {
    background: linear-gradient(135deg, rgba(50, 115, 220, 0.08) 0%, rgba(50, 115, 220, 0.04) 100%);
    color: #3273dc;
    padding-left: 1.25rem;
}

/* 标签样式 */
.tag {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    color: #3273dc;
    border-radius: 20px;
    padding: 0.35em 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(50, 115, 220, 0.1);
}

.tag:hover {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(50, 115, 220, 0.25);
}

/* 侧边栏头像卡片 */
.widget[data-type="profile"] .avatar {
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.widget[data-type="profile"]:hover .avatar {
    transform: scale(1.05);
}

/* ==================== 7. 分页美化 ==================== */

.pagination .pagination-link,
.pagination .pagination-previous,
.pagination .pagination-next {
    border: none;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pagination .pagination-link:hover,
.pagination .pagination-previous:hover,
.pagination .pagination-next:hover {
    background: #3273dc;
    color: #fff;
    box-shadow: 0 4px 16px rgba(50, 115, 220, 0.3);
    transform: translateY(-2px);
}

.pagination .pagination-link.is-current {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    box-shadow: 0 4px 16px rgba(50, 115, 220, 0.3);
}

/* ==================== 8. 页脚美化 ==================== */

.footer {
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3rem 1.5rem;
}

/* ==================== 9. 动效增强 ==================== */

/* 页面淡入动画 */
.fadebox {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章卡片依次动画 */
.card {
    animation: cardFadeIn 0.5s ease-out forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3273dc, #5a9fff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4a8aff, #3273dc);
}

/* ==================== 10. 搜索框美化 ==================== */

.searchbox .searchbox-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.searchbox .searchbox-header {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.searchbox .searchbox-input {
    background: transparent;
    color: #fff;
}

.searchbox .searchbox-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== 11. 回到顶部按钮增强 ==================== */

#back-to-top {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    box-shadow: 0 4px 16px rgba(50, 115, 220, 0.4);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: linear-gradient(135deg, #4a8aff 0%, #3273dc 100%);
    box-shadow: 0 8px 24px rgba(50, 115, 220, 0.5);
    transform: translateY(-4px);
}

/* ==================== 12. 文章标签 ==================== */

.article-tags a {
    color: #5a5a6a;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.article-tags a:hover {
    background: linear-gradient(135deg, #3273dc 0%, #4a8aff 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(50, 115, 220, 0.25);
}

/* ==================== 响应式优化 ==================== */

@media screen and (max-width: 768px) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(50, 115, 220, 0.1);
    }

    .navbar-main .navbar-item::after {
        display: none;
    }

    .article .content {
        font-size: 1rem;
        line-height: 1.8;
    }
}
