/* --- 科技感配色全域變數 --- */
:root {
    /* 核心科技藍：明亮的青藍色 */
    --tech-primary: #00c3ff;
    --tech-primary-dark: #0099cc;
    /* 深邃背景：深海軍藍，取代純黑 */
    --tech-dark: #0f172a;
    --tech-dark-light: #1e293b;
    /* 輔助灰：冷色調灰 */
    --tech-gray: #f1f5f9;
    --tech-text-dark: #334155;
    /* 警告與成功色調整 */
    --tech-accent: #f59e0b;
    /* 金黃色 */
    --tech-success: #10b981;
    /* 科技綠 */
}

body {
    font-family: "Segoe UI", "Microsoft JhengHei", "Heiti TC", sans-serif;
    padding-top: 76px;
    background-color: #f8fafc;
    /* 背景改為極淡的冷藍灰 */
    color: var(--tech-text-dark);
}

section {
    scroll-margin-top: 80px;
}

/* --- 覆寫 Bootstrap 預設顏色 --- */

/* 文字顏色覆寫 */
.text-primary {
    color: var(--tech-primary-dark) !important;
}

.text-warning {
    color: var(--tech-accent) !important;
}

/* 背景顏色覆寫 */
.bg-dark {
    background-color: var(--tech-dark) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--tech-primary-dark), var(--tech-primary)) !important;
}

.bg-light {
    background-color: #e2e8f0 !important;
}

/* 按鈕樣式優化 */
.btn-primary {
    background: linear-gradient(90deg, #0099cc, #00c3ff);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 195, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0088b6, #00aadd);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 195, 255, 0.5);
}

/* 導覽列優化 */
.navbar-dark.bg-dark {
    background: linear-gradient(to right, #0f172a, #1e293b) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 195, 255, 0.8));
}

/* Hero 區塊 */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.8)), url('images/hard-drive-data-recovery-service.jpg') center/cover;
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--tech-primary), transparent);
}

/* 卡片設計 - 科技質感 */
.card-custom {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tech-primary);
    opacity: 0.7;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 195, 255, 0.15);
    border-color: var(--tech-primary);
}

.card-custom i {
    background: -webkit-linear-gradient(#0099cc, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 浮動按鈕 */
.floating-btn-group {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid white;
}

.float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
    box-shadow: 0 0 15px var(--tech-primary);
}

.btn-line {
    background-color: #00B900;
}

.btn-phone {
    background: linear-gradient(135deg, var(--tech-primary-dark), var(--tech-primary));
}

.btn-top {
    background-color: var(--tech-dark-light);
}

/* SEO Footer */
.seo-footer {
    background-color: #f1f5f9;
    padding: 50px 0;
    font-size: 0.95rem;
    border-top: 1px solid #cbd5e1;
}

.seo-footer h6 {
    font-weight: 700;
    color: var(--tech-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--tech-primary);
    padding-bottom: 8px;
    display: inline-block;
}

.seo-footer a {
    text-decoration: none;
    color: #64748b;
    transition: color 0.2s;
}

.seo-footer a:hover {
    color: var(--tech-primary);
    padding-left: 5px;
}

/* 其他元素 */
.map-container {
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header.bg-dark {
    background: var(--tech-dark) !important;
    border-bottom: 2px solid var(--tech-primary);
}

.table-dark {
    --bs-table-bg: var(--tech-dark);
}

/* 案例與評論卡片微調 */
.carousel-item .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.carousel-item .card-header {
    /* 讓標題有一致的漸層感 */
    background: linear-gradient(135deg, var(--tech-primary-dark), var(--tech-primary)) !important;
    border-bottom: none;
}

/* 特殊卡片顏色覆寫，保持原本邏輯但加強質感 */
.carousel-item .card-header.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #3dd5f3) !important;
    color: #0f172a !important;
}

.carousel-item .card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffcd39) !important;
    color: #0f172a !important;
}

.carousel-item .card-header.bg-dark {
    background: linear-gradient(135deg, #0f172a, #334155) !important;
    border-bottom: 2px solid var(--tech-primary);
}

#pricing {
    background: #fafafa;
    padding: 80px 0;
}

#pricing .card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    transition: .25s;
    color: #374151;
    box-shadow: none;
}

#pricing .card:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

#pricing h5 {
    font-weight: 600;
    margin-bottom: .5rem;
}

#pricing .badge {
    font-size: .7rem;
    border-radius: 4px;
}

#pricing .text-danger {
    color: #0ea5e9 !important;
}

#pricing hr {
    opacity: .15;
    margin: .75rem 0;
}