/* ====== 页面标题 ====== */
.page-header {
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: #fff;
	padding: 60px 0;
	text-align: center
}

.page-header h1 {
	font-size: 42px;
	margin-bottom: 15px
}

.page-header p {
	font-size: 18px;
	opacity: .9
}

/* ====== 筛选栏 ====== */
.filter-bar {
	background: #fff;
	padding: 25px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	/* position: sticky; */
	top: 80px;
	z-index: 100
}

.filter-list {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap
}

.filter-item {
	padding: 10px 25px;
	background: #f8f9fa;
	border-radius: 25px;
	cursor: pointer;
	transition: all .3s ease;
	font-size: 14px;
	color: #666;
	border: 2px solid transparent
}

.filter-item:hover {
	border-color: #e74c3c;
	color: #e74c3c
}

.filter-item.active {
	background: #e74c3c;
	color: #fff;
	border-color: #e74c3c
}

/* ====== 工地列表 ====== */
.site-list {
	padding: 40px 0
}

.site-card {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
	transition: all .3s ease
}

.site-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12)
}

/* 工地头部信息 */
.site-header {
	margin-bottom: 20px
}

.site-name {
	font-size: 24px;
	color: #2c3e50;
	margin-bottom: 8px;
	font-weight: bold
}

.site-meta {
	display: flex;
	gap: 20px;
	color: #666;
	font-size: 14px;
	flex-wrap: wrap;
	padding-top: 20px;
}

.site-meta span {
	display: flex;
	align-items: center;
	gap: 5px
}

/* 进度时间轴 */
.timeline-wrapper {
	margin: 25px 0;
	overflow-x: auto;
	padding-bottom: 10px
}

.timeline {
	display: flex;
	align-items: center;
	gap: 0;
	/* min-width: 700px; */
	position: relative;
	padding-top: 30px;
	;
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex: 1
}

.timeline-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ddd;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #ddd;
	position: relative;
	z-index: 2;
	transition: all .3s ease
}

.timeline-dot.active {
	background: #e74c3c;
	box-shadow: 0 0 0 2px #e74c3c
}

.timeline-dot.current {
	background: #e74c3c;
	box-shadow: 0 0 0 4px rgba(231, 76, 60, .3);
	animation: pulse 2s infinite
}

@keyframes pulse {

	0%,
	100% {
		box-shadow: 0 0 0 4px rgba(231, 76, 60, .3)
	}

	50% {
		box-shadow: 0 0 0 8px rgba(231, 76, 60, .1)
	}
}

.timeline-label {
	margin-top: 12px;
	font-size: 13px;
	color: #999;
	white-space: nowrap
}

.timeline-label.active {
	color: #e74c3c;
	font-weight: 500
}

.timeline-label.current {
	color: #e74c3c;
	font-weight: bold;
	font-size: 14px
}

.timeline-line {
	position: absolute;
	top: 6px;
	left: 50%;
	width: 100%;
	height: 3px;
	background: #eee;
	z-index: 1
}

.timeline-line.active {
	background: linear-gradient(90deg, #e74c3c, #e74c3c 50%, #eee 50%)
}

.timeline-line.full {
	background: #e74c3c
}

/* 施工图片 */
.site-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin: 20px 0
}

.gallery-item {
	height: 160px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	position: relative
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease
}

.gallery-item:hover img {
	transform: scale(1.1)
}

.gallery-more {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold
}

/* 工地底部 */
.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0
}

.site-contractor {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #5dbe8a;
	font-size: 14px;
	cursor: pointer
}

.site-contractor:hover {
	color: #4aa876
}

.site-contractor-icon {
	width: 20px;
	height: 20px;
	background: #5dbe8a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px
}

.btn-view-site {
	padding: 12px 30px;
	background: #e74c3c;
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: all .3s ease;
	border: none;
	cursor: pointer
}

.btn-view-site:hover {
	background: #c0392b;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(231, 76, 60, .3)
}

/* 状态标签 */
.status-tag {
	display: inline-block;
	padding: 5px 15px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
	margin-left: 15px
}

.status-building {
	background: #fff3e0;
	color: #f39c12
}

.status-finished {
	background: #e8f5e9;
	color: #27ae60
}

/* ====== 预约报名弹窗样式 ====== */
.modal-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.modal-mask.show {
	opacity: 1;
	visibility: visible;
}

.modal-container {
	background: #fff;
	border-radius: 15px;
	width: 90%;
	max-width: 500px;
	padding: 30px;
	position: relative;
	transform: translateY(-20px);
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-mask.show .modal-container {
	transform: translateY(0);
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 18px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.modal-close:hover {
	background: #e74c3c;
	color: #fff;
}

.modal-header {
	margin-bottom: 25px;
	text-align: center;
}

.modal-header h3 {
	font-size: 24px;
	color: #2c3e50;
	margin-bottom: 10px;
}

.modal-header p {
	color: #666;
	font-size: 14px;
}

.modal-form .form-group {
	margin-bottom: 20px;
}

.modal-form label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-weight: 500;
	font-size: 14px;
}

.modal-form input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.modal-form input:focus {
	outline: none;
	border-color: #e74c3c;
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.modal-submit {
	width: 100%;
	padding: 15px;
	background: linear-gradient(135deg, #e74c3c, #c0392b);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.modal-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* 隐藏的工地信息存储 */
.site-info-hidden {
	display: none;
}

/* 分页 */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 40px 0
}

.page-btn {
	padding: 10px 15px;
	border: 1px solid #ddd;
	background: #fff;
	color: #666;
	border-radius: 5px;
	cursor: pointer;
	transition: all .3s ease;
	text-decoration: none
}

.page-btn:hover,
.page-btn.active {
	background: #e74c3c;
	color: #fff;
	border-color: #e74c3c
}

.page-btn:disabled {
	opacity: .5;
	cursor: not-allowed
}




/* 工地详情卡片 */
.site-detail {
	padding: 40px 0
}

.detail-card {
	background: #fff;
	border-radius: 15px;
	padding: 40px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, .08)
}

/* 工地标题 */
.site-title {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px
}

.site-title h1 {
	font-size: 28px;
	color: #2c3e50
}

.status-tag {
	padding: 5px 15px;
	border-radius: 15px;
	font-size: 14px
}

.status-building {
	background: #fff3e0;
	color: #f39c12
}

.status-finish {
	background: #e8f5e9;
	color: #27ae60
}

/* 工地信息 */
.site-info {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap
}

.info-item {
	font-size: 15px;
	color: #666
}

/* 时间轴（已修复：圆点完整 + 横线连贯） */
.timeline-wrapper {
	margin: 30px 0;
	overflow-x: auto;
	padding-bottom: 10px
}

.timeline {
	display: flex;
	align-items: center;
	min-width: 700px;
	position: relative;
	padding: 5px 0
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex: 1;
	z-index: 3
}

.timeline-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ddd;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #ddd;
	z-index: 4;
	position: relative
}

.timeline-dot.active {
	background: #e74c3c;
	box-shadow: 0 0 0 2px #e74c3c
}

.timeline-dot.current {
	background: #e74c3c;
	box-shadow: 0 0 0 4px rgba(231, 76, 60, .3);
	animation: pulse 2s infinite
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 4px rgba(231, 76, 60, .3)
	}

	50% {
		box-shadow: 0 0 0 8px rgba(231, 76, 60, .1)
	}

	100% {
		box-shadow: 0 0 0 4px rgba(231, 76, 60, .3)
	}
}

.timeline-label {
	margin-top: 10px;
	font-size: 13px;
	color: #999;
	white-space: nowrap
}

.timeline-label.active {
	color: #e74c3c;
	font-weight: 500
}

.timeline-label.current {
	color: #e74c3c;
	font-weight: bold
}

.timeline-line {
	position: absolute;
	top: 7px;
	left: 0;
	width: 100%;
	height: 3px;
	background: #eee;
	z-index: 1
}

.timeline-line.full {
	background: #e74c3c
}

.timeline-step:last-child .timeline-line {
	/* display: none */
}

/* 阶段模块（每个阶段独立展示） */
.stage-section {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px dashed #eee
}

.stage-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
	font-size: 20px;
	color: #2c3e50;
	justify-content: space-between;
}

.stage-title span {
	width: 6px;
	height: 24px;
	background: #e74c3c;
	border-radius: 3px;
	display: none;
}

.stage-title i {
	font-size: 12px;
	color: #888;
	font-style: normal;
	float: right;
}


.stage-desc {
	background: #f9f9f9;
	padding: 18px;
	border-radius: 10px;
	color: #555;
	margin-bottom: 20px;
	line-height: 1.7
}

.stage-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px
}

.gallery-item {
	height: 220px;
	border-radius: 10px;
	overflow: hidden
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

/* 按钮 */
.btn-group {
	margin-top: 50px;
	display: flex;
	gap: 20px
}

.btn {
	padding: 12px 30px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 15px
}

.btn-primary {
	background: #e74c3c;
	color: #fff
}

.btn-default {
	background: #fff;
	color: #666;
	border: 1px solid #ddd
}


/* 新增弹窗样式（优化优先级和显示逻辑） */
.modal-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	/* 改为通过类控制显示隐藏，避免行内样式覆盖 */
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s ease;
}

/* 新增激活类，控制弹窗显示 */
.modal-mask.active {
	visibility: visible;
	opacity: 1;
}

.modal-content {
	width: 90%;
	max-width: 450px;
	background: #fff;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-20px);
	transition: transform 0.3s ease;
}

.modal-mask.active .modal-content {
	transform: translateY(0);
}

.modal-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
	text-align: center;
}

.form-group {
	margin-bottom: 18px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #666;
	font-size: 14px;
}

.form-group input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.form-group input:focus {
	outline: none;
	border-color: #007bff;
}

.modal-btn-group {
	display: flex;
	gap: 10px;
	margin-top: 25px;
}

.modal-btn {
	flex: 1;
	padding: 10px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-submit {
	background: #007bff;
	color: #fff;
}

.btn-submit:hover {
	background: #0056b3;
}

.btn-close {
	background: #eee;
	color: #666;
}

.btn-close:hover {
	background: #ddd;
}

.tip-text {
	text-align: center;
	margin-top: 15px;
	color: #666;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tip-text.show {
	opacity: 1;
}