.article-page {
    padding: 36px 0 56px;
}

.article-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.articles-index-card {
    max-width: 1180px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: .86rem;
    margin-bottom: 18px;
}

.article-breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.article-header h1 {
    color: var(--emerald);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 14px;
}

.article-excerpt {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.article-header time {
    color: var(--gray-400);
    font-size: .9rem;
}

.article-hero {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--gray-200);
}

.article-content {
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.9;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--emerald);
    margin: 1.5em 0 .55em;
    line-height: 1.35;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin-bottom: 1em;
}

.article-content ul,
.article-content ol {
    padding-right: 24px;
}

.article-content a {
    color: var(--blue);
    font-weight: 700;
}

.article-content blockquote {
    border-right: 4px solid var(--blue);
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 8px;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    overflow: hidden;
    border-radius: 8px;
}

.article-content th,
.article-content td {
    border: 1px solid var(--gray-200);
    padding: 10px;
    text-align: right;
}

.article-content th {
    background: var(--gray-100);
    color: var(--emerald);
}

.article-back {
    display: inline-flex;
    margin-top: 12px;
    color: #fff;
    background: var(--emerald);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.article-list-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.article-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.article-list-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.article-list-card div {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-list-card h2 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 2.8em;
}

.article-list-card h2 a {
    color: var(--emerald);
    text-decoration: none;
}

.article-list-card p {
    color: var(--gray-500);
    font-size: .86rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding-top: 4px;
}

.article-read-more:hover {
    color: var(--emerald);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-page {
        padding-top: 20px;
    }

    .article-card {
        padding: 18px;
        border-radius: 10px;
    }

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