.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.breadcrumbs {
    grid-column: 1 / -1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--neutral-brown);
}

.breadcrumbs a {
    color: var(--accent-pattern);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-heart);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--neutral-brown);
}

.breadcrumbs .current {
    color: var(--neutral-light);
}

.article-content {
    background: var(--neutral-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 500px;
}

.article-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.flower-loader {
    position: relative;
    width: 80px;
    height: 80px;
    animation: flower-rotate 4s linear infinite;
}

.flower-loader .petal {
    position: absolute;
    width: 20px;
    height: 35px;
    background: linear-gradient(to bottom, var(--accent-heart), var(--accent-pattern));
    border-radius: 50% 50% 50% 50%;
    transform-origin: center bottom;
    animation: petal-bloom 2s ease-in-out infinite;
}

.flower-loader .petal:nth-child(1) { left: 30px; top: 5px; animation-delay: 0s; }
.flower-loader .petal:nth-child(2) { left: 5px; top: 30px; animation-delay: 0.4s; }
.flower-loader .petal:nth-child(3) { left: 30px; bottom: 5px; animation-delay: 0.8s; }
.flower-loader .petal:nth-child(4) { right: 5px; top: 30px; animation-delay: 1.2s; }
.flower-loader .petal:nth-child(5) { left: 55px; top: 30px; animation-delay: 1.6s; }

.flower-loader .center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-pattern);
    border-radius: 50%;
    left: 30px;
    top: 30px;
    z-index: 10;
}

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

@keyframes petal-bloom {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

.loading-text {
    color: var(--neutral-brown);
    font-size: 1.1rem;
    animation: text-pulse 1.5s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(248, 201, 139, 0.3);
}

.article-title {
    font-family: "Ma Shan Zheng", "Playfair Display", serif;
    font-size: 2.5rem;
    color: var(--neutral-light);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--neutral-brown);
    font-size: 0.9rem;
}

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

.article-meta-item i {
    color: var(--accent-pattern);
}

.article-body {
    color: var(--neutral-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--accent-pattern);
    margin: 30px 0 15px;
    font-family: "Noto Serif SC", serif;
}

.article-body h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--accent-heart);
    padding-left: 15px;
}

.article-body h3 {
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body a {
    color: var(--accent-pattern);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-pattern);
    transition: all 0.3s;
}

.article-body a:hover {
    color: var(--accent-heart);
    border-bottom-style: solid;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.article-body blockquote {
    margin: 20px 0;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent-heart);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--neutral-brown);
}

.article-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "Consolas", monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

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

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

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

.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-pattern), transparent);
    margin: 30px 0;
}

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

.sidebar-section {
    background: var(--neutral-card);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.sidebar-section h3 {
    color: var(--accent-pattern);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 201, 139, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section h3 i {
    color: var(--accent-heart);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.meta-label {
    color: var(--neutral-brown);
    font-size: 0.85rem;
}

.meta-value {
    color: var(--neutral-light);
    font-size: 0.95rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(248, 201, 139, 0.2);
    color: var(--accent-pattern);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-pattern);
    color: var(--primary-bg);
}

.pdf-section {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.pdf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.pdf-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
}

.pdf-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pdf-name {
    color: var(--neutral-light);
    font-size: 0.95rem;
    word-break: break-all;
}

.pdf-size {
    color: var(--neutral-brown);
    font-size: 0.8rem;
}

.pdf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.pdf-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(192, 57, 43, 0.5);
}

.related-articles {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(248, 201, 139, 0.2);
}

.related-articles h2 {
    color: var(--accent-pattern);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-articles h2 i {
    color: var(--accent-heart);
}

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

.related-card {
    background: var(--neutral-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-bg), var(--neutral-dark));
}

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

.related-card-title {
    color: var(--neutral-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card-date {
    color: var(--neutral-brown);
    font-size: 0.85rem;
}

.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: modal-fade-in 0.3s ease;
}

.pdf-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdf-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modal-slide-up 0.4s ease;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(248, 201, 139, 0.2);
}

.pdf-modal-header h3 {
    color: var(--neutral-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-modal-header h3 i {
    color: #c0392b;
}

.pdf-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--neutral-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.pdf-modal-close:hover {
    background: rgba(192, 57, 43, 0.3);
    transform: rotate(90deg);
}

.pdf-loader-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f240e, #1a3d16);
}

.elegant-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-flower {
    width: 100px;
    height: 100px;
    animation: flower-bounce 2s ease-in-out infinite;
}

.flower-svg {
    width: 100%;
    height: 100%;
}

.flower-petals {
    transform-origin: center;
    animation: petals-rotate 8s linear infinite;
}

@keyframes flower-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader-text-main {
    color: var(--neutral-light);
    font-size: 1.2rem;
}

.loader-text-sub {
    color: var(--neutral-brown);
    font-size: 0.9rem;
}

.loader-progress {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-heart), var(--accent-pattern), var(--accent-heart));
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progress-animate 2s ease-in-out infinite;
}

@keyframes progress-animate {
    0% { background-position: 200% 0; width: 0%; }
    50% { width: 70%; }
    100% { background-position: -200% 0; width: 100%; }
}

.progress-text {
    color: var(--neutral-brown);
    font-size: 0.85rem;
    text-align: center;
}

.pdf-viewer-container {
    flex: 1;
    overflow: hidden;
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(248, 201, 139, 0.2);
}

.pdf-download-btn,
.pdf-newtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.pdf-download-btn {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
}

.pdf-newtab-btn {
    background: transparent;
    color: var(--neutral-light);
    border: 1px solid var(--neutral-brown);
}

.pdf-newtab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
    }

    .article-content {
        padding: 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 1.5rem;
    }

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

    .pdf-modal-content {
        width: 95%;
        height: 90vh;
    }
}
