       :root {
            --primary-color: #8B1A1A;
            --secondary-color: #B22222;
            --accent-color: #C0A983;
            --dark-color: #272727;
            --light-color: #F5F5F5;
            --text-color: #333333;
        }
        
        body {
            font-family: 'Microsoft JhengHei', '微軟正黑體', sans-serif;
            overflow-x: hidden;
            padding-top: 50px;
            color: var(--text-color);
        }
        
        /* 顶部栏样式 */
        .header-top {
            background-color: #fff;
            border-bottom: 1px solid #e6e6e6;
            font-size: 14px;
            transition: all 0.3s ease;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            height: 50px;
        }
        
        .header-top.hidden {
            transform: translateY(-100%);
            opacity: 0;
        }
        
        .welcome-text {
            color: #666;
            margin: 0;
            line-height: 50px;
        }
        
        .top-btn {
            display: inline-block;
            padding: 6px 15px;
            border-radius: 2px;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            text-decoration: none;
            margin-left: 10px;
            transition: all 0.3s;
            line-height: normal;
        }
        
        .top-btn.login {
            background-color: var(--primary-color);
            color: #fff;
        }
        
        .top-btn:hover {
            opacity: 0.8;
            color: var(--primary-color);
        }
        
        .top-btn.login:hover {
            color: #fff;
        }
        
        /* 导航栏样式 */
        .navbar {
            background: transparent;
            transition: all 0.4s ease;
            padding: 20px 0;
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            z-index: 1020;
        }
        
        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 10px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            top: 0;
        }
        
        /* 手机版导航栏样式 */
        @media (max-width: 991.98px) {
            .navbar {
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                padding: 10px 0;
                top: 0;
            }
            
            .navbar-toggler {
                border: none;
                padding: 4px 8px;
            }
            
            .navbar-toggler:focus {
                box-shadow: none;
            }
            
            .navbar-collapse {
                background: white;
                margin-top: 10px;
                border-radius: 8px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                padding: 15px;
            }
            
            .nav-link {
                padding: 10px 15px !important;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .nav-link:last-child {
                border-bottom: none;
            }
            
            .mobile-login {
                display: flex;
                justify-content: space-between;
                margin-top: 15px;
                padding-top: 15px;
                border-top: 1px solid #f0f0f0;
            }
            
            .mobile-login .top-btn {
                flex: 1;
                text-align: center;
                margin: 0 5px;
            }
            
            /* 手机版搜索栏样式 */
            .mobile-search {
                margin-bottom: 15px;
                padding-bottom: 15px;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .mobile-search .input-group {
                width: 100%;
            }
            
            .mobile-search input {
                border-radius: 4px 0 0 4px;
                border: 1px solid #ddd;
                padding: 8px 12px;
            }
            
            .mobile-search button {
                border-radius: 0 4px 4px 0;
                background-color: var(--primary-color);
                color: white;
                border: 1px solid var(--primary-color);
            }
            
            /* 手机版语言选择器样式 */
            .mobile-language {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px 15px;
                border-bottom: 1px solid #f0f0f0;
                margin-bottom: 10px;
            }
            
            .mobile-language .language-selector {
                color: #333;
                font-weight: normal;
                display: flex;
                align-items: center;
            }
            
            .mobile-language .language-selector i {
                margin-right: 8px;
            }

            .navbar-brand img {
            max-height: 40px !important;
            transition: all 0.3s ease;
        }
            
        }
        
        .navbar-brand img {
            max-height: 60px;
            transition: all 0.3s ease;
        }
        
        .navbar.scrolled .navbar-brand img {
            max-height: 50px;
        }
        
        .nav-link {
            font-weight: bold;
            color: #2c2826ff !important;
            position: relative;
            padding: 10px 15px !important;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: -100%;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            transition: all 0.4s ease;
        }

        .nav-link:hover::before {
            left: 0;
        }

        .nav-link:hover {
            color: var(--primary-color) !important;
            transform: translateY(-2px);
        }

        .navbar.scrolled .nav-link:hover {
            color: var(--primary-color) !important;
        }
        
        /* 桌面版搜索框样式 */
        .search-box {
            position: relative;
            margin-right: 15px;
        }
        
        .search-box input {
            width: 0;
            padding: 8px 10px;
            border-radius: 50px;
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            transition: all 0.3s;
            opacity: 0;
            color: #fff;
        }
        
        .navbar.scrolled .search-box input {
            background-color: #ffffffff;
            color: #333;
        }
        
        .search-box:hover input {
            width: 180px;
            opacity: 1;
        }
        
        .search-btn {
            background: none;
            border: none;
            padding: 8px 12px;
            color: #3f3434ff;
        }
        
        .navbar.scrolled .search-btn {
            color: #333;
        }
        
        /* 语言选择器样式 - 美化 */
        .language-selector {
            cursor: pointer;
            color: #333;
            display: flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 4px;
            transition: all 0.3s;
            position: relative;
        }
        
        .language-selector:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .navbar.scrolled .language-selector {
            color: #333;
        }
        
        .language-selector i {
            margin-right: 5px;
        }
        
        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 4px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            min-width: 120px;
            display: none;
            z-index: 1000;
        }
        
        .language-dropdown.active {
            display: block;
        }
        
        .language-option {
            padding: 8px 15px;
            display: flex;
            align-items: center;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .language-option:hover {
            background-color: #f5f5f5;
        }
        
        .language-option.active {
            background-color: var(--light-color);
            color: var(--primary-color);
            font-weight: bold;
        }
        
        .language-flag {
            width: 20px;
            height: 15px;
            margin-right: 8px;
            border-radius: 2px;
            overflow: hidden;
        }
        
        /* Banner样式 */
        .banner-section {
            height: 100vh;
            background-color: var(--primary-color);
            position: relative;
            overflow: hidden;
            margin-top: -100px;
        }
        
        .banner-slide {
            height: 100%;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .banner-slide::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
        }
        
        .banner-content {
            position: absolute;
            left: 0;
            right: 380px;
            bottom: 50px;
            padding-left: 40px;
            color: #fff;
            font-size: 30px;
            line-height: 1.2;
        }
        
        /* 内容区域样式 */
        .section-title {
            margin-bottom: 60px;
            position: relative;
        }
        
        .section-title h3 {
            font-size: 44px;
            font-weight: bold;
            color: var(--primary-color);
            position: relative;
            z-index: 9;
        }
        
        .section-title em {
            color: var(--accent-color);
        }
        
        .section-title p {
            font-size: 60px;
            color: #000;
            font-style: italic;
            font-weight: bold;
            text-transform: uppercase;
            opacity: 0.1;
            position: absolute;
            top: -10px;
            left: 0;
            z-index: 5;
            line-height: 60px;
        }
        
        /* 新闻动态样式 - 重新设计 */
        .news-section {
            padding: 75px 0;
            background-color: var(--light-color);
        }
        
        .news-tabs {
            display: flex;
            justify-content: flex-start;
            margin-bottom: 40px;
            border-bottom: 1px solid #ddd;
        }
        
        .news-tab {
            padding: 12px 25px;
            margin-right: 10px;
            background: none;
            border: none;
            font-size: 18px;
            color: #666;
            cursor: pointer;
            position: relative;
            transition: all 0.3s;
        }
        
        .news-tab.active {
            color: var(--primary-color);
            font-weight: bold;
        }
        
        .news-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary-color);
        }
        
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .news-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .news-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .news-image {
            /* height: 220px; */
            overflow: hidden;
        }
        
        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .news-card:hover .news-image img {
            transform: scale(1.05);
        }
        
        .news-content {
            padding: 20px;
        }
        
        .news-date {
            color: var(--accent-color);
            font-size: 14px;
            margin-bottom: 10px;
            display: block;
        }
        
        .news-title {
            font-size: 20px;
            font-weight: bold;
            color: var(--text-color);
            margin-bottom: 15px;
            line-height: 1.4;
        }
        
        .news-excerpt {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .news-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            transition: all 0.3s;
        }
        
        .news-link i {
            margin-left: 5px;
            transition: transform 0.3s;
        }
        
        .news-link:hover {
            color: var(--secondary-color);
        }
        
        .news-link:hover i {
            transform: translateX(5px);
        }
        
        .news-more {
            text-align: center;
            margin-top: 30px;
        }
        
        .more-btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .more-btn:hover {
            background-color: var(--secondary-color);
            color: white;
        }
        
        /* 研究會介紹樣式 - 重新設計 */
        .about-section {
            padding: 75px 0;
            position: relative;
            background: white;
        }
        
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        
        .about-text {
            padding-right: 20px;
        }
        
        .about-text p {
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 20px;
            color: #555;
        }
        
        .about-highlights {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 30px 0;
        }
        
        .highlight-item {
            text-align: center;
            padding: 20px;
            background: var(--light-color);
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .highlight-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .highlight-icon {
            font-size: 40px;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .highlight-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--text-color);
        }
        
        .highlight-desc {
            font-size: 14px;
            color: #666;
        }
        
        .about-image {
            position: relative;
        }
        
        .about-image img {
            width: 550px;
            height: 250px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .about-image::before {
            content: '';
            position: absolute;
            top: -20px;
            left: -20px;
            width: 100%;
            height: 100%;
            border: 3px solid var(--accent-color);
            border-radius: 8px;
            z-index: -1;
        }
        
        .about-btn {
            display: inline-block;
            padding: 12px 30px;
            border-radius: 4px;
            background-color: var(--primary-color);
            color: #fff;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: bold;
        }
        
        .about-btn:hover {
            background-color: var(--secondary-color);
            color: #fff;
        }
        
        /* 视频样式 - 修复 */
        .video-section {
            padding: 75px 0;
            background-color: var(--light-color);
        }
        
        .video-item {
            margin-bottom: 40px;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .video-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .video-img {
            height: 336px;
            overflow: hidden;
            position: relative;
        }
        
        .video-img img {
            height: 336px;
            object-fit: cover;
            transition: all 0.3s;
            width: 100%;
        }
        
        .video-img:hover img {
            transform: scale(1.1);
        }
        
        .video-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9;
            transition: all 0.3s;
        }
        
        .video-play i {
            color: #fff;
            font-size: 24px;
        }
        
        .video-name {
            padding: 20px;
            background-color: #fff;
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-color);
            text-align: center;
        }
        
        /* 视频播放器模态框样式 */
        .video-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        
        .video-modal.active {
            display: flex;
        }
        
        .video-player-container {
            width: 90%;
            max-width: 1000px;
            background-color: #000;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
        }
        
        .video-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
        }
        
        .video-title {
            font-size: 18px;
            font-weight: bold;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .close-btn:hover {
            color: var(--accent-color);
        }
        
        .video-player {
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 宽高比 */
            position: relative;
        }
        
        .video-player video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
        }
        
        .video-controls {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
        }
        
        .play-pause-btn {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            margin-right: 15px;
            cursor: pointer;
        }
        
        .progress-container {
            flex-grow: 1;
            height: 6px;
            background-color: #555;
            border-radius: 3px;
            margin-right: 15px;
            cursor: pointer;
            position: relative;
        }
        
        .progress-bar {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 3px;
            width: 0%;
        }
        
        .time-display {
            font-size: 14px;
            color: #ccc;
            margin-right: 15px;
            white-space: nowrap;
        }
        
        .volume-control {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        
        .volume-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            margin-right: 8px;
        }
        
        .volume-slider {
            width: 80px;
            height: 6px;
            background-color: #555;
            border-radius: 3px;
            cursor: pointer;
            position: relative;
        }
        
        .volume-level {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 3px;
            width: 100%;
        }
        
        .fullscreen-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }
        
        /* 底部样式 - 修复 */
        .footer-section {
            background-color: var(--dark-color);
            padding: 70px 0 30px;
            color: #fff;
        }
        
        .footer-nav {
            margin-bottom: 20px;
        }
        
        .footer-nav a {
            color: #fff;
            text-decoration: none;
            margin-right: 50px;
            font-size: 18px;
            transition: all 0.3s;
        }
        
        .footer-nav a:hover {
            color: var(--accent-color);
            text-decoration: none;
        }
        
        .copyright {
            color: #aaa;
            font-size: 16px;
            margin-top: 28px;
        }
        
        .footer-btns {
            text-align: right;
        }
        
        .footer-btns a {
            display: inline-block;
            margin-left: 15px;
            color: #fff;
            transition: all 0.3s;
        }
        
        .footer-btns a:hover {
            color: var(--accent-color);
            transform: translateY(-3px);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .header-top {
                display: none;
            }
            
            .banner-content {
                font-size: 20px;
                right: 100px;
                padding-left: 20px;
            }
            
            .section-title h3 {
                font-size: 36px;
            }
            
            .section-title p {
                font-size: 48px;
            }
            
            .about-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .about-text {
                padding-right: 0;
            }
            
            .news-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .footer-nav a {
                margin-right: 30px;
                font-size: 16px;
            }
            
            .footer-btns {
                text-align: left;
                margin-top: 20px;
            }
            
            .video-controls {
                flex-wrap: wrap;
            }
            
            .progress-container {
                order: 1;
                width: 100%;
                margin-top: 10px;
                margin-right: 0;
            }
            
            .time-display {
                order: 0;
            }
            
            .volume-control {
                margin-right: 10px;
            }
            
            .volume-slider {
                width: 60px;
            }
        }
        
        @media (max-width: 768px) {
            .banner-section {
                height: 70vh;
            }
            
            .banner-content {
                font-size: 18px;
                right: 50px;
                bottom: 30px;
            }
            
            .section-title h3 {
                font-size: 28px;
            }
            
            .section-title p {
                font-size: 36px;
            }
            
            .news-tabs {
                flex-wrap: wrap;
            }
            
            .news-tab {
                margin-bottom: 10px;
            }
            
            .about-highlights {
                grid-template-columns: 1fr;
            }
            
            .about-image img {
                width: 100%;
                height: 100%;
            }
            
            .video-img, .video-img img {
                height: 100%;
            }
            
            .footer-nav a {
                display: block;
                margin-bottom: 15px;
                margin-right: 0;
            }
            
            .video-player-container {
                width: 95%;
            }
        }
        
        @media (max-width: 576px) {
            .banner-content {
                font-size: 16px;
                right: 20px;
                padding-left: 15px;
            }
            
            .section-title h3 {
                font-size: 24px;
            }
            
            .section-title p {
                font-size: 28px;
            }
            
            .news-grid {
                grid-template-columns: 1fr;
            }
            
            .about-image img {
                width: 100%;
                height: 100%;
            }
            
            .video-img, .video-img img {
                height: 200px;
            }
        }


       /* 強制桌面版顯示 carousel 控制鈕並修正圖示尺寸 */
@media (min-width: 992px) {
  .carousel-control-prev,
  .carousel-control-next {
    opacity: 1 !important;
    visibility: visible !important;
    width: 50px;
  }

  /* 修正圖示容器尺寸為 32×32，並居中 */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-size: 100% 100% !important; /* 確保 SVG 全尺寸渲染 */
    background-position: center !important;
  }

  /* 可選：加深圖示顏色（使用 filter）*/
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(25%) sepia(20%) saturate(3000%) hue-rotate(350deg) brightness(95%) contrast(90%);
    /* 上述 filter ≈ #5a0f0f 深紅色；若想直接替換圖示，可改用自訂 SVG 或 CSS 畫圖 */
  }


}


/* ==== 补充：主导航当前页高亮样式 ==== */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* 让 active 项的下划线常驻显示（非 hover）*/
.nav-link.active::before {
    left: 0;
    width: 100%;
    opacity: 1;
}

/* 确保 scrolled 状态下也生效 */
.navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}