/* 共享頁面樣式 - 用於資訊動態頁面 */
/* 引入優雅字體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
	--primary-color: #1a365d;
	--primary-light: #2c5282;
	--accent-color: #c53030;
	--accent-gold: #d69e2e;
	--bg-warm: #fffaf0;
	--bg-card: #ffffff;
	--text-dark: #2d3748;
	--text-muted: #718096;
	--border-light: #e2e8f0;
	--shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 頁面標題區 */
.page-header {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	padding: 60px 20px;
	margin: 0;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-large);
}

.page-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
	pointer-events: none;
}

.page-header-content {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 1;
}

.page-title {
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 15px 0;
	letter-spacing: 2px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	animation: slideDownIn 0.6s ease-out;
}

.page-subtitle {
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 25px 0;
	letter-spacing: 1px;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-decoration {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line {
	flex: 0 1 60px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
}

.title-icon {
	font-size: 32px;
	animation: bounce 2s ease-in-out infinite;
}

@keyframes slideDownIn {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* 頁面整體背景 */
.submian {
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	padding-bottom: 30px;
	padding-top: 20px;
}

/* 麵包屑導航優化 */
.sobtitle {
	background: var(--bg-card);
	padding: 15px 25px !important;
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	margin-bottom: 30px !important;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 14px;
	color: var(--text-muted);
	border-left: 4px solid var(--accent-gold);
}

.sobtitle a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition-smooth);
	font-weight: 500;
}

.sobtitle a:hover {
	color: var(--accent-color);
}

/* 左側導航優化 */
.subleft .lefta {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-medium);
	background: var(--bg-card);
}

.subleft .lefta .title {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	padding: 20px 25px;
	border-radius: 16px 16px 0 0;
}

.subleft .lefta .title h2 {
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 2px;
}

.subleft .lefta .comt ul li {
	border-bottom: 1px solid var(--border-light);
	transition: var(--transition-smooth);
}

.subleft .lefta .comt ul li a {
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: var(--text-dark);
	padding: 18px 25px;
	display: flex;
	align-items: center;
	transition: var(--transition-smooth);
	position: relative;
}

.subleft .lefta .comt ul li a::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--accent-gold);
	border-radius: 50%;
	margin-right: 12px;
	transition: var(--transition-smooth);
}

.subleft .lefta .comt ul li.hover a,
.subleft .lefta .comt ul li a:hover {
	background: linear-gradient(90deg, rgba(214, 158, 46, 0.1) 0%, transparent 100%);
	color: var(--accent-color) !important;
	padding-left: 30px;
}

.subleft .lefta .comt ul li.hover a::before,
.subleft .lefta .comt ul li a:hover::before {
	transform: scale(1.5);
	background: var(--accent-color);
}

/* 右側內容區域 */
.subright {
	background: transparent;
	overflow: hidden;
}

.subright .conBox {
	display: flex;
	flex-direction: column;
}

/* 標題區塊優化 */
.conBox .anlitopH4 {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	border-radius: 12px;
	padding: 0;
	margin-top: 0 !important;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	position: relative;
	min-height: 56px;
	display: flex;
	align-items: center;
}

.conBox .anlitopH4::before {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
}

.conBox .anlitopH4 span {
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 3px;
	padding: 18px 25px;
	border-left: 5px solid var(--accent-gold);
}

/* 文章列表容器 */
.divremmnews {
	padding: 25px 0;
	background: transparent;
	clear: both;
}

.divremmnews::after {
	content: '';
	display: table;
	clear: both;
}

.divremmnews ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 文章卡片美化 */
.divremmnews .U1 {
	background: var(--bg-card);
	border: none !important;
	border-radius: 16px;
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	transition: var(--transition-smooth);
	margin: 0 !important;
	position: relative;
}

.divremmnews .U1::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-color) 100%);
	opacity: 0;
	transition: var(--transition-smooth);
}

.divremmnews .U1:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-large);
	border: none !important;
}

.divremmnews .U1:hover::before {
	opacity: 1;
}

.divremmnews .U1 article {
	display: flex;
	align-items: stretch;
	padding: 20px;
	gap: 25px;
}

/* 縮略圖區域 */
.divremmnews .U1 article > div:first-child {
	flex-shrink: 0;
	margin: 0 !important;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.divremmnews .U1 article > div:first-child a {
	display: block;
}

.divremmnews .U1 article > div:first-child img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: var(--transition-smooth);
	display: block;
}

.divremmnews .U1:hover article > div:first-child img {
	transform: scale(1.05);
}

/* 內容區域 */
.divremmnews .U1 section {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 5px 10px 5px 0 !important;
	width: auto !important;
}

.divremmnews .U1 section header {
	margin: 0 !important;
}

.divremmnews .U1 section header h3 {
	font-family: 'Noto Sans TC', sans-serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--text-dark) !important;
	margin: 0 0 12px 0 !important;
	height: auto !important;
	transition: var(--transition-smooth);
}

.divremmnews .U1 section header h3 a {
	color: inherit !important;
	text-decoration: none;
}

.divremmnews .U1:hover section header h3 {
	color: var(--primary-color) !important;
}

/* 日期樣式 */
.divremmnews .U1 section dd {
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 14px !important;
	color: var(--text-muted) !important;
	margin: 0 !important;
	padding: 8px 16px;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	width: fit-content;
}

.divremmnews .U1 section dd::before {
	content: '📅';
	margin-right: 8px;
	font-size: 12px;
}

/* 更多按鈕 */
.divremmnews .U1 .more {
	margin-top: 15px;
}

.divremmnews .U1 .look_more {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px !important;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
	color: #fff !important;
	border-radius: 25px;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 14px !important;
	font-weight: 500;
	text-decoration: none;
	transition: var(--transition-smooth);
	box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.divremmnews .U1 .look_more:hover {
	transform: translateX(5px);
	box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
	background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important;
}

.divremmnews .U1 .look_more span {
	color: #fff !important;
	font-size: 14px !important;
}

/* 分頁器美化 */
#pager {
	margin-top: 30px;
	padding: 20px;
	background: var(--bg-card);
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	float: none !important;
	clear: both;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

#pager a, #pager span {
	font-family: 'Noto Sans TC', sans-serif;
	min-width: 42px;
	height: 42px;
	line-height: 1;
	text-align: center;
	border-radius: 10px !important;
	margin: 0 2px !important;
	padding: 0;
	font-weight: 500;
	transition: var(--transition-smooth);
	border: 2px solid var(--border-light) !important;
	background: var(--bg-card);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	color: var(--text-dark);
}

#pager a:hover:not([disabled="true"]) {
	border-color: var(--primary-color) !important;
	color: var(--primary-color) !important;
	transform: translateY(-2px);
	box-shadow: var(--shadow-soft);
}

#pager span.current {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
	border-color: var(--primary-color) !important;
	color: #fff !important;
	box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
	cursor: default;
}

#pager span.els {
	border: none !important;
	background: transparent !important;
	cursor: default;
	padding: 0 4px;
	color: var(--text-muted);
}

#pager a.pg-first,
#pager a.pg-last,
#pager a.pg-prev,
#pager a.pg-next {
	font-weight: 700;
	min-width: 44px;
	font-size: 14px;
}

#pager a[disabled="true"],
#pager a.pg-first[disabled="true"],
#pager a.pg-last[disabled="true"],
#pager a.pg-prev[disabled="true"],
#pager a.pg-next[disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	color: #ccc !important;
	border-color: #e2e8f0 !important;
	pointer-events: none;
}

/* 回到頂部按鈕美化 */
.goTop {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-medium);
	transition: var(--transition-smooth);
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 999;
	cursor: pointer;
}

.goTop:hover {
	transform: scale(1.1) translateY(-3px);
	box-shadow: var(--shadow-large);
}

.goTop img {
	display: none;
}

/* 用純 CSS 畫 icon（更清晰，避免圖片模糊） */
.goTop::before {
	content: '';
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 12px solid rgba(255,255,255,0.95);
	transform: translateY(-2px);
}

.goTop::after {
	content: '';
	width: 3px;
	height: 14px;
	background: rgba(255,255,255,0.95);
	border-radius: 999px;
	position: absolute;
	transform: translateY(8px);
}

/* 動畫效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.divremmnews .U1 {
	animation: fadeInUp 0.6s ease-out forwards;
}

.divremmnews .U1:nth-child(1) { animation-delay: 0.1s; }
.divremmnews .U1:nth-child(2) { animation-delay: 0.2s; }
.divremmnews .U1:nth-child(3) { animation-delay: 0.3s; }
.divremmnews .U1:nth-child(4) { animation-delay: 0.4s; }
.divremmnews .U1:nth-child(5) { animation-delay: 0.5s; }
.divremmnews .U1:nth-child(6) { animation-delay: 0.6s; }

/* 空狀態樣式 */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
	font-family: 'Noto Sans TC', sans-serif;
}

.empty-state::before {
	content: '📋';
	display: block;
	font-size: 48px;
	margin-bottom: 20px;
}

/* 響應式優化 */
@media (max-width: 1200px) {
	.divremmnews .U1 article {
		flex-direction: column;
	}
	
	.divremmnews .U1 article > div:first-child {
		width: 100%;
	}
	
	.divremmnews .U1 article > div:first-child img {
		width: 100% !important;
		height: 200px !important;
	}
	
	.divremmnews .U1 section {
		width: 100% !important;
		padding: 15px 0 0 0 !important;
	}
}

