
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 15, 35, 0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 93, 145, 0.9);
}

.nav-container {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
}

.logo-icon {
    display: inline-block;
    width: 200px;
    height: 60px;
    background-image: url('../img/toplogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #00d4ff, #4ade80);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.language-btn::after {
    content: '▼';
    font-size: 0.6rem;
}

.language-btn.active::after {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 130px;
    opacity: 0;
    text-align: center;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-dropdown a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.language-dropdown a.active {
    color: #00d4ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.hamburger-line {
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-line-long {
    width: 25px;
}

.hamburger-line-short {
    width: 18px;
    margin-left: auto;
}

.hamburger.active .hamburger-line-long {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line-short {
    transform: rotate(-45deg);
}


/* 快速導航 */
.quick-nav-section {
    position: relative;
    height: 65vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    background-image: url('../img/service.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
}

.quick-nav-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 32, 61, 0.6);
    z-index: 1;
}

.quick-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quick-nav-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.quick-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-nav-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #374151;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.quick-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #0f203d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-nav-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.9);
}

/* 動畫效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 服務據點區域 */
.branches-section {
    padding: 100px 40px;
    background: #f0f9f4;
}

.branches-container {
    max-width: 1400px;
    margin: 0 auto;
}



.branch-card {
    background: #fafdfb;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.branch-header {
    background: #ffffff;
    padding: 50px 50px 40px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.branch-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0f203d;
    margin: 0 auto;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.branch-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7cb342, #4ade80);
    border-radius: 2px;
}

.branch-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
}

.branch-image-wrapper {
    grid-row: 1;
    position: relative;
    background: #f0f0f0;
    height: 600px;
    max-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.branch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.branch-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999;
    font-size: 1.2rem;
    text-align: center;
    padding: 40px;
}

.branch-info {
    grid-row: 2;
    padding: 50px;
}

.branch-contact {
    margin-bottom: 40px;
}

.branch-contact-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #7cb342;
}

.branch-contact h3 {
    font-size: 1.8rem;
    color: #0f203d;
    margin: 0;
}

.map-link {
    display: inline-block;
    color: #7cb342;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item strong {
    color: #0f203d;
    min-width: 80px;
    font-weight: 600;
}

.contact-item span {
    color: #555;
    flex: 1;
}

.map-link:hover {
    color: #0f203d;
    text-decoration: underline;
}

.branch-details {
    margin-top: 50px;
}

.branch-details h4 {
    font-size: 1.6rem;
    color: #0f203d;
    margin: 40px 0 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
    position: relative;
    display: inline-block;
    width: 100%;
}

.branch-details h4:first-child {
    margin-top: 0;
}

.branch-details h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7cb342, #4ade80);
    border-radius: 2px;
}

.branch-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.branch-details li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.8;
}

.branch-details li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #7cb342;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.branch-details p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}


/* 響應式設計 */
@media (max-width: 1024px) {
    .branch-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: url('../img/leaf.jpg') center/cover no-repeat;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 600;
        max-width: 300px;
        transition: all 0.3s ease;
        position: relative;
        display: block;
        padding: 15px 40px;
        border-radius: 60px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a:hover {
        color: #535353;
        transform: translateY(-5px) scale(1.05);
        background: rgb(241, 253, 255);
    }

    .nav-menu a::before {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .logo-icon {
        width: 130px;
        height: 40px;
    }

    .quick-nav-section {
        min-height: 300px;
        padding: 40px 20px;
        margin-top: 0;
        background-attachment: scroll;
        align-items: flex-end;
        padding-bottom: 70px;
    }


    .quick-nav-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .quick-nav-buttons {
        gap: 8px;
    }

    .quick-nav-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }



    .branches-section {
        padding: 60px 20px;
    }

    .branch-title {
        font-size: 2rem;
    }

    .branch-info {
        padding: 30px 20px;
    }

    .branch-header {
        padding: 40px 20px 30px;
    }

    .branch-image-wrapper {
        height: 200px;
    }
}

