/* iOS Book风格主题覆盖样式 */

/* 基础过渡效果，使主题切换更平滑 */
body, main, header, nav, footer, .article-card, .article-title-card, .entry-content, 
.toc, .nav-sidebar, .nav-sidebar-content, pre, code, table, img, 
.pagination a, .search-input, .tech-stack-card, .project-card, button, a, 
.article-meta-tags, .article-tag, .article-category, .social-icon, 
.nav-toggle, .nav-full, .nav-sidebar-header, .nav-sidebar-menu, 
.github-project-card, .skills-category, .profile-card, .repo-card {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏背景颜色 */
body nav {
    background-color: #F5F5F7;
    color: #CCCCCC;
}

/* 全屏导航背景颜色 */
body .nav-full {
    background-color: #1D1D1F; /* iOS Book风格的深色背景 */
}

/* 主要内容区域背景颜色 */
body main {
    background-color: #F5F5F7;
}



/* 头部区域背景颜色 */
body header {
    background-color: #F5F5F7;
}

/* 页脚背景颜色和高度 */
body footer {
    background-color: #1D1D1F; /* iOS Book风格的深色背景 */
    padding: 20px 0;
    min-height: auto;
}

/* 优化footer中的图标样式 */
body footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

body footer a:hover {
    color: #F5F5F7;
    transform: translateY(-6px) scale(1.15);
}

body footer i {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body footer a:hover i {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* 优化版权信息样式 */
body footer .col-xs-12 {
    margin-top: 1px;
    font-size: 0.9rem;
    color: #CCCCCC;
}

body footer .col-xs-12 a {
    display: inline;
    height: auto;
    color: #CCCCCC;
}

body footer .col-xs-12 a:hover {
    color: #FFFFFF;
    transform: none;
}



/* 引用块背景颜色 */
body blockquote {
    background-color: #F0F0F2; /* 轻微的背景颜色区分 */
    border-left: 4px solid #1D1D1F;
    font-style: normal; /* 取消斜体样式 */
}

/* 夜间模式样式 */
.dark-theme {
    /* 主要背景颜色 */
    background-color: #1D1D1F !important;
}

.dark-theme main {
    background-color: #1D1D1F !important;
    color: #CCCCCC !important;
}

.dark-theme header {
    background-color: #1D1D1F !important;
    color: #CCCCCC !important;
}

/* 博客标题和一言夜间模式样式 */
.dark-theme .home-logo {
    color: #CCCCCC !important;
}

.dark-theme #tagline {
    color: #CCCCCC !important;
}

.dark-theme #tagline .cursor {
    color: #CCCCCC !important;
}

.dark-theme nav {
    background-color: #1D1D1F !important;
    color: #CCCCCC !important;
}

.dark-theme .nav-full {
    background-color: #000000 !important;
}

.dark-theme .article-title-card {
    background-color: #1D1D1F !important;
    color: #CCCCCC !important;
}

.dark-theme .article-title-card h1 {
    color: #E5E5EA !important;
}

/* 文章卡片基础样式 */
.article-card {
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 200px;
    margin-bottom: 1.5rem;
}

.article-card:hover {
    background: #ffffff;
    border-color: #d1d1d6;
    transform: translateY(-8px) scale(1.02);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 移除渐变效果 */
.article-card::before {
    display: none;
}

/* 确保卡片链接能覆盖整个卡片 */
.article-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-content {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    max-width: 100%;
}

.article-card h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    transition: color 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card h3 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card:hover h3 a {
    color: #007aff;
}

.article-sub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #86868b;
    font-size: 0.9rem;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 500;
}

.article-sub-header i {
    color: #86868b;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* 优化文章摘要显示 */
.article-card-content p {
    margin: 0;
    color: #3a3a3c;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    max-width: 100%;
}

/* 优化文章卡片间距 */
.article-card {
    margin-bottom: 2rem;
}

/* 优化文章卡片间距 */
.article-card {
    margin-bottom: 2rem;
}

/* 文章卡片阅读进度指示器（可选） */
.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #000000;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.article-card:hover::after {
    width: 100%;
}

/* 文章卡片链接覆盖样式 - 实现点击整个卡片跳转 */
.article-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    background: transparent;
}

/* 夜间模式下的文章卡片底部线条 */
.dark-theme .article-card::after {
    background: #CCCCCC;
}

/* 文章卡片链接覆盖样式 - 实现点击整个卡片跳转 */
.article-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    background: transparent;
}

/* 确保卡片内的其他链接仍然可点击 */
.article-card-content a {
    position: relative;
    z-index: 2;
}

/* 链接通用样式 */
a {
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

/* 文字链接的下划线动画 */
.entry-content a, .article-card-content h3 a {
    text-decoration: none;
    position: relative;
}

.entry-content a::after, .article-card-content h3 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #007aff;
    transition: width 0.3s ease;
}

.dark-theme .entry-content a::after, .dark-theme .article-card-content h3 a::after {
    background-color: #34c759;
}

.entry-content a:hover::after, .article-card-content h3 a:hover::after {
    width: 100%;
}

/* 按钮通用样式 */
button {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.95);
}

/* 文章卡片夜间模式样式 */
.dark-theme .article-card,
.dark-theme .articles-grid .article-card,
.dark-theme .taxonomy-list .article-card,
.dark-theme .article-list-cards .article-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #CCCCCC !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.dark-theme .article-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #58585a !important;
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

.dark-theme .article-card::before {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0) 100%) !important;
}

.dark-theme .article-card h2,
.dark-theme .article-card h3 {
    color: #E5E5EA !important;
}

.dark-theme .article-card h3 a {
    color: #E5E5EA !important;
}

.dark-theme .article-card:hover h3 a {
    color: #34c759 !important;
}

/* 标签云和分类云卡片样式 - 与技术栈卡片统一 */
.article-meta-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 标签云和分类云卡片样式 - 与技术栈卡片统一，一行显示 */
#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 {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0.6rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: auto;
    min-width: auto;
    white-space: nowrap;
}

#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: #f8f8f8;
    border-color: #000;
    transform: translateY(-2px);
}

#tags-content + .article-meta-tags .article-tag i,
#tags-content + .article-meta-tags .article-category i,
#categories-content + .article-meta-tags .article-tag i,
#categories-content + .article-meta-tags .article-category i {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 0;
}

#tags-content + .article-meta-tags .article-tag span,
#tags-content + .article-meta-tags .article-category span,
#categories-content + .article-meta-tags .article-tag span,
#categories-content + .article-meta-tags .article-category span {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

#tags-content + .article-meta-tags a,
#categories-content + .article-meta-tags a {
    color: #000;
    text-decoration: none;
}

/* 标签云和分类云夜间模式样式 - 与技术栈卡片统一，一行显示 */
.dark-theme #tags-content + .article-meta-tags .article-tag,
.dark-theme #tags-content + .article-meta-tags .article-category,
.dark-theme #categories-content + .article-meta-tags .article-tag,
.dark-theme #categories-content + .article-meta-tags .article-category {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #333333 !important;
    padding: 0.6rem 1rem !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: auto !important;
    white-space: nowrap !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag:hover,
.dark-theme #tags-content + .article-meta-tags .article-category:hover,
.dark-theme #categories-content + .article-meta-tags .article-tag:hover,
.dark-theme #categories-content + .article-meta-tags .article-category:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #F5F5F7 !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag i,
.dark-theme #tags-content + .article-meta-tags .article-category i,
.dark-theme #categories-content + .article-meta-tags .article-tag i,
.dark-theme #categories-content + .article-meta-tags .article-category i {
    color: #F5F5F7 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag span,
.dark-theme #tags-content + .article-meta-tags .article-category span,
.dark-theme #categories-content + .article-meta-tags .article-tag span,
.dark-theme #categories-content + .article-meta-tags .article-category span {
    color: #F5F5F7 !important;
    font-size: 0.9rem !important;
    margin-left: 0.2rem !important;
}

.dark-theme #tags-content + .article-meta-tags a,
.dark-theme #categories-content + .article-meta-tags a {
    color: #F5F5F7 !important;
}

.dark-theme #tags-content + .article-meta-tags a:hover,
.dark-theme #categories-content + .article-meta-tags a:hover {
    color: #F5F5F7 !important;
    border-color: #F5F5F7 !important;
}
.dark-theme .article-sub-header {
    color: #86868b !important;
}

/* 文章列表描述文本夜间模式样式 */
.dark-theme .article-card-content p {
    color: #CCCCCC !important;
    opacity: 1 !important;
}

/* 文章列表图标夜间模式样式 */
.dark-theme .article-card .sub-header i,
.dark-theme .article-sub-header i {
    color: #86868b !important;
}

/* 标签云和分类云卡片样式 - 与技术栈卡片统一 */
.article-meta-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 标签云和分类云卡片样式 - 与技术栈卡片统一，一行显示 */
#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 {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0.6rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: auto;
    min-width: auto;
    white-space: nowrap;
}

#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: #f8f8f8;
    border-color: #000;
    transform: translateY(-2px);
}

#tags-content + .article-meta-tags .article-tag i,
#tags-content + .article-meta-tags .article-category i,
#categories-content + .article-meta-tags .article-tag i,
#categories-content + .article-meta-tags .article-category i {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 0;
}

#tags-content + .article-meta-tags .article-tag span,
#tags-content + .article-meta-tags .article-category span,
#categories-content + .article-meta-tags .article-tag span,
#categories-content + .article-meta-tags .article-category span {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

#tags-content + .article-meta-tags a,
#categories-content + .article-meta-tags a {
    color: #000;
    text-decoration: none;
}

/* 标签云和分类云夜间模式样式 - 与技术栈卡片统一，一行显示 */
.dark-theme #tags-content + .article-meta-tags .article-tag,
.dark-theme #tags-content + .article-meta-tags .article-category,
.dark-theme #categories-content + .article-meta-tags .article-tag,
.dark-theme #categories-content + .article-meta-tags .article-category {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #333333 !important;
    padding: 0.6rem 1rem !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: auto !important;
    white-space: nowrap !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag:hover,
.dark-theme #tags-content + .article-meta-tags .article-category:hover,
.dark-theme #categories-content + .article-meta-tags .article-tag:hover,
.dark-theme #categories-content + .article-meta-tags .article-category:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #F5F5F7 !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag i,
.dark-theme #tags-content + .article-meta-tags .article-category i,
.dark-theme #categories-content + .article-meta-tags .article-tag i,
.dark-theme #categories-content + .article-meta-tags .article-category i {
    color: #F5F5F7 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

.dark-theme #tags-content + .article-meta-tags .article-tag span,
.dark-theme #tags-content + .article-meta-tags .article-category span,
.dark-theme #categories-content + .article-meta-tags .article-tag span,
.dark-theme #categories-content + .article-meta-tags .article-category span {
    color: #F5F5F7 !important;
    font-size: 0.9rem !important;
    margin-left: 0.2rem !important;
}

.dark-theme #tags-content + .article-meta-tags a,
.dark-theme #categories-content + .article-meta-tags a {
    color: #F5F5F7 !important;
}

.dark-theme #tags-content + .article-meta-tags a:hover,
.dark-theme #categories-content + .article-meta-tags a:hover {
    color: #F5F5F7 !important;
    border-color: #F5F5F7 !important;
}

.dark-theme blockquote {
    background-color: #2A2A2C !important;
    border-left: 4px solid #F5F5F7 !important;
    color: #F5F5F7 !important;
}



.dark-theme input,
.dark-theme textarea {
    background-color: #2A2A2C !important;
    color: #F5F5F7 !important;
    border-color: #333333 !important;
}

.dark-theme input:focus,
.dark-theme textarea:focus {
    border-color: #F5F5F7 !important;
    box-shadow: 0 0 0 2px rgba(245, 245, 247, 0.25) !important;
}

/* 夜间模式下的文章内容样式 */
.dark-theme .entry-content {
    color: #E5E5EA !important;
    opacity: 1 !important;
}

.dark-theme .entry-content p {
    color: #E5E5EA !important;
    opacity: 1 !important;
    line-height: 1.8 !important;
}

/* 优化文章内容的排版和可读性 */
.entry-content {
    max-width: 75% !important;
    width: 75% !important;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
}

/* 响应式设计：在小屏幕上调整文章内容宽度 */
@media (max-width: 768px) {
    .entry-content {
        max-width: 100% !important;
        width: 100% !important;
    }
}

.entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.entry-content h1 {
    font-size: 2rem;
}

.entry-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e7;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content h5 {
    font-size: 1.1rem;
}

.entry-content h6 {
    font-size: 1rem;
}

/* 优化列表样式 */
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* 优化图片显示 */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 优化引用样式 */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #007aff;
    background-color: #f8f9fa;
    font-style: normal;
    border-radius: 0 8px 8px 0;
}

.dark-theme .entry-content blockquote {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #34c759;
}

.dark-theme .entry-content h1,
.dark-theme .entry-content h2,
.dark-theme .entry-content h3,
.dark-theme .entry-content h4,
.dark-theme .entry-content h5,
.dark-theme .entry-content h6 {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.dark-theme .entry-content h2 {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .entry-content a {
    color: #34c759 !important;
    opacity: 1 !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.dark-theme .entry-content a:hover {
    color: #4cd964 !important;
    opacity: 1 !important;
    text-decoration: underline !important;
}

.dark-theme .entry-content ul,
.dark-theme .entry-content ol {
    color: #E5E5EA !important;
    opacity: 1 !important;
}

.dark-theme .entry-content li {
    color: #E5E5EA !important;
    opacity: 1 !important;
}

.dark-theme .entry-content strong,
.dark-theme .entry-content b {
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-weight: bold !important;
}

.dark-theme .entry-content em,
.dark-theme .entry-content i {
    color: #E5E5EA !important;
    opacity: 1 !important;
    font-style: normal;
}

/* 夜间模式图片优化 */
.dark-theme .entry-content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 夜间模式文章卡片优化 */
.dark-theme .article-card-content p {
    color: #E5E5EA !important;
}

.dark-theme .article-sub-header {
    color: #A1A1A6 !important;
}

.dark-theme .article-sub-header i {
    color: #A1A1A6 !important;
}



/* 夜间模式引用优化 */
.dark-theme blockquote {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-left-color: #34c759 !important;
    color: #E5E5EA !important;
}

/* 夜间模式表格优化 */
.dark-theme table th {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

.dark-theme table td {
    color: #E5E5EA !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 导航栏夜间模式样式 */
.dark-theme nav h3 a {
    color: #E5E5EA !important;
}

.dark-theme nav h3 a i {
    color: #E5E5EA !important;
}

/* 移动端菜单夜间模式样式 */
.dark-theme .nav-full h1 a {
    color: #E5E5EA !important;
}

.dark-theme .nav-full h1 a i {
    color: #E5E5EA !important;
}

.dark-theme nav .nav-toggle a img {
    filter: brightness(0) invert(1);
}

/* 侧边栏夜间模式样式 */
.dark-theme .nav-sidebar {
    background-color: rgba(29, 29, 31, 0.95) !important;
}

.dark-theme .nav-sidebar-content {
    background-color: #1D1D1F !important;
}

.dark-theme .nav-sidebar-header h2 {
    color: #F5F5F7 !important;
}

.dark-theme .nav-sidebar-menu a {
    color: #F5F5F7 !important;
}

.dark-theme .nav-sidebar-menu a:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .nav-sidebar-close a img {
    filter: brightness(0) invert(1);
}



/* 表格夜间模式样式 */
.dark-theme table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.dark-theme table th,
.dark-theme table td {
    border: 1px solid #333333 !important;
    padding: 0.75rem !important;
    text-align: left !important;
    color: #F5F5F7 !important;
}

.dark-theme table th {
    background-color: rgba(255, 255, 255, 0.1) !important;
    font-weight: bold !important;
}

.dark-theme table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* 分页按钮夜间模式样式 */
.dark-theme .pagination {
    margin-top: 2rem !important;
}

.dark-theme .pagination a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #F5F5F7 !important;
    border: 1px solid #333333 !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.dark-theme .pagination a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border-color: #555555 !important;
    transform: translateY(-1px) !important;
}

/* 搜索功能夜间模式样式 */
.dark-theme .search-container {
    margin-bottom: 2rem !important;
}

.dark-theme .search-input {
    background-color: #2A2A2C !important;
    color: #F5F5F7 !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    font-size: 1rem !important;
}

.dark-theme .search-input:focus {
    outline: none !important;
    border-color: #F5F5F7 !important;
    box-shadow: 0 0 0 2px rgba(245, 245, 247, 0.25) !important;
}

/* 目录夜间模式样式 */
.dark-theme .toc {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    padding: 1rem !important;
}

.dark-theme .toc h3 {
    color: #F5F5F7 !important;
    margin-bottom: 1rem !important;
    font-weight: bold !important;
}

.dark-theme .toc ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.dark-theme .toc li {
    margin-bottom: 0.5rem !important;
    padding-left: 1rem !important;
}

.dark-theme .toc a {
    color: #AAAAAA !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.dark-theme .toc a:hover {
    color: #F5F5F7 !important;
}

/* 文章列表标签和分类的原始样式 */
.article-card .article-meta-tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.article-card .article-meta-tags .article-tag,
.article-card .article-meta-tags .article-category {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.3rem 0.6rem;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-size: 0.8rem;
    width: auto;
    min-width: auto;
}

.article-card .article-meta-tags .article-tag:hover,
.article-card .article-meta-tags .article-category:hover {
    background: #f0f0f2;
    border-color: transparent;
    transform: none;
}

.article-card .article-meta-tags .article-tag i,
.article-card .article-meta-tags .article-category i {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.article-card .article-meta-tags .article-tag span,
.article-card .article-meta-tags .article-category span {
    display: none;
}

.article-card .article-meta-tags a {
    color: #666;
    text-decoration: none;
}

/* 文章列表标签和分类夜间模式样式 */
.dark-theme .article-card .article-meta-tags .article-tag,
.dark-theme .article-card .article-meta-tags .article-category {
    background: transparent;
    border: none;
}

.dark-theme .article-card .article-meta-tags .article-tag:hover,
.dark-theme .article-card .article-meta-tags .article-category:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.dark-theme .article-card .article-meta-tags .article-tag i,
.dark-theme .article-card .article-meta-tags .article-category i {
    color: #AAAAAA;
}

.dark-theme .article-card .article-meta-tags a {
    color: #AAAAAA;
}

/* 技术栈卡片基础样式 */
.tech-stack-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tech-stack-card:hover {
    background: #f8f8f8;
    border-color: #007aff;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tech-stack-card:hover .tech-icon {
    transform: none;
    color: #007aff;
}

.tech-header {
    margin: 0;
}

.tech-name {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

.tech-icon {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 0.3rem;
}

/* 关于页面夜间模式样式 */
.dark-theme .about-page {
    background-color: transparent !important;
}

/* 技术栈卡片夜间模式样式 */
.dark-theme .tech-stack-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #333333 !important;
}

.dark-theme .tech-stack-card:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #F5F5F7 !important;
}

.dark-theme .tech-name {
    color: #F5F5F7 !important;
}

.dark-theme .tech-icon {
    color: #F5F5F7 !important;
}

.dark-theme .project-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #333333 !important;
}

.dark-theme .project-card h3 {
    color: #F5F5F7 !important;
}

.dark-theme .project-card p {
    color: #AAAAAA !important;
}

/* GitHub项目卡片夜间模式样式 */
.dark-theme .github-project-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #333333 !important;
}

.dark-theme .github-project-card:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #F5F5F7 !important;
}

.dark-theme .github-project-card .project-link {
    color: #E5E5EA !important;
}

.dark-theme .github-project-card .project-description {
    color: #CCCCCC !important;
}

.dark-theme .github-project-card .project-footer {
    color: #AAAAAA !important;
}

.dark-theme .github-project-card .project-footer .updated {
    color: #AAAAAA !important;
}

.dark-theme .github-projects-header h3 {
    color: #E5E5EA !important;
}

.dark-theme .github-no-projects h4 {
    color: #E5E5EA !important;
}

.dark-theme .github-no-projects p {
    color: #CCCCCC !important;
}

.dark-theme .github-error h4 {
    color: #E5E5EA !important;
}

.dark-theme .github-error p {
    color: #CCCCCC !important;
}

/* 覆盖关于页面背景颜色 */
.about {
    background-color: #F5F5F7 !important;
}

/* 确保所有白色背景元素都使用iOS Book风格 */
[style*="background-color: white"],
[style*="background-color: #fff"],
[style*="background-color: #ffffff"] {
    background-color: #F5F5F7 !important;
}

/* 覆盖卡片和容器背景 */
.profile-card,
.skills-category,
.repo-card {
    background-color: #FFFFFF !important; /* 卡片使用纯白色以突出显示 */
    border: 1px solid #E5E5E7 !important;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    nav {
        color: #CCCCCC !important;
    }
    
    .nav-full {
        background-color: #1D1D1F !important;
    }
}

/* 文章列表网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 文章列表卡片响应式设计 */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .article-card h3 {
        font-size: 1.2rem;
    }
    
    .article-card-content p {
        -webkit-line-clamp: 3;
    }
    
    /* 移动端文章内容优化 */
    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    .entry-content h1 {
        font-size: 1.75rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 1.5rem;
    }
    
    /* 移动端图片优化 */
    .entry-content img {
        border-radius: 6px;
        margin: 1.25rem auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 移动端引用优化 */
    .entry-content blockquote {
        padding: 0.75rem 1rem;
        margin: 1.25rem 0;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        gap: 0.8rem;
    }
    
    .article-card {
        padding: 1.2rem;
        min-height: 160px;
    }
    
    .article-card h3 {
        font-size: 1.1rem;
    }
    
    .article-sub-header {
        font-size: 0.85rem;
        gap: 0.8rem;
    }
    
    /* 小屏移动端文章内容优化 */
    .entry-content {
        font-size: 0.95rem;
        line-height: 1.65;
        padding: 0 0.75rem;
    }
    
    .entry-content h1 {
        font-size: 1.6rem;
    }
    
    .entry-content h2 {
        font-size: 1.35rem;
    }
    
    .entry-content h3 {
        font-size: 1.15rem;
    }
    
    .entry-content p {
        margin-bottom: 1.25rem;
        text-align: left;
        hyphens: none;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 1.25rem;
    }
    
    /* 小屏移动端图片优化 */
    .entry-content img {
        border-radius: 4px;
        margin: 1rem auto;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    /* 小屏移动端引用优化 */
    .entry-content blockquote {
        padding: 0.6rem 0.8rem;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
}

/* 优化移动端触摸体验 */
@media (hover: none) {
    .entry-content a {
        padding: 0.2rem 0;
    }
    
    .entry-content button {
        min-height: 44px;
        min-width: 44px;
    }
}



/* TOC目录样式 */
.toc {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    max-width: 100%;
    overflow-x: auto;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #242424;
    border-bottom: 2px solid #e5e5e7;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.75rem;
    position: relative;
}

/* 目录层级指示 */
.toc li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background-color: #007aff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.toc li:hover::before {
    opacity: 1;
    left: -0.75rem;
}

/* 二级目录层级指示 */
.toc li li::before {
    background-color: #34c759;
    width: 4px;
    height: 4px;
    left: -1.5rem;
}

.toc li li:hover::before {
    left: -1.25rem;
}

.toc a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toc a:hover {
    color: #007aff;
    padding-left: 0.25rem;
}

/* 目录层级缩进 */
.toc li ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.toc li li ul {
    padding-left: 1.5rem;
}

/* 当前激活目录项样式 */
.toc a.active {
    color: #007aff;
    font-weight: 600;
    padding-left: 0.25rem;
    border-left: 3px solid #007aff;
    padding-left: 0.75rem;
}

/* 夜间模式TOC样式 */
.dark-theme .toc {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #333333;
    border: 1px solid #333333;
}

.dark-theme .toc h3 {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .toc a {
    color: #E5E5EA;
}

.dark-theme .toc a:hover {
    color: #34c759;
}

/* 夜间模式目录层级指示 */
.dark-theme .toc li::before {
    background-color: #34c759;
}

.dark-theme .toc li li::before {
    background-color: #007aff;
}

/* 夜间模式当前激活目录项 */
.dark-theme .toc a.active {
    color: #34c759;
    border-left-color: #34c759;
}

/* 移动端目录优化 */
@media (max-width: 768px) {
    .toc {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .toc h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .toc a {
        font-size: 0.9rem;
    }
    
    .toc li ul {
        padding-left: 1rem;
    }
    
    .toc li li ul {
        padding-left: 1rem;
    }
    
    /* 移动端目录层级指示 */
    .toc li::before {
        left: -0.75rem;
    }
    
    .toc li:hover::before {
        left: -0.5rem;
    }
    
    .toc li li::before {
        left: -1.25rem;
    }
    
    .toc li li:hover::before {
        left: -1rem;
    }
}

/* 目录平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toc {
        margin-top: 1rem;
        padding: 0.8rem;
    }
}