/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans TC", sans-serif;
    line-height: 1.6;
    color: #333;
}
p{
    font-size: 16px;
}
.text-box li{
    font-size: 16px;
}
/* 導覽列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1); /
color: #d4a54d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.navbar a {
    color: #00b9ad;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
}
.logo-image{
    width: 200px;
}
nav ul li a{
    padding: 6px 16px;
}
nav ul li a:hover{
    color:#fff;
    background-color: #00b9ad;
    padding: 6px 16px;
    border-radius: 30px;
    transition: 0.3s;
}
.desktop-menu {
    padding: 0;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #fff;
}

/* 子選單樣式 */
.submenu {
    display: none;
    position: absolute;
    top: 55px;
    background: rgba(0,0,0,0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 100px;
    z-index: 1000;
    padding: 10px;
    margin-left: -15px;
}
.submenu li{
    padding: 7px 0;
}
.submenu li a {
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
}

.submenu li a:hover {
    color: #fff;
    border: none;
}

/* hover 顯示 submenu */
.has-submenu:hover .submenu {
    display: block;
}
.sub a{
    font-size: 15px!important;
    color:#949494;
}

/* 首頁 Hero 區 */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ✅ 視差滾動效果 */
    display: flex;
    align-items: center;
    padding: 0 40px;
    padding-top: 120px;
    color: white;
}
.hero1 {
    background-image: url('../images/banner1.png');
    height: 80vh;
}
.hero2 {
    background-image: url('../images/banner2.png');
    height: 58vh;
}
.hero3 {
    background-image: url('../images/banner3.png');
    height: 58vh;
}
.hero4 {
    background-image: url('../images/banner4.png');
    height: 58vh;
}
.hero5 {
    background-image: url('../images/banner5.png');
    height: 58vh;
}
.hero6 {
    background-image: url('../images/banner6.png');
    height: 58vh;
}

.hero-text1{
    font-size: 90px;
    color: #fff;
    margin-left: 100px;
    text-shadow: 5px 5px 5px rgba(0,0,0,0.5);
}
.hero-text{
    width: 100%;
}
.hero-text2{
    font-size: 90px;
    color: #fff;
    margin:auto;
    text-align: center;
    text-shadow: 5px 5px 5px rgba(0,0,0,0.5);
}
.hero-image{
    width: 100%;
    height: 100%;;
}
h1{
    font-size: 90px;
    line-height: 1.3em;
}
h3{
    font-size: 22px;
}
h6{
    font-size: 12px;
    line-height:20px;
}

/* 服務區塊 */
.services {
    padding: 60px 40px;
    text-align: center;
}
.services h2 {
    color: #00b9ad;
    font-size: 28px;
    margin-bottom: 40px;
}
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: auto;
}
.service-item {
    width:150px;
    height: 48%;
    text-align: center;
}
.service-item img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}
.service-item img:hover{
    opacity: 0.8;
    transition: 0.3s;
}
.service-item p {
    margin-top: 12px;
    font-size: 16px;
}
.service-item a{
    color: #000;
    text-decoration: none;
}
.service-item a:hover{
    color: #00b9ad;
    font-weight: bold;
}

/*最新消息*/
.news{
    margin-bottom: 40px;
}
.news-box .tabs-wrapper{
    width: 900px;
    margin: auto;
    text-align: center;
}
.news-box .tabs{
    gap: 86px;
}
.news h2 {
    color: #00b9ad;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}
.news-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.news-card {
    width: 376px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}
.news-card a{
    text-decoration: none;
    color: #000;
}
.news-card a:hover{
    text-decoration: none;
    color: #00b9ad;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 16px 8px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制顯示2行 */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;     /* 每行高度 */
    max-height: 3em;        /* 2行高度 = line-height * 2 */
}

.image-box2 {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
}

.image-box2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-box2:hover img {
    transform: scale(1.1);
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
}

.tag {
    border: 1px solid #00b9ad;
    color: #00b9ad;
    font-size: 13px;
    border-radius: 50px;
    padding: 2px 8px;
}

.date {
    font-size: 13px;
    color: #666;
}
/*新聞換頁*/
.news-list {
    max-width: 960px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 16px;
    width: 900px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

/* .news-item:hover {
  background: #f9f9f9;
} */

.news-content h3 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    margin: 0 0 12px;
}
.news-content h3:hover{
    color: #00b9ad;
}

.meta2 {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #666;
}

/* .tag {
  border: 1px solid #00b9ad;
  color: #00b9ad;
  font-size: 13px;
  border-radius: 50px;
  padding: 4px 12px;
} */

.arrow {
    font-size: 20px;
    color: #00b9ad;
    flex-shrink: 0;
    padding: 20px 40px;
}
.news-box{
    margin-top:40px; ;
}
.news-article{
    max-width: 1000px;
    padding: 40px;
    margin: 60px auto 0 auto;
}
.news-article img{
    max-width: 800px;
}
.news-article h5{
    font-size: 16px;
    color: #666;
}
.news-article-image{
    padding: 20px 0;
    width: 100%;
}
.bt-article{
    display: inline-block;
    background-color: #00b9ad;
    color: white;
    padding: 6px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    margin: 20px 0;
}
.bt-article a{
    color: #fff;
}
.prev{
    float: left;
}
.next{
    float: right;
}
.prev:hover,.next:hover{
    background:#3B827E;
}
.clear{
    clear: both;
}
.pagination {
    width: 340px;
    margin: auto;
    text-align: center;
    display: flex;
    gap: 10px;
    align-items: center;
    margin:20px auto 40px auto;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #888;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: 0.2s;
}

.page-btn:hover {
    border-color: #00b9ad;
    color: #00b9ad;
    font-weight: bold;
}

.page-btn.active {
    background-color: #00b9ad;
    color: white;
    font-weight: bold;
    border: none;
}


/* 預約區塊 */
.appointment {
    background-image: url('../images/action.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 50px 20px;
}
.appointment h3 {
    font-size: 50px;
    line-height: 70px;
    margin-bottom: 20px;
}
.btn {
    display: inline-block;
    background-color: #00b9ad;
    color: white;
    padding: 8px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
}
.btn:hover{
    background:#3B827E;
}
.action-image{
    width: 100%;
    height: 100%;;
}
/* 頁尾 */
.footer {
    background-color: rgba(255, 255, 255, 1);
    color: #00b9ad;
    text-align: center;
    padding: 40px 20px;
}
.footer-logo {
    color: #00b9ad;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 16px;
}
.footer-info p {
    margin: 4px 0;
}
.footer-info a{
    color: #00b9ad;
    text-decoration: none;
}

.footer-info a:hover{
    color:#00b9ad;
}
.copyright{
    color:#8d8c8c;
    font-size: 15px;;
}

/* 漢堡選單按鈕（僅手機可見） */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #00b9ad;
    margin-bottom: 10px;;
}

/* 手機版選單（預設隱藏） */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    padding: 20px;
    flex-direction: column;
    text-align: center;
    z-index: 100011;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.mobile-menu a {
    text-decoration: none;
    display: block;
    margin: 13px 0;
    font-size: 18px;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* 預設不顯示 */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop:hover {
    transform: scale(1.1);
}
#backToTop img{
    width: 48px;
    height: 48px;
}

.text-box{
    max-width: 1000px;
    padding: 40px;
    margin: 0 auto;

}
.text-box h2{
    line-height: 40px;
}
.text-box h4{
    font-size: 15px;
    color:#666;
}
.text-box p{
    margin-bottom: 20px;
}


.text-box img{
    max-width: 800px;;
}
.tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs {
    display: flex;
    gap: 43px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.tab {
    font-weight: bold;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 18px;
}

.tab.active {
    color: #00a39b;
    padding-bottom: 4px;
}

.tab a{
    color: #000;
    text-decoration: none;
}
/* 內容區 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;;
}

.column {
    flex: 1;
    min-width: 300px;
}
.note {
    color: #00a39b;
    font-weight: bold;
    margin-top: 30px;
}
.note-list{
    padding: 0 20px;;
}
.table-wrapper {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f5f5f5;
}
.padding{
    padding: 20px;
}
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Helvetica", "Microsoft JhengHei", sans-serif;
}

.form-title {
    text-align: center;
    font-size: 21px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-grid > div {
    flex: 1 1 calc(50% - 10px);
}

.form-grid textarea,
.form-grid select,
.form-grid input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #888;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-note {
    color: #00bfa5;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-grid .full {
    flex: 1 1 100%;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    background-color: #00bfa5;
    color: white;
    font-size: 20px;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}
.form-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 1rem center;
    background-size: 1em;
    padding-right: 2.5em; /* 空出空間放箭頭 */
}
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Helvetica", "Microsoft JhengHei", sans-serif;
}

.faq-section h2 {
    text-align: center;
    color: #00796b;
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    padding: 16px 0;
}

.faq-item summary {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: #00796b;;
}

.faq-item p {
    margin-top: 10px;
    line-height: 1.6;
    color: #444;
}
@media (max-width: 1200px) and (min-width: 769px) {
    .news-box .tabs-wrapper{
        width: 700px;
    }
    .news-box .tabs {
        gap: 45px;
    }
}
@media (max-width: 1000px) and (min-width: 769px) {
    .navbar {
        padding: 20px 40px;
    }
    .logo-image{
        width: 160px;
    }
    nav ul li a {
        padding: 6px 8px;
    }
    nav ul li a:hover {
        padding: 6px 8px ;
    }
    .hero-text1{
        font-size: 60px;
    }
    .appointment h3{
        font-size: 40px;
    }
}
@media (max-width: 768px) {

    .service-item {
        width:48%;
        height: 48%;
    }
    .news-item{
        width: 100%;
    }
    .text-box{
        padding: 20px;
    }
    .text-box img{
        width: 100%;
        height: 100%;
    }
    .text-box h2{
        line-height: 32px;
    }
    #bmc-message{
        min-width: 100%!important;
    }
    .news-article{
        padding:20px;
    }
    .arrow {
        padding: 10px;
    }
    .news-box .tabs-wrapper{
        width: 400px;
        padding: 20px 20px 0 20px ;
    }
    .news-box .tabs {
        gap: 30px;
    }
    .news-box{
        margin-top:10px ;
    }
    .pagination{
        margin: 0 auto 20px auto;
    }
    .news-grid {
        padding: 20px;
    }
    .news{
        margin-top:40px;
        margin-bottom: 10px;
    }
    .desktop-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .logo-image{
        width: 150px;
    }
    .navbar{
        padding: 6px 16px 0 16px;
    }
    .services{
        padding: 12px 20px;
    }
    h1{
        font-size: 44px;
        line-height:1.3em;
    }

    .hero-text1{
        font-size: 40px;
        margin-left: 35px;
    }
    .hero-text2{
        font-size: 40px;;
    }
    .appointment{
        background-attachment:inherit;
    }
    .appointment h3{
        font-size: 30px;
    }
    .hero{
        height: 50vh;
        background-attachment:inherit;
        padding-top:80px;
    }
    .service-grid{
        gap:40px;
    }
    .service-item p{
        margin-top: 8px;
    }
    #backToTop {
        bottom: 20px;
        right: 20px;;
    }
    .tabs-wrapper {
        margin-right: -20px; /* 可選，避免裁切 */
        padding-bottom: 10px;
    }
    .tabs {
        gap: 20px;
        padding-right: 20px;
    }

    table {
        font-size: 14px;
    }
    .chart {
        height: 100%;
        width: 100%;;
    }
    .columns{
        gap: 0;
    }
    .form-grid > div {
        flex: 1 1 100%;
    }
    .faq-item summary {
        font-size: 16px;
    }
    .form-wrapper{
        padding: 10px 0;
    }
}


@media (max-width: 420px) {
    .service-grid{
        gap:10px;
    }

    .hero-text1{
        font-size: 30px;
        margin-left:10px;
    }

    .appointment h3{
        font-size: 20px;
        line-height: 30px;
    }
}