/* Modern Aqualab Website - Custom Styles */

/* CSS Custom Properties (Variables) - 水處理科技主題配色 */
:root {
    /* 主色系 - 水藍科技感 */
    --primary-color: #0077be;          /* 深海藍 */
    --primary-dark: #005f96;           /* 深藍 */
    --primary-light: #339fd1;          /* 淺海藍 */
    --secondary-color: #00b4d8;        /* 水藍 */
    --accent-color: #00f5ff;           /* 科技青 */
    --success-color: #00c851;          /* 環保綠 */
    --warning-color: #ffbb33;          /* 警示橙 */
    --danger-color: #ff4444;           /* 警告紅 */
    
    /* 文字色彩 */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    
    /* 背景色彩 */
    --background-light: #f8fbff;       /* 淡藍背景 */
    --background-gradient: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    
    /* 邊框與陰影 */
    --border-color: #dee2e6;
    --border-radius: 12px;
    --shadow-light: rgba(0, 119, 190, 0.1);
    --shadow-medium: rgba(0, 119, 190, 0.2);
    --shadow-dark: rgba(0, 119, 190, 0.3);
    --glow-effect: 0 0 20px rgba(0, 245, 255, 0.3);
    
    /* Typography */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 2rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1.1rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-gradient);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 頁面背景 - 靜態淡藍 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    z-index: -2;
}

/* Navigation Enhancements - 科技感導航 */
.navbar {
    background: rgba(0, 119, 190, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px var(--shadow-medium);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

.navbar.scrolled {
    background: rgba(0, 95, 150, 0.98) !important;
    box-shadow: 0 4px 30px var(--shadow-dark);
}

/* 導航發光效果 */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 245, 255, 0.6) 50%, 
        transparent 100%);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 4px 0;
}

.navbar-logo-svg {
    height: 56px;
    width: auto;
    transition: opacity 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.3));
}

.navbar-brand:hover .navbar-logo-svg {
    opacity: 0.88;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.65));
}

/* 水波紋路徑動畫 */
@keyframes rippleExpand {
    0%   { opacity: 0.85; transform: scale(0.6); }
    70%  { opacity: 0.4; }
    100% { opacity: 0;    transform: scale(1.55); }
}

/* 4 層波紋錯開時間，從內到外依序擴散 */
.navbar-logo-svg .ripple {
    transform-origin: 50% 50%;   /* fill-box 模式下用 50% 50% 才能從橢圓中心擴散 */
    transform-box: fill-box;
    animation: rippleExpand 11.2s ease-out infinite;
}
.navbar-logo-svg .r1 { animation-delay: 0s;    }
.navbar-logo-svg .r2 { animation-delay: 2.4s;  }
.navbar-logo-svg .r3 { animation-delay: 4.8s;  }
.navbar-logo-svg .r4 { animation-delay: 7.2s;  }

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: var(--transition-fast);
    transform: translateX(-50%);
    box-shadow: var(--glow-effect);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ===========================================
   日式庭園底圖 - 水墨夜景風格
   =========================================== */

/* Hero 主區塊 */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 主背景層：截取原圖中間部份 */
.zen-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../../uploads/system/hero-pipe-G.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.82;
    filter: brightness(1.1) saturate(1.3) contrast(1.08);
}

/* 移除原本的 CSS 山水剪影 */
.zen-bg::before,
.zen-bg::after {
    display: none;
}

/* 水面漣漪動效層 - 僅用 opacity，絕不抖動 */
.zen-ripple-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 8% at 50% 80%, rgba(0, 200, 240, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 45% 5% at 32% 86%, rgba(0, 180, 220, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 38% 5% at 68% 88%, rgba(0, 180, 220, 0.05) 0%, transparent 100%);
    animation: zenRipple 6s ease-in-out infinite;
}

@keyframes zenRipple {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1.0; }
}

/* 遮罩層 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(
        160deg,
        rgba(3, 15, 40, 0.52) 0%,
        rgba(0, 45, 90, 0.35) 50%,
        rgba(0, 70, 120, 0.22) 100%
    );
    pointer-events: none;
}

/* Hero 內容層 */
.hero-content {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding-top: 80px;
}

/* Hero 標章 */
.hero-badge {
    display: inline-block;
    background: rgba(0, 245, 255, 0.15);
    border: 1px solid rgba(0, 245, 255, 0.40);
    color: #b8eeff;
    padding: 6px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    backdrop-filter: blur(8px);
}

/* 向下滾動提示 - 用 margin-top 取代 translateY 避免抖動 */
.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.5rem;
    animation: hintBounce 2.5s ease-in-out infinite;
    cursor: pointer;
}

@keyframes hintBounce {
    0%, 100% { opacity: 0.55; margin-top: 0;    }
    50%       { opacity: 0.90; margin-top: -12px; }
}

/* =========================================
   Sub-page Hero Banner（子頁面橫幅）
   ========================================= */
.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.80;
    filter: brightness(0.98) saturate(1.2) contrast(1.05);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(3, 15, 40, 0.70) 0%,
        rgba(0, 45, 90, 0.55) 55%,
        rgba(0, 70, 120, 0.38) 100%
    );
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 5; }

.page-hero .breadcrumb { background: none; margin-bottom: 0; }
.page-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.92); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }

/* Feature Icons - 專業水處理服務展示 */
.feature-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* 水滴漣漪效果 */
.feature-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
}

.feature-icon:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.feature-icon:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.feature-icon i {
    color: white !important;
    transition: all var(--transition-normal);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-icon:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

/* Cards - 現代科技感卡片設計 */
.card {
    border: none;
    border-radius: 20px;
    transition: all var(--transition-normal);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

/* 科技感邊框動效 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color), var(--primary-light), var(--accent-color));
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: gradientShift 3s ease-in-out infinite;
    pointer-events: none; /* 避免遮蓋表單輸入 */
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px var(--shadow-medium),
        0 0 30px rgba(0, 245, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-img-top {
    transition: var(--transition-slow);
    border-radius: 20px 20px 0 0;
    filter: brightness(1) saturate(1);
}

.card:hover .card-img-top {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

/* Buttons - 科技感按鈕設計 */
.btn {
    border-radius: 30px;
    font-weight: 600;
    padding: 14px 35px;
    transition: all var(--transition-normal);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

/* 按鈕發光效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    box-shadow: 
        0 6px 20px rgba(0, 119, 190, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(0, 119, 190, 0.5),
        0 0 20px var(--accent-color);
    color: white;
}

/* 水滴按鈕效果 */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(0, 180, 216, 0.5),
        0 0 20px var(--secondary-color);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--glow-effect);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    position: relative;
}

/* Typography */
.display-4, .display-6 {
    font-weight: 700;
    color: var(--text-dark);
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529, #495057) !important;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design - 完整RWD響應式設計 */

/* 大螢幕桌機 (1200px+) */
@media (min-width: 1200px) {
    .hero-bg h1 {
        font-size: 4rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .feature-icon {
        width: 120px;
        height: 120px;
    }
    
    .feature-icon i {
        font-size: 3.5rem !important;
    }
}

/* 筆記型電腦 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-bg h1 {
        font-size: 3.5rem;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
}

/* 平板直向 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
        background: rgba(0, 95, 150, 0.95);
        border-radius: 15px;
        margin-top: 1rem;
        backdrop-filter: blur(20px);
    }
    
    .hero-bg {
        height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-bg h1 {
        font-size: 3rem;
    }
    
    .hero-bg p {
        font-size: 1.1rem;
    }
    
    .feature-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 2.5rem !important;
    }
    
    .card {
        margin-bottom: 2rem;
    }
}

/* 手機橫向和平板直向 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-bg {
        height: 70vh;
        background-attachment: scroll;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-bg h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-bg p {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 0.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon i {
        font-size: 2.2rem !important;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }
}

/* 手機直向 (最大 575px) */
@media (max-width: 575px) {
    .hero-bg {
        height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-bg h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-bg p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 0.3rem;
        width: 100%;
        max-width: 200px;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.8rem !important;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 手機版導航改善 */
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 10px;
        margin: 0.2rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* 極小手機 (最大 360px) */
@media (max-width: 360px) {
    .hero-bg h1 {
        font-size: 1.7rem;
    }
    
    .hero-bg p {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===========================================
   卡片無圖佔位符
   =========================================== */
.card-no-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #b3e5fc 100%);
    color: var(--primary-color);
    font-size: 3rem;
    border-radius: 20px 20px 0 0;
}

/* ===========================================
   最新技術資訊 - 免費圖庫底圖卡片
   =========================================== */
.news-tech-card {
    border: 1px solid rgba(0, 119, 190, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.news-tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 119, 190, 0.2) !important;
    border-color: rgba(0, 119, 190, 0.35);
    text-decoration: none;
    color: inherit;
}

/* 圖庫底圖容器 */
.news-card-img-wrap {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #002d5e 0%, #0055a5 100%);
}

/* 底圖半透明化 */
.news-stock-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.news-tech-card:hover .news-stock-img {
    transform: scale(1.06);
    opacity: 0.72;
}

/* 標題覆蓋層：全面半透明深藍 + 白字標題置中 */
.news-card-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(0, 25, 60, 0.42);
    z-index: 2;
}

.news-overlay-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 180, 255, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.news-tech-card:hover .news-overlay-title {
    color: #7eefff;
    text-shadow: 0 0 18px rgba(0, 220, 255, 0.7), 0 2px 12px rgba(0, 0, 0, 0.9);
}

.news-tech-card .card-footer {
    border-top: 1px solid rgba(0, 119, 190, 0.1);
}

/* 工程實績卡片連結樣式 */
a.card {
    color: inherit;
    cursor: pointer;
}
a.card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 119, 190, 0.18) !important;
    border-color: rgba(0, 119, 190, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 工程實績描述文字最多兩行 */
.prod-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 3em;
}

@media (max-width: 575px) {
    .news-card-img-wrap,
    .news-stock-img {
        height: 140px;
    }
    .news-overlay-title {
        font-size: 1.25rem;
    }
}

/* ===========================================
   水處理公司專用額外樣式
   =========================================== */

/* 水處理專業區塊樣式 */
.water-treatment-section {
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.water-treatment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 180, 216, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
    animation: waterFlow 20s ease-in-out infinite;
}

@keyframes waterFlow {
    0%, 100% { opacity: 0.5; transform: translateX(0) translateY(0); }
    50% { opacity: 1; transform: translateX(20px) translateY(-20px); }
}

/* 技術展示卡片 */
.tech-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 119, 190, 0.2);
    border-color: var(--accent-color);
}

/* 水質指標顯示 */
.water-quality-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success-color), #4caf50);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* 工程進度條 */
.progress-bar-water {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar-water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 聯絡資訊區塊 */
.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    position: relative;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

/* 專業認證標章 */
.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--warning-color), #ffa726);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* footer 增強設計 */
footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%) !important;
    position: relative;
    overflow: hidden;
}

/* footer 文字顏色修正：深色背景上 text-muted 會看不到 */
footer .text-muted,
footer p.text-muted,
footer a.text-muted,
footer div.text-muted,
footer div.text-muted p,
footer div.text-muted strong {
    color: rgba(180, 210, 235, 0.82) !important;
}

footer .text-muted strong {
    color: rgba(210, 235, 255, 0.95) !important;
}

footer a.text-muted:hover {
    color: #7eefff !important;
}

footer h5,
footer h6 {
    color: #ffffff !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* 滾動條美化 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Loading 動畫 */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 180, 216, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功提示樣式 */
.success-message {
    background: linear-gradient(135deg, var(--success-color), #4caf50);
    color: white;
    padding: 16px 24px;
    border-radius: 15px;
    border-left: 5px solid #2e7d32;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

/* 警告提示樣式 */
.warning-message {
    background: linear-gradient(135deg, var(--warning-color), #ffa726);
    color: white;
    padding: 16px 24px;
    border-radius: 15px;
    border-left: 5px solid #f57c00;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

/* 錯誤提示樣式 */
.error-message {
    background: linear-gradient(135deg, var(--danger-color), #ef5350);
    color: white;
    padding: 16px 24px;
    border-radius: 15px;
    border-left: 5px solid #c62828;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}
