@charset "utf-8";
body, ul, dl, dd, dt, ol, li, p, h1, h2, h3, h4, h5, h6, textarea, form, select, fieldset, table, td, div, input{margin:0;padding:0;-webkit-text-size-adjust:none}
div{text-align:left}
a img{border:0}
body{}
ul, ol, li{list-style-type:none;vertical-align:0}
a{outline-style:none;color:#535353;text-decoration:none}
a:hover{color:#D40000; text-decoration:none}
body{
    background-color: #fff
}
/* 效果CSS开始 */
.mod18{width:100%;position:relative;margin:0 auto;}
.mod18 .btn{position:absolute;cursor:pointer;z-index:99;font-size:50px;font-weight:bold;}
.mod18 .prev{left:10px;background:url(../images/prevBtn.png) no-repeat;}
.mod18 #prevTop,.mod18 #nextTop{top:250px;width:32px;height:48px;}
.mod18 #prev,.mod18 #next{top:490px;width:10px;height:16px;}
.mod18 #prevTop{background:url(../images/prevBtnTop.png) 0 0 no-repeat;}
.mod18 #nextTop{background:url(../images/nextBtnTop.png) 0 0 no-repeat;}
.mod18 .next{right:10px;background:url(../images/nextBtn.png) no-repeat;}
.mod18 li{float:left;}
.mod18 .cf li{position:relative;color:#fff;}
.mod18 .cf a{display:block;width:526px;height:377px;position:absolute;color:#fff;}
.mod18 .cf li span{display:block;width:486px;position:absolute;left:75px;bottom:0;padding:10px 20px;line-height:22px;text-align:left;background:rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient( GradientType = 0,startColorstr = "#60000000",endColorstr = "#60000000");}
.mod18 .picBox{width:526px; height:394px; padding-left:75px; padding-right:76px;position:relative;overflow:hidden;padding-top:40px;}
.mod18 .picBox ul{height:377px;position:absolute; left:0;}
.mod18 .picBox li{padding-left:75px; padding-right:1px; width:526px;height:377px;}
.mod18 .listBox{width:642px;height:100px;margin:0 auto;position:relative; padding-top:15px;overflow:hidden;}
.mod18 .listBox ul{height:88px;position:absolute; padding-left:12px;}
.mod18 .listBox li{width:127px;height:77px;cursor:pointer;position:relative; padding:5px 0 0 0;opacity: 1;}
.mod18 .listBox li i{display:none;}
.mod18 .listBox li a{display:block;width:108px;height:77px;background-color:#cfa972;opacity: 0.6;}
.mod18 .listBox img{background-color:#cfa972;opacity: 0.6;}
.mod18 .listBox .on a{opacity: 1;}
.mod18 .listBox .on img{opacity: 1;}
.mod18 .listBox .on i{display:block;}
.listBox img{width: 100%}

/* -----------------------
   Detail page (mobile-first)
   ----------------------- */

:root{
	--detail-bg: #f3f5f8;
	--detail-card: #ffffff;
	--detail-text: #1b1b1b;
	--detail-muted: #64748b;
	--detail-accent: #003333;
}

body.detail-page{
	margin: 0;
	padding: 0;
	background: var(--detail-bg);
	color: var(--detail-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

body.detail-page *{
	box-sizing: border-box;
}

body.detail-page a{
	color: inherit;
}

body.detail-page img{
	max-width: 100%;
	height: auto;
}

.detail-topbar{
	position: sticky;
	top: 0;
	z-index: 1000;
	background: linear-gradient(135deg, var(--detail-accent), #024b4b);
	color: #fff;
	box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
}

.detail-topbar__inner{
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.detail-back{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-back:hover{
	background: rgba(255,255,255,0.22);
	border-color: rgba(255,255,255,0.28);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.detail-back:active{
	transform: scale(0.96);
	background: rgba(255,255,255,0.28);
}

.detail-back__icon{
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.detail-back__text{
	line-height: 1;
}

.detail-category{
	margin-left: auto;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2px;
	opacity: 1;
	text-align: right;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,0.14);
	backdrop-filter: blur(8px);
}

.detail-content{
	max-width: 900px;
	margin: 14px auto 40px;
	padding: 0 16px;
}

.detail-card{
	background: var(--detail-card);
	border-radius: 14px;
	padding: 16px;
	box-shadow:
		0 10px 30px rgba(15, 23, 42, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.65) inset;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.detail-card + .detail-card{
	margin-top: 16px;
}

.detail-card--media{
	padding: 12px;
}

.detail-title{
	margin: 0 0 8px;
	font-weight: 700;
	font-size: clamp(20px, 4.2vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #2b3a42;
}

.detail-meta{
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--detail-muted);
}

.detail-note{
	border-left: 4px solid rgb(0, 114, 179);
	background: #FFFFCC;
	color: var(--detail-text);
	border-radius: 12px;
	padding: 12px;
}

.detail-richtext{
	font-size: 16px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.detail-richtext h1,
.detail-richtext h2,
.detail-richtext h3,
.detail-richtext h4,
.detail-richtext h5,
.detail-richtext h6{
	margin: 1.1em 0 0.6em;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #0f172a;
}

.detail-richtext h1{ font-size: 1.5em; }
.detail-richtext h2{ font-size: 1.32em; }
.detail-richtext h3{ font-size: 1.18em; }
.detail-richtext h4{ font-size: 1.08em; }
.detail-richtext h5,
.detail-richtext h6{ font-size: 1.0em; }

.detail-richtext p,
.detail-richtext div,
.detail-richtext li{
	margin: 0 0 0.75em;
}

.detail-richtext p:last-child,
.detail-richtext div:last-child,
.detail-richtext li:last-child{
	margin-bottom: 0;
}

.detail-richtext table{
	display: block;
	max-width: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.detail-richtext ul,
.detail-richtext ol{
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.detail-richtext li{
	padding-left: 0.1em;
}

.detail-richtext a{
	color: #0b5cab;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.detail-richtext a:hover{
	color: #084a89;
}

.detail-richtext blockquote{
	margin: 1em 0;
	padding: 10px 12px;
	border-left: 4px solid rgba(2, 132, 199, 0.55);
	background: rgba(2, 132, 199, 0.08);
	border-radius: 10px;
	color: #0f172a;
}

.detail-richtext hr{
	border: 0;
	border-top: 1px solid rgba(15, 23, 42, 0.12);
	margin: 16px 0;
}

.detail-richtext img{
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 10px auto 14px;
}

.detail-richtext table{
	border-collapse: collapse;
}

.detail-richtext table th,
.detail-richtext table td{
	padding: 10px 12px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	vertical-align: top;
}

.detail-richtext table th{
	background: rgba(15, 23, 42, 0.04);
	font-weight: 700;
}

.detail-richtext code{
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.95em;
	background: rgba(2, 6, 23, 0.06);
	border-radius: 6px;
	padding: 0 6px;
}

.detail-richtext pre{
	max-width: 100%;
	overflow: auto;
	padding: 12px;
	border-radius: 12px;
	background: rgba(2, 6, 23, 0.06);
}

.detail-richtext pre code{
	background: transparent;
	padding: 0;
}

.detail-media img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.detail-media img + img{
	margin-top: 12px;
}

.video-embed{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.video-embed iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Existing slider: keep JS behavior but make media responsive */
.detail-slider{
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(2, 6, 23, 0.04);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.slider-swipe-hint{
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: none;
	opacity: 0.95;
}

.slider-swipe-hint span{
	display: inline-block;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1.2;
	color: #fff;
	background: rgba(2, 6, 23, 0.55);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 999px;
	backdrop-filter: blur(6px);
	white-space: nowrap;
}

.slider{
	width: 100%;
	overflow: hidden;
}

.slider .slides{
	margin: 0;
	padding: 0;
	/* Hide PHP-echoed folder names like .home/.thumbs inside <ul> (CSS-only) */
	font-size: 0;
	line-height: 0;
}

.slider .slides li{
	list-style: none;
	/* Restore for actual slide items */
	font-size: 16px;
	line-height: normal;
}

.slider .responsive{
	display: block;
	width: 100%;
	height: auto;
	background: rgba(2, 6, 23, 0.06);
}

@media (min-width: 768px){
	.detail-topbar__inner{
		padding: 12px 24px;
	}
	.detail-content{
		padding: 0 24px;
		margin-top: 18px;
	}
	.detail-card{
		padding: 22px 24px;
	}
	.detail-card--media{
		padding: 16px;
	}
}

/* ---------- Align with include/campus/detail presentation ---------- */
:root{
	--campus-primary: #1a365d;
	--campus-primary-light: #2c5282;
	--campus-accent: #c53030;
	--campus-accent-gold: #d69e2e;
	--campus-bg-card: #ffffff;
	--campus-text-dark: #2d3748;
	--campus-text-muted: #718096;
	--campus-border-light: #e2e8f0;
	--campus-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--campus-shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--campus-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-content--campus{
	max-width: 960px;
}

.detail-submian{
	background: linear-gradient(135deg, #177194 0%, #073a4e 100%);
	padding: 20px 0 30px;
	border-radius: 0;
}

.detail-conBox{
	background: var(--campus-bg-card);
	border-radius: 12px;
	padding: 22px 18px 28px;
	box-shadow: var(--campus-shadow-soft);
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.ArticleTitle{
	margin-bottom: 16px;
	padding-bottom: 0;
	border-bottom: 0;
}

.ArticleTitle .bt{
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 700;
	color: var(--campus-text-dark);
	margin: 0;
	line-height: 1.4;
}

.mark{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	border-radius: 8px;
	margin-bottom: 22px;
}

.mark span{
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: 14px;
	color: var(--campus-text-muted);
}

.detail-bodyRich,
#detail{
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	line-height: 1.8;
	color: var(--campus-text-dark);
	font-size: 18px;
}

#detail p{
	margin: 15px 0;
	font-size: inherit;
}

#detail img{
	max-width: 100% !important;
	height: auto !important;
	display: block;
	cursor: zoom-in;
	border-radius: 10px;
	margin: 12px 0;
}

#detail iframe,
#detail video,
#detail embed{
	max-width: 100%;
}

#detail table{
	max-width: 100%;
}

.detail-embedBlock{
	margin: 18px 0;
}

.detail-notecardWrap{
	padding: 4px 0 8px;
}

.apps-detail-notecard{
	box-sizing: border-box;
	border-left: 6px solid rgb(0, 114, 179);
	margin: 0 0 8px;
	padding: 12px 14px;
	background-color: #ffffcc;
	color: rgb(27, 27, 27);
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.apps-detail-notecard p{
	margin: 0;
}

.pageBackBar{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	font-family: 'Noto Sans TC', system-ui, sans-serif;
}

.pageBackBar.isBottom{
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.06);
	justify-content: flex-end;
}

.pageBackBtn{
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(30, 58, 104, 0.12);
	background: #f5f7fa;
	color: #1e3a68;
	border-radius: 50px;
	padding: 8px 20px 8px 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: var(--campus-transition);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	user-select: none;
}

.pageBackBtn:hover{
	background: #eef1f6;
	border-color: rgba(30, 58, 104, 0.18);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pageBackBtn:focus-visible{
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 3px;
}

.pageBackBtn .arrow{
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: #1e3a68;
	flex: 0 0 auto;
}

.pageBackBtn .arrow svg{
	width: 14px;
	height: 14px;
	display: block;
}

.galleryWrap{
	margin: 10px 0 24px;
}

.galleryHero{
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--campus-shadow-soft);
	overflow: hidden;
	margin-bottom: 14px;
}

.galleryHeroMedia{
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.galleryHeroMedia img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .18s ease, transform .18s ease;
	transform: scale(1);
}

.galleryHeroMedia img.isSwitching{
	opacity: 0.25;
	transform: scale(0.985);
}

.galleryHeroBar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-top: 1px solid rgba(0,0,0,0.06);
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	color: var(--campus-text-muted);
	font-size: 14px;
}

.galleryHeroHint{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.galleryMasonry{
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scroll-snap-type: x mandatory;
}

.galleryMasonry::-webkit-scrollbar{
	height: 10px;
}

.galleryMasonry::-webkit-scrollbar-thumb{
	background: rgba(0, 0, 0, 0.15);
	border-radius: 999px;
}

.galleryItem{
	position: relative;
	display: block;
	margin: 0;
	flex: 0 0 calc((100% - 80px) / 6);
	scroll-snap-align: start;
	text-decoration: none;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--campus-shadow-soft);
	transition: transform .18s ease, box-shadow .18s ease;
}

.galleryItem:hover{
	transform: translateY(-2px);
	box-shadow: var(--campus-shadow-medium);
}

.galleryItem.isHeroActive::after{
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 14px;
	box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.35) inset;
	pointer-events: none;
}

.galleryThumb{
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #edf2f7;
	position: relative;
	overflow: hidden;
}

.galleryThumb img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.galleryControls{
	display: flex;
	justify-content: center;
	margin-top: 14px;
	gap: 10px;
	align-items: center;
}

.galleryPagerBtn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0,0,0,0.08);
	background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
	color: var(--campus-text-dark);
	border-radius: 999px;
	padding: 10px 18px;
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: var(--campus-shadow-soft);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	text-decoration: none;
	user-select: none;
}

.galleryPagerBtn:hover{
	transform: translateY(-1px);
	box-shadow: var(--campus-shadow-medium);
}

.galleryPagerBtn.isDisabled{
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}

.galleryPagerMeta{
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: 13px;
	color: var(--campus-text-muted);
	padding: 0 4px;
	white-space: nowrap;
}

body.lightboxOpen{
	overflow: hidden;
}

.lightbox{
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
}

.lightbox.isOpen{
	display: block;
}

.lightboxBackdrop{
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
}

.lightboxDialog{
	position: absolute;
	inset: 24px;
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	grid-template-rows: 56px 1fr 56px;
	align-items: center;
}

.lightboxClose{
	grid-column: 3 / 4;
	grid-row: 1 / 2;
	justify-self: end;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 44px;
	cursor: pointer;
}

.lightboxClose:hover{
	background: rgba(255, 255, 255, 0.22);
}

.lightboxNav{
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 30px;
	line-height: 44px;
	cursor: pointer;
}

.lightboxNav:hover{
	background: rgba(255, 255, 255, 0.22);
}

.lightboxNav.prev{
	grid-column: 1 / 2;
	grid-row: 2 / 3;
	justify-self: start;
}

.lightboxNav.next{
	grid-column: 3 / 4;
	grid-row: 2 / 3;
	justify-self: end;
}

.lightboxFigure{
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.lightboxFigure img{
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: var(--campus-shadow-medium);
}

.lightboxCounter{
	grid-column: 2 / 3;
	grid-row: 3 / 4;
	justify-self: start;
	align-self: end;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	color: rgba(255, 255, 255, 0.92);
	font-family: 'Noto Sans TC', system-ui, sans-serif;
	font-size: 14px;
	margin-bottom: 84px;
}

.lightboxThumbs{
	grid-column: 1 / 4;
	grid-row: 3 / 4;
	align-self: end;
	justify-self: stretch;
	padding: 10px;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.lightboxThumbsTrack{
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.lightboxThumb{
	flex: 0 0 auto;
	width: 96px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.06);
	cursor: pointer;
	transition: transform .12s ease, border-color .12s ease;
}

.lightboxThumb:hover{
	transform: translateY(-1px);
	border-color: rgba(255,255,255,0.35);
}

.lightboxThumb.isActive{
	border-color: rgba(255,255,255,0.82);
}

.lightboxThumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#js-content-lightbox .lightboxCounter{
	margin-bottom: 12px;
}

@media (max-width: 1200px){
	.galleryItem{
		flex-basis: calc((100% - 24px) / 3);
	}
}

@media (max-width: 768px){
	.detail-conBox{
		padding: 16px 14px 22px;
	}
	.ArticleTitle .bt{
		font-size: 20px;
	}
	.detail-bodyRich,
	#detail{
		font-size: 17px;
	}
	.galleryItem{
		flex-basis: calc((100% - 12px) / 2);
	}
	.lightboxDialog{
		inset: 14px;
		grid-template-columns: 44px 1fr 44px;
		grid-template-rows: 48px 1fr 48px;
	}
	.lightboxThumb{
		width: 78px;
		height: 56px;
	}
	.pageBackBtn{
		padding: 10px 16px 10px 8px;
		font-size: 13px;
	}
}