﻿/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #24479C;
    --secondary-color: #111;
    --tertiary-color: #fff;
    --text-sec-color: #333;
    --white: #fff;
    --primary: #125091;
    --primary-dark: #0a3156;
    --primary-light: #4a9eff;
    /* --gold: #FFB800; */
    --light-gray: #f0f7ff;
    --gray: #6c757d;
    --dark: #2d3748;
    --red: #E60012;
}


/* Roboto start */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Regular.eot');
    src: url('fonts/Roboto/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Regular.woff2') format('woff2'),
         url('fonts/Roboto/Roboto-Regular.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Regular.svg#Roboto') format('svg');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Light.eot');
    src: url('fonts/Roboto/Roboto-Light.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Light.woff2') format('woff2'),
         url('fonts/Roboto/Roboto-Light.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Light.svg#Roboto') format('svg');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Medium.eot');
    src: url('fonts/Roboto/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Medium.woff2') format('woff2'),
         url('fonts/Roboto/Roboto-Medium.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Medium.svg#Roboto') format('svg');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('fonts/Roboto/Roboto-Bold.eot');
    src: url('fonts/Roboto/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
         url('fonts/Roboto/Roboto-Bold.woff2') format('woff2'),
         url('fonts/Roboto/Roboto-Bold.ttf') format('truetype'),
         url('fonts/Roboto/Roboto-Bold.svg#Roboto') format('svg');
    font-weight: 700;
    font-style: normal;
}
/* Roboto end */

body {
    font-family: 'Microsoft JhengHei', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin: 0 !important;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
}

/* Offcanvas导航样式 */
.offcanvas {
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-title img {
    transition: transform 0.3s ease;
}

.offcanvas-title img:hover {
    transform: scale(1.05);
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-body .navbar-nav {
    width: 100%;
}

.offcanvas-body .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-body .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-body .nav-link:hover {
    color: #fff !important;
    background-color: var(--primary-color);
}

/* Offcanvas中的下拉菜单样式 */
.offcanvas-body .dropdown {
    position: relative;
}

.offcanvas-body .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    float: none !important;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: visible;
    max-height: 0;
    z-index: 1050;
}

.offcanvas-body .dropdown-menu.show {
    display: block;
    opacity: 1;
    max-height: fit-content;
}

.offcanvas-body .dropdown-item {
    color: #333;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background-color: #f4f4f4;
    display: block;
    position: relative;
}

.offcanvas-body .dropdown-item:hover {
    color: #0d6efd;
    background-color: #e9ecef;
}

/* 三级导航样式 */
.offcanvas-body .dropdown-submenu {
    position: relative;
    display: block;
}

.offcanvas-body .dropdown-submenu .dropdown-menu {
    background-color: #e9ecef;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.offcanvas-body .dropdown-submenu .dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    overflow: visible;
}

.offcanvas-body .dropdown-submenu .dropdown-item {
    padding-left: 3rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #e9ecef;
}

.offcanvas-body .dropdown-submenu .dropdown-item:hover {
    background-color: #dee2e6;
}

/* 为三级导航切换元素添加特殊样式 */
.offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
}

/* 为三级导航切换元素添加下拉箭头（收起向右，展开向下） */
.offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    transform: none;
}

.offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle.show::after {
    transform: rotate(90deg);
    font-weight: 900;
}

/* 确保一级导航保持可见 */
.offcanvas-body .nav-item {
    position: relative;
    overflow: visible;
}

/* 为下拉箭头添加样式（收起向右，展开向下） */
.offcanvas-body .dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    border: none;
    transform: none;
}

.offcanvas-body .dropdown-toggle.show::after {
    transform: rotate(90deg);
    font-weight: 900;
}

/* 关闭按钮样式 */
.btn-close {
    transition: all 0.3s ease;
}

.btn-close:hover {
    transform: scale(1.1) rotate(90deg);
    opacity: 1;
}

/* Offcanvas动画效果 */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .offcanvas {
        width: 280px !important;
    }

    .offcanvas-body .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .offcanvas-body .dropdown-item {
        padding: 0.5rem 1rem;
    }

    .dropdown-item {
        white-space: normal;
    }
}

/* header样式 */
.header {
    padding: 10px 0;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
}

.logo img {
    width: auto;
    height: 36px;
    object-fit: cover;
}

@media (min-width: 380px) {
    .logo img {
        height: 50px;
    }
}

@media (min-width: 992px) {
    .logo img {
        height: 93px;
    }
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right a {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0 30px;
}

@media (max-width: 1400px) {
    .header-right a {
        margin: 0 25px;
    }
}

@media (max-width: 1200px) {
    .header-right a {
        margin: 0 15px;
    }
}

@media (max-width: 1024px) {
    .header-right a {
        margin: 0 10px;
    }
}

.login {
    display: flex;
    align-items: center;
}

.login span {
    display: block;
}

.login img {
    width: auto;
    height: 20px;
    object-fit: cover;
}

.login:hover {
    color: var(--primary-color);
}

.h-contact {
    display: block;
}

.h-contact:hover {
    color: var(--primary-color);
}

.h-btn {
    border: none;
    background: #fff !important;
    cursor: pointer;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 25px;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    flex-direction: row;
    align-items: center;
}

@media (max-width: 1200px) {
    .h-btn {
        margin: 0 15px;
    }
}

@media (max-width: 1024px) {
    .h-btn {
        margin: 0 10px;
    }
}

.h-btn::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.h-btn.rotated::after {
    transform: rotate(0deg);
}

.h-btn:hover {
    transform: translateY(0) !important;
    box-shadow: none;
}

.h-dropdown-menu.show {
    transform: translate(-60px, 0px) !important;
}

.hover-dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hover-dropdown:hover .dropdown-menu,
.hover-dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.h-dropdown-menu .dropdown-item {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-sec-color);
}

.h-dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.header .dropdown-menu a {
    margin: 0;
    font-size: 18px;
}

.btn-lang {
    width: 120px;
    padding: 12px !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.btn-lang span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-lang::after {
    transition: transform 0.3s ease;
}

.btn-lang.show::after {
    transform: rotate(0deg);
}

.btn-lang:hover,
.btn-lang.show {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-item {
    font-size: 16px !important;
    font-weight: 400 !important;
}

.dropdown-toggle::after {
    content: "\f078";
    /* Font Awesome down arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    margin: 0;
    border: none;
    vertical-align: 0;
    transition: transform 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    padding: 0;
    background: linear-gradient(-90deg, #2F53AA, #26499D);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-size: 18px;
    color: #fff !important;
    font-weight: 800;
    padding: 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

@media (max-width: 1199px) {
    .nav-link {
        padding: 16px 8px !important;
    }
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-link.active::before {
    background-color: var(--red);
}

#navbarNav .navbar-nav .nav-item .nav-link:after {
    display: none;
}


/* 三级导航样式 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    transition: all 0.3s ease;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .third-dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    transition: all 0.3s ease;
}

.dropdown-submenu:hover .third-dropdown-menu {
    display: block;
}

/* 汉堡菜单动画 */
.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

#navbarNav .dropdown-menu {
    min-width: 200px;
    width: 200px;
}

#navbarNav .dropdown-menu .dropdown-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    white-space: inherit !important;
    padding: 10px 15px;
    position: relative;
}

#navbarNav .dropdown-menu .dropdown-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    top: auto;
    width: 90%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
}

#navbarNav .dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

#navbarNav .dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.Offcanvasbtn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.Offcanvasbtn span {
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .nav-item {
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        color: var(--text-sec-color);
    }

    .nav-link::before {
        display: none;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
    }

    .offcanvas-body .dropdown-submenu .dropdown-item.dropdown-toggle::after {
        border: none;
    }



    .third-dropdown-menu {
        margin-top: 0 !important;
    }

    .third-dropdown-menu li .dropdown-item {
        /* background-color: var(--white) !important; */
        background-color: #f4f4f4 !important;
    }

    .offcanvas-body .dropdown-submenu .dropdown-item,
    .offcanvas-body .dropdown-menu {
        /* background-color: var(--light-gray); */
        background-color: #f4f4f4;
        border-bottom: 1px solid #e9ecef !important;
    }

    .nav-link.dropdown-toggle.show {
        background-color: var(--primary-color);
        color: var(--tertiary-color) !important;
    }


}

/* 轮播图样式 */
.banner {
    position: relative;
    width: 100%;
    height: auto;
}

.banner video,
.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* top-section */
.top-section {
    background-color: #EDF0F5;
}


/* 按钮样式 */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    z-index: -1;
    transition: all 0.4s ease;
    transform: scale(0);
    opacity: 0;
} */

.btn-primary:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
    border-color: var(--red);
}

.btn-primary:hover::before {
    transform: scale(1);
    opacity: 1;
}

.btn-primary:hover::after {
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 767px) {
    .btn-primary {
        padding: 10px 24px;
        font-size: 16px;
    }
}

/* 响应式设计 */

@media (max-width: 992px) {

    /* 三级导航在移动端的处理 */
    .dropdown-submenu .dropdown-menu {
        position: static;
        left: 0;
        margin-top: 0.5rem;
    }

    /* 确保在offcanvas中的三级菜单样式 */
    .offcanvas-body .dropdown-submenu .dropdown-menu {
        position: static;
        left: 0;
        margin-top: 0.5rem;
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .offcanvas-body .dropdown-submenu .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Offcanvas中的三级导航处理 */
    .offcanvas-body .dropdown-submenu {
        position: relative;
    }

    .offcanvas-body .dropdown-submenu .dropdown-menu:not(.fourth-dropdown-menu) .dropdown-item {
        padding-left: 3rem;
    }

    .offcanvas-body .fourth-dropdown-menu > li > .dropdown-item {
        padding-left: 4rem;
    }

    /* 修复三级菜单箭头显示（收起向右，展开向下） */
    .offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle::after {
        content: "\f054";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        transition: transform 0.3s ease;
        margin-left: auto;
        transform: none;
    }

    .offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle.show::after {
        transform: rotate(90deg);
    }

    .offcanvas-body .dropdown-submenu > .dropdown-item.dropdown-toggle {
        padding-left: 16px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        padding: 0.75rem 0 !important;
    }

}

@media (max-width: 576px) {

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

}

.off-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    color: #666;
    font-size: 14px;
}

.off-link::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #ccc;
    margin-left: 5px;
}

.off-link:last-child::after {
    display: none;
}

.off-link:hover {
    color: var(--primary-color);
}

.offcanvas.offcanvas-start {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.mobile-lang {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 12px;
}

.mobile-lang span {
    font-size: 14px;
    color: #999;
    font-weight: bold;
}

.mobile-lang a {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-right: 6px;
}

.mobile-lang a.active {
    color: var(--primary-color);
}

/* 加载动画 */
/*.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    animation: fadeOut 1s ease forwards 1s;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}*/

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

.section-style {
    padding: 70px 0;
}

@media (max-width: 991px) {
    .section-style {
        padding: 50px 0;
    }
}


/* Calendar Widget */
.calendar-widget {
    background: var(--white);
    overflow: hidden;
    border: 2px solid #eee;
    border-radius: 0;
}

/* FullCalendar 自定义样式 - 匹配现有设计 */
#fullcalendar {
    font-family: 'Microsoft JhengHei', Arial, Helvetica, sans-serif;
}

/* 隐藏 FullCalendar 默认的 header toolbar */
#fullcalendar .fc-header-toolbar {
    padding: 15px 20px;
    background: linear-gradient(135deg, #24479C 0%, #2F53AA 100%);
    margin-bottom: 0;
}

#fullcalendar .fc-toolbar-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

/* 导航按钮样式 */
#fullcalendar .fc-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullcalendar .fc-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

#fullcalendar .fc-button:focus {
    box-shadow: none;
}

#fullcalendar .fc-button-primary:not(:disabled):active,
#fullcalendar .fc-button-primary:not(:disabled).fc-button-active {
    background: rgba(255, 255, 255, 0.3);
    border: none;
}

/* 日历主体 */
#fullcalendar .fc-view-harness {
    background-color: #fff;
}

#fullcalendar .fc-scrollgrid {
    border: none;
}

#fullcalendar .fc-theme-standard td,
#fullcalendar .fc-theme-standard th {
    border: none;
}

/* 星期标题 */
#fullcalendar .fc-col-header-cell {
    padding: 8px 0;
    background-color: #fff;
    border: none;
}

#fullcalendar .fc-col-header-cell-cushion {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    padding: 8px 0;
}

/* 周日和周六标题颜色 - 红色 */
#fullcalendar .fc-day-sun .fc-col-header-cell-cushion,
#fullcalendar .fc-day-sat .fc-col-header-cell-cushion {
    color: #e74c3c;
}

/* 日期单元格 */
#fullcalendar .fc-daygrid-day {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
}

#fullcalendar .fc-daygrid-day:hover {
    background: var(--light-gray);
}

#fullcalendar .fc-daygrid-day-frame {
    min-height: 45px;
    padding: 4px;
    position: relative;
}

#fullcalendar .fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    position: relative;
}

#fullcalendar .fc-daygrid-day-number {
    font-size: 14px;
    padding: 4px;
    color: #333;
}

/* 其他月份的日期 */
#fullcalendar .fc-day-other .fc-daygrid-day-number {
    color: #ccc;
}

/* 今天的样式 */
#fullcalendar .fc-day-today {
    background: var(--primary-color) !important;
}

#fullcalendar .fc-day-today .fc-daygrid-day-number {
    color: var(--white) !important;
    font-weight: 600;
}

/* 假期背景色 - 移除所有假期的蓝色背景 */
#fullcalendar .fc-daygrid-day.fc-day-past,
#fullcalendar .fc-daygrid-day.fc-day-future {
    position: relative;
}

/* 完全隐藏假期背景事件 */
#fullcalendar .fc-bg-event {
    display: none !important;
}

#fullcalendar .fc-daygrid-bg-harness .fc-bg-event {
    display: none !important;
}

#fullcalendar .fc-highlight {
    background: transparent !important;
}

/* 周末日期颜色 - 蓝色文字，无背景 */
#fullcalendar .fc-day-sun .fc-daygrid-day-number,
#fullcalendar .fc-day-sat .fc-daygrid-day-number {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* 假期背景事件 - 完全隐藏背景色 */
#fullcalendar .fc-bg-event {
    display: none !important;
    opacity: 0 !important;
}

/* 隐藏背景事件不显示任何内容 */
#fullcalendar .fc-daygrid-bg-harness {
    display: none !important;
}

/* 事件显示 - 改为小红点 */
#fullcalendar .fc-daygrid-event-harness {
    position: absolute !important;
    bottom: 4px !important;
    left: 43% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
}

#fullcalendar .fc-daygrid-event {
    width: 6px !important;
    height: 6px !important;
    min-height: 6px !important;
    /*background: var(--red) !important;*/
    border-radius: 50% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
}

#fullcalendar .fc-daygrid-event:hover {
    transform: scale(1.3) !important;
}

#fullcalendar .fc-event-main,
#fullcalendar .fc-event-title,
#fullcalendar .fc-event-time {
    display: none !important;
}

#fullcalendar .fc-daygrid-event .fc-event-main {
    display: none !important;
}

/* 隐藏事件列表区域，只显示红点 */
#fullcalendar .fc-daygrid-day-events {
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
}

#fullcalendar .fc-daygrid-day-bottom {
    margin: 0 !important;
    padding: 0 !important;
}

/* 隐藏更多事件链接 */
#fullcalendar .fc-daygrid-more-link {
    display: none !important;
}

/* 确保日期单元格布局正确 */
#fullcalendar .fc-daygrid-day-frame {
    display: block !important;
    position: relative;
    height: 100%;
}

#fullcalendar .fc-daygrid-day-top {
    padding: 4px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 576px) {
    #fullcalendar .fc-daygrid-day-frame {
        min-height: 40px;
    }
    
    #fullcalendar .fc-daygrid-day-number {
        font-size: 12px;
    }
    
    #fullcalendar .fc-daygrid-event {
        width: 5px !important;
        height: 5px !important;
        min-height: 5px !important;
    }
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #24479C 0%, #2F53AA 100%);
    color: var(--tertiary-color);
}

.calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.calendar-nav .month-year {
    font-size: 18px;
    font-weight: 600;
}

.calendar-grid {
    padding: 15px;
    background-color: #fff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    padding: 8px 0;
}

.calendar-weekdays span:first-child {
    color: #e74c3c;
}

.calendar-weekdays span:last-child {
    color: #e74c3c;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px;
}

.calendar-day:hover {
    background: var(--light-gray);
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: var(--primary-color);
    color: var(--tertiary-color);
    font-weight: 600;
}

.calendar-day.today:hover {
    background: var(--primary-color);
}

.calendar-day.has-event::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.calendar-day.holiday {
    color: var(--primary-color);
}

.calendar-day .event-label {
    font-size: 8px;
    color: #e74c3c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray);
}

.calendar-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.calendar-legend-item .dot.event {
    background: var(--red);
}

.calendar-legend-item .dot.holiday {
    background: var(--primary-color);
}

.calendar-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--tertiary-color);
    border: 2px solid #eee;
}

.calendar-image img {
    width: 100%;
    height: auto;
    display: block;
}

.calendar-placeholder {
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.calendar-placeholder i {
    font-size: 80px;
    color: #e74c3c;
    margin-bottom: 15px;
    opacity: 0.3;
}

.calendar-placeholder span {
    font-size: 14px;
    color: var(--gray);
}

.k-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* margin-bottom: 24px; */
}

.k-title-icon {
    width: 4px;
    height: 40px;
    border-radius: 0;
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.k-title h2 {
    font-weight: 700;
    font-size: 34px;
    color: var(--secondary-color);
}

@media (max-width: 991px) {
    .k-title h2 {
        font-size: 26px;
    }
}

/* 垂直走马灯样式 */
.vertical-marquee-container {
    height: 110px;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 0;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vertical-marquee {
    animation: marquee-scroll 10s linear infinite;
    transition: animation-play-state 0.3s ease;
}

.marquee-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.marquee-item:last-child {
    border-bottom: none;
}

.marquee-item i {
    color: var(--red);
}

.marquee-date {
    display: inline-block;
    min-width: 70px;
    padding: 2px 8px;
    background-color: #24479C;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    text-align: center;
}



@keyframes marquee-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: var(--red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top i {
    font-size: 20px;
}

/* 响应式设计 - 返回顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        border-radius: 50%; /* 响应式下也保持圆形 */
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%; /* 响应式下也保持圆形 */
    }

    .back-to-top i {
        font-size: 18px;
    }
}

/* swiper styles */
.swiper {
    padding-bottom: 30px;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    top: 44%;
    width: 50px;
    height: 50px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    color: var(--white);
    font-size: 20px;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--tertiary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: var(--primary-color);
}


.news-swiper {
    padding: 10px 10px 50px;
}

.card {
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: none;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.news-card {
    border-bottom: 3px solid var(--red);
}

.card-img {
    display: block;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

.card-body {
    height: 150px;
    padding: 0 0 6px 0;
    transition: all 0.3s ease-in-out;
}

.card-body-info {
    display: block;
    height: 130px;
    padding: 15px 0 8px;
    background-color: var(--tertiary-color);
    transition: all 0.3s ease-in-out;
}

.card-body span {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-sec-color);
    transition: all 0.3s ease-in-out;
}

.card-body span i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 5px;
}

.card-body h5 {
    padding: 10px 0;
    font-size: 22px;
    color: var(--text-sec-color);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.3s ease-in-out;
}

.card-body p {
    margin-top: 8px;
    font-size: 16px;
    color: var(--text-sec-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: all 0.3s ease-in-out;
}

.news-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.news-card:hover .card-img img {
    transform: scale(1.0);
}

.news-card:hover .card-body-info {
    transform: translateY(-10px);
    background-color: var(--primary-color);
}

.news-card:hover .card-body-info span,
.news-card:hover .card-body-info span i,
.news-card:hover .card-body-info p,
.news-card:hover .card-body-info h5 {
    color: var(--white);
}

.event-section {
    background-color: #F9FBFD;
}


.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
}

.album-item {
    display: block;
    position: relative;
    border-radius: 0px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s ease;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-item-placeholder img {
    transition: all 0.4s ease-in-out;
}

.album-item-placeholder img:hover {
    transform: scale(1.1);
}

.album-item-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.album-item.large {
    grid-row: 1 / 3;
    grid-column: 1;
}

.album-item.small:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.album-item.small:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
}

.album-item.wide {
    grid-row: 2;
    grid-column: 2 / 4;
}

.album-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.album-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--white);
}

.album-item-date {
    position: absolute;
    top: -3px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-top: 3px solid var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.album-item-date span {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.album-item-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tertiary-color);
}

/* 响应式相册网格布局 */
@media (max-width: 991.98px) {

    .album-item-title {
        overflow:hidden;
        text-overflow:ellipsis;
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
    }

    .album-grid {
        grid-template-columns: 1fr 1fr !important;
        /* 每排两个项目 */
        grid-template-rows: auto !important;
        /* 自动调整行高 */
        gap: 8px;
    }

    .album-item {
        height: 250px;
        /* 统一设置高度 */
    }

    .album-item.large {
        grid-row: auto;
        grid-column: auto;
    }

    .album-item.small:nth-child(2) {
        grid-row: auto;
        grid-column: auto;
    }

    .album-item.small:nth-child(3) {
        grid-row: auto;
        grid-column: auto;
    }

    .album-item.wide {
        grid-row: auto;
        grid-column: auto;
    }

    .album-item-overlay {
        padding: 10px;
    }

    .album-item-title {
        font-size: 14px;
    }

    .album-item-date {
        width: 56px;
        height: 56px;
        right: 10px;
    }

    .album-item-date span {
        font-size: 18px;
    }
    
}

/* 相册列表页（gallery_list）— 修复 iOS 卡片高度与标题/日期叠层 */
.gallery-list-container {
    width: 100%;
}

.gallery-list-container .gallery-item {
    min-width: 0;
}

.gallery-list-container .album-item {
    width: 100%;
    aspect-ratio: 16 / 11;
    height: auto;
}

.gallery-list-container .album-item-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-list-container .album-item-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-list-container .album-item-overlay {
    z-index: 2;
}

.gallery-list-container .album-item-date {
    top: 0;
    margin-top:-3px;
    border-top: 3px solid var(--red);
    box-sizing: border-box;
    z-index: 3;
}

.gallery-list-container .album-item-title {
    margin: 0;
    color: var(--tertiary-color);
}

@media (max-width: 991.98px) {
    .gallery-list-container .album-item {
        aspect-ratio: 16 / 11;
        height: auto;
    }

    .gallery-list-container .album-item-overlay {
        padding: 10px 8px;
    }

    .gallery-list-container .album-item-title {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .gallery-list-container .album-item-date {
        width: 52px;
        height: 52px;
        right: 8px;
        font-size: 10px;
    }

    .gallery-list-container .album-item-date span {
        font-size: 16px;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .gallery-list-container {
        --bs-gutter-x: 0.75rem;
    }

    .gallery-list-container .album-item-title {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        max-height: 2.7em;
    }

    .gallery-list-container .album-item-date {
        width: 44px;
        height: 44px;
        right: 6px;
        padding: 2px 4px;
    }

    .gallery-list-container .album-item-date span {
        font-size: 14px;
    }
}

.about-section {
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .about-section {
        padding: 100px  0;
    }
}

.about-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 38%;
    width: 100%;
    height: 100%;
    background: #0E2A6D;
}

.about-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.about-card-img {
    width: 50%;
}

.about-card-body {
    position: absolute;
    right: 0;
    width: 56%;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 100%;
    padding: 40px;
}

.about-card-info {
    height: auto;
    padding: 20px 50px 20px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: 4px solid var(--tertiary-color);
    position: relative;
}

.about-card-info::before {
    content: "";
    position: absolute;
    left: 10%;
    width: 90%;
    height: 90%;
    background-color: #0E2A6D;
    z-index: -1;
}

@media (max-width: 991px) {
    .about-card-info {
        align-items: center;
    }

    .about-card-info::before {
        left: 0;
        width: 100%;
        height: 90%;
    }
}

.about-card-title {
    font-size: 44px;
    color: var(--tertiary-color);
    font-weight: 700;
}

.klink {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--tertiary-color);
    margin: 20px 0;
}

.about-card-text {
    font-size: 18px;
    color: var(--tertiary-color);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.about-swiper-pagination {
    text-align: end;
    padding-right: 50px;
}

.about-swiper-pagination .swiper-pagination-bullet {
    background-color: var(--tertiary-color);
    opacity: 0.5;
}

.about-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--tertiary-color);
    opacity: 1;
}

@media (max-width: 1199px) {
    .about-section::after {
        left: 20%;
    }

    .about-card-body {
        padding: 20px;
    }

    .about-card-info {
        padding-left: 60px;
    }

    .about-card-title {
        font-size: 34px;
    }

    .about-card-text {
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .about-section::after {
        left: 0;
        top: 10%;
    }

    .about-card {
        flex-direction: column;
    }

    .about-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0E2A6D;
        z-index: -1;
    }

    .about-card-img {
        width: 100%;
    }

    .about-card-body {
        position: relative;
        width: 100%;
        padding: 10px;
        justify-content: center;
    }

    .about-card-info {
        width: 100%;
        padding: 50px 24px 30px;
        border: 3px solid var(--tertiary-color);
        transform: translate(0, -10%) !important;
    }

    .about-card-title {
        font-size: 26px;
    }

    .about-swiper-pagination {
        text-align: center;
        padding: 0;
    }
}

.highlight-section {
    background: url(../images/bj-img.png) no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
}


.k-title1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.k-title1 h2 {
    color: var(--secondary-color);
}

.k-title1 .klink {
    background-color: var(--red);
}

.highlight-card {
    position: relative;
    overflow: hidden;
}

.highlight-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.highlight-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease-in-out;
}

.highlight-card:hover .highlight-card-img img {
    transform: scale(1.1);
}

.highlight-card-link {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.highlight-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.highlight-card-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.highlight-card-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .highlight-card-title {
        font-size: 30px;
    }
}

.highlight-swiper .swiper-slide {
    transform: scale(0.8);
    transition: 300ms;
}

.highlight-swiper .swiper-slide-active {
    transform: scale(1);
}

.highlight-swiper .swiper-slide-active .highlight-card-icon img {
    width: 70px;
    height: 70px;
}


@media (min-width: 992px) {
    .highlight-swiper-button-next {
        right: 32.8%;
    }

    .highlight-swiper-button-prev {
        left: 32.8%;
    }
}

@media (max-width: 768px) {
    .highlight-body {
        padding: 10px 12px;
    }

    .highlight-title {
        margin-bottom: 0;
    }

    .highlight-card-icon {
        width: 40px;
        height: 40px;
    }

    .highlight-swiper .swiper-slide-active .highlight-card-icon img {
        width: 50px;
        height: 50px;
    }
}

.youtube-img iframe {
    width: 100%;
    height: 396px;
}

.footer {
    background: url(../images/footer-w-bj.png) no-repeat center right;
    background-size: cover;
    padding: 20px 0;
    background-color: #f7f7f7;
}

@media (max-width: 767.98px) {
    .footer {
        background: url(../images/footer-m-bj.png) no-repeat center bottom;
        padding-bottom: 100px !important;
        background-size: cover;
    }
}

.footer-logo img {
    width: auto;
    height: 70px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .footer-logo img {
        height: 50px;
    }
}

.footer-content li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.footer-icon i {
    color: var(--white);
    font-size: 14px;
}

.footer-text {
    color: var(--text-sec-color);
    font-size: 16px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-link {
    font-size: 16px;
    color: var(--text-sec-color);
    padding: 8px 0;
}

.copy {
    padding: 15px 0;
    background-color: var(--primary-color);
}

.copy-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767.98px) {
    .copy-box {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }
}

.k-share {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.k-share-icon {
    margin: 2px 10px;
}

.k-share-icon i {
    color: var(--white);
    font-size: 20px;
}

.copy-text {
    color: var(--white);
    font-size: 14px;
    text-align: center;
}


.delighter .li {
    opacity: 0;
    transform: translatey(10%);
    transition: all .7s ease-out;
}

.delighter.started .li {
    opacity: 1;
    transform: none;
}

.delighter.started .li:nth-child(1) {
    transition: all .7s ease-out .1s;
}

.delighter.started .li:nth-child(2) {
    transition: all .7s ease-out .3s;
}

.delighter.started .li:nth-child(3) {
    transition: all .7s ease-out .5s;
}

.delighter.started .li:nth-child(4) {
    transition: all .7s ease-out .7s;
}

.delighter.started .li:nth-child(5) {
    transition: all .7s ease-out .9s;
}

.delighter.started .li:nth-child(6) {
    transition: all .7s ease-out 1.1s;
}

.delighter .li-left {
    opacity: 0;
    transform: translatex(-10%);
    transition: all .7s ease-out;
}

.delighter.started .li-left:nth-child(1) {
    transition: all .7s ease-out .1s;
}

.delighter.started .li-left:nth-child(2) {
    transition: all .7s ease-out .3s;
}

.delighter.started .li-left:nth-child(3) {
    transition: all .7s ease-out .5s;
}

.delighter.started .li-left:nth-child(4) {
    transition: all .7s ease-out .7s;
}

.delighter.started .li-left:nth-child(5) {
    transition: all .7s ease-out .9s;
}

.animate.up {
    transform: translatey(10%);
    opacity: 0;
    transition: all .75s ease-out;
}

.animate.left {
    transform: translatex(-10%);
    opacity: 0;
    transition: all .75s ease-out;
}

.animate.left-1 {
    transition: all 1.5s ease-out !important;
}

.delighter.started .li-left,
.animate.up.started,
.animate.left.started {
    transform: none;
    opacity: 1;
}

.animate.right {
    transform: translatex(10%);
    opacity: 0;
    transition: all .75s ease-out;
}

.animate.right-1 {
    transition: all 1.5s ease-out !important;
}

.animate.right.started {
    transform: none;
    opacity: 1;
}

.animate.pulse,
.animate.pulse1 {
    transform: scale(0);
    opacity: 0;
    transition: all .3s ease-out;
}

.animate.pulse1 {
    transition: all .75s ease-out;
}

.animate.pulse.started,
.animate.pulse1.started {
    transform: none;
    opacity: 1;
}

/* 移動端語言下拉樣式 */
.d-lg-none .dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.d-lg-none .dropdown .lang {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
}

.d-lg-none .dropdown .lang i {
    margin-left: 4px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.d-lg-none .dropdown .lang i::before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.d-lg-none .dropdown.active .lang i {
    transform: rotate(180deg);
}

.d-lg-none .dropdown .downbox {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 80px;
}

.d-lg-none .dropdown.active .downbox {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.d-lg-none .dropdown .downbox a {
    display: block;
    padding: 10px 12px;
    color: var(--text-sec-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.d-lg-none .dropdown .downbox a:last-child {
    border-bottom: none;
}

.d-lg-none .dropdown .downbox a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 響應式調整 */
@media (max-width: 576px) {
    .d-lg-none .dropdown {
        margin-right: 8px;
    }
    
    .d-lg-none .dropdown .lang {
        padding: 8px 3px;
    }
    
    .d-lg-none .dropdown .downbox a {
        padding: 8px;
        font-size: 13px;
    }
}

/* 最新消息列表样式 */
.news-row-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid #eee;
    box-shadow: 0 0px 1px rgba(0, 0, 0, 0.4);
    position: relative;
}

.news-row-item:hover {
    border-left-color: var(--red);
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.2);
    transform: translateY(-2px);
}

.news-row-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
}

.news-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-row-item:hover .news-row-img img {
    transform: scale(1.1);
}

.news-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-row-date {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    padding: 2px 8px;
    background-color: var(--primary-color);
    border-radius: 12px;
    width: fit-content;
}

.news-row-title {
    font-size: 18px;
    color: var(--text-sec-color);
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.news-row-item:hover .news-row-title {
    color: var(--primary-color);
}

/* 最新活动列表样式 */
.activity-row-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 活动滚动容器 */
.activity-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* 活动项容器 */
.activ-item {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 活动项样式 */
.activ-item-grae {
    background: #fff;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* padding-bottom: 20px;
    border-bottom: 1px solid #eee; */
}

.activ-item-grae:hover {
    transform: translateX(4px);
    /* background-color: #EDF0F5; */
}

/* 活动标题 */
.activity-row-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.activ-item-grae:hover .activity-row-title {
    color: var(--primary-color);
}

/* 活动日期 */
.activity-row-date {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), #5a8fd8);
    /* border-radius: 20px; */
    box-shadow: 0 2px 6px rgba(36, 71, 156, 0.2);
    z-index: 10;
}

/* 活动图片容器 */
.activity-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 200px;
}

@media (max-width: 600px) {
    .activity-img {
        height: auto;
    }
}

.activity-img img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activ-item-grae:hover .activity-img img {
    transform: scale(1.05);
}

/* 自定义滚动条样式 */
.activity-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.activity-scroll-container::-webkit-scrollbar-track {
    background: #dcdcdc;
    border-radius: 3px;
}

.activity-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.activity-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.activity-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.activity-row-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(36, 71, 156, 0.2);
    transform: translateY(-2px);
}

.activity-row-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
}

.activity-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-row-item:hover .activity-row-img img {
    transform: scale(1.1);
}

.activity-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-row-date {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    padding: 2px 8px;
    background-color: var(--primary-color);
    /* border-radius: 12px; */
    width: fit-content;
}

.activity-row-title {
    font-size: 22px;
    color: var(--text-sec-color);
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.activity-row-item:hover .activity-row-title {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .news-row-box,
    .activity-row-box {
        margin-bottom: 0px;
    }
    
    .activity-scroll-container {
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .news-row-item,
    .activity-row-item {
        gap: 10px;
    }
    
    .activ-item-grae {
        padding: 16px;
        border-radius: 8px;
    }
    
    .activity-row-title {
        font-size: 14px;
    }
    
    .activity-row-date {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .activity-scroll-container {
        max-height: 400px;
        padding: 10px;
    }

    .news-row-img,
    .activity-row-img {
        width: 65px;
        height: 65px;
    }

    .news-row-title,
    .activity-row-title {
        font-size: 14px;
    }

    .news-row-date,
    .activity-row-date {
        font-size: 11px;
        padding: 2px 6px;
    }
}

.item-row-body {
    /* padding: 5px 20px; */
    position: relative;
    margin-bottom: 20px;
    margin-top: 35px;
}

.item-row-body:last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 992px) {
    .item-row-body {
        margin-top: 0;
    }
}

/* .item-row-body::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    background-image: linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(192,192,192,.2) 35%, rgba(192,192,192,.4) 50%, rgba(192, 192, 192, 0.2) 75%, rgba(0,0,0,0) 100%);
}

.item-row-body1::before {
    display: none;
} */

.news-row-box {
    background-color: #fff;
    padding: 15px;
}

.top-title-box a.more {
    font-size: 16px;
    color: #333;
    padding-right: 10px;
}

.top-title-box a.more:hover {
    color: var(--primary-color);
}


/* 獎項與比賽區塊樣式 */
.awards-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.award-card {
    background: var(--white);
    /* border-radius: 8px; */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.award-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.award-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.award-card:hover .award-card-img img {
    transform: scale(1.1);
}

.award-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.award-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.award-badge.sport {
    background-color: #28a745;
}

.award-badge.art {
    background-color: #fd7e14;
}

.award-badge.stem {
    background-color: #6f42c1;
}

.award-badge.language {
    background-color: #20c997;
}

.award-badge.service {
    background-color: #e83e8c;
}

.award-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.award-desc {
    font-size: 15px;
    color: var(--text-sec-color);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.award-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.award-date {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.award-date i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .awards-section {
        padding: 50px 0;
    }
    
    .award-card-img {
        height: 180px;
    }
    
    .award-card-body {
        padding: 18px;
    }
    
    .award-title {
        font-size: 18px;
    }
    
    .award-desc {
        font-size: 14px;
    }
}

/* 學校喜訊 & 媒體報道區塊樣式 */
.news-media-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-media-card {
    background: var(--white);
    /* border-radius: 12px; */
    padding: 32px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-media-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* 標題和查看更多同一排 */
.news-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.news-media-header .k-title {
    margin-bottom: 0;
}

.news-media-header .more-link {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 學校喜訊圖文排版樣式 */
.school-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.school-news-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.school-news-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.school-news-img {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.school-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.school-news-item:hover .school-news-img img {
    transform: scale(1.1);
}

.school-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 媒體報道 Swiper 樣式 */
.media-report-swiper-container {
    position: relative;
    padding: 0 50px;
}

.media-report-swiper {
    overflow: visible;
}

.media-report-card {
    display: block;
    background: var(--white);
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

/* .media-report-card::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
} */

.media-report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.media-report-card-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.media-report-card-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-report-card:hover .media-report-card-img img {
    transform: scale(1.1);
}

.media-report-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.89);
    transition: all .2s ease-in-out;
}

.media-report-card-content:hover {
    background: rgba(255, 255, 255, 1);
}

.media-report-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.media-report-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .4s ease-in-out;
}

.media-report-card-content:hover .media-report-card-meta {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.media-report-card-source {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.media-report-card-date {
    font-size: 14px;
    color: var(--gray);
    
}

.media-report-card-desc {
    font-size: 15px;
    color: var(--text-sec-color);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: none;
    transition: all .6s ease-in-out;
}

.media-report-card-content:hover .media-report-card-desc {
    display: block;
}

/* Swiper 切換按鈕 */
.media-report-swiper-button-prev,
.media-report-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 8;
}

.media-report-swiper-button-prev {
    left: 0;
}

.media-report-swiper-button-next {
    right: 0;
}

.media-report-swiper-button-prev:hover,
.media-report-swiper-button-next:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.media-report-swiper-button-prev.swiper-button-disabled,
.media-report-swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.media-report-swiper-button-prev.swiper-button-disabled:hover,
.media-report-swiper-button-next.swiper-button-disabled:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-50%);
}

.news-media-date {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-media-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-media-desc {
    font-size: 15px;
    color: var(--text-sec-color);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.more-link {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.more-link:hover {
    color: var(--red);
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .news-media-section {
        padding: 60px 0;
    }
    
    .news-media-card {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .school-news-img {
        width: 100px;
        height: 75px;
    }
    
    .media-report-swiper-container {
        padding: 0 45px;
    }
    
    .media-report-swiper-button-prev,
    .media-report-swiper-button-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .media-report-card-img {
        height: auto;
    }
    
    .media-report-card-content {
        padding: 16px;
    }
    
    .media-report-card-title {
        font-size: 16px;
    }
    
    .media-report-card-desc {
        font-size: 14px;
    }
    
    .news-media-title {
        font-size: 16px;
    }
    
    .news-media-desc {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .news-media-section {
        padding: 40px 0;
    }
    
    .news-media-card {
        padding: 20px;
    }
    
    .school-news-item {
        flex-direction: column;
        padding: 12px;
    }
    
    .school-news-img {
        width: 100%;
        height: 160px;
    }
    
    .media-report-swiper-container {
        padding: 0 40px;
    }
    
    .media-report-swiper-button-prev,
    .media-report-swiper-button-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .media-report-card-img {
        height: auto;
    }
    
    .media-report-card-content {
        padding: 14px;
    }
    
    .media-report-card-title {
        font-size: 15px;
    }
    
    .media-report-card-source {
        font-size: 14px;
    }
    
    .media-report-card-date {
        font-size: 13px;
    }
    
    .media-report-card-desc {
        font-size: 13px;
    }
    
    .news-media-title {
        font-size: 15px;
    }
    
    .news-media-desc {
        font-size: 13px;
    }
}

/* 彈窗樣式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 20px;
    color: var(--gray);
}

.popup-close:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: rotate(90deg);
}

.popup-content {
    padding: 40px 32px 32px;
}

.popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.popup-logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-image {
    width: 100%;
    /* height: 280px; */
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: bottom;
}

.popup-text {
    text-align: left;
}

.popup-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.popup-text p {
    font-size: 16px;
    color: var(--text-sec-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

.popup-text p:last-child {
    margin-bottom: 0;
}

.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.popup-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    
}

.popup-btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.popup-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 71, 156, 0.3);
}

.popup-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.popup-btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 71, 156, 0.2);
}

/* 自定義滾動條 */
.popup-container::-webkit-scrollbar {
    width: 6px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
        border-radius: 12px;
    }
    
    .popup-content {
        padding: 32px 20px 24px;
    }
    
    .popup-logo {
        width: 60px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-text h3 {
        font-size: 18px;
    }
    
    .popup-text p {
        font-size: 14px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .popup-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-text h3 {
        font-size: 16px;
    }
    
    .popup-text p {
        font-size: 13px;
        line-height: 1.6;
    }
}















/* ========== 全局变量与基础样式（只保留一份） ========== */  
:root {
    --primary-red: #d82027;
    --primary-blue: #1a3b98;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-light: #e5e5e5;
    --bg-light: #f8f8f8;
}
* {
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.web-module-box .nav-link {
    color: #333 !important;
}

/* ========== 顶部Banner（全局公用） ========== */
.top-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}
.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-text-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}
.banner-caption {
    display: inline-block;
    background: linear-gradient(rgba(36, 71, 156, 0.7), rgba(36, 71, 156, 0.7));
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    padding: 12px 40px;
    margin: 0;
}

/* ========== 麵包屑導航（全局公用） ========== */
.breadcrumb-custom {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-align: center;
}
.breadcrumb-custom a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumb-custom a:hover {
    color: var(--primary-blue);
}
.breadcrumb-custom .home-icon {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* ========== 左侧导航栏（全局公用） ========== */
.sidebar-menu {
    border-top: none;
}
.sidebar-item {
    border-bottom: 1px solid var(--border-light);
}
.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9.6px 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.sidebar-link:hover {
    color: var(--primary-red);
}
.sidebar-item.active .sidebar-link {
    color: var(--primary-red);
    border-left: 3px solid var(--primary-red);
    padding-left: 16px;
}
.sidebar-item .bi-chevron-right {
    font-size: 0.8rem;
}
.submenu {
    padding-left: 10px;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.submenu.show {
    max-height: 8000px;
}
.submenu-link {
    display: block;
    padding: 10px 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
    transition: color 0.2s;
}
.submenu-link:hover, .submenu-link.active {
    color: var(--primary-red);
}
/* 側欄二級可展開項：與一級相同，箭頭靠右 */
.submenu-link.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* ========== 内容区标题（全局公用） ========== */
.section-header {
    position: relative;
    padding-left: 12px;
    margin-bottom: 1rem;
}
.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background-color: var(--primary-red);
}
.section-title {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--primary-red);
}
.header-divider {
    border-top: 1px solid var(--border-light);
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
}
.section-header-2 {
    margin-bottom: 15px;
}
.section-header-2 ~ .header-divider {
    height: 2px;
    margin-bottom: 20px;
}

/* ========== 通用文本内容 ========== */
.content-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.9rem;
    text-align: justify;
    margin-bottom: 1.2rem;
}

/* ========== 活动资讯特有：图片画廊/轮播 ========== */
.gallery-popup-link {
    display: inline-block;
    height: 100%;
    width: 100%;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}
.custom-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
    margin-bottom: 2.5rem;
}
.custom-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}
.custom-indicators .dot.active {
    width: 25px;
    border-radius: 5px;
    background-color: var(--primary-blue);
}
.swiper {
    width: 100%;
}

/* ========== 最新消息特有：新闻列表 + 文章详情 ========== */
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
    width: 100%;
    border: none;
    position: relative;
}
.news-item:nth-child(odd) {
    background-color: #f8fafc;
}
.news-item:nth-child(even) {
    background-color: #ffffff;
}
.news-item:hover {
    color: var(--primary-blue);
}
.news-date {
    font-size: 0.95rem;
    color: var(--primary-blue);
    min-width: 120px;
    margin-right: 24px;
    font-weight: 400;
    flex-shrink: 0;
}
.news-title {
    flex-grow: 1;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
    padding-right: 60px;
}
.news-arrow {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.news-item:hover .news-arrow {
    opacity: 0;
}
.news-more-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-dark);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.news-item:hover .news-more-btn {
    opacity: 1;
    visibility: visible;
    color: var(--primary-blue);
}
.news-red-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: #fff;
    margin-left: 10px;
    font-size: 0.7rem;
}
/*#article-detail {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
}*/
.article-detail-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.article-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0 0 16px 0;
    word-break: break-word;
}
.article-date {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.article-content {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 50px;
}
.article-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}
.article-content h2, .article-content h3, .article-content h4 {
    color: var(--primary-blue);
    margin: 30px 0 16px 0;
    font-weight: 500;
    line-height: 1.4;
}
.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.article-content a {
    color: var(--primary-blue);
    text-decoration: none;
}
.article-content a:hover {
    color: var(--primary-red);
}
.article-back-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}
.article-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 32px;
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-blue);
}
.article-back-btn:hover {
    background-color: #fff;
    color: var(--primary-blue);
}

/* ========== 学校计划及报告特有 ========== */
.report-item-2 {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}
.download-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    text-decoration: none;
    color: #111;
    font-size: 18px;
    width: 100%;
    transition: all 0.2s ease;
}
.download-link span {
    width: 40px;
    height: 40px;
}
.download-link .download-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.download-link:hover span {
    width: 40px;
    height: 40px;
    background-color: #0052CC;
    border-radius: 50%;
}
.download-link:hover .download-icon {
    content: url('../images/download-hover.svg');
    width: 24px;
    height: 24px;
}

/* ========== 本科简介特有：标签页 + 介绍列表 ========== */
.nav-tab-custom {
    border-bottom: none;
    margin-bottom: 2rem;
    padding: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    /* 取消 flex 铺满，改为自适应宽度 */
    display: inline-flex; 
    width: auto;
    overflow: hidden;
}
.web-module-box .nav-tab-custom .nav-item {
    /*flex: 1;*/
    padding:3px;
}
.web-module-box .nav-tab-custom .nav-link {
    border: none;
    background-color: transparent;
    color: #222222;
    padding: 16px 30px;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.web-module-box .nav-tab-custom .nav-link.active {
    background-color: #1946ad;
    color: #ffffff !important;
    border-radius: 8px;
}
.web-module-box .nav-tab-custom .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
}
.web-module-box .nav-link::before {
    height:0;
    background-color: #fff;
}
.web-module-box .nav-link.active::before {
    background-color: #fff;
}

@media (max-width: 1200px) {
    .nav-tab-custom {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        box-shadow: none;
        gap: 8px;
    }
    
    .web-module-box .nav-tab-custom .nav-item {
        padding: 0;
        width: 100%;
    }
    
    .web-module-box .nav-tab-custom .nav-link {
        white-space: normal;
        /*justify-content: flex-start;*/
        padding: 12px 16px !important;
        border-radius: 8px;
        background-color: #f8f9fa;
    }
    
    .web-module-box .nav-tab-custom .nav-link.active {
        background-color: #1946ad;
    }
}



.intro-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    border: 1px solid var(--border-light);
    border-bottom: none;
}
.intro-item:last-child {
    border-bottom: 1px solid var(--border-light);
}
.intro-title {
    background-color: var(--bg-light);
    padding: 16px 20px;
    font-weight: 500;
    color: var(--text-dark);
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}
.intro-content {
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ========== 活动相集特有 ========== */
.year-dropdown {
    position: relative;
    display: inline-block;
    z-index: 20;
}

.year-dropdown .dropdown-menu {
    min-width: 120px;
    /*max-height: 280px;*/
    /*overflow-y: auto;*/
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
}

.year-dropdown .dropdown-menu.show {
    display: block;
}

.year-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
    color: var(--text-dark, #333);
}

.year-dropdown .dropdown-item:hover,
.year-dropdown .dropdown-item:focus {
    background-color: rgba(36, 71, 156, 0.08);
    color: var(--primary-blue, #24479c);
}

.year-dropdown .dropdown-item.active {
    background-color: var(--primary-blue, #24479c);
    color: #fff;
}

.year-btn {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 6px 16px;
    border-left: 3px solid #ed2624;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.year-btn:hover,
.year-btn.show {
    opacity: 0.9;
    color: #fff;
}

.year-btn.show::after {
    transform: rotate(180deg);
}

/* ========== 学生作品集特有 ========== */
.portfolio-card {
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.portfolio-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-bottom-color: var(--primary-red);
}
.portfolio-cover {
    width: 100%;
    flex-grow: 1;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
}
.portfolio-title {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* ========== 联络我们特有 ========== */
.contact-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}
.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(26, 59, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.contact-icon i {
    font-size: 1.3rem;
    color: var(--primary-blue);
}
.contact-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.contact-content {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}
.map-container {
    width: 100%;
    margin-top: 40px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    padding: 10px;
}
.map-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* ========== 学校介绍特有：视频卡片 ========== */
.video-card {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.video-card:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.video-cover {
    width: 100%;
    max-height: 545px;
    height: auto;
    object-fit: cover;
    display: block;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.play-btn i {
    font-size: 3rem;
    color: #ffffff;
    margin-left: 4px;
}

/* ========== 分页样式（统一） ========== */
.pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.page-btn.active {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}
.page-btn:hover:not(.active) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding-left: 0;
    list-style: none;
}
.pagination .page-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    box-sizing: border-box;
}
.pagination .page-item .page-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333333;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.pagination .page-item.active .page-link {
    background-color: #1a3b98;
    color: #ffffff;
    border-color: #1a3b98;
}
.pagination .page-item:not(.active):not(.disabled):hover .page-link {
    background-color: #1a3b98;
    color: #ffffff;
    border-color: #1a3b98;
}
.pagination .page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== 其他工具类 ========== */
.cloudzoom-blank, .cloudzoom-zoom {
    z-index: 999;
}
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: pointer !important;
}
.pdf-link {
    color: #d82027;
}
.pdf-link:hover {
    text-decoration: underline;
}
#fullcalendar .fc-day-today .fc-daygrid-day-number {
    color: #fff !important;
}
.editor tbody, .editor td, .editor tfoot, .editor th, .editor thead, .editor tr {
    border-width: 1px;
}
.sitemap-card {
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: none;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    background: #fff;
}
.sitemap-card-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}
.sitemap-card-header a:hover {
    color: #f60 !important;
}
.sitemap-card-body {
    padding: 0;
}
.sitemap-card-body li a:hover {
    color: #f60 !important;
}
video {
    max-width: 100%;
    height: auto;
}
.editor {
    overflow: visible;
    max-width: 100%;
}
.editor img {
    display: inline-block;
    max-width: 100% !important;
    height: auto !important;
}
.editor iframe {
    max-width: 100%;
}
.editor table {
    max-width: 100% !important;
    border-collapse: collapse;
}
.editor p {
    min-height: 24px;
    margin-bottom: 0;
}

/* ========== 响应式适配（合并所有断点，保留独特规则） ========== */
@media (max-width: 767.98px) {
    .top-banner {
        height: 200px;
    }
    .banner-caption {
        font-size: 1.2rem;
        padding: 8px 20px;
    }
    .sidebar-col {
        display: none;
    }
    .content-col {
        width: 100%;
        padding: 0 !important;
        min-width: 0;
        max-width: 100%;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .content-text {
        font-size: 0.85rem;
    }
    .breadcrumb-custom {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .gallery-img {
        /*height: 140px;*/
    }
    /* 新闻列表手机版 */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 12px;
    }
    .news-date {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 0.85rem;
    }
    .news-title {
        font-size: 0.9rem;
        width: 100%;
        margin: 0 0 8px 0;
        padding-right: 0;
    }
    .news-arrow {
        display: none;
    }
    .news-more-btn {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin: 0;
    }
    .news-item:hover .news-more-btn {
        color: var(--primary-blue);
    }
    .news-red-dot {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        margin-left: 8px;
    }
    /* 文章详情手机版 */
    .article-title {
        font-size: 1.4rem;
    }
    .article-detail-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .article-content {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .article-back-btn {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
    /* 本科简介手机版 */
    .intro-item {
        grid-template-columns: 1fr;
    }
    .intro-title {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .web-module-box .nav-tab-custom .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    /* 活动相集/作品集手机版 */
    .event-card {
        height: 200px;
        margin-bottom: 16px;
    }
    .portfolio-card {
        padding: 12px;
    }
    .portfolio-cover {
        margin-bottom: 12px;
    }
    .portfolio-title {
        font-size: 0.85rem;
    }
    /* 联络我们手机版 */
    .contact-card {
        padding: 20px 15px;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    .contact-icon i {
        font-size: 1.1rem;
    }
    /* 学校介绍手机版 */
    .play-btn {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    .play-btn i {
        font-size: 1.2rem;
    }
    /* 分页手机版 */
    .pagination {
        gap: 8px;
        margin: 30px 0;
    }
    .pagination .page-item {
        width: 40px;
        height: 40px;
    }
    .pagination .page-item .page-link {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .top-banner {
        height: 280px;
    }
    .banner-caption {
        font-size: 1.6rem;
    }
    .gallery-img {
        height: 180px;
    }
    .news-item {
        padding: 20px 15px;
    }
    .news-date {
        min-width: 110px;
        margin-right: 20px;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .intro-item {
        grid-template-columns: 150px 1fr;
    }
    .event-card {
        height: 200px;
    }
    .portfolio-card {
        padding: 14px;
    }
    .portfolio-title {
        font-size: 0.95rem;
    }
    .contact-card {
        padding: 25px 15px;
    }
}

.section-title { color:#111; }

ul {
    list-style-type: inherit;
}

@media(max-width:768px){
    p span a { display:block;white-space:pre-wrap; word-wrap:break-word; line-height:26px; }
}

@media(max-width:768px){
    .slide-box .swiper-control {
        margin-bottom: 12px !important;
    }
}


.offcanvas-body .nav-link.dropdown-toggle {
    /*color: #333 !important;*/
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: normal !important;
    word-break: break-word;
}

.offcanvas-body .nav-link.dropdown-toggle > span {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 1rem;
}

.offcanvas-body .nav-link.dropdown-toggle::after {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    height: auto !important;
    vertical-align: middle !important;
    content: "\f054" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    transform: none !important;
}

.offcanvas-body .nav-link.dropdown-toggle.show::after {
    transform: rotate(90deg) !important;
}


.image-placeholder img {
    /*height: 223px!important;*/
    /*max-height: 223px;*/
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%!important;
}


.gallery-img-2 {
    /*width:100%; height:100%;
    object-fit:cover;
    cursor:pointer;*/

    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%!important;
}

.k-share-icon i {
    color:#24479c;
}

.k-share-icon:nth-child(1) {
    margin-left: 0 !important;
}









/* CMS 編輯器表格橫向滾動容器 */
.editor-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1em;
}

/* ==============================================
   CMS 編輯器表格 手機端通用響應式修復
   適用 Word / Excel 導出及一般 HTML 表格
   ============================================== */
@media (max-width: 767.98px) {
    /* Excel 外層包裝表：展開全寬，隱藏空白佔位列 */
    .editor .main_content > table,
    .editor table:has(> tbody > tr > td table) {
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        margin: 0 !important;
    }
    .editor .main_content > table > tbody > tr > td[rowspan],
    .editor table:has(> tbody > tr > td table) > tbody > tr > td[rowspan] {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        border: none !important;
    }
    .editor .main_content > table > tbody > tr > td:not([rowspan]),
    .editor table:has(> tbody > tr > td table) > tbody > tr > td:not([rowspan]) {
        display: none !important;
    }

    /* 通用表格：覆蓋內聯固定寬高，強制自適應 */
    .editor-table-responsive {
        overflow-x: auto;
    }
    .editor table {
        width: 100% !important;
        max-width: 100% !important;
        display: table !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }
    .editor table colgroup {
        display: none !important;
    }
    .editor table tr {
        width: 100% !important;
        display: table-row !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    .editor table td,
    .editor table th {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: table-cell !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 8px 6px !important;
        font-size: 0.85rem;
        line-height: 1.5 !important;
        vertical-align: middle !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    /* rowspan 分類列（如教學年資、學歷）：限制寬度，保留數據列空間 */
    .editor table > tbody > tr > td[rowspan],
    .editor table > thead ~ tbody > tr > td[rowspan] {
        width: 26% !important;
        max-width: 30% !important;
        min-width: 3.5em !important;
    }
    .editor table p,
    .editor table span {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        line-height: 1.5 !important;
        writing-mode: horizontal-tb !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
}



@media(max-width:768px){
    .activity-img img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
    }
}


/* add by 亮 20260903 */
.editor a {
    word-break: break-all;
}









