/* =============================================
   HowSEO 自訂樣式
   Bootstrap 5 + 完整 RWD，手機優先
   ============================================= */

/* ─── 全域基礎 ─── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "TaipeiSansTCBeta-Bold", "taipei-sans-tc", "Noto Sans TC", sans-serif;
    overflow-x: hidden;
}

/* z-index 工具 */
.z-1 { position: relative; z-index: 1; }

/* ─── 頁面 Section ─── */
.page-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;   /* 上方留 navbar 空間 */
    overflow: hidden;
}

/* 非首頁的子頁面 section（不需要 100vh） */
.page-section-inner {
    min-height: auto;
    padding: 120px 0 80px;
}

/* Hero section（全屏） */
.page-section-hero {
    padding: 0;
    min-height: 100vh;
}

/* ─── Overlay 背景系統 ─── */
.overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.overlay-inner {
    position: absolute;
    inset: 0;
}
.bg-image-holder {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.bg-cover { background-size: cover; }
.bg-bottom-center { background-position: bottom center; }

.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }

/* ─── Navbar ─── */
.site-navbar {
    transition: all 0.3s ease;
}

.navbar-brand-img {
    height: 40px;
    width: auto;
}

/* 漢堡按鈕（自訂） */
.navbar-toggler-alternative {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}
.navbar-toggler-alternative-icon,
.navbar-toggler-alternative-icon::before,
.navbar-toggler-alternative-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}
.navbar-toggler-alternative-icon {
    position: relative;
    margin: 4px 0;
}
.navbar-toggler-alternative-icon::before,
.navbar-toggler-alternative-icon::after {
    content: "";
    position: absolute;
    left: 0;
}
.navbar-toggler-alternative-icon::before { top: -7px; }
.navbar-toggler-alternative-icon::after  { top:  7px; }

/* CTA 按鈕在導覽列 */
.nav-cta {
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 4px !important;
}

/* ─── Hero Banner（Swiper） ─── */
#swiper-case {
    width: 100%;
    height: 100vh;
    min-height: 560px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

/* hero 文字內容容器 */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 5% 60px;
    max-width: 900px;
}

.hero-content.text-end { margin-left: auto; }
.hero-content.text-center { margin: 0 auto; max-width: 860px; left: 0; right: 0; }

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.3;
    font-weight: 700;
}
.hero-content h4 {
    font-size: clamp(1rem, 2vw, 1.4rem);
}
.hero-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.9;
}

/* Swiper 分頁點 */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    background: #fff400;
    width: 24px;
    border-radius: 5px;
}

/* ─── 服務 Section ─── */
.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* ─── 情報新聞卡片 ─── */
.news-card {
    padding: 1.25rem;
    border-left: 3px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}
.news-card:hover {
    border-left-color: #fff400;
}

.news-date {
    color: #f9ad3e;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ─── 案例卡片 ─── */
.case-card {
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: background 0.3s;
}
.case-card:hover {
    background: rgba(255,255,255,0.1);
}

/* ─── 聯絡資訊 ─── */
.contact-icon {
    min-width: 40px;
}

/* ─── 方案定價卡片 ─── */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* 推薦方案 */
.pricing-card-featured {
    border: 3px solid #fff400;
    transform: translateY(-8px);
}
.pricing-card-featured:hover {
    transform: translateY(-16px);
}

.pricing-badge {
    background: #fff400;
    color: #333;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px;
    letter-spacing: 1px;
}

.pricing-header {
    padding: 1.5rem 1.25rem 1rem;
}
.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pricing-price {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.pricing-price span {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0 4px;
}

.pricing-features {
    padding: 0.5rem 1rem;
    flex: 1;
    margin-bottom: 0;
}
.pricing-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    min-height: 48px;
}
.pricing-features li.highlight {
    background-color: #f9f9f9;
}
.feat-label {
    color: #e05500;
    font-size: 0.8rem;
    flex: 0 0 45%;
    line-height: 1.3;
}
.feat-value {
    flex: 0 0 50%;
    text-align: right;
    line-height: 1.4;
}

.pricing-footer {
    padding: 1.25rem;
}

/* ─── 標準/加值配備區塊 ─── */
.feature-block {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-item p {
    color: #fff;
}

/* ─── 文章內頁 ─── */
.article-content {
    line-height: 1.9;
    font-size: 1.05rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ─── 成功頁面 ─── */
.success-icon {
    opacity: 0;
    animation: scaleIn 0.6s ease 0.3s forwards;
}
@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ─── 浮動聯絡按鈕 ─── */
.fix-cart {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fix-cart a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fix-cart a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    color: #fff;
}

/* ─── 返回頂部 ─── */
.backtotop {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1040;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.backtotop span { display: none; }
.backtotop.active {
    opacity: 1;
    visibility: visible;
}
.backtotop:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ─── Cookie 通知欄 ─── */
.cookiewindow {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30,30,30,0.95);
    z-index: 2000;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0);
    transition: transform 0.4s ease;
}
.cookiewindow-active:checked ~ .cookiewindow {
    transform: translateY(100%);
    pointer-events: none;
}

/* ─── 捲動進度條 ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2000;
    pointer-events: none;
    display: flex;
}
.sp-left, .sp-right {
    flex: 1;
    position: relative;
    height: 3px;
}
.sp-inner {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
}
.sp-inner.progress {
    background: #fff400;
    width: 0;
    height: 3px;
}

/* ─── 社群圖示（已整合至 site-footer，全站隱藏） ─── */
.ln-social-icons { display: none !important; }
.ln-social-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.ln-social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}
.ln-social-icons li a:hover {
    background: rgba(255,255,255,0.3);
}

/* ─── 版權列（已整合至 site-footer__bar，全站隱藏） ─── */
.ln-copyright { display: none !important; }

/* ─── 動畫入場（Waypoint 配合） ─── */
.animated {
    opacity: 0;
    transition: none;
}
.animated.visible {
    animation-duration: 0.7s;
    animation-fill-mode: both;
}
.fadeInUp {
    animation-name: fadeInUp;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ─── 按鈕擴充 ─── */
.btn-soft-white {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
}
.btn-soft-white:hover,
.btn-soft-white:focus {
    background: #fff;
    color: #333;
}

/* ─── 表單樣式 ─── */
.form-control,
.form-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    box-shadow: none;
    outline: none;
}
.form-control::placeholder { color: rgba(255,255,255,0.45); }
.form-select option { background: #1a1a2e; color: #fff; }

/* ─── 手機 / 平板 Navbar Logo 修正 ─── */

/*
 * 問題：手機板 navbar 初始透明 + navbar-dark class → 顯示白色 logo
 *       若 hero 背景圖還沒渲染或手機 hero 不在 navbar 後方 → 白 logo 不可見
 *
 * 解法：手機版 navbar 頂部強制加深色半透明背景
 *       選單展開 / 捲動後切換白底 + 深色 logo（JS 已處理 class 切換）
 */
@media (max-width: 991.98px) {

    /* ── 頁面頂部（透明狀態）：深色遮罩確保白 logo 可見 ── */
    .site-navbar.site-navbar-transparent:not(.scrolled):not(.navbar-toggled-show) {
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(4px);
        box-shadow: none !important;
    }

    /* ── 選單展開時：白底 + 深色 logo ── */
    .site-navbar.navbar-toggled-show {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: none;
    }

    /* 選單展開時強制深色 logo（備援，JS 已切 navbar-light） */
    .site-navbar.navbar-toggled-show .logo-dark  { display: block  !important; }
    .site-navbar.navbar-toggled-show .logo-light { display: none   !important; }

    /* ── 漢堡按鈕線條顏色切換 ── */
    /* 預設（深色背景）：白色線條 */
    .navbar-toggler-alternative-icon,
    .navbar-toggler-alternative-icon::before,
    .navbar-toggler-alternative-icon::after {
        background-color: #fff;
    }

    /* 白底時（展開選單 / 捲動後）：深色線條 */
    .site-navbar.navbar-toggled-show .navbar-toggler-alternative-icon,
    .site-navbar.navbar-toggled-show .navbar-toggler-alternative-icon::before,
    .site-navbar.navbar-toggled-show .navbar-toggler-alternative-icon::after,
    .site-navbar.scrolled .navbar-toggler-alternative-icon,
    .site-navbar.scrolled .navbar-toggler-alternative-icon::before,
    .site-navbar.scrolled .navbar-toggler-alternative-icon::after {
        background-color: #333 !important;
    }

    /* ── 捲動後：白底 navbar ── */
    .site-navbar.scrolled {
        background: rgba(255, 255, 255, 0.97) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
    }

    /* ── 導覽選單展開時，連結改黑色 ── */
    .site-navbar.navbar-toggled-show .nav-link,
    .site-navbar.scrolled .nav-link {
        color: #333 !important;
    }
    .site-navbar.navbar-toggled-show .nav-link:hover,
    .site-navbar.scrolled .nav-link:hover {
        color: #405be8 !important;
    }

    /* 展開選單區塊加上邊框分隔 */
    #navbarCollapse {
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .site-navbar.navbar-toggled-show #navbarCollapse,
    .site-navbar.scrolled #navbarCollapse {
        border-top-color: rgba(0,0,0,0.1);
    }

    /* 選單連結手機版 padding */
    #navbarCollapse .nav-link {
        padding: 0.6rem 0;
        font-size: 1rem;
    }
}

/* ─── 響應式斷點 ─── */

/* ≤ 767px（手機） */
@media (max-width: 767.98px) {

    .navbar-toggler-alternative { display: block; }

    #swiper-case { height: 100svh; min-height: 480px; }

    .hero-content {
        padding: 80px 1.25rem 50px;
        text-align: left !important;
    }
    .hero-content.text-end,
    .hero-content.text-center {
        margin: 0;
        left: 0;
        right: 0;
        text-align: left !important;
    }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content h4 { font-size: 0.95rem; }

    .page-section { padding: 80px 0 50px; }
    .page-section-inner { padding: 100px 0 60px; }

    /* 定價卡片：手機單欄 */
    .pricing-card-featured {
        transform: none;
    }
    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }
    .pricing-features li { font-size: 0.8rem; }

    .service-icon { width: 60px; height: 60px; }

    .ln-social-icons { display: none; }
    .ln-copyright { display: none; }

    .feature-icon { width: 45px; height: 45px; }
}

/* 768px – 991px（平板） */
@media (min-width: 768px) and (max-width: 991.98px) {

    .navbar-toggler-alternative { display: block; }

    .hero-content { padding: 90px 4% 60px; }
    .hero-content h1 { font-size: 2rem; }

    .page-section { padding: 90px 0 60px; }

    .pricing-card-featured {
        transform: none;
    }

    .service-icon { width: 70px; height: 70px; }
}

/* ≥ 992px（桌機） */
@media (min-width: 992px) {

    .navbar-toggler-alternative { display: none !important; }

    .hero-content { padding: 0 6% 0 6%; }
}

/* ≥ 1400px（大螢幕） */
@media (min-width: 1400px) {
    .hero-content { padding: 0 8%; }
    .hero-content h1 { font-size: 3.5rem; }
}

/* ─── 深色模式兼容 ─── */
@media (prefers-color-scheme: dark) {
    .pricing-card { background: #1e1e1e; }
    .pricing-price { color: #eee; }
    .pricing-features li { color: #ccc; border-bottom-color: #333; }
    .feat-label { color: #ff8c42; }
    .pricing-footer .btn { color: #fff !important; }
}

/* =======================================================
   新版面系統（全新 10-Section 設計）
   ======================================================= */

/* ─── 品牌色彩 ─── */
:root {
    --clr-brand:    #405be8;
    --clr-brand-dk: #2d47d0;
    --clr-dark:     #0d1421;
    --clr-dark2:    #111827;
    --clr-gray:     #f8f9fa;
    --clr-accent:   #f9ad3e;
    --clr-yellow:   #fff400;
}

/* ─── 通用工具 ─── */
.text-accent { color: var(--clr-yellow); }

.btn-accent {
    background: linear-gradient(135deg, #5a74f0 0%, #405be8 50%, #2d47d0 100%);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(64,91,232,0.45), 0 4px 8px rgba(64,91,232,0.2);
}
.btn-accent:active { transform: translateY(-1px); }

/* ─── Section 共用標題 ─── */
.sec-header {
    margin-bottom: 2rem;
}
.sec-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(64,91,232,0.1);
    color: #405be8;
    margin-bottom: 0.75rem;
}
.sec-badge--light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}
.sec-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a2e;
}
.sec-sub {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* ─── 01. HERO ─── */
.sec-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d1421;
}
/* 裝飾性光暈 */
.sec-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(64,91,232,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.sec-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(249,173,62,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.sec-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sec-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.35;
}
.sec-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,20,33,0.92) 40%, rgba(13,20,33,0.6) 100%);
}
.sec-hero__body {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    background: rgba(64,91,232,0.18);
    border: 1px solid rgba(64,91,232,0.4);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.8px;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(8px);
}
.hero-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5a74f0;
    box-shadow: 0 0 6px #5a74f0;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    line-height: 1.85;
    margin-bottom: 2rem;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hero-trust .fas { color: #f9ad3e; }

/* hero 浮動卡片 */
.hero-card-wrap {
    position: relative;
    width: 320px;
    height: 300px;
}
.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.5);
    width: 215px;
    top: 20px;
    right: 0;
    animation: floatCardY 4s ease-in-out infinite;
}
.hero-float-card--sm {
    width: 165px;
    padding: 1.1rem;
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    animation-delay: 1.4s;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.5);
}
@keyframes floatCardY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* 向下提示箭頭 */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    text-decoration: none;
    animation: scrollBounce 1.8s ease-in-out infinite;
}
.hero-scroll-hint:hover { color: rgba(255,255,255,0.9); }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── 02. 數據帶 ─── */
.sec-stats {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.stat-item {
    padding: 0.75rem 1.25rem;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e8e8e8;
}
.stat-num {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #405be8, #7c9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-num span {
    font-size: 0.5em;
    opacity: 0.8;
}
.stat-label {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.3px;
}

/* ─── 03. 服務項目 ─── */
.sec-services {
    background: #f4f6fc;
    padding: 80px 0;
    position: relative;
}
.sec-services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #405be8 30%, #7c9eff 70%, transparent);
}
.svc-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 20px rgba(64,91,232,0.06);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
    border: 1px solid rgba(64,91,232,0.06);
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #405be8, #7c9eff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(64,91,232,0.16);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(64,91,232,0.08), rgba(124,158,255,0.12));
    margin-bottom: 1.25rem;
}
.svc-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.svc-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.svc-card p {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.75;
    margin: 0;
}

/* ─── 04. 為什麼選擇我們 ─── */
.sec-why {
    background: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.sec-why::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64,91,232,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.sec-why .sec-title { color: #1a1a2e; }
.why-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.why-img-wrap img {
    border-radius: 20px !important;
    box-shadow: 0 24px 64px rgba(13,20,33,0.18) !important;
}
.why-badge-float {
    position: absolute;
    bottom: 28px;
    right: -12px;
    background: linear-gradient(135deg, #405be8, #2d47d0);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(64,91,232,0.45);
    white-space: nowrap;
}
.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.why-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.why-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(64,91,232,0.1), rgba(124,158,255,0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(64,91,232,0.12);
    transition: transform 0.3s;
}
.why-item:hover .why-icon { transform: scale(1.08) rotate(-3deg); }
.why-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.why-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1a1a2e;
}
.why-item p {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.8;
    margin: 0;
}

/* ─── 方案共同包含列 ─── */
.pricing-includes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    margin: 1.5rem 0 0.5rem;
}
.pricing-includes span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pricing-includes .fas { color: #7c9eff; }

/* 方案 icon */
.price-card__icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

/* 0元建站標籤 */
.price-card__zero {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f9ad3e;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

/* ─── 05. 套裝方案 ─── */
.sec-pricing {
    background: var(--clr-dark);
    padding: 88px 0;
    position: relative;
    overflow: hidden;
}
/* 點陣裝飾 */
.sec-pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.sec-pricing::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(64,91,232,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.sec-pricing .sec-title { color: #fff; }

.price-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
    position: relative;
}
.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.price-card--featured {
    border: 3px solid var(--clr-yellow);
    transform: translateY(-12px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.4), 0 0 40px rgba(255,244,0,0.12);
}
.price-card--featured:hover {
    transform: translateY(-20px);
    box-shadow: 0 28px 72px rgba(0,0,0,0.5), 0 0 48px rgba(255,244,0,0.15);
}
.price-card__badge {
    background: var(--clr-yellow);
    color: #1a1a2e;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.price-card__head {
    padding: 1.5rem 1.5rem 1.25rem;
    color: #fff;
}
.price-card__head h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}
.price-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 1.1rem 1.5rem;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}
.price-card__currency {
    font-size: 0.95rem;
    color: #777;
    font-weight: 600;
}
.price-card__num {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a2e;
}
.price-card__unit {
    font-size: 0.78rem;
    color: #999;
}
.price-card__features {
    list-style: none;
    padding: 0.75rem 1.5rem;
    margin: 0;
    flex: 1;
}
.price-card__features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
    color: #444;
    display: flex;
    align-items: center;
}
.price-card__features li:last-child { border-bottom: none; }
.price-card__cta {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* ─── 06. 精選案例 ─── */
.sec-portfolio {
    background: #111827;
    padding: 80px 0;
}
.sec-portfolio .sec-title { color: #fff; }
.sec-portfolio .sec-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.sec-portfolio .sec-sub { color: rgba(255,255,255,0.55); }

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #1f2937;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,20,33,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h6 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.portfolio-overlay p {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ─── 07. FAQ ─── */
.sec-faq {
    background: #f8f9fa;
    padding: 80px 0;
}
.sec-faq .sec-title { color: #1a1a2e; }
.sec-faq .accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sec-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fff;
    border-radius: 12px !important;
    padding: 1.1rem 1.5rem;
    box-shadow: none;
}
.sec-faq .accordion-button:not(.collapsed) {
    color: #405be8;
    background: #fff;
    box-shadow: none;
}
.sec-faq .accordion-button:not(.collapsed)::after {
    filter: invert(36%) sepia(73%) saturate(3000%) hue-rotate(218deg) brightness(90%);
}
.sec-faq .accordion-body {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.85;
    background: #fff;
    padding: 0.25rem 1.5rem 1.25rem;
}

/* ─── 08. 最新情報 ─── */
.sec-news {
    background: #fff;
    padding: 80px 0;
}
.sec-news .sec-title { color: #1a1a2e; }
.news-card-v2 {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #405be8;
    transition: box-shadow 0.3s, border-left-color 0.3s;
}
.news-card-v2:hover {
    box-shadow: 0 8px 32px rgba(64,91,232,0.12);
    border-left-color: #f9ad3e;
}
.news-card-v2__meta {
    font-size: 0.8rem;
    color: #f9ad3e;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.news-card-v2__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.news-card-v2__title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}
.news-card-v2__title a:hover { color: #405be8; }
.news-card-v2__excerpt {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-v2__more {
    font-size: 0.85rem;
    color: #405be8;
    text-decoration: none;
    font-weight: 600;
}
.news-card-v2__more:hover { color: #2d47d0; }

/* ─── 09. CTA ─── */
.sec-cta {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 88px 0;
}
.sec-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sec-cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.sec-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,20,33,0.94) 0%, rgba(45,71,208,0.82) 60%, rgba(64,91,232,0.7) 100%);
}
.sec-cta h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
/* CTA 按鈕光暈動畫 */
.sec-cta .btn-accent {
    animation: ctaGlow 2.5s ease-in-out infinite;
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 6px 24px rgba(64,91,232,0.4); }
    50%       { box-shadow: 0 8px 36px rgba(64,91,232,0.7), 0 0 0 4px rgba(64,91,232,0.15); }
}

/* ─── 10. 聯絡我們 ─── */
.sec-contact {
    background: #f8f9fa;
    padding: 80px 0;
}
.contact-box {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 48px rgba(0,0,0,0.07);
}
.contact-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.contact-info-item i {
    width: 36px;
    height: 36px;
    background: rgba(64,91,232,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #405be8;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.contact-info-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-item a:hover { color: #405be8; }

/* 聯絡區塊表單覆寫（白底版） */
.sec-contact .form-control,
.sec-contact .form-select {
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    color: #333;
}
.sec-contact .form-control:focus,
.sec-contact .form-select:focus {
    background: #fff;
    border-color: #405be8;
    color: #333;
    box-shadow: 0 0 0 3px rgba(64,91,232,0.1);
}
.sec-contact .form-control::placeholder { color: #aaa; }
.sec-contact .form-select option { background: #fff; color: #333; }

/* ─── Site Footer ─── */
.site-footer {
    background: #0d1421;
    color: rgba(255,255,255,0.65);
    padding: 60px 0 0;
}
.site-footer__logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}
.site-footer__desc {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin: 1rem 0 1.5rem;
    max-width: 300px;
}
.site-footer__social {
    display: flex;
    gap: 0.5rem;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.site-footer__social a:hover {
    background: #405be8;
    border-color: #405be8;
    color: #fff;
}
.site-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}
.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__links li { margin-bottom: 0.55rem; }
.site-footer__links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__bar {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.25rem 0;
    margin-top: 3rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}
.site-footer__bar a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer__bar a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.5); }

/* ─── RWD 新版面補充 ─── */
@media (max-width: 767.98px) {
    .why-badge-float {
        position: static;
        display: inline-block;
        margin-top: 1rem;
        right: auto;
        bottom: auto;
    }
    .hero-float-card { display: none !important; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; text-align: center; }
    .contact-box { padding: 2rem 1.25rem; }
    .price-card--featured { transform: none; }
    .price-card--featured:hover { transform: translateY(-6px); }
    .sec-stats { padding: 44px 0; }
    .stat-item:not(:last-child)::after { display: none; }
    .sec-services { padding: 60px 0; }
    .svc-icon-wrap { width: 72px; height: 72px; border-radius: 18px; }
    .svc-icon { width: 42px; height: 42px; }
    .sec-why, .sec-pricing, .sec-portfolio,
    .sec-faq, .sec-news, .sec-contact { padding: 60px 0; }
    .sec-cta { min-height: 300px; padding: 60px 0; }
    .site-footer { padding: 48px 0 0; }
    .site-footer__desc { max-width: 100%; }
    .stat-item { padding: 0.5rem 0.5rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-float-card { display: none !important; }
    .contact-box { padding: 2.5rem; }
    .price-card--featured { transform: none; }
    .price-card--featured:hover { transform: translateY(-8px); }
    .why-badge-float { right: 0; }
    .svc-icon-wrap { width: 78px; height: 78px; }
}

/* ─── 段落間 Section 分隔視覺 ─── */
.sec-services + .sec-why,
.sec-faq + .sec-news {
    border-top: 1px solid #f0f0f0;
}


/* =============================================
   行業版型區塊（sec-templates）
   ============================================= */
.sec-templates {
    padding: 80px 0;
    background: #f4f6fc;
}
.tmpl-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
}
.tmpl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}
.tmpl-card__head {
    padding: 2rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tmpl-card__icon {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.9);
}
.tmpl-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tmpl-card__body h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-dark, #0d1421);
    margin-bottom: 0.25rem;
}
.tmpl-card__body > p {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.75rem;
}
.tmpl-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
}
.tmpl-card__tags span {
    font-size: 0.7rem;
    background: #f0f2fa;
    color: #555;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .sec-templates { padding: 48px 0; }
}


/* ─── 版型列表頁（/template.html）─── */
.tmpl-list-hero {
    background: linear-gradient(135deg, #0d1421 0%, #1e3a5f 100%);
    padding: 140px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tmpl-list-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(64,91,232,0.18) 1px, transparent 1px);
    background-size: 28px 28px;
}
.tmpl-list-section {
    padding: 64px 0 80px;
    background: #f4f6fc;
}

/* 篩選按鈕列 */
.tmpl-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.tmpl-filter__btn {
    background: #fff;
    border: 1px solid #d0d5e8;
    color: #555;
    font-size: 0.85rem;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tmpl-filter__btn:hover,
.tmpl-filter__btn.active {
    background: var(--clr-brand, #405be8);
    border-color: var(--clr-brand, #405be8);
    color: #fff;
}

/* 版型大卡（列表頁用） */
.tmpl-card-lg {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tmpl-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}
.tmpl-card-lg__head {
    padding: 2.25rem 1rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.tmpl-card-lg__icon {
    font-size: 2.8rem;
    color: rgba(255,255,255,0.9);
}
.tmpl-card-lg__body {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tmpl-card-lg__body h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d1421;
    margin-bottom: 0.2rem;
}
.tmpl-card-lg__body > p {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.85rem;
}

/* 方案類型 badge */
.tmpl-plan-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
}
.tmpl-plan-badge--single { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.tmpl-plan-badge--multi  { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.tmpl-plan-badge--lang   { background: #ffd700; color: #333; border: none; }

/* 功能特色列表 */
.tmpl-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}
.tmpl-feature-list li {
    font-size: 0.82rem;
    color: #555;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tmpl-feature-list li:last-child { border-bottom: none; }
.tmpl-feature-list li i {
    color: #28a745;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* 卡片底部 CTA */
.tmpl-card-lg__cta {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* 風格圖例 */
.tmpl-style-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    margin-top: 1.25rem;
}
.tmpl-style-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.4rem;
}
.tmpl-style-dot--a { background: #fff; border: 2px solid rgba(255,255,255,0.5); }
.tmpl-style-dot--b { background: #1a2332; border: 2px solid rgba(255,255,255,0.3); }
.tmpl-style-dot--c { background: linear-gradient(135deg,#405be8,#a855f7); }

/* 行業列 */
.tmpl-industry-row {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.tmpl-industry-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 200px;
    flex-shrink: 0;
}
.tmpl-industry-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tmpl-industry-label h5 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; color: #0d1421; }
.tmpl-industry-label > div > p { font-size: 0.75rem; color: #888; margin: 0 0 0.5rem; }

/* 3 格風格卡 */
.tmpl-style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex: 1;
}
.tmpl-style-card {
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
}
.tmpl-style-card__preview {
    height: 90px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}
/* 縮圖元素 */
.prev-nav { height: 12px; background: rgba(255,255,255,0.9); }
.prev-nav--dark { background: rgba(255,255,255,0.08); }
.prev-nav--brand { background: rgba(64,91,232,0.9); }
.prev-hero { height: 40px; background: #e0e4f5; margin: 3px; border-radius: 4px; }
.prev-hero--dark { background: rgba(255,255,255,0.07); }
.prev-hero--grad { background: linear-gradient(135deg, var(--gc, #405be8,#6a81f5)); }
.prev-cols { display: flex; gap: 3px; padding: 3px; }
.prev-cols div { flex: 1; height: 16px; background: rgba(0,0,0,0.06); border-radius: 3px; }
.prev-cols--dark div { background: rgba(255,255,255,0.08); }
.tmpl-style-card__foot {
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.btn-xs { padding: 0.18rem 0.55rem; font-size: 0.7rem; border-radius: 4px; white-space: nowrap; }
.tmpl-badge-style {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-right: auto;
    white-space: nowrap;
}
.tmpl-badge-style--a { background: #f0f0f0; color: #555; }
.tmpl-badge-style--b { background: #1a2332; color: #ccc; }
.tmpl-badge-style--c { background: linear-gradient(90deg,#405be8,#a855f7); color: #fff; }

@media (max-width: 991.98px) {
    .tmpl-industry-row { flex-direction: column; }
    .tmpl-industry-label { min-width: unset; }
}
@media (max-width: 767.98px) {
    .tmpl-list-hero { padding: 100px 0 56px; }
    .tmpl-list-section { padding: 40px 0 56px; }
    .tmpl-card-lg__cta { flex-direction: column; }
    .tmpl-card-lg__cta .btn { width: 100%; }
    .tmpl-style-cards { grid-template-columns: 1fr; }
    .tmpl-style-card__preview { height: 70px; }
}


/* =============================================
   方案頁面（plan/index.html）
   ============================================= */

/* ─── Plan Hero ─── */
.plan-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.plan-hero__bg {
    position: absolute;
    inset: 0;
}
.plan-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.plan-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,20,33,0.82) 0%, rgba(64,91,232,0.55) 100%);
}
.plan-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.plan-hero__tags span {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

/* ─── Plan Cards Section ─── */
.plan-cards-section {
    background: #f4f6fc;
    padding: 80px 0;
}
.plan-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.plan-card--featured {
    box-shadow: 0 8px 40px rgba(0,134,95,0.22), 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    z-index: 2;
}
.plan-card--featured:hover {
    transform: translateY(-14px);
    box-shadow: 0 16px 56px rgba(0,134,95,0.28), 0 4px 16px rgba(0,0,0,0.1);
}

.plan-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffd700;
    color: #333;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    z-index: 3;
}

.plan-card__head {
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
    text-align: center;
}
.plan-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    display: block;
}
.plan-card__head h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #fff;
}
.plan-card__head p {
    font-size: 0.82rem;
    opacity: 0.7;
    margin: 0;
}

.plan-card__price {
    padding: 1.25rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.plan-card__zero {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
.plan-card__amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    line-height: 1;
}
.plan-card__currency {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2px;
}
.plan-card__num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--clr-dark, #0d1421);
    letter-spacing: -1px;
}
.plan-card__unit {
    font-size: 0.85rem;
    color: #888;
}
.plan-card__avg {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.35rem;
}
.plan-card__avg strong {
    color: #555;
}

.plan-card__features {
    list-style: none;
    padding: 0.75rem 1.5rem;
    margin: 0;
    flex: 1;
}
.plan-card__features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.84rem;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
    gap: 0.5rem;
}
.plan-card__features li:last-child {
    border-bottom: none;
}
.plan-card__features li span:first-child {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.plan-card__features li span:last-child {
    font-weight: 600;
    text-align: right;
    color: #333;
    flex-shrink: 0;
}
.plan-card__feat-head {
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa !important;
    padding-top: 0.85rem !important;
    border-bottom: none !important;
    margin-bottom: 0;
    justify-content: flex-start !important;
    background: none;
}
.plan-card__features .included { color: #1a7340; }
.plan-card__features .included i { color: #28a745; font-size: 0.78rem; }
.plan-card__features .not-included { color: #bbb; }
.plan-card__features .not-included i { color: #ccc; font-size: 0.78rem; }
.plan-card__features .not-included span:last-child { color: #bbb; font-weight: 400; }
.plan-card__features .addable { color: #e07b00; }
.plan-card__features .addable i { color: #e07b00; font-size: 0.78rem; }
.plan-card__features .addable span:last-child { color: #e07b00; font-weight: 600; }

.plan-card__cta {
    padding: 1rem 1.5rem 1.5rem;
}


/* ─── Plan Compare Section ─── */
.plan-compare-section {
    padding: 80px 0;
    background: #fff;
}
.plan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    min-width: 600px;
}
.plan-table th,
.plan-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.plan-table th {
    background: #f8f9ff;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 2px solid #e0e4f5;
    position: sticky;
    top: 0;
    z-index: 1;
}
.plan-table th span {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    margin-top: 2px;
}
.plan-table__label {
    text-align: left !important;
    color: #333;
}
.plan-table__group td {
    background: #f4f6fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    text-align: left;
    padding: 0.45rem 1rem;
}
.plan-table td.featured,
.plan-table th.featured {
    background: #f0fdf7;
    border-left: 2px solid #00865f;
    border-right: 2px solid #00865f;
}
.plan-table th.featured {
    background: #00865f;
    color: #fff;
    border-left: 2px solid #00865f;
    border-right: 2px solid #00865f;
}
.plan-table th.featured span {
    color: rgba(255,255,255,0.75);
}
.plan-table tbody tr:last-child td {
    border-bottom: none;
}
.plan-table tbody tr:hover td {
    background: #fafbff;
}
.plan-table tbody tr:hover td.featured {
    background: #edfaf5;
}
.badge-free {
    display: inline-block;
    background: linear-gradient(135deg, #405be8, #6a81f5);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
}


/* ─── Plan Addon Section ─── */
.plan-addon-section {
    background: var(--clr-dark, #0d1421);
    padding: 80px 0;
}
.plan-addon-section .sec-title {
    color: #fff;
}
.addon-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    height: 100%;
}
.addon-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(64,91,232,0.4);
    transform: translateY(-4px);
}
.addon-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--clr-brand, #405be8), #6a81f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}
.addon-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}
.addon-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.6;
}


/* ─── Plan FAQ Section ─── */
.plan-faq-section {
    padding: 80px 0;
    background: #f4f6fc;
}


/* ─── Plan CTA Section ─── */
.plan-cta-section {
    padding: 80px 0;
    background: #fff;
}
.plan-cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--clr-dark, #0d1421);
}


/* ─── Plan Process Section ─── */
.plan-process-section {
    padding: 80px 0;
    background: #fff;
}
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.process-step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 0 1rem;
}
.process-step__num {
    font-size: 3.5rem;
    font-weight: 900;
    color: #e8ecff;
    line-height: 1;
    margin-bottom: -0.6rem;
    font-family: Arial, sans-serif;
}
.process-step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-brand, #405be8), #6a81f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(64,91,232,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover .process-step__icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(64,91,232,0.35);
}
.process-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-dark, #0d1421);
    margin-bottom: 0.5rem;
}
.process-step p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}
.process-step__arrow {
    display: flex;
    align-items: center;
    padding-top: 1.8rem;
    color: #d4d9f0;
    font-size: 1.3rem;
    flex-shrink: 0;
}


/* ─── Plan Page RWD ─── */
@media (max-width: 767.98px) {
    .plan-hero { height: 320px; }
    .plan-hero__tags span { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
    .plan-cards-section { padding: 48px 0; }
    .plan-card--featured { transform: none; }
    .plan-card--featured:hover { transform: translateY(-6px); }
    .plan-compare-section { padding: 48px 0; }
    .plan-addon-section { padding: 48px 0; }
    .plan-faq-section { padding: 48px 0; }
    .plan-cta-section { padding: 48px 0; }
    .plan-table { font-size: 0.78rem; }
    .plan-table th, .plan-table td { padding: 0.55rem 0.6rem; }
    .addon-card { flex-direction: column; gap: 0.85rem; }
    .addon-card__icon { width: 42px; height: 42px; font-size: 1rem; }
    .plan-process-section { padding: 48px 0; }
    .process-steps { flex-direction: column; align-items: center; gap: 2rem; }
    .process-step { max-width: 100%; }
    .process-step__arrow { display: none; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .plan-card--featured { transform: none; }
    .plan-card--featured:hover { transform: translateY(-8px); }
    .plan-hero { height: 360px; }
}
