
body {
    font-family: 'Microsoft JhengHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fffbf5;
    padding-top: 60px;
}
body.no-scroll{
    overflow-y: hidden;
}
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
}

img {
    max-width: 100%;
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #f59e0b;
    z-index: 9998;
    transition: width 0.1s ease-out;
}

/* 
========================================
    Pointer css
======================================== 
*/
#pointer-dot {
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border: 3px solid rgb(247, 144, 0);
    position: fixed;
    border-radius: 10px;
    z-index: 1035;
    pointer-events: none;
    transition: border-color 0.5s;
    border-color: #f59e0b !important;

}

#pointer-ring {
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    padding: 15px;
    border: 2px solid #750c7e;
    position: fixed;
    border-radius: 100px;
    z-index: 1034;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.7) !important;
}
@media (max-width: 991px) {
    #pointer-dot, #pointer-ring {
        visibility: hidden;
    }
}
html {
    cursor: none !important;
}

a {
    cursor: none !important;
}

/* header 畫面樣板 style.css */
/* Navbar */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    width: 100%;
    position: relative;
}

.navbar-container.shrink {
    height: 50px;
}

.navbar .navbar-container {
    height: 60px;
}

.navbar.shrink .navbar-container {
    height: 50px;
}

.navbar-container.shrink .navbar-brand {
    font-size: 16px;
}

.navbar-container.shrink .navbar-nav .nav-link {
    padding: 6px 16px !important;
    font-size: 16px
}

.navbar .logo-image img {
    max-height: 55px;
    transition: all 0.3s ease;
}

.navbar.shrink .logo-image img {
    max-height: 45px;
}

.navbar-container.shrink .navbar-brand .logo-image img {
    max-height: 50px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f59e0b;
    text-decoration: none;
}
.dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-size: 11px;
    margin-left: 2px;
}
.nav-item-dropdown:hover .dropdown-arrow {
       transform: rotate(180deg);
   }
/* 手機版選單按鈕 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #f59e0b;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



.navbar-nav {
    display: flex;
    list-style: none;
    flex-direction: row;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 5px;
    --slide-left: 0px;
    --slide-width: 0px;
}

.navbar-nav .nav-item {
    margin: 0;
    position: relative;
    z-index: 2;
}

.navbar-nav .nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    padding: 7px 15px;
    /* transition: all 改為只過場 color —— padding / font-size 瞬間到位，
          pill 才能立刻重算位置而不需要等 300ms */
    transition: color 0.3s ease;
    position: relative;
    display: block;
    font-size: 16px;
    border-radius: 25px;
    background: transparent;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #333;
}

/* hover 時膠囊跟隨（由 JS 控制位置） */
.navbar-nav.is-hovering .nav-link:hover,
.navbar-nav.is-hovering .nav-item.pill-hover>.nav-link {
    color: #fff;
}

/* is-hovering 時，active 連結回到正常色（pill 已移到別的項目） */
.navbar-nav.is-hovering .nav-link.active {
    color: #666;
    font-weight: 500;
}

/* 但如果 active 連結本身就是被 hover 的那個，保持白色 */
.navbar-nav.is-hovering .nav-item.pill-hover>.nav-link.active {
    color: #fff;
    font-weight: 600;
}


.navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* iPhone 風格滑動膠囊效果 */
.navbar-nav::before {
    content: '';
    position: absolute;
    top: 5px;
    left: var(--slide-left, 5px);
    width: var(--slide-width, 0);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    opacity: 0;
    z-index: 1;
}

.navbar-nav.has-active::before {
    opacity: 1;
}

/* 手機版選單遮罩層 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

@media (max-width: 991px) {

    .navbar-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-radius: 0;
        z-index: 1000;
    }
    .navbar.shrink .navbar-nav{
        top: 62px;
        height: calc(100vh - 62px);
    }
    .navbar-nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 20px 20px 100px 20px;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        width: 90%;
        text-align: center;
        padding: 13px 17px;
        margin: 0 auto 1rem;
        background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
        color: white !important;
        font-weight: 600;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

    .navbar-nav .nav-link.active {
        background: white;
        color: #f59e0b !important;
        border: 2px solid #f59e0b;
        font-weight: 700;
    }

    /* 手機版不需要滑動膠囊效果 */
    .navbar-nav::before {
        display: none;
    }

    /* 禁用過渡效果在視窗大小改變時 */
    .navbar-nav.no-transition {
        transition: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    .mobile-nav-info {
        display: none;
    }
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) translateY(8px);
    border-top: 3px solid #f59e0b;
    z-index: 1100;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 0 solid transparent;
    border-bottom: 6px solid #f59e0b;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.nav-dropdown li a {
    display: block;
    padding: 9px 20px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    background: #fff8ed;
    color: #f59e0b;
    padding-left: 26px;
}

/* 聯絡我們特殊樣式 */
.nav-link-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: #fff !important;
    border-radius: 25px !important;
}

/* 手機版下拉修正 */
@media (max-width: 991px) {
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #f59e0b;
        border-radius: 0 0 8px 8px;
        padding: 0;
        background: #fff8ed;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 90%;
        margin: 0 auto;
    }

    .nav-item-dropdown.open .nav-dropdown {
        max-height: 400px;
        padding: 4px 0;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown li a {
        padding: 8px 16px;
        font-size: 14px;
        color: #555;
    }

    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .nav-item-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
    .nav-item-dropdown:hover .nav-dropdown {
        transform: unset;
    }
}

.section-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    letter-spacing: 3px;
}
.section-sub {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin-top: -10px;
    margin-bottom: 10px;
}
.text-muted-custom {
       color: #6b7280 !important;
       padding: 1rem 2rem 3rem;
       font-size: 18px;
       line-height: 185%;
   }
/* footer */
/* CTA Section */
.cta {
    padding: 100px 0;
    color: #fff;
    text-align: center;
    background-color: rgb(223 137 34 / 90%);
    background-blend-mode: hue;
    box-shadow: inset 0px 0px 10px rgb(165 89 0 / 80%);
    position: relative;
    overflow: hidden;
}

/* CTA 細線交織長波 */
.cta .wave_set {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.cta .wave_set svg {
    width: 100%;
    height: 100%;
}

/* 細線、半透明、無填充 */
.cta .wave_set .wline {
    fill: none;
    stroke-width: 0.5;
    vector-effect: non-scaling-stroke;
    /* 線寬不隨拉伸變粗，維持細髮絲感 */
}

/* 每條波不同速度、不同透明度平移，做出交織感
   平移 600 = 一個波週期，無縫循環 */
.cta .wave_set .wline-a {
    stroke: rgba(255, 255, 255, 0.4);
    animation: ctaWaveMove 7s linear infinite;
}

.cta .wave_set .wline-b {
    stroke: rgba(255, 255, 255, 0.3);
    animation: ctaWaveMove 9s linear infinite reverse;
}

.cta .wave_set .wline-c {
    stroke: rgba(255, 255, 255, 0.25);
    animation: ctaWaveMove 11s linear infinite;
}

@keyframes ctaWaveMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-1200px);
    }
}

/* 確保內容在波浪上方 */
.cta .container {
    position: relative;
    z-index: 2;
}

.cta::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(/assets/img/cta-bg.jpg);
    background-size: cover;
    background-position: bottom center;
}

.cta h2 {
    font-size: 30px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    line-height: 1.85;
}

.btn-cta {
    font-size: 16px !important;
    background: #fff;
    color: #cd7e21;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    max-width: 210px;
    width: 100%;
    position: relative;
    border: 1px #cd7e21 solid;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    50%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.05);
    }
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    background-color: #2ea5db;
}

/* ========================================
   右側社群浮動（玻璃膠囊，hover 單顆展開）
   ======================================== */
.social-glass {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-55%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 999;
}

.sg-btn {
    height: 46px;
    width: 48px;
    border-radius: 16px 0 0 16px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -3px 4px 16px rgba(200, 140, 20, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-right: none;
    transition: width 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-btn:hover {
    width: 150px;
}

.sg-btn i {
    flex-shrink: 0;
    font-size: 20px;
    width: 22px;
    text-align: center;
}

.sg-label {
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s 0.05s;
}

.sg-btn:hover .sg-label {
    opacity: 1;
}

.sg-fb i,
.sg-fb .sg-label {
    color: #1877F2;
}

.sg-line i,
.sg-line .sg-label {
    color: #06C755;
}

.sg-ig i,
.sg-ig .sg-label {
    color: #E1306C;
}

.sg-mail i,
.sg-mail .sg-label {
    color: #EA4335;
}

/* ========================================
   詢價浮動按鈕（金色膠囊 + 呼吸光圈 + 晃動 + 氣泡）
   ======================================== */
.quote-float {
    position: fixed;
    right: 24px;
    bottom: 20px;
    height: 52px;
    padding: 0 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f59e0b, #e08c00);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    z-index: 999;
    animation: quoteShake 5s ease-in-out infinite;
}

.quote-float i {
    font-size: 19px;
}

.quote-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 2px solid #f59e0b;
    animation: quoteRipple 2s ease-out infinite;
    pointer-events: none;
}

@keyframes quoteRipple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

@keyframes quoteShake {

    0%,
    90%,
    100% {
        transform: rotate(0);
    }

    92% {
        transform: rotate(-4deg);
    }

    94% {
        transform: rotate(4deg);
    }

    96% {
        transform: rotate(-3deg);
    }

    98% {
        transform: rotate(2deg);
    }
}

.quote-float:hover {
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.6);
    animation-play-state: paused;
}

/* 文字氣泡 */
.quote-bubble {
    position: absolute;
    right: 0;
    top: -42px;
    background: #fff;
    border-radius: 14px;
    padding: 8px 14px;
    font-size: 14px;
    color: #cb7700;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    animation: quoteBubble 3s ease-in-out infinite;
}

.quote-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 40px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

@keyframes quoteBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   回到頂部（捲動進度環，滾到一定高度才出現）
   ======================================== */
.go-top-ring {
    position: fixed;
    bottom: 130px;
    right: 23px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(200, 140, 20, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cb7700;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease;
    z-index: 999;
}

.go-top-ring.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-top-ring:hover {
    background: #fff;
    transform: translateY(-4px);
    color: #f59e0b;
}
form .verify-fresh {
    background: url(/assets/img/refresh.svg) center center no-repeat;
    background-size: 24px;
    cursor: pointer;
}
form .verify-fresh:before {
    display: block;
    content: "";
    padding: 24px;
}
.article-detail {
    background: #fffbf5;
    padding: 64px 0 80px;
}
.article-detail .article-head {
    text-align: center;
    margin-bottom: 36px;
}
.article-detail .article-title {
    font-size: 34px;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.4;
    letter-spacing: .02em;
    margin-bottom: 16px;
}
.article-detail .article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #9ca3af;
}
.article-detail .article-meta i {
    color: #f59e0b;
    font-size: 13px;
}
.article-detail .article-divider {
    width: 60px;
    height: 3px;
    background: #f59e0b;
    border-radius: 2px;
    margin: 28px auto 0;
}
.layui-layer-shade { z-index: 1009 !important; }
.layui-layer{ z-index: 1010 !important; }