/* 全局變量 */
:root {
    --primary-color: #2D4639;
    --primary-light: #3d5c4a;
    --primary-dark: #1e3028;
    --secondary-color: #ffffff;
    --accent-gold: #c4a265;
    --accent-gold-light: #d4b87a;
    --section-bg: #f5f0e8;
    --text-muted: #5a6b62;
    --header-height: 80px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 12px rgba(45, 70, 57, 0.08);
    --shadow-md: 0 8px 32px rgba(45, 70, 57, 0.12);
}

.container {
    margin: 0 auto;
    max-width: 1380px;
    padding: 0 48px;
    width: 100%;
    box-sizing: border-box;
}

/* 基礎樣式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

#think_page_trace_open,#think_page_trace{
    display: none;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    color: var(--primary-color);
}

ul {
    padding-left: 0;
    margin: 0;
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 70, 57, 0.06);
    transition: var(--transition);
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    width: auto;
    height: 70px;
    object-fit: contain;
}



/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap:45px;
}

.nav-list__link {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
}

.nav-list__link span{
    display:block;
    color: #1e3028;
    font-size: 1rem;
    line-height: 1.1rem;
}

.nav-list__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-list__link:hover::after,
.nav-list__link.active::after {
    width: 100%;
}

.nav-list__link:hover {
    color: var(--primary-light);
}

.nav-list__link.active {
    font-weight: 500;
}

/* Header CTA & Language */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0px;
    border: 1.5px solid rgba(45, 70, 57, 0.18);
    border-radius: 50px;
    background: rgba(45, 70, 57, 0.04);
    gap: 2px;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
    line-height: 1;
}

.lang-switch__btn:hover {
    color: var(--primary-light);
}

.lang-switch__btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    pointer-events: none;
}

.header-cta {
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% 200%;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    animation: gradientShift 4s ease infinite;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 70, 57, 0.35);
    color: #fff;
}

.btn-whatsapp .icon{
    width: 20px; height: 20px; position: relative; right: 6px;
}

.btn-whatsapp--mobile {
    display: none;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
    margin: 0 auto;
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 48, 40, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ========== Responsive Header ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .nav-list {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 62px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 32px) 32px 32px;
        box-shadow: -4px 0 24px rgba(45, 70, 57, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-list__item {
        width: 100%;
        border-bottom: 1px solid rgba(45, 70, 57, 0.08);
    }

    .nav-list__link {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }

    .header-cta {
        display: none;
    }

    .header-right {
        gap: 10px;
    }

    .lang-switch__btn {
        min-width: 34px;
        height: 30px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-nav-overlay.active {
        pointer-events: auto;
    }

    .header-inner .btn-whatsapp--mobile {
        display: inline-flex;
        margin-top: 24px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .site-logo__name {
        font-size: 1.25rem;
    }

    .site-logo__tagline {
        font-size: 0.55rem;
    }

    .site-logo__icon {
        width: 36px;
        height: 36px;
    }
}

.appt-layer .layui-icon-close{
    top:-12px; right:-12px;
}

.appt-layer .layui-icon-close:hover{
    background-color: #1e3028;
}

/* ========== Base Reveal (共用動畫) ========== */
.base-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.base-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.base-reveal-delay { transition-delay: 0.15s; }
.base-reveal-delay-1 { transition-delay: 0.1s; }
.base-reveal-delay-2 { transition-delay: 0.2s; }
.base-reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Contact CTA (共用) ========== */
.contact-cta {
    position: relative;
    overflow: hidden;
    background-color: #3d5c4a;
}

.contact-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.contact-cta__content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 72px 48px 72px max(48px, calc((100vw - 1380px) / 2 + 48px));
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-color) 35%, var(--primary-light) 70%, var(--primary-color) 100%);
    background-size: 300% 300%;
    animation: contactGradient 10s ease infinite;
    overflow: hidden;
}

.contact-cta__content::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(196, 162, 101, 0.12) 0%, transparent 65%);
    pointer-events: none;
    animation: contactGlow 8s ease-in-out infinite alternate;
}

.contact-cta__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

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

@keyframes contactGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(10%, 5%) scale(1.1); opacity: 1; }
}

.contact-cta__content-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.contact-cta__title {
    font-size: clamp(1.6rem, 2.8vw, 2.05rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.45;
    margin: 0 0 16px;
}

.contact-cta__subtitle {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 32px;
    line-height: 1.7;
}

.btn-whatsapp-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 200%;
    transition: var(--transition);
    animation: gradientShift 5s ease infinite;
}

.btn-whatsapp-outline__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #25D366;
}

.btn-whatsapp-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.contact-cta__phone {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-cta__phone-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.contact-cta__phone-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    transition: var(--transition);
    background: linear-gradient(90deg, #fff, rgba(196, 162, 101, 0.9), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: phoneShimmer 4s linear infinite;
}

.contact-cta__phone-number:hover {
    -webkit-text-fill-color: var(--accent-gold-light);
    background: none;
}

@keyframes phoneShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.contact-cta__visual {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.contact-cta__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}



.contact-cta__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45, 70, 57, 0.35) 0%, rgba(45, 70, 57, 0.55) 0%);
    pointer-events: none;
}

/* ========== Footer (共用) ========== */
.site-footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: 100% 200%;
    animation: footerGradient 15s ease infinite;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.4), transparent);
}

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

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 64px 0 48px;
}

.site-footer__heading {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.site-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.site-footer__links li {
    margin-bottom: 10px;
}

.site-footer__links a,
.site-footer__contact a {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.site-footer__links a::after,
.site-footer__contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold-light), #fff);
    transition: width 0.3s ease;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
    color: #fff;
}

.site-footer__links a:hover::after,
.site-footer__contact a:hover::after {
    width: 100%;
}

.site-footer__contact li {
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.site-footer__contact-label {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__hours {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-footer__hours-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.site-footer__copyright {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    font-family: Arial, Helvetica, sans-serif;
}

/* ========== Floating Actions ========== */
.floating-actions {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #2D4639;
    color: #fff;
    box-shadow: 0 4px 18px rgba(45, 70, 57, 0.32);
    transition: var(--transition);
    text-decoration: none;
}

.floating-actions__btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(45, 70, 57, 0.42);
    color: #fff;
}

.floating-actions__btn svg {
    width: 24px;
    height: 24px;
}

.floating-actions__btn--top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.floating-actions__btn--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-actions__btn--top:hover {
    transform: translateY(-3px);
}

/* ========== Contact & Footer Responsive ========== */
@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 32px;
    }

    .contact-cta__content {
        padding: 60px 32px;
    }
}

@media (max-width: 768px) {
    .contact-cta__inner {
        grid-template-columns: 1fr;
    }

    .contact-cta__content {
        padding: 56px 32px;
        order: 1;
    }

    .contact-cta__content-inner {
        max-width: 100%;
    }

    .contact-cta__visual {
        order: 0;
        min-height: 260px;
        max-height: 320px;
    }

    .contact-cta__content::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 36px;
    }

    .site-footer__col {
        text-align: center;
    }

    .site-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-cta__content {
        padding: 48px 24px; padding-top: 24px;
    }

    .contact-cta__phone {
        margin-top: 28px;
        padding-top: 24px;
    }

    .site-footer__grid .site-footer__col:nth-child(2){
        display: none;
    }

    .site-footer__grid .site-footer__col:nth-child(3){
        display: none;
    }

    .site-footer__links li {
        margin-bottom: 10px;
        border-bottom: solid 1px #556B4D;
        padding-bottom: 6px;
        text-align: left;
    }

    .site-footer__contact{
        text-align: left;
    }

    .contact-cta__title,.contact-cta__subtitle{
        text-align: center;
    }

}

@media (max-width: 480px) {
    .floating-actions {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-actions__btn {
        width: 46px;
        height: 46px;
    }

    .floating-actions__btn svg {
        width: 22px;
        height: 22px;
    }

    .contact-cta__visual {
        min-height: 220px;
    }

    .btn-whatsapp-outline {
        width: 100%;
        justify-content: center;
    }

    .site-logo img {
        height: 52px;
    }

    .contact-cta__title{
        font-size:1.45em ;
    }

    .main-nav{
        background-image:url(/static/images/logo-mini.png);
        background-size: 38px auto;
        background-repeat: no-repeat;
        background-position: 12px 17px;
    }

    .container.header-inner{
        padding:0 10px; padding-left: 0px;
    }

    .site-footer__hours span{
        display: inline;
    }

    .site-footer__hours{
        display: block;
    }




}

