/*
@File: Droneshot x Lovart Design System 2025 (Final Perfected)
@Description: Parallax, Glassmorphism, Sticky Footer, Menu Fixes
*/
/* 字體改由各頁 <link> 載入（移除 @import 消除序列阻塞，2026-07） */

:root {
    /* ⚠ 過渡期鏡像：正本在 assets/css/tokens.css，勿在此新增/修改 token --- */
    /* --- 色彩系統（2026-07 改版：橘 → 四色 palette；正本見 tokens.css） --- */
    --bg-dark: #1a2332;       /* 通用深色背景 */
    --surface: #373A46;       /* Tuna */
    --text-white: #FFFFFF;    /* 主文字：白 */
    --text-white-80: rgba(255,255,255, 0.8);
    --primary: #FEEEA5;       /* Vis Vis：主 accent（英文/裝飾） */
    --primary-gradient: linear-gradient(135deg, #FEEEA5 0%, #F6A170 100%); /* Vis Vis→Sandy 暖 CTA */
    --accent: #F6A170;        /* Sandy */
    --accent-2: #FEEEA5;      /* Vis Vis */
    --on-accent: #1a2332;     /* 亮底深字 */
    
    /* --- 玻璃質感變數 --- */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --blur: blur(12px);
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================
   1. 全域設定 (Layout Fix)
   ========================================= */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-dark);
    /* 全站預設背景：城市夜景 (WebP) */
    background-image: url('../img/bg-city.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 視差關鍵 */
    color: var(--text-white);

    margin: 0;
    padding: 0;
    
    /* Flex Column 佈局：確保 Footer 永遠在最下方 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 作品子頁面（CF/ 與 Aerial/）使用山脈背景 */
body.bg-hero {
    background-image: url('../img/bg-hero.webp');
}
body.bg-tools {
    background-image: url('../img/bg-tools.webp');
}

h1, h2, h3, h4, h5, h6 { color: var(--text-white); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
p { color: var(--text-white-80); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--text-white); transition: 0.3s; }
a:hover { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

/* 讓主內容區塊自動撐開高度 */
.dms-section, .contact-area, .work-area, .service-area, .hero-section, .error-area {
    flex: 1 0 auto; 
}

/* 輔助類別 */
.d-table { width: 100%; height: 100%; display: table; }
.d-table-cell { vertical-align: middle; display: table-cell; }
.pt-100 { padding-top: 100px; }
.pb-70 { padding-bottom: 70px; }
.section-title { text-align: center; margin-bottom: 60px; position: relative; z-index: 2; }
.section-title h2 { font-size: 36px; letter-spacing: 2px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); text-transform: uppercase; }
.section-title .sub-title { display: block; color: var(--primary); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }

/* =========================================
   2. 導覽列 (Frosted Glass Navbar) - 50px 高度鎖定版
   ========================================= */

/* 1. 導覽列外框 (玻璃效果主體) */
.navbar-area {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    
    /* 玻璃質感設定 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: none;
    box-shadow: none;
    
    transition: all 0.4s ease;
    
    /* [修正] 依照您實測的數值，設定為 50px */
    padding-top: 50px;
    padding-bottom: 50px;
}

/* 滾動後 (Sticky) - 維持相同高度，不縮小 */
.navbar-area.is-sticky {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    
    /* [修正] 滾動後維持 50px，確保高度一致 */
    padding-top: 50px;
    padding-bottom: 50px;
}

/* 強制將所有內部容器背景設為透明 (解決黑條問題的核心) */
.main-nav, .mobile-nav, .navbar, .navbar-light {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 手機版導覽列 */
@media (max-width: 991px) {
    .navbar-area,
    .navbar-area.is-sticky {
        border-bottom: none !important;
        box-shadow: none !important;
    }
    .main-nav {
        display: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Logo 尺寸 */
.navbar-brand img, .mobile-nav .logo img { 
    height: 40px; 
    width: auto; 
}

/* 電腦版選單連結文字 */
.nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 11px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { 
    color: #fff !important; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); 
}

/* 移除 Bootstrap 下拉箭頭 */
.dropdown-toggle::after { display: none !important; content: none !important; }

/* 電腦版下拉選單 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    margin-top: 20px; 
}
.dropdown-item { 
    color: #fff; 
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dropdown-item:hover { 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
}

/* =========================================
   MeanMenu (手機版選單) - 樣式統一在 meanmenu.css 管理
   ========================================= */

/* =========================================
   3. 首頁 Hero (山脈背景視差)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    
    background-image: url('../img/bg-hero.webp');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-content { position: relative; z-index: 10; padding: 0 20px; max-width: 900px; margin: 0 auto; }
.hero-content h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    letter-spacing: 5px;
}
.hero-content p { font-size: 20px; letter-spacing: 2px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); color: #fff; }

/* 按鈕 */
.default-btn-one {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-gradient);
    color: var(--on-accent);
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(246, 161, 112, 0.4);
    border: none;
    transition: 0.3s;
}
.default-btn-one:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(246, 161, 112, 0.6);
    color: var(--on-accent);
}

/* =========================================
   4. 服務項目 (森林背景視差)
   ========================================= */
.service-area {
    position: relative;
    z-index: 5;
    background-image: url('../img/bg-forest.webp');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    box-shadow: inset 0 0 0 1000px rgba(0, 30, 10, 0.2); 
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.service-item:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.service-item i {
    font-size: 60px; color: #fff; margin-bottom: 20px; display: inline-block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.service-item h3 { font-size: 24px; margin-bottom: 15px; color: #fff; font-weight: 700; }
.service-item p { color: #fff; margin-bottom: 0; font-weight: 500; }

/* =========================================
   5. 作品集 & 聯絡 (城市背景視差)
   ========================================= */
.work-area, .contact-area, .page-title-area {
    box-shadow: inset 0 0 0 9999px rgba(55, 58, 70, 0.7);
}

.bg-city-parallax {
    background-image: url('../img/bg-city.webp');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    box-shadow: inset 0 0 0 1000px rgba(55, 58, 70, 0.85); 
}

.work-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}
.work-item img {
    width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.work-item:hover img { transform: scale(1.1); }

.work-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    z-index: 2;
    text-align: left;
}
.work-content h3 { font-size: 20px; margin-bottom: 5px; color: #fff; }
.work-content span { color: var(--primary); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   6. 內頁標題區
   ========================================= */
.page-title-area {
    padding: 200px 0 80px;
    text-align: center;
    position: relative;
}
.page-title-item h1 { font-size: 45px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); margin-bottom: 15px; }
.page-title-item ul li { display: inline-block; color: rgba(255,255,255,0.8); font-size: 16px; }
.page-title-item ul li a { color: #fff; }
.page-title-item ul li span { margin: 0 10px; color: var(--primary); }

.dms-section { padding-top: 50px; padding-bottom: 80px; }

/* =========================================
   7. 聯絡與工具表單
   ========================================= */
.contact-item, .dms-container {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--blur);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 30px;
}

/* DMS two-panel layout */
.dms-panel-left {
    padding-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.dms-panel-right { padding-left: 40px; }
@media (max-width: 991px) {
    .dms-panel-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dms-panel-right { padding-left: 0; }
}

/* Upload dropzone */
.plan-dropzone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}
.plan-dropzone:hover, .plan-dropzone.drag-over {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
}
.plan-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 20px;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    text-align: center;
    margin: 0;
}
.plan-dropzone-label i { font-size: 2.4rem; color: rgba(255,255,255,0.35); }
.plan-dropzone-label small { font-size: 0.75em; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }

/* Plan parse status */
.plan-parse-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875em;
}
.plan-parse-status.parsing { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); }
.plan-parse-status.success { background: rgba(39,174,96,0.12); color: #2ecc71; }
.plan-parse-status.error   { background: rgba(231,76,60,0.12); color: #e74c3c; }

/* Zone selector label */
.zone-select-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.875em;
    margin-bottom: 6px;
    display: block;
}

/* Copy button styling */
#results-table-body .btn-outline-secondary {
    border-color: rgba(255,255,255,0.5) !important;
    color: #fff !important;
    transition: all 0.2s;
}
#results-table-body .btn-outline-secondary:hover {
    border-color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}
.contact-item h2 { margin-bottom: 30px; }

.form-control, #batch-input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    height: 50px;
    border-radius: 12px;
    padding: 10px 20px;
}
.form-control:focus, #batch-input:focus {
    box-shadow: 0 0 0 2px var(--primary);
    background: rgba(0, 0, 0, 0.6) !important;
}
textarea.form-control { height: auto; }

.contact-inner { position: relative; padding-left: 60px; margin-bottom: 30px; }
.contact-inner i { position: absolute; left: 0; top: 0; font-size: 40px; color: var(--primary); }
.contact-inner h4 { font-size: 18px; margin-bottom: 5px; opacity: 0.8; }
.contact-inner span, .contact-inner a { font-size: 18px; color: #fff; font-weight: 500; }

/* =========================================
   8. Footer (Glass Style)
   ========================================= */
footer {
    background: rgba(15, 20, 30, 0.6); 
    backdrop-filter: blur(10px);        
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer-logo img { margin-bottom: 20px; }
.footer-item h3 { 
    font-size: 20px; margin-bottom: 25px; position: relative; padding-bottom: 10px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.footer-item h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary); }
.footer-link ul li { margin-bottom: 12px; }

.copyright-area { 
    background: rgba(0, 0, 0, 0.3); 
    padding: 25px 0; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    margin-top: 50px; 
}

/* =========================================
   9. 其他元件
   ========================================= */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 99999; }
.spinner { width: 40px; height: 40px; margin: 100px auto; position: relative; }
.double-bounce1, .double-bounce2 { width: 100%; height: 100%; border-radius: 50%; background: var(--primary); opacity: 0.6; position: absolute; animation: sk-bounce 2.0s infinite ease-in-out; }
.double-bounce2 { animation-delay: -1.0s; }
@keyframes sk-bounce { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } }

.error-area { padding: 150px 0; text-align: center; height: 100vh; display: flex; align-items: center; justify-content: center; background: transparent; }
.error-text h1 { font-size: 120px; color: var(--primary); line-height: 1; text-shadow: 0 5px 20px rgba(254,238,165, 0.3); }
.error-text p { font-size: 24px; color: var(--text-white); margin: 20px 0; }
.error-text a { display: inline-block; padding: 12px 30px; border: 1px solid var(--text-white); border-radius: 30px; margin-top: 20px; }
.error-text a:hover { background: var(--text-white); color: #000; }

#results table { width: 100%; border-collapse: collapse; margin-top: 20px; color: #fff; }
#results th { background: rgba(255,255,255,0.1); padding: 10px; color: var(--primary); }
#results td { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px; }

/* =========================================
   10. 作品內頁優化 (Video & Info Box)
   ========================================= */

/* 1. 資訊欄位 (右側) - 磨砂玻璃圓角矩形 */
.video-introduce {
    background: rgba(255, 255, 255, 0.1); /* 亮色半透明 */
    backdrop-filter: blur(15px);           /* 磨砂效果 */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* 玻璃邊框 */
    border-radius: 24px;                   /* 大圓角，看起來更高級 */
    padding: 40px;                         /* 增加內距，讓資訊不擁擠 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* 柔和的立體陰影 */
    margin-bottom: 30px;
}

/* 調整內部的文字列表樣式 */
.video-introduce ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 分隔線變淡 */
    padding-bottom: 15px;
    display: block; /* 確保垂直排列 */
}
.video-introduce ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.video-introduce h4 {
    color: var(--primary); /* 標題用主色 (橘色) */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}
.video-introduce span {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    display: block;
}

/* 2. 影片嵌入容器 (左側) - 16:9 完美比例與質感 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 24px; /* 與右側資訊框呼應的大圓角 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 微弱邊框增加精緻度 */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); /* 深邃的陰影，讓影片浮起來 */
    background: #000; /* 影片載入前的背景 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 影片下方的標題與描述微調 */
.video-content {
    margin-top: 30px;
    padding-left: 10px;
}
.video-content h1 {
    font-size: 32px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-top: 10px;
}
.video-link {
    background: var(--primary-gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--on-accent) !important;
    font-weight: 700;
}

/* =========================================
   11. 聊聊 (Blog) 頁面樣式
   ========================================= */
.blog-area {
    /* 背景維持全站統一 */
}

/* 文章卡片 - 磨砂玻璃風格 */
.blog-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;       /* 讓內容垂直撐開 */
    flex-direction: column;
    height: 100%;        /* 確保同列高度一致 */
}

.blog-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255, 0.4);
}

/* 文章圖片容器 */
.blog-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* 16:9 比例 (可以改成 75% 變 4:3) */
}
.blog-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.blog-item:hover .blog-image img {
    transform: scale(1.1);
}

/* 日期標籤 (浮在圖片上) */
.blog-date {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--primary-gradient);
    color: var(--on-accent);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(246, 161, 112, 0.4);
}

/* 內容區域 */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 填滿剩餘空間 */
}

/* 分類標籤 */
.blog-content .category {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

/* 標題 */
.blog-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.blog-content h3 a {
    color: #fff;
}
.blog-content h3 a:hover {
    color: var(--primary);
}

/* 摘要文字 */
.blog-content p {
    color: rgba(255,255,255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制顯示 3 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 閱讀更多按鈕 */
.read-more-btn {
    margin-top: auto; /* 推到底部 */
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}
.read-more-btn i {
    font-size: 20px;
    margin-left: 5px;
    transition: 0.3s;
}
.read-more-btn:hover {
    color: var(--primary);
}
.read-more-btn:hover i {
    transform: translateX(5px);
}

/* =========================================
   12. Blog 內頁 (Article Details)
   ========================================= */

/* 1. 文章主容器 - 磨砂玻璃 */
.blog-details-desc {
    background: rgba(0, 0, 0, 0.7); /* 背景比其他地方深一點，提升文字對比度 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

/* 2. 文章內的圖片 */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. 文章內容排版 (Typography) */
.article-content h3 {
    font-size: 28px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-left: 15px;
}
/* 標題左側加一條橘色豎線，增加專業感 */
.article-content h3::before {
    content: '';
    position: absolute;
    left: 0; top: 5px;
    width: 4px; height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.article-content p {
    color: rgba(255,255,255, 0.9); /* 文字顏色 */
    font-size: 17px;                  /* 字體稍大，易於閱讀 */
    line-height: 1.8;                 /* 行距拉開 */
    margin-bottom: 20px;
}

.article-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}
.article-content ul li {
    color: rgba(255,255,255, 0.9);
    margin-bottom: 10px;
    list-style-type: disc; /* 實心圓點 */
}

/* 4. 重點引用 (Blockquote) - 適合用來放金句或法規重點 */
.article-quote {
    background: rgba(254,238,165, 0.1); /* 淡淡的主色背景 */
    border-left: 4px solid var(--primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}
.article-quote p {
    font-size: 20px;
    font-style: italic;
    color: #fff;
    margin-bottom: 0;
    font-weight: 500;
}
.article-quote i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* =========================================
   13. Footer 聯繫資訊排版優化
   ========================================= */

/* 1. 每一個資訊區塊 (電話一組、Email一組) 的間距 */
.footer-touch ul li {
    margin-bottom: 35px; /* [關鍵] 拉大組與組之間的距離，讓 Email 往下推 */
    padding: 0;
    list-style: none;
}
/* 最後一個項目不需要底部距離 */
.footer-touch ul li:last-child {
    margin-bottom: 0;
}

/* 2. 標題 (Phone: / Email:) */
.footer-touch h4 {
    color: #fff;
    font-size: 24px;      /* 稍微加大標題，增加層次感 */
    font-weight: 700;
    margin-bottom: 5px;   /* [關鍵] 縮小標題與號碼的距離，讓它們「貼近」 */
    line-height: 1.2;
}

/* 3. 內容 (電話號碼 / Email 地址) */
.footer-touch a {
    display: block;       /* 確保獨佔一行 */
    color: rgba(255,255,255, 0.7); /* 稍微灰一點，突顯上方白色標題 */
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.footer-touch a:hover {
    color: var(--primary); /* 滑鼠移過去變橘色 */
}

/* =========================================
   11. 服務頁共用區塊（原 aerial/cf/engineering 頁內重複 <style>，2026-07 整併）
   ========================================= */
.unified-block {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: rgba(45, 50, 60, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.unified-media {
    padding: 0;
    background-color: #000;
    border: none;
}
.unified-media iframe,
.unified-media img,
.unified-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.unified-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8% 10%;
}
@media (max-width: 991px) {
    .unified-block { aspect-ratio: auto; min-height: 350px; margin-bottom: 20px; }
    .unified-media { aspect-ratio: 16/9; }
    .mobile-mb-0 { margin-bottom: 0 !important; }
}

/* 長 section 全覆蓋遮罩（取代 inset box-shadow） */
.work-area.long-section {
    box-shadow: none !important;
    position: relative;
}
.work-area.long-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(55, 58, 70, 0.82); /* Tuna 遮罩（原深藍 #1a2332） */
    z-index: 0;
    pointer-events: none;
}
.work-area.long-section > .container {
    position: relative;
    z-index: 1;
}

.bottom-block { padding: 50px 0; }
.capability-tag {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    color: #fff;
    margin: 5px;
}

/* 橫向流程卡片 */
.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.process-card {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.process-card .step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(254,238,165,0.15);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 14px;
}
.process-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.process-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 26px;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .process-flow { flex-direction: column; align-items: stretch; }
    .process-arrow { transform: rotate(90deg); padding: 6px 0; }
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.8; }

.cta-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}
.cta-box h3 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.svc-btn {
    display: inline-block;
    padding: 10px 26px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}
.svc-btn:hover { background: var(--primary); color: var(--on-accent) !important; }

@media (max-width: 768px) {
    .bottom-block { padding: 36px 0; }
    .cta-box { padding: 36px 24px; }
}

/* =========================================
   12. 文章 callout（原 Blog 頁內 inline style，2026-07 整併）
   ========================================= */
.article-callout {
    background-color: #363636;
    padding: 15px;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    margin: 20px 0;
}

/* 作品詳情頁 banner 標籤（原 <h2>Work Details</h2> 降級，避免 h2 先於 h1） */
.page-title-item .page-label {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
@media (max-width: 767px) {
    .page-title-item .page-label { font-size: 25px; margin-bottom: 5px; }
}