/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 導覽列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
/ color: #000;
    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: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
}

.logo-image {
    width: 300px;
}

nav ul li a {
    padding: 6px 16px;
}

nav ul li a:hover {
    color: #fff;
    background-color: #fb9409;
    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: #fb9409;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #fff;
}

/* 子選單樣式 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    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 a {
    white-space: nowrap;
    color: #333;
}

.submenu li a:hover {
    background: #f6f6f6;
    color: #c0964b;
}

/* hover 顯示 submenu */
.has-submenu:hover .submenu {
    display: block;
}

.sub a {
    font-size: 16px !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 {
    color: #fff;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: auto;
}

.hero-text1 h1 {
    font-size: 90px;
    line-height: 1.3em;
}

.hero-text1 h3 {
    font-size: 16.3px;
    margin-top: 20px;
    line-height: 1em;
}

.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%;;
}

/* 服務區塊 */
.services {
    padding: 60px 40px;
    text-align: center;
}

.services h2 {
    color: #fb9409;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: auto;
}

.service-item {
    width: 150px;
    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: #fb9409;
    font-weight: bold;
}

/*最新消息*/
.news h2 {
    color: #fb9409;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.news-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.news-box .tabs-wrapper {
    width: 834px;
    margin: auto;
    text-align: center;
}

.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: #fb9409;
}

/* .news-card:hover{
  border-radius: 0;
} */

.news-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 16px 8px;
    line-height: 1.5;
}

.image-box2 {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
}

/* .image-box2:hover {
border-radius: 0;
} */
.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 #fb9409;
    color: #fb9409;
    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;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}


.news-content h3 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    margin: 0 0 12px;
}

.news-content h3:hover {
    color: #fb9409;
}

.meta2 {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #666;
}


.arrow {
    font-size: 20px;
    color: #fb9409;
    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 h5 {
    font-size: 16px;
    color: #666;
}

.news-article-image {
    padding: 20px 0;
    width: 100%;
}

.bt-article {
    display: inline-block;
    background-color: #fb9409;
    color: white;
    padding: 6px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    margin: 20px 0;
}

.bt-article a {
    color: #fff;
    text-decoration: none;
}

.prev {
    float: left;
}

.next {
    float: right;
}

.prev:hover, .next:hover {
    background: #FBBA3A;
}

.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: #fb9409;
    color: #fb9409;
    font-weight: bold;
}

.page-btn.active {
    background-color: #fb9409;
    color: white;
    font-weight: bold;
    border: none;
}

/*團隊區塊*/
.team-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    align-items: center;
    margin: auto;
}

.team-grid h3 {
    font-size: 18px;
    line-height: 28px;
}

.text-box h2 {
    color: #fb9409;
    font-size: 28px;
}

.text-box h3 {
    font-size: 20px;
    line-height: 30px;;
}

.text-box h4 {
    font-size: 16px;
}

.text-box p {
    font-size: 16px;
}

.text-box li {
    font-size: 16px;
}

.team {
    text-align: center;
}

.member {
    text-align: center;
}

.member a {
    color: #000;
    text-decoration: none;
}

.member a:hover {
    color: #333;
    text-decoration: none;
}

.member2 {
    text-align: left;
    margin: 20px 0;;
}

.member2 img {
    width: 140px;;
}

.avatar-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden; /* 限制放大後圖片不溢出圓框 */
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-box:hover img {
    transform: scale(1.1); /* 放大圖片 */
}

.avatar-box2 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
    float: left;
}

.avatar-box2 img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.1,0.25,1);
}

.member-info2 {
    width: 80%;
    float: left;
    margin: 0 20px;
}

.margin2 {
    margin: 15px 20px !important;
}

.clear {
    clear: both;
}

:target::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
}

/* 預約區塊 */
.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;
    margin-bottom: 20px;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: #fb9409;
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    background: #FBBA3A;
}

.action-image {
    width: 100%;
    height: 100%;;
}

/* 頁尾 */
.footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;;
}

.footer-logo {
    color: #fb9409;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-info p {
    margin: 4px 0;
}

.footer-info a {
    color: #000;
    text-decoration: none;
}

.footer-info a:hover {
    color: #fb9409;
}

.copyright {
    color: #8d8c8c;
}

/* 漢堡選單按鈕（僅手機可見） */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fb9409;
    margin-bottom: 10px;;
}

/* 手機版選單（預設隱藏） */
.mobile-menu {
    display: none;
    position: fixed;
    top: 51px;
    right: 0;
    background-color: #fff;
    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;
}

.check {
    text-align: center;
    font-size: 18px;
    color: #fb9409; /* 打勾 */
}

.text-box {
    max-width: 1050px;
    padding: 40px;
    margin: auto;
}

.text-box p {
    margin-bottom: 20px;
}

.text-box img {
    max-width: 1000px;
    width: 100%;
    height: 100%;;
}

.tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs {
    display: flex;
    gap: 47px;
    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: #fb9409;
    padding-bottom: 4px;
}

.tab a {
    color: #000;
    text-decoration: none;
}

.news-tabs .tabs {
    gap: 72px !important;
}

/* 內容區 */
.row-cols-lg-4 > * {
    flex: 0 0 auto;
    width: 25%;
}

.row-cols-2 > * {
    flex: 0 0 auto;
    width: 25%;
    padding: 12px;
}

.py-4 {
    padding-top: .5rem !important;
    padding-bottom: 2.5rem !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.image-box {
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s ease-out both;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
    max-width: 365px;
    transition: transform 0.3s ease;
}

.image-box:hover img {
    transform: scale(1.15);
    transition: 0.3s;
}

.image-link {
    position: absolute;
    top: 46%;
    left: 29%;
    font-size: 2em;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.image-link:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* .image-box img:hover {
  opacity: 0.8;
} */
.py-4 {
    padding-top: .5rem !important;
    padding-bottom: 2.5rem !important;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #0d98ba;
    color: #fff;
}

th, td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
}

thead th {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    font-size: 1.6em;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
}

.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: #fb9409;
    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: #fb9409;
}

.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: 20px;
    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: #fb9409;
    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: #fb9409;
    color: white;
    font-size: 20px;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.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: #fb9409;
    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: #a57f36;
}

.faq-item p {
    margin-top: 10px;
    line-height: 1.6;
    color: #444;
}


@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;
    }

    .appointment h3 {
        font-size: 40px;
    }

    .member-info2 {
        width: 70%;
    }
}

@media (min-width: 769px) {

    .hero-text1 {
        text-align: left;
        margin-left: 100px;
    }

    .news-grid {
        max-width: 1200px;
    }

    .news-item {
        width: 834px;
    }
}

@media (max-width: 768px) {
    .text-link {
        width: 100%;
        display: block;
        font-size: 14px;
    }

    .text-box h2 {
        font-size: 24px;
    }

    .text-box {
        padding: 20px;
    }

    .news-tabs .tabs {
        gap: 50px !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;
    }

    .news-card {
        width: 336px;;
    }

    table {
        min-width: 100%;
    }

    .margin2 {
        margin: 0 !important;
    }

    .member-info2 {
        margin: 0;
        width: 100%;
    }

    .services h2 {
        margin-bottom: 0;
    }

    .member {
        padding: 10px 0;
    }

    .team span {
        font-size: 13px;
    }

    .center-text {
        font-size: 1.3em;
    }

    .row-cols-2 > * {
        flex: 0 0 auto;
        width: 50%;
        padding: 8px;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo-image {
        width: 220px;
    }

    .navbar {
        padding: 6px 16px 0 16px;
    }

    .services {
        padding: 12px 20px;
    }

    .hero-text1 h1 {
        font-size: 40px;
    }

    .hero-text1 h3 {
        font-size: 12px;
        margin-top: 10px;
    }

    .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: 0;
    }

    #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;
    }

}


@media (max-width: 420px) {
    .service-grid {
        gap: 10px;
    }

    .hero-text1 {
        font-size: 30px;
    }

    .appointment h3 {
        font-size: 20px;
    }
}