.breadcrumb {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.layui-breadcrumb {
    font-size: 14px;
}

.layui-breadcrumb a {
    color: #666;
}

.layui-breadcrumb a:hover {
    color: #1E9FFF;
}

.layui-breadcrumb cite {
    color: #333;
}

/* 筛选表单样式 */
.layui-form-select .layui-input {
    border-radius: 4px;
}

.layui-form-select dl {
    border-radius: 4px;
}

/* 卡片标签样式 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-mini {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

/* 精选和推荐标签 */
.tag-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FF5722 0%, #e64a19 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}

.tag-recommended {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #1E9FFF 0%, #0d8bf2 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}

/* 分页样式 */
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #1E9FFF;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    z-index: 2;
    color: #0d8bf2;
    background-color: #f0f7ff;
    border-color: #1E9FFF;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #1E9FFF;
    border-color: #1E9FFF;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

/* 无结果提示样式 */
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.no-results .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 15px;
    color: #666;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.no-results li {
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
    }

    .layui-breadcrumb {
        font-size: 12px;
    }

    .card-tags {
        gap: 3px;
    }

    .tag-mini {
        font-size: 9px;
        padding: 1px 4px;
    }

    .pagination > li > a,
    .pagination > li > span {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* 搜索筛选表单样式 */
.search-filter-form {
    margin-top: 15px;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.button-group {
    display: flex;
    gap: 8px;
}

.button-group .layui-btn {
    flex: 1;
}

/* 修复 Layui 下拉菜单在小屏幕上的显示问题 */
.layui-form-select dl {
    max-width: 100%;
    min-width: 100%;
}

.layui-form-selected dl {
    width: 100% !important;
    max-width: 100% !important;
}

/* 确保下拉选项在小屏幕上完全显示 */
.layui-form-select dl dd {
    white-space: normal;
    word-break: break-all;
    padding: 5px 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-filter-form .layui-col-xs12 {
        margin-bottom: 10px;
    }

    .filter-item {
        margin-bottom: 10px;
    }

    .filter-label {
        font-size: 13px;
    }

    .button-group {
        flex-direction: row;
    }

    .button-group .layui-btn {
        flex: 1;
        font-size: 12px;
        padding: 0 8px;
        height: 32px;
        line-height: 32px;
    }

    /* 移动端下拉菜单优化 */
    .layui-form-select dl {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        z-index: 999999;
    }
}

@media (max-width: 480px) {
    .search-filter-form .layui-row {
        margin: 0 -5px;
    }

    .search-filter-form .layui-col-xs12 {
        padding: 0 5px;
    }

    .filter-label {
        font-size: 12px;
    }

    .button-group .layui-btn {
        font-size: 11px;
        padding: 0 5px;
    }
}

/* 确保下拉菜单在卡片内部正确显示 */
.card {
    position: relative;
    overflow: visible;
}

.card-content {
    position: relative;
    overflow: visible;
}

/* 修复 Layui 下拉菜单的 z-index 问题 */
.layui-form-select dl {
    z-index: 999999;
}

.layui-form-selected .layui-form-select dl {
    z-index: 1000000;
}
 /* 文章详情页样式 */
.article-header {
 margin-bottom: 30px;
 padding-bottom: 20px;
 border-bottom: 1px solid #eee;
}

.article-detail-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #333;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    margin-right: 5px;
    color: #999;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-category-tag {
    background: #1E9FFF;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
}

.article-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
}

.article-cover {
    margin-bottom: 30px;
    text-align: center;
}

.article-cover-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content h5 { font-size: 16px; }
.article-content h6 { font-size: 14px; }

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid #1E9FFF;
    background: #f0f7ff;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.article-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: bold;
}

.article-actions {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.article-copyright {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.copyright-content p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.copyright-content a {
    color: #1E9FFF;
    text-decoration: none;
}

.copyright-content a:hover {
    text-decoration: underline;
}

/* 相关文章 */
.related-article-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    transition: background 0.3s;
}

.related-article-item:hover {
    background: #f8f9fa;
}

.related-article-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-article-content {
    flex: 1;
}

.related-article-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

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

.related-article-title a:hover {
    color: #1E9FFF;
}

.related-article-meta {
    font-size: 12px;
    color: #999;
}

.related-article-meta span {
    margin-right: 10px;
}

/* 文章信息卡片 */
.article-info-list .info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.info-label {
    color: #666;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.info-value a {
    color: #1E9FFF;
    text-decoration: none;
}

.status-pinned {
    background: #FF5722;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-recommended {
    background: #1E9FFF;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 文章目录 */
.article-toc {
    max-height: 400px;
    overflow-y: auto;
}

.toc-level-1 {
    margin-left: 0;
    font-weight: bold;
}

.toc-level-2 {
    margin-left: 15px;
}

.toc-level-3 {
    margin-left: 30px;
}

.toc-level-4 {
    margin-left: 45px;
}

.toc-item {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.toc-item:hover,
.toc-item.active {
    color: #1E9FFF;
    border-left-color: #1E9FFF;
    background: #f0f7ff;
    padding-left: 10px;
}

/* 热门文章 */
.hot-articles {
    display: flex;
    flex-direction: column;
}

.hot-article-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

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

.hot-article-title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-title:hover {
    color: #1E9FFF;
}

.hot-article-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-detail-title {
        font-size: 22px;
    }

    .article-meta-info {
        gap: 15px;
    }

    .article-tags {
        gap: 5px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .related-article-item {
        padding: 10px;
    }

    .related-article-image {
        width: 60px;
        height: 50px;
    }

    .article-info-card {
        position: static !important;
    }
}

@media (max-width: 480px) {
    .article-detail-title {
        font-size: 20px;
    }

    .article-meta-info {
        gap: 10px;
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
    }
}
.liked {
    animation: likeAnimation 0.6s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.article-index{
    padding: 5px;
}
