
.main {
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}
    /* 修复移动端内容主体padding问题 */
    .content-body {
        padding: 15px 0;
    }
    
    /* 调整移动端点赞按钮大小 */
    .like-btn {
        padding: 8px 15px;
    }
    
    /* 优化移动端字体大小 */
    .content-meta {
        font-size: 13px;
    }

/* 小屏幕手机额外适配 */
@media (max-width: 480px) {
    .content-title {
        font-size: 20px;
    }
    .hsection-title {
        font-size: 17px;
    }
    .article-title {
        font-size: 14px;
    }
    .content-body {
        font-size: 14px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    text-align: left;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    font-size: 14px;
}
.breadcrumb .current {
    color: #fff;
    font-size: 14px;
}

.sort-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sort-options {
    display: flex;
    gap: 15px;
}
.sort-option {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}
.sort-option:hover, .sort-option.active {
    color: #fff;
}
.sort-option.active::after {
    content: "";
    display: block;
    height: 2px;
    background: #4e6ef2;
    margin-top: 2px;
}
.result-count {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    padding: 0 15px;
}
.encyclopedia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.encyclopedia-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}
.encyclopedia-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}
.encyclopedia-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
    font-weight: normal;
}
.encyclopedia-title-link {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}
.encyclopedia-title-link:hover {
    color: #1890ff;
}
.encyclopedia-desc {
    color: #595757;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.encyclopedia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}
.encyclopedia-date {
    display: flex;
    align-items: center;
}
.encyclopedia-date svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: #888;
}
.encyclopedia-views {
    display: flex;
    align-items: center;
}
.encyclopedia-views svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: #888;
}
.encyclopedia-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4e6ef2;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}
.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}
.pagination-item:hover, .pagination-item.active {
    background: #4e6ef2;
}
.pagination-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}
.loading-indicator.visible {
    display: flex;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4e6ef2;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.sidebar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}
.sidebar-title {
    font-size: 18px;
    color: #000;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hot-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hot-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hot-rank {
    width: 24px;
    height: 24px;
    background: #4e6ef2;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}
.hot-content {
    flex: 1;
}
.hot-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
    text-align: left;
}
.hot-title a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.hot-title a:hover {
    color: #4e6ef2;
}
.hot-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
/* 最新内容样式 */
.latest-articles-section {
    color:#000000;
    margin: 10px 0 0 0;
    padding: 20px;
    /*background: rgba(255,255,255,.9);*/
    /*border-radius: 12px;*/
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
}

.section-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.latest-articles-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.latest-article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.latest-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #222;
    transition: all 0.3s;
}

.latest-article-link:hover {
    color: #4e6ef2;
}

.article-date {
    font-size: 14px;
    color: #888;
    margin-right: 15px;
    white-space: nowrap;
}

.article-title {
    flex: 1;
    font-size: 16px;
    text-align: left;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .encyclopedia-grid {
        grid-template-columns: 1fr;
    }
    .filter-options, .sort-options {
        flex-wrap: wrap;
    }
    .nav-left a {
        margin-left: 10px;
        font-size: 13px;
    }
    .search-box {
        font-size: 14px;
        padding: 14px 16px;
    }
    .search-btn {
        width: 60px;
        font-size: 14px;
    }
    .page-title {
        font-size: 20px;
    }
    
    /* 详情页移动端适配 */
    .content-container {
        flex-direction: column;
        gap: 20px;
    }
    .main-content {
        padding: 20px 15px;
        width: 100%;
        min-width: auto;
    }
    .content-title {
        font-size: 22px;
    }
    .content-body {
        font-size: 15px;
        line-height: 1.6;
        padding: 20px 0;
    }
    .sidebar {
        width: 100%;
    }
    .nav-section {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }
    .prev-article, .next-article {
        width: 100%;
    }
    .prev-link, .next-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    .nav-label {
        font-size: 13px;
    }
    .nav-title {
        font-size: 14px;
        line-height: 1.4;
    }
    .latest-articles-section {
        padding: 15px;
    }
    .hsection-title {
        font-size: 18px;
    }
    .article-title {
        font-size: 15px;
    }
}

.content-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.main-content {
    flex: 1;
    min-width: 300px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.content-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}
.content-meta-item {
    display: flex;
    align-items: center;
}
.content-meta-item svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: #888;
}
.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.content-tag {
    padding: 5px 12px;
    background: rgba(78, 110, 242, 0.1);
    color: #4e6ef2;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.content-tag:hover {
    background: #4e6ef2;
    color: white;
}
.content-body {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    padding:30px 0;
}
.content-body p {
    margin-bottom: 20px;
}
.content-body h2 {
    font-size: 22px;
    color: #222;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.content-body h3 {
    font-size: 20px;
    color: #222;
    margin: 25px 0 15px;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
.content-body blockquote {
    border-left: 4px solid #4e6ef2;
    padding-left: 15px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}
.sidebar-section {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.sidebar-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.related-list {
    list-style: none;
}
.related-item {
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-title {
    font-size: 16px;
    margin-bottom: 5px;
}
.related-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}
.related-title a:hover {
    color: #4e6ef2;
}
.related-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.author-name {
    font-size: 16px;
    color: #222;
    margin-bottom: 5px;
}
.author-desc {
    font-size: 13px;
    color: #666;
}
.share-section {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.share-btn:hover {
    background: #4e6ef2;
}
.share-btn svg {
    width: 18px;
    height: 18px;
    fill: #666;
    transition: fill 0.3s;
}
.share-btn:hover svg {
    fill: white;
}
.content-actions {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.like-section {
    margin-bottom: 20px;
}

.like-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #4e6ef2;
    color: #4e6ef2;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover {
    background: #4e6ef2;
    color: white;
}

.like-btn.liked {
    background: #4e6ef2;
    color: white;
}

.like-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: currentColor;
}

.like-count {
    font-size: 14px;
}

.nav-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.prev-article, .next-article {
    flex: 1;
    min-width: 200px;
}

.prev-link, .next-link {
    display: block;
    padding: 12px 15px;
    background: rgba(255,255,255,.9);
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.prev-link:hover, .next-link:hover {
    background: #4e6ef2;
    color: white;
    border-color: #4e6ef2;
}

.nav-label {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: normal;
}

.nav-disabled {
    padding: 12px 15px;
    background: rgba(255,255,255,.5);
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: rgba(78, 110, 242, 0.1);
    color: #4e6ef2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.load-more-btn:hover {
    background: #4e6ef2;
    color: white;
}

.load-more-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.content-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.like-section {
    margin-bottom: 20px;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(78, 110, 242, 0.1);
    color: #4e6ef2;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover {
    background: #4e6ef2;
    color: white;
}

.like-btn.liked {
    background: #ff4d4f;
    color: white;
}

.like-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.like-count {
    font-size: 14px;
}

.nav-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.prev-article, .next-article {
    margin-bottom: 15px;
}

.prev-link, .next-link {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.prev-link:hover, .next-link:hover {
    background: rgba(78, 110, 242, 0.1);
}

.nav-label {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    color: #222;
    line-height: 1.5;
}

.nav-disabled {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.nav-disabled .nav-title {
    color: #aaa;
}

.load-more-btn {
    width: 100%;
    padding: 10px;
    background: rgba(78, 110, 242, 0.1);
    color: #4e6ef2;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.load-more-btn:hover {
    background: #4e6ef2;
    color: white;
}

.load-more-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: #aaa;
    cursor: not-allowed;
}

.comment-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.comment-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
}
.comment-form {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.comment-textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    resize: none;
    margin-bottom: 15px;
}
.comment-submit {
    background: #4e6ef2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.comment-submit:hover {
    background: rgba(0, 120, 215, 1);
}