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

.content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: flex;
    gap: 30px;
    width: 100%;
}

.article-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-card {
    width: 100%;
}

.article-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta i {
    color: #74b9ff;
    margin-right: 5px;
}

.article-body {
    padding: 30px;
    line-height: 1.8;
    color: white;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #74b9ff;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #74b9ff;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 600;
    color: #74b9ff;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #74b9ff;
}

.article-body p {
    margin-bottom: 16px;
    text-align: justify;
}

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

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

.article-body pre {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.article-body code {
    background: rgba(116, 185, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #74b9ff;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: white;
}

.article-actions {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #74b9ff;
    border-radius: 20px;
    background: rgba(116, 185, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
}

.action-btn.liked {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
}

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

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #74b9ff;
    margin-bottom: 20px;
}

.comment-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.comment-submit {
    background: #74b9ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.comment-submit:hover {
    background: #0984e3;
}

.comments-list {
    margin: 20px 0;
}

.related-section {
    margin-bottom: 25px;
    padding: 0 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #74b9ff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #74b9ff;
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.related-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em;
    word-wrap: break-word;
    backdrop-filter: blur(5px);
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(116, 185, 255, 0.3);
    color: white;
    border-color: #74b9ff;
    background: rgba(116, 185, 255, 0.2);
}

.related-item div {
    font-size: 12px;
}

.sidebar-section {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-wrapper {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 8px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 2px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 4px;
    border: 1px solid rgba(116, 185, 255, 0.2);
    box-shadow: 0 2px 4px rgba(116, 185, 255, 0.2);
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0984e3 0%, #74b9ff 100%);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.4);
}

.info-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.2) 0%, rgba(116, 185, 255, 0.1) 100%);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.author-card {
    padding: 25px 20px;
    text-align: center;
}

.author-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: inline-block;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #74b9ff;
    box-shadow: 0 4px 16px rgba(116, 185, 255, 0.3);
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #74b9ff, transparent, #74b9ff);
    animation: rotate 3s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.author-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 60px;
}

.stat-box:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(116, 185, 255, 0.3);
}

.stat-number {
    font-size: 18px;
    font-weight: 600;
    color: #74b9ff;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 12px;
    border: 1px solid #74b9ff;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    background: rgba(116, 185, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
    transform: translateY(-1px);
}

.popular-list {
    padding: 0;
}

.popular-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.popular-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.item-rank {
    background: rgba(116, 185, 255, 0.3);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid rgba(116, 185, 255, 0.5);
}

.popular-item:nth-child(1) .item-rank {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
}

.popular-item:nth-child(2) .item-rank {
    background: rgba(116, 185, 255, 0.8);
    color: white;
    border-color: #74b9ff;
}

.popular-item:nth-child(3) .item-rank {
    background: rgba(116, 185, 255, 0.6);
    color: white;
    border-color: #74b9ff;
}

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

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-title:hover {
    color: #74b9ff;
}

.item-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.share-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    z-index: 10000;
    min-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-modal.show {
    display: block;
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.share-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.share-mask.show {
    display: block;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.share-option:hover {
    background: rgba(116, 185, 255, 0.3);
    border-color: #74b9ff;
    color: white;
}

.share-option i {
    font-size: 18px;
    color: #74b9ff;
}

.share-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: white;
    margin-bottom: 15px;
    word-break: break-all;
    backdrop-filter: blur(10px);
}

.copy-button {
    width: 100%;
    background: #74b9ff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #0984e3;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #74b9ff;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    .sidebar-section {
        width: 100%;
        order: 2;
    }

    .sidebar-wrapper {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

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

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

    .article-body {
        padding: 20px;
    }

    .article-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
        max-width: 100px;
    }

    .comments-section {
        padding: 20px;
    }

    .stats-row {
        margin-bottom: 15px;
    }

    .share-modal {
        min-width: 280px;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .comment-textarea {
        min-height: 80px;
    }

    .nav-buttons {
        gap: 6px;
    }

    .nav-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}
