@media (min-width: 2000px) {
  .pic-about {
    margin-left: -20px;
  }
  .about-us {
    padding: 110px 0 150px;
  }
}
/*xl 1400px*/
@media (max-width: 1399.98px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 94%;
    max-width: 1380px;
  }
  .fixed-nav .container {
    width: 94%;
    max-width: 1380px;
  }
}
@media (max-width: 1280px) {
  .nav-item {
    margin: 0 15px;
  }
}
/*lg 1200px*/
@media (max-width: 1199.98px) {
  .fixed-nav {
    display: none;
  }
  .top-subnav {
    display: none;
  }
  .pic-about {
    width: 108%;
  }
  .footer-box-3 {
    align-items: center;
    margin-top: 30px;
  }
  .copyright {
    text-align: center;
  }
  .top-link {
    padding: 8px 0 10px;
    position: fixed;
    display: block;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
  }
  .top-link.in-page {
    background-image: url("../images/bg-top.jpg");
    padding: 8px 0 10px;
    position: fixed;
    display: block;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    aspect-ratio: unset; /* 取消固定比例 */
  }
  .top-link.in-page .navbar-brand.logo-bg {
    margin-bottom: 0px;
  }
  .swiper {
    margin-top: 80px;
  }
  .phone-menu-btn {
    display: flex;
  }
  .about-us {
    position: relative;
    padding: 100px 0 140px;
    background:
      linear-gradient(-45deg, rgba(238, 119, 82, .8), rgba(231, 60, 126, .4), rgba(35, 166, 213, .8), rgba(35, 213, 171, .8)), url('../images/bg-about.jpg');
    background-size: 300% 300%, cover;
    background-blend-mode: overlay;
    background-position: center center, center center;
    animation: gradientBG 8s ease infinite;
  }
  .navbar-brand.logo-bg {
    width: 234px;
    height: 65px;
    margin-bottom: 0px;
  }
  .banner-in {
    display: block;
  }
  .content-area {
    padding: 40px 0;
  }
  .content-area.style2 {
    padding: 40px 0;
  }
  .side-nav {
    padding: 0px;
  }
  .menu-title-ch {
    margin-bottom: 18px;
  }
  .breadcrumb-wrapper {
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  }
  .side-nav > ul > li.open > ul {
    margin-bottom: 10px;
  }
  .side-nav > ul > li > a {
    padding: 7px 0 7px 15px;
  }
  .left-nav {
    position: relative !important;
  }
  .top-link, .top-link.in-page {
    background-image: url("../images/bg-top.jpg") !important
  }
  .content-area p {
    font-weight: 400;
  }
  .content-area ul li {
    font-weight: 400;
  }
  .content-area ol {
    font-weight: 400;
  }
  .des-list .des-info {
    font-weight: 400;
  }
}
/*md 992px*/
@media (max-width: 991.98px) {
  .about-us {
    position: relative;
    padding: 120px 0 140px;
    background:
      linear-gradient(-45deg, rgba(238, 119, 82, .8), rgba(231, 60, 126, .4), rgba(35, 166, 213, .8), rgba(35, 213, 171, .8)), url('../images/bg-about-phone.jpg');
    background-size: 300% 300%, cover;
    background-blend-mode: overlay;
    background-position: center center, center top;
    animation: gradientBG 8s ease infinite;
  }
  .navbar-brand.logo-bg {
    width: 234px;
    height: 65px;
    margin-bottom: 0px;
  }
  .pic-about {
    width: 80%;
    margin: 0 auto;
  }
  .about-info {
    padding: 30px 30px 0 30px;
  }
  .art-gallery h2 {
    font-size: 4.5rem;
  }
  .footer-box-2 h5 {
    margin: 0 15px 14px 15px;
  }
  .contact {
    text-align: center;
  }
  .swiper-slide {
    width: 100%;
  }
  .footer-box-2 {
    display: none;
  }
  .footer-box-3 {
    margin-top: 40px;
  }
  .contact {
    padding: 50px 0 15px;
  }
  .bg-footer {
    background-size: 200% auto;
  }
  .social-icons-round a {
    argin-right: 5px;
    margin-left: 5px;
  }
  .phone-side-nav {
    width: 280px;
    right: -280px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  /* 響應式表格 */
  .content-area table {
    margin: 1em 0;
    width: 100%;
    min-width: 991px;
  }
  .content-area th {
    padding: 15px 18px;
    font-size: 1rem;
  }
  .content-area td {
    padding: 14px 18px;
    font-size: 0.9375rem;
  }
  .table-container {
    margin: 0 -15px;
    padding: 0 15px;
  }
  .breadcrumb {
    font-size: 0.875rem;
  }
  .info-row {
    flex-direction: column;
    gap: 0rem;
    align-items: flex-start;
  }
  .date {
    font-size: 0.875rem;
  }
  .title-line {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .file-actions {
    width: 100%;
    justify-content: flex-start;
    display: block;
  }
  .file-type {
    margin-right: 3px;
  }
  .bg-about {
    padding-bottom: 370px;
    background-position: right top;
    background-size: 120% auto;
  }
  .faculty-info-box h2 {
    font-size: 1.2rem;
    max-width: 160px;
    margin: 0 auto 1rem;
  }
  .file-type {
    display: inline-block;
    margin-bottom: 5px !important;
  }
  .artwork-display {
    height: auto;
  }
  .artwork-info {
    padding: 1.5rem 1rem;
  }
  .artwork-box {
    padding: 1.5rem 0 0rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .9);
  }
  .content-area h2 {
    font-size: 1.4rem;
  }
  .room-photo .mb-4 {
    margin-bottom: 0 !important;
  }
  .room-photo .mt-3 {
    margin-top: .8rem !important;
    margin-bottom: 1.5rem;
  }
  .room-photo2 img {
    margin-bottom: 20px !important;
    height: auto !important;
  }
  .room-photo2 .mb-4 {
    margin-bottom: 0 !important;
  }
  .faculty-name-ch {
    font-size: 1.5rem !important;
  }
  .faculty-title {
    font-size: 1rem;
  }
  .faculty-info-out {
    border-top: none;
  }
}
/*sm 768px*/
@media (max-width: 767.98px) {
  .pic-news img {
    height: auto;
    width: 250px;
    margin-left: 4px;
    margin-bottom: 18px;
  }
  .faculty-info-box h2 {
    font-size: 1.125rem;
    border: 0px solid #000;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 999px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s ease, border-color 0.5s ease;
    color: #fff;
  }
  .faculty-info-box h2::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url("../images/bg-btn.jpg");
    background-size: 120% 120%;
    background-position: center top;
    opacity: 1;
    z-index: -1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
  }
  .faculty-info-box:hover h2 {
    border-color: #fff;
    color: #fff;
  }
  .faculty-info-box:hover h2::before {
    opacity: 1;
  }
}
/*xs 576px*/
@media (max-width: 575.98px) {
  .top-link .container-fluid, .top-link.in-page .container-fluid {
    width: 98%;
  }
  .top-link, .top-link.in-page {
    padding: 8px 0 10px;
  }
  .art-gallery h2 {
    font-size: 4rem;
    margin-bottom: -20px;
    line-height: 1;
  }
  .top-link, .top-link.in-page {
    background-size: 250% auto;
    background-position: 20% top;
  }
  .news {
    background-size: 200% auto;
    padding: 60px 5px 0;
  }
  .copyright a {
    display: block;
  }
  .about-info {
    padding: 30px 0 0 5px;
  }
  .about-us h2 {
    font-size: 1.7rem;
  }
  .about-us p {
    font-size: 1rem;
    line-height: 1.8;
  }
  .title-1 {
    font-size: 4rem;
  }
  .slide-link .swiper-caption, .swiper-caption {
    font-size: .8125rem;
    padding: 5px 10px 7px;
    line-height: 1.4;
  }
  .swiper {
    overflow: visible;
    margin-top: 80px;
  }
  .swiper-button-next, .swiper-button-prev {
    display: none;
  }
  .swiper-pagination {
    margin-bottom: -45px;
  }
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
  }
  .pic-news img {
    margin-bottom: 14px;
  }
  .news-info {
    padding: 15px 15px 30px 20px;
  }
  .about-us {
    margin-top: 40px;
    padding: 80px 0 80px;
  }
  .marquee img {
    max-width: 600px;
  }
  .swiper-slide img {
    aspect-ratio: 2000 / 1400;
  }
  .modal-header {
    position: absolute;
    top: -50px;
    right: -20px;
    z-index: 1050;
    border: none;
    padding: 0;
  }
  .contact img {
    width: 88%;
  }
  .footer-box-1 p, .footer-box-1 {
    font-size: .9375rem;
    letter-spacing: 0rem;
  }
  .inner-wrapper {
    background-size: 200% auto;
  }
  .content-area .page-title {
    font-size: 1.7rem;
  }
  .content-area p {
    margin: 0 0 .6rem 0;
    padding: 0;
    line-height: 1.8;
  }
  .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  .content-area .page-title.news-title {
    font-size: 1.5rem;
  }
  .badge {
    padding: 5px 14px 6px;
  }
  .faculty-name-en {
    font-size: 1rem;
  }
  .bg-about {
    background-position: right bottom;
  }
}
@media (max-width: 380px) {
  .navbar-brand.logo-bg {
    width: 240px;
    height: 67px;
  }
}
/* === 手機選單 === */
@media screen and (min-width: 1200px) { /* xl breakpoint */
  .phone-menu-btn, .phone-side-nav {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    pointer-events: none; /* 防止任何互動 */
    visibility: hidden; /* 確保完全隱藏 */
    display: none !important;
  }
}
/* 手機版時啟用手機選單 */
@media screen and (max-width: 1199px) {
  .navbar-expand-xl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  /* 確保手機選單按鈕可見且可聚焦 */
  .phone-menu-btn {
    display: flex !important;
    cursor: pointer;
  }
}