/*!------------------------------------------------------------------
[TECH THEME OVERRIDE]
明源鎖店 — 深色科技風主題（載入於 style.css 之後覆寫）
純 CSS、無圖片、無額外 JS，僅用漸層與陰影營造科技感。
-------------------------------------------------------------------*/

:root {
    --tech-bg: #0a0e17;
    --tech-bg-soft: #0d1322;
    --tech-surface: #111a2e;
    --tech-surface-2: #16213a;
    --tech-border: rgba(56, 189, 248, 0.22);
    --tech-border-strong: rgba(56, 189, 248, 0.45);
    --tech-accent: #38bdf8;
    --tech-accent-2: #6366f1;
    --tech-glow: rgba(56, 189, 248, 0.35);
    --tech-text: #dbe4f0;
    --tech-text-muted: #a9bad0;
    --tech-heading: #f1f5f9;
    --tech-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    /* 第二主色：黃銅金（鑰匙的顏色，也是店家招牌色） */
    --tech-gold: #fbbf24;
    --tech-gold-glow: rgba(251, 191, 36, 0.35);
    --tech-purple: #a78bfa;
    --tech-green: #34d399;
}

/* ===== 全域 ===== */
body {
    background-color: var(--tech-bg);
    color: var(--tech-text);
}

/* 科技格線背景 + 靜態極光暈（純漸層、畫一次就好，不用 fixed attachment 避免捲動重繪） */
.body-inner {
    background-image:
        radial-gradient(1100px 620px at 78% 320px, rgba(56, 189, 248, 0.08), transparent 65%),
        radial-gradient(700px 500px at 12% 900px, rgba(251, 191, 36, 0.05), transparent 65%),
        radial-gradient(900px 700px at 8% 1900px, rgba(99, 102, 241, 0.07), transparent 65%),
        linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
    background-size: auto, auto, auto, 44px 44px, 44px 44px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tech-heading);
}

a:hover {
    color: var(--tech-accent);
}

::selection {
    background: var(--tech-accent);
    color: #04101f;
}

/* 捲軸（Webkit） */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--tech-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tech-surface-2);
    border-radius: 5px;
    border: 2px solid var(--tech-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tech-border-strong);
}

:focus-visible {
    outline: 2px solid var(--tech-accent);
    outline-offset: 2px;
}

/* ===== Top bar ===== */
.top-bar {
    background: var(--tech-bg-soft);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    color: var(--tech-text-muted);
}

ul.top-info li i {
    color: var(--tech-gold);
}

ul.top-info li p.info-text a {
    color: var(--tech-text-muted);
}

ul.top-info li p.info-text a:hover {
    color: var(--tech-accent);
}

.top-social ul li a {
    color: var(--tech-text-muted);
}

.top-social ul li a:hover {
    color: var(--tech-accent);
    text-shadow: 0 0 12px var(--tech-glow);
}

/* ===== Header / 導覽列 ===== */
.header-two {
    background: rgba(13, 19, 34, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--tech-border), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header-two .navbar-fixed,
.site-navigation.navbar-fixed {
    background: rgba(13, 19, 34, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--tech-border), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.navbar-light ul.navbar-nav > li > a {
    color: var(--tech-text) !important;
    position: relative;
    transition: color 250ms ease;
}

ul.navbar-nav > li:hover > a,
ul.navbar-nav > li.active > a {
    color: var(--tech-accent) !important;
    text-shadow: 0 0 14px var(--tech-glow);
}

/* 導覽連結 hover 底線掃出（transform 縮放，合成器動畫） */
ul.navbar-nav > li > a::after {
    content: '';
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--tech-gradient);
    box-shadow: 0 0 10px var(--tech-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease;
}

ul.navbar-nav > li:hover > a::after {
    transform: scaleX(1);
}

@media (max-width: 991px) {
    ul.navbar-nav > li > a::after {
        display: none !important;
    }
}

/* 漢堡選單圖示改為亮色 */
.navbar-light .navbar-toggler {
    border-color: var(--tech-border-strong);
    background: var(--tech-surface);
    border-radius: 8px;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(56,189,248,0.95)' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 手機版展開選單 */
@media (max-width: 991px) {
    .header-two .navbar-collapse {
        background: var(--tech-surface);
        border: 1px solid var(--tech-border);
        border-radius: 10px;
        margin-top: 10px;
        padding: 10px 16px;
    }
}

/* Logo 加白色底片避免深色背景下突兀 */
.logo img {
    background: #fff;
    border-radius: 8px;
    padding: 2px;
}

/* 聯絡我們 CTA */
.header-get-a-quote .btn-primary {
    background: var(--tech-gradient);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0 16px var(--tech-glow);
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.header-get-a-quote .btn-primary:hover {
    background: var(--tech-gradient);
    color: #fff !important;
    box-shadow: 0 0 28px var(--tech-glow);
    transform: translateY(-1px);
}

/* 雷射雕刻閃爍按鈕：以 CSS 動畫取代原本的 setInterval */
.btn-flash {
    color: #f87171;
    border: 1px solid #f87171;
    border-radius: 8px;
    background: transparent;
    animation: techFlash 2.4s ease-in-out infinite;
}

@keyframes techFlash {
    0%, 100% {
        background: transparent;
        color: #f87171;
        box-shadow: 0 0 0 rgba(248, 113, 113, 0);
    }
    50% {
        background: #dc2626;
        color: #fff;
        box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
    }
}

/* ===== 主視覺輪播 ===== */
.banner-carousel .banner-carousel-item {
    position: relative;
}

/* 鑰匙孔浮水印（鎖店元素）：桌機才顯示，緩慢呼吸發光
   只動 opacity/transform，由合成器處理，不觸發重排 */
@media (min-width: 768px) {
    .banner-carousel .banner-carousel-item::before {
        content: '';
        position: absolute;
        right: 7%;
        top: 50%;
        width: 260px;
        height: 260px;
        margin-top: -130px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12a23 23 0 0 1 10.5 43.4L67 88H33l6.5-32.6A23 23 0 0 1 50 12z' fill='none' stroke='%2338bdf8' stroke-width='2.5'/%3E%3Ccircle cx='50' cy='35' r='30' fill='none' stroke='%2338bdf8' stroke-width='1' opacity='.45' stroke-dasharray='4 6'/%3E%3C/svg%3E") center / contain no-repeat;
        z-index: 1;
        pointer-events: none;
        animation: techKeyholePulse 5s ease-in-out infinite;
    }
}

@keyframes techKeyholePulse {
    0%, 100% {
        opacity: 0.14;
        transform: scale(1);
    }
    50% {
        opacity: 0.32;
        transform: scale(1.04);
    }
}

/* 深色科技感遮罩，確保文字對比 */
.banner-carousel .banner-carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 14, 23, 0.82) 0%, rgba(10, 14, 23, 0.45) 50%, rgba(10, 14, 23, 0.2) 100%),
        linear-gradient(to top, var(--tech-bg) 0%, transparent 18%);
    pointer-events: none;
    z-index: 0;
}

/* box-slider-content 本身是 absolute 定位，直接給 z-index 疊在遮罩上方
   （不可對 .container 加 position，會搶走置中的定位基準） */
.box-slider-content {
    z-index: 1;
}

.box-slider-text {
    /* 對齊改版前版本：純黑 0.35（更透明），靠 backdrop-blur 維持文字可讀 */
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-border);
    border-left: 3px solid var(--tech-accent);
    border-radius: 12px;
    padding: clamp(18px, 3vw, 32px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* HUD 瞄準框四角（8 個小漸層，靜態零成本） */
.box-slider-text::before {
    content: '';
    position: absolute;
    inset: 7px;
    pointer-events: none;
    background:
        linear-gradient(var(--tech-accent), var(--tech-accent)) left 0 top 0 / 16px 2px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) left 0 top 0 / 2px 16px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) right 0 top 0 / 16px 2px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) right 0 top 0 / 2px 16px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) left 0 bottom 0 / 16px 2px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) left 0 bottom 0 / 2px 16px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) right 0 bottom 0 / 16px 2px,
        linear-gradient(var(--tech-accent), var(--tech-accent)) right 0 bottom 0 / 2px 16px;
    background-repeat: no-repeat;
    opacity: 0.85;
}

/* 玻璃面板內的雷射掃描線：transform 位移 100% 自身高度，合成器動畫 */
.box-slider-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(56, 189, 248, 0.04) 46%,
        rgba(56, 189, 248, 0.45) 50%,
        rgba(56, 189, 248, 0.04) 54%,
        transparent 100%);
    pointer-events: none;
    animation: techScanline 6s linear infinite;
}

@keyframes techScanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.box-slide-title {
    color: var(--tech-gold);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: 3px;
}

.box-slide-sub-title {
    color: #ffffff;
    font-size: clamp(22px, 4.5vw, 38px);
    text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

/* 漸層霓虹標題：保持白色為主、尾端帶青紫，確保能見度 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .box-slide-sub-title {
        background: linear-gradient(115deg, #ffffff 0%, #ffffff 45%, #9be4ff 75%, #c7d2fe 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.35));
    }
}

.box-slide-description {
    color: #eef3fa;
    font-size: clamp(14px, 2vw, 16px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.box-slider-text .btn {
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transition: transform 250ms ease, box-shadow 250ms ease;
    position: relative;
    overflow: hidden;
}

.box-slider-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* hover 掃光（transform 位移，只在互動時跑一次） */
.box-slider-text .btn::after,
.header-get-a-quote .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(0);
    transition: transform 550ms ease;
    pointer-events: none;
}

.box-slider-text .btn:hover::after,
.header-get-a-quote .btn-primary:hover::after {
    transform: skewX(-20deg) translateX(380%);
}

.header-get-a-quote .btn-primary {
    position: relative;
    overflow: hidden;
}

@media (max-width: 575px) {
    .box-slider-text .btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}

.banner-carousel .carousel-control i {
    color: var(--tech-accent);
}

/* ===== 區塊標題（底線改為鑰匙造型，鎖店元素） ===== */
.section-sub-title {
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 28px;
    margin-bottom: 40px;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.4), 0 0 44px rgba(99, 102, 241, 0.25);
}

/* 鑰匙底線改黃銅金，呼應真實鑰匙的銅色 */
.section-sub-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 130px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cg fill='%23fbbf24'%3E%3Ccircle cx='10' cy='11' r='6.5' fill='none' stroke='%23fbbf24' stroke-width='3'/%3E%3Crect x='18' y='9.5' width='92' height='3' rx='1.5'/%3E%3Crect x='94' y='12' width='3.5' height='7' rx='1'/%3E%3Crect x='102' y='12' width='3.5' height='9' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px var(--tech-gold-glow));
}

/* 區塊英文小標（純 CSS 注入，增加版面層次） */
#serviceTag .section-sub-title::before,
#customerTag .section-sub-title::before,
#locationTag .section-sub-title::before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--tech-accent);
    opacity: 0.85;
    margin-bottom: 8px;
    text-shadow: none;
}

#serviceTag .section-sub-title::before {
    content: 'OUR SERVICES';
}

#customerTag .section-sub-title::before {
    content: 'CUSTOMER REVIEWS';
}

#locationTag .section-sub-title::before {
    content: 'LOCATION & MAP';
}

@media (max-width: 575px) {
    .section-sub-title {
        margin-bottom: 24px;
    }
}

/* ===== 服務卡片 ===== */
.card.border-secondary {
    background: linear-gradient(160deg, var(--tech-surface) 0%, var(--tech-bg-soft) 100%);
    border: 1px solid var(--tech-border) !important;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card.border-secondary:hover {
    transform: translateY(-4px);
    border-color: var(--tech-border-strong) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.15);
}

.card.border-secondary .card-header {
    background: rgba(56, 189, 248, 0.08);
    border-bottom: 1px solid var(--tech-border);
    color: var(--tech-accent);
    font-weight: 700;
    letter-spacing: 2px;
}

/* 卡片標題前的鎖頭圖示，hover 時「解鎖」（FontAwesome 已載入，無額外請求） */
.card.border-secondary .card-header::before {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
    font-size: 0.9em;
    transition: transform 250ms ease;
}

.card.border-secondary:hover .card-header::before {
    content: '\f3c1';
    transform: rotate(-12deg);
}

/* 服務卡片四色點綴，打破單一色調（依欄位順序：青 / 金 / 紫 / 綠） */
.card.border-secondary {
    border-top: 2px solid var(--tech-border-strong) !important;
}

#serviceTag .row.text-center > div:nth-child(2) .card.border-secondary {
    border-top-color: var(--tech-gold) !important;
}

#serviceTag .row.text-center > div:nth-child(2) .card-header {
    color: var(--tech-gold);
    background: rgba(251, 191, 36, 0.08);
}

#serviceTag .row.text-center > div:nth-child(3) .card.border-secondary {
    border-top-color: var(--tech-purple) !important;
}

#serviceTag .row.text-center > div:nth-child(3) .card-header {
    color: var(--tech-purple);
    background: rgba(167, 139, 250, 0.08);
}

#serviceTag .row.text-center > div:nth-child(4) .card.border-secondary {
    border-top-color: var(--tech-green) !important;
}

#serviceTag .row.text-center > div:nth-child(4) .card-header {
    color: var(--tech-green);
    background: rgba(52, 211, 153, 0.08);
}

.card.border-secondary .card-body.text-secondary {
    color: var(--tech-text-muted) !important;
}

.card.border-secondary .card-title {
    color: var(--tech-heading);
}

/* ===== 產品分類篩選 ===== */
.shuffle-btn-group {
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    margin: 20px 0 36px;
}

.shuffle-btn-group label {
    color: var(--tech-text-muted);
    border: 1px solid var(--tech-border);
    border-radius: 999px;
    background: var(--tech-surface);
    padding: 7px 20px !important;
    transition: color 250ms ease, border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.shuffle-btn-group label:hover {
    color: var(--tech-accent);
    border-color: var(--tech-border-strong);
}

.shuffle-btn-group label.active {
    background: var(--tech-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px var(--tech-glow);
}

/* 選中的分類前面加一把小鑰匙 */
.shuffle-btn-group label.active::before {
    content: '\f084';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 6px;
    color: var(--tech-gold);
}

/* 手機版：單列橫向滑動，避免按鈕擠成多行 */
@media (max-width: 575px) {
    .shuffle-btn-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shuffle-btn-group::-webkit-scrollbar {
        display: none;
    }

    .shuffle-btn-group label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
    }
}

/* ===== 產品圖卡 ===== */
.shuffle-item {
    padding: 6px;
}

.shuffle-item .project-img-container {
    border: 1px solid var(--tech-border);
    border-radius: 12px;
    background: var(--tech-surface);
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.shuffle-item .project-img-container:hover {
    border-color: var(--tech-border-strong);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}

.shuffle-item .project-img-container img {
    display: block;
    width: 100%;
    height: auto; /* 回到最早期版本：依原始比例完整顯示，不裁切 */
    transition: transform 400ms ease;
    will-change: transform;
}

.shuffle-item .project-img-container:hover img {
    transform: scale(1.05);
}

/* hover 時出現「鑰匙孔窺視」效果：暗角 + 中央鑰匙孔（只動 opacity） */
.shuffle-item .project-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 18a18 18 0 0 1 8.2 34L63 78H37l4.8-26A18 18 0 0 1 50 18z' fill='none' stroke='%2338bdf8' stroke-width='3'/%3E%3C/svg%3E") center / 64px no-repeat,
        radial-gradient(circle at center, rgba(10, 14, 23, 0) 25%, rgba(10, 14, 23, 0.6) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.shuffle-item .project-img-container:hover::after {
    opacity: 1;
}

/* 產品圖卡標題改為貼齊卡片底部、高度依內容，避免舊版 top:90% + 下推位移把文字裁掉（手機最明顯） */
.shuffle-item .project-img-container .project-item-info {
    top: auto;
    margin-top: 0;
    bottom: 0;
    padding: 0;
}

.shuffle-item .project-img-container .project-item-info-content {
    transform: none;
}

.shuffle-item .project-img-container .project-item-info-content .project-item-title {
    background: rgba(8, 12, 20, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 16px;
    border-top: 1px solid var(--tech-border);
    padding: 6px 4px;
    margin-bottom: 0;
}

/* ===== 區塊底色帶：讓各區塊有深淺節奏，不再整片同色 ===== */
#productTag.main-container {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.05), transparent 240px),
        rgba(13, 19, 34, 0.55);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

#serviceTag {
    /* 卡片用 mt-3 撐開上方，下方補同等留白，避免卡片下緣貼齊產品區分隔線像被截掉 */
    padding-bottom: 48px;
}

#customerTag.main-container {
    background: radial-gradient(820px 420px at 50% 0, rgba(167, 139, 250, 0.08), transparent 70%);
}

/* ===== 客戶好評 ===== */
.text_reviews::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: block;
    font-size: 20px;
    color: var(--tech-gold);
    opacity: 0.65;
    margin-bottom: 8px;
}

.quote-item.quote-border .quote-text-border {
    background: linear-gradient(160deg, var(--tech-surface) 0%, var(--tech-bg-soft) 100%);
    border: 1px solid var(--tech-border);
    border-radius: 12px;
    color: var(--tech-text);
}

.quote-item.quote-border .quote-text-border::before {
    border-top-color: var(--tech-border-strong);
}

.quote-item.quote-border .quote-text-border::after {
    border-color: var(--tech-surface) transparent transparent;
}

.text_reviews {
    color: var(--tech-text);
    font-size: 16px;
}

.quote-author {
    color: var(--tech-gold);
}

img.testimonial-thumb {
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.55);
}

/* ===== 地圖 ===== */
.map-responsive {
    border: 1px solid var(--tech-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.map-responsive iframe {
    border: 0;
}

@media (max-width: 767px) {
    .map-responsive {
        margin-bottom: 16px;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: #060a12;
    border-top: 1px solid var(--tech-border);
    color: var(--tech-text);
}

.footer-social p,
.working-hours {
    color: var(--tech-text);
}

.footer-main {
    padding: 56px 0 40px;
}

.footer .widget-title {
    border-left: 3px solid var(--tech-gold);
    color: var(--tech-heading);
}

.footer a:hover {
    color: var(--tech-accent);
}

.footer-widget img {
    border-radius: 10px;
    border: 1px solid var(--tech-border);
    max-width: 140px;
}

.copyright {
    background: #04070d;
    color: var(--tech-text-muted);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.copyright a {
    color: var(--tech-accent);
}

.copyright a:hover {
    color: var(--tech-heading);
}

@media (max-width: 767px) {
    .footer-main {
        padding: 36px 0 24px;
    }
}

/* ===== 浮動聯絡按鈕 ===== */
#Line .btn.btn-primary,
#mobile .btn.btn-primary {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));
    transition: transform 250ms ease;
    position: relative;
}

#Line .btn.btn-primary:hover,
#mobile .btn.btn-primary:hover {
    transform: scale(1.08);
}

/* LINE 按鈕脈衝光環：吸引目光提升轉換（transform + opacity，合成器動畫） */
#Line .btn.btn-primary::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 14px;
    border: 2px solid rgba(0, 195, 0, 0.7);
    animation: techPing 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes techPing {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    70%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* ===== Slick 細節 ===== */
.slick-dots li button:before {
    color: var(--tech-accent);
}

.slick-dots li.slick-active button:before {
    color: var(--tech-accent);
}

/* ===== 動畫偏好：尊重使用者設定（效能 / 無障礙） ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
