/*
 * 文件名：player-ui.css
 * 功能：玩家中心与申请向导 UI — 仪表盘、打卡卡片、职业工作台
 * 作者：繁华境开发团队
 * 最后修改：2026-06-15
 */

/* ========== 页面基础与玻璃卡片 ========== */
.pd-page { padding-bottom: 3rem; }

.glass-card {
	background: rgba(18, 21, 28, 0.72);
	border: 1px solid rgba(255, 180, 60, 0.14);
	border-radius: 14px;
	backdrop-filter: blur(16px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.fhj-fade-in { animation: fhjFadeIn 0.35s ease; }
@keyframes fhjFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.pd-gradient-text {
	background: linear-gradient(135deg, #ffb020, #ff6b8a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pd-muted { color: #8b93a7; font-size: 0.875rem; }
.pd-back { margin-top: 1.5rem; }
.pd-back a { color: #8b93a7; }
.pd-empty { color: #8b93a7; }

/* ========== 按钮 ========== */
.pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.1rem;
	border-radius: 9px;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font-family: inherit;
	text-decoration: none;
}
.pd-btn-primary {
	background: linear-gradient(135deg, #e8941a, #c9740f);
	color: #fff;
	box-shadow: 0 4px 18px rgba(232, 148, 26, 0.35);
}
.pd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 148, 26, 0.45); color: #fff; }
.pd-btn-ghost {
	background: rgba(255, 255, 255, 0.04);
	color: #e8eaef;
	border: 1px solid rgba(255, 180, 60, 0.2);
}
.pd-btn-ghost:hover { border-color: #ffb020; color: #ffb020; }

/* ========== 玩家仪表盘 ========== */
.pd-dashboard { display: grid; gap: 1rem; }

.pd-hero { padding: 1.5rem; }

.pd-profile { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }

.pd-avatar {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: linear-gradient(135deg, #1a1f2a, #12151c);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.pd-avatar-glow {
	box-shadow: 0 0 24px color-mix(in srgb, var(--pd-glow, #ffb020) 45%, transparent);
	border: 1px solid color-mix(in srgb, var(--pd-glow, #ffb020) 40%, transparent);
}

.pd-avatar .pd-avatar-inner,
.pd-avatar .fhj-user-avatar-letter.pd-avatar-inner,
.pd-avatar .fhj-user-avatar-img.pd-avatar-inner {
	width: 100%;
	height: 100%;
	border-radius: 14px;
	font-size: 1.75rem;
	object-fit: cover;
}

.pd-profile-body { flex: 1; min-width: 220px; }

.pd-profile-top {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.pd-profile-top h1 {
	margin: 0;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.5rem;
	color: #fff;
}

.pd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	color: #8b93a7;
	font-size: 0.875rem;
	margin: 0 0 1rem;
}

.pd-meta strong { color: #e8eaef; }

.pd-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-btn-admin-panel {
	background: linear-gradient(135deg, rgba(255, 140, 50, 0.22), rgba(255, 90, 30, 0.12));
	border: 1px solid rgba(255, 140, 50, 0.45);
	color: #ffb347;
}
.pd-btn-admin-panel:hover {
	background: linear-gradient(135deg, rgba(255, 140, 50, 0.32), rgba(255, 90, 30, 0.2));
	color: #ffd099;
}

.pd-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1rem;
}

.pd-section { padding: 1.25rem; }

.pd-section-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-family: 'Orbitron', sans-serif;
	color: #ffb020;
}

.pd-app-list { display: grid; gap: 0.65rem; }

.pd-app-item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	border: 1px solid rgba(255, 180, 60, 0.08);
	transition: border-color 0.2s ease;
}

.pd-app-item:hover { border-color: rgba(255, 176, 32, 0.25); }

.pd-app-type {
	display: block;
	font-size: 0.75rem;
	color: #ffb020;
	margin-bottom: 0.2rem;
}

.pd-app-main strong { display: block; color: #fff; font-size: 0.9rem; }
.pd-app-main small { color: #8b93a7; font-size: 0.75rem; }

.pd-app-side {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
}

.pd-app-side time { font-size: 0.75rem; color: #8b93a7; }

.pd-legal-grid,
.pd-asset-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.65rem;
}

.pd-legal-item,
.pd-asset-item {
	padding: 0.85rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	text-align: center;
}

.pd-legal-item span,
.pd-asset-item span {
	display: block;
	font-size: 0.75rem;
	color: #8b93a7;
	margin-bottom: 0.35rem;
}

.fhj-console-table-wrap { overflow-x: auto; }
.fhj-console-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.fhj-console-table th,
.fhj-console-table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	text-align: left;
}
.fhj-console-table th {
	color: #8b93a7;
	font-weight: 600;
	font-size: 0.75rem;
}
.fhj-console-stats { grid-template-columns: repeat(2, 1fr); }

.pd-legal-item strong,
.pd-asset-item strong { color: #fff; font-size: 1rem; }

.pd-asset-balance strong { font-size: 1.25rem; }

.pd-notify-list { list-style: none; margin: 0; padding: 0; }

.pd-notify-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 180, 60, 0.08);
}

.pd-notify-item.is-unread { border-left: 2px solid #ffb020; padding-left: 0.65rem; }

.pd-notify-type {
	display: block;
	font-size: 0.75rem;
	color: #ffb020;
	margin-bottom: 0.2rem;
}

.pd-notify-item p,
.pd-notify-item a {
	margin: 0;
	font-size: 0.875rem;
	color: #e8eaef;
}

.pd-notify-item time {
	display: block;
	font-size: 0.75rem;
	color: #8b93a7;
	margin-top: 0.25rem;
}

.pd-quick-links { display: grid; gap: 0.5rem; }
.pd-quick-links a {
	color: #ffb020;
	font-size: 0.875rem;
	transition: transform 0.2s ease;
}
.pd-quick-links a:hover { transform: translateX(4px); }

/* ========== 申请入口介绍区 ========== */
.pd-apply { display: grid; gap: 1rem; }

.pd-apply-intro {
	padding: 1.5rem;
	display: grid;
	gap: 1rem;
}

.pd-apply-server {
	font-family: 'Orbitron', sans-serif;
	color: #ffb020;
	font-size: 0.875rem;
}

.pd-apply-intro-main h1 {
	margin: 0.25rem 0;
	font-family: 'Orbitron', sans-serif;
	color: #fff;
}

.pd-apply-intro-main p { margin: 0; color: #8b93a7; }

.pd-apply-intro-stats {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.pd-apply-intro-stats div span {
	display: block;
	font-size: 0.75rem;
	color: #8b93a7;
}

.pd-apply-intro-stats strong { color: #fff; font-size: 1.1rem; }
.pd-online { color: #3ddc84 !important; }

.pd-apply-notice {
	padding: 0.85rem 1rem;
	background: rgba(255, 176, 32, 0.08);
	border-radius: 10px;
	border: 1px solid rgba(255, 176, 32, 0.2);
}

.pd-apply-notice strong { color: #ffb020; display: block; margin-bottom: 0.35rem; }
.pd-apply-notice p { margin: 0; color: #b8bfce; font-size: 0.875rem; }

/* ========== 多步申请向导 ========== */
.pd-wizard { padding: 1.25rem; }

.pd-steps {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.pd-step {
	flex: 1;
	min-width: 120px;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: #8b93a7;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.25s ease;
}

.pd-step span {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
}

.pd-step.is-active {
	background: rgba(255, 176, 32, 0.12);
	color: #ffb020;
	border: 1px solid rgba(255, 176, 32, 0.3);
}

.pd-step.is-done { color: #3ddc84; }

.pd-wizard-panel { display: none; }
.pd-wizard-panel.is-active { display: block; animation: fhjFadeIn 0.3s ease; }

.pd-career-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pd-career-card {
	text-align: left;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 180, 60, 0.12);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.25s ease;
	color: inherit;
	font-family: inherit;
}

.pd-career-card:hover {
	border-color: var(--pd-card-color, #ffb020);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pd-career-card.is-selected {
	border-color: var(--pd-card-color, #ffb020);
	background: color-mix(in srgb, var(--pd-card-color, #ffb020) 12%, transparent);
	box-shadow: 0 0 20px color-mix(in srgb, var(--pd-card-color, #ffb020) 30%, transparent);
}

.pd-career-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.pd-career-card strong { display: block; color: #fff; margin-bottom: 0.25rem; }
.pd-career-card p { margin: 0; font-size: 0.78rem; color: #8b93a7; line-height: 1.45; }

.pd-field { display: block; margin-bottom: 0.85rem; }
.pd-field > span { display: block; font-size: 0.8rem; color: #8b93a7; margin-bottom: 0.35rem; }
.pd-field input,
.pd-field textarea,
.pd-field select {
	width: 100%;
	padding: 0.65rem 0.85rem;
	background: rgba(26, 31, 42, 0.9);
	border: 1px solid rgba(255, 180, 60, 0.15);
	border-radius: 9px;
	color: #e8eaef;
	font: inherit;
}

.pd-field input:focus,
.pd-field textarea:focus {
	outline: none;
	border-color: #ffb020;
	box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12);
}

.pd-wizard-nav {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.pd-selected-career {
	padding: 0.75rem 1rem;
	background: rgba(255, 176, 32, 0.08);
	border-radius: 10px;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: #ffb020;
}

.pd-confirm-list {
	margin: 0 0 1rem;
	display: grid;
	gap: 0.5rem;
}

.pd-confirm-list dt { font-size: 0.75rem; color: #8b93a7; }
.pd-confirm-list dd { margin: 0 0 0.5rem; color: #fff; }

.pd-apply-success {
	padding: 2rem;
	text-align: center;
}

.pd-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: rgba(61, 220, 132, 0.15);
	color: #3ddc84;
	font-size: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(61, 220, 132, 0.35);
}

/* ========== 顶栏用户菜单（样式见 main.css 全局定义） ========== */

/* ========== 玩家 UI 职级徽章光晕 ========== */
.pd-dashboard .rp-badge,
.pd-apply .rp-badge {
	box-shadow: 0 0 12px color-mix(in srgb, var(--rp-badge-color, #ffb020) 35%, transparent);
}

/* ========== 职业工作台 ========== */
.pd-workspace { padding: 0; overflow: hidden; }

.pd-workspace-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1.25rem 1.25rem 0;
}

.pd-workspace-head .pd-section-title { margin-bottom: 0.35rem; }

.pd-btn-sm {
	padding: 0.45rem 0.85rem;
	font-size: 0.8125rem;
}

.pd-workspace-body {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 0;
	margin-top: 1rem;
	border-top: 1px solid rgba(255, 180, 60, 0.12);
	min-height: 320px;
}

.pd-ws-tabs {
	display: flex;
	flex-direction: column;
	padding: 0.75rem;
	gap: 0.35rem;
	border-right: 1px solid rgba(255, 180, 60, 0.1);
	background: rgba(0, 0, 0, 0.15);
}

.pd-ws-tab {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	color: #8b93a7;
	text-decoration: none;
	font-size: 0.875rem;
	transition: background 0.2s, color 0.2s;
}

.pd-ws-tab:hover {
	background: rgba(255, 180, 60, 0.08);
	color: #e8eaef;
}

.pd-ws-tab.is-active {
	background: rgba(255, 176, 32, 0.14);
	color: #ffb020;
	border: 1px solid rgba(255, 176, 32, 0.25);
}

.pd-ws-tab-icon { font-size: 1.1rem; line-height: 1; }

.pd-ws-panels { padding: 1.25rem; }

.pd-ws-panel-intro h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: #fff;
}

.pd-ws-panel-intro p {
	margin: 0 0 1.25rem;
	color: #8b93a7;
	font-size: 0.875rem;
}

.pd-ws-form {
	display: grid;
	gap: 0.85rem;
	max-width: 520px;
}

.pd-ws-field {
	display: grid;
	gap: 0.35rem;
}

.pd-ws-field span {
	font-size: 0.8125rem;
	color: #8b93a7;
}

.pd-ws-field input,
.pd-ws-field textarea,
.pd-ws-field select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 180, 60, 0.18);
	background: rgba(0, 0, 0, 0.25);
	color: #e8eaef;
	font-family: inherit;
	font-size: 0.875rem;
}

.pd-ws-field input:focus,
.pd-ws-field textarea:focus,
.pd-ws-field select:focus {
	outline: none;
	border-color: rgba(255, 176, 32, 0.45);
	box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.12);
}

.pd-ws-records {
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid rgba(255, 180, 60, 0.1);
	background: rgba(0, 0, 0, 0.12);
}

.pd-ws-records-title {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: #ffb020;
	font-family: 'Orbitron', sans-serif;
}

.pd-ws-record-list { display: grid; gap: 0.5rem; }

.pd-ws-record-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-ws-record-type {
	display: inline-block;
	font-size: 0.6875rem;
	color: #ffb020;
	background: rgba(255, 176, 32, 0.12);
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	margin-right: 0.5rem;
}

.pd-ws-record-main strong {
	color: #e8eaef;
	font-size: 0.875rem;
	font-weight: 500;
}

.pd-ws-record-item time {
	color: #8b93a7;
	font-size: 0.75rem;
	white-space: nowrap;
}

.fhj-notice {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.fhj-notice.is-success {
	background: rgba(61, 220, 132, 0.12);
	border: 1px solid rgba(61, 220, 132, 0.3);
	color: #3ddc84;
}

.fhj-notice.is-error {
	background: rgba(255, 71, 87, 0.12);
	border: 1px solid rgba(255, 71, 87, 0.3);
	color: #ff8a94;
}

/* ========== 响应式 — 平板及以下 ========== */
@media (max-width: 900px) {
	.pd-grid { grid-template-columns: 1fr; }
	.pd-legal-grid,
	.pd-asset-grid { grid-template-columns: 1fr; }
	.pd-app-item { flex-direction: column; }
	.pd-duty-stats { grid-template-columns: 1fr 1fr; }
	.pd-duty-btn { width: 100%; min-width: 0; }
}

/* ========== 上下班打卡卡片 ========== */
.pd-duty-card {
	padding: 1.25rem 1.5rem;
	margin-bottom: 0.25rem;
	border-color: rgba(61, 220, 132, 0.22);
}
.pd-duty-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}
.pd-duty-title {
	margin: 0;
	font-size: 1.25rem;
	font-family: 'Orbitron', sans-serif;
}
.pd-duty-sub { margin: 0.35rem 0 0; }
.pd-duty-pill {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
}
.pd-duty-pill.is-on {
	background: rgba(61, 220, 132, 0.15);
	color: #3ddc84;
	box-shadow: 0 0 12px rgba(61, 220, 132, 0.35);
}
.pd-duty-pill.is-off {
	background: rgba(139, 147, 167, 0.15);
	color: #8b93a7;
}
.pd-duty-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.pd-duty-stat {
	padding: 0.75rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 180, 60, 0.08);
}
.pd-duty-stat span {
	display: block;
	font-size: 0.75rem;
	color: #8b93a7;
	margin-bottom: 0.25rem;
}
.pd-duty-stat strong { font-size: 0.95rem; }
.pd-duty-action { text-align: center; }
.pd-duty-btn {
	min-width: 220px;
	width: min(100%, 280px);
	padding: 0.85rem 2rem;
	border: none;
	border-radius: 12px;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
}
.pd-duty-btn.is-on-duty {
	background: linear-gradient(135deg, #2ecc71, #27ae60);
	color: #fff;
	box-shadow: 0 0 24px rgba(46, 204, 113, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pd-duty-btn.is-off-duty {
	background: linear-gradient(135deg, #ff4757, #c0392b);
	color: #fff;
	box-shadow: 0 0 24px rgba(255, 71, 87, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pd-duty-btn:hover:not(:disabled) { transform: translateY(-2px); }
.pd-duty-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.pd-duty-msg { margin: 0.75rem 0 0; min-height: 1.25rem; }
.pd-duty-bind-notice {
	text-align: center;
	padding: 1.5rem 1rem;
	border-radius: 10px;
	background: rgba(255, 176, 32, 0.08);
	border: 1px dashed rgba(255, 176, 32, 0.35);
}
.pd-duty-bind-notice p { margin: 0 0 1rem; color: #ffb020; font-weight: 600; }

@media (max-width: 900px) {
	.pd-app-side { align-items: flex-start; text-align: left; }
	.pd-workspace-body { grid-template-columns: 1fr; }
	.pd-ws-tabs {
		flex-direction: row;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid rgba(255, 180, 60, 0.1);
	}
	.pd-ws-tab { white-space: nowrap; flex-shrink: 0; }
}

/* ========== 响应式 — 手机 ========== */
@media (max-width: 640px) {
	.pd-steps { flex-direction: column; }
	.pd-career-grid { grid-template-columns: 1fr 1fr; }
}
