@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;
	}
}