:root {
    --primary-color: #ffffff;
    --card-bg: #ffffff;
    --accent-color: #00d4ff;
    --text-color: #212529;
    --bg-light: #f8f9fa;
    --header-height: 120px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: #f8fbfd;
    background-image: radial-gradient(rgba(0, 123, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--text-color);
    line-height: 1.75;
    letter-spacing: 0.03em;
    padding-top: 0;
    overflow-x: hidden;
    width: 100%;

}


.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate ease-in-out;
}


.orb-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 123, 255, 0.15), transparent 70%); }

.orb-2 { bottom: 10%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%); animation-delay: -5s; }

.orb-3 { top: 40%; left: 20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(138, 43, 226, 0.12), transparent 70%); animation-delay: -10s; }

.orb-4 { bottom: 30%; left: 60%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 105, 180, 0.1), transparent 70%); animation-delay: -15s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 1000;
}

header.menu-open {
    background-color: #f8f9fa;
    box-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    margin-left: 20%;
    transform: translateY(6px); 
}

.logo img {
    height: 140px; 
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: 20px;
}

.mobile-contact { display: none; }

.nav-links a {
    text-decoration: none;
    color: #343a40;
    font-weight: 700;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a .en {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #343a40;
    transition: 0.3s;
    will-change: transform, opacity;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


footer {
    background-color: var(--bg-light);
    color: #6c757d;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
footer p {
    margin: 0;
    color: #495057;
    font-weight: 500;
    font-size: 0.85rem;
}

.back-to-top {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #212529;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


.city-silhouette {
    width: 100%;
    height: 100px;
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
}


.city-silhouette::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M0,120 L0,80 L10,72 L10,60 L15,60 L15,68 L25,60 L50,80 L50,40 L100,40 L100,90 L125,70 L150,90 L150,30 L200,30 L200,100 L225,80 L230,84 L230,75 L235,75 L235,88 L250,100 L250,50 L300,50 L300,110 L325,90 L350,110 L350,20 L400,20 L400,80 L425,60 L450,80 L450,120 L500,120 L500,60 L550,60 L550,100 L575,80 L600,100 L600,40 L650,40 L650,90 L675,70 L700,90 L700,120 L750,120 L750,50 L800,50 L800,100 L825,80 L850,100 L850,30 L900,30 L900,80 L925,60 L950,80 L950,120 L1000,120 L1000,60 L1050,60 L1050,100 L1075,80 L1100,100 L1100,40 L1150,40 L1150,120 L1200,120 Z' fill='%23adb5bd'/%3e%3cpath d='M22,70 h6 v6 h-6 z M15,90 h6 v6 h-6 z M29,90 h6 v6 h-6 z M60,50 h10 v10 h-10 z M80,50 h10 v10 h-10 z M60,70 h10 v10 h-10 z M80,70 h10 v10 h-10 z M122,80 h6 v6 h-6 z M115,100 h6 v6 h-6 z M129,100 h6 v6 h-6 z M160,40 h10 v10 h-10 z M180,40 h10 v10 h-10 z M160,60 h10 v10 h-10 z M180,60 h10 v10 h-10 z M160,80 h10 v10 h-10 z M180,80 h10 v10 h-10 z M222,90 h6 v6 h-6 z M215,110 h6 v6 h-6 z M229,110 h6 v6 h-6 z M260,60 h10 v10 h-10 z M280,60 h10 v10 h-10 z M260,80 h10 v10 h-10 z M280,80 h10 v10 h-10 z M322,100 h6 v6 h-6 z M360,30 h10 v10 h-10 z M380,30 h10 v10 h-10 z M360,50 h10 v10 h-10 z M380,50 h10 v10 h-10 z M360,70 h10 v10 h-10 z M380,70 h10 v10 h-10 z M360,90 h10 v10 h-10 z M380,90 h10 v10 h-10 z M422,70 h6 v6 h-6 z M415,90 h6 v6 h-6 z M429,90 h6 v6 h-6 z M510,70 h10 v10 h-10 z M530,70 h10 v10 h-10 z M510,90 h10 v10 h-10 z M530,90 h10 v10 h-10 z M572,90 h6 v6 h-6 z M565,110 h6 v6 h-6 z M579,110 h6 v6 h-6 z M610,50 h10 v10 h-10 z M630,50 h10 v10 h-10 z M610,70 h10 v10 h-10 z M630,70 h10 v10 h-10 z M672,80 h6 v6 h-6 z M665,100 h6 v6 h-6 z M679,100 h6 v6 h-6 z M760,60 h10 v10 h-10 z M780,60 h10 v10 h-10 z M760,80 h10 v10 h-10 z M780,80 h10 v10 h-10 z M822,90 h6 v6 h-6 z M815,110 h6 v6 h-6 z M829,110 h6 v6 h-6 z M860,40 h10 v10 h-10 z M880,40 h10 v10 h-10 z M860,60 h10 v10 h-10 z M880,60 h10 v10 h-10 z M922,70 h6 v6 h-6 z M915,90 h6 v6 h-6 z M929,90 h6 v6 h-6 z M1010,70 h10 v10 h-10 z M1030,70 h10 v10 h-10 z M1010,90 h10 v10 h-10 z M1030,90 h10 v10 h-10 z M1072,90 h6 v6 h-6 z M1065,110 h6 v6 h-6 z M1079,110 h6 v6 h-6 z M1110,50 h10 v10 h-10 z M1130,50 h10 v10 h-10 z M1110,70 h10 v10 h-10 z M1130,70 h10 v10 h-10 z' fill='%23f8f9fa' fill-opacity='0.8'/%3e%3c/svg%3e");
    background-repeat: repeat-x;
    background-size: 1200px 100%;
    background-position: bottom;
    z-index: 2;
    filter: drop-shadow(0 -5px 15px rgba(255, 215, 0, 0.6));
}


.city-silhouette::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M0,120 L0,90 C150,40 250,100 400,80 C550,60 650,110 800,90 C950,70 1050,120 1200,100 L1200,120 Z' fill='%23c7cdd1'/%3e%3cpath d='M0,120 L0,100 C200,60 350,120 500,100 C650,80 750,110 900,100 C1050,90 1150,120 1200,110 L1200,120 Z' fill='%23b8bec2'/%3e%3c/svg%3e");
    background-repeat: repeat-x;
    background-size: 1200px 100%;
    background-position: bottom;
    z-index: -1;
}


.contact-section {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 5%;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sky-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.sun {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff3cd, #ffc107);
    box-shadow: 0 0 30px #ffc107, 0 0 60px #ffc107;
    opacity: 0.8;
}

.cloud {
        margin-bottom: -1px;
        margin-top: -20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3e%3cpath d='M40 70 Q50 50 70 60 Q80 40 110 50 Q130 40 150 60 Q170 60 160 80 H30 Q10 80 40 70 Z' fill='%23a2d2ff' fill-opacity='0.8'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
}

.cloud-1 { top: 15%; left: -200px; width: 180px; height: 90px; opacity: 0.8; animation: driftRight 38s linear infinite; animation-delay: -5s; }
.cloud-2 { top: 25%; right: -250px; width: 220px; height: 110px; opacity: 0.7; animation: driftLeft 42s linear infinite; animation-delay: -12s; }
.cloud-3 { top: 5%; left: -180px; width: 150px; height: 75px; opacity: 0.6; animation: driftRight 48s linear infinite; animation-delay: -20s; }
.cloud-4 { top: 60%; right: -220px; width: 200px; height: 100px; opacity: 0.5; animation: driftLeft 39s linear infinite; animation-delay: -8s; }
.cloud-5 { top: 40%; left: -160px; width: 160px; height: 80px; opacity: 0.4; animation: driftRight 45s linear infinite; animation-delay: -15s; }

@keyframes driftRight { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 400px)); } }
@keyframes driftLeft { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 400px)); } }

.contact-section__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.contact-section__socials {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.contact-section__info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.big-contact-link {
    font-size: 5rem;
    font-family: "Didot", "Bodoni MT", "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1;
    transition: 0.3s;
    display: inline-block;
}

.big-contact-link:hover {
    text-shadow: 0 0 30px var(--accent-color);
    transform: scale(1.05);
    color: var(--accent-color);
}

.contact-section__info p {
    font-size: 1.1rem;
    color: #212529;
    font-weight: 600;
    margin: 0;
}

.contact-logo {
    width: 180px;
    margin-top: 30px;
    display: block;
}

.social-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}
.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.social-btn:hover {
    transform: translateY(-5px);
}


@media (max-width: 768px) {
    :root { --header-height: 80px; }
    .hamburger { display: flex; }
    header { justify-content: flex-end; }
    
    .logo { 
        margin-left: 0; 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
        top: 0px; 
    }
    .logo.active { transform: translate(-50%, 40px) scale(1.6); z-index: 2002; }
    
    .logo img { 
        height: 94px; 
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #f8f9fa;
        flex-direction: column; 
        align-items: center; 
        justify-content: flex-start;
        padding-top: 75px; 
        transition: transform 0.35s ease-in-out; 
        gap: 30px;
        transform: translateX(100%);
        z-index: 1500;
    }
    .nav-links.active { transform: translateX(0); }
    
    .nav-links a {
        font-size: 15.2px; 
        font-weight: bold; 
        letter-spacing: 2px; 
        text-transform: uppercase; 
        margin: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
    }
    .nav-links a .en {
        display: block;
        font-size: 12px; 
        font-weight: normal; 
        margin-top: 5px; 
        opacity: 0.7; 
        letter-spacing: 1px;
    }

    
    .nav-links .mobile-contact {
        width: 100%;
        margin-top: 24px;
        padding: 22px 24px 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: var(--text-color);
        box-sizing: border-box;
        position: relative;
    }
    .nav-links .mobile-contact::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
        pointer-events: none;
    }
    .nav-links .mobile-contact .icons { display:flex; gap:14px; justify-content:center; }
    .nav-links .mobile-contact .icons a { width:48px; height:48px; display:inline-flex; border-radius:8px; overflow:hidden; align-items:center; justify-content:center; background: rgba(0,0,0,0.05); }
    .nav-links .mobile-contact .icons .social-btn:hover { transform: none; }
    .nav-links .mobile-contact .icons img { width:100%; height:100%; object-fit:contain; }
    .nav-links .mobile-contact .info { text-align:center; color:#495057; font-size:0.95rem; opacity:0.95; }
    .nav-links .mobile-contact .info p { margin: 0; }

    
    .sun { width: 50px; height: 50px; top: 5%; left: 5%; }
    .cloud-1 { width: 120px; height: 60px; top: 10%; left: -150px; }
    .cloud-2 { width: 150px; height: 75px; top: 20%; right: -180px; }
    .cloud-3 { display: none; }
    .cloud-4 { width: 100px; height: 50px; top: 50%; right: -120px; left: auto; }
    .cloud-5 { display: none; }

    .contact-inner { 
        flex-direction: column; 
        text-align: center; 
        
        padding: 40px 16px; 
    }
    .contact-section__right { 
        align-items: center; 
        text-align: center; 
        margin-top: 40px; 
        width: 100%; 
    }
    .big-contact-link { font-size: 3rem !important; }
    .contact-logo { display: none; }
    .contact-section__info p { 
        font-size: 14px; 
    }
    
    .contact-section__socials { 
        justify-content: center; 
        position: relative; padding-bottom: 20px; margin-bottom: 10px; width: 100%; 
    }
    .contact-section__socials .social-btn:hover { transform: none; }
    .contact-section__socials::after {
        content: ''; position: absolute; bottom: 0; left: 15%; width: 70%; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    }
    .contact-section__info { align-items: center; margin-top: 10px; }
}

/* =========================================
   Index Page Styles (首頁專屬樣式)
   ========================================= */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero {
    position: relative;
    background: transparent;
    overflow: visible; 
    padding: 100px 20px 20px;
    color: var(--text-color);
    max-width: 100%;
    z-index: 2; 
}

.hero-bg {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 160%; 
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    pointer-events: none; 
}

.hero-bg svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.hero-bg ellipse {
    pointer-events: auto;
    cursor: pointer;
}

.hero-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 60px;
}

.hero-content > * {
    pointer-events: auto;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.desktop-bg { display: block; }
.mobile-bg { display: none; }

.hero h1 { 
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(to bottom, #212529, #495057);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
    line-height: 1.2;
    animation-delay: 0.2s;
    white-space: nowrap;
    padding-right: 50px;
}

.hero p {
    font-size: 1.2rem;
    color: #212529; 
    text-align: center;
    max-width: 600px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: none;
    font-weight: 600; 
    animation-delay: 0.4s;
}

.btn { 
    -webkit-appearance: none;
    appearance: none;
    border: none;
    overflow: hidden;
    background-clip: padding-box;
    display: inline-block; 
    padding: 12px 30px; 
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(90deg, var(--accent-color), #0056b3); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 30px; 
    margin-top: 20px; 
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn {
    margin-top: 25px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 15px 45px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.1);
    backdrop-filter: none;
    font-weight: 800;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.hero .btn:hover {
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.hero .btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.hero-marquee-wrapper {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%); 
    height: clamp(15rem, 40vw, 45rem); 
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    overflow: hidden; 
    width: 100%;
    max-width: 100%; 
    text-align: center;
    z-index: 2; 
    pointer-events: none; 
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    line-height: 1.2; 
    opacity: 0; 
    animation: sloganFadeIn 2s ease-out 0.5s forwards; 
}

.hero-marquee {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    position: relative;
}

.hero-marquee span {
    flex-shrink: 0; 
    height: clamp(4.8rem, 12vw, 14.4rem); 
    display: flex;
    align-items: center; 
    justify-content: center; 
    font-size: clamp(2rem, 5vw, 6rem); 
    font-weight: 900;
    font-style: normal;
    color: rgba(0, 0, 0, 0.04);
    letter-spacing: 0.05em;
    transition: all 0.5s ease-in-out; 
    user-select: none;
    white-space: normal;
    text-align: center;
    pointer-events: none;
    white-space: nowrap; 
}

@keyframes sloganFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-marquee span.active-center {
    font-size: clamp(4rem, 10vw, 12rem); 
    color: rgba(0, 0, 0, 0.08); 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.05); 
}

#projects {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

#projects h2, #projects > p {
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.service-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-align: left;
    min-height: 200px;
}

#industries {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('聯繫我們.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: 100%;
    padding: 80px 20px;
    color: #fff;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.service-img-box {
    flex: 1;
    position: relative;
}

.service-img-box img {
    width: 100%;
    transition: transform 0.3s;
    height: 100%;
    object-fit: cover;
}

.service-img-box,
.service-content-box h3,
.service-content-box p {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.service-item:nth-child(odd) .service-img-box { transform: translateX(-50px); }
.service-item:nth-child(odd) .service-content-box h3,
.service-item:nth-child(odd) .service-content-box p { transform: translateX(50px); }

.service-item:nth-child(even) .service-img-box { transform: translateX(50px); }
.service-item:nth-child(even) .service-content-box h3,
.service-item:nth-child(even) .service-content-box p { transform: translateX(-50px); }

.service-item.service-visible .service-img-box,
.service-item.service-visible .service-content-box h3,
.service-item.service-visible .service-content-box p {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.service-item.service-visible .service-img-box { transition-delay: 0s; }
.service-item.service-visible .service-content-box h3 { transition-delay: 0.2s; }
.service-item.service-visible .service-content-box p:nth-of-type(1) { transition-delay: 0.3s; }
.service-item.service-visible .service-content-box p:nth-of-type(2) { transition-delay: 0.4s; }
.service-item.service-visible .service-content-box p:nth-of-type(3) { transition-delay: 0.5s; }
.service-item.service-visible .service-content-box p:nth-of-type(4) { transition-delay: 0.6s; }
.service-item.service-visible .service-content-box p:nth-of-type(5) { transition-delay: 0.7s; }
.service-item.service-visible .service-content-box p:nth-of-type(6) { transition-delay: 0.8s; }

#projects .service-list { counter-reset: project-count; }
#projects .service-item { counter-increment: project-count; }
#projects .service-content-box { position: relative; overflow: hidden; }

#projects .service-content-box::before {
    content: counter(project-count, decimal-leading-zero); 
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03); 
    font-family: 'Arial', sans-serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease, color 0.3s;
}

#projects .service-item:nth-child(even) .service-content-box::before { right: auto; left: 20px; }
#projects .service-item:hover .service-content-box::before { transform: translateY(-10px) scale(1.05); color: rgba(0, 123, 255, 0.06); }
#projects .service-content-box h3, #projects .service-content-box p { position: relative; z-index: 1; }

.service-content-box {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.6);
    background-image: radial-gradient(rgba(0, 123, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.service-content-box h3 {
    position: relative;
    display: inline-block;
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.service-content-box h3 .subtitle {
    position: absolute;
    top: -8px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    line-height: 1;
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 0.5s ease-out 0.8s;
    white-space: nowrap;
}

.service-content-box h3::before {
    content: '';
    position: absolute;
    top: -10px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    width: 0;
    transition: width 0.8s ease-out 0.3s;
    border-radius: 2px;
}

.service-item:nth-child(odd) .service-content-box h3::before { left: 0; }
.service-item:nth-child(odd) .service-content-box h3 .subtitle { left: 130px; right: auto; }
.service-item:nth-child(even) .service-content-box h3::before { right: 0; background: linear-gradient(-90deg, var(--accent-color), transparent); }
.service-item:nth-child(even) .service-content-box h3 .subtitle { right: 130px; left: auto; }
.service-item.service-visible .service-content-box h3::before { width: 120px; }
.service-item.service-visible .service-content-box h3 .subtitle { opacity: 0.7; }

.service-content-box p {
    font-size: 1.1rem;
    color: #212529; 
    line-height: 1.8;
    font-weight: 600; 
    margin-left: 5%;
    margin-right: 5%;
}

.tarot-card-face {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
}

.tarot-card-face.back-face {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='80%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='100%25' stop-color='%23e9ecef'/%3E%3C/radialGradient%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23adb5bd' stroke-width='0.5' opacity='0.2'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23ced4da' opacity='0.4'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3Crect x='10' y='10' width='calc(100%25 - 20px)' height='calc(100%25 - 20px)' fill='none' stroke='%23adb5bd' stroke-width='2'/%3E%3Crect x='16' y='16' width='calc(100%25 - 32px)' height='calc(100%25 - 32px)' fill='none' stroke='%23ced4da' stroke-width='1' stroke-dasharray='4 4' opacity='0.7'/%3E%3C/svg%3E");
    background-size: cover;
}

.tarot-card-face.content-face {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='bg_dots' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ced4da' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='%23ffffff'/%3E%3Crect width='100%25' height='100%25' fill='url(%23bg_dots)'/%3E%3Crect x='8' y='8' width='calc(100%25 - 16px)' height='calc(100%25 - 16px)' fill='none' stroke='%23adb5bd' stroke-width='3'/%3E%3Crect x='14' y='14' width='calc(100%25 - 28px)' height='calc(100%25 - 28px)' fill='none' stroke='%23ced4da' stroke-width='1' stroke-dasharray='2 3'/%3E%3C!-- Corners --%3E%3Csvg x='0' y='0' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M15,15 A20,20 0 1,1 15,45 A15,15 0 1,0 15,15 Z' fill='%23343a40' transform='translate(5,5)'/%3E%3C/svg%3E%3Csvg x='100%25' y='0' width='60' height='60' viewBox='0 0 60 60' style='overflow:visible'%3E%3Cg transform='translate(-60,0)'%3E%3Cpath d='M45,15 A20,20 0 1,0 45,45 A15,15 0 1,1 45,15 Z' fill='%23343a40' transform='translate(-5,5)'/%3E%3C/g%3E%3C/svg%3E%3Csvg x='0' y='100%25' width='60' height='60' viewBox='0 0 60 60' style='overflow:visible'%3E%3Cg transform='translate(0,-60)'%3E%3Cpath d='M15,45 A20,20 0 1,0 15,15 A15,15 0 1,1 15,45 Z' fill='%23343a40' transform='translate(5,-5)'/%3E%3C/g%3E%3C/svg%3E%3Csvg x='100%25' y='100%25' width='60' height='60' viewBox='0 0 60 60' style='overflow:visible'%3E%3Cg transform='translate(-60,-60)'%3E%3Cpath d='M45,45 A20,20 0 1,1 45,15 A15,15 0 1,0 45,45 Z' fill='%23343a40' transform='translate(-5,-5)'/%3E%3C/g%3E%3C/svg%3E%3C/svg%3E");
    padding: 40px 30px;
}

.tarot-question-mark {
    font-family: 'Times New Roman', serif;
    font-size: 8rem;
    color: transparent;
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    animation: cardPulse 3s infinite ease-in-out;
}

.flip-card:hover .tarot-question-mark { animation: none; filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.3)); }
.card-content { opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out 0.3s; }
.flip-card.flipped .card-content { opacity: 1; transform: translateY(0); }
.card-content p { font-size: 1rem; line-height: 1.8; letter-spacing: 0.05em; margin: 0; color: #212529; font-weight: 500; }

.philosophy-section {
    background: linear-gradient(to bottom, #f8fbfd, #f1f3f5);
    padding: 80px 20px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1; 
}

.philosophy-section::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.04), transparent 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
}

.philosophy-section::after {
    content: ''; position: absolute; bottom: -20%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
}

.philosophy-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 18vw; font-weight: 900; font-family: 'Arial Black', sans-serif;
    color: transparent; -webkit-text-stroke: 2px rgba(0, 0, 0, 0.03);
    z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
}

.philosophy-container { max-width: 95%; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.philosophy-title {
    margin-bottom: 60px; margin-top: 20px; opacity: 0; transform: translateY(30px);
    transition: all 0.8s ease-out; display: flex; flex-direction: column; align-items: center;
}

.philosophy-title .en {
    font-family: "Didot", "Bodoni MT", "Times New Roman", serif; font-size: 1.2rem;
    letter-spacing: 0.5em; color: #495057; text-transform: uppercase;
    margin-bottom: 15px; position: relative; display: inline-block;
}

.philosophy-title .en::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 1px; background: #adb5bd;
}

.philosophy-title .cn { font-size: 3.5rem; font-weight: 700; letter-spacing: 0.2em; color: #212529; -webkit-text-fill-color: initial; }
.philosophy-visible { opacity: 1 !important; transform: translateY(0) !important; }
.philosophy-cards { display: flex; flex-wrap: nowrap; gap: 15px; justify-content: center; }

.flip-card { background-color: transparent; flex: 1; min-width: 180px; height: 320px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden;
    backface-visibility: hidden; border-radius: 15px; box-shadow: none; overflow: hidden; box-sizing: border-box;
}
.flip-card-front { background-color: transparent; }

@keyframes cardPulse {
    0% { filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.2)); }
    100% { filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1)); }
}

.flip-card-back {
    background-color: transparent; background-size: cover; background-position: center;
    background-repeat: no-repeat; color: var(--text-color); transform: rotateY(180deg);
    display: flex; align-items: center; justify-content: center; padding: 0; border: none; box-shadow: none; filter: none; 
}

.highlight-text { color: var(--accent-color); font-weight: bold; border-bottom: 2px solid rgba(0, 123, 255, 0.5); padding-bottom: 2px; }
.mobile-card-container { display: none; }
.mobile-flip-card { width: 100%; max-width: 400px; height: 480px; margin: 0 auto; flex: none; }

.value-word-box {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: #ffffff; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; min-height: 300px;
}

.big-en {
    font-size: 3rem; font-weight: 900; color: #dee2e6; margin: 0; line-height: 1;
    text-transform: uppercase; letter-spacing: 2px; text-shadow: none; opacity: 0; transition: all 0.8s ease-out;
}

.small-cn {
    font-size: 1.5rem; color: #212529; margin-top: 15px; letter-spacing: 0.2em;
    font-weight: 700; opacity: 0; transition: opacity 0.8s ease-out 0.4s;
}

.service-item:nth-child(1) .big-en { transform: translate(-150px, -150px); }
.service-item:nth-child(2) .big-en { transform: translate(0, 150px); }
.service-item:nth-child(3) .big-en { transform: translate(150px, -150px); }
.service-item.service-visible .big-en { opacity: 1; transform: translate(0, 0); }
.service-item.service-visible .small-cn { opacity: 1; }

#core-values {
    max-width: 100% !important; width: 100%; position: relative; overflow: hidden; padding: 50px 0;
    background-color: #fdfdfd;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

#core-values .service-list { max-width: 1000px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

.bg-text {
    position: absolute; font-size: 100px; font-weight: 900; font-family: 'Arial Black', sans-serif;
    color: transparent; -webkit-text-stroke: 2px rgba(0, 0, 0, 0.15); z-index: 1; pointer-events: none;
    opacity: 0; transition: opacity 0.8s ease; white-space: nowrap; will-change: transform, opacity;
}

.bg-text.visible { opacity: 1; }
.bg-text.left { left: 2%; top: 10%; transform-origin: center; }
.bg-text.right { right: 2%; bottom: 10%; transform-origin: center; }

/* =========================================
   Process Section Styles (服務流程樣式)
   ========================================= */
.process-section {
    padding: 100px 20px;
    background-color: #fcfcfc;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header .en-title {
    display: block;
    font-family: "Didot", "Bodoni MT", "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: #adb5bd;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header .cn-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.section-header .title-line {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 12%;
    width: 76%;
    height: 1px;
    background: #e9ecef;
    z-index: 0;
}

.step-card {
    background: #fff;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.step-card:hover, .step-card.active {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.12);
    border-color: transparent;
}

/* 漸層邊框效果 */
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), #005bea);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.step-card:hover::before, .step-card.active::before {
    opacity: 1;
}

/* 流動箭頭指引 */
.step-card::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    font-size: 2rem;
    background: linear-gradient(90deg, var(--accent-color), #005bea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    font-family: system-ui, sans-serif;
    font-weight: 800;
    z-index: 10;
    pointer-events: none;
}

.step-card:hover::after, .step-card.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.step-card:last-child::after {
    display: none;
}

/* 步驟卡片背景圖動畫 */
.step-bg-img {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* 調整透明度，避免干擾文字閱讀 */
    transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    pointer-events: none;
}

.step-card:hover .step-bg-img, .step-card.active .step-bg-img {
    bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: none;
    box-shadow: inset 0 0 0 2px #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #adb5bd;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-card:hover .step-number, .step-card.active .step-number {
    background: #ffffff;
    color: #005bea;
    box-shadow: inset 0 0 0 2px #005bea, 0 8px 25px rgba(0, 212, 255, 0.25);
    transform: scale(1.1);
}

.step-info {
    position: relative;
    z-index: 2;
}

.step-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.step-info p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    text-align: justify;
    text-align-last: center;
    transition: color 0.3s ease;
}

.step-card:hover .step-info h3, .step-card.active .step-info h3 {
    color: #0056b3;
}

.step-card:hover .step-info p, .step-card.active .step-info p {
    color: #004085;
}

@media (max-width: 768px) { 
    header { padding: 0 20px; background-color: rgba(255, 255, 255, 0.85); }
    .hero { padding: 60px 20px 20px; background-image: none !important; }
    .hero h1 { font-size: 2rem; white-space: nowrap; }
    .hero p { font-size: 1rem; white-space: nowrap; }
    .desktop-bg { display: none; }
    .mobile-bg { display: block; }
    section { padding: 20px 15px; }
    footer { margin-top: 0; }
    .philosophy-section { padding: 50px 20px 60px !important; background-image: none !important; }
    .philosophy-title { margin-bottom: 10px; }
    .philosophy-title .cn { font-size: 2.2rem; }
    .philosophy-title .en { font-size: 0.9rem; letter-spacing: 0.3em; }
    .desktop-cards { display: none; }
    .mobile-card-container { display: flex; }
    .service-item { flex-direction: column-reverse !important; text-align: center !important; gap: 0; }
    .service-item:nth-child(even) { flex-direction: column-reverse !important; }
    .service-content-box h3 { font-size: 2rem; text-align: left; width: 100%; }
    .service-item:nth-child(even) .service-content-box h3::before { right: auto; left: 0; background: linear-gradient(90deg, var(--accent-color), transparent); }
    .service-item:nth-child(even) .service-content-box h3 .subtitle { right: auto; left: 130px; }
    .service-content-box h3 .subtitle { font-size: 0.8rem; top: -8px; }
    .service-content-box { padding: 30px 20px; }
    .service-content-box h3 { margin-left: 0; margin-right: 0; }
    .service-content-box p { margin-left: 0; margin-right: 0; font-size: 14px; text-align: left; position: relative; padding-left: 15px; line-height: 1.8; color: #212529; font-weight: 500; }
    .service-content-box p::before { content: "•"; position: absolute; left: 0; color: var(--accent-color); }
    .big-en { font-size: 2.2rem; } 
    .small-cn { font-size: 1.2rem; }
    .value-word-box { min-height: 200px; }
    .bg-text { display: none; }
    .hero-marquee-wrapper { top: 90%; }
    .contact-right h2 { display: none; }
    .contact-right p { font-size: 14px !important; }
    .contact-right > div:nth-of-type(1) { justify-content: center !important; position: relative; padding-bottom: 20px; margin-bottom: 10px; width: 100%; }
    .contact-right > div:nth-of-type(1)::after { content: ''; position: absolute; bottom: 0; left: 15%; width: 70%; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent); }
    .contact-right > div:last-child { align-items: center !important; margin-top: 10px !important; }
    
    /* Process Section Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .process-steps::before {
        display: none;
    }

    .process-section {
        padding: 60px 20px;
    }
    
    /* 手機版箭頭改為向下 */
    .step-card::after {
        content: '↓';
        right: auto;
        left: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(-50%) translateY(-10px);
    }
    .step-card:hover::after, .step-card.active::after {
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================
   FAQ Page Styles (常見問題頁面樣式)
   ========================================= */
.faq-hero {
    position: relative; width: 100%; height: 50vh; min-height: 400px; margin-bottom: 0;
    background-color: #f8f9fa; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1;
}
.faq-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.6); z-index: 1; }
.faq-hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover;
    background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; 
}
.faq-hero-slide.active { opacity: 1; }
.faq-hero h1 {
    font-size: 3rem; color: #212529; text-shadow: none; margin: 0; margin-top: 85px;
    letter-spacing: 0.1em; position: relative; z-index: 2; font-weight: 800;
}
.faq-hero p {
    font-size: 1.2rem; color: #495057; margin-top: 14px; letter-spacing: 0.05em; position: relative; z-index: 2;
}
.faq-container {
    max-width: 900px; margin: 60px auto 80px; padding: 0 20px; position: relative; z-index: 1; counter-reset: faq-count;
}
.faq-item {
    background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px;
    margin-bottom: 20px; overflow: hidden; transition: all 0.3s ease; position: relative; counter-increment: faq-count;
}
.faq-item::before {
    content: counter(faq-count, decimal-leading-zero); position: absolute; right: 15px; bottom: -15px;
    font-size: 5rem; font-weight: 900; color: rgba(0, 0, 0, 0.03); font-family: 'Arial', sans-serif;
    line-height: 1; z-index: 0; pointer-events: none; transition: transform 0.3s ease, color 0.3s;
}
.faq-item:hover::before { transform: translateY(-5px) scale(1.1); color: rgba(0, 123, 255, 0.08); }
.faq-item:hover { border-color: var(--accent-color); background: #ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-question {
    padding: 15px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; font-size: 1.2rem; color: #212529; letter-spacing: 0.05em; user-select: none; position: relative; z-index: 1;
}
.faq-question::after { content: '+'; font-size: 1.8rem; color: var(--accent-color); transition: transform 0.3s ease; line-height: 1; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-item.active { border-color: var(--accent-color); box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0 25px;
    color: #495057; line-height: 1.8; letter-spacing: 0.05em; font-size: 1.05rem; position: relative; z-index: 1;
}
.faq-item.active .faq-answer { padding-bottom: 25px; }

@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2rem; }
    .faq-question { font-size: 1.1rem; padding: 15px 20px; }
    .faq-hero { height: 260px; min-height: 0; }
    .faq-hero-slide { background-size: cover; background-repeat: no-repeat; background-position: center; }
    .faq-hero-slide:nth-child(1) { background-image: url('faq圖/hero1m.png') !important; }
    .faq-hero-slide:nth-child(2) { background-image: url('faq圖/hero2m.png') !important; }
}

/* =========================================
   Contact Page Styles (聯絡我們頁面樣式)
   ========================================= */
.contact-layout {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 80px;
    padding: 180px 5% 60px 5%; max-width: 1400px; margin: 0 auto; box-sizing: border-box; color: var(--text-color);
}
.contact-text {
    flex: 1 1 400px; max-width: 500px; text-align: left; padding-right: 0; opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards; position: relative; z-index: 1;
}
.contact-text::before {
    content: 'CONTACT'; position: absolute; top: -80px; left: -20px; font-size: 10rem; font-weight: 900;
    color: rgba(0, 0, 0, 0.03); font-family: 'Arial', sans-serif; z-index: -1; pointer-events: none; line-height: 1;
}
.contact-text .big-contact-title {
    font-size: 4rem; font-family: "Didot", "Bodoni MT", "Times New Roman", serif; font-weight: 400;
    font-style: italic; color: #000000; margin: 0 0 12px; letter-spacing: 0.15em; line-height: 1;
    text-shadow: 0 6px 28px rgba(0, 212, 255, 0.18); position: relative;
}
.contact-text .big-contact-title::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -14px; width: 140px; height: 4px;
    border-radius: 3px; background: linear-gradient(90deg, var(--accent-color), #005bea);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.15); opacity: 0.95;
}
.contact-desc { margin: 0 0 20px; color: #495057; font-size: 1.15rem; line-height: 1.8; letter-spacing: 0.05em; }
.contact-desc.special { font-size: 1.35rem; }
.word-red, .word-orange { font-weight: 700; font-size: 1.5em; }
.word-red { color: #f5aa5e; }
.word-orange { color: #59b9c0; }
.contact-form-container { 
    flex: 1 1 400px; padding-left: 0; max-width: 600px; opacity: 0; animation: fadeInUp 0.8s ease-out 0.3s forwards;
}
.inquiry-form {
    width: 100%; margin: 0; background: transparent; padding: 0; border-radius: 0; border: none; box-shadow: none; text-align: left;
}
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
#form-section { padding: 0; width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; color: #0056b3; font-weight: bold; font-size: 0.95rem; letter-spacing: 0.05em;
}
.required-star { color: #ff4d4d; margin-left: 4px; }
.form-control {
    width: 100%; padding: 12px 15px; background: rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px; color: var(--text-color); font-size: 1rem; letter-spacing: 0.05em;
    outline: none; box-sizing: border-box; transition: 0.3s;
}
.form-control:focus { border-color: var(--accent-color); background: #fff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); }
.form-control.is-invalid { border-color: #ff4d4d; box-shadow: 0 0 15px rgba(255, 77, 77, 0.3); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 50px; font-size: 1.2rem; width: auto; min-width: 250px;
    -webkit-appearance: none; appearance: none; border: none; overflow: hidden;
    background-clip: padding-box; cursor: pointer; -webkit-tap-highlight-color: transparent;
    background: linear-gradient(90deg, var(--accent-color), #005bea);
    color: #fff; text-decoration: none; border-radius: 30px; font-weight: bold; letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); transition: transform 0.3s, box-shadow 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
.btn-submit svg { width: 24px; height: 24px; fill: currentColor; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.contact-right-inline { margin-top: 30px; display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.contact-right-inline .contact-icons { display:flex; gap:12px; }
.contact-right-inline .contact-info { margin-top:8px; display:flex; flex-direction:column; gap:6px; color:#495057; font-size:1.05rem; }

@media (min-width: 769px) {
    .inquiry-form { margin-top: 50px; }
}

@media (max-width: 768px) {
    .contact-layout { flex-direction: column; gap: 30px; padding: 100px 16px 40px; }
    .contact-text { flex: none; width: 100%; max-width: none; padding-right: 0; text-align: left; }
    .contact-text .big-contact-title { font-size: 2.2rem; letter-spacing: 3px; display: inline-block; }
    .contact-text .big-contact-title::after { display: block; left: 35; transform: none; width: 45%; bottom: -10px; }
    .contact-desc { font-size: 1rem; text-align: left; }
    .contact-desc.special { font-size: 1.05rem; }
    .word-red, .word-orange { font-size: 1.5em; }
    .contact-form-container { flex: none; width: 100%; padding-left: 0; }
    .contact-text::before { font-size: 13vw; top: -40px; left: 0; }
    .inquiry-form { width: 100%; max-width: 100%; margin: 0; background: transparent; padding: 0; border-radius: 0; border: none; box-shadow: none; text-align: left; }
    .btn-submit { width: auto; min-width: 140px; padding: 10px 28px; font-size: 1rem; margin: 10px auto 0; justify-content: center; }
    .inquiry-form input, .inquiry-form textarea, .inquiry-form select { font-size: 16px; }        
    .contact-right-inline { width:100%; align-items:flex-start; text-align:left; padding:0; }
    .contact-right-inline .contact-icons { justify-content:flex-start; }
    .form-row { flex-direction: column; gap: 12px; }
}

/* =========================================
   H1 Marquee Styles
   ========================================= */
.h1-marquee-mask {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.h1-marquee-inner {
    display: flex;
    width: max-content;
    animation: h1-marquee 35s linear infinite;
}

@keyframes h1-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   LINE Integration Section Styles
   ========================================= */
.line-section {
    padding: 50px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.line-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.line-css-mockup {
    flex: 1;
    width: 100%;
    max-width: 350px;
    height: 650px;
    background: #fff;
    border: 10px solid #212529;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: transform 0.5s ease;
    /* iOS Safari 渲染修復 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    z-index: 1;
}

.line-container:hover .line-css-mockup {
    transform: scale(1.02);
}

.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 25px; background: #212529;
    border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10;
}

.line-header-bar {
    background: #212529; padding: 35px 20px 15px; display: flex;
    justify-content: space-between; align-items: center; color: #fff; z-index: 5;
}
.line-name { font-weight: bold; font-size: 1rem; letter-spacing: 1px; }
.line-header-icons { font-size: 1.5rem; cursor: pointer; }

.line-chat-content {
    flex: 1; background: #7292c4; padding: 15px; display: flex;
    flex-direction: column; gap: 15px; overflow-y: auto; position: relative;
    min-height: 0;
    scrollbar-width: none; /* Firefox 隱藏捲軸 */
}
.line-chat-content::-webkit-scrollbar { display: none; /* Chrome/Safari 隱藏捲軸 */ }

.chat-row { display: flex; align-items: flex-end; gap: 8px; opacity: 0; animation: chatFadeIn 0.5s forwards; }
.chat-row:nth-child(1) { animation-delay: 0.2s; }
.chat-row:nth-child(2) { animation-delay: 1.2s; }
.chat-row:nth-child(3) { animation-delay: 2.2s; }
.chat-row.right { justify-content: flex-end; }

.chat-avatar {
    width: 32px; height: 32px; background: #fff; border-radius: 50%;
    background-image: url('logo.png'); background-size: 70%;
    background-position: center; background-repeat: no-repeat; flex-shrink: 0;
}

.chat-bubble {
    background: #fff; padding: 10px 14px; border-radius: 18px;
    border-top-left-radius: 4px; font-size: 0.85rem; line-height: 1.4;
    max-width: 75%; box-shadow: 0 1px 2px rgba(0,0,0,0.1); color: #212529;
}

.chat-row.right .chat-bubble {
    background: #98e165; border-top-left-radius: 18px; border-top-right-radius: 4px;
}

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

.line-rich-menu {
    background: #f8f9fa; border-top: 1px solid #dee2e6;
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
    height: 200px;
}

.menu-btn {
    border: 1px solid #e9ecef; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s; color: #495057;
}
.menu-btn:hover { background: #e9ecef; }
.menu-icon { font-size: 1.5rem; margin-bottom: 4px; }
.menu-text { font-size: 0.75rem; font-weight: bold; }

.line-right {
    flex: 1;
    text-align: left;
}

.line-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.line-title .subtitle {
    display: block;
    font-size: 1rem;
    color: #06c755; /* LINE Green */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: "Didot", "Bodoni MT", "Times New Roman", serif;
}

.mobile-line-title { display: none; }

.line-desc {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.8;
}

.line-feature-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #06c755;
}

.line-feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #212529;
    font-weight: 700;
}

.line-feature-item p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.mobile-line-interaction { display: none; }

@media (max-width: 768px) {
    .line-container { flex-direction: column; gap: 30px; }
    .line-css-mockup { max-width: 300px; height: 550px; margin-bottom: 20px; flex: 0 0 auto; width: 100%; }
    .line-rich-menu { height: 160px; }
    .line-right { text-align: center; }
    .line-title { font-size: 2rem; }
    .mobile-line-title { display: block; text-align: center; }
    .desktop-line-title { display: none; }
    .line-desc { text-align: justify; }
    
    .desktop-features { display: none; }
    .mobile-line-interaction { display: block; margin-top: 20px; }
    
    .line-btn-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
    .line-btn { padding: 8px 16px; border: 1px solid #06c755; background: transparent; color: #06c755; border-radius: 20px; font-weight: bold; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; }
    .line-btn.active { background: #06c755; color: #fff; box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3); }
    
    .line-feature-content { display: none; animation: fadeIn 0.5s; text-align: left; background: #f8f9fa; padding: 20px; border-radius: 12px; }
    .line-feature-content.active { display: block; }
    .line-feature-content h3 { color: #06c755; margin-bottom: 10px; font-size: 1.3rem; text-align: center; }
}

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