/* Non-critical / below-the-fold CSS — loaded with media="print" onload="this.media='all'" */

/* Banner upload (edit mode) */
.hero-banner-upload-bar {
    position: absolute; top: 16px; right: 16px; z-index: 5;
    display: none; gap: 8px; align-items: center;
}
body.iet-editing .hero-banner-upload-bar { display: flex; }
.hero-banner-btn {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(8px); transition: .2s;
}
.hero-banner-btn-add { background: rgba(34,197,94,0.85); color: #fff; }
.hero-banner-btn-add:hover { background: rgba(34,197,94,1); }
.hero-banner-btn-remove { background: rgba(239,68,68,0.85); color: #fff; }
.hero-banner-btn-remove:hover { background: rgba(239,68,68,1); }

/* Removable / reorder / section / field buttons (edit mode) */
body.iet-editing [data-removable] { position: relative; }
.iet-remove-btn {
    display: none; position: absolute; top: 8px; right: 8px; z-index: 10;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(239,68,68,0.9); color: #fff;
    border: none; cursor: pointer; font-size: 12px;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
    transition: .2s;
}
body.iet-editing .iet-remove-btn { display: flex; }
.iet-remove-btn:hover { background: #DC2626; transform: scale(1.15); }
[data-removable].iet-removing {
    opacity: .4; transform: scale(0.95);
    transition: all .35s ease;
}

.iet-reorder-group {
    display: none; position: absolute; top: 8px; right: 44px; z-index: 10;
    gap: 4px;
}
body.iet-editing .iet-reorder-group { display: flex; }
.iet-reorder-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(99,102,241,0.9); color: #fff;
    border: none; cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(99,102,241,0.3);
    transition: .2s;
}
.iet-reorder-btn:hover { background: #4F46E5; transform: scale(1.15); }
.iet-reorder-btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }

.iet-section-wrap { position: relative; }
.iet-section-remove {
    display: none; position: absolute; top: 16px; right: 16px; z-index: 20;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(239,68,68,0.9); color: #fff;
    border: none; cursor: pointer; font-size: 13px; font-weight: 500;
    box-shadow: 0 2px 10px rgba(239,68,68,0.3);
    transition: .2s; gap: 6px; align-items: center;
}
body.iet-editing .iet-section-remove { display: flex; }
.iet-section-remove:hover { background: #DC2626; transform: scale(1.05); }

.iet-field-remove {
    display: none; position: absolute; top: -6px; right: -6px; z-index: 10;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(239,68,68,0.85); color: #fff;
    border: none; cursor: pointer; font-size: 10px;
    align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: .2s;
}
body.iet-editing [data-field] { position: relative; }
/* 頁尾聯絡列：data-field 在 span 內，X 改掛在父層 a，需讓 a 成為定位參考 */
body.iet-editing .footer-col a.iet-field-remove-host {
    position: relative;
    padding-right: 28px;
}
body.iet-editing .iet-field-remove { display: flex; }
.iet-field-remove:hover { background: #DC2626; transform: scale(1.2); }

.iet-section-wrap.iet-removing {
    opacity: .3; transform: scale(0.98);
    transition: all .4s ease;
}

/* Section content (below fold) */
.site-section { padding: 88px 40px; }
.site-section:nth-child(even) {
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-section, #f1f5f9) 100%);
}
.site-section:nth-child(odd) { background: var(--surface, #fff); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800; color: var(--text-main); text-align: center; margin-bottom: 16px;
    letter-spacing: -0.025em; line-height: 1.2;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0.95;
}
.section-subtitle {
    font-size: 17px; color: var(--text-muted); text-align: center; margin-bottom: 52px;
    max-width: 560px; margin-left: auto; margin-right: auto;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 24px;
    align-items: stretch;
}
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }

.service-card {
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 20px);
    padding: 36px 28px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    text-align: center;
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(15,23,42,0.06), 0 12px 32px -4px rgba(15,23,42,0.08));
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--brand-primary), transparent 78%);
    box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 88%);
}
.service-card .card-icon {
    width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-primary), transparent 88%), color-mix(in srgb, var(--brand-accent), transparent 88%));
    display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--brand-primary);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 12px rgba(15,23,42,0.06);
}
.service-card h4 { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; letter-spacing: -0.02em; }
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* 首頁精選／精靈預覽商品卡（與 products/index 版型不同，此處須獨立處理間距） */
.card-grid > a.product-card,
.card-grid > .product-card {
    align-self: stretch;
    height: 100%;
    min-height: 0;
}
.product-card,
a.product-card {
    background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #E2E8F0;
    transition: .3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.product-card .card-img {
    height: 220px; flex-shrink: 0;
    background: linear-gradient(135deg,#E2E8F0,#CBD5E1);
    display: flex; align-items: center; justify-content: center; font-size: 48px; color: #94A3B8;
}
/* 覆寫 Bootstrap 全域 .card-body，避免與首頁精選卡 flex 衝突 */
.product-card .card-body {
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 10px;
    min-height: 8.5rem;
    box-sizing: border-box;
}
.product-card .card-title {
    font-size: 16px; font-weight: 700; color: var(--text-main);
    margin: 0; line-height: 1.45; flex-shrink: 0;
}
.product-card .card-price {
    font-size: 20px; font-weight: 800; color: var(--brand-primary);
    line-height: 1.25;
    margin: 0 0 6px 0;
    padding-bottom: 2px;
    flex-shrink: 0;
}
.product-card .card-btn {
    margin-top: auto;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    flex-shrink: 0;
}
.product-card button.card-btn {
    font-family: inherit;
}

/* 首頁精選／商品區：與 site/products 列表卡一致（外層 flex、上區連結、底欄按鈕） */
.product-card.product-card--store {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 28px -6px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product-card.product-card--store:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--brand-primary), transparent 78%);
    box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.12);
}
.product-card--store .product-card-link,
.product-card--store .product-card-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}
.product-card--store .product-card-media {
    height: 220px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card--store .product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card--store:hover .product-card-media img {
    transform: scale(1.05);
}
.product-card--store .product-card-media .bi {
    font-size: 48px;
    color: #94a3b8;
}
.product-card--store .product-card-copy {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
}
.product-card--store .product-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.4;
}
.product-card--store .product-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.25;
    margin: 0 0 16px;
}
.product-card--store .product-card-actions {
    padding: 0 20px 20px;
    margin-top: auto;
}
.product-card--store .product-card-actions:empty {
    display: none;
    padding: 0;
}
.product-card--store .btn-add-cart-home,
.product-card--store .btn-view-product-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.product-card--store .btn-add-cart-home {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}
.product-card--store .btn-add-cart-home:hover:not(:disabled) {
    background: var(--brand-primary);
    color: #fff;
}
.product-card--store .btn-add-cart-home:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.product-card--store .btn-view-product-home {
    text-decoration: none;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}
.product-card--store .btn-view-product-home:hover {
    background: var(--brand-primary);
    color: #fff;
}

.toast-cart {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10000;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
    background: #059669;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.toast-cart.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-cart.toast-cart--error {
    background: #dc2626;
}

.team-card {
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 20px);
    padding: 36px 28px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    text-align: center;
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(15,23,42,0.06), 0 12px 32px -4px rgba(15,23,42,0.08));
    transition: transform .28s ease, box-shadow .28s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px rgba(15,23,42,0.1); }
.team-card .avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--brand-primary-light, #818CF8),var(--brand-accent, #06B6D4)); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-primary), transparent 65%); }
.team-card h4 { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.team-card .role { font-size: 14px; color: var(--brand-primary); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.testimonial-card {
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 20px);
    padding: 36px 28px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    position: relative;
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(15,23,42,0.06), 0 12px 32px -4px rgba(15,23,42,0.08));
}
.testimonial-card::before { content: '\201C'; position: absolute; top: 16px; left: 24px; font-size: 60px; color: #E2E8F0; font-family: serif; line-height: 1; }
.testimonial-card .review-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; padding-top: 12px; }
.testimonial-card .reviewer { font-size: 14px; font-weight: 700; color: var(--text-main); }

.section-cta {
    background: linear-gradient(135deg,var(--brand-primary) 0%,var(--brand-accent) 100%) !important;
    padding: 88px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.14) 0%, transparent 55%);
    pointer-events: none;
}
.section-cta h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
    position: relative; z-index: 1;
}
.section-cta p {
    font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 32px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.18);
    position: relative; z-index: 1;
    max-width: 520px; margin-left: auto; margin-right: auto;
}
.section-cta .btn-cta {
    padding: 16px 40px; border-radius: 999px; font-size: 16px; font-weight: 700; border: none;
    color: var(--brand-primary); background: #fff; cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    text-decoration: none;
    position: relative; z-index: 1;
    transition: transform .2s ease, box-shadow .2s ease;
}
.section-cta .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,0.22); color: var(--brand-primary); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col .img-placeholder {
    height: 400px; border-radius: 22px;
    background: linear-gradient(145deg, #cbd5e1 0%, #94a3b8 100%);
    display: flex; align-items: center; justify-content: center; font-size: 64px; color: #fff;
    box-shadow: var(--shadow-card, 0 8px 32px -4px rgba(15,23,42,0.12));
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}
/* 行內編輯／AI 套用：圖片填滿 data-image 區塊（cover，避免只顯示背景圖而裁切錯位） */
[data-image] > img.iet-slot-image,
[data-image].iet-image-applied > img.iet-slot-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}
[data-image] > .iet-img-edit-hint {
    z-index: 2;
}
.two-col .text-side h2 { font-size: 36px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; }
.two-col .text-side p { font-size: 16px; color: var(--text-muted); line-height: 1.9; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 32px; counter-reset: step; }
.process-step { text-align: center; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--brand-primary),var(--brand-accent)); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.process-step h4 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 32px; text-align: center; }
.stat-item .stat-number { font-size: 48px; font-weight: 900; background: linear-gradient(135deg,var(--brand-primary),var(--brand-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.stat-item .stat-label { font-size: 16px; color: var(--text-muted); font-weight: 500; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; border: 1px solid #E2E8F0; overflow: hidden; }
.faq-q { padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q .arrow { transition: .3s; color: var(--text-muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.8; display: none; }
.faq-item.open .faq-a { display: block; }

.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto; }
.form-info h3 { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.form-info p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.form-info .info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); }
.form-info .info-item i { color: var(--brand-primary); font-size: 18px; }
.form-fields .form-group { margin-bottom: 20px; }
.form-fields label { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.form-fields input, .form-fields textarea, .form-fields select { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid #E2E8F0; font-size: 15px; font-family: inherit; outline: none; transition: .2s; }
.form-fields input:focus, .form-fields textarea:focus, .form-fields select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-fields textarea { resize: vertical; min-height: 120px; }
.btn-submit { padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 700; border: none; color: #fff; cursor: pointer; background: linear-gradient(135deg,var(--brand-primary),var(--brand-accent)); }

.category-card { background: linear-gradient(135deg,#EEF2FF,#E0E7FF); border-radius: 16px; padding: 32px 24px; text-align: center; transition: .3s; cursor: pointer; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(79,70,229,0.1); }
.category-card .cat-icon { font-size: 40px; margin-bottom: 16px; }
.category-card .cat-name { font-size: 16px; font-weight: 700; color: var(--text-main); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card { background: #fff; border-radius: 20px; padding: 36px 28px; border: 1px solid #E2E8F0; text-align: center; transition: .3s; }
.pricing-card.featured { border-color: var(--brand-primary); box-shadow: 0 8px 32px rgba(79,70,229,0.15); }
.pricing-card .plan-name { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 36px; font-weight: 900; color: var(--brand-primary); margin-bottom: 4px; }
.pricing-card .plan-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card .plan-features { list-style: none; padding: 0; margin-bottom: 24px; }
.pricing-card .plan-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid #F1F5F9; }
.pricing-card .plan-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; background: rgba(79,70,229,0.1); color: var(--brand-primary); }
.pricing-card.featured .plan-btn { background: linear-gradient(135deg,var(--brand-primary),var(--brand-accent)); color: #fff; }

.product-page-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.filter-sidebar { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #E2E8F0; height: fit-content; position: sticky; top: 90px; }
.filter-sidebar h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }

.map-placeholder { height: 300px; border-radius: 16px; background: linear-gradient(135deg,#E2E8F0,#CBD5E1); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #94A3B8; font-size: 18px; }
.map-placeholder i { font-size: 48px; }
.map-placeholder span { font-size: 14px; text-align: center; padding: 0 16px; max-width: 480px; line-height: 1.5; }
.map-embed-wrap iframe { width: 100%; min-height: 280px; border-radius: 12px; display: block; }

.site-footer {
    background: var(--brand-dark);
    padding: 72px 40px 36px;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-brand p { font-size: 14px; line-height: 1.75; opacity: 0.92; }
/* 站內法務公版頁（legal_content） */
.legal-page-section .legal-page-inner { max-width: 720px; margin: 0 auto; text-align: left; padding: 8px 0 56px; }
.legal-doc .legal-doc-title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; color: var(--text-main, #0f172a); }
.legal-doc .legal-doc-updated { font-size: 14px; color: var(--text-muted, #64748b); margin-bottom: 28px; }
.legal-doc h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--brand-primary, #4f46e5); }
.legal-doc p, .legal-doc li { margin-bottom: 14px; line-height: 1.75; color: var(--text-main, #334155); }
.legal-doc ul { margin: 0 0 16px 20px; }

.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; text-decoration: none; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; text-align: center; font-size: 13px; opacity: 0.85; }

.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
    .section-hero { min-height: 300px; padding: 60px 20px 80px; }
    .section-hero h1 { font-size: 32px; }
    .two-col, .form-layout { grid-template-columns: 1fr; }
    .product-page-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-center { display: block; flex-basis: 100%; width: 100%; }
    .nav-links { display: none; }
    .header-center.menu-open .nav-links,
    .nav-links.open {
        display: flex;
        flex-direction: column;
        background: var(--brand-dark);
        padding: 12px 0;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-menu-btn { display: block; }
    .site-navbar { padding: 0 20px; }
}

/* 前台不顯示行銷型 CTA（Hero／導覽／中段 CTA 區塊按鈕） */
.hero-actions,
.nav-cta,
.section-cta .btn-cta {
    display: none !important;
}
