 * {        box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
    :root {
	/* Bootstrap 主要色系 */
	  --bs-primary: #2c7ae0;       /* 主色 (覆蓋 bootstrap primary) */
	  --bs-secondary: #6c757d;     /* 次色 */
	  --bs-success: #198754;
	  --bs-info: #0dcaf0;
	  --bs-warning: #ffc107;
	  --bs-danger: #e63946;        /* 強調色 → danger */
	  --bs-light: #f8f9fa;
	  --bs-dark: #212529;
		
	/* 你自訂的額外變數 */	
    --primary-color: #414141;       /* 主色 */
    --secondary-color: #f8f9fa;     /* 次色 (淺背景) */
	--third-color:#a0d9f6;
	--fourth-color:#fff582;	
    --accent-color: #f08519;        /* 強調色 */
		
    --text-color: #333;             /* 主要文字顏色 */
    --light-text: #6c757d;          /* 次要文字顏色 */
    --border-color: #dee2e6;        /* 邊框顏色 */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* 陰影效果 */
    --transition: all 0.3s ease;    /* 動畫過渡效果 */
        }
body {
  font-family: "微軟正黑體", "Arial Unicode MS", sans-serif;
  font-size: clamp(15px, 1rem, 18px); /* 手機最小15px，預設16px，大螢幕最多18px */
  line-height: 1.6; /* 增加可讀性 */
  color: var(--text-color);
  word-wrap: break-word;        /* 單字太長會換行 */
  word-break: break-all;        /* 英文單字過長時強制斷行 */
  background-color: var(--bs-light);
}
a {
  color: var(--text-color);
  text-decoration: none; /* 預設就沒有底線 */
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--accent-color);
  text-decoration: none; /* 滑鼠移上去也不要底線 */
}
/*==反選的底色==========================================*/	
::selection {text-shadow: none;background:var(--secondary-color);color:var(--light-text)}
img::selection {background: 0 0}
/*=================================================================================================*/
.navbar_padding {
    padding-top: 95px; /* 預設桌面版 */
}

/* 手機版調整 */
@media (max-width: 768px) {
    .navbar_padding {
        padding-top: 80px;
    }
}

/*==nav===============================*/
.custom-nav {
    background-color: transparent !important; /* 背景透明 */
    font-family: "Microsoft JhengHei", sans-serif; /* 微軟正黑體 */
}
.custom-nav .nav-link {
    font-size: 1.2rem;  /* 放大文字 */
    font-weight: 500;
    color: #333;        /* 可自行調整顏色 */
}
.custom-nav .nav-link:hover {
    color: #007bff;     /* 滑過變色，可依需求改 */
}
/* 桌機 nav hover 下劃線 */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #252486;
    transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/*==新聞標題===============================*/
.news-section {
        }
        
.section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid var(--primary-color);
        }
        
.section-title {
            font-size: 1.5rem;
            color: var(--primary-color);
        }
        
.view-all {
            color: var(--light-text);
            font-size: 0.9rem;
        }

/*==新聞card===============================*/
/* 圖片比例與圓角設定 */

/* 手機版：左圖右文，1:1，左側圓角 */
.news-img {
  aspect-ratio: 1/1;
  border-radius: 10px 0 0 10px; /* 左上、左下圓角 */
  overflow: hidden;
}

/* 平板版（768~991px）：上圖下文，4:3，上方圓角 */
@media (min-width: 768px) and (max-width: 991px) {
  .news-img {
    aspect-ratio: 4/3;
    border-radius: 10px 10px 0 0; /* 上方圓角 */
  }
}

/* 桌機版（>=992px）：上圖下文，4:3，上方圓角，底部直角 */
@media (min-width: 992px) {
  .news-img {
    aspect-ratio: 4/3;
    border-radius: 10px 10px 0 0; /* 上方圓角，底部直角 */
  }
}

/* 卡片 hover 效果 */
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 圖片自適應 */
.object-fit-cover {
  object-fit: cover;
}

/* 卡片 hover 效果 */
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 圖片自適應 */
.object-fit-cover {
  object-fit: cover;
}

.card-hover {
  background-color: #fff;                   /* 卡片背景 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 初始陰影 */
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

/* 圖片 */
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最多兩行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .card-title {
        font-size: 1.12rem; /* 手機版縮小 */
    }
}
.card-text {
  color:var(--light-text);	
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 最多三行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover 效果 */
.card-hover:hover {
  background-color: #f5f5f5;               /* 背景色改變 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* 陰影加強 */
  transform: translateY(-5px);              /* 微微浮起 */
}

.card-hover:hover .news-card-img {
  transform: scale(1.03);                   /* 圖片放大 */
}


/*=footer================================*/
.footer-section h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);    
}
.social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: var(--transition);
			color:var(--accent-color);
        }
        
.social-icons a:hover {
            background: var(--secondary-color);
			color:var(--text-color);
            transform: translateY(-3px);
        }
/*=scroll-up================================*/
.scroll-up {
    width: 50px; 
    height: 50px;
    background-color: var(--accent-color); 
    border: 1px solid #fff;
    border-radius: 50%;
    position: fixed;
    bottom: 65px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    display: none;
    color: #fff;
    font-size: 22px;
}
.scroll-up:hover {
    filter: brightness(1.2); /* 亮 20% */
    color: #fff;
}
@media (max-width: 768px) {
    .scroll-up {
        bottom: 160px;
    }
}
/*=news_home================================*/
.three-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 限制三行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*=news_detail================================*/
.news-header {
border-bottom: 2px solid #e9ecef;
padding-bottom: 20px;
margin-bottom: 25px;
 }
.news-title {
font-size: 2.2rem;
font-weight: bold;
color: #2c3e50;
margin-bottom: 15px;
line-height: 1.3;
}
.news-meta {
display: flex;
flex-wrap: wrap;
gap: 20px;
color: #6c757d;
font-size: 0.9rem;
}
.news-meta span {
display: flex;
align-items: center;
 gap: 5px;
}
.news-image {
width: 100%;
max-height: 500px;
object-fit: cover;
border-radius: 8px;
margin: 20px 0;
}
.news-content {
font-size: 1.1rem;
line-height: 1.8;
 color: #2c3e50;
}
.news-content p {
 margin-bottom: 20px;
}
 .news-content img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 15px 0;
}
/* 相关新闻样式 */
.related-news {
 margin: 40px 0;
 }
.section-title {
font-size: 1.8rem;
font-weight: bold;
color: #2c3e50;
}
.related-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 20px;
}
.related-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.related-card:hover {
transform: translateY(-5px);
}
.related-card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.related-content {
padding: 15px;
}
.related-title {
font-size: 1.1rem;
font-weight: bold;
margin-bottom: 10px;
color: #2c3e50;
 }
 .related-date {
color: #6c757d;
font-size: 0.9rem;
}
/* 內文圖片寬度約 80%，並置中 */
.news-content .news-img-80 {
    width: 80%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/*=美通社================================*/
.pr-news{font-size:  0.94rem}
.pr-news a{color: #fff}
/*=other================================*/
.qrcode img{width: 20%;margin: 2%}	
       