/* 商品列表頁面樣式 */
body {
    background: #f8f9fa;
}

.footer {
    margin-top: 0;
}

/* 頁面標題和Logo */
.page-header {
    padding: 60px 0 40px;
    background: white;
    text-align: center;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.page-logo {
    margin-bottom: 20px;
}

.page-logo img {
    height: 33px;
    width: auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* 商品列表主體 */
.product-list-section {
    padding: 40px 0;
}

/* 篩選按鈕 */
.filter-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.filter-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 199, 88, 0.3);
}

.filter-btn.active {
    background: var(--accent-color);
}

/* 篩選展開按鈕 */
.filter-toggle-container {
    display: block;
    margin-bottom: 20px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 199, 88, 0.3);
}

.filter-toggle-btn.active {
    background: var(--accent-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.product-list-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
}

.product-list-layout.with-sidebar {
    grid-template-columns: 280px 1fr;
}

/* 側邊欄樣式 */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    display: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.sidebar.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.filter-section {
    margin-bottom: 40px;
}

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

.filter-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* 篩選選項樣式優化 */
.filter-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 防止横向滚动 */
}

/* 自定义滚动条样式 */
.filter-section ul::-webkit-scrollbar {
    width: 3px;
}

.filter-section ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-section ul::-webkit-scrollbar-thumb {
    background: #d4d3d3;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.filter-section ul::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-section ul li {
    margin-bottom: 8px;
}

.filter-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    position: relative;
    white-space: nowrap;
    /* 防止文字换行 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    text-overflow: ellipsis;
    /* 显示省略号 */
}

.filter-link:hover,
.filter-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

/* 搜索框样式优化 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 37, 24, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.05);
}

/* 年份篩選 */
.filter-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 年份筛选滚动条样式 */
.filter-section ul::-webkit-scrollbar {
    width: 6px;
}

.filter-section ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-section ul::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.filter-section ul::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-section ul li {
    margin-bottom: 8px;
}

.year-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.year-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.expand-icon {
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* 防止图标被压缩 */
}

.year-link.expanded .expand-icon {
    transform: rotate(45deg);
}

.year-link+ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 月份列表滚动条样式 */
.year-link+ul::-webkit-scrollbar {
    width: 4px;
}

.year-link+ul::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 2px;
}

.year-link+ul::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.year-link+ul::-webkit-scrollbar-thumb:hover {
    background: #b8b8b8;
}

.year-link+ul li {
    margin-bottom: 6px;
}

.year-link+ul a {
    display: block;
    padding: 6px 12px;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.year-link+ul a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* 商品內容區域 */
.product-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

/* 內容標題區域 */
.content-title-area {
    flex: 1;
}

.content-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    /* margin: 0 0 15px 0; */
}

/* 篩選條件標籤 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-top: 15px; */
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-tag:hover {
    background: #d4b76a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 199, 88, 0.3);
}

.filter-tag i {
    font-size: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.filter-tag i:hover {
    opacity: 1;
}

/* 內容操作區域 */
.content-actions {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* 清空篩選按鈕 */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 199, 88, 0.3);
}

.clear-filters-btn i {
    font-size: 12px;
}

.result-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 商品網格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    order: 2;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: block;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.product-item:visited {
    text-decoration: none;
}

.product-item:active {
    text-decoration: none;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-colors-sizes {
    font-size: 12px;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-date {
    font-size: 12px;
    color: #999;
    margin: 0;
    font-style: italic;
}

/* 加載狀態和無結果 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}

/* 分頁 - 已移除，使用layui分頁替代 */

/* 標題樣式 */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Instagram 聯繫 */
.instagram-section {
    padding: 80px 0;
    background: #fff;
}

.instagram-content {
    margin-top: 60px;
}

.instagram-intro {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-intro p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.digital-books {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.digital-books a {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 220px;
}

.digital-book {
    transition: all 0.3s ease;
}

.digital-books a:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.digital-book img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.digital-book h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    margin: 20px;
    text-align: center;
}



/* 響應式設計 */
@media (max-width: 1024px) {
    .product-list-layout.with-sidebar {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 更新移動端響應式樣式 */
@media (max-width: 768px) {
    .product-list-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-list-layout.with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
        display: none;
        /* 隱藏桌面端側邊欄 */
    }

    .product-content {
        order: 1;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }

    .content-actions {
        align-self: stretch;
        justify-content: flex-start;
        gap: 10px;
    }

    /* 顯示移動端篩選按鈕 */
    .mobile-filter-btn {
        display: inline-flex;
    }

    .clear-filters-btn {
        width: auto;
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-logo img {
        height: 30px;
    }

    .instagram-section {
        padding: 40px 20px;
        margin-top: 0;
    }

    .instagram-content {
        margin-top: 30px;
    }

    .instagram-intro {
        margin-bottom: 30px;
    }

    .digital-books {
        gap: 30px;
    }

    .filter-btn {
        display: none;
    }

    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sidebar {
        padding: 20px;
    }

    .product-content {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-logo img {
        height: 30px;
    }
}