/* 字型設定 - 與主樣式文件保持一致 */
* {
    font-family: 'Noto Sans TC', 'Taipei Sans TC Beta', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    text-align: left; /* 確保對齊為主 */
}

/* 頁面通用樣式 */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    font-family: 'Noto Sans TC', 'Taipei Sans TC Beta', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'Noto Sans TC', 'Taipei Sans TC Beta', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
}

/* 搜尋結果頁標題：左右預留安全距離，不貼邊 */
body.search .page-header {
    text-align: left;
}

body.search .page-header .page-title {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    body.search .page-header {
        padding: 40px 0;
    }

    body.search .page-header .page-title {
        padding: 0 20px;
        font-size: 2rem;
    }
}

/* 首頁樣式 */
.home-page .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.featured-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 產品頁面樣式 */
.product-content {
    padding: 60px 0;
}

.product-info {
    margin-bottom: 50px;
}

.product-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.product-info ul {
    list-style: none;
    padding: 0;
}

.product-info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.product-info li:before {
    content: "✓";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.benefit-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* 聯絡我們頁面樣式 */
.contact-content {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.inquiry-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background: #2a63a6;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1e4a7a;
}

/* 展售門市頁面樣式 */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.store-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.store-item h2 {
    color: #2a63a6;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.store-info p {
    margin-bottom: 10px;
    color: #666;
}

.store-features {
    margin-top: 25px;
}

.store-features h3 {
    color: #333;
    margin-bottom: 15px;
}

.store-features ul {
    list-style: none;
    padding: 0;
}

.store-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.store-features li:before {
    content: "•";
    color: #2a63a6;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 最新消息頁面樣式 */
.news-grid {
    margin-top: 40px;
}

.news-item {
    display: flex;
    background: white;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    background: #2a63a6;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.news-date .month {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 搜尋 / 歸檔結果列表樣式 */
body.search .content-area,
body.archive .content-area {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

body.search .page-header,
body.archive .page-header {
    margin-bottom: 32px;
}

.search-results-page .search-summary {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 20px;
    color: #666;
    font-size: 0.95rem;
}

body.search .posts-grid,
body.archive .posts-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    justify-items: center;
}

body.search .entry,
body.archive .entry {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.search .entry:hover,
body.archive .entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

body.search .entry-thumbnail,
body.archive .entry-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

body.search .entry-thumbnail img,
body.archive .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.search .entry-header,
body.archive .entry-header {
    padding: 16px 20px 0;
}

body.search .entry-title,
body.archive .entry-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

body.search .entry-title a,
body.archive .entry-title a {
    color: #222;
    text-decoration: none;
}

body.search .entry-title a:hover,
body.archive .entry-title a:hover {
    color: #667eea;
}

body.search .entry-meta,
body.archive .entry-meta {
    padding: 0 20px 12px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

body.search .entry-meta .entry-type,
body.archive .entry-meta .entry-type {
    font-weight: 500;
    color: #555;
}

body.search .entry-meta .entry-taxonomy,
body.archive .entry-meta .entry-taxonomy {
    color: #777;
}

body.search .entry-content,
body.archive .entry-content {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.search .entry-content .read-more,
body.archive .entry-content .read-more {
    margin-top: 12px;
    align-self: flex-start;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

body.search .entry-content .read-more:hover,
body.archive .entry-content .read-more:hover {
    text-decoration: underline;
}

body.search .no-posts,
body.archive .no-posts {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body.search .no-posts .page-title,
body.archive .no-posts .page-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

body.search .no-posts .page-content p,
body.archive .no-posts .page-content p {
    color: #666;
    margin-bottom: 20px;
}

body.search .no-posts .search-again,
body.search .no-posts .search-tips {
    margin-top: 20px;
}

body.search .no-posts .search-tips ul {
    margin-left: 18px;
    color: #666;
}

@media (max-width: 768px) {
    body.search .content-area,
    body.archive .content-area {
        padding: 32px 0 60px;
    }

    .search-results-page .search-summary {
        padding: 0 16px;
        font-size: 0.9rem;
    }

    body.search .posts-grid,
    body.archive .posts-grid {
        padding: 0 16px;
        gap: 20px;
    }
}
/* 搜尋結果：Google 風格列表（文字在左，縮圖在右） */
body.search .search-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1150px;
    margin: 0 auto 40px;
    padding: 0 32px;
}

body.search .search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

body.search .search-result-item:first-child {
    border-top: none;
}

body.search .search-result-main {
    flex: 1 1 auto;
    min-width: 0;
}

body.search .search-result-title {
    font-size: 1.05rem;
    color: #1a0dab;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2px;
}

body.search .search-result-title:hover {
    text-decoration: underline;
}

body.search .search-result-url {
    font-size: 0.82rem;
    color: #006621;
    margin-bottom: 4px;
    word-break: break-all;
}

body.search .search-result-meta-line {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

body.search .search-result-type {
    font-weight: 500;
}

body.search .search-result-snippet {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

body.search .search-result-thumb {
    flex: 0 0 120px;
    max-width: 120px;
}

body.search .search-result-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

@media (max-width: 768px) {
    body.search .search-results-list {
        padding: 0 16px;
        max-width: 100%;
    }

    body.search .search-result-item {
        gap: 12px;
    }

    body.search .search-result-thumb {
        flex: 0 0 96px;
        max-width: 96px;
    }
}


/* 購物車頁面樣式 */
.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 100px;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h3 {
    color: #333;
    margin-bottom: 5px;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    font-weight: bold;
    color: #667eea;
}

.item-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-summary h2 {
    margin-bottom: 20px;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: #667eea;
    border-bottom: none;
}

.checkout-btn {
    background: #2a63a6;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #1e4a7a;
}

/* 結帳頁面樣式 */
.checkout-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.place-order-btn {
    background: #28a745;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.place-order-btn:hover {
    background: #218838;
}

/* 我的帳號頁面樣式 */
.account-tabs {
    display: flex;
    background: white;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: #2a63a6;
    color: white;
}

.tab-content {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-panel {
    display: none;
    padding: 30px;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.save-btn,
.change-password-btn {
    background: #2a63a6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.save-btn:hover,
.change-password-btn:hover {
    background: #1e4a7a;
}

.order-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.order-status {
    color: #28a745;
}

.address-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.address-actions {
    margin-top: 15px;
}

.edit-btn,
.delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 0.9rem;
}

.edit-btn {
    background: #2a63a6;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.add-address-btn {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.add-address-btn:hover {
    background: #218838;
}

/* 響應式設計 */
@media (max-width: 768px) {
    /* 鎖死行動裝置左右滾軸 */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .account-tabs {
        flex-direction: column;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        min-width: auto;
        padding: 15px;
    }
}

/* 產品類別區塊樣式 */
.product-categories-section {
    width: 100vw;
    padding: 80px 0;
    background: white;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.category-card {
    flex: 0 1 calc(50% - 40px);
    background: #e9ecef;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-header {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-number {
    width: 60px;
    height: auto;
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2rem;
}

.title-underline {
    width: 90%;
    height: 2px;
    background: #333;
    margin-top: 0;
    flex-basis: 100%;
}

.category-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.category-view-more-btn {
    margin-bottom: 30px;
}

.category-view-more-btn img {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-view-more-btn img:hover {
    transform: scale(1.05);
}

.category-products {
    position: relative;
}

.product-carousel {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* 產品類別區塊的輪播按鈕 */
.category-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2E64A4 !important;
    color: #fff !important;
    border: 1px solid #2E64A4 !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-carousel-btn:hover {
    background: #2E64A4 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1);
}

.category-prev-btn {
    left: 10px;
}

.category-next-btn {
    right: 10px;
}

/* 商品展示區塊的輪播按鈕 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2E64A4 !important;
    color: #fff !important;
    border: 1px solid #2E64A4 !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: #2E64A4 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.product-display {
    width: 280px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid white;
    margin: 0 auto;
}

.category-product-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    top: 0;
    left: 0;
    z-index: 1;
}

.category-product-card.active {
    opacity: 1;
    z-index: 2;
}

.category-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.view-product-btn {
    background: rgba(255,255,255,0.9);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 120px; /* 放大兩倍寬度 */
}

.view-product-btn:hover {
    background: white;
}

/* 電腦端HOVER效果 */
@media (min-width: 1025px) {
    .category-product-card:hover .product-overlay {
        opacity: 1;
    }
    
    .category-product-card:hover {
        transform: scale(1.05);
    }
    
    .category-product-card {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #2E64A4;
}

/* 響應式設計 - 產品類別區塊 */
@media (max-width: 768px) {
    /* 手機版：讓產品類別區塊更貼近上一個區塊，縮小上下留白 */
    .product-categories-section {
        padding: 5px 0 60px;
    }

    .categories-container {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }
    
    .category-card {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .product-display {
        width: 220px;
        height: 220px;
    }
    
    .category-header {
        justify-content: center;
        gap: 12px;
        text-align: center;
    }
    
    .category-number {
        margin-right: 0;
    }
    
    .category-title {
        margin-top: 1rem;
        font-size: 1.8rem;
        text-align: center;
    }
    
    .title-underline {
        width: 300%;
        max-width: 320px;
        margin: -4px auto 0;
    }
    
    .category-carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .category-prev-btn {
        left: 10px;
    }
    
    .category-next-btn {
        right: 10px;
    }
    
    .category-view-more-btn img {
        width: 144px;
    }
    
    .carousel-btn {
        width: 24px;
        height: 24px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    /* 移動端：遮罩效果始終顯示 */
    .category-product-card .product-overlay {
        opacity: 1;
    }
    
    .product-showcase-card .product-info {
        opacity: 1;
    }
    
    .product-card .product-overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    /* 鎖死小螢幕行動裝置左右滾軸 */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    
    .category-title {
        margin-top: 1rem;
    }
    
    /* 375x667行動裝置尺寸的按鈕間距調整 */
    .carousel-btn {
        width: 21px;
        height: 21px;
    }
    
    .prev-btn {
        left: -15px; /* 增加與商品卡片的間距 */
    }
    
    .next-btn {
        right: -15px; /* 增加與商品卡片的間距 */
    }
    
    .category-carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .category-prev-btn {
        left: 5px; /* 小螢幕調整為更靠近邊緣 */
    }
    
    .category-next-btn {
        right: 5px; /* 小螢幕調整為更靠近邊緣 */
    }
}

/* 電解/氫水機區塊樣式 */
.electrolysis-section {
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.electrolysis-container {
    max-width: 1200px;
    width: 95%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 2;
}

.electrolysis-text-card {
    padding: 40px 0;
}

.electrolysis-header {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.electrolysis-number {
    width: 60px;
    height: auto;
    margin-bottom: 0;
}

.electrolysis-title {
    font-size: 2rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.electrolysis-underline {
    width: 100%;
    height: 2px;
    background: #333;
    margin-top: 8px;
    flex-basis: 100%;
}

.electrolysis-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1rem;
}

.electrolysis-view-more-btn {
    margin-bottom: 0;
}

.electrolysis-view-more-btn img {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.electrolysis-view-more-btn img:hover {
    transform: scale(1.05);
}

.electrolysis-image-card {
    overflow: hidden;
}

.electrolysis-main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 響應式設計 - 電解/氫水機區塊 */
@media (max-width: 768px) {
    .electrolysis-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .electrolysis-text-card {
        padding: 20px 0;
    }
    

    
    .electrolysis-underline {
        width: 100%;
        margin-top: 4px; /* 行動裝置：下底線再往上貼近標題 */
    }
    
    .electrolysis-view-more-btn img {
        width: 144px;
    }
}

@media (max-width: 480px) {
    .electrolysis-title {
        margin-top: 1rem;
    }
}



/* 其他商品區塊樣式 */
.other-products-section {
    padding: 80px 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.other-products-background {
    width: 95%;
    max-width: 1440px;
    background-image: url('../images/小背景.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.other-products-content {
    text-align: center;
    color: #333;
}

.other-products-header {
    margin-bottom: 30px;
}

.other-products-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

.title-decoration {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 讓「其他商品」標題下的圖示更貼近文字 */
.other-products-header .title-decoration {
    transform: translateY(-6px);
}

.other-products-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.other-products-view-more-btn {
    display: inline-block;
}

.other-products-view-more-btn img {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.other-products-view-more-btn img:hover {
    transform: scale(1.05);
}

/* 響應式設計 - 其他商品區塊 */
@media (max-width: 768px) {
    .other-products-background {
        width: 90%;
        padding: 40px 30px;
    }
    
    .other-products-title {
        font-size: 2rem;
    }
    
    .other-products-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .title-decoration {
        width: 100px;
    }

    /* 行動裝置：其他商品區塊「查看更多」按鈕略為放大 */
    .other-products-view-more-btn img {
        width: 170px !important;
    }

    /* 手機版：其他商品標題下圖示再往上貼一點 */
    .other-products-header .title-decoration {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .other-products-background {
        width: 95%;
        padding: 30px 20px;
    }
    
    .other-products-title {
        font-size: 1.8rem;
    }
    
    .other-products-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .title-decoration {
        width: 80px;
        transform: translateY(10px);
    }
    
    /* 小螢幕手機：在行動版基礎上稍微縮小，但仍比原本略大 */
    .other-products-view-more-btn img {
        width: 135px;
    }
}

/* 延伸閱讀標題：產品分類頁（淨水器/飲水機/全戶淨・軟水機/電解・氫水機/其他商品） */
.page-template-page-water-purifier .related-posts-section .related-heading-text,
.page-template-page-water-dispenser .related-posts-section .related-heading-text,
.page-template-page-whole-house .related-posts-section .related-heading-text,
.page-template-page-electrolysis .related-posts-section .related-heading-text,
.page-template-page-other-products .related-posts-section .related-heading-text {
    padding: 10px 30px;
    padding-left: 38px;
    letter-spacing: 0.18em;
}

@media (max-width: 600px) {
    .page-template-page-water-purifier .related-posts-section .related-heading-text,
    .page-template-page-water-dispenser .related-posts-section .related-heading-text,
    .page-template-page-whole-house .related-posts-section .related-heading-text,
    .page-template-page-electrolysis .related-posts-section .related-heading-text,
    .page-template-page-other-products .related-posts-section .related-heading-text {
        padding: 6px 16px;
        padding-left: 22px;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 400px) {
    .page-template-page-water-purifier .related-posts-section .related-heading-text,
    .page-template-page-water-dispenser .related-posts-section .related-heading-text,
    .page-template-page-whole-house .related-posts-section .related-heading-text,
    .page-template-page-electrolysis .related-posts-section .related-heading-text,
    .page-template-page-other-products .related-posts-section .related-heading-text {
        padding: 3px 10px;
        padding-left: 16px;
        letter-spacing: 0.1em;
    }
}

/* 行動裝置：商品輪播隱藏左右按鈕，改用手指滑動 + 分頁點點 */
@media (max-width: 600px) {
    /* 產品類別（飲水機、全戶淨/軟水機等）的左右按鈕 */
    .product-carousel .category-prev-btn,
    .product-carousel .category-next-btn {
        display: none !important;
    }

    /* 商品展示模組（如首頁電解/氫水機 Showcase、關於我們頁商品 Showcase）的左右按鈕 */
    .products-showcase-section .carousel-btn {
        display: none !important;
    }
}

/* 水泡樣式 */
.bubble-left,
.bubble-right {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.bubble-left {
    left: 10%;
    top: 20%;
}

.bubble-right {
    right: 10%;
    top: 30%;
}

.bubble-left img,
.bubble-right img {
    width: 200px;
    height: auto;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.bubble-right img {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 響應式設計 - 水泡 */
@media (max-width: 768px) {
    .bubble-left img,
    .bubble-right img {
        width: 100px; /* 縮小一半 */
    }
    
    .bubble-left {
        left: 5%;
        top: 40%; /* 移動到台灣天康標題的高度 */
    }
    
    .bubble-right {
        right: 5%;
        top: 40%; /* 移動到台灣天康標題的高度 */
    }
}

@media (max-width: 480px) {
    .bubble-left img,
    .bubble-right img {
        width: 80px; /* 進一步縮小 */
    }
    
    .bubble-left {
        left: 2%;
        top: 45%; /* 移動到台灣天康標題的高度 */
    }
    
    .bubble-right {
        right: 2%;
        top: 45%; /* 移動到台灣天康標題的高度 */
    }
}
