/* ===== 貼文卡片共用樣式 ===== */
/* 適用於首頁和詳情頁面的貼文卡片 */

/* 貼文卡片基礎樣式 */
.post-card {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 28px var(--shadow-light);
    border: 1px solid rgba(255, 107, 107, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Instagram 風格貼文頭部設計 */
.post-header {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

/* 影片貼文的覆蓋層 header */
.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
    padding: 1rem 1.5rem;
    border-bottom: none;
    pointer-events: none; /* 允許點擊穿透到下方的媒體 */
}

/* 確保 overlay header 內的互動元素可以點擊 */
.post-header-overlay .user-section {
    pointer-events: auto;
}

/* 混合媒體貼文的 header 確保顯示 */
.post-card-video .post-header-overlay {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 確保混合媒體貼文的 header 內容可見 */
.post-card-video .post-header-overlay .user-info,
.post-card-video .post-header-overlay .pet-bubbles,
.post-card-video .post-header-overlay .post-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 影片覆蓋層 header 中的用戶資訊 */
.post-header-overlay .user-info {
    color: white;
}

/* 影片覆蓋層中的用戶頭像連結 */
.post-header-overlay .user-avatar-link {
    color: white;
}

.post-header-overlay .user-avatar-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 影片覆蓋層中的用戶詳情連結 */
.post-header-overlay .user-details-link {
    color: white;
}

.post-header-overlay .user-details-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.post-header-overlay .user-details h6 {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.post-header-overlay .post-time {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 影片覆蓋層 header 中的寵物氣泡 */
.post-header-overlay .pet-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.post-header-overlay .pet-bubble-name {
    color: #262626;
}

.post-header-overlay .pet-expand-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #495057;
}

/* 影片覆蓋層 header 中的選單按鈕 */
.post-header-overlay .post-menu-toggle {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.post-header-overlay .post-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 用戶資訊區域 */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 使用 gap 替代 space-between */
    min-width: 0; /* 允許容器收縮 */
}

/* 用戶資訊左側區域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0; /* 允許收縮 */
}

/* 用戶頭像連結 */
.user-avatar-link {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0.25rem;
    text-decoration: none;
    color: inherit;
}

.user-avatar-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* 用戶詳情連結 */
.user-details-link {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.25rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.user-details-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.user-details {
    flex: 1;
    min-width: 0; /* 允許 flex 項目收縮 */
    margin-right: 0.5rem; /* 與寵物氣泡保持間距 */
}

.user-details h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* 限制最大寬度 */
}

.post-time {
    font-size: 0.8rem;
    color: #8e8e8e;
    margin: 0;
}

.post-menu {
    background: transparent !important;
    border: none;
    color: #262626;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
    outline: none;
    font-size: 1.1rem;
}

/* .post-menu:hover, .post-menu:focus {
    background: rgba(0, 0, 0, 0.05);
} */

/* 下拉選單樣式 */
.post-menu-dropdown {
    position: relative;
}

.post-menu-toggle {
    background: transparent !important;
    border: none;
    color: #262626;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease;
    outline: none;
    font-size: 1.1rem;
}

/* .post-menu-toggle:hover, .post-menu-toggle:focus {
    background: rgba(0, 0, 0, 0.05);
} */

.post-menu-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.post-menu-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.menu-option:first-child {
    border-radius: 12px 12px 0 0;
}

.menu-option:last-child {
    border-radius: 0 0 12px 12px;
}


.menu-option i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* 寵物氣泡設計 - 緊湊橫排 */
.pet-bubbles {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.2rem;
    position: relative;
    min-width: 0; /* 允許收縮 */
    max-width: 120px; /* 限制整個寵物氣泡區域的最大寬度 */
}

.pet-bubble {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.1rem 0.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 1; /* 允許收縮 */
    max-width: 100px; /* 限制寵物氣泡最大寬度 */
    min-width: 0; /* 允許收縮 */
    overflow: hidden; /* 確保內容不會溢出 */
}


.pet-bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.pet-bubble-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1; /* 允許收縮 */
    overflow: hidden; /* 確保內容不會溢出 */
}

.pet-bubble-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #262626;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px; /* 進一步限制名字的最大寬度 */
}

.pet-bubble-breed {
    font-size: 0.6rem;
    color: #8e8e8e;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 寵物展開按鈕 */
.pet-expand-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 0.3rem 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #495057;
    font-weight: 500;
    z-index: 1;
    position: relative;
    max-width: 50px; /* 限制展開按鈕的最大寬度 */
    overflow: hidden;
}

.pet-expand-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #262626;
}

.pet-expand-btn .pet-count {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 0.6rem;
}

.pet-expand-btn i {
    font-size: 0.55rem;
    color: #6c757d;
}

/* 影片容器包裝器 */
.post-video-container-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    min-height: 400px; /* 固定影片高度 */
    overflow: hidden; /* 確保內容不會溢出 */
}

/* 影片滑動容器 */
.post-video-slider {
    position: relative;
    width: 100%;
    height: 400px; /* 固定影片高度 */
    display: flex;
    transition: transform 0.3s ease;
}

/* 影片滑動項目 */
.post-video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Instagram 風格圖片滑動 */
.post-images-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.post-images-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 正方形比例 */
    display: flex;
    transition: transform 0.3s ease;
}

.post-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    border-radius: 0;
}

/* 影片容器樣式 */
.post-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.post-video-container:active {
    transform: scale(0.98);
}

.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* 影片覆蓋層 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-video-container:hover .video-overlay {
    opacity: 1;
}

/* 影片時長顯示 */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

/* 播放圖標 */
.video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-play-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 影片辨識符號 - 右下角透明播放圖標 */
.video-indicator-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 25;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    opacity: 0.5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none; /* 避免干擾點擊事件 */
}

.video-indicator-icon:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* 影片指示器樣式 */
.image-indicator[data-media-type="video"] {
    position: relative;
}

.image-indicator[data-media-type="video"] i {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.5rem;
    color: #ff6b6b;
}

/* 影片指示器 */
.video-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.video-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* 圖片指示器 */
.image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.image-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* 滑動提示 */
.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* .post-images-container:hover .swipe-hint {
    opacity: 1;
} */

/* 觸控滑動支援 */
.post-images-container {
    touch-action: manipulation;
    cursor: grab;
}

.post-images-container:active {
    cursor: grabbing;
}

/* 空圖片狀態 */
.empty-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 8px;
}

.empty-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.empty-image-placeholder span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 互動按鈕區 */
.post-actions {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
}

.action-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px var(--shadow-light);
}

/* .action-btn:hover {
    color: var(--primary);
    background: var(--accent);
    transform: scale(1.1);
} */

.action-btn.liked {
    color: #E91E63;
}

/* ===== 收藏按鈕專用樣式 ===== */
.action-btn.save-btn {
    /* 基礎樣式 */
    color: #8e8e8e;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 未收藏狀態 - 灰色 */
.action-btn.save-btn:not(.saved) {
    color: #8e8e8e;
}

.action-btn.save-btn:not(.saved) i,
.action-btn.save-btn:not(.saved) svg {
    color: #8e8e8e;
}

/* 已收藏狀態 - 橙色 */
.action-btn.save-btn.saved {
    color: #E55555;
}

.action-btn.save-btn.saved i,
.action-btn.save-btn.saved svg {
    color: #E55555;
}

/* Font Awesome 類別樣式覆蓋 - 確保顏色正確 */
.action-btn.save-btn i.far {
    color: #8e8e8e !important;
}

.action-btn.save-btn i.fas {
    color: #E55555 !important;
}

/* Font Awesome SVG 版本樣式覆蓋 */
.action-btn.save-btn svg[data-prefix="far"] {
    color: #8e8e8e !important;
}

.action-btn.save-btn svg[data-prefix="fas"] {
    color: #E55555 !important;
}

/* 收藏按鈕懸停效果 */
.action-btn.save-btn:hover {
    transform: scale(1.1);
}

.action-btn.save-btn:not(.saved):hover {
    color: #E55555;
}

.action-btn.save-btn:not(.saved):hover i,
.action-btn.save-btn:not(.saved):hover svg {
    color: #E55555;
}

/* 確保收藏按鈕的圖標顏色正確 */
.action-btn.save-btn i,
.action-btn.save-btn svg {
    transition: color 0.3s ease;
}

/* 保留原有的通用 saved 樣式（不影響其他按鈕） */
.action-btn.saved {
    color: #E55555;
}

/* ===== 捐贈罐罐按鈕專用樣式 ===== */
.action-btn.donate-btn {
    /* 基礎樣式 */
    color: #E55555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.donate-btn i {
    color: #E55555;
    transition: color 0.3s ease;
}

/* 捐贈按鈕懸停效果 */
.action-btn.donate-btn:hover {
    transform: scale(1.1);
    color: #E55555;
}

.action-btn.donate-btn:hover i {
    color: #E55555;
}

/* 禁用的捐贈按鈕樣式 */
.action-btn.donate-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999 !important;
}

.action-btn.donate-btn.disabled i {
    color: #999 !important;
}

.action-btn.donate-btn.disabled:hover {
    transform: none;
    color: #999 !important;
}

.action-btn.donate-btn.disabled:hover i {
    color: #999 !important;
}

/* 點讚數 */
.likes-count {
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 貼文內容 */
.post-content {
    padding: 0 1.5rem 0.75rem;
}

.post-caption {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-caption .username {
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: pointer;
}

/* 圈圈 - 圈圈風格設計 */
/* ===== 貼文圈圈美化樣式 ===== */
.post-circles {
    margin: 1rem 0 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.circle {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0;
}

.circle:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    border-color: var(--primary);
}

/* 移除文字前方的項目點 */
.circle::after {
    display: none;
}

/* 統一圈圈樣式 - 所有圈圈使用相同的設計 */

/* 圈圈點擊動畫 */
.circle:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* 圈圈載入動畫 - 簡化版本 */
.circle {
    animation: circleFadeIn 0.4s ease-out;
}

@keyframes circleFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移除複雜的脈衝效果，保持簡潔 */

/* 響應式設計 - 平板 */
@media (max-width: 768px) {
    .post-circles {
        gap: 0.5rem;
        margin: 0.8rem 0 0.4rem 0;
    }
    
    .circle {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }
    
    .circle::after {
        width: 7px;
        height: 7px;
        left: 0.7rem;
    }
}

/* 響應式設計 - 手機 */
@media (max-width: 480px) {
    /* 影片貼文響應式 */
    .post-video-container-wrapper {
        min-height: 300px; /* 手機版固定高度 */
    }
    
    .post-video-slider {
        height: 300px; /* 手機版固定高度 */
    }
    
    .post-header-overlay {
        padding: 0.75rem 1rem;
    }
    
    /* 影片辨識符號響應式 */
    .video-indicator-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        bottom: 12px;
        right: 12px;
        padding: 0 0 0 5px;
    }
    
    .post-circles {
        gap: 0.4rem;
        margin: 0.6rem 0 0.3rem 0;
        padding: 0.3rem 0;
    }
    
    .circle {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 16px;
        letter-spacing: 0.3px;
    }
    
    .circle::after {
        width: 6px;
        height: 6px;
        left: 0.6rem;
    }
    
    .circle:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

/* 響應式設計 - 小手機 */
@media (max-width: 360px) {
    /* 影片貼文小螢幕響應式 */
    .post-video-container-wrapper {
        min-height: 250px; /* 小螢幕固定高度 */
    }
    
    .post-video-slider {
        height: 250px; /* 小螢幕固定高度 */
    }
    
    /* 影片辨識符號小螢幕響應式 */
    .video-indicator-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        bottom: 10px;
        right: 10px;
        padding: 0 0 0 3px;
    }
    
    .post-circles {
        gap: 0.3rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .circle {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
        border-radius: 14px;
    }
    
    .circle::after {
        width: 5px;
        height: 5px;
        left: 0.5rem;
    }
}

/* 深色模式支援 - 簡化版本 */
@media (prefers-color-scheme: dark) {
    .circle {
        background: var(--bg-dark);
        color: var(--text-light);
        border-color: var(--border-dark);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .circle:hover {
        color: var(--primary-light);
        border-color: var(--primary-light);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 減少動畫偏好設定支援 */
@media (prefers-reduced-motion: reduce) {
    .circle {
        animation: none;
        transition: none;
    }
    
    .circle:hover {
        transform: none;
    }
    
    .circle:hover::before {
        animation: none;
    }
    
    .circle::after {
        transition: none;
    }
}

/* 額外的互動效果 */
.circle {
    position: relative;
    z-index: 1;
}

/* 圈圈點擊時的漣漪效果 */
.circle:active::after {
    animation: circleRipple 0.6s ease-out;
}

@keyframes circleRipple {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(3);
        opacity: 0;
    }
}

/* 圈圈焦點狀態 */
.circle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 圈圈載入時的延遲動畫 */
.circle:nth-child(1) { animation-delay: 0.1s; }
.circle:nth-child(2) { animation-delay: 0.2s; }
.circle:nth-child(3) { animation-delay: 0.3s; }
.circle:nth-child(4) { animation-delay: 0.4s; }
.circle:nth-child(5) { animation-delay: 0.5s; }

/* 圈圈懸停時的圖標動畫 - 已移除圖標，保留動畫框架供未來使用 */

/* 圈圈載入完成後的狀態 */
.circle.loaded {
    animation: none;
    opacity: 1;
    transform: none;
}

/* 留言區域 */
.comments-section {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bg-secondary);
    margin-top: 0.5rem;
}

/* 沒有留言時的提示 */
.no-comments {
    color: #999;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.view-comments {
    padding: 0.75rem 0 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.view-comments:hover {
    color: var(--primary);
}

/* .view-comments:hover {
    color: var(--text-secondary);
} */

.comment-item {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.comment-user {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.comment-user:hover {
    color: var(--primary-color, #007bff);
    text-decoration: underline;
}

.comment-text {
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.load-more-comments {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* .load-more-comments:hover {
    color: var(--primary);
} */

/* 新增留言 */
.add-comment {
    padding: 0.75rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    padding: 0.5rem 0;
}

.comment-input::placeholder {
    color: var(--text-light);
}

.comment-submit {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.comment-submit.active,
.comment-submit:hover {
    opacity: 1;
}

/* 隱藏的留言列表 */
.comments-list.hidden {
    display: none;
}

.comments-list {
    animation: commentsSlideDown 0.3s ease-out;
}

@keyframes commentsSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 留言按鈕增強 */
.comment-btn {
    position: relative;
}

.comment-btn.active {
    color: var(--primary) !important;
}

.comment-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--accent);
    z-index: -1;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .post-header {
        padding: 0.75rem 1rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-details {
        margin-right: 0.3rem;
    }
    
    .user-details h6 {
        font-size: 0.9rem;
        max-width: 100px; /* 手機版進一步縮小 */
    }
    
    .post-time {
        font-size: 0.75rem;
    }
    
    .pet-bubbles {
        gap: 0.15rem;
        max-width: 100px; /* 手機版進一步縮小寵物氣泡區域 */
    }

    .pet-bubble {
        max-width: 80px; /* 手機版縮小寵物氣泡 */
    }
    
    .pet-bubble-name {
        font-size: 0.7rem;
        max-width: 50px; /* 手機版進一步縮小名字寬度 */
    }
    
    .pet-bubble-breed {
        font-size: 0.6rem;
    }
    
    .pet-expand-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .pet-expand-btn .pet-count {
        font-size: 0.55rem;
    }
    
    .pet-expand-btn i {
        font-size: 0.5rem;
    }
    
    /* 圖片滑動響應式 */
    .post-images-slider {
        padding-bottom: 100%; /* 保持 1:1 比例 */
    }
    
    .image-indicators {
        bottom: 10px;
        gap: 4px;
    }
    
    .image-indicator {
        width: 5px;
        height: 5px;
    }
    
    /* 空圖片狀態響應式 */
    .empty-image-placeholder {
        font-size: 1rem;
        margin: 6px;
    }
    
    .empty-image-placeholder i {
        font-size: 2rem;
    }
    
    .empty-image-placeholder span {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .post-header {
        padding: 0.6rem 0.75rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-details {
        margin-right: 0.2rem;
    }
    
    .user-details h6 {
        font-size: 0.85rem;
        max-width: 80px; /* 小螢幕進一步縮小 */
    }
    
    .post-time {
        font-size: 0.7rem;
    }
    
    .pet-bubbles {
        gap: 0.1rem;
        max-width: 80px; /* 小螢幕進一步縮小寵物氣泡區域 */
    }
    
    .pet-bubble {
        max-width: 60px; /* 小螢幕最小寬度 */
    }
    
    .pet-bubble-name {
        font-size: 0.65rem;
        max-width: 40px; /* 小螢幕最小名字寬度 */
    }
    
    .pet-bubble-breed {
        font-size: 0.55rem;
    }
    
    .pet-expand-btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.55rem;
    }
    
    .pet-expand-btn .pet-count {
        font-size: 0.5rem;
    }
    
    .pet-expand-btn i {
        font-size: 0.45rem;
    }
    
    /* 手機版下拉選單調整 */
    .post-menu-options {
        min-width: 100px;
        right: -0.5rem;
    }
    
    .menu-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}


/* 寵物 Modal 樣式 */
.pets-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pets-modal.show {
    opacity: 1;
}

.pets-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pets-modal.show .pets-modal-content {
    transform: scale(1);
}

.pets-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.pets-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #262626;
}

.close-pets-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-pets-modal:hover {
    background: #f8f9fa;
    color: #262626;
}

.pets-modal-body {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.pet-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.pet-modal-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.pet-modal-item:last-child {
    margin-bottom: 0;
}

.pet-modal-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pet-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.pet-modal-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
}

.pet-modal-breed {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .pets-modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .pets-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .pets-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .pets-modal-body {
        padding: 0.75rem 1.25rem 1.25rem;
    }
    
    .pet-modal-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .pet-modal-avatar {
        width: 45px;
        height: 45px;
    }
    
    .pet-modal-name {
        font-size: 0.95rem;
    }
    
    .pet-modal-breed {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .pets-modal-content {
        width: 98%;
        max-width: 320px;
    }
    
    .pets-modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .pets-modal-header h3 {
        font-size: 1rem;
    }
    
    .pets-modal-body {
        padding: 0.5rem 1rem 1rem;
    }
    
    .pet-modal-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .pet-modal-avatar {
        width: 40px;
        height: 40px;
    }
    
    .pet-modal-name {
        font-size: 0.9rem;
    }
    
    .pet-modal-breed {
        font-size: 0.75rem;
    }
} 

/* 響應式設計 */
@media (max-width: 480px) {
    .post-header {
        padding: 0.75rem 1rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-details h6 {
        font-size: 0.9rem;
    }
    
    .post-actions {
        padding: 0.75rem 1rem;
    }
    
    .action-btn {
        font-size: 1.1rem;
    }
    
    .post-content {
        padding: 0.75rem 1rem;
    }
    
    .post-caption {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .comments-section {
        padding: 0.75rem 1rem;
    }
    
    .comment-item {
        padding: 0.5rem 0;
    }
    
    .comment-user {
        font-size: 0.8rem;
    }
    
    .comment-text {
        font-size: 0.8rem;
    }
    
    .comment-time {
        font-size: 0.7rem;
    }
    
    .add-comment {
        padding: 0.5rem 0 0;
        gap: 0.5rem;
    }
    
    .comment-avatar {
        width: 24px;
        height: 24px;
    }
    
    .comment-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .comment-submit {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

/* ===== 新增留言區塊獨立樣式 ===== */

/* 新增留言容器 - 獨立於 comments-section 之外 */
.add-comment-container {
    position: relative;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--bg-secondary);
    margin-top: 1rem;
    padding: 0.5rem 1rem 1rem;
    box-sizing: border-box;
}

/* 在詳情頁面模式下，讓新增留言區塊固定在底部 */
.post-detail-modal-overlay .add-comment-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    margin-top: 0;
    padding: 1rem;
    box-sizing: border-box;
}

/* 確保在詳情頁面模式下，新增留言區塊始終可見 */
.post-detail-modal-overlay .post-detail-wrapper {
    padding-bottom: 80px; /* 為固定的新增留言區塊留出空間 */
}

/* 響應式設計 - 新增留言區塊 */
@media (max-width: 768px) {
    .add-comment-container {
        padding: 0.75rem;
    }
    
    .post-detail-modal-overlay .add-comment-container {
        padding: 0.5rem 0.75rem 1rem;
    }
    
    .post-detail-modal-overlay .post-detail-wrapper {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .add-comment-container {
        padding: 0.5rem;
    }
    
    .post-detail-modal-overlay .add-comment-container {
        padding: 0.5rem 0.5rem 1rem;
    }
    
    .post-detail-modal-overlay .post-detail-wrapper {
        padding-bottom: 60px;
    }
} 