/* 全域樣式 */
body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 導航欄樣式 */
.navbar {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 1rem;
    font-size: 16px;
}

.navbar-nav .nav-link:hover {
    color: #1e3a5f !important;
}

.navbar-nav .nav-link.fw-bold {
    font-weight: 700;
}

/* 下拉選單樣式 */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0e1f3b;
    border-left-color: #0e1f3b;
}

.navbar-nav .dropdown-item.active {
    background-color: #0e1f3b;
    color: white;
    border-left-color: #fff;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

/* 響應式下拉選單 */
@media (max-width: 991.98px) {
    /* 確保導航欄容器有相對定位 */
    .navbar-nav {
        position: relative;
    }
    
    /* 確保下拉選單項目有相對定位 */
    .navbar-nav .nav-item.dropdown {
        position: relative !important;
    }
    
    /* 手機版下拉選單樣式 */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e9ecef !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        background-color: #f8f9fa !important;
        transform: none !important;
        width: 100% !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        display: none !important;
    }
    
    /* 顯示下拉選單 */
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        border-left: none !important;
        border-bottom: 1px solid #e9ecef !important;
        color: #333 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: #e9ecef !important;
        color: #0e1f3b !important;
    }
    
    .navbar-nav .dropdown-item.active {
        background-color: #0e1f3b !important;
        color: white !important;
    }
}

/* 主要橫幅 */
.hero-banner {
    width: 100%;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 主要內容區域 */
.main-content {
    background-color: #fff;
}

/* 內容區域 */
.content-section {
    padding: 30px 25px;
    background-color: #fff;
}

/* 區塊標題 */
.section-header {
    margin-bottom: 25px;
    position: relative;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title .more-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.title-bar {
    width: 4px;
    height: 20px;
    background-color: #0e1f3b;
    display: inline-block;
    margin-right: 10px;
}

.more-btn {
    background-color: #0e1f3b;
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

.more-btn:hover {
    background-color: #0a1628;
    color: white;
}

/* 活動照片區域 */
.activity-photo-section {
    padding: 30px 25px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.activity-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

.photo-caption h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* 輪播樣式 */
.carousel-indicators {
    bottom: 60px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: rgba(255,255,255,0.5);
    margin: 0 3px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #0e1f3b;
    border-color: #0e1f3b;
    transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-photo:hover .carousel-control-prev,
.activity-photo:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon::before {
    content: "<";
    font-family: Arial, sans-serif;
}

.carousel-control-next-icon::before {
    content: ">";
    font-family: Arial, sans-serif;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* 確保輪播圖片樣式一致 */
.carousel-inner .carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 活動與公告列表 */
.announcement-list {
    margin: 0;
}

.announcement-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item .date {
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

.announcement-item .separator {
    color: #ccc;
    font-weight: 300;
}

.announcement-item .title {
    flex-grow: 1;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: normal; /* 允許換行 */
    word-break: break-all; /* 强制換行 */
}

.announcement-item .title:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* 最新訊息區域 */
.news-section {
    padding: 30px 25px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.news-content {
    margin-top: 20px;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-text .news-title {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
    overflow: visible;
    white-space: normal; /* 允許換行 */
    word-break: break-all; /* 强制換行 */
    flex: 1;
}

.news-text .news-date {
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 500;
    margin-top: auto;
}

.news-text .news-date i {
    margin-right: 5px;
}

/* 會員推薦區域 */
.member-section {
    padding: 30px 25px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.member-logos {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    padding: 20px 0;
}

.member-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    min-height: 180px;
}

.member-logo img {
    width: 100% !important;
    max-width: none !important;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.member-logo img:hover {
    transform: scale(1.05);
}

/* 課程訊息 */
.course-list {
    margin: 0;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.course-item:last-child {
    border-bottom: none;
}

.course-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.course-content {
    flex: 1;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.course-date {
    font-size: 14px;
    color: #1e3a5f;
    font-weight: 500;
    margin: 0;
}

.course-date i {
    margin-right: 5px;
}

/* 底部 */
.footer {
    background-color: #0e1f3b;
    color: #fff;
    padding: 40px 0 20px 0;
    margin-top: 0;
}

.footer-logo img {
    height: 50px;
}

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

.footer-info i {
    color: #fff;
    margin-right: 8px;
    width: 16px;
}

.copyright {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #555;
}

/* 麵包屑樣式 */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1e3a5f;
}

.breadcrumb-item.active {
    color: #0e1f3b;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #999;
    font-weight: bold;
    padding: 0 8px;
}

.breadcrumb-item i {
    margin-right: 5px;
    color: #0e1f3b;
}

/* About頁面樣式 */
/* About頁面橫幅高度調整 - 桌面版固定200px */
@media (min-width: 992px) {
    .about-page .hero-banner {
        height: 200px;
        overflow: hidden;
    }

    .about-page .hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}

/* 手機版和平板版保持自動縮放（like index.php） */
@media (max-width: 991px) {
    .about-page .hero-banner {
        width: 100%;
        overflow: hidden;
        height: auto;
    }

    .about-page .hero-banner img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* 手機版下拉選單 */
.mobile-menu-dropdown {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

.mobile-menu-btn {
    background-color: #0e1f3b;
    color: white;
    border: 1px solid #0e1f3b;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background-color: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
    box-shadow: 0 2px 8px rgba(14, 31, 59, 0.3);
}

.mobile-menu-btn i {
    margin-right: 10px;
    font-size: 14px;
}

.mobile-menu-dropdown .dropdown-menu {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 5px;
}

.mobile-menu-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1e3a5f;
    border-left-color: #1e3a5f;
}

.mobile-menu-dropdown .dropdown-item.active {
    background-color: #f0f4f8;
    color: #0e1f3b;
    border-left-color: #0e1f3b;
    font-weight: 600;
}

/* 桌面版側邊選單 */
.sidebar-menu {
    background-color: #fff;
    padding: 25px 0 30px 25px;
    border-right: 1px solid #e9ecef;
    min-height: 600px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 2px;
}

.menu-item a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item a:hover {
    background-color: #f8f9fa;
    color: #1e3a5f;
    border-left-color: #1e3a5f;
}

.menu-item.active a {
    background-color: #f0f4f8;
    color: #0e1f3b;
    border-left-color: #0e1f3b;
    font-weight: 600;
}

.content-main {
    background-color: #fff;
    padding: 30px 40px;
    min-height: 600px;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.content-body {
    color: #444;
    line-height: 1.8;
}

.content-section-item {
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e1f3b;
    position: relative;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #1e3a5f;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-list {
    padding-left: 0;
    list-style: none;
}

.content-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.content-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0e1f3b;
    font-weight: bold;
    font-size: 18px;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .member-logo {
        min-height: 140px;
    }
    
    .activity-photo img {
        height: 200px;
    }
    
    .news-item {
        height: auto;
        min-height: 320px;
    }
    
    .news-image img {
        height: 150px;
    }
    
    .news-text {
        padding: 15px;
    }
    
    .news-text .news-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .news-text .news-date {
        font-size: 13px;
    }
    
    .course-title {
        font-size: 15px;
    }
    
    .course-date {
        font-size: 13px;
    }
    
    .announcement-item .title {
        font-size: 15px;
    }
    
    .announcement-item .date {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        font-size: 17px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .news-section {
        padding: 20px 15px;
    }
    
    .activity-photo-section {
        padding: 20px 15px;
    }
    
    .member-section {
        padding: 20px 15px;
    }
    
    .announcement-item .date {
        min-width: auto;
        font-size: 13px;
    }
    
    .announcement-item .title {
        font-size: 15px;
    }
    
    .news-item {
        height: auto;
        min-height: 280px;
    }
    
    .news-image img {
        height: 120px;
    }
    
    .news-text {
        padding: 12px;
    }
    
    .news-text .news-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .news-text .news-date {
        font-size: 13px;
    }
    
    .course-title {
        font-size: 15px;
    }
    
    .course-date {
        font-size: 13px;
    }
    
    .activity-photo img {
        height: 150px;
    }
    
    .photo-caption h5 {
        font-size: 16px;
    }
    
    .member-logo {
        min-height: 120px;
    }
    
    /* About頁面響應式 */
    .sidebar-menu {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 20px 15px;
        min-height: auto;
    }
    
    /* 平板版也使用下拉選單 */
    .mobile-menu-dropdown {
        display: block !important;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        font-size: 16px;
    }
    
    .mobile-menu-dropdown .dropdown-item {
        font-size: 15px;
    }
    
    .content-main {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .content-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .section-content {
        font-size: 15px;
    }
    
    /* 麵包屑響應式 */
    .breadcrumb-section {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .more-btn {
        padding: 4px 10px;
        font-size: 13px;
    }
    
    .announcement-item .title {
        font-size: 14px;
        line-height: 1.4;
        overflow: visible;
        white-space: normal;
    }
    
    .announcement-item .date {
        font-size: 12px;
    }
    
    .course-title {
        font-size: 14px;
        line-height: 1.4;
        overflow: visible;
        white-space: normal;
    }
    
    .course-date {
        font-size: 12px;
    }
    
    .news-item {
        height: auto;
        min-height: 260px;
    }
    
    .news-text .news-title {
        font-size: 14px;
        line-height: 1.4;
        overflow: visible;
        white-space: normal;
        height: auto;
    }
    
    .news-text .news-date {
        font-size: 12px;
    }
    
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-info p {
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .photo-caption h5 {
        font-size: 17px;
    }
    
    .member-logo {
        min-height: 100px;
    }
    
    /* About頁面小屏幕響應式 */
    /* 手機版顯示下拉選單 */
    .mobile-menu-dropdown {
        display: block !important;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .sidebar-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .mobile-menu-dropdown .dropdown-item {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 17px;
    }
    
    .section-content {
        font-size: 15px;
    }
    
    .content-main {
        padding: 15px 12px;
    }
    
    /* 麵包屑小屏幕響應式 */
    .breadcrumb-section {
        padding: 10px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
    }
}

/* 懸停效果 */
.announcement-item:hover {
    background-color: #f8f9fa;
}

.course-item:hover {
    background-color: #f8f9fa;
}

/* 區域分隔線 */
.row + .row {
    border-top: 1px solid #e9ecef;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 分頁樣式 - News頁面 */
.pagination-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.pagination .page-link {
    color: #666;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #0e1f3b;
    color: white;
    border-color: #0e1f3b;
}

.pagination .page-item.active .page-link {
    background-color: #0e1f3b;
    border-color: #0e1f3b;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #e9ecef;
    background-color: #f8f9fa;
}

/* 響應式設計 - 分頁 */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 1px;
    }
}

/* Business頁面樣式 */
.business-intro {
    background: #f0f4f8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0e1f3b;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.business-cards {
    margin-bottom: 40px;
}

.business-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(14, 31, 59, 0.15);
    border-color: #0e1f3b;
}

.business-card .card-header {
    background: linear-gradient(135deg, #0e1f3b, #1e3a5f);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.business-card .card-header .company-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.business-card .card-body {
    padding: 0 25px 25px 25px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    color: #0e1f3b;
    font-weight: 600;
    min-width: 80px;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.info-item .value {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
}

.info-item .value a {
    color: #0e1f3b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item .value a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* 公司圖片樣式 */
.company-image {
    position: relative;
    width: auto; /* 改回auto以配合負邊距 */
    margin-left: -25px; /* 加回負邊距 */
    margin-right: -25px; /* 加回負邊距 */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0; /* 移除圓角以達到滿版效果 */
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0; /* 確保圖片本身沒有圓角 */
}

.company-image img:hover {
    transform: scale(1.02);
}

/* 響應式設計 - Business頁面 */
@media (max-width: 768px) {
    .business-intro {
        padding: 20px;
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .business-card .card-header {
        padding: 15px;
    }
    
    .business-card .card-header .company-name {
        font-size: 16px;
    }
    
    .business-card .card-body {
        padding: 0 20px 20px 20px;
    }
    
    .info-item .label {
        min-width: 100px;
        font-size: 15px;
    }
    
    .info-item .value {
        font-size: 15px;
    }
    
    .company-image {
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media (max-width: 576px) {
    .business-intro {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .business-card .card-header {
        padding: 12px;
    }
    
    .business-card .card-header .company-name {
        font-size: 15px;
    }
    
    .business-card .card-body {
        padding: 0 15px 15px 15px;
    }
    
    .info-item {
        flex-direction: column;
        margin-bottom: 12px;
    }
    
    .info-item .label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .info-item .value {
        font-size: 14px;
    }
    
    .company-image {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Board介紹頁面樣式 */
.board-introduction {
    margin-bottom: 40px;
}

.board-section {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.board-section .section-title {
    background: linear-gradient(135deg, #0e1f3b, #2d5a8a);
    color: white;
    margin: 0;
    padding: 20px 30px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.board-members {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.member-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #0e1f3b;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0e1f3b, #2d5a8a);
    border-radius: 2px 0 0 2px;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.member-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0e1f3b;
}

.member-details {
    display: grid;
    gap: 8px;
}

.member-detail-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 10px;
}

.detail-value {
    color: #6c757d;
    flex: 1;
}

/* 候補成員特殊樣式 */
.alternate-members {
    padding: 20px 30px;
}

.alternate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alternate-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.alternate-item:hover {
    background: #e9ecef;
    border-color: #0e1f3b;
    color: #0e1f3b;
}

/* 委員會樣式 */
.committee-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #0e1f3b;
}

.committee-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.committee-member {
    color: #6c757d;
    font-size: 0.95rem;
}

/* 分會會長樣式 */
.branch-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

.branch-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #0e1f3b;
}

.branch-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0e1f3b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.branch-details {
    text-align: left;
}

/* 響應式設計 - Board頁面 */
@media (max-width: 768px) {
    .board-section .section-title {
        padding: 15px 20px;
        font-size: 1.2rem;
    }

    .board-members {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .member-card {
        padding: 20px;
    }

    .member-name {
        font-size: 1.1rem;
    }

    .detail-label {
        min-width: 70px;
        font-size: 0.9rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .alternate-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .branch-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .board-section .section-title {
        padding: 12px 15px;
        font-size: 1.1rem;
    }

    .board-members {
        padding: 15px;
    }

    .member-card {
        padding: 15px;
    }

    .member-details {
        gap: 6px;
    }

    .detail-label {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }
} 

/* 簡化的組織架構頁面樣式 */
.structure-section {
    margin-bottom: 40px;
}

.structure-item {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
}

.structure-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.structure-leader {
    color: #0e1f3b;
    font-weight: 500;
    font-size: 0.95rem;
}

.structure-sub-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.structure-sub-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.structure-sub-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #0e1f3b;
}

/* 響應式設計 - 組織架構頁面 */
@media (max-width: 768px) {
    .structure-sub-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .structure-sub-item {
        padding: 15px;
    }
    
    .structure-title {
        font-size: 1rem;
    }
    
    .structure-leader {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .structure-sub-items {
        gap: 10px;
    }
    
    .structure-sub-item {
        padding: 12px;
    }
    
    .structure-title {
        font-size: 0.95rem;
    }
    
    .structure-leader {
        font-size: 0.85rem;
    }
}

/* 相簿頁面樣式 */
.photo-gallery {
    margin-bottom: 40px;
}

/* 活動日期樣式 */
.activity-date {
    color: #0e1f3b;
    font-weight: 500;
    font-size: 1.1rem;
}

.activity-date i {
    margin-right: 8px;
}

/* 大圖展示區域 */
.main-photo-container {
    margin-bottom: 30px;
}

.main-photo-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-photo {
    width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 左右切換按鈕 */
.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.photo-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.photo-nav-btn i {
    font-size: 1.2rem;
}

/* 照片計數器 */
.photo-counter {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* 縮圖容器 */
.thumbnail-container {
    margin-top: 20px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #0e1f3b #f0f0f0;
}

.thumbnail-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #0e1f3b;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #1e3a5f;
}

/* 縮圖項目 */
.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.thumbnail-item.active {
    border-color: #0e1f3b;
    box-shadow: 0 4px 15px rgba(14, 31, 59, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 返回按鈕 */
.back-button-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.back-btn {
    background: #0e1f3b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(14, 31, 59, 0.3);
}

.back-btn:hover {
    background: #1e3a5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 31, 59, 0.4);
}

.back-btn i {
    font-size: 0.9rem;
}

/* 響應式設計 - 相簿頁面 */
@media (max-width: 768px) {
    .main-photo {
        max-height: 400px;
        height: auto;
    }
    
    .photo-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .photo-nav-btn i {
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 60px;
    }
    
    .activity-date {
        font-size: 1rem;
    }
    
    .content-header .d-flex {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
}

@media (max-width: 576px) {
    .main-photo {
        max-height: 300px;
        height: auto;
    }
    
    .photo-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .photo-nav-btn i {
        font-size: 0.9rem;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
    
    .back-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
} 

/* 新聞內容頁面樣式 */
.news-date {
    color: #0e1f3b;
    font-weight: 500;
    font-size: 1.1rem;
}

.news-date i {
    margin-right: 8px;
}

.news-content-detail {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.news-content-detail .news-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-content-detail .news-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-content-detail .news-text p:last-child {
    margin-bottom: 0;
}

/* 新聞導航按鈕 */
.news-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    background-color: #1e3a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #2c5aa0;
    color: white;
    transform: translateY(-1px);
}

.nav-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.nav-btn.disabled:hover {
    background-color: #ccc;
    transform: none;
}

.back-btn {
    background-color: #6c757d;
}

.back-btn:hover {
    background-color: #5a6268;
}

/* 響應式設計 - 新聞內容頁面 */
@media (max-width: 768px) {
    .news-content-detail {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .news-content-detail .news-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .news-date {
        font-size: 1rem;
    }
    
    .content-header .d-flex {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
    
    .news-navigation .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .news-content-detail {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .news-content-detail .news-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 

/* 活動卡片點擊樣式 */
.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
} 

/* 搜尋功能樣式 */
.search-form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-stats {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0e1f3b;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.result-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 15px;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #0e1f3b;
}

.result-type {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-meta i {
    color: #0e1f3b;
    width: 14px;
}

.no-results,
.no-search {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 搜尋Modal樣式 */
.modal-header {
    background: #0e1f3b;
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 600;
}

.modal-title i {
    margin-right: 8px;
}

/* 響應式標題顯示改進 */
@media (max-width: 992px) {
    .announcement-item .title,
    .news-text .news-title,
    .course-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        white-space: normal;
    }
    
    .news-item {
        height: auto;
        min-height: 280px;
    }
    
    .news-text {
        padding: 12px;
    }
    
    .announcement-item {
        padding: 12px 0;
        line-height: 1.5;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-title {
        margin-right: 0;
        font-size: 16px;
    }
    
    .result-meta {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .announcement-item .title,
    .news-text .news-title,
    .course-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    .news-item {
        height: auto;
        min-height: 250px;
    }
    
    .news-text {
        padding: 15px;
    }
    
    .search-form-section {
        padding: 15px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-title {
        font-size: 16px;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 8px;
    }
} 