/* 
 * Dappei Application Styles
 * 基於原始 RoR 版本的 CSS 架構重新設計
 */

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

/* ==========================================================================
   廣告樣式
   ========================================================================== */

.ad-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.ad-label {
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ad-container .adsbygoogle {
    display: block !important;
    min-height: 100px;
    background: #ffffff;
    border-radius: 4px;
}

/* 側邊欄廣告樣式 */
.ad-sidebar {
    margin: 15px 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.ad-sidebar .adsbygoogle {
    min-height: 250px;
}

/* 內嵌廣告樣式 */
.ad-inline {
    margin: 25px auto;
    max-width: 728px;
}

/* 文章內嵌廣告專用樣式 */
.ad-inline-article {
    margin: 30px auto;
    padding: 20px;
    max-width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    clear: both;
}

.ad-inline-article .adsbygoogle {
    min-height: 200px;
    max-width: 728px;
    margin: 0 auto;
}

/* 響應式廣告調整 */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    .ad-sidebar {
        margin: 10px 0;
        padding: 8px;
    }
    
    .ad-inline {
        margin: 20px auto;
        max-width: 100%;
    }
    
    .ad-inline-article {
        margin: 20px auto;
        padding: 15px;
    }
    
    .ad-inline-article .adsbygoogle {
        min-height: 150px;
    }
}

html {
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    font-family: 'Noto Sans TC', Ubuntu, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    margin: 0;
    padding: 0;
    padding-top: 60px; /* 為固定的header預留空間 */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    color: #8336D6;
}

textarea {
    resize: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

#container {
    margin: 0 auto;
    padding: 70px 25px 40px 25px;
    width: 960px;
    min-height: 100%;
    background: #ffffff;
    cursor: auto;
}

/* Header styles moved to header.css */

/* ==========================================================================
   Grid System
   ========================================================================== */

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ==========================================================================
   Brand Pages
   ========================================================================== */

/* Brand List */
.brands-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.brands-list .brand {
    display: block;
    margin: 0 10px 40px 10px;
    width: 184px;
    height: 210px;
    text-align: center;
}

.brands-list .brand img {
    width: 182px;
    height: 182px;
    border: 1px solid #cccccc;
    transition: opacity 0.3s ease;
}

.brands-list .brand img:hover {
    opacity: 0.7;
}

.brands-list .brand h3 {
    font-size: 17px;
    width: 184px;
    height: 26px;
    line-height: 26px;
    overflow: hidden;
    margin-top: 5px;
}

/* Brand Detail */
.brand-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.brand-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
}

.brand-header-content {
    position: relative;
    z-index: 1;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.brand-badges .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
    margin-right: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-important {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
}

.badge-hot {
    background: linear-gradient(45deg, #ff5722, #d32f2f);
}

.badge-partner {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
}

.brand-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.brand-logo {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Brand Stats */
.brand-stats-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FF6B6B, #ff5555);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Brand Tabs */
.content-tabs-section {
    background: white;
    padding: 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
}

.tab-link {
    padding: 20px 25px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.tab-link:hover {
    text-decoration: none;
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
}

.tab-link.active {
    color: #FF6B6B;
    border-bottom-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
}

.tab-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   Filters Section
   ========================================================================== */

.filters-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* ==========================================================================
   統一標籤按鈕樣式 - 空心風格（適用於所有頁面）
   ========================================================================== */

/* 基礎標籤容器 */
.filter-options,
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 文章頁面分類標籤 */
.category-tabs ul.category-nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

.category-tabs ul.category-nav li {
    margin: 0 !important;
    display: list-item !important;
}

/* 統一標籤按鈕樣式 - 空心風格 */
.filter-options a,
.filters-section .filter-options a,
.category-tabs .category-tab,
.tags-grid a {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: white !important;
    color: #666 !important;
    text-decoration: none !important;
    border: 2px solid #ddd !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

/* 統一懸停效果 */
.filter-options a:hover,
.filters-section .filter-options a:hover,
.category-tabs .category-tab:hover,
.tags-grid a:hover {
    color: #FF6B6B !important;
    border-color: #FF6B6B !important;
    background: rgba(255, 107, 107, 0.1) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* 統一活動狀態 */
.filter-options a.active,
.filters-section .filter-options a.active,
.category-tabs .category-tab.active,
.tags-grid a.active {
    color: #FF6B6B !important;
    border-color: #FF6B6B !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

/* 標籤內的小文字 */
.filter-options a small,
.filters-section .filter-options a small,
.tags-grid a small {
    opacity: 0.8 !important;
    font-size: 12px !important;
    color: inherit !important;
}

/* 文章頁面專用覆蓋 */
body.articles-page .category-tabs {
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    width: 100% !important;
}

/* 排序選項樣式 */
.sort-tabs {
    margin-bottom: 30px !important;
    border-bottom: 1px solid #e9ecef !important;
    width: 100% !important;
}

.sort-tabs ul.order {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    width: 100% !important;
}

.sort-tabs ul.order li {
    margin: 0 20px !important;
    display: list-item !important;
}

/* 響應式設計 - 統一標籤按鈕 */
@media (max-width: 768px) {
    .filter-options,
    .tags-grid {
        gap: 6px;
    }
    
    .filter-options a,
    .filters-section .filter-options a,
    .category-tabs .category-tab,
    .tags-grid a {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .category-tabs ul.category-nav {
        gap: 8px !important;
        justify-content: center !important;
    }
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   Photo Wall & Grid
   ========================================================================== */

#photos-list {
    margin: 0;
    padding: 0;
}

#photos-list .photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 照片項目內部樣式 */
#photos-list .photo-image {
    position: relative;
    width: 100%;
    height: 80%; /* 使用百分比高度配合aspect-ratio */
    overflow: hidden;
    border-radius: 12px;
}

#photos-list .photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#photos-list .photo-item:hover .photo-image img {
    transform: scale(1.05);
}

#photos-list .sex-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

#photos-list .sex-indicator.male {
    background: rgba(54, 162, 235, 0.8);
}

#photos-list .sex-indicator.female {
    background: rgba(255, 99, 132, 0.8);
}

#photos-list .likes-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#photos-list .photo-info {
    padding: 15px 0 10px 0;
}

#photos-list .photo-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

#photos-list .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

#photos-list .user-name {
    font-weight: 500;
    color: #333;
}

#photos-list .no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

#photos-list .no-photos p {
    font-size: 16px;
    margin: 0;
}

/* Photo Grid for Brand Pages */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 0;
}

/* ==========================================================================
   統一照片網格系統 - 全站照片列表通用樣式
   ========================================================================== */

/* 主要照片網格容器 */
.photos-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    /* 預設3欄佈局，最小寬度280px確保內容可讀性 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 照片項目基礎樣式 */
.photos-grid .photo-item {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    aspect-ratio: 3/5; /* 統一使用3:5比例，符合時尚穿搭照片 */
    border: 1px solid #f0f0f0;
}

.photos-grid .photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #8336D6;
}

/* 照片連結 */
.photos-grid .photo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 照片圖片容器 */
.photos-grid .photo-image {
    position: relative;
    width: 100%;
    height: 80%; /* 調整為80%給圖片，20%給資訊區域 */
    overflow: hidden;
    background: #f8f9fa;
}

.photos-grid .photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photos-grid .photo-item:hover .photo-image img {
    transform: scale(1.05);
}

/* 統一的照片資訊區域 */
.photos-grid .photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px 14px 16px; /* 調整padding */
    height: 18%; /* 增加高度來容納作者和日期 */
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.photos-grid .photo-info .info-row {
    width: 100%;
}

.photos-grid .photo-info .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.photos-grid .photo-info .user-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.photos-grid .photo-info .date {
    font-size: 11px;
    color: #999;
}

/* 照片overlay樣式 - 懸停時清楚顯示 */
.photos-grid .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.photos-grid .photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Overlay中的標題資訊 - 左下角 */
.photos-grid .overlay-title-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    max-width: 70%; /* 限制寬度，避免與右側統計數字重疊 */
}

.photos-grid .overlay-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.3;
    word-wrap: break-word; /* 允許長單詞換行 */
    hyphens: auto; /* 自動連字符 */
}

/* Overlay中的統計資訊 - 右下角，垂直排列 */
.photos-grid .overlay-stats {
    display: flex;
    flex-direction: column; /* 改為垂直排列 */
    align-items: flex-end; /* 右對齊 */
    gap: 6px; /* 減小間距 */
    position: absolute; /* 使用絕對定位 */
    bottom: 15px; /* 距離底部 */
    right: 15px; /* 距離右側 */
}

.photos-grid .overlay-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.photos-grid .overlay-stat-item i {
    font-size: 10px;
}

/* 喜歡數圖標固定紅色 */
.photos-grid .overlay-stat-item .fa-heart {
    color: #ff6b6b;
}

/* 觀看數圖標固定白色 */
.photos-grid .overlay-stat-item .fa-eye {
    color: white;
}

.photos-grid .photo-info .photo-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0; /* 減少底部邊距 */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 改為只顯示1行，節省空間 */
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
    font-family: 'Noto Serif TC', serif;
}

/* 新增底部資訊行佈局 */
.photos-grid .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 統一的用戶資訊區域 */
.photos-grid .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    flex: 1; /* 佔用剩餘空間 */
}

.photos-grid .user-info .user-name {
    font-weight: 500;
    color: #8336D6;
    text-decoration: none;
}

.photos-grid .user-info .user-name:hover {
    color: #943ddf;
}

.photos-grid .user-info .date {
    color: #999;
}

/* 統一的統計資訊 */
.photos-grid .photo-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #666;
    align-items: center;
    flex-shrink: 0; /* 防止被壓縮 */
}

.photos-grid .photo-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap; /* 防止換行 */
}

.photos-grid .photo-stats .stat-item i {
    font-size: 10px;
    color: #999;
}

.photos-grid .photo-stats .stat-item:first-child i {
    color: #FF6B6B; /* 愛心保持紅色 */
}

/* 性別標識 */
.photos-grid .sex-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.photos-grid .sex-indicator.male {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.photos-grid .sex-indicator.female {
    background: linear-gradient(135deg, #FF6B9D, #E55A87);
}

/* ==========================================================================
   照片網格響應式設計
   ========================================================================== */

/* 平板版 - 2欄佈局 */
@media (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

/* 手機版 - 2欄佈局，較小間距 */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 15px;
    }
    
    .photos-grid .photo-item {
        border-radius: 12px;
        aspect-ratio: 3/5; /* 保持統一比例 */
    }
    
    .photos-grid .photo-image {
        height: 82%; /* 手機版給更多空間給圖片 */
    }
    
    .photos-grid .photo-info {
        padding: 10px 12px 12px 12px; /* 平板版padding */
        height: 16%; /* 平板版高度 */
    }
    
    .photos-grid .photo-info .user-name {
        font-size: 12px;
    }
    
    .photos-grid .photo-info .date {
        font-size: 10px;
    }
    
    /* 平板版overlay調整 */
    .photos-grid .photo-overlay {
        padding: 10px;
        opacity: 1; /* 平板版直接顯示，不需要hover */
    }
    
    .photos-grid .overlay-title {
        font-size: 12px;
    }
    
    .photos-grid .overlay-title-info {
        max-width: 65%; /* 平板版進一步限制寬度 */
    }
    
    .photos-grid .overlay-stats {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .photos-grid .overlay-stat-item {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .photos-grid .photo-info .photo-title {
        font-size: 12px;
        margin: 0 0 4px 0;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .photos-grid .user-info {
        font-size: 10px;
        gap: 6px;
    }
    
    .photos-grid .photo-stats {
        font-size: 10px;
        gap: 8px;
    }
    
    .photos-grid .sex-indicator {
        width: 24px;
        height: 24px;
        top: 8px;
        right: 8px;
        font-size: 10px;
    }
}

/* 小手機版 - 保持2欄但縮小間距 */
@media (max-width: 480px) {
    .photos-grid {
        gap: 12px;
    }
    
    .photos-grid .photo-info {
        padding: 8px 10px 10px 10px; /* 手機版padding */
        height: 14%; /* 手機版高度 */
    }
    
    .photos-grid .photo-info .user-name {
        font-size: 11px;
    }
    
    .photos-grid .photo-info .date {
        font-size: 9px;
    }
    
    /* 手機版overlay調整 */
    .photos-grid .photo-overlay {
        padding: 8px;
    }
    
    .photos-grid .overlay-title {
        font-size: 11px;
    }
    
    .photos-grid .overlay-title-info {
        max-width: 60%; /* 手機版更嚴格限制寬度 */
    }
    
    .photos-grid .overlay-stats {
        bottom: 8px;
        right: 8px;
        gap: 4px;
    }
    
    .photos-grid .overlay-stat-item {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .photos-grid .photo-info .photo-title {
        font-size: 11px;
        margin: 0 0 3px 0;
    }
    
    .photos-grid .user-info {
        font-size: 9px;
        gap: 4px;
    }
    
    .photos-grid .photo-stats {
        font-size: 9px;
        gap: 6px;
    }
}

/* ==========================================================================
   特定頁面的照片網格調整
   ========================================================================== */

/* 搭配牆頁面 - 標準3欄佈局 */
.photos-page .photos-grid,
.photos-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* 使用者個人頁面 - 更緊密的4欄佈局 */
.user-profile-page .photos-grid,
.user-profile-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.user-profile-page .photos-grid .photo-item,
.user-profile-grid .photo-item {
    aspect-ratio: 1/1; /* 使用者頁面使用正方形，保持例外 */
}

.user-profile-page .photos-grid .photo-image,
.user-profile-grid .photo-image {
    height: 85%; /* 正方形卡片調整圖片比例 */
}

.user-profile-page .photos-grid .photo-info,
.user-profile-grid .photo-info {
    height: 16%; /* 用戶頁面適當高度 */
    padding: 10px 14px 12px 14px; /* 適中的padding */
}

/* 風格頁面 - 與主要照片網格一致的佈局 */
.style-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.style-page-grid .photo-item {
    aspect-ratio: 3/5; /* 風格頁面統一 3:5 比例 */
}

/* 確保風格頁面照片資訊有正確的 padding */
.style-page-grid .photo-info {
    padding: 12px 16px 14px 16px;
}

/* 追蹤照片頁面 - 標準佈局 */
.following-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 品牌頁面 - 較小的卡片適合展示更多內容 */
.brand-detail-page .photo-grid,
.brand-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.brand-detail-page .photo-item,
.brand-photos-grid .photo-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    aspect-ratio: 3/5; /* 品牌頁面也使用統一比例 */
    border: 1px solid #f0f0f0;
}

.brand-detail-page .photo-item:hover,
.brand-photos-grid .photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #8336D6;
}

/* ==========================================================================
   無內容狀態樣式
   ========================================================================== */

.photos-grid .no-content,
.photos-grid .no-photos {
    grid-column: 1 / -1; /* 佔滿整個網格寬度 */
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.photos-grid .no-content i,
.photos-grid .no-photos i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.photos-grid .no-content h4,
.photos-grid .no-photos h4 {
    margin: 0 0 8px 0;
    color: #555;
    font-weight: 600;
}

.photos-grid .no-content p,
.photos-grid .no-photos p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* ==========================================================================
   分頁樣式
   ========================================================================== */

/* 確保分頁在照片網格下方正確顯示 */
.pagination-center,
.pagination-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    clear: both;
    display: flex;
    justify-content: center;
}

.pagination-center .pagination,
.pagination-wrapper .pagination {
    margin: 0;
}

.pagination-center .page-link,
.pagination-wrapper .page-link {
    color: #8336D6;
    border-color: #ddd;
    padding: 8px 16px;
    font-size: 14px;
}

.pagination-center .page-link:hover,
.pagination-wrapper .page-link:hover {
    color: #943ddf;
    background-color: #f8f9fa;
    border-color: #8336D6;
}

.pagination-center .page-item.active .page-link,
.pagination-wrapper .page-item.active .page-link {
    background-color: #8336D6;
    border-color: #8336D6;
    color: white;
}

.pagination-center .page-item.disabled .page-link,
.pagination-wrapper .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #ddd;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    /* 移除全局 aspect-ratio，讓各頁面自行設定 */
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.05); /* 稍微減少放大效果 */
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-stats {
    display: flex;
    gap: 15px;
}

.photo-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Article Wall & Grid - 統一新版網格佈局
   ========================================================================== */

/* 移除舊的 flexbox 佈局，使用 grid 佈局 */
#articles-list,
.articles-list {
    margin: 0;
    padding: 0;
}

/* 文章網格 - 配合 articles.css */
body.articles-page #articles-list .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

/* 文章項目 - 移除舊的固定尺寸 */
body.articles-page .article-item {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* 舊版文章樣式 - 保留但不影響新版 */
#articles-list .article:not(.article-item),
.articles-list .article:not(.article-item) {
    margin: 0 15px 30px 15px;
    width: 300px;
    height: 373px;
    overflow: hidden;
}

/* 舊版封面樣式 - 僅適用於舊版文章 */
#articles-list .article:not(.article-item) .cover,
.articles-list .article:not(.article-item) .cover {
    display: block;
    position: relative;
    margin-bottom: 13px;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

#articles-list .article:not(.article-item) .cover img,
.articles-list .article:not(.article-item) .cover img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

#articles-list .article:not(.article-item) .cover img:hover,
.articles-list .article:not(.article-item) .cover img:hover {
    opacity: 0.7;
}

/* 舊版圓形 category 標籤樣式 - 已停用，使用 articles.css 中的新版樣式 */
/*
#articles-list .category,
.articles-list .category {
    position: absolute;
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    right: 10px;
    bottom: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}
*/

#articles-list .time,
.articles-list .time {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #FFFFFF;
    letter-spacing: 1px;
    font-size: 16px;
    text-shadow: 0 0 0 rgba(0,0,0,0.8);
}

#articles-list .info,
.articles-list .info {
    font-family: 'Noto Serif TC', Merriweather, serif;
    padding: 0 10px;
}

#articles-list .info h3,
.articles-list .info h3 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    height: 56px;
    overflow: hidden;
    letter-spacing: 1px;
    word-break: break-all;
    color: #000000;
}

/* Content Grid for Brand Pages */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 0;
}

.content-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.content-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-item:hover .content-image {
    transform: scale(1.05);
}

.content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-size: 2.5rem;
}

.content-info {
    padding: 20px;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.content-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-wrapper {
    clear: both;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.pagination-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    clear: both;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.pagination .page-item.active .page-link {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
}

.pagination .page-link:hover {
    color: #FF6B6B;
    border-color: #FF6B6B;
    background-color: rgba(255, 107, 107, 0.1);
    text-decoration: none;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #ddd;
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.pagination-arrow {
    padding: 8px 10px !important;
}

.pagination-arrow i {
    font-size: 10px;
    color: inherit;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background-color: #8336D6;
    border-color: #8336D6;
}

.btn-primary:hover {
    background-color: #943ddf;
    border-color: #943ddf;
}

.btn-secondary {
    color: #333;
    background-color: #f8f9fa;
    border-color: #ddd;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.btn-outline {
    color: #333;
    background-color: transparent;
    border-color: #333;
}

.btn-outline:hover {
    color: white;
    background-color: #333;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: none;
    color: #FF6B6B;
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   No Content States
   ========================================================================== */

.no-content {
    text-align: center;
    padding: 80px 20px;
}

.no-content i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-content h4 {
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-content p {
    color: #999;
    font-size: 1rem;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.social-link {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    text-decoration: none;
    color: #FF6B6B;
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

footer {
    background-color: #333333;
    color: #ffffff;
    margin-top: 60px;
}

.footer-widgets-part {
    padding: 50px 0 30px 0;
    background-color: #333333;
}

.footer-widgets-part .widget {
    margin-bottom: 30px;
    overflow: visible !important;
}

.footer-widgets-part .widget h1 {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #8336D6;
    padding-bottom: 10px;
}

.footer-widgets-part .widget p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-widgets-part .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widgets-part .widget ul li {
    margin-bottom: 8px;
}

.footer-widgets-part .widget ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widgets-part .widget ul li a:hover {
    color: #8336D6;
}

.footer-last-line {
    background-color: #222222;
    padding: 15px 0;
    border-top: 1px solid #444444;
}

.footer-last-line p {
    color: #cccccc;
    margin: 0;
    font-size: 14px;
}

.footer-nav {
    text-align: right;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #8336D6;
}

/* Custom Facebook Widget - 輕量級替代方案 */
.social-links-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facebook-link-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facebook-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.facebook-logo {
    margin-right: 12px;
    flex-shrink: 0;
}

.facebook-logo svg {
    width: 32px;
    height: 32px;
}

.facebook-info h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.facebook-info p {
    color: #cccccc;
    font-size: 13px;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.facebook-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-like-btn,
.fb-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.fb-like-btn {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.fb-like-btn:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.fb-like-btn i {
    margin-right: 6px;
    font-size: 12px;
}

.fb-visit-btn {
    background: transparent;
    color: #cccccc;
    border-color: #666666;
}

.fb-visit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #888888;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .social-links-widget {
        height: auto;
        min-height: 120px;
    }
    
    .facebook-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .fb-like-btn,
    .fb-visit-btn {
        flex: 1;
        font-size: 12px;
        padding: 6px 8px;
    }
}

.tags-widget {
    overflow: visible !important;
    min-height: 180px !important;
}

/* 確保所有父容器不會限制高度 */
.footer-widgets-part .col-md-3 {
    overflow: visible !important;
    min-height: 200px !important;
}

/* ==========================================================================
   Floating Action Button (FAB)
   ========================================================================== */

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 56px;
    height: 56px;
    background: #8336D6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(131, 54, 214, 0.3);
    transition: all 0.3s ease;
}

.fab-main:hover {
    background: #943ddf;
    transform: scale(1.1);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.fab-item {
    width: 48px;
    height: 48px;
    background: #666666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.fab-item:hover {
    background: #8336D6;
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    #container {
        width: 100%;
        padding: 70px 20px 40px 20px;
    }
    
    /* Header styles moved to header.css */
}

/* 頁面特定的照片網格覆蓋樣式 */

/* 風格頁面照片網格在上方已定義為 .style-page-grid，此處移除重複規則 */

/* 使用者頁面 - 使用較小的卡片，4欄佈局 */
.user-profile-page .photos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.user-profile-page .photos-grid .photo-image {
    height: 250px;
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* 照片網格響應式 - 由 photos.css 統一管理 */
    /* 
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    */
    
    .photos-grid .photo-image {
        height: 200px;
    }
    
    /* 使用者頁面響應式 */
    .user-profile-page .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-profile-page .photos-grid .photo-image {
        height: 180px;
    }
    
    #photos-list .photo {
        width: calc(50% - 16px);
    }
    
    #photos-list .photo-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3/5;
    }
    
    #articles-list .article {
        width: calc(50% - 30px);
    }
    
    .content-tabs {
        padding: 0 15px;
        overflow-x: auto;
    }
    
    .tab-link {
        padding: 15px 20px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .brand-header-section {
        padding: 30px 0;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    #photos-list .photo {
        width: calc(50% - 16px);
    }
    
    #articles-list .article {
        width: calc(100% - 30px);
    }
    
    .social-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Header styles moved to header.css */
}

/* ==========================================================================
   統一麵包屑樣式 - 覆蓋Bootstrap預設樣式
   ========================================================================== */

.breadcrumb-nav {
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.breadcrumb-nav .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 強制覆蓋Bootstrap breadcrumb樣式 */
.breadcrumb-nav .breadcrumb,
.breadcrumb-nav ol.breadcrumb,
nav.breadcrumb-nav .breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
}

/* 移除Bootstrap的分隔符並設置我們的 */
.breadcrumb-nav .breadcrumb > li + li:before,
.breadcrumb-nav .breadcrumb > li + li::before {
    content: '' !important;
    padding: 0 !important;
}

.breadcrumb-nav .breadcrumb-item,
.breadcrumb-nav .breadcrumb > li {
    display: flex !important;
    align-items: center !important;
}

.breadcrumb-nav .breadcrumb-item:not(:last-child)::after,
.breadcrumb-nav .breadcrumb > li:not(:last-child)::after {
    content: '>' !important;
    color: #cccccc !important;
    margin-left: 12px !important;
    padding: 0 !important;
}

.breadcrumb-nav .breadcrumb-link,
.breadcrumb-nav .breadcrumb-item a,
.breadcrumb-nav .breadcrumb a {
    color: #666666 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.breadcrumb-nav .breadcrumb-link:hover,
.breadcrumb-nav .breadcrumb-item a:hover,
.breadcrumb-nav .breadcrumb a:hover {
    color: #FF6B6B !important;
    text-decoration: none !important;
}

.breadcrumb-nav .breadcrumb-current,
.breadcrumb-nav .breadcrumb-item:last-child span,
.breadcrumb-nav .breadcrumb-item:last-child,
.breadcrumb-nav .breadcrumb > .active {
    color: #333333 !important;
}

/* Schema.org 支援 */
.breadcrumb-nav .breadcrumb-item [itemprop="name"] {
    color: inherit !important;
}

/* ==========================================================================
   統一照片網格樣式
   ========================================================================== */

/* 基本照片網格 */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.photo-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    aspect-ratio: 3/5; /* 統一設定 3:5 比例 */
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-item:hover .photo-image {
    transform: scale(1.03);
}

/* 使用者頁面照片網格覆蓋 */
.user-profile-page .photos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.user-profile-page .photos-grid .photo-item {
    aspect-ratio: 3/5; /* 確保使用者頁面也是 3:5 */
}

/* 主要照片頁面專用照片樣式 */
.photos-page .photos-grid .photo-item,
body.photos-page .photos-grid .photo-item {
    aspect-ratio: 3/5 !important; /* 主要照片頁面使用 3:5 比例 */
}


