.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; /* 確保絕對定位的子元素相對於此容器定位 */
}

.post-card:hover,
.post-card.active {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
}

.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-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 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5em;
}

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

/* 交互按鈕樣式 - 香檳金配色 */
.heart-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;
}

/* 用戶頭像樣式優化 */
.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);
     
    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;
}

/* 響應式優化 */
@media (max-width: 768px) {
    .action-count {
        font-size: 14px;
    }

    .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: 576px ) {
    .post-cover,
    .post-content-container {
        height: 100%;
    }

    .post-card {
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--border-color, #E9EAEB);
        box-shadow: none;
        border-radius: 0;
        padding: 16px 4px;
        transition: none;
    }

    .post-card:hover,
    .post-card:active {
        background-color: #F9FAFB;
        box-shadow: none;
        transform: none;
        transition: background-color 0.2s ease;
    }

    .post-card:active {
        background-color: #F3F4F6;
    }

    .post-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .post-content-preview {
        font-size: 0.9rem;
    }

    .post-card.active {
        border-color: unset !important;
        box-shadow: unset !important;
    }
}
