.post-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E9EAEB);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative; /* 確保絕對定位的子元素相對於此容器定位 */
}

/* Hover 與 Active – 香檳金高光 */
.post-card:hover,
.post-card:active {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border-color: rgba(184, 155, 94, 0.45);
    transform: translateY(-2px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-cover,
.post-content-container {
    height: 228px;
    border: 1px solid var(--border-color, #E9EAEB);
    border-radius: 8px;
}

.post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.556em;
    color: #181D27;
    transition: color 0.2s ease;
}

/* .post-title:hover {
    color: var(--primary-color, #B89B5E);
} */

.post-content-preview {
    /* max-height: 160px; */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #181D27;
}

/* 用戶資訊樣式 */
.text-gray-600 {
    color: #535862 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.429em;
}

.text-gray-400 {
    color: #A4A7AE !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.429em;
}

/* 交互按鈕樣式 - 香檳金配色 */
.heart-button,
.share-button {
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transform: scale(1);
}

.heart-button:active {
    transform: scale(1.2);
}

.heart-button:hover:not(.active) .heart-icon path {
    stroke: #F46A6A !important;
}

.heart-button.active {
    color: #F46A6A;
}

.heart-button.active .heart-icon path {
    stroke: #F46A6A !important;
    fill: #F46A6A !important;
}

.heart-button:hover {
    color: #F46A6A;
}

.heart-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.share-button:hover {
    color: var(--primary-color, #B89B5E) !important;
}

.share-button:hover svg path {
    stroke: var(--primary-color, #B89B5E) !important;
}

/* 用戶頭像樣式優化 */
.user-avatar {
    border: 1px solid #535862;
    transition: border-color 0.2s ease;
}

/* .user-avatar:hover {
    border-color: var(--nav-active-border, rgba(181, 155, 94, 0.25));
} */

/* 我的文章標誌樣式 - 簡單藍色outline */
.my-post-badge {
    border: 1px solid #3B82F6;
    color: #3B82F6;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

/* 診所引用卡片覆蓋層 - 根據 Figma 設計 */
.clinic-reference-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 10;
}

.clinic-reference-content {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 6px 4px 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.clinic-info {
    flex: 1;
    min-width: 0;
}

.clinic-name {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clinic-type {
    font-family: Inter;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0%;

    margin: 0;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clinic-link-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 999px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.clinic-link-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 統計數字樣式 */
.text-base.font-medium.text-gray-600 {
    color: #535862 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
}

/* 分享提示框動畫 */
.share-toast {
    animation: slideInRight 0.3s ease-out;
}

.share-toast.hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 響應式優化 */
@media (max-width: 768px) {

    .post-cover,
    .post-content-container {
        height: unset !important;
        min-height: 110px;
    }

    .post-title {
        font-size: 16px;
    }

    .post-content-preview {
        font-size: 14px;
    }

    .clinic-name {
        font-size: 13px;
    }

    .clinic-type {
        font-size: 11px;
    }

    .clinic-link-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .post-card {
        border: none;
        padding: 12px;
    }

    .post-title {
        font-size: 15px;
    }

    .post-content-preview {
        font-size: 13px;
    }
    .post-card.active {
        border-color: unset !important;
        box-shadow: unset !important;
    }
}
