html,
body {
    /* background-color: #F2F2F2; */
    background-color: #fff;
    font-family: 'Roboto', '微軟正黑體', sans-serif;
    font-size: 18px;
    /*line-height: 1.5;*/
    color: #555;
    /*
	text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	*/
}

a {
    color: #4695d6;
    transition: all 0.1s ease-out;
    line-height: 1.5em;
}

a:hover {
    color: #fa6e57;
    text-decoration: none;
    /* font-size:1.005em; */
}

#tcatitle {
    /*height: 125px;*/
    text-align: center;
}

#tcatitle img {
    display: inline-block;
    margin-top: -18px;
}

#tcatitle h4 {
    /*font-weight: 600;*/
    margin-top: -5px;
}

#tcatitle h5 {
    text-transform: capitalize;
    font-weight: normal;
    font-family: Helvetica, Arial, sans-serif;
    margin-top: -6px;
    letter-spacing: 1px;
}

.tca_navbar {
    background-image: linear-gradient(180deg, #39424c 0%, #687583 100%);
}

.tca_footer {
    background-image: linear-gradient(0deg, #39424c 0%, #687583 100%);
}

.tca_footer .list-inline-item a {
    font-size: 1.2em !important;
    vertical-align: middle;
}

.tca_footer .social-icon {
    width: 36px;
    height: 36px;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    cursor: pointer;
}

.tca_footer .social-icon:hover {
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

/*
.navbar-brand {
	position: absolute;
	display: block;
}
*/

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1);
    font-size: 24px;
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(120, 220, 255, 1);
    /*font-weight:bold;*/
}

.nav-item {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 30px;
    margin-left: 30px;
}

.nav-footer .list-inline-item a {
    color: rgba(255, 255, 255, 1);
    margin-right: 20px;
    margin-left: 20px;
    font-size: 18px;
}

.nav-footer .list-inline-item a:hover {
    color: rgba(120, 220, 255, 1);
}

/* dropdown menu */
.navbar-nav .dropdown-menu .dropdown-item {
    font-family: 'Roboto', '微軟正黑體', sans-serif;
    font-size: 18px;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    font-weight: bold;
    background-image: linear-gradient(180deg, #39424c 0%, #687583 100%);
    color: white;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    margin-top: 0;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.animate {
    animation-duration: 0.2s;
    -webkit-animation-duration: 0.2s;
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
}

.slideIn {
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0rem);
        opacity: 1;
    }

    0% {
        transform: translateY(1rem);
        opacity: 0;
    }
}

@-webkit-keyframes slideIn {
    0% {
        -webkit-transform: transform;
        -webkit-opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        -webkit-opacity: 1;
    }

    0% {
        -webkit-transform: translateY(1rem);
        -webkit-opacity: 0;
    }
}

/**/
.title_img {
    display: inline-block;
    /*
	width:fit-content;
	width:-webkit-fit-content;
	width:-moz-fit-content;
	*/
    /* background: url(../images/title_bg.gif) no-repeat right; */
/*     line-height: 42px;
    font-weight: bold;
    font-size: 24px;
    color: #f00;
    padding-left: 5px;
    padding-right: 50px;
    margin-top: 10px;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white, #555 3px 3px 4px;
 */
    color: #3e4650;
    font-size: 32px;
    font-weight: 600;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 10px;
    font-family: 'Noto Sans TC', sans-serif;
}

.top_btns {
    color: #4695d6;
    font-size: 14px;
    cursor: pointer;
}

.top_btns i {
    font-size: 23px;
}

.top_btns:hover {
    color: #fa6e57;
}

.newstitle {
    font-size: 24px;
    font-weight: bold;
    color: #f63;
    padding-top: 10px;
}

.carousel-caption {
    background-color: rgba(51, 51, 51, 0.7);
    right: 0;
    left: 0;
    font-size: 24px;
    line-height: 1.5em;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 15px;
    padding-right: 10px;
    padding-left: 10px;
    text-shadow: 1px 1px #333;
}

.carousel-control-next,
.carousel-control-prev {
    width: 10%;
}

.item_list,
.camera,
.item_img_list {
    padding: 0px;
}

.item_list li {
    list-style: none;
    background: url(../images/bullet1.gif) 0 0px no-repeat;
    padding-left: 20px;
    line-height: 160%;
    padding-bottom: 0.5em;
}

.item_img_list li:hover {
    /* font-weight:200; */
    color: #0d6efd;
}

.item_img_list li:hover .photo_wrapper {
    transform: scale(1.01);
    transition: all 0.1s ease-in-out;
}

.camera li {
    list-style: none;
    background: url(../images/bullet2.gif) left top no-repeat;
    padding-left: 30px;
    line-height: 160%;
    padding-bottom: 0.5em;
}

.item_img_list li {
    list-style: none;
}

/* 整體列表容器：縮小寬度 */
.item_list_v2 {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    width: 100%;
    max-width: 1000px;
    /* 控制整體寬度 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 每個項目 */
.item_list_v2 li {
    border-bottom: 1px solid #e6e6e6;
}

.item_list_v2 li:last-child {
    border-bottom: none;
}

/* 連結：懸掛縮排效果 */
.item_list_v2 li a {
    display: block;
    padding: 14px 20px 14px 34px;
    /* 左側增加留白 */
    color: #333;
    font-size: 18px;
    text-decoration: none;
    line-height: 1.5;
    transition: all 0.3s ease;

    /* 懸掛縮排：首行貼齊左邊，後續行自動縮排 */
    text-indent: -33px;
    /* 第一行向左推 */
    padding-left: 48px;
    /* 第二行起內縮 */
}

/* 滑鼠移入效果 */
.item_list_v2 li a:hover {
    background: linear-gradient(135deg, #1d84fa20, #1942fa15);
    color: #1d84fa;
    padding-left: 52px;
    /* 微動畫 */
}

/* 前置圖示 */
.item_list_v2 li a::before {
    content: "📰";
    margin-right: 6px;
    font-size: 20px;
    vertical-align: baseline;
    transition: transform 0.3s ease;
}

.item_list_v2 li a:hover::before {
    transform: scale(1.2);
}

.video-thumb {
    position: relative;
    display: inline-block;
}

.video-thumb img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

/* 播放按鈕 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: #cc0000;
    cursor: pointer;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    animation: pulse 2s infinite;
}

/* 呼吸動畫 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 光暈動畫 */
@keyframes glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 滑鼠移到外層 .video-thumb 就觸發效果 */
.video-thumb:hover .play-button {
    animation: pulse 1s infinite;
    color: #ff0000;
}

.video-thumb:hover .play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.4);
    animation: glow 1s infinite;
    z-index: -1;
}

.item_img_list li:hover .video-thumb {
    transform: scale(1.01);
    transition: all 0.1s ease-in-out;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: -o-ellipsis-lastline;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    height: 6em;
    word-break: break-all;
    word-wrap: break-word;
}

/*會員專區*/
.member_head1 {
    width: 100%;
    height: 44px;
    background: url(../images/member_head1_rwd.gif) no-repeat;
    font-size: 23px;
    line-height: 44px;
    font-weight: bold;
    text-indent: 60px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.member_head2 {
    width: 100%;
    height: 44px;
    background: url(../images/member_head2_rwd.gif) no-repeat;
    font-size: 23px;
    line-height: 44px;
    font-weight: bold;
    text-indent: 60px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.member_list {
    width: 100%;
    height: 34px;
    margin: 10px 0 10px 0px;
    line-height: 34px;
    background: url(../images/member_bullet1.gif) no-repeat;
    font-size: 18px;
    font-weight: bold;
    text-indent: 32px;
    border-bottom: #666 dotted 2px;
}

.member_txt1 {
    /*width:100%; padding:10px 28px 0 28px;*/
}

.join_btn1 {
    border: #ccc solid 1px;
    font-size: 18px;
    font-family: '微軟正黑體', Arial;
    width: 140px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-weight: bold;
    background: #a9e4f7;
    background: linear-gradient(to bottom, #a9e4f7 0%, #0fb4e7 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a9e4f7', endColorstr='#0fb4e7', GradientType=0);
    border-radius: 8px;
    cursor: pointer;
}

.join_btn2 {
    border: #ccc solid 1px;
    font-size: 18px;
    font-family: '微軟正黑體', Arial;
    width: 140px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-weight: bold;
    background: #f7c15d;
    background: linear-gradient(to bottom, #f7c15d 0%, #ff8811 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7c15d', endColorstr='#ff8811', GradientType=0);
    border-radius: 8px;
    cursor: pointer;
}

.qp_next,
.qp_prev,
.qp_first,
.qp_last {
    cursor: pointer;
    color: #06c;
    font-weight: bold;
}

.qp_prev,
.qp_first {
    margin-right: 0.5em;
}

.qp_next,
.qp_last {
    margin-left: 0.5em;
}

.qp_disabled {
    cursor: default;
    color: #888;
}

.table_alliance td,
.table_alliance th {
    font-size: 16px;
    vertical-align: middle;
    text-align: center;
}

.table_alliance th {
    word-break: keep-all;
}

.table_alliance .title {
    text-align: left;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

.news_content {
    max-width: 920px;
    margin: auto;
}

@media (max-width: 480px) {
    .carousel-caption {
        font-size: 18px;
    }
}


.info-box {
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    padding: 5px;
    height: 100%;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
}

.info-title {
    background-size: cover;
    padding: 1.2rem 1.2rem;
    border: none;

    height: 90px;
}

.info-title.bg1 {
    background: url('/images/bg_list/01.jpg') no-repeat left center;
}

.info-title.bg2 {
    background: url('/images/bg_list/02.jpg') no-repeat center center;
}

.info-title.bg3 {
    background: url('/images/bg_list/03.jpg') no-repeat right center;
}

.info-title.bg4 {
    background: url('/images/bg_list/04.jpg') no-repeat right center;
}

.info-title.bg5 {
    background: url('/images/bg_list/05.jpg') no-repeat center center;
}

.info-title .info-title-text {
    color: #000;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    padding-top: 3px;
    text-shadow:
        -2px -2px 20px #fff,
        2px -2px 20px #fff,
        -2px 2px 20px #fff,
        2px 2px 20px #fff,
        -2px 0px 20px #fff,
        2px 0px 20px #fff,
        -2px 0px 20px #fff,
        2px 0px 20px #fff,
        0px -2px 20px #fff,
        0px -2px 20px #fff,
        0px 2px 20px #fff,
        0px 2px 20px #fff
}

.info-item {
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.info-item:hover {
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    color: #0d6efd;
}

.info-date {
    color: rgb(165, 166, 167);
    font-size: 0.9rem;
}

.info-text {
    font-weight: bold;
    font-size: 1.1em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-item-list {
    flex-grow: 1;
    /* 撐開中間內容 */
}

.info-more {
    display: inline-block;
    margin-top: auto;
    /* 使其自動貼齊底部 */
    color: #0d6efd;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.info-more:hover {
    text-decoration: underline;
}

.year-list {
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 15px;
}

.year-list .year-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    background-color: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
}

.year-list .year-btn:hover {
    background-color: #e6f0ff;
    color: #0066cc;
}

.year-list .year-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
    font-weight: bold;
}

.modal-content-black {
    border-radius: 1rem !important;
    background-color: #222 !important;
    /* 黑色背景 */
    color: #fff !important;
    /* 白色文字 */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    /* 陰影效果 */
}

#goTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #1942fa, #1d84fa);
    border: 0px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    /* 增加動畫時間 */
    display: none;
    /* 初始隱藏 */
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 懸浮效果 */
#goTopBtn:hover {
    background: linear-gradient(135deg, #1d84fa, #1942fa);
    box-shadow: 3px 8px 15px rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* 點擊效果 */
#goTopBtn:active {
    transform: scale(0.95);
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 當滾動超過 500px，按鈕加入跳動動畫 */
.bounce {
    animation: bounce 3s infinite;
}

.service-card {
    color:#555
}

.service-card a {
    text-decoration: none;
    color: #2a3ce0;
    display: block;
    transition: transform 0.2s ease;
}

.service-card a:hover {
    transform: translateY(-3px);
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    /* color: #343a40; */
    background-color: #EEE;
    padding: 5px;
    height: 3em;
    display: flex;                /* 開啟 flex 排版 */
    align-items: center;          /* 垂直置中 */
    justify-content: center;      /* 水平置中 (可選) */
    border-radius: 0 0 0.5rem 0.5rem;
    border: 1px solid #dee2e6;
}

.service-title.proj {
    font-size: 1.2rem;
    height: 5em;
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
}

.service-card img {
    border-radius: 0.5rem 0.5rem 0 0;
    object-fit: cover;
    /* max-height: 300px; */
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
}