/* --------------------------
   成员卡片容器 + 卡片格式（v0.3.58 从 styles.css 恢复）
   -------------------------- */
/* 卡片容器：居中排列（.container-center 亦居中，双保险） */
.team-cards {
	text-align: center;
}

/* 成员卡片（v0.3.55 重构时从 styles.css 丢失，v0.3.58 恢复至 members.css） */
.team-member {
	position: relative !important; /* 供 .job-icon-badge 绝对定位 */
	display: inline-block;
	width: 220px;
	margin: 0 15px 30px;
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s;
	opacity: 0;
	animation: fadeInUp 0.6s ease-out forwards;
	animation-delay: calc(var(--item-index) * 0.2s + 0.4s);
	text-align: center;
	vertical-align: top;
}

/* 成员头像圆形裁剪 */
.team-member img {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 15px;
	display: block;
}

/* 成员姓名 */
.team-member h2 {
	font-size: 22px;
	margin-bottom: 8px;
}

/* 成员简介描述 */
.team-member p {
	font-size: 14px;
	color: var(--dim);
}

/* 深色模式：卡片背景随令牌自适应 */
html.dark .team-member {
	background: var(--card);
	color: var(--txt);
}

/* 右上角图标角标通用样式 */
.job-icon-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	border-radius: 50%;
	font-size: 16px;
	z-index: 99;
	color: #fff !important;
}

/* 正确匹配 Font Awesome 原类名 fa-xxx */
.job-icon-badge.fa-code {
	background-color: #67c23a;
}
.job-icon-badge.fa-cubes {
	background-color: #9370db;
}
.job-icon-badge.fa-paint-brush {
	background-color: #f56c6c;
}
.job-icon-badge.fa-lightbulb {
	background-color: #17c3b2;
}
.job-icon-badge.fa-palette {
	background-color: #409eff;
}
.job-icon-badge.fa-image {
	background-color: #e6a23c;
}
/* --------------------------
   成员详情弹窗 整体结构
   -------------------------- */
/* 弹窗全屏遮罩层 */
.modal-bg {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 30000; /* 高于深色模式按钮(手机端9999/桌面端10000)，避免弹窗被按钮遮挡 */
}
/* 弹窗主体容器 底部滑入（flex布局版） */
.modal-box {
	position: fixed;
	left: 50%;
	bottom: -120%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 450px;
	max-height: 90%; /* 稍微提高一点，利用更多屏幕空间 */
	background: var(--card); /* 随主题：浅色白 / 深色 #222 */
	color: var(--txt); /* 弹窗默认文字随主题 */
	border-radius: 24px 24px 0 0;
	padding: 0; /* 移除全局padding，改为内部元素单独设置 */
	transition: 0.4s;
	z-index: 20001;
	display: flex;
	flex-direction: column; /* 垂直排列子元素 */
	overflow: hidden; /* 隐藏整体溢出 */
}
/* 弹窗显示激活类 */
.modal-box.show {
	bottom: 0;
}
/* 弹窗关闭按钮 - 右上角精确定位 */
.modal-close {
	position: absolute;
	top: 20px;
	right: 20px; /* 和top值完全相等，右边和顶边边距一模一样 */
	font-size: 24px;
	cursor: pointer;
	line-height: 24px; /* 精确控制按钮高度 */
	z-index: 101; /* 比职业标签高，不会被挡住 */
}
/* 弹窗内大头像（修复顶部被遮挡问题） */
.modal-avatar {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 50px auto 15px; /* 增加50px顶部边距，避开关闭按钮 */
}
/* 弹窗成员姓名 */
.modal-name {
	text-align: center;
	font-size: 24px;
}
/* 弹窗个人简介 */
.modal-bio {
	text-align: center;
	color: #666;
	margin: 10px 0 20px;
}
/* 动态内容区域 - 自动填充剩余空间并滚动 */
.modal-post {
	flex: 1; /* 自动填充剩余所有空间 */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* iOS设备平滑滚动 */
	padding: 0 30px 30px; /* 左右和底部padding */
	margin-top: 10px;
}
/* 弹窗履历列表缩进 */
.modal-post ul {
	padding-left: 20px;
}
.modal-post li {
	margin: 8px 0;
}
/* 弹窗小字备注 */
.modal-post small {
	color: var(--txt-meta); /* 浅 #999 / 深 #aaa */
	font-size: 12px;
}
/* 深色模式兼容 */
.dark .job-icon-badge {
	color: #fff !important;
}
/* 弹窗左上角职业标签 - 和关闭按钮完美对称对齐 */
.modal-job-info {
	position: absolute;
	top: 20px; /* 和关闭按钮top值完全相同，完美水平对齐 */
	left: 20px; /* 和关闭按钮right值完全相同，左右边距对称 */
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: #333;
	z-index: 100;
	pointer-events: none; /* 不影响点击关闭按钮 */
}
.modal-job-info i {
	font-size: 20px; /* 和关闭按钮大小完全一致 */
	color: #409eff;
}
/* 深色模式适配（优先级与全局弹窗样式一致） */
html.dark .modal-job-info {
	color: #eee !important;
}
/* 弹窗所有文字深色模式完整适配 */
html.dark .modal-bio {
	color: #ccc !important;
}
/* 查看个人页面按钮样式 */
.modal-personal-btn {
	padding: 10px 22px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}
/* 按钮悬停效果 */
.modal-personal-btn:hover {
	background: #555;
}
/* 深色模式按钮适配 */
html.dark .modal-personal-btn {
	background: #eee;
	color: #222;
}
html.dark .modal-personal-btn:hover {
	background: #ccc;
}
/* 修复成员卡片性格文字深色模式 */
html.dark .team-member p {
	color: #ccc !important;
}
/* 手机端：两列紧凑卡片，避免 11 位成员拉出 3700px 长页 */
html.mobile .team-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	text-align: center;
}

html.mobile .team-member {
	display: block;
	width: auto;
	margin: 0;
	padding: 14px 10px 12px;
}

html.mobile .team-member img {
	width: clamp(88px, 34vw, 124px);
	height: clamp(88px, 34vw, 124px);
	margin-bottom: 10px;
}

html.mobile .team-member h2 {
	font-size: 18px;
	margin-bottom: 4px;
}

html.mobile .team-member p {
	font-size: 12px;
	line-height: 1.5;
}

/* 自定义滚动条样式 */
.modal-post::-webkit-scrollbar {
	width: 6px;
}
.modal-post::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}
.modal-post::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 3px;
}
.modal-post::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* 深色模式滚动条适配 */
html.dark .modal-post::-webkit-scrollbar-track {
	background: #333;
}
html.dark .modal-post::-webkit-scrollbar-thumb {
	background: #666;
}
html.dark .modal-post::-webkit-scrollbar-thumb:hover {
	background: #888;
}

/* --------------------------
   成员点赞（v0.3.90）
   -------------------------- */
.member-like {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 5px 14px;
	border: 1px solid rgba(230, 84, 111, 0.35);
	border-radius: 999px;
	background: rgba(230, 84, 111, 0.08);
	color: #d9536f;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.member-like:hover {
	background: rgba(230, 84, 111, 0.16);
	transform: translateY(-1px);
}
.member-like:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}
.member-like.liked {
	background: #e6546f;
	border-color: #e6546f;
	color: #fff;
}
.member-like i {
	font-size: 12px;
}
html.dark .member-like {
	background: rgba(230, 84, 111, 0.14);
	border-color: rgba(255, 139, 164, 0.4);
	color: #ff8ba4;
}
html.dark .member-like.liked {
	background: #e6546f;
	border-color: #e6546f;
	color: #fff;
}
html.mobile .member-like {
	margin-top: 8px;
	padding: 4px 10px;
	font-size: 12px;
}
/* 弹窗内「暂无个人网页」提示 */
.modal-no-page {
	text-align: center;
	margin: 12px 0;
	color: var(--txt-meta);
	font-size: 13px;
}

/* 点赞/提示 Toast（members 页未引入 comment.css / admin.css，单独提供） */
.toast-notify {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) scale(0.9);
	background: #1f3e4b;
	color: #fff;
	padding: 0.7rem 1.5rem;
	border-radius: 60px;
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	z-index: 40000; /* 高于成员弹窗（30000），弹窗打开时也能看到 */
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
}
.toast-notify.show {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}
html.dark .toast-notify {
	background: rgba(26, 32, 44, 0.9);
}

/* 每日点赞额度提示（v0.3.92：每个 IP 每天最多 3 位） */
.like-quota-hint {
	text-align: center;
	margin: 18px 0 6px;
	font-size: 0.82rem;
	color: var(--txt-meta);
	letter-spacing: 0.02em;
}
.like-quota-hint.used-up {
	color: #e6a23c;
}
html.dark .like-quota-hint.used-up {
	color: #f0b95c;
}
