@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .bg-gradient-primary {
        background: linear-gradient(135deg, #00bfa5 0%, #00a896 100%);
    }
    .card-hover {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}
.rencait{
	width: 2.5rem;
	height: 2.5rem;
}
.bei-an a:hover{
	color: red;
}
.rcjiaoshao span{
	padding: 5px 8px;
	font-size: 12px;
	background-color: rgb(243 244 246 );
	margin-right: 5px;
	border-radius: 5px;
}
.rc{
	padding-top: 10px !important;
	padding-bottom: 2px !important;
}

.zhiwei{
	margin-top: 10px;
	color: rgb(31 41 55 );
	font-size: 15px;
	font-weight: 600;
    background-color: rgb(243 244 246 );
	padding: 7px 25px;
}
.guanggao1{
	width: 100%;
	height: 50px;
	margin-bottom: 10px;
}
.guanggao1 img{
	width: 100%;
	height: 100%;
	
}
.guanggao{
	width: 100%;
	height: 50px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.guanggao img{
	width: 49%;
	height: 100%;
	margin-bottom: 10px;
}

/* 首页横幅 */
.site-banner{
	background-color:#eef0f3;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='31' viewBox='0 0 36 31'%3E%3Cpath d='M18 0.6 L36 9.3 L36 21.9 L18 30.6 L0 21.9 L0 9.3 Z' fill='none' stroke='%23e6e8ec' stroke-width='1'/%3E%3C/svg%3E");
	background-size:36px 31px;
}
.banner-sub{
	color:#2f7fe0;
	display:flex;
	align-items:center;
	gap:10px;
}
.banner-sub::before,
.banner-sub::after{
	content:"";
	width:30px;
	height:2px;
	background:#2f7fe0;
}

/* 轮播图容器：背景透明，图片由后端配置渲染，不再保留红色兜底底色 */
.group-banner{
	background: transparent;
}

/* 广告位 */
.ad-tag{
	position: absolute;
	left: 0;
	top: 0;
	padding: 1px 5px;
	font-size: 10px;
	line-height: 1.2;
	color: #fff;
	background: rgba(0,0,0,.3);
	z-index: 2;
}
/* 后台配置渲染的广告位：图片铺满容器 */
.ad-item img{ position: relative; z-index: 1; }

/* ===== 红色群轮播 ===== */
.group-banner{ min-height: 320px; }
.group-track{
	position: absolute; inset: 0;
	display: flex;
	transition: transform .5s ease;
}
.group-slide{
	position: relative;
	flex: 0 0 100%;
	width: 100%;
}
.group-slide img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.group-dots{
	position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 6px; z-index: 20;
}
.group-dot{
	width: 8px; height: 8px; border-radius: 50%; padding: 0;
	background: rgba(255,255,255,.45); border: 0; cursor: pointer;
	transition: background .25s, transform .25s;
}
.group-dot.active{ background: #fff; transform: scale(1.25); }
.group-arrow{
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(0,0,0,.18); color: #fff; border: 0; cursor: pointer;
	font-size: 18px; display: flex; align-items: center; justify-content: center;
	z-index: 20; opacity: 0; transition: opacity .25s, background .25s;
}
.group-banner:hover .group-arrow{ opacity: 1; }
.group-arrow:hover{ background: rgba(0,0,0,.4); }
.group-prev{ left: 10px; }
.group-next{ right: 10px; }

/* ===== 登录 tab 切换二维码 ===== */
.login-tab{
	background: #f4f5f6; color: #6b7280; font-size: 14px; border: 0;
	border-bottom: 2px solid transparent; cursor: pointer; font-weight: 500;
	transition: background .2s, color .2s, border-color .2s;
}
.login-tab.active{
	background: #fff; color: #1f2937; font-weight: 700; border-bottom-color: #00bfa5;
}
.login-pane{ display: none; flex: 1; }
.login-pane.active{
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* =========================================================
   手机端（宽度 < 768px）
   ========================================================= */
.m-app{ display: none; }

@media (max-width: 767px){
	/* 隐藏 PC 版内容 */
	.top-bar,
	.site-header,
	.site-main,
	.site-footer,
	.desk-float{ display: none !important; }

	html, body{ background: #fff; }
	.m-app{ display: block; padding-bottom: calc(51px + env(safe-area-inset-bottom)); }

	/* ---------- 顶部 logo 栏 ---------- */
	.m-header{
		height: 36px; padding: 0 15px; background: #fff;
		display: flex; align-items: center; justify-content: space-between;
	}
	.m-logo{ font-size: 14px; font-weight: 700; color: #0f9354; white-space: nowrap; }
	.m-logo em{ font-style: normal; font-weight: 400; color: #8ecdb2; margin: 0 1px; }
	.m-user{ font-size: 18px; line-height: 1; color: #2f2f2f; padding-right: 6px; }

	/* ---------- 横幅 ---------- */
	.m-banner{
		position: relative; overflow: hidden;
		height: 103px; padding-bottom: 2px;
		display: flex; flex-direction: column;
		align-items: center; justify-content: flex-end;
		color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
		background:
			radial-gradient(ellipse 55% 38% at 16% 16%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 62%),
			radial-gradient(ellipse 48% 32% at 84% 10%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 62%),
			linear-gradient(180deg, #8ed0f7 0%, #b6e2fa 15%, #eaf8fe 27%, #a9d266 31%, #85be35 58%, #69a80f 100%);
	}
	.m-banner-sub{ font-size: 12px; letter-spacing: 3px; line-height: 1; }
	.m-banner-main{ margin-top: 7px; font-size: 22px; font-weight: 700; letter-spacing: 2px; line-height: 1; }
	.m-banner-img{
		position: absolute; inset: 0; width: 100%; height: 100%;
		object-fit: cover; display: block;
	}
	.m-banner-txt{ position: relative; z-index: 1; }
	.m-banner.has-img{ padding-bottom: 2px; background: #eef0f3; }

	/* ---------- 推荐 / 最新 ---------- */
	.m-tabs{ display: flex; gap: 30px; padding: 14px 15px 25px; background: #fff; }
	.m-tab{
		position: relative; padding: 0 0 8px; border: 0; background: none;
		font-size: 15px; line-height: 1; color: #636364;
	}
	.m-tab.active{ color: #08924d; font-weight: 700; }
	.m-tab.active::after{
		content: ''; position: absolute; left: 50%; bottom: 0;
		width: 20px; height: 3px; margin-left: -10px;
		border-radius: 2px; background: #08924d;
	}

	/* ---------- 职位卡片 ---------- */
	.m-job{ padding: 13px 17px 20px 15px; background: #fff; }
	.m-job + .m-job{ border-top: 8px solid #f7f7f7; }
	.m-job-head{ display: flex; align-items: center; }
	.m-job-head h3{
		flex: 0 1 auto; min-width: 0;
		font-size: 17px; font-weight: 700; line-height: 1.2; color: #2e2e2e;
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.m-job-type{
		flex: none; margin-left: 13px; padding: 3px 5px; border-radius: 2px;
		background: #009c4b; color: #fff; font-size: 11px; line-height: 1;
	}
	.m-salary{
		flex: none; margin-left: auto; padding-left: 8px;
		font-size: 15px; font-weight: 700; line-height: 1; color: #0b8d4f;
	}
	.m-company{
		display: flex; align-items: center;
		margin-top: 11px; font-size: 12px; line-height: 1.2; color: #9f9f9f;
	}
	.m-company i{ flex: none; margin-right: 5px; font-size: 14px; }
	.m-chips{ display: flex; gap: 4px; margin-top: 14px; }
	.m-chips span{
		padding: 4px 7px; border-radius: 2px; background: #f5f5f3;
		font-size: 11px; line-height: 1; color: #757574;
	}
	.m-hr{ display: flex; align-items: center; margin-top: 16px; font-size: 12px; color: #2f2f2f; }
	.m-hr img{ width: 27px; height: 27px; margin-right: 8px; border-radius: 50%; object-fit: cover; }
	.m-addr{
		margin-top: 12px; font-size: 12px; line-height: 1.2; color: #747474;
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}

	/* ---------- 右侧悬浮按钮 ---------- */
	.m-float{
		position: fixed; right: 22px; bottom: calc(87px + env(safe-area-inset-bottom));
		z-index: 40; display: flex; flex-direction: column; gap: 14px;
	}
	.m-float a{
		width: 36px; height: 36px; border-radius: 50%;
		display: flex; align-items: center; justify-content: center;
		background: #029948; color: #fff;
		font-size: 13px; line-height: 1.1; text-align: center;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	}
	.m-float a i{ font-size: 18px; }

	/* ---------- 底部导航 ---------- */
	.m-nav{
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		height: calc(51px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		display: flex; background: #fff; border-top: 1px solid #ededed;
	}
	.m-nav a{
		flex: 1; display: flex; flex-direction: column;
		align-items: center; justify-content: center;
		gap: 5px; color: #8b8b8b;
	}
	.m-nav a i{ font-size: 21px; line-height: 1; }
	.m-nav a span{ font-size: 12px; line-height: 1; }
	.m-nav a.active{ color: #08924d; }
	.m-nav a.active i{
		width: 24px; height: 24px; margin-top: -3px;
		display: flex; align-items: center; justify-content: center;
		border-radius: 50%; background: #009c4b; color: #fff; font-size: 12px;
	}

	/* ---------- 上拉加载更多 ---------- */
	.m-loadmore{
		padding: 14px 0 18px;
		text-align: center; font-size: 12px; color: #9f9f9f;
	}
}