.article-page {
    background: #f8f9fa;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-page.loaded {
    opacity: 1;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1E9FFF, #009688);
    z-index: 1000;
    transition: width 0.1s ease;
}

.article-container {
    padding: 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.breadcrumb-separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb-current {
    color: #1E9FFF;
    font-weight: 500;
}


.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.article-main {
    min-width: 0;
}

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    color: #1E9FFF;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 20px;
}

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

.article-meta {
    margin-top: 20px;
}

.meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #1E9FFF;
}

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

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 30px 0 15px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.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: 15px 0;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.article-content img.loaded {
    opacity: 1;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid #1E9FFF;
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

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

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

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

.article-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e2e8f0;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.article-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-footer {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-label {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-item {
    background: #1E9FFF;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #0d7ec7;
    transform: translateY(-2px);
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    border-color: #1E9FFF;
    color: #1E9FFF;
    transform: translateY(-2px);
}

.like-btn.liked {
    background: #1E9FFF;
    color: white;
    border-color: #1E9FFF;
}

.like-btn.animate-like {
    animation: likeAnimation 0.6s ease;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.article-info {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-navigation {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f0f0f0;
}

.nav-item2 {
    display: block;
    padding: 20px;
    background: white;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-item2:hover {
    background: #f8f9fa;
}

.nav-item2.nav-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.nav-item2.nav-disabled:hover {
    background: white;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.nav-prev .nav-direction {
    justify-content: flex-start;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.nav-prev .nav-title {
    text-align: left;
}

.nav-next .nav-title {
    text-align: right;
}

.related-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.section-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #1E9FFF;
}

.section-decoration {
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1E9FFF, #009688);
    border-radius: 2px;
}

.related-grid {
    padding: 20px 30px;
}

.related-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

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

.related-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-content {
    flex: 1;
    min-width: 0;
}

.related-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.related-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.related-time,
.related-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

.related-arrow {
    color: #ccc;
    margin-left: 10px;
}

.no-related {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-related i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}


.article-sidebar {
    position: relative;
    width: 100%;
}


@media (min-width: 1025px) {
    .sidebar-sticky {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #1E9FFF #f8f9fa;
    }

    .sidebar-sticky::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-sticky::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 2px;
    }

    .sidebar-sticky::-webkit-scrollbar-thumb {
        background: #1E9FFF;
        border-radius: 2px;
    }

    .sidebar-sticky::-webkit-scrollbar-thumb:hover {
        background: #0d7ec7;
    }
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.card-title {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: #1E9FFF;
}

.card-content {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1E9FFF, #009688);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud .tag-item:hover {
    background: #1E9FFF;
    color: white;
    transform: translateY(-2px);
}

.tag-count {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.tag-cloud .tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.share-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    color: white;
}

.share-option.wechat .share-icon {
    background: #07c160;
}

.share-option.weibo .share-icon {
    background: #e6162d;
}

.share-option.qq .share-icon {
    background: #12b7f5;
}

.share-option.copy .share-icon {
    background: #666;
}

.share-url {
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    background: #f8f9fa;
}

.copy-btn {
    padding: 10px 20px;
    background: #1E9FFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: #0d7ec7;
}

.copy-btn.success {
    background: #52c41a;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1E9FFF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(30, 159, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0d7ec7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 159, 255, 0.4);
}

body.no-scroll {
    overflow: hidden;
}


@media (max-width: 1024px) {
    .article-container {
        padding: 15px 0;
    }


    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }


    .article-main {
        order: 0;
        width: 100%;
    }


    .article-sidebar {
        order: 1;
        width: 100%;
    }

    .sidebar-sticky {
        position: static !important;
    }

    .sidebar-card {
        margin-bottom: 15px;
    }

    .card-content {
        padding: 15px;
    }

    .article-header {
        padding: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        padding: 20px;
        font-size: 15px;
    }

    .article-footer {
        padding: 20px;
    }

    .meta-group {
        gap: 15px;
    }

    .meta-item {
        font-size: 13px;
    }

    .article-actions {
        gap: 10px;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .nav-container {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .nav-item2 {
        padding: 15px;
        min-height: 60px;
    }

    .nav-direction {
        justify-content: center !important;
    }

    .nav-title {
        text-align: center !important;
        font-size: 13px;
    }

    .section-header {
        padding: 15px 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .related-grid {
        padding: 15px 20px;
    }

    .related-item {
        padding: 12px 0;
    }

    .related-title {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 16px;
    }

    .breadcrumb {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .breadcrumb-separator {
        margin: 0 8px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .share-option {
        padding: 12px;
    }

    .share-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .modal-content {
        margin: 10px;
        max-width: none;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 10px 0;
    }


    .article-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }

    .article-main {
        order: 0 !important;
        width: 100% !important;
    }

    .article-sidebar {
        order: 1 !important;
        width: 100% !important;
    }

    .sidebar-sticky {
        position: static !important;
    }

    .article-header {
        padding: 15px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-content {
        padding: 15px;
        font-size: 14px;
    }

    .article-footer {
        padding: 15px;
    }

    .meta-group {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-item {
        font-size: 12px;
    }

    .article-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        justify-content: center;
        padding: 10px 16px;
    }

    .article-info {
        flex-direction: column;
        gap: 8px;
    }

    .info-item {
        font-size: 12px;
    }

    .section-header {
        padding: 12px 15px;
    }

    .section-title {
        font-size: 15px;
    }

    .related-grid {
        padding: 12px 15px;
    }

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

    .related-title {
        font-size: 12px;
    }

    .related-meta {
        font-size: 11px;
        gap: 10px;
    }

    .card-header {
        padding: 12px 15px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-content {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .tag-cloud .tag-item {
        font-size: 11px;
        padding: 4px 8px;
    }

    .tag-count {
        font-size: 9px;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .share-options {
        gap: 8px;
    }

    .share-option {
        padding: 10px;
        font-size: 12px;
    }

    .share-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-title {
        font-size: 15px;
    }

    .url-input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .copy-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .nav-item2 {
        padding: 12px;
        min-height: 50px;
    }
}


@media print {

    .article-sidebar,
    .breadcrumb,
    .article-actions,
    .share-modal,
    .back-to-top,
    .reading-progress {
        display: none !important;
    }

    .article-layout {
        display: block;
    }

    .article-container {
        padding: 0;
    }

    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .article-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .article-title {
        font-size: 18pt;
        color: #000 !important;
    }

    .article-content {
        font-size: 12pt;
        color: #000 !important;
    }

    .article-content img {
        max-width: 80% !important;
        box-shadow: none !important;
    }

    .article-footer {
        background: #f8f9fa !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .article-content img,
    .action-btn,
    .tag-item,
    .related-item {
        transition: none !important;
    }
}


@media (prefers-contrast: high) {

    .article-card,
    .sidebar-card {
        border: 2px solid #000;
    }

    .article-content {
        color: #000;
    }

    .meta-item,
    .info-item {
        color: #000;
    }

    .action-btn {
        border: 2px solid #000;
    }
}


@media (prefers-color-scheme: dark) {
    .article-page {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .article-card,
    .sidebar-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .article-header {
        border-bottom-color: #404040;
    }

    .article-title {
        color: #ffffff;
    }

    .article-content {
        color: #e0e0e0;
    }

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        color: #ffffff;
    }

    .article-content blockquote {
        background: #3a3a3a;
        color: #b0b0b0;
    }

    .article-content code {
        background: #3a3a3a;
        color: #ff6b6b;
    }

    .article-footer {
        background: #3a3a3a;
    }

    .breadcrumb {
        color: #b0b0b0;
    }

    .breadcrumb-link {
        color: #b0b0b0;
    }

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

    .card-header {
        background: #3a3a3a;
    }

    .card-title {
        color: #ffffff;
    }

    .stat-item {
        background: #3a3a3a;
    }

    .stat-number {
        color: #ffffff;
    }

    .tag-cloud .tag-item {
        background: #3a3a3a;
        color: #b0b0b0;
    }

    .tag-cloud .tag-item:hover {
        background: #1E9FFF;
        color: #ffffff;
    }

    .action-btn {
        background: #3a3a3a;
        color: #b0b0b0;
        border-color: #404040;
    }

    .action-btn:hover {
        border-color: #1E9FFF;
        color: #1E9FFF;
    }

    .related-item:hover {
        background: #3a3a3a;
    }

    .nav-item2:hover {
        background: #3a3a3a;
    }
}


.article-content::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.article-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.article-content::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E9FFF, #009688);
    border-radius: 3px;
}

.article-content::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d7ec7, #007a6b);
}


::selection {
    background: linear-gradient(135deg, #1E9FFF, #009688);
    color: white;
}

::-moz-selection {
    background: linear-gradient(135deg, #1E9FFF, #009688);
    color: white;
}


html {
    scroll-behavior: smooth;
}


a:focus,
button:focus,
.action-btn:focus,
.tag-item:focus {
    outline: 2px solid #1E9FFF;
    outline-offset: 2px;
}


.article-content img[data-src] {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.article-content img[data-src].loaded {
    opacity: 1;
    transform: scale(1);
}


pre[class*="language-"] {
    position: relative;
    padding-left: 3.8em;
    counter-reset: linenumber;
}

pre[class*="language-"]>code {
    position: relative;
    white-space: inherit;
}

.line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 20px;
    font-size: 100%;
    left: 0;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.line-numbers-rows>span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows>span:before {
    content: counter(linenumber);
    color: #999;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}


@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table {
        min-width: 600px;
    }

    .article-content th,
    .article-content td {
        padding: 8px 10px;
        font-size: 13px;
    }
}


.mathjax-formula {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 20px 0;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.article-content blockquote.pullquote {
    border: none;
    background: transparent;
    padding: 0;
    margin: 30px 0;
    text-align: center;
    font-style: normal;
}

.article-content blockquote.pullquote::before {
    content: '"';
    font-size: 60px;
    color: #1E9FFF;
    line-height: 1;
    display: block;
    margin-bottom: -20px;
}

.article-content blockquote.pullquote::after {
    content: '"';
    font-size: 60px;
    color: #1E9FFF;
    line-height: 1;
    display: block;
    margin-top: -30px;
    text-align: right;
}

.article-content blockquote.pullquote p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    margin: 0;
}


.article-content .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.article-content .alert-info {
    background: #e8f4fd;
    border-color: #1E9FFF;
    color: #0c5460;
}

.article-content .alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.article-content .alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.article-content .alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-item:hover {
    border-color: #1E9FFF;
    color: #1E9FFF;
}

.pagination-item.active {
    background: #1E9FFF;
    border-color: #1E9FFF;
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    border-color: #e9ecef;
    color: #666;
}


.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E9FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 480px) {
    .article-container {
        padding: 5px 0;
    }

    .article-header {
        padding: 12px;
    }

    .article-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .article-content {
        padding: 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    .article-footer {
        padding: 12px;
    }

    .meta-group {
        gap: 8px;
    }

    .meta-item {
        font-size: 11px;
    }

    .article-actions {
        gap: 6px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .card-header {
        padding: 10px 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-content {
        padding: 10px;
    }

    .stat-item {
        padding: 8px;
        gap: 8px;
    }

    .stat-icon {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .stat-number {
        font-size: 12px;
    }

    .stat-label {
        font-size: 10px;
    }

    .section-header {
        padding: 10px 12px;
    }

    .section-title {
        font-size: 14px;
    }

    .related-grid {
        padding: 10px 12px;
    }

    .related-item {
        padding: 8px 0;
    }

    .related-title {
        font-size: 11px;
    }

    .related-meta {
        font-size: 10px;
        gap: 8px;
    }

    .breadcrumb {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .breadcrumb-separator {
        margin: 0 4px;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .nav-item2 {
        padding: 10px;
        min-height: 45px;
    }

    .nav-direction {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .nav-title {
        font-size: 11px;
    }
}


@media (min-width: 1400px) {
    .article-layout {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .article-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}


@media (max-width: 768px) and (orientation: landscape) {
    .article-header {
        padding: 15px 20px;
    }

    .article-content {
        padding: 15px 20px;
        font-size: 14px;
    }

    .article-footer {
        padding: 15px 20px;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
    }
}