.article-detail-content-wrap p,
.doc-card p {
    margin: 0 0 1em;
}

.article-detail-content-wrap h2,
.article-detail-content-wrap h3 {
    margin: 1.3em 0 0.6em;
    color: #1f2937;
}

.article-detail-content-wrap blockquote {
    margin: 1.2em 0;
    padding: 12px 16px;
    border-left: 4px solid var(--aura-primary);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 87, 34, 0.05);
    color: #4b5563;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2em 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-detail-content pre {
    display: block !important;
    position: relative;
    margin: 16px 0;
    padding: 14px 16px;
    overflow-x: auto;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    line-height: 1.6;
    white-space: pre;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.article-detail-content pre code {
    display: block;
    color: inherit;
    background: transparent;
    padding: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}

.article-detail-content :not(pre) > code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #111827;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

.article-detail-content pre code.hljs {
    background: transparent;
    padding: 0;
}

.article-detail-content .code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.article-detail-content .code-copy-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.article-detail-content .code-copy-btn.copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.aura-list-link:hover {
    background: rgba(255, 87, 34, 0.05);
    color: var(--aura-primary);
}

.aura-like-trigger:hover {
    color: var(--aura-primary);
}

.aura-like-trigger.liked {
    color: var(--aura-primary);
    pointer-events: none;
}

.aura-prevnext-card:hover {
    border-color: var(--aura-primary) !important;
    background: #fff7f5;
}

.aura-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.comment-textarea:focus {
    background: #fff;
}

.aura-icon-circle-btn:hover {
    background: var(--aura-primary);
    color: #fff;
}

.article-detail-actions {
    text-align: right;
}

.article-prevnext-row {
    margin-bottom: 30px;
}

.article-prevnext-card {
    display: block;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    color: #555;
    border: 1px solid var(--aura-border);
}

.article-prevnext-right {
    text-align: right;
}

.article-prevnext-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.article-prevnext-title {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.article-prevnext-disabled {
    color: #ccc;
    border: 1px solid #f5f5f5;
    cursor: not-allowed;
}

.article-recommend-title {
    margin: 40px 0 20px;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-recommend-title-icon {
    color: var(--aura-primary);
}

.article-recommend-row {
    margin-bottom: 40px;
}

.article-recommend-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid var(--aura-border);
}

.article-recommend-cover-wrap {
    height: 150px;
}

.article-recommend-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-recommend-body {
    padding: 15px;
}

.article-recommend-item-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

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

.article-comment-card {
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--aura-border);
}

.article-comment-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-comment-title-icon {
    color: var(--aura-primary);
}

.article-comment-fields-row {
    margin-bottom: 20px;
}

.comment-input {
    border-radius: 8px;
}

.article-comment-submit-wrap {
    text-align: right;
}

.article-comment-submit-btn {
    background-color: var(--aura-primary);
    border-radius: 20px;
    padding: 0 40px;
    box-shadow: 0 10px 20px rgba(255,87,34,0.15);
}

.article-comment-list {
    margin-top: 50px;
}

.article-comment-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

.article-comment-empty-icon {
    font-size: 48px;
    opacity: 0.1;
    display: block;
    margin-bottom: 10px;
}

.article-comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 30px;
}

.article-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.article-comment-main {
    flex: 1;
}

.article-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.article-comment-user {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.article-comment-time {
    color: #999;
    font-size: 12px;
}

.article-comment-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-top-left-radius: 0;
}

.article-comment-closed {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-style: italic;
}

.article-author-card {
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--aura-border);
}

.article-author-body {
    padding: 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,87,34,0.02) 0%, #fff 100%);
}

.article-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-author-name {
    font-weight: 800;
    font-size: 20px;
    color: #1a1a1a;
}

.article-author-role {
    font-size: 13px;
    color: var(--aura-primary);
    margin: 8px 0 15px;
}

.article-author-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.article-author-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-author-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: 0.3s;
}

.article-author-icon {
    font-size: 20px;
}

.article-hot-card {
    border-radius: 12px;
    border: 1px solid var(--aura-border);
}

.article-hot-title {
    font-weight: 700;
    border-bottom: none;
    padding-top: 15px;
}

.article-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.article-hot-thumb-wrap {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-hot-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hot-main {
    flex: 1;
    min-width: 0;
}

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

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

.article-hot-item-title {
    line-height: 1.5;
    max-height: 42px;
    overflow-wrap: anywhere;
}

.article-toc-wrap {
    position: relative;
}

.article-detail-layout .layui-col-md4 {
    position: relative;
    align-self: flex-start;
}

#article-toc-wrap {
    position: sticky;
    top: 86px;
    z-index: 10;
}

.article-toc-card {
    position: sticky;
    top: 86px;
    border-radius: 12px;
    background: #fff;
    z-index: 3;
}

.article-toc-card.is-following {
    position: absolute !important;
    top: 86px !important;
    left: 0 !important;
    width: 100% !important;
}

.article-toc-card.toc-empty {
    display: none;
}

.article-toc-title {
    font-weight: 700;
}

.article-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding-right: 4px;
}

#article-toc-list {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.article-toc-list .toc-item + .toc-item {
    margin-top: 8px;
}

.article-toc-list .toc-item a {
    display: block;
    color: #6b7280;
    line-height: 1.5;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-toc-list .toc-item a:hover,
.article-toc-list .toc-item a.active {
    color: var(--aura-primary);
}

.article-toc-list .toc-item-h3 a {
    padding-left: 12px;
    font-size: 12px;
}

.article-toc-list .toc-item-h4 a {
    padding-left: 20px;
    font-size: 12px;
    opacity: 0.92;
}

.article-toc-list .toc-item-h5 a {
    padding-left: 28px;
    font-size: 12px;
    opacity: 0.88;
}

.article-toc-list .toc-item-h6 a {
    padding-left: 36px;
    font-size: 12px;
    opacity: 0.84;
}

.article-toc-list .toc-item-empty {
    color: #9ca3af;
    font-size: 12px;
}

.toc-empty {
    display: none !important;
}

.article-detail-card {
    padding: 40px 50px;
    border-radius: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.article-detail-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.article-detail-breadcrumb a {
    color: #6c757d !important;
}

.article-detail-breadcrumb cite {
    color: var(--aura-primary) !important;
    font-weight: 600;
}

.article-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.detail-page-meta {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14.5px !important;
    gap: 20px;
}

.detail-page-meta span i {
    font-size: 16px !important;
    margin-right: 6px !important;
}

.aura-typography {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    word-wrap: break-word;
    word-break: break-word;
}

.aura-typography p {
    margin: 0 0 20px;
}

.aura-typography h1,
.aura-typography h2,
.aura-typography h3,
.aura-typography h4,
.aura-typography h5,
.aura-typography h6 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.aura-typography h1 { font-size: 28px; }

.aura-typography h2 {
    font-size: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.aura-typography h3 { font-size: 20px; }
.aura-typography h4 { font-size: 18px; }

.aura-typography a {
    color: var(--aura-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.aura-typography a:hover {
    border-bottom-color: var(--aura-primary);
}

.aura-typography b,
.aura-typography strong {
    font-weight: 700;
    color: #111;
}

.aura-typography blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--aura-primary);
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.aura-typography blockquote p:last-child {
    margin-bottom: 0;
}

.aura-typography ul,
.aura-typography ol {
    margin: 0 0 25px 25px;
    padding: 0;
}

.aura-typography ul li,
.aura-typography ol li {
    margin-bottom: 8px;
}

.aura-typography ul {
    list-style-type: disc;
}

.aura-typography ol {
    list-style-type: decimal;
}

.aura-typography li > ul,
.aura-typography li > ol {
    margin-top: 8px;
    margin-bottom: 0;
}

.aura-typography img,
.aura-typography video,
.aura-typography iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.aura-typography code {
    padding: 3px 6px;
    background: #f1f3f5;
    color: #e83e8c;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.aura-typography pre {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
}

.aura-typography pre code {
    background: transparent;
    color: #d4d4d4;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    white-space: pre-wrap;
}

.aura-typography table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #eee;
}

.aura-typography table th,
.aura-typography table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.aura-typography table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.aura-typography table tr:nth-child(even) {
    background: #fcfcfc;
}

.aura-typography hr {
    margin: 40px 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.aura-typography .task-list-item {
    list-style-type: none;
    margin-left: -20px;
}

.aura-typography .task-list-item input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 5px;
    vertical-align: top;
}

@media (max-width: 992px) {
    .article-detail-layout .layui-col-md4 {
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .article-detail-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .article-detail-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .detail-page-meta {
        font-size: 13px !important;
        gap: 12px 15px !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .detail-page-meta span i {
        font-size: 14px !important;
        margin-right: 4px !important;
    }
    
    .aura-breadcrumb-sep {
        margin: 0 8px !important;
        color: #ddd !important;
    }

    .article-comment-fields-row .layui-col-md6 {
        margin-bottom: 10px;
    }

    .article-recommend-card {
        margin-bottom: 10px;
    }

    .article-author-card {
        display: none;
    }

    .article-toc-wrap {
        display: none;
    }

    .aura-typography {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .aura-typography h1 { font-size: 24px; }
    .aura-typography h2 { font-size: 21px; }
    .aura-typography h3 { font-size: 18px; }
    
    .aura-typography blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    .aura-typography table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
