/* yanweb 用户系统样式（登录/注册/管理后台） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	color: #333;
	background: #f2f5fa;
}
a { color: #315efb; text-decoration: none; }
a:hover { color: #1f47d8; }

/* ---------- 登录/注册 ---------- */
.auth-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e8f0fe 0%, #f2f5fa 60%, #e6f7f1 100%);
	padding: 20px;
}
.auth-card {
	width: 380px;
	max-width: 100%;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(31, 45, 87, .12);
	padding: 36px 32px 24px;
}
.auth-logo {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: #315efb;
	margin-bottom: 6px;
}
.auth-card h2 {
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	margin-bottom: 22px;
}
.auth-alert {
	background: #fff2f0;
	border: 1px solid #ffccc7;
	color: #cf1322;
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 16px;
	font-size: 13px;
}
.form-item { margin-bottom: 16px; }
.form-item label { display: block; margin-bottom: 6px; color: #555; font-size: 13px; }
.form-item input {
	width: 100%;
	height: 42px;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	outline: none;
	transition: border-color .2s;
}
.form-item input:focus { border-color: #4e6ef2; }
.auth-btn {
	width: 100%;
	height: 44px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #4e6ef2, #315efb);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	margin-top: 4px;
	transition: opacity .2s;
}
.auth-btn:hover { opacity: .9; }
.auth-foot {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eef1f6;
	text-align: center;
	color: #999;
	font-size: 13px;
}
/* ---------- 登录页左右布局 ---------- */
.auth-split {
	width: 900px;
	max-width: 100%;
	display: flex;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(31, 45, 87, .12);
	overflow: hidden;
}
.auth-aside {
	flex: 1 1 46%;
	background: linear-gradient(160deg, #4e6ef2 0%, #315efb 55%, #2149d8 100%);
	color: #fff;
	padding: 44px 36px;
	display: flex;
	flex-direction: column;
}
.aside-logo { font-size: 17px; font-weight: 700; opacity: .92; }
.aside-title { margin-top: 34px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.aside-text { margin-top: 14px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.85); }
.aside-list { list-style: none; margin-top: 22px; }
.aside-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255,255,255,.92);
	padding: 7px 0;
}
.aside-list svg { flex: none; opacity: .9; }
.aside-foot { margin-top: auto; padding-top: 30px; font-size: 13px; color: rgba(255,255,255,.8); }
.aside-foot a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.auth-split .auth-card {
	flex: 1 1 54%;
	width: auto;
	border-radius: 0;
	box-shadow: none;
	padding: 46px 40px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* ---------- 管理后台 ---------- */
.u-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.u-topbar {
	background: #fff;
	box-shadow: 0 2px 10px rgba(31, 45, 87, .06);
	position: sticky;
	top: 0;
	z-index: 10;
}
.u-topbar-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 54px;
}
.u-brand { font-size: 16px; font-weight: 700; color: #315efb; }
.u-topbar-r { display: flex; align-items: center; gap: 14px; }
.u-email { color: #888; font-size: 13px; }
.u-link-muted { color: #888; font-size: 13px; }
.u-main { padding: 20px 0 50px; }
.u-tip {
	background: #eef4ff;
	border: 1px solid #d8e5ff;
	color: #3a5fc8;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
}
.u-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(31, 45, 87, .06);
	padding: 20px 22px;
	margin-bottom: 16px;
}
.u-card-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 16px;
	padding-left: 10px;
	border-left: 3px solid #4e6ef2;
	line-height: 1.3;
}
.u-form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.u-field { display: flex; flex-direction: column; }
.u-field label { font-size: 13px; color: #555; margin-bottom: 6px; }
.u-field input[type="text"] {
	height: 40px;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	outline: none;
	min-width: 220px;
	transition: border-color .2s;
}
.u-field input[type="text"]:focus { border-color: #4e6ef2; }
/* 分组设置：裸输入框（无 .u-field 包裹） */
.u-form-row > input[type="text"] {
	flex: 1;
	height: 40px;
	min-width: 220px;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	color: #333;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.u-form-row > input[type="text"]:focus {
	border-color: #4e6ef2;
	box-shadow: 0 0 0 3px rgba(78, 110, 242, .12);
}
/* 注册页使用规范说明 */
.auth-notice {
	margin-top: 16px;
	padding: 10px 12px;
	background: #f8f9fb;
	border: 1px solid #eef1f6;
	border-left: 3px solid #4e6ef2;
	border-radius: 6px;
	text-align: left;
	font-size: 12px;
	line-height: 1.8;
	color: #666;
}
.auth-notice strong { display: block; margin-bottom: 2px; font-size: 12px; color: #4e6ef2; }
.auth-notice-warn { color: #f56c6c; }
.u-grow { flex: 1; min-width: 260px; }
.u-grow input { width: 100%; }
.u-btn {
	display: inline-block;
	height: 40px;
	padding: 0 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #4e6ef2, #315efb);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .2s;
	line-height: 40px;
}
.u-btn:hover { opacity: .88; }
.u-btn-plain {
	background: #f2f5fa;
	color: #555;
	border: 1px solid #e2e8f2;
}
.u-btn-primary { min-width: 110px; }
.u-btn-danger { background: #f56c6c; }
.u-btn-mini {
	height: 28px;
	line-height: 26px;
	padding: 0 10px;
	font-size: 12px;
	border-radius: 6px;
}
.u-btn[disabled] { opacity: .4; cursor: not-allowed; }
.u-upload-row { display: flex; align-items: center; gap: 10px; }
.u-icon-preview {
	width: 50px;
	height: 50px;
	border: 1px dashed #cfd8ea;
	border-radius: 10px;
	background: #fafbff center/cover no-repeat;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	font-size: 12px;
	overflow: hidden;
}
.u-icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.u-upload-msg { font-size: 12px; color: #999; margin-top: 6px; min-height: 16px; }
.u-form-actions { display: flex; gap: 10px; }
.u-empty { color: #999; text-align: center; padding: 26px 0; }
.u-table { width: 100%; border-collapse: collapse; }
.u-table th, .u-table td {
	padding: 9px 10px;
	border-bottom: 1px solid #f0f3f8;
	text-align: left;
	font-size: 13px;
	word-break: break-all;
}
.u-table th { color: #8a94a6; font-weight: 500; background: #fafbfd; }
.u-table .u-btn-mini { margin-right: 4px; }
.u-tb-icon { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; vertical-align: middle; }
.u-noicon { color: #ccc; }

@media (max-width: 860px) {
	.auth-split { flex-direction: column; }
	.auth-aside { padding: 26px 24px; }
	.aside-title { margin-top: 16px; font-size: 19px; }
	.aside-list, .aside-foot { display: none; }
	.auth-split .auth-card { padding: 28px 22px 20px; }
}

@media (max-width: 600px) {
	.auth-card { padding: 28px 20px 18px; }
	.u-field input[type="text"] { min-width: 0; width: 100%; }
	.u-form-row { flex-direction: column; align-items: stretch; }
	.u-table th:nth-child(2), .u-table td:nth-child(2) { display: none; }
}
