/* 字型設定 - 與主樣式文件保持一致 */
* {
    font-family: 'Noto Sans TC', 'Taipei Sans TC Beta', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    text-align: inherit;
    /* 繼承父元素的對齊方式 */
}

/* 頁面通用樣式 */
.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;
}

/* 全站：中文/英文標題統一樣式 */
.title-zh {
    color: #603813 !important;
    /* 中文標題色 */
    font-size: 22px !important;
    font-weight: 400 !important;
    /* Bold */
    line-height: 1.3;
}

.title-en {
    color: #42210b !important;
    /* 英文副標色 */
    font-size: 16pt !important;
    /* 約 24px */
    font-weight: 300 !important;
    /* Regular */
    line-height: 1.3;
}

/* 響應式：小螢幕沿用相同字級，若需縮小可於此微調
@media (max-width: 768px) {
    .title-zh { font-size: 21pt !important; }
    .title-en { font-size: 18pt !important; }
}
*/

/* 首頁樣式 */
.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;
}

/* 購物車頁面樣式 */
.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: #6f4e37 !important;
    color: white !important;
}

.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: #a8a8ac !important;
    color: #fff !important;
    border: 1px solid #a8a8ac !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: #a8a8ac !important;
    color: #333 !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: #a8a8ac !important;
    color: #fff !important;
    border: 1px solid #a8a8ac !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: #a8a8ac !important;
    color: #333 !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: #2a63a6;
}

/* 響應式設計 - 產品類別區塊 */
@media (max-width: 768px) {
    .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-title {
        margin-top: 1.5rem;
    }

    .title-underline {
        width: 100%;
    }

    .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: 0;
    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%;
    }

    .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: 2.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

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

.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;
        transform: translateY(10px);
    }
}

@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: 120px;
    }
}

/* 水泡樣式 */
.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);
    }
}

/* 咖啡豆推薦區塊樣式 */
.bean-recommend {
    padding: 80px 0;
    background: white;
}

.bean-recommend .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rec-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.rec-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.rec-intro {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

.rec-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.rec-left {
    flex: 1;
}

.pill-row {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pill {
    background: #6f4e37;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.desc {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.rec-right {
    flex: 1;
    text-align: center;
}

.rec-right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 行動裝置專用圖檔 - 預設隱藏 */
.rec-mobile-image {
    display: none;
}

.rec-mobile-image img {
    width: 100%;
    height: auto;
    border-radius: 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%;
        /* 移動到台灣天康標題的高度 */
    }

    /* 咖啡豆推薦區塊響應式設計 */
    .rec-content {
        display: none;
        /* 隱藏桌面版內容 */
    }

    .rec-left {
        display: none;
        /* 隱藏行動裝置端的文字內容 */
    }

    .rec-mobile-image {
        display: block;
        /* 顯示行動裝置專用圖檔 */
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .rec-title {
        font-size: 2rem;
    }

    .rec-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {

    .bubble-left img,
    .bubble-right img {
        width: 80px;
        /* 進一步縮小 */
    }

    .bubble-left {
        left: 2%;
        top: 45%;
        /* 移動到台灣天康標題的高度 */
    }

    .bubble-right {
        right: 2%;
        top: 45%;
        /* 移動到台灣天康標題的高度 */
    }
}