/* Add here all your css styles (customizations) */
#callphone{
		background: transparent !important;
		background-color: transparent !important;
		background-image: url(../../images/build-icon/phone_call.png) !important;
		background-repeat: no-repeat !important;
		background-position: left center !important;
		background-size: 30px 30px !important;
		position: absolute !important;
		right: 0 !important;
		top: 20px !important;
		padding: 0 40px 0 40px !important;
		font-size: 16px !important;
		font-weight: bold !important;
		height: 30px !important;
		line-height: 30px !important;
		display: flex !important;
		align-items: center !important;
		white-space: nowrap !important;
		text-align: right !important;
}
@media (min-width: 992px) {
  .flexcenter{ display: flex!important;flex-direction:column!important;justify-content: center!important;align-items: center!important; }
  .flexcenterHeight300{ height: 250px!important; }
  /*.flexcenterHeight300{ height: auto; width: 100%; }*/
}

@media (min-width: 1200px) {

}
.flexcenter{ display: flex!important;flex-direction:column!important;justify-content: center!important;align-items: center!important; }
.outbox{
    -moz-column-count: 2;
    -moz-column-gap: 10px;
    -webkit-column-count: 2;
    -webkit-column-gap: 10px;
    column-count: 3!important;
    column-gap: 10px!important;
    width:900px!important;
    margin:0 auto!important;
}
.outboxitem {
     margin-bottom: 10px;
     break-inside: avoid;
     background: #fff;
}
.outboxitem img{ width: 100%; }

.image_resized img{ width: 100%;}
.image_resized{ margin: 0 auto; }

/* GSAP Animation Initial States */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.gsap-slide-left .gsap-text-content {
    opacity: 0;
    transform: translateX(-100px);
}

.gsap-slide-left .gsap-image-content {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
}

.gsap-slide-right .gsap-text-content {
    opacity: 0;
    transform: translateX(100px);
}

.gsap-slide-right .gsap-image-content {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
}

.gsap-button {
    opacity: 0;
    transform: translateY(30px);
}

/* Smooth transitions */
.gsap-text-content,
.gsap-image-content,
.gsap-button {
    will-change: transform, opacity;
}

/* Improve image container for parallax */
.gsap-image-content {
    overflow: hidden;
    position: relative;
}

.gsap-image-content img {
    transition: transform 0.1s ease-out;
}

/* ========================================
   PREMIUM COLOR SCHEME
   ======================================== */
:root {
    /* Primary Colors - 深海藍調 */
    --primary-color: #1a365d;        /* 深海藍 */
    --primary-hover: #2d4a66;        /* 淺一點的深海藍 */
    --primary-light: #e2f8ff;        /* 淺藍背景 */
    
    /* Secondary Colors - 綠色調 */
    --secondary-color: #72c02c;       /* 綠色 */
    --secondary-hover: #5ea023;       /* 深綠色 */
    --secondary-light: #f0f9e8;       /* 淺綠背景 */
    
    /* Accent Colors - 灰調 */
    --accent-gray: #64748b;           /* 中性灰 */
    --accent-light-gray: #f8fafc;     /* 淺灰背景 */
    --accent-dark-gray: #334155;      /* 深灰文字 */
    
    /* Text Colors */
    --text-primary: #1e293b;          /* 主要文字 */
    --text-secondary: #475569;        /* 次要文字 */
    --text-light: #94a3b8;            /* 淺色文字 */
    
    /* Background Colors */
    --bg-primary: #ffffff;            /* 主要背景 */
    --bg-secondary: #f8fafc;          /* 次要背景 */
    --bg-dark: #0f172a;               /* 深色背景 */
}

/* 覆蓋原有的主色調 */
a {
    color: var(--primary-color) !important;
}

a:hover {
    color: var(--primary-hover) !important;
    text-decoration: none !important;
}

/* 按鈕樣式更新 */
.btn-u {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(26, 54, 93, 0.1) !important;
}

.btn-u:hover,
.btn-u:focus,
.btn-u:active {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(26, 54, 93, 0.2) !important;
}

.btn-u-green {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-u-green:hover,
.btn-u-green:focus,
.btn-u-green:active {
    background: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.btn-u-red {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-u-red:hover,
.btn-u-red:focus,
.btn-u-red:active {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Header 樣式優化 - 完全透明浮動 */
.header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    transition: all 0.4s ease !important;
    z-index: 1000 !important;
}

/* 首頁保持原有的header樣式 */
body:has(.tp-banner-container) .header {
    position: absolute !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* 所有其他頁面（子頁面）的header樣式 */
body:not(:has(.tp-banner-container)) .header {
    position: fixed !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    /*border-bottom: 2px solid rgba(26, 54, 93, 0.15) !important;*/
    margin-bottom: 10px !important;
}

/* 子頁面logo增加底部間距 */
body:not(:has(.tp-banner-container)) .header .logo {
    margin-bottom: 15px !important;
}

/* 手機版 header 背景修正 */
@media (max-width: 991px) {
    /* 首頁手機版 header 保持透明 - 使用更具體的選擇器 */
    body[data-page="index"] .header,
    body:has(.custom-banner-container) .header {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* 子頁面手機版 header 使用白色背景 */
    body:not([data-page="index"]):not(:has(.custom-banner-container)) .header {
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
}

/* 子頁面導航選單項目間距調整 */
body:not(:has(.tp-banner-container)) .nav.navbar-nav > li {
    margin-right: 8px !important;
}

/* 子頁面導航選單項目內邊距調整 */
body:not(:has(.tp-banner-container)) .nav.navbar-nav > li > a {
    padding: 10px 15px !important;
}

/* 子頁面導航選單整體底部間距調整 */
body:not(:has(.tp-banner-container)) .nav.navbar-nav {
    padding-bottom: 10px !important;
}


/* 如果沒有breadcrumbs的子頁面，直接給wrapper添加間距 */
body:not(:has(.tp-banner-container)) .wrapper {
    padding-top: 100px !important;
}



/* 滾動時 Header 效果 */
.header.scrolled {
    position: fixed !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(26, 54, 93, 0.08) !important;
}

/* 導航文字在透明背景上的優化 - 僅首頁 */
body[data-page="index"] .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body[data-page="index"] .navbar-nav > li > a:hover,
body[data-page="index"] .navbar-nav > li.active > a {
    color: var(--secondary-color) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* 首頁手機版選單特殊效果 */
@media (max-width: 991px) {
    /* 首頁選單 ul 白色透明背景 - 僅手機版 */
    body:has(.tp-banner-container) .navbar-nav {
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 5px !important;
        padding: 5px 10px !important;
    }
    
    /* 首頁 active 選單項目 - 不透明字體 - 僅手機版 */
    body[data-page="index"] .navbar-nav > li.active > a {
        color: #1a365d !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 3px !important;
        text-shadow: none !important;
        font-weight: 700 !important;
    }
    
    /* 手機版 navbar-toggle 與 logo 垂直對齊 */
    .header .navbar-toggle {
        margin-top: 50px !important;
        margin-right: 15px !important;
    }
}

/* 子頁面導航文字樣式 */
body:not([data-page="index"]) .navbar-nav > li > a {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
}

body:not([data-page="index"]) .navbar-nav > li > a:hover,
body:not([data-page="index"]) .navbar-nav > li.active > a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

/* 滾動時的導航文字 */
.header.scrolled .navbar-nav > li > a {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

.header.scrolled .navbar-nav > li > a:hover,
.header.scrolled .navbar-nav > li.active > a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

/* 標題文字優化 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* 段落文字優化 */
p {
    color: var(--text-secondary) !important;
    line-height: 1.7;
    font-size: 15px;
}

/* Call to Action 區塊美化 */
.call-action-v1.bg-color-light {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-light) 100%) !important;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.call-action-v1-box {
    padding: 3rem 0;
}

.call-action-v1-in p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary) !important;
}

/* 內容區塊美化 */
.one-page-inner.one-default {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.one-page-inner.one-blue {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-light) 100%) !important;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

/* 圖片容器美化 */
.gsap-image-content img {
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gsap-image-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

/* Footer 美化 - 大幅改進 */
.footer-default {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a66 100%) !important;
    color: #ffffff !important;
    position: relative;
    margin-top: 4rem;
}

.footer-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-default .footer {
    padding: 4rem 0 2rem;
    background: rgba(0,0,0,0.1);
}

/* Footer 標題樣式 */
.footer-default .headline h2 {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-default .headline h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}

/* Footer 文字內容 */
.footer-default p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7 !important;
    font-size: 14px !important;
}

/* Footer 連結樣式 */
.footer-default a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-default a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
}

/* Footer 地址樣式 */
.footer-default address {
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    font-size: 14px !important;
}

/* Footer 項目列表樣式 */
.footer-default .posts dl.dl-horizontal {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-default .posts dl.dl-horizontal:last-child {
    border-bottom: none;
}

.footer-default .posts dt img {
    width: 60px !important;
    height: 45px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.footer-default .posts dt a:hover img {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.footer-default .posts dd p {
    margin-left: 75px !important;
    margin-bottom: 0 !important;
}

.footer-default .posts dd a {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.footer-default .posts dd a:hover {
    color: var(--secondary-color) !important;
}

/* Copyright 區塊樣式 */
.footer-default .copyright {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-default .copyright p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    font-size: 13px !important;
}

.footer-default .copyright a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
}

.footer-default .copyright a:hover {
    color: var(--secondary-color) !important;
}

/* Line ID 樣式優化 */
.footer-default .fab.fa-line {
    color: #00B900 !important;
    margin-right: 8px !important;
    font-size: 16px !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer-default .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-default .posts dd p {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
    }
    
    .footer-default .posts dt {
        margin-bottom: 0.5rem !important;
    }
}

/* 微動畫效果 */
.footer-default .col-md-4,
.footer-default .col-md-5,
.footer-default .col-md-3 {
    transition: transform 0.3s ease;
}

.footer-default .col-md-4:hover,
.footer-default .col-md-5:hover,
.footer-default .col-md-3:hover {
    transform: translateY(-2px);
}

/* 陰影和邊框優化 */
.container {
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 選擇文字美化 */
::selection {
    background: var(--primary-color);
    color: #ffffff;
}

/* Logo 和電話號碼優化 */
.logo img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header .logo:hover {
    transform: translateY(25px) !important;
}

.header .logo:hover img {
    transform: scale(1.05) !important;
}

/* Logo 垂直位置調整 - 讓它更靠下 */
.header .logo {
    vertical-align: bottom !important;
    padding-bottom: 10px !important;
    transform: translateY(25px) !important;
}

.header .logo img {
    margin: 25px 0 15px 0 !important;
}

/* 首頁 Logo 白色版本 - 只在 index 頁面顯示 */
body[data-page="index"] .logo img[src*="build-logo.svg"] {
    content: url("../img/build-logo-white.svg");
}

/* 首頁電話號碼樣式 */
body[data-page="index"] #callphone {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    /* 將背景圖片變成白色 */
    filter: brightness(0) invert(1) !important;
}

/* 子頁面電話號碼樣式 */
body:not([data-page="index"]) #callphone {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    filter: none !important;
}

/* 滾動時的電話號碼 */
.header.scrolled #callphone {
    color: var(--primary-color) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    filter: none !important;
}

/* 導航欄下拉菜單美化 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(26, 54, 93, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15) !important;
    margin-top: 8px !important;
}

.dropdown-menu > li > a {
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    padding: 8px 20px !important;
}

.dropdown-menu > li > a:hover {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
}

/* 內容區塊間距優化 */
.one-page-inner {
    padding: 4rem 0 !important;
}

.one-page-inner .content {
    padding: 2rem 0;
}

/* 響應式優化 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .one-page-inner {
        padding: 2rem 0 !important;
    }
    
    .call-action-v1-box {
        padding: 2rem 0;
    }
}

/* 加載動畫優化 */
.wrapper {
    opacity: 0;
    animation: fadeInPage 0.8s ease-in-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 微互動效果 */
.btn-u,
.navbar-nav > li > a,
.logo img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 焦點狀態優化 */
.btn-u:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   MODERN CONTENT SECTIONS - ARCHITECTURE STYLE
   ======================================== */

/* 現代化內容區塊 - 類似建築風格 */
.one-page-inner {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.one-page-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    z-index: 1;
}

.one-page-inner.one-blue::before {
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.95) 0%, 
        rgba(20, 43, 75, 0.98) 100%);
}

/* 幾何裝飾元素 */
.one-page-inner::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 120%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(114, 192, 44, 0.05) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(26, 54, 93, 0.03) 50%, transparent 55%);
    z-index: 2;
    pointer-events: none;
}

.one-page-inner.one-blue::after {
    background: 
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(114, 192, 44, 0.08) 50%, transparent 55%);
}

/* 內容容器 */
.one-page-inner .container {
    position: relative;
    z-index: 10;
}

/* 大標題設計 - 類似圖片中的 ARCHITECTURE */
.one-page-inner h1,
.one-page-inner h2 {
    font-family: 'Noto Serif TC', serif !important;
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    position: relative;
    text-transform: uppercase;
}

.one-page-inner.one-blue h1,
.one-page-inner.one-blue h2 {
    color: #ffffff !important;
}

/* 標題裝飾線 - 類似圖片中的下劃線 */
.one-page-inner h1::after,
.one-page-inner h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.one-page-inner.one-blue h1::after,
.one-page-inner.one-blue h2::after {
    background: linear-gradient(90deg, var(--secondary-color), rgba(255, 255, 255, 0.3));
}

/* 副標題/引言設計 */
.one-page-inner p {
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2.5rem !important;
    max-width: 500px;
}

.one-page-inner.one-blue p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* 按鈕重新設計 */
.one-page-inner .btn-u {
    padding: 1.2rem 3rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    border: 2px solid var(--secondary-color) !important;
    background: transparent !important;
    color: var(--secondary-color) !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.one-page-inner .btn-u::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.one-page-inner .btn-u:hover::before {
    left: 0;
}

.one-page-inner .btn-u:hover {
    color: #ffffff !important;
    border-color: var(--secondary-color) !important;
}

/* 圖片區域優化 */
.one-page-inner .gsap-image-content {
    position: relative;
    overflow: hidden;
}

.one-page-inner .gsap-image-content img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    filter: contrast(1.1) saturate(1.1) !important;
    transition: all 0.6s ease !important;
}

.one-page-inner .gsap-image-content:hover img {
    transform: scale(1.05) !important;
    filter: contrast(1.2) saturate(1.2) !important;
}

/* 文字區域的幾何裝飾 */
.one-page-inner .gsap-text-content {
    position: relative;
    padding: 2rem 0;
}

.one-page-inner .gsap-text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 6px;
    height: 60px;
    background: linear-gradient(180deg, var(--secondary-color), transparent);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .one-page-inner h1,
    .one-page-inner h2 {
        font-size: 3rem !important;
    }
    
    .one-page-inner p {
        font-size: 1.1rem !important;
    }
    
    .one-page-inner .gsap-image-content img {
        height: 300px !important;
    }
    
    .one-page-inner {
        padding: 4rem 0 !important;
        min-height: auto;
    }
    
    .call-action-v1-in p {
        font-size: 1.35rem !important;
    }
    
    .call-action-v1-in .btn-u {
        font-size: 1.1rem !important;
    }
    
    .one-page-inner .btn-u {
        font-size: 1.1rem !important;
        padding: 1rem 2.5rem !important;
    }
}

/* Call-to-Action 區塊重新設計 */
.call-action-v1 {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%) !important;
    padding: 6rem 0 !important;
    position: relative;
    overflow: hidden;
}

.call-action-v1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(26,54,93,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.call-action-v1::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 140%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(114, 192, 44, 0.05) 50%, transparent 55%);
    z-index: 2;
    pointer-events: none;
}

.call-action-v1-box {
    position: relative;
    z-index: 10;
}

.call-action-v1-in p {
    font-size: 1.6rem !important;
    line-height: 1.8 !important;
    color: var(--text-primary) !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto !important;
    text-shadow: none !important;
}

.call-action-v1-in .btn-u {
    padding: 1.2rem 3rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border: 2px solid var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.call-action-v1-in .btn-u::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-hover);
    transition: left 0.4s ease;
    z-index: -1;
}

.call-action-v1-in .btn-u:hover::before {
    left: 0;
}

.call-action-v1-in .btn-u:hover {
    color: #ffffff !important;
    border-color: var(--primary-hover) !important;
}

/* ========================================
   PREMIUM BANNER ENHANCEMENTS
   ======================================== */

/* Banner 容器優化 */
.tp-banner-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    height: 100vh !important;
    min-height: 100vh !important;
}

.tp-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(26, 54, 93, 0.4) 30%,
        rgba(26, 54, 93, 0.6) 70%,
        rgba(26, 54, 93, 0.8) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.tp-banner-container .accent-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(114, 192, 44, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(114, 192, 44, 0.08) 0%, transparent 50%);
    z-index: 3;
    pointer-events: none;
}

/* Banner 圖片優化 */
.tp-banner img {
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    transition: all 8s ease-in-out;
    transform: scale(1.1);
    height: 100vh !important;
    min-height: 100vh !important;
    object-fit: cover !important;
}

.tp-banner li:hover img {
    transform: scale(1.15);
    filter: brightness(0.7) contrast(1.2) saturate(1.3);
}

/* 文字內容重新設計 - 移除色塊背景 */
.tp-caption.revolution-ch1 {
    z-index: 10;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif !important;
    font-size: 7.5rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2) !important;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* 文字字母動畫樣式 */
.tp-caption.revolution-ch1 span {
    display: inline-block;
    transition: all 0.3s ease;
}

.tp-caption.revolution-ch1 span:hover {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(114, 192, 44, 0.3);
}

/* 移除主標題的背景色塊 */

.tp-caption.revolution-ch2 {
    z-index: 10;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif !important;
    font-size: 4.2rem !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4) !important;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.95;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* 副標題字詞動畫樣式 */
.tp-caption.revolution-ch2 span {
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.tp-caption.revolution-ch2 span:hover {
    transform: rotateY(15deg) translateZ(10px);
    color: rgba(114, 192, 44, 0.9);
}

/* Banner 按鈕重新設計 */
.tp-banner .btn-u {
    z-index: 10;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%) !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 50px !important;
    box-shadow: 
        0 8px 25px rgba(114, 192, 44, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Banner 文字動畫性能優化 */
.tp-caption.revolution-ch1,
.tp-caption.revolution-ch2,
.tp-banner .btn-u {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 禁用 Revolution Slider 原有動畫 */
.tp-caption {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* 強制覆蓋 Revolution Slider 的動畫樣式 */
.tp-caption.revolution-ch1,
.tp-caption.revolution-ch2,
.tp-banner .btn-u {
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    transform: none !important;
}

/* 初始隱藏文字，避免閃現 */
.tp-caption.revolution-ch1,
.tp-caption.revolution-ch2,
.tp-banner .btn-u {
    opacity: 0 !important;
}

/* 但是當 GSAP 準備好時可以覆蓋 */
.gsap-ready .tp-caption.revolution-ch1,
.gsap-ready .tp-caption.revolution-ch2,
.gsap-ready .tp-banner .btn-u {
    opacity: 1 !important;
}

/* 確保文字動畫容器有正確的樣式 */
.tp-caption.revolution-ch1 span,
.tp-caption.revolution-ch2 span {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 0; /* span 初始也隱藏 */
}

.tp-banner .btn-u::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tp-banner .btn-u:hover::before {
    left: 100%;
}

.tp-banner .btn-u:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 15px 40px rgba(114, 192, 44, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%) !important;
}

/* Banner 底部裝飾 */
.tp-banner-container .tp-bannertimer {
    background: linear-gradient(90deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 50%, 
        var(--secondary-color) 100%) !important;
    height: 4px !important;
    opacity: 0.8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 添加視差效果 */
.tp-banner-container {
    background-attachment: fixed;
}

/* 底部波浪裝飾已移除 */

/* 響應式優化 */
@media (max-width: 1024px) {
    .tp-caption.revolution-ch1 {
        font-size: 6.5rem !important;
    }
    
    .tp-caption.revolution-ch2 {
        font-size: 4rem !important;
    }
    
    .tp-banner-container {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .tp-banner img {
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

@media (max-width: 768px) {
    .tp-caption.revolution-ch1 {
        font-size: 5.0rem !important;
        line-height: 1.2 !important;
    }
    
    .tp-caption.revolution-ch2 {
        font-size: 3.2rem !important;
        letter-spacing: 0.3px !important;
    }
    
    .tp-banner .btn-u {
        padding: 0.8rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .tp-banner-container {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .tp-banner img {
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

@media (max-width: 480px) {
    .tp-caption.revolution-ch1 {
        font-size: 4.2rem !important;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.7),
            0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    .tp-caption.revolution-ch2 {
        font-size: 2.8rem !important;
    }
    
    .tp-banner-container {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .tp-banner img {
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

/* 載入動畫 */
.tp-banner-container {
    opacity: 0;
    animation: bannerFadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 微粒子效果背景 */
.tp-banner-container {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
}

/* 滾動提示動畫 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 2s ease-out 3s forwards, pulseGlow 2s ease-in-out infinite 5s;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator .scroll-text {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.scroll-indicator .scroll-arrow {
    position: relative;
    width: 16px;
    height: 28px;
    margin: 0 auto;
    animation: bounceDown 2s ease-in-out infinite;
}

/* 第一個箭頭 (最上面，最透明) */
.scroll-indicator .scroll-arrow::before {
    /* content: '';
    position: absolute;
    top: 0;
    left: 2px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg); */
}

/* 第二個箭頭 (中間) */
.scroll-indicator .scroll-arrow::after {
    /* content: '';
    position: absolute;
    top: 8px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg); */
}

/* 第三個箭頭 (最下面，最不透明) */
.scroll-indicator .arrow-third {
    position: absolute;
    top: 16px;
    left: 0;
    width: 16px;
    height: 16px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* 滾動指示器動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.9;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    }
    50% {
        opacity: 1;
        text-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

/* 響應式優化 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        font-size: 12px;
    }
    
    .scroll-indicator .scroll-arrow {
        width: 14px;
        height: 24px;
    }
    
    .scroll-indicator .scroll-arrow::before {
        width: 10px;
        height: 10px;
        top: 0;
        left: 2px;
    }
    
    .scroll-indicator .scroll-arrow::after {
        width: 12px;
        height: 12px;
        top: 6px;
        left: 1px;
    }
    
    .scroll-indicator .arrow-third {
        width: 14px;
        height: 14px;
        top: 12px;
        left: 0;
    }
}



  #messenger-float {
    position: fixed;         /* 固定在畫面上 */
    bottom: 45px;            /* 距離底部 20px */
    right: 10px;              /* 距離左側 20px */
    z-index: 99999;           /* 置頂顯示，確保不會被蓋住 */
    transition: transform 0.2s ease;
    will-change: transform;
  }

  #messenger-float:hover {
    transform: scale(1.1);   /* 滑過放大 */
  }

  #messenger-float img {
    width: 50px;
    height: 50px;
    display: block;
    pointer-events: auto;
  }

  @media (max-width: 768px) {
    #messenger-float img {
      width: 40px;
      height: 40px;
    }
  }

/* 估價頁面 - 使用 Flexbox 和 Sticky */
.container.content .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.container.content .row .col-md-3,
.container.content .row .col-md-9 {
  display: flex !important;
  flex-direction: column !important;
}

.sticky-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 35px !important;
  align-self: flex-start !important;
  z-index: 100 !important;
  width: 100% !important;
}
