/* css/breeze-style.css - 天藍色 × 淡黃色 混合風格｜含頁腳樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F0F8FA;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #2C4A4E;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --sky: #7EC8E0;
    --sky-dark: #5A9BA8;
    --cream: #FDF8E7;
    --cream-dark: #F5E6C8;
    --border-light: #D4E8F0;
    --shadow-soft: 0 10px 24px -12px rgba(90, 155, 168, 0.12);
}

/* 跑馬燈 */
.marquee-bar {
    background: #E8F4F8;
    color: #5A9BA8;
    font-weight: 600;
    font-size: 11px;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #D4E8F0;
}
.marquee-track {
    white-space: nowrap;
    display: inline-flex;
    gap: 2rem;
    animation: marqueeScroll 24s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 導航 */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(240, 248, 250, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 40;
}
.header-container {
    width: 92%;
    max-width: 860px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand-icon { background: var(--sky); color: white; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 800; font-size: 18px; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.3px; color: #2C4A4E; }
.cart-icon { background: white; padding: 8px; border-radius: 50%; border: 1px solid var(--border-light); cursor: pointer; }
.cart-icon svg { width: 20px; height: 20px; stroke: var(--sky); fill: none; }

/* Hero */
.hero-section { width: 92%; max-width: 860px; margin: 24px auto 0; }
.hero-card { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-soft); }
.hero-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s; }
.hero-card:hover .hero-img { transform: scale(1.02); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(44, 74, 78, 0.4), transparent); }
.hero-tag { background: rgba(255, 255, 245, 0.95); color: var(--sky-dark); font-size: 10px; font-weight: 800; padding: 4px 14px; border-radius: 40px; display: inline-block; }
.hero-title { color: white; font-size: 1.8rem; font-weight: 800; margin-top: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.hero-btn { background: white; color: var(--sky-dark); font-weight: 700; font-size: 12px; padding: 6px 20px; border-radius: 40px; margin-top: 12px; border: none; cursor: pointer; }
.feature-row { display: flex; gap: 12px; margin: 20px 0 24px; }
.feature-item { flex: 1; background: white; border: 1px solid var(--border-light); border-radius: 28px; padding: 12px 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; }
.feature-item svg { width: 18px; height: 18px; stroke: var(--sky); }

/* 區塊標題 */
.section-header { width: 92%; max-width: 860px; margin: 32px auto 16px; display: flex; justify-content: space-between; align-items: baseline; }
.section-header h3 { font-size: 1.25rem; font-weight: 800; display: flex; gap: 8px; color: #2C4A4E; }
.section-header svg { width: 22px; height: 22px; stroke: var(--sky); }
.badge-sky { background: #FDF8E7; border: 1px solid #F5E6C8; border-radius: 40px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--sky-dark); }

/* 主打商品 */
.featured-product { width: 92%; max-width: 860px; margin: 0 auto; }
.featured-card { background: white; border-radius: 32px; border: 1px solid var(--border-light); padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.featured-img-area { flex: 1; border-radius: 24px; overflow: hidden; }
.featured-img-area img { width: 100%; height: 100%; object-fit: cover; }
.featured-info { flex: 1; }
.price-sky { font-size: 2rem; font-weight: 800; color: var(--sky-dark); }

/* 推薦商品 */
.recommend-grid { width: 92%; max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card { background: white; border-radius: 24px; padding: 12px; border: 1px solid var(--border-light); transition: all 0.2s; cursor: pointer; }
.product-card img { border-radius: 18px; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* 品牌故事 */
.story-card { width: 92%; max-width: 860px; margin: 48px auto; background: white; border-radius: 32px; padding: 32px 24px; text-align: center; border: 1px solid var(--border-light); }
.story-icon { width: 48px; height: 48px; background: var(--sky); border-radius: 60px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.story-icon svg { width: 24px; height: 24px; }

/* ========= 頁腳樣式 ========= */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    padding: 40px 0 24px;
}
.footer-container {
    width: 92%;
    max-width: 860px;
    margin: 0 auto;
}
.footer-brand { text-align: center; margin-bottom: 32px; }
.footer-brand-icon { background: var(--sky); width: 48px; height: 48px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-brand-name { font-size: 1.5rem; font-weight: 800; color: #2C4A4E; display: block; }
.footer-tagline { font-size: 12px; color: #7A9CA5; margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 32px; border-bottom: 1px solid var(--border-light); padding-bottom: 32px; }
.footer-col { flex: 1; min-width: 160px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #2C4A4E; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li, .footer-col a { font-size: 12px; color: #6B8E96; text-decoration: none; line-height: 1.8; display: block; }
.footer-col a:hover { color: var(--sky-dark); text-decoration: underline; }
.footer-copyright { text-align: center; font-size: 11px; color: #8DAAB2; display: flex; flex-direction: column; gap: 6px; }
.footer-ssl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.footer-ssl svg { width: 14px; height: 14px; }

/* 彈窗樣式 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(44, 74, 78, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #FDF8E7;
}
.modal-header h3 { font-weight: 800; color: #2C4A4E; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #7A9CA5; }
.modal-body { padding: 24px; font-size: 14px; line-height: 1.6; color: #3A5E66; overflow-y: auto; max-height: 60vh; }
.hidden { display: none; }

/* 商品頁共用元件 */
.product-container { max-width: 860px; width: 92%; margin: 0 auto; padding: 20px 0 0; }
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FDF8E7;
    border: 1px solid #D4E8F0;
    border-radius: 40px;
    padding: 8px 20px;
    color: #5A9BA8;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.back-btn:hover {
    background: #E8F4F8;
    border-color: #7EC8E0;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(126,200,224,0.15);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}
.product-image-card { background: white; border-radius: 32px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border-light); }
.product-image-card img { width: 100%; display: block; }
.product-info-card { background: white; border-radius: 32px; padding: 20px; margin-bottom: 20px; }
.price-current { font-size: 28px; font-weight: 800; color: var(--sky-dark); }
.price-origin { text-decoration: line-through; color: #aaa; font-size: 14px; margin-left: 8px; }
.section-card { background: white; border-radius: 32px; padding: 20px; margin-bottom: 20px; }
.section-step { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 700; color: #2C4A4E; }
.step-num { background: var(--sky); width: 28px; height: 28px; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 12px; }
.input-field, .select-field { background: white; border: 1.5px solid var(--border-light); border-radius: 60px; padding: 14px 20px; width: 100%; font-weight: 500; outline: none; transition: 0.2s; }
.input-field:focus, .select-field:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(126,200,224,0.15); }
.submit-btn {
    background: linear-gradient(135deg, #7EC8E0 0%, #5A9BA8 100%);
    color: white;
    font-weight: 800;
    border-radius: 48px;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(90, 155, 168, 0.3);
    transition: all 0.3s ease;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(90, 155, 168, 0.4);
    background: linear-gradient(135deg, #5A9BA8 0%, #4A8A96 100%);
}

.submit-btn:active {
    transform: translateY(1px);
}
.delivery-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.hidden { display: none; }
.space-y-3 > * + * { margin-top: 12px; }

.detail-img img{
    width: 100% !important;
}

/* 商品描述卡片样式 */
.card {
    background: white;
    border-radius: 32px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #D4E8F0;
}

.text-lg {
    font-size: 1.125rem;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-800 {
    color: #2C4A4E;
}

.text-gray-600 {
    color: #6B8E96;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-1 {
    background: #E8F4F8;
    color: #5A9BA8;
}

.tag-2 {
    background: #FDF8E7;
    color: #C9A96E;
}

.tag-3 {
    background: #E8F8F0;
    color: #5A9B7A;
}

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 74, 78, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-toast {
    background: white;
    border-radius: 32px;
    max-width: 320px;
    width: 85%;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid #D4E8F0;
}

.success-modal-overlay.show .success-toast {
    transform: scale(1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #7EC8E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 2;
}

.success-toast h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2C4A4E;
    margin-bottom: 8px;
}

.success-toast p {
    font-size: 13px;
    color: #6B8E96;
    margin-bottom: 20px;
}

.success-toast button {
    background: linear-gradient(135deg, #7EC8E0 0%, #5A9BA8 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.success-toast button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(90, 155, 168, 0.3);
}

/* 立即購買按鈕 - 屏幕底部悬浮固定 */
.buy-now-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    z-index: 1000;
    margin-bottom: 0;
}

.buy-now-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF8A5C 0%, #FF6B4A 100%);
    color: white;
    font-weight: 800;
    border-radius: 56px;
    padding: 16px 24px;
    text-align: center;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
    transition: all 0.3s ease;
}

.buy-now-btn svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
}

.buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 74, 0.5);
    background: linear-gradient(135deg, #FF6B4A 0%, #E55A3E 100%);
}

.buy-now-btn:active {
    transform: translateY(1px);
}

/* 高亮闪烁动画 */
@keyframes highlightFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(126, 200, 224, 0.7);
        border-color: #7EC8E0;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(126, 200, 224, 0);
        border-color: #7EC8E0;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(126, 200, 224, 0);
        border-color: #D4E8F0;
    }
}

.highlight-section {
    animation: highlightFlash 0.8s ease-in-out 2;
}

/* 滚动时给底部留出空间，避免按钮遮挡内容 */
body {
    padding-bottom: 90px;
}

/* 商品容器底部留白 */
.product-container {
    padding-bottom: 20px;
}

/* 套餐卡片样式 */
.plan-card {
    cursor: pointer;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #D4E8F0;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    background: white;
}

.plan-card:hover {
    border-color: #7EC8E0;
    box-shadow: 0 4px 12px rgba(126, 200, 224, 0.15);
}

.plan-card.active-plan {
    border-color: #7EC8E0;
    background: #F0FBFE;
    box-shadow: 0 2px 8px rgba(126, 200, 224, 0.2);
}

/* 配送方式样式 */
.delivery-opt {
    cursor: pointer;
    padding: 12px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid #D4E8F0;
    transition: all 0.2s ease;
    background: white;
}

.delivery-opt:hover {
    border-color: #7EC8E0;
}

.delivery-opt.active-delivery {
    border-color: #7EC8E0;
    background: #F0FBFE;
    color: #5A9BA8;
    font-weight: 600;
}

.delivery-opt.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* SKU样式 */
.sku-img-ring {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #D4E8F0;
    transition: all 0.2s;
}

.sku-img-ring.active-sku-img {
    border-color: #7EC8E0;
    box-shadow: 0 0 0 2px rgba(126, 200, 224, 0.3);
}

.sku-pill {
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 60px;
    background: #FDF8E7;
    font-weight: 600;
    transition: all 0.2s;
}

.sku-pill:hover {
    background: #E8F4F8;
}

.sku-pill.active-sku-pill {
    background: #7EC8E0;
    color: #7EC8E0;
}

/* ========= 右侧悬浮社交图标 ========= */
.floating-social-icons {
    position: fixed;
    right: 16px;
    bottom: 20%;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #D4E8F0;
    position: relative;
    text-decoration: none;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    stroke: #5A9BA8;
    fill: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateX(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(90, 155, 168, 0.25);
}

.social-icon:hover svg {
    stroke: #7EC8E0;
}

.facebook-icon:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.facebook-icon:hover svg {
    stroke: white;
}

/* LINE 图标样式 - 默认绿色背景，直接显示文字 */
.line-icon {
    background: #06C755;
    border-color: #06C755;
}

.line-text {
    color: white;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

.line-icon:hover {
    background: #05a848;
    border-color: #05a848;
    transform: translateX(-4px) scale(1.05);
}

.line-icon:hover .line-text {
    color: white;
}

.top-icon:hover {
    background: #7EC8E0;
    border-color: #7EC8E0;
}

.top-icon:hover svg {
    stroke: white;
}

/* 提示文字 */
.social-tooltip {
    position: absolute;
    right: 58px;
    background: #2C4A4E;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #2C4A4E;
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    right: 68px;
}

/* 置顶按钮初始隐藏，滚动后显示 */
.top-icon {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.top-icon.show {
    opacity: 1;
    visibility: visible;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-social-icons {
        right: 12px;
        gap: 8px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .social-tooltip {
        display: none;
    }
}
