/* 全局样式 */
body {
    background-color: #f7f7f7;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    border-bottom: 1px solid #f0f0f0;
    height: 60px;
}

.navbar-brand {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-item h1.title {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #3273dc, #36D1DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 卡片基础样式 */
.card {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
}

.card-header-title {
    font-size: 1.1rem;
}

/* 作者信息卡片样式 */
.author-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-details {
    flex: 1;
    min-width: 0;
}

.author-details .title {
    margin-bottom: 0.75rem !important;
}

.author-details .title a {
    color: #363636;
    transition: color 0.3s ease;
}

.author-details .title a:hover {
    color: #3273dc;
}

.author-details .subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem !important;
    word-break: break-word;
}

/* 文章列表样式 */
.article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
    border-bottom: none;
}

/* 缩略图样式 */
.article-thumb {
    width: 160px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 媒体内容统一样式 */
.media-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.media-content h2.title {
    line-height: 1.4;
    margin-bottom: 0.75rem !important;
}

.media-content h2.title a {
    color: #363636;
    transition: color 0.3s ease;
}

.media-content h2.title a:hover {
    color: #3273dc;
}

.media-content a {
    color: #4a4a4a;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-content a:hover {
    color: #3273dc;
}

/* 评论样式 */
.comments .media {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comments .media:last-child {
    border-bottom: none;
}

.replies {
    background: #f8f9fa;
    box-shadow: none;
    padding: 1rem;
}

.reply-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.reply-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reply-item:first-child {
    padding-top: 0;
}

/* 页脚样式 */
.footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 3rem 1.5rem;
}

.footer a {
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #3273dc;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 导航栏 */
    .navbar {
        height: 50px;
    }
    
    .navbar-item h1.title {
        font-size: 1.25rem;
    }
    
    /* 作者信息 */
    .author-info {
        gap: 0.75rem;
    }
    
    .author-details .title {
        font-size: 1rem !important;
    }
    
    .author-details .subtitle {
        font-size: 0.85rem;
    }
    
    /* 文章列表 */
    .article-thumb {
        width: 100px;
        height: 70px;
    }
    
    .media-content {
        font-size: 0.9rem;
    }
    
    .media-content h2.title {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem;
    }
    
    /* 评论 */
    .comments .media {
        padding: 1rem 0;
    }
    
    .replies {
        padding: 0.75rem;
    }
    
    .reply-item {
        padding: 0.5rem 0;
    }
    
    .image.is-48x48 {
        width: 36px;
        height: 36px;
    }
    
    /* 布局 */
    .container {
        padding: 0 10px;
    }
    
    .columns {
        margin-top: 0;
    }
    
    .column {
        padding: 10px;
    }
    
    .column.is-8,
    .column.is-4 {
        width: 100% !important;
    }
    
    /* 页脚 */
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

/* 标题和副标题间距调整 */
.media-content .title {
    margin-bottom: 0.75rem !important;
}

.media-content .subtitle {
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* 作者信息卡片样式调整 */
.author-details .title {
    margin-bottom: 0.75rem !important;
}

.author-details .subtitle {
    margin-top: 0.5rem !important;
}

/* 文章内容页面的标题间距 */
.content h1.title {
    margin-bottom: 1rem !important;
}

.content .subtitle {
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
}