/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f5f5f5;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo .site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo .site-title:hover {
    color: #0056b3;
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo .site-title {
        font-size: 20px;
    }
}

/* 搜索框样式美化 */
.search-form-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-form {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    border-radius: 15px;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--light-color);
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    border-radius: 30%;
    width: 36px;
    height: 36px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.clear-search {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.clear-search:hover {
    background: var(--secondary-color);
    color: white;
    opacity: 1;
}

/* 响应式搜索框 */
@media (max-width: 768px) {
    .search-form-wrapper {
        justify-content: center;
        margin-top: 10px;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 13px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
    }
    
    .clear-search {
        right: 40px;
        font-size: 12px;
    }
}

/* 导航样式 */
.main-nav {
    background: var(--primary-color);
}

.main-nav .nav-link {
    color: white !important;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

/* 二级菜单样式 */
.main-nav .dropdown-menu {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 0;
    padding: 0.5rem 0;
    min-width: 200px;
}

.main-nav .dropdown-menu .nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.main-nav .dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.main-nav .dropdown-menu .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.main-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* 移动端下拉菜单 */
@media (max-width: 991.98px) {
    .main-nav .dropdown-menu {
        background: rgba(255,255,255,0.1);
        border: none;
        box-shadow: none;
        margin-top: 0;
    }
    
    .main-nav .dropdown-menu .nav-link {
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-left: 2rem;
    }
    
    .main-nav .dropdown-menu .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: white !important;
        transform: none;
    }
}

/* 主要内容区域 */
.main-content {
    padding: 2rem 0;
}

.content-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    min-height: auto;
    display: block;
}

.section-header {
    background: var(--light-color);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header .more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0.5rem 1rem;
    margin: 0;
}

.article-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-meta i {
    font-size: 0.8rem;
}

.article-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
}

/* 无文章提示样式 */
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.no-posts .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.no-posts .btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 侧边栏样式 */
.sidebar {
    width: 100%;
    min-width: 0; /* 防止flex子项溢出 */
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    width: 100%;
    min-width: 0; /* 防止内容溢出 */
}

.widget-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.widget-content {
    padding: 1rem;
    overflow: hidden;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.widget-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.widget-list a:hover {
    color: var(--primary-color);
}

/* 小工具标签样式 */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-tags .tag-link {
    display: inline-block;
    background: var(--light-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.widget-tags .tag-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 响应式标签样式 */
@media (max-width: 768px) {
    .widget-tags {
        gap: 0.4rem;
    }
    
    .widget-tags .tag-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--secondary-color);
}

/* 文章详情页样式 */
.article-header {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-title-main {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.article-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1rem;
}

.download-section {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.download-btn {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.download-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.notice-box {
    background: var(--warning-color);
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.tags-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tag-link {
    display: inline-block;
    background: var(--light-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.tag-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 页脚样式 */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.qr-code img {
    max-width: 100px;
    height: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav .navbar-nav {
        flex-direction: column;
    }
    
    .main-nav .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .article-title-main {
        font-size: 1.5rem;
    }
    
    .article-content,
    .article-header {
        padding: 1.5rem;
    }
    
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* 侧边栏响应式样式 */
    .sidebar {
        margin-top: 1rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
    
    .widget-content {
        padding: 0.75rem;
    }
    
    .widget-list a {
        font-size: 0.85rem;
    }
    
    /* 文章列表响应式样式 */
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 分页响应式样式 */
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
}

/* 工具类 */
.text-red {
    color: var(--danger-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 图标字体 */
.iconfont {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 搜索框动画效果 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.search-form {
    transition: transform 0.3s ease;
}

.clear-search {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.15s ease;
}

/* 搜索框悬停效果 */
.search-form:hover .search-input {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

/* 搜索框输入动画 */
.search-input:not(:placeholder-shown) {
    background: white;
}

/* 移动端搜索框优化 */
@media (max-width: 576px) {
    .search-form-wrapper {
        margin-top: 15px;
    }
    
    .search-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 相关文章样式 */
.related-articles-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 30px;
}

.related-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-article-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all 0.3s ease;
}

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

.related-article-item:hover {
    background-color: var(--light-color);
    padding-left: 10px;
    border-radius: 4px;
}

.related-article-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.related-article-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.no-related-posts {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* 响应式相关文章样式 */
@media (max-width: 768px) {
    .related-articles-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .related-article-item {
        padding: 10px 0;
    }
    
    .related-article-item a {
        font-size: 13px;
    }
}

/* 归档页面样式 */
.archive-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.author-info,
.tag-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.author-info p,
.tag-info p {
    margin: 5px 0;
}

/* 搜索页面样式 */
.search-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.search-stats {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.search-suggestions {
    background: var(--light-color);
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.search-suggestions h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.search-suggestions li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.search-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-actions .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-actions .btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
}

.search-actions .btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .archive-info,
    .search-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .archive-title,
    .search-title {
        font-size: 1.3rem;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-actions .btn {
        text-align: center;
    }
}

/* 页面模板样式 */
.page-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.page-title-main {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.page-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-meta span {
    display: flex;
    align-items: center;
}

.page-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.page-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.page-content h4 {
    font-size: 1.1rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.page-permalink {
    background: var(--light-color);
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

.page-permalink p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.page-permalink a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.page-permalink a:hover {
    text-decoration: underline;
}

/* 子页面样式 */
.sub-pages-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
}

.sub-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-page-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.sub-page-item:hover {
    background-color: var(--light-color);
    padding-left: 10px;
    border-radius: 4px;
}

.sub-page-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.sub-page-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.sub-page-excerpt {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* 相关页面样式 */
.related-pages-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
}

.related-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-page-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all 0.3s ease;
}

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

.related-page-item:hover {
    background-color: var(--light-color);
    padding-left: 10px;
    border-radius: 4px;
}

.related-page-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: color 0.3s ease;
}

.related-page-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 响应式页面样式 */
@media (max-width: 768px) {
    .page-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .page-title-main {
        font-size: 1.6rem;
    }
    
    .page-content {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .page-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sub-pages-section,
    .related-pages-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .sub-page-item,
    .related-page-item {
        padding: 12px 0;
    }
    
    .sub-page-item a {
        font-size: 0.95rem;
    }
    
    .related-page-item a {
        font-size: 0.9rem;
    }
}

/* 404错误页面样式 */
.error-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px 25px;
    margin-bottom: 25px;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: var(--warning-color);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.error-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

.error-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 25px;
}

.error-message {
    margin-bottom: 25px;
}

.error-message p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.error-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-message li {
    padding: 8px 0;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.error-message li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.error-search {
    background: var(--light-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 35px;
    text-align: center;
}

.error-search h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.error-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.error-search-form .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.error-search-form .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
}

.error-search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.error-search-form .btn {
    padding: 12px 20px;
    border: none;
    font-weight: 500;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.error-actions .btn {
    padding: 14px 28px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    font-size: 1rem;
}

.error-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.error-actions .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.error-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.error-actions .btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.error-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.error-actions .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.error-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* 推荐内容样式 */
.error-recommendations {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.error-recommendations h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 20px 0;
    text-align: center;
}

.recommendation-item {
    background: var(--light-color);
    border-radius: 6px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.recommendation-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.recommendation-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.recommendation-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recommendation-meta span {
    display: flex;
    align-items: center;
}

.recommendation-meta i {
    font-size: 0.8rem;
}

/* 响应式404页面样式 */
@media (max-width: 768px) {
    .error-header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .error-icon {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-content {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .error-search {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .error-search-form .form-control,
    .error-search-form .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .error-recommendations {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .recommendation-item {
        padding: 12px;
    }
    
    .recommendation-title {
        font-size: 0.95rem;
    }
    
    .recommendation-meta {
        font-size: 0.8rem;
        gap: 8px;
    }
}

/* 文章固定链接样式 */
.article-permalink {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
   
}

.permalink-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permalink-icon {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.permalink-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    cursor: text;
    user-select: all;
}

.permalink-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.permalink-copy-btn {
    padding: 10px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permalink-copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.permalink-copy-btn:active {
    transform: translateY(0);
}

.permalink-copy-btn.copied {
    background: var(--success-color);
}

.permalink-copy-btn.error {
    background: var(--danger-color);
}

.permalink-link {
    padding: 10px 12px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.permalink-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.permalink-link i {
    font-size: 0.8rem;
}

/* 响应式文章固定链接样式 */
@media (max-width: 768px) {
    .article-permalink {
        padding: 12px;
        margin: 20px 0;
    }
    
    .permalink-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .permalink-icon {
        align-self: flex-start;
        margin-bottom: 5px;
    }
    
    .permalink-copy-btn,
    .permalink-link {
        align-self: flex-end;
        min-width: auto;
        padding: 8px 12px;
    }
}

.article-title-wrapper a{color: #333;text-decoration: none;}
