/* 文章标题卡片样式 - 与关于页面技术栈卡片风格一致 */

/* 文章标题卡片容器 - 与博客背景一致 */
.article-title-card {
    padding: 2rem;
    margin: 2rem 0;
}

.article-title-card:hover {
    /* 保持与ios-book-theme.css中一致的样式 */
}

/* 文章标题样式已移至title-styles.css */

/* 文章元数据样式 */
.article-sub-header {
    font-size: 1rem;
    color: #1D1D1F;
    margin-bottom: 1rem;
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei";
    letter-spacing: 0.5px;
    opacity: 1;
}

/* 标签和分类样式 */
.article-meta-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

/* 文章标签样式已移至title-styles.css */

/* 分页按钮样式 - 文章详情页底部上一篇/下一篇按钮 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem;
    background: #F5F5F7;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    color: #1D1D1F !important;
    font-size: 1rem;
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei" !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: calc(50% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #C7C7CC;
    text-decoration: none !important;
}

.pagination a i {
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

.pagination a:first-child i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.pagination a:last-child i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .pagination a {
        max-width: 100%;
        justify-content: center;
    }
}

/* 标签计数样式已移至title-styles.css */

/* 确保标签和分类列表页面的样式与文章页面一致 */
#tags-content + .article-meta-tags,
#categories-content + .article-meta-tags {
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
}

#tags-content + .article-meta-tags .article-tag,
#tags-content + .article-meta-tags .article-category,
#categories-content + .article-meta-tags .article-tag,
#categories-content + .article-meta-tags .article-category {
    font-size: 1.1rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid #eee !important;
    transition: all 0.3s ease !important;
}

#tags-content + .article-meta-tags .article-tag:hover,
#tags-content + .article-meta-tags .article-category:hover,
#categories-content + .article-meta-tags .article-tag:hover,
#categories-content + .article-meta-tags .article-category:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: #ccc !important;
    transform: translateY(-2px) !important;
}

/* 文章分类样式已移至title-styles.css */

/* 响应式设计 */
@media (max-width: 768px) {
    .article-title-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-title-card h1 {
        font-size: 2rem !important;
    }
    
    .article-meta-tags {
        gap: 0.3rem;
    }
    
    .article-tag,
    .article-category {
        font-size: 0.7rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .article-title-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .article-title-card h1 {
        font-size: 1.6rem !important;
    }
}

/* 博客标题样式修改 - 放大字体大小 */
.home-logo {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin: 1rem 0 !important;
    color: #242424 !important;
}

/* 一言样式修改 - 减小字体大小 */
#tagline {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin: 0.8rem 0 1.2rem 0 !important;
    display: block;
}

/* 一言出处样式 */
.quote-divider {
    margin: 0 4px;
    color: #444 !important;
}

.quote-source {
    display: inline;
    font-size: 1.5rem !important;
    font-style:normal !important;
    color: #444 !important;
    margin-left: 0.5rem !important;
}

/* 博客标题和一言的响应式设计 */
@media (max-width: 768px) {
    /* 移动设备上的博客标题 */
    .home-logo {
        font-size: 2.5rem !important;
    }
    
    /* 移动设备上的一言 */
    #tagline {
        font-size: 1rem !important;
        margin: 0.3rem 0 1rem 0 !important;
    }
    
    /* 移动设备上的一言出处 */
    .quote-source {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* 小屏幕设备上的博客标题 */
    .home-logo {
        font-size: 2rem !important;
    }
    
    /* 小屏幕设备上的一言 */
    #tagline {
        font-size: 0.9rem !important;
    }
    
    /* 小屏幕设备上的一言出处 */
    .quote-source {
        font-size: 0.9rem !important;
    }
}

/* 文章网格布局 - 优雅的列表展示 */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2rem 0;
}

/* Header和Footer高度统一 */
header,
footer {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header,
    footer {
        height: 100px;
    }
}

@media (max-width: 480px) {
    header,
    footer {
        height: 60px;
    }
}