:root {
--primary: #2563eb;
--primary-d: #1d4ed8;
--text: #1f2937;
--text-2: #4b5563;
--muted: #98a1b3;
--line: #e6eaf3;
--bg: #f4f6fb;
--radius: 14px;
--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
}
.modifybox{padding:10px 16px;}
/* ---------- 顶部标题 ---------- */
.page-head h1 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.page-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 卡片 ---------- */
.card {
margin-bottom:10px;
padding:10px 0;
}
.card-head {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 14px;
border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.card-head h2::before {
content: "";
display: inline-block;
width: 3px; height: 14px;
margin-right: 9px;
background: var(--primary);
border-radius: 2px;
vertical-align: -2px;
}
.tag {
padding: 3px 9px;
font-size: 12px;
border-radius: 999px;
background: #eef2ff;
color: #4f46e5;
}
.tag-gray { background: #f1f3f7; color: #8b93a5;margin-left:6px;}

/* ---------- 只读信息 ---------- */
.info-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.info-item {
min-width: 0;
padding: 10px 10px;
background: #f7f9fc;
border-radius: 10px;
}
.info-item .label { margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.info-item .value {
font-size: 14px;
font-weight: 500;
color: var(--text);
word-break: break-all;
}
.info-item .value.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
letter-spacing: .3px;
}

/* ---------- 头像 ---------- */
.avatar-field { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.avatar-wrap {
flex: 0 0 auto;
width: 84px; height: 84px;
border-radius: 50%;
overflow: hidden;
background: #eef2f8;
box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.avatar-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avatar-tip p {margin: 0; font-size: 12px; color: var(--muted);clear:both;margin-left:10px;width:80%;margin-top:6px;}
.avatar-tip button{margin-left:10px;}
/* ---------- 表单 ---------- */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 500; color: var(--text-2);margin-bottom:3px;}
.field > label em { margin-left: 2px; font-style: normal; color: #ef4444; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field textarea {
padding:6px 10px;
font: inherit;
font-size: 14px;
color: var(--text);
background: #fff;
border: 1px solid #dfe4ee;
border-radius: 9px;
transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { min-height: 84px; line-height: 1.6; resize: vertical; }
/* placeholder 一般 radio/checkbox 用不到，但为了一致也可以排除 */
.field input:not([type="radio"]):not([type="checkbox"])::placeholder,
.field textarea::placeholder {
  color: #b3bbc9;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field.has-error input:not([type="radio"]):not([type="checkbox"]),
.field.has-error textarea {
  border-color: #f0857f;
  background: #fffafa;
}

.field.has-error input:not([type="radio"]):not([type="checkbox"]):focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.err-msg { display: none; font-size: 12px; color: #ef4444; }
.field.has-error .err-msg { display: block; }

.field-foot { text-align: right; }
.counter { font-size: 12px; color: var(--muted); }

/* ---------- 性别单选 ---------- */
.radio-group { display: flex; gap: 12px; }
.radio-item {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 18px;
font-size: 14px;
color: var(--text-2);
background: #fff;
border: 1px solid #dfe4ee;
border-radius: 9px;
cursor: pointer;
user-select: none;
transition: .16s;
}
.radio-item input { position: absolute; opacity: 0; pointer-events: none; }
.radio-item .dot {
position: relative;
flex: 0 0 auto;
width: 14px; height: 14px;
border: 1.5px solid #c8d0de;
border-radius: 50%;
transition: .16s;
}
.radio-item .dot::after {
content: "";
position: absolute;
inset: 3px;
background: #fff;
border-radius: 50%;
transform: scale(0);
transition: transform .16s;
}
.radio-item:hover { border-color: #c2cfe4; }
.radio-item:has(input:checked) {
color: var(--primary);
font-weight: 500;
background: #eff6ff;
border-color: var(--primary);
}
.radio-item:has(input:checked) .dot { background: var(--primary); border-color: var(--primary); }
.radio-item:has(input:checked) .dot::after { transform: scale(1); }

/* ---------- 按钮 ---------- */
.actions { display: flex; justify-content: center; gap: 12px; padding: 4px; }

.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 22px;
font: inherit;
font-size: 14px;
color: var(--text-2);
background: #fff;
border: 1px solid #dfe4ee;
border-radius: 9px;
cursor: pointer;
transition: .16s;
}
.btn:hover { border-color: #c2cfe4; color: var(--text); background: #fafbfe; }
.btn.primary {
color: #fff;
background: var(--primary);
border-color: var(--primary);
box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .9);
}
.btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn.primary:active { transform: translateY(1px); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- 提示条 ---------- */
.toast {
position: fixed;
top: 24px; left: 50%;
z-index: 99;
display: flex;
align-items: center;
gap: 8px;
padding: 11px 20px;
font-size: 14px;
color: #fff;
background: #1f2937;
border-radius: 10px;
box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
opacity: 0;
transform: translate(-50%, -16px);
pointer-events: none;
transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }