.blog-main-content {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-detail-container {
    padding: 0;
    background: transparent;
}

.blog-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-article-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.blog-article-header {
    padding: 35px 30px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.blog-article-title {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 25px;
    transition: color 0.2s ease;
}

.blog-article-title:hover {
    color: #667eea;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-article-meta i {
    color: #667eea;
    margin-right: 6px;
    font-size: 16px;
}

.blog-article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.blog-article-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #667eea;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.blog-article-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

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

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3 {
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.blog-article-content h1 {
    font-size: 28px;
    border-bottom-color: #764ba2;
}

.blog-article-content h2 {
    font-size: 24px;
}

.blog-article-content h3 {
    font-size: 20px;
    border-bottom-color: #667eea;
}

.blog-article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 20px 0;
    padding-left: 35px;
}

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

.blog-article-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #666;
    position: relative;
}

.blog-article-content blockquote::before {
    content: '"';
    font-size: 48px;
    color: #667eea;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: serif;
}

.blog-article-content pre {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.blog-article-content code {
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #d73a49;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.blog-article-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.blog-article-content img:hover {
    transform: scale(1.02);
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.blog-article-content th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.blog-article-content tr:hover {
    background: #f8f9ff;
}

.blog-article-actions {
    padding: 25px 35px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

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

.blog-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    min-width: 80px;
    justify-content: center;
}

.blog-action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-action-btn.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    border-color: transparent;
}

.blog-article-info {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.blog-detail-section {
    margin-bottom: 30px;
    padding: 0 35px 35px;
    border-top: 1px solid #f0f0f0;
}

.blog-section-header {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.blog-related-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.blog-related-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
    word-wrap: break-word;
    font-size: 15px;
    font-weight: 500;
}

.blog-related-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.blog-comments-section {
    margin-top: 35px;
    padding: 35px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.blog-comments-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.blog-comment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
    border: 1px solid #e9ecef;
}

.blog-comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.blog-comment-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.blog-comment-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    font-weight: 500;
    float: right;
}

.blog-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.blog-comments-list {
    margin: 25px 0;
}

.blog-comment-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.blog-comment-item:hover {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 25px;
    margin: 0 -5px;
}

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

.blog-comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.blog-comment-content {
    flex: 1;
}

.blog-comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.blog-comment-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.blog-comment-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.blog-comment-like {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 13px;
}

.blog-comment-like:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.blog-comment-like.liked {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.blog-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-sidebar-sticky {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.blog-sidebar-card:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 500px;
}

.blog-sidebar-card:last-child .blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 20px;
}


.blog-sidebar-card:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.blog-card-header i {
    font-size: 22px;
}

.blog-card-title {
    margin: 0;
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-wenxin-profile {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
    gap: 20px;
}

.blog-wenxin-quote {
    font-size: 18px;
    font-style: italic;
    color: #666;
    line-height: 1.7;
    text-align: center;
    padding: 25px;
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 0 12px 12px 0;
    margin: 0 auto;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.blog-wenxin-quote p {
    margin: 0;
}

.blog-recent-articles {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
}

.blog-recent-articles::-webkit-scrollbar {
    width: 8px;
    display: block !important;
}

.blog-recent-articles::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin: 5px 0;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.blog-recent-articles::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    min-height: 30px;
}

.blog-recent-articles::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a6fd8 0%, #6b4190 50%, #5a6fd8 100%);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.5);
}

.blog-recent-articles::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #4e5bc7 0%, #5d3a7e 50%, #4e5bc7 100%);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.6);
}

.blog-recent-articles::-webkit-scrollbar-corner {
    background: transparent;
}

.blog-recent-articles {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f8f9fa;
}

.blog-recent-item {
    padding: 20px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-recent-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 8px;
    padding: 20px 10px;
    margin: 0 -10px;
}

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

.blog-recent-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-recent-title:hover {
    color: #667eea;
}

.blog-recent-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
    padding-top: 5px;
    border-top: 1px solid #f5f5f5;
}

.blog-share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.blog-share-overlay.show {
    display: block;
}

.blog-share-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    z-index: 10000;
    min-width: 320px;
    max-width: 90vw;
}

.blog-share-popup.show {
    display: block;
}

.blog-share-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    font-size: 16px;
    z-index: 1;
}

.blog-share-close:hover {
    background: #e9ecef;
    color: #333;
    transform: scale(1.1);
}

.blog-share-close:active {
    transform: scale(0.95);
}

.blog-share-close i {
    font-size: 14px;
    line-height: 1;
}

.blog-share-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding-right: 40px;
}

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

.blog-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
    font-weight: 500;
}

.blog-share-btn:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.blog-share-btn i {
    font-size: 18px;
    color: #667eea;
}

.blog-share-url {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    line-height: 1.4;
}

.blog-share-copy {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-share-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-share-copy:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .blog-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-article-sidebar {
        order: 2;
        margin-top: 20px;
    }

    .blog-sidebar-sticky {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-main-content {
        padding: 10px 0;
    }

    .blog-detail-wrapper {
        padding: 0 15px;
        gap: 15px;
    }

    .blog-sidebar-sticky {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-article-header {
        padding: 25px 20px 20px;
    }

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

    .blog-article-content {
        padding: 25px 20px;
    }

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

    .blog-action-buttons {
        justify-content: center;
    }

    .blog-detail-section {
        padding: 0 20px 25px;
    }

    .blog-related-sites {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-comments-section {
        padding: 25px 20px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-share-popup {
        max-width: calc(100vw - 40px);
    }

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

    .blog-wenxin-quote {
        font-size: 16px;
        padding: 20px;
        max-width: 90%;
    }

    .blog-recent-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .blog-detail-wrapper {
        padding: 0 10px;
    }

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

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

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

    .blog-article-actions {
        padding: 15px;
    }

    .blog-action-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .blog-detail-section {
        padding: 0 15px 20px;
    }

    .blog-comments-section {
        padding: 20px 15px;
    }

    .blog-card-content {
        padding: 15px;
    }

    .blog-wenxin-quote {
        font-size: 15px;
        padding: 15px;
        max-width: 95%;
    }

    .blog-recent-title {
        font-size: 14px;
    }

    .blog-share-popup {
        padding: 20px;
    }

    .blog-share-title {
        font-size: 16px;
        padding-right: 35px;
    }

    .blog-sidebar-sticky {
        gap: 15px;
    }
}