.content {
    min-height: calc(100vh - var(--header-height));
    color: var(--text-primary);
    line-height: 1.7;
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
    background-color: transparent;
    transition: var(--transition-theme);
}

.content-body {
    max-width: 1400px;
    margin: 0;
}

.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
    color: var(--text-primary);
    font-weight: 500;
    margin: 1.8rem 0 1rem;
    transition: color 0.3s var(--md-easing);
}

.content-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content h1 {
    font-size: 2rem;
}

.content h2 {
    font-size: 1.75rem;
    color: var(--color-h2);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.5rem;
    color: var(--color-h3);
    font-weight: 600;
}

.content h4 {
    font-size: 1.25rem;
    color: var(--color-h4);
}

.text-block p {
    margin: 1em 0;
}

.text-block strong,
.text-block b {
    font-weight: 700;
    color: var(--primary-color);
}

.text-block a {
    color: var(--primary-color);
    font-weight: 500;
    transition: opacity 0.2s;
}

.text-block a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.text-block ul, .text-block ol {
    padding-left: 2em;
    margin: 1em 0;
}

.text-block code:not([class]) {
    font-family: var(--font-code);
    background: var(--surface-variant);
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    border-radius: 6px;
    color: var(--primary-color);
}

.code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
    background: var(--surface-variant);
    border-radius: var(--shape-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.content pre {
    margin: 0;
    padding: 0.5rem;
    overflow-x: auto;
}

.content pre code {
    font-family: var(--font-code);
    font-size: 0.88rem;
    line-height: 1.5;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--shape-pill);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s var(--md-easing);
    z-index: 5;
}

.copy-code-btn:hover {
    background: var(--hover-overlay);
    color: var(--text-primary);
}

.copy-code-btn.copied {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--active-overlay);
}

.content-image-wrapper {
    margin: 2rem 0;
    text-align: left;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--shape-medium);
    box-shadow: var(--shadow-md);
    background: var(--surface-color);
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.loader {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    width: 100%;
}

.loader .spinner {
    border: 4px solid var(--surface-variant);
    border-radius: 50%;
    border-top-color: var(--color-h2);
    border-right-color: var(--color-h3);
    width: 48px;
    height: 48px;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

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