:root {
    /* Brand palette (Premium Law Office Tone) */
    --brand: #0B1F3A; /* 深藍色：主色 */
    --accent: #B08D57; /* 金色/銅色：點綴色 */
    --accent-light: #D6BE86;
    --text: #1F2937; /* 深灰文字 */
    --text-muted: #6B7280;
    --bg: #FFFFFF; /* 白色背景 */
    --bg-soft: #F9FAFB; /* 極淡灰背景 */
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7; /* 修正要求 4.3 */
    overflow-x: hidden;
    word-break: normal; /* 修正要求 4.3 */
}

/* ===== Typography ===== */
h1, h2, h3, .serif {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
    font-weight: 700;
}

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

.section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.muted {
    color: var(--text-muted);
}

/* ===== Header & Navigation (Hamburger Mode) ===== */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 28px; /* 你想要的大小：28~36 都可 */
    font-weight: 800;
    line-height: 1;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    color: #0b1f3b; /* 依你主色系調整 */
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-menu.active {
        height: auto;
        padding: 20px 0;
    }
    .nav-menu a {
        padding: 15px 40px;
        width: 100%;
        display: block;
    }
    .nav-menu a:hover {
        background: var(--bg-soft);
    }
}

/* ============================= */
/* Hero Full Width Background    */
/* ============================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--bg);
}

/* 每張 slide 疊在一起 */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
}

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
    }

/* 讓 container 只負責文字排版 */
.hero-container {
    position: relative;
    z-index: 3;
}

/* ============================= */
/* 🔥 圖片真正吃滿紅框區域       */
/* ============================= */

.hero-image {
    position: absolute;
    inset: 0; /* 這行是關鍵 */
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 等比例裁切填滿 */
    }

    /* ============================= */
    /* 左上霧化 → 右下清晰漸層       */
    /* ============================= */

    .hero-image::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: radial-gradient(1000px 1000px at 18% 22%, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 38%, rgba(255,255,255,0.85) 52%, rgba(255,255,255,0.45) 68%, rgba(255,255,255,0) 82%);
    }

/* ============================= */
/* 文字覆蓋在圖片上               */
/* ============================= */

.hero-text {
    position: relative;
    z-index: 5;
    max-width: 620px;
}

.hero-title,
.hero-subtitle,
.hero-kicker {
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================= */
/* 底部圓點（品牌感版本）        */
/* ============================= */

/* ============================= */
/* Hero Dots - Premium Version   */
/* ============================= */

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    /* 玻璃感底座 */
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 6;
}

/* 每顆圓點 */
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(11,31,58,0.35);
    background: transparent;
    transition: all .3s ease;
    position: relative;
}

    /* hover 效果 */
    .hero-dot:hover {
        border-color: var(--accent);
        transform: scale(1.15);
    }

    /* active 狀態 */
    .hero-dot.active {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.25);
        box-shadow: 0 0 0 4px rgba(180,145,75,0.18); /* 淡金光圈 */
    }
/* =========================================================
   Hero (Mobile fix) — 請放在 site.css 最後，或取代你原本
   @media (max-width: 991px) 內的 hero 相關設定
   ========================================================= */
@media (max-width: 991px) {

    /* 讓每張 slide 在手機有穩定高度，避免出現大片空白 */
    .hero-slider {
        position: relative;
    }

    .hero-slide {
        position: relative;
        min-height: calc(100vh - 72px); /* 72px 依你 header 實際高度，可微調 */
        display: none;
        align-items: stretch;
    }

        .hero-slide.active {
            display: flex;
        }

    /* container 改成堆疊，並當作文字層的定位容器 */
    .hero-container {
        position: relative;
        width: 100%;
        min-height: inherit;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 56px 18px 96px; /* 上：讓出導覽，下：讓 dots 有空間 */
        z-index: 2; /* 文字在上層 */
    }

    /* 文字不要被擠到很下面 */
    .hero-text {
        max-width: 520px;
    }

    /* ✅ 手機版不要隱藏圖片：改成全幅背景鋪滿 */
    .hero-image {
        display: block !important; /* 關鍵：覆蓋你原本 display:none */
        position: absolute;
        inset: 0; /* top/right/bottom/left = 0 */
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
    }

        .hero-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 全幅鋪滿 */
            object-position: center;
            transform: scale(1.02); /* 微放大避免邊緣露白 */
        }

        /* ✅ 延用你要的「白色淡出漸層」：左上 → 右下，且邊緣要圓滑 */
        /* 這裡用 radial + linear 疊加，做出你貼的那種“柔順凸出”白霧 */
        .hero-image::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
            background:
            /* 圓滑凸出：左上大塊柔白（像你貼圖那種弧形白霧） */
            radial-gradient(120% 95% at 0% 0%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.60) 55%, rgba(255,255,255,0.18) 75%, rgba(255,255,255,0.00) 92%),
            /* 方向補強：左上 → 右下的淡出 */
            linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.50) 45%, rgba(255,255,255,0.00) 78%);
        }

    /* dots 固定在底部置中，不要跑到標題旁邊 */
    .hero-dots {
        position: absolute;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 3;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-outline:hover {
    background: var(--bg-soft);
}

/* ===== Feature Cards (修正要求 3.4, 4.4) ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (min-width: 1200px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .grid-3 { grid-template-columns: 1fr; }
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 30px; /* 修正要求 4.4 */
    border-radius: var(--radius);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* ===== Timeline / Process ===== */
.timeline {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.timeline li {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline li:last-child::before { display: none; }

.timeline .dot {
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== FAQ / Accordion ===== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.acc-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    cursor: pointer;
}

.acc-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.acc-content {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-muted);
}

.acc-item.active .acc-content { display: block; }

/* ===== CTA Section ===== */
.cta {
    background: var(--brand);
    color: #fff;
    text-align: center;
}

.cta h2 { margin-bottom: 20px; }

/* ===== Map & Contact ===== */
.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .two-col { grid-template-columns: 1fr; }
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row input, .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ===== Floating Buttons (修正要求 4.5) ===== */
.float-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1100;
}

@media (max-width: 767px) {
    .float-wrapper {
        bottom: 40px; /* 修正要求 4.5 */
    }
}

.float-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.float-item:hover { transform: scale(1.1); }
.float-line { background: #06C755; }
.float-phone { background: var(--brand); }

/* ===== Footer ===== */
.site-footer {
    background: var(--brand);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    opacity: 0.6;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== Carousel Support ===== */
/* ===== Carousel (Fix + Beauty) ===== */
.carousel-shell {
    position: relative;
    display: block;
}

.carousel-viewport {
    overflow: hidden; /* 重要：外框裁切 */
    border-radius: 18px;
    padding: 2px; /* 讓陰影/邊線更乾淨 */
}

.carousel-track {
    display: flex !important; /* 重要：避免被 grid 覆蓋 */
    gap: 16px;
    overflow-x: auto; /* 重要：可滾動 */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 6px 14px;
    scrollbar-width: none;
}

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-track > .card {
        scroll-snap-align: start;
        min-width: calc((100% - 32px) / 3); /* 桌機 3 張 */
    }

/* 平板 2 張 */
@media (max-width: 960px) {
    .carousel-track > .card {
        min-width: calc((100% - 16px) / 2);
    }
}
/* 手機 1 張（留一點邊，讓人知道可滑） */
@media (max-width: 720px) {
    .carousel-track > .card {
        min-width: 88%;
    }
}

/* Arrow buttons: 漂浮、精緻、可點 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(2,6,23,.14);
    color: rgba(11,31,58,.92);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

    .carousel-btn:hover {
        filter: brightness(.98);
        box-shadow: 0 16px 34px rgba(2,6,23,.18);
    }

    .carousel-btn:active {
        transform: translateY(-50%) scale(.98);
    }

    .carousel-btn.is-prev {
        left: -10px;
    }

    .carousel-btn.is-next {
        right: -10px;
    }

/* 讓箭頭在手機不擋內容 */
@media (max-width: 720px) {
    .carousel-btn.is-prev {
        left: 6px;
    }

    .carousel-btn.is-next {
        right: 6px;
    }
}

/* 卡片高度一致好看 */
.carousel-track > .card {
    border-radius: 16px;
    min-height: 200px;
}

    .carousel-track > .card h3 {
        margin-bottom: 10px;
    }

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About Preview Fix (必定顯示 + 更好看) ===== */
.about-preview .about-grid {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

/* 文字區塊：避免太寬太散 */
.about-preview .about-copy {
    max-width: 640px;
}

    .about-preview .about-copy h2 {
        margin-bottom: 10px;
    }

/* 圖片區塊：固定高度，避免塌掉 */
.about-preview .about-photo {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(246,247,251,.9);
    min-height: 260px; /* 關鍵：避免高度=0 */
    box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

    .about-preview .about-photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* RWD：手機改成上下排列 */
@media (max-width: 960px) {
    .about-preview .about-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .about-preview .about-photo {
        min-height: 220px;
    }
}

/* Safety：避免 reveal 沒觸發導致本段消失 */
.about-preview [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}

/* About Preview: top align text with image */
.about-preview .about-grid {
    align-items: start !important; /* 原本 center 會讓左欄下沉 */
}

.about-preview .about-copy {
    padding-top: 6px; /* 微調：讓標題更貼齊圖片頂 */
}

    .about-preview .about-copy h2 {
        margin-top: 0 !important; /* 防止 h2 預設上邊距造成下沉 */
    }

.about-preview .about-photo {
    margin-top: 0 !important;
}
.about-preview .about-grid {
    padding-top: 18px;
}

.about-preview .about-copy {
    padding-top: 0;
}

/* ==============================
   Home section titles (Desktop only larger)
   ============================== */

/* 桌機放大首頁主區塊標題 */
@media (min-width: 961px) {

    /* 服務領域 / 成功案例 / 常見問題 這種 section-head */
    .section-head h2.serif {
        font-size: 40px; /* 原本約 30~32px，這裡放大 */
        letter-spacing: 1px;
    }

    /* 本所理念 */
    .about-preview h2.serif {
        font-size: 38px;
    }

    /* 諮詢流程 */
    .process-section h2.serif,
    .timeline-section h2.serif {
        font-size: 38px;
    }
}

/* ==============================
   Accordion (FAQ) style
   ============================== */
.accordion {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.acc-item {
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(2,6,23,.04);
    overflow: hidden;
}

.acc-btn {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.acc-q {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.acc-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.14);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    position: relative;
    background: rgba(248,250,252,.9);
}

    .acc-icon::before,
    .acc-icon::after {
        content: "";
        position: absolute;
        background: #0f172a;
        border-radius: 2px;
    }

    .acc-icon::before {
        width: 12px;
        height: 2px;
    }

    .acc-icon::after {
        width: 2px;
        height: 12px;
    }

/* open state: turn + into – */
.acc-btn[aria-expanded="true"] .acc-icon {
    background: rgba(203, 162, 93, .12); /* 淡金 */
    border-color: rgba(203, 162, 93, .45);
}

    .acc-btn[aria-expanded="true"] .acc-icon::after {
        opacity: 0;
    }

.acc-panel {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    border-top: 1px solid rgba(15,23,42,.08);
}

.acc-panel-inner {
    padding: 12px 18px 16px;
    color: #334155;
    line-height: 1.7;
}

    .acc-panel-inner p {
        margin: 0;
    }

/* Hover */
@media (hover:hover) {
    .acc-btn:hover {
        background: rgba(248,250,252,.8);
    }
}

/* Desktop：FAQ 標題更大（你之前要求：手機不變） */
@media (min-width: 961px) {
    /* QA 頁面的 h1 */
    main h1.serif {
        font-size: 44px;
        letter-spacing: 1px;
    }
}

/* ==============================
   FAQ question size adjustment
   ============================== */

/* 問題標題（比內容大） */
.acc-q {
    font-size: 18px; /* 原本約 16px */
    font-weight: 700;
    letter-spacing: .5px;
}

/* 內容維持正常閱讀尺寸 */
.acc-panel-inner {
    font-size: 15px;
    line-height: 1.7;
}

/* ==============================
   Inner page H1 size control
   ============================== */

main > section > .container > h1.serif {
    font-size: 34px; /* 原本約 44px */
    margin-bottom: 24px;
}

:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

.site-header {
    padding-top: var(--safe-top);
}

.site-footer {
    padding-bottom: var(--safe-bottom);
}

.hero,
.hero-slider,
.hero-wrap {
    min-height: 520px; /* 桌機保底 */
    height: 70vh; /* fallback */
    height: 70svh; /* 小視窗高度：比較接近「可視範圍」 */
    height: 70dvh; /* 動態視窗高度：新瀏覽器最準 */
}

    .hero img,
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.is-line-webview .hero,
.is-line-webview .hero-slider {
    height: 72dvh;
}

.map-embed {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6e9ef;
  background: #fff;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-embed iframe { height: 320px; }
}

.map-fallback {
    position: absolute;
    inset: 0;
    padding: 18px;
    background: #fff;
    /* 不要在這裡寫 display:grid */
}

    .map-fallback:not([hidden]) {
        display: grid;
        place-items: center;
    }

    /* 保險：確保 hidden 一定隱藏 */
    .map-fallback[hidden] {
        display: none !important;
    }

.map-fallback-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16,24,40,.08);
}

.map-fallback-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.map-fallback-desc {
  color: #5b667a;
  font-size: .95rem;
  margin-bottom: 14px;
}

.intro-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 0;
}

.intro-title {
    text-align: center;
    line-height: 1.35;
    margin: 0 0 18px 0;
}

.intro-text {
    text-align: left; /* ✅ 內文左對齊，閱讀感立刻正常 */
    line-height: 1.95;
    font-size: 1.02rem;
}

    .intro-text p {
        margin: 0 0 14px 0;
    }

/* 手機：標題可保持置中，但內文保持左對齊；行距稍微收斂 */
@media (max-width: 576px) {
    .intro-wrap {
        padding: 0;
    }

    .intro-title {
        margin-bottom: 14px;
    }

    .intro-text {
        line-height: 1.85;
    }
}

/* 諮詢流程項目標題放大 */
.timeline .content h4 {
    font-size: 1.2rem; /* 原本約 1rem 左右，提升一階 */
    font-weight: 600;
    margin-bottom: 6px;
}

.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab-line,
.fab-call {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.fab-line {
    border: 1.5px solid #06C755;
    color: #06C755;
    background: #fff;
}

.fab-call {
    border: 1.5px solid #1c3b63;
    color: #1c3b63;
    background: #fff;
}

.line-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.line-modal-content {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    text-align: center;
    max-width: 320px;
}

    .line-modal-content img {
        width: 200px;
        margin: 16px 0;
    }

.line-modal-content {
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background: #e4e4e4;
    }

/* ===== Floating Buttons base ===== */
.float-wrapper {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9999;
}

.floating-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

    /* 兩顆共用外觀 */
    .floating-actions .float-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: 800;
        letter-spacing: .5px;
        text-decoration: none; /* ✅ 拿掉底線 */
        user-select: none;
        border: 2px solid #0b2a4a; /* 你主色系可調 */
        background: #fff;
        color: #0b2a4a;
        box-shadow: 0 10px 26px rgba(0,0,0,.14);
    }

    /* LINE 特化 */
    .floating-actions .btn-line {
        border-color: #06c755;
        color: #06c755;
    }

    /* 撥打特化（可保持同色系） */
    .floating-actions .btn-call {
        border-color: #0b2a4a;
        color: #0b2a4a;
    }

/* ✅ 桌機/滑鼠：隱藏「撥打」 */
@media (hover: hover) and (pointer: fine) {
    .floating-actions .btn-call {
        display: none !important;
    }
}

/* ✅ 觸控：顯示「撥打」 */
@media (hover: none) and (pointer: coarse) {
    .floating-actions .btn-call {
        display: inline-flex !important;
    }
}

/* ===== 首頁 Section 奇偶背景區分 ===== */
main > section:nth-of-type(odd) {
    background-color: #ffffff;
}

section.section:nth-of-type(even):not(.cta) {
    background: #f6f8fb;
}

/* Contact info (left column) */
.contact-info .contact-head .serif {
    margin: 0 0 10px;
}

.contact-info .contact-head .muted {
    margin: 0;
    line-height: 1.9;
}

.contact-cards {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .contact-card:hover {
        transform: translateY(-1px);
        border-color: #dbe5f0;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    }

    .contact-card.is-static {
        cursor: default;
    }

        .contact-card.is-static:hover {
            transform: none;
        }

.contact-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f3f6fb;
    color: #0b1b32;
    font-weight: 800;
    flex: 0 0 44px;
}

.contact-meta {
    min-width: 0;
}

.contact-k {
    font-size: .85rem;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 2px;
}

.contact-v {
    font-weight: 700;
    color: #0b1b32;
    line-height: 1.5;
    word-break: break-word;
}

.contact-sub {
    margin-top: 2px;
    font-size: .9rem;
    color: #6b7280;
}

/* 小螢幕：讓左側更緊湊 */
@media (max-width: 768px) {
    .contact-card {
        padding: 12px;
        border-radius: 12px;
    }

    .contact-ico {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        flex-basis: 40px;
    }
}