@charset "utf-8";
@import url("reset.css");
@import url("loading.css");
@import url("fontawesome_all.css");
@import url("../aos-master/aos-master/dist/aos.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');

/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------------------------------->>> Main <<<------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; letter-spacing:1px; }
html { height:100% }
body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; -webkit-text-size-adjust:none; font-size:12px; overflow-y:scroll; overflow-x:hidden; }
body, td, th,select,input {font-size: 12px;font-family: "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "Microsoft JhengHei", "新細明體", "PMingLiU", sans-serif;color:#333333;}

/*簡易設定*/
.iframe_ch { display:none }
.middle { vertical-align:middle; }
.center { text-align:center; }
.w100{ width:100%; }

.editor {overflow: hidden;padding: 0px 10px;line-height: 30px;font-size: 16px;width: 100%;letter-spacing: 1px;}
/*fix safari*/
input, select, textarea{ -ms-box-sizing:content-box; -moz-box-sizing:content-box; box-sizing:content-box; -webkit-box-sizing:content-box;}


/* 重置iOS表單元件樣式 */
select, input, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
}

/* 特別針對select元素 */
select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23000"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 6px;
  padding-right: 30px;
}

/* 針對iOS的input樣式 */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"],
input[type="tel"] {
  -webkit-appearance: none;
  border-radius: 0;
}

/*連結*/
a{color: #28231c;text-decoration:none;}
a:hover{ color:#578fa2; }

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

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    overflow-x: hidden;
}
h3{
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.hero-container {
    width: 100vw;
    height: 100vh;
    background-image: url('../../images/index.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    /*251205 padding-top: 70vh;*/
    padding-top: 58vh;
}

/*.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}*/

.button-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    z-index: 2;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
}

.nav-button {
    color: white;
    text-decoration: none;
    padding: 8px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid transparent;
    min-width: 160px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button.blue {
    background: #61C3D0;
}

.nav-button.red {
    background: #E95A6E;
}

.nav-button.green {
    background: #9BA781;
}

.nav-button.purple {
    background: #7889A5;
}
.nav-button.orange {
    background: #ea6f19;
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    color:#FFF;
}

.nav-button:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-button {
        padding: 15px 30px;
        font-size: 16px;
        min-width: 200px;
    }

    .hero-container {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .nav-button {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }
}

/*全營幕遮罩*/
.bg-overlay { display:block; position:fixed; left:0; top:0; background:rgba(0, 0, 0, 0.7); opacity:0; visibility:hidden; width:100%; height:100%; z-index:9999; transition: all 0.2s linear; }
.bg-overlay.visible { opacity:1; visibility:visible }

/*分頁*/
.pager {

  width: 100%;

  margin: 50px auto;

  text-align: center;

  font-size: 16px;

}
  /* Header */
        .header {
            background: #fff;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

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

        .nav-menu {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            text-decoration: none;
            color: white;
            font-weight: 500;
            font-size: 16px;
            padding: 8px 20px;
            border-radius: 25px;
            transition: all 0.3s ease;
            display: block;
        }
        .nav-menu li:nth-child(1) a {
            background: #ea6f19;
        }

        .nav-menu li:nth-child(2) a {
            background: #61C3D0;
        }

        .nav-menu li:nth-child(3) a {
            background: #E95A6E;
        }

        .nav-menu li:nth-child(4) a {
            background: #9BA781;
        }

        .nav-menu li:nth-child(5) a {
            background: #7889A5;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        /* Dropdown Menu */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
            margin-top: 5px;
        }

        .nav-menu li:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown a {
            color: #333 !important;
            background: transparent !important;
            padding: 12px 20px;
            border-radius: 0;
            font-size: 14px;
            border-bottom: 1px solid #eee;
            transform: none !important;
            box-shadow: none !important;
        }

        .dropdown a:last-child {
            border-bottom: none;
            border-radius: 0 0 8px 8px;
        }

        .dropdown a:first-child {
            border-radius: 8px 8px 0 0;
        }

        .dropdown a:hover {
            background: #f8f9fa !important;
            color: #007bff !important;
        }

        /* Banner */
        .banner {
            width: 100%;
            height: 1000px;
            background-image: url('images/about1.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /*.banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
        }*/

        .banner-title {
            color: white;
            font-size: 3rem;
            font-weight: bold;
            text-align: center;
            z-index: 1;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        /* News Section */
        .news-section {
            max-width: 1200px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .section-title {
            font-size: 2.5rem;
            color: #333;
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #007bff;
        }

        .news-item {
            display: flex;
            margin-bottom: 40px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            align-items: flex-start;
            gap: 25px;
        }

        .news-image {
            flex-shrink: 0;
        }

        .news-image img {
            width: 200px;
            height: 150px;
            object-fit: cover;
            border-radius: 8px;
        }

        .news-content {
            flex: 1;
        }

        .news-date {
            color: #666;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .news-title {
            font-size: 1.4rem;
            color: #333;
            margin-bottom: 12px;
            font-weight: bold;
        }

        .news-summary {
            color: #666;
            line-height: 1.6;
            font-size: 15px;
        }

        /* Footer */
        .footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 40px 20px;
            margin-top: 60px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-info {
            margin-bottom: 20px;
        }

        .footer-info p {
            margin: 5px 0;
            font-size: 14px;
        }

        .copyright {
            border-top: 1px solid #555;
            padding-top: 20px;
            font-size: 13px;
            color: #ccc;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            .nav-menu {
                gap: 10px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-menu a {
                padding: 8px 15px;
                font-size: 14px;
            }

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

            .news-item {
                flex-direction: column;
                text-align: center;
            }

            .news-image img {
                width: 100%;
                max-width: 300px;
            }

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

         .banner-carousel {
            position: relative;
            width: 100%;
            height: 675px;
            overflow: hidden;
            background: #f0f0f0;
        }

        .carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slides {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.6s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-slide.active {
            opacity: 1;
            z-index: 1;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-caption {
            position: absolute;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            padding: 20px 40px;
            border-radius: 10px;
            max-width: 80%;
        }

        .carousel-caption h1 {
            font-size: 2.5rem;
            margin: 0 0 10px 0;
            font-weight: bold;
        }

        .carousel-caption p {
            font-size: 1.2rem;
            margin: 0;
        }

        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 15px 20px;
            cursor: pointer;
            font-size: 24px;
            transition: background 0.3s;
            z-index: 2;
            border-radius: 5px;
        }

        .carousel-control:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .carousel-control.prev {
            left: 20px;
        }

        .carousel-control.next {
            right: 20px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 2;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.3s;
        }

        .indicator.active {
            background: white;
        }

        .indicator:hover {
            background: rgba(255, 255, 255, 0.8);
        }

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

            .carousel-caption h1 {
                font-size: 1.5rem;
            }

            .carousel-caption p {
                font-size: 1rem;
            }

            .carousel-control {
                padding: 10px 15px;
                font-size: 18px;
            }
        }
        .footer-info a {color:#fff;}

        article{
            font-size: 15px;
    line-height: 1.5;
    margin-bottom:30px;
        }


         /* Gallery Section */
        .gallery-section {
            max-width: 1200px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .section-title {
            font-size: 2.5rem;
            color: #333;
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #9BA781;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 40px;
        }

        .gallery-item {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .gallery-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-image img {
            transform: scale(1.05);
        }

        .gallery-info {
            padding: 20px;
        }

        .gallery-date {
            color: #666;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .gallery-title {
            font-size: 1.1rem;
            color: #333;
            font-weight: bold;
            line-height: 1.4;
        }

        /* 預設封面圖（logo）灰階效果 */
        .default-cover-img {
            filter: grayscale(100%) brightness(0.9);
            opacity: 0.5;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            .nav-menu {
                gap: 10px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-menu a {
                padding: 8px 15px;
                font-size: 14px;
            }

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

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

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .gallery-image {
                height: 250px;
            }
        }

        .album-detail-section {
            max-width: 1200px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .album-header {
            margin-bottom: 40px;
        }

        .album-header h2 {
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 15px;
        }
        .album-title{
            font-size: 2rem;
            font-weight: bold;
        }

        .album-date {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        .album-description {
            color: #555;
            font-size: 1rem;
            line-height: 1.8;
            max-width: 100%;
            margin: 20px auto 40px;
            text-align: left;
        }

        .file-download {
            margin: 20px 0 30px;
            padding: 15px 20px;
            background: #f8f9fa;
            border-left: 4px solid #ea6f19;
            border-radius: 4px;
        }

        .download-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #ea6f19;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .download-link:hover {
            color: #c55a13;
            gap: 15px;
        }

        .download-link svg {
            flex-shrink: 0;
        }

        .album-divider {
            margin: 40px 0;
            border: none;
            border-top: 2px solid #e0e0e0;
        }

        .back-button {

            display: table;
            
            padding: 10px 20px;
            background: #ea6f19;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: all 0.3s;
            margin:auto;
            margin-bottom: 30px;
            margin-top:20px;

        }

        .back-button:hover {
            background: #f78636;
            color:#fff;
            transform: translateY(-2px);
        }

        .photo-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        .photo-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .photo-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .photo-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .photo-item:hover img {
            transform: scale(1.05);
        }

        @media (max-width: 1024px) {
            .photo-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .album-header h2 {
                font-size: 2rem;
            }

            .photo-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .photo-item img {
                height: 200px;
            }
        }

        @media (max-width: 480px) {
            .photo-grid {
                grid-template-columns: 1fr;
            }

            .photo-item img {
                height: 250px;
            }
        }

        /* YouTube Container */
        .youtube-container {
            position: relative;
            width: 100%;
            max-width: 1000px;
            margin: 30px auto;
            padding-bottom: 56.25%; /* 16:9 比例 */
            height: 0;
            overflow: hidden;
            background-color: #000;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .youtube-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Search Section */
        .search-section {
            max-width: 1200px;
            margin: 40px auto;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .search-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 20px;
        }

        .search-row {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .form-group {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            min-width: 0;
        }

        .form-group label {
            margin-bottom: 0;
            font-weight: bold;
            color: #333;
            font-size: 16px;
            min-width: 80px;
            flex-shrink: 0;
        }

        .checkbox-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            /* 恢復 checkbox 的預設外觀 */
            -webkit-appearance: checkbox;
            -moz-appearance: checkbox;
            appearance: checkbox;
        }

        .checkbox-item label {
            margin-bottom: 0;
            font-weight: normal;
            cursor: pointer;
            font-size: 15px;
        }

        .form-group input[type="text"] {
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 18px;
            max-width: 600px;
            width: 100%;
        }

        .search-button-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .search-button {
            background: #7889A5;
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .search-button:hover {
            background: #5a6a85;
        }

        @media (max-width: 768px) {
            .search-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .form-group {
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
            }

            .form-group label {
                min-width: auto;
            }

            .checkbox-group {
                gap: 15px;
            }

            .form-group input[type="text"] {
                max-width: 90%;
                width: 100%;
            }
        }

           .checkbox-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }


