/* ===== Article Card ===== */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 951 / 580;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card__image:hover img {
    transform: scale(1.05);
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.article-card__content {
    display: flex;
    flex-direction: column;
}

.article-card__date {
    text-align: right;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.article-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px;
    line-height: 1.5;
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card__title a:hover {
    color: #0EC8BF;
}

.article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.article-card__tags a {
    margin-bottom: 2px;
}

.article-card__tags a:hover {
    color: #FFFFFF;
    background-color: #0EC8BF;
    border: 1px solid #0EC8BF;
}

.article-card__address {
    color: #0ec8bf;
    margin-bottom: 16px;
    font-size: 16px;
}

.article-card__excerpt {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin: 0 0 32px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 重置 excerpt 內所有 richtext 元素為統一大小 */
.article-card__excerpt *,
.article-card__excerpt h1,
.article-card__excerpt h2,
.article-card__excerpt h3,
.article-card__excerpt h4,
.article-card__excerpt strong,
.article-card__excerpt em {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: normal !important;
    margin: 0 !important;
}

.article-card__excerpt p {
    margin-bottom: 0;
}

.article-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: #33B6B0;
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.article-card__btn:hover {
    background: #2da39e;
    color: #FFFFFF;
}

/* ===== Article Container (for list pages) ===== */
/* 設計稿：mb-12 (48px) + gap-6 (24px) = 72px */
.shared-article-list {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.shared-article-list .article-container {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .article-card__image {
        border-radius: 16px;
    }

    .article-card__title {
        font-size: 18px;
    }

    .article-card__excerpt {
        -webkit-line-clamp: 3;
    }
}
