/* 基本樣式重置 */


body {
	font-family: "微軟正黑體", "Arial Unicode MS";
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
/*    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* 黑色陰影 */
   
}

ul {
    list-style: none;
}

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

/* 導航欄樣式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/*.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 5%;
    max-width: 1920px;
    margin: 0 auto;
}*/

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
     padding: .5rem 5%;
}
@media screen and (max-width: 1600px) {
    .navbar {
        padding: .5rem 2%; 
    }
    
    .nav-menu li a {
        font-size: 15px; 
        padding: 5px ; 
    }
    
    .logo img {
       height: 45px;
    }
}
.logo {
    display: flex;
    align-items: center;
    font-size: 2.0rem;
    font-weight: bold;
    color: #2c3e50;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
}

.nav-menu > li {
    position: relative;
    margin-left: 1rem;
}

.nav-menu > li > a {
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    color: #006da5;
}

.nav-menu > li > a:hover {
    color: #4f9bbf;
}


/* 手機版菜單按鈕 */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Banner輪播樣式 */
.banner {
    position: relative;
    margin-top: 77px;
    height:auto ;/*calc(100vh - 100px)*/
    background-color: #fff; /* 補白色 */
    overflow: hidden;
}

.slider {
    position: relative; /* 絕對定位的 slide 相對於 slider */
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto; /* 水平置中 */
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    max-width: 500px;
    border-radius: 5px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2rem;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* 主要內容樣式 */
.container {
    max-width: 1200px;
    margin: 0.1rem auto;
    padding: 0 1rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.services {
    margin: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
}

.contact {
    margin: 4rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info i {
    margin-right: 10px;
    color: #e74c3c;
}

/* 頁尾樣式 */
footer {
    background-color: #16558C;
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1700px;/*1200px*/
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-section p, .footer-section li {
    margin-bottom: 1rem;
    color: #fff;
	font-size: 1.1rem;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
    color: #96c3d8;
    font-size: 0.9rem;
}
.footer-bottom p a{color: #96c3d8;}

/* 響應式設計 */
@media (max-width: 992px) {
  .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%; /* 確保是從右邊滑出 */
        left: auto !important; /* 加入 !important 強制清除原本左側的定位，避免 Bootstrap 影響 */
        background-color: #fff;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    /* 將 active 改為自訂的 open-menu */
    .nav-menu.open-menu {
        right: 0;
    }

    /* 保持原有的項目樣式 */
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    /* 手機版子選單展開樣式 */
    .dropdown-content, .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu,
    .dropdown.active .dropdown-content {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    /* 以下是漢堡選單變成 X 的動畫，也同步改為 open-menu */
    .menu-toggle.open-menu .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.open-menu .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open-menu .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .banner {
        height: 400px;
    }

    .slide-content {
        left: 5%;
        max-width: 90%;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .slide-content {
        padding: 1rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 250px;
        margin-top: 60px;
    }

    .slide-content {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 30px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .services h2, .contact h2 {
        font-size: 1.8rem;
    }
}

 /* 行動呼籲按鈕 */

        .cta-button {

            display: inline-block;

            background-color: #0d82f5;

            color: white;

            padding: 12px 30px;

            border-radius: 30px;

            text-decoration: none;

            font-weight: bold;

            margin-top: 20px;

            transition: all 0.3s;

            border: none;

            cursor: pointer;

            font-size: 16px;

        }

        

        .cta-button:hover {

            background-color: #e65a2b;

            transform: translateY(-3px);

            box-shadow: 0 5px 15px rgba(230, 90, 43, 0.3);

        }

        

        .text-center {

            text-align: center;

        }

        /* 右下角浮動按鈕樣式 */
        .floating-buttons {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .float-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .float-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }
        
        .float-btn img {
            width: 30px;
            height: 30px;
        }
        
        .phone {
            background-color: #4CAF50;
        }
        
        .line {
            background-color: #06C755;
        }
        
        .top {
            background-color: #2196F3;
        }
		.booking {
  background-color: #FF9800; /* 橘色預約按鈕 */
}
     /* 英雄區塊 */

        .hero {

            background-color: var(--primary-color);

            color: white;

            padding: 80px 0;

            text-align: center;

        }

        

        .hero h1 {

            font-size: 2.5rem;

            margin-bottom: 20px;

            color: white;

        }

        

        .tagline {

            display: flex;

            justify-content: center;

            flex-wrap: wrap;

            gap: 15px;

            margin-top: 20px;

        }

        

        .tagline-item {

            background-color: rgba(255,255,255,0.2);

            padding: 8px 15px;

            border-radius: 20px;

            font-size: 14px;

        }

        

        /* 服務保證區塊 */

        .service-highlights {

            padding: 60px 0;

        }

        

        .section-title {

            text-align: center;

            margin-bottom: 0px;

        }

        

        .guarantee-grid {

            display: grid;

            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

            gap: 30px;

        }

        

        .guarantee-card {

            background: white;

            padding: 30px;

            border-radius: 8px;

            box-shadow: 0 5px 15px rgba(0,0,0,0.05);

            transition: transform 0.3s, box-shadow 0.3s;

        }

        

        .guarantee-card:hover {

            transform: translateY(-5px);

            box-shadow: 0 10px 25px rgba(0,0,0,0.1);

        }

        

        .guarantee-card h3 {

            color: var(--accent-color);

            margin-bottom: 15px;

            font-size: 1.2rem;

        }

        

        .guarantee-card i {

            font-size: 2rem;

            color: var(--primary-color);

            margin-bottom: 15px;

            display: block;

        }

        

        /* 評價區塊 */

        .reviews {

            background-color: var(--secondary-color);

            padding: 20px 0;

        }

        

        .review-grid {

            display: grid;

            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

            gap: 20px;

        }

        

        .review-card {

            background: white;


            padding: 8px;

            border-radius: 8px;

            box-shadow: 0 3px 10px rgba(0,0,0,0.05);

        }

        

        .stars {

            color: #ffc107;

            margin-bottom: 15px;

        }

        

        .review-card p {

           /* margin-bottom: 15px;*/

            font-style: italic;

        }

        

        .reviewer {

            font-weight: bold;

            color: var(--primary-color);

        }

ul.nav-menu{margin-top: 1rem}  

/* =========================================================
   下拉式選單樣式修正
   ========================================================= */

/* 1. 滑鼠懸停主項目時顯示選單 */
.dropdown:hover .dropdown-content,
.dropdown:hover .dropdown-menu,
.nav-menu li:hover > .dropdown-content,
.nav-menu li:hover > .dropdown-menu {
    display: block !important;
}

/* 2. 下拉選單外層容器：清除左右內距與多餘間距 */
.dropdown-content,
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    width: max-content;             /* 依照內容寬度彈性延伸 */
    padding: 0 !important;          /* 強制清除內距，讓背景貼齊邊界 */
    margin: 0 !important;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;               /* 裁切邊緣，確保 hover 背景不超出圓角 */
    z-index: 1000;
}

/* 3. 清除下拉選單內部 li 的任何外距 */
.dropdown-content li,
.dropdown-menu li,
.nav-menu .dropdown-content li,
.nav-menu .dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: block;
}

/* 4. 下拉選單連結項：強制 100% 滿版區塊 */
.nav-menu .dropdown-content a,
.nav-menu .dropdown-menu a,
.dropdown-content a,
.dropdown-item {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 18px !important;  /* 文字間距由 padding 撐開 */
    color: #333333 !important;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

/* 5. Hover 灰色背景滿版 */
.nav-menu .dropdown-content a:hover,
.nav-menu .dropdown-menu a:hover,
.dropdown-content a:hover,
.dropdown-item:hover {
    background-color: #f2f2f2 !important;
    color: #333333 !important;
}

/* 移除最後一項的底線 */
.dropdown-content li:last-child a,
.dropdown-content a:last-child {
    border-bottom: none;
}