/* 教师档案、职称与身份标识徽章、课程页教学团队卡片 */
.tb-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 999px 6px 999px 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; background: linear-gradient(110deg, #3a2fd8, #6a4fe0 55%, #8f7bff); box-shadow: 0 4px 10px -4px rgba(106,79,224,.6); }
.tb-badge.gold { background: linear-gradient(110deg, #b86400, #d97a06 55%, #f2a43a); box-shadow: 0 4px 10px -4px rgba(217,122,6,.6); }
.tb-badge.red { background: linear-gradient(110deg, #b0324a, #d6455d 60%, #ee6f84); box-shadow: 0 4px 10px -4px rgba(214,69,93,.6); }
.tb-badge.blue { background: linear-gradient(110deg, #0f3fa8, #1f63e8 60%, #5a90ff); box-shadow: 0 4px 10px -4px rgba(31,99,232,.6); }
.tb-badge.teal { background: linear-gradient(110deg, #0a7064, #0e9c8c 60%, #3cc4b3); box-shadow: 0 4px 10px -4px rgba(14,156,140,.6); }
.tb-title { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #9a5600; background: #fff3e0; border: 1px solid #f6d9ad; white-space: nowrap; }
.tb-title svg { width: 15px; height: 15px; color: #d97a06; }
.tb-title.plain { padding: 0 10px; color: #34425e; background: #f2f5fa; border-color: #e3e9f3; }

/* 课程页教学团队 */
.tp-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tp-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 22px; background: #fff; border: 1px solid #e3e9f3; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,35,72,.04), 0 8px 24px rgba(16,35,72,.06); }
.tp-card.lead { grid-column: 1 / -1; grid-template-columns: 120px minmax(0, 1fr); background: linear-gradient(120deg, #fff 60%, #f3f6ff); }
.tp-av { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, #2c74f0, #0f3fa8) center / cover no-repeat; color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e3e9f3; }
.tp-card.lead .tp-av { width: 120px; height: 120px; font-size: 38px; }
.tp-av.sm { width: 40px; height: 40px; font-size: 15px; box-shadow: none; flex: none; }
.tp-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-card-top h3 { margin: 0; font-size: 20px; font-weight: 800; color: #0e1b33; }
.tp-role { font-size: 12px; font-weight: 600; color: #1f63e8; background: #eaf1ff; padding: 3px 9px; border-radius: 999px; }
.tp-card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.tp-card-org { margin-top: 8px; font-size: 13.5px; color: #34425e; }
.tp-card-dirs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tp-card-dirs span { font-size: 12px; color: #0a7064; background: #e3f6f3; padding: 3px 9px; border-radius: 6px; }
.tp-bio { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e9f3; }
.tp-bio p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #34425e; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.tp-bio.open p { -webkit-line-clamp: unset; display: block; }
.tp-more { display: block; margin: 6px 0 0 auto; border: 0; background: none; color: #1f63e8; font: 600 13px "HarmonyOS Sans SC","MiSans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; cursor: pointer; }
.tp-more-team { display: block; margin: 16px auto 0; }

/* 档案编辑、审核 */
.tp-wrap { display: grid; gap: 18px; }
.tp-sec { padding: 22px; background: #fff; border: 1px solid #e3e9f3; border-radius: 16px; }
.tp-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tp-sec-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #0e1b33; }
.tp-sec-head p, .tp-sub { margin: 4px 0 0; font-size: 13px; color: #6b7895; line-height: 1.7; }
.tp-preview .tp-card { box-shadow: none; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tp-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #34425e; }
.tp-field small { font-weight: 400; color: #6b7895; }
.tp-input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 9px 12px; border: 1px solid #d5deec; border-radius: 10px; background: #fff; font: 400 14px/1.6 "HarmonyOS Sans SC","MiSans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; color: #0e1b33; }
.tp-input:focus { outline: none; border-color: #1f63e8; box-shadow: 0 0 0 3px rgba(31,99,232,.14); }
textarea.tp-input { resize: vertical; }
.tp-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid #d5deec; border-radius: 10px; background: #fff; color: #34425e; font: 600 13.5px "HarmonyOS Sans SC","MiSans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; cursor: pointer; white-space: nowrap; }
.tp-btn:hover { border-color: #b9c8e4; background: #f7f9fd; }
.tp-btn.primary { background: #1f63e8; border-color: #1f63e8; color: #fff; }
.tp-btn.primary:hover { background: #0f3fa8; }
.tp-btn.danger { color: #d6455d; border-color: #f2c9d1; }
.tp-btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.tp-btn:disabled { opacity: .55; cursor: not-allowed; }
.tp-btn:focus-visible, .tp-more:focus-visible, .tp-teacher:focus-visible, .tp-seg button:focus-visible { outline: 2px solid #1f63e8; outline-offset: 2px; }
.tp-creds, .tp-review-list { display: grid; gap: 10px; }
.tp-cred { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e3e9f3; border-radius: 12px; }
.tp-cred small { font-size: 12.5px; color: #6b7895; }
.tp-cred-kind { font-size: 12px; color: #6b7895; background: #f2f5fa; border-radius: 6px; padding: 2px 8px; }
.tp-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tp-chip.amber { color: #9a5600; background: #fff3e0; } .tp-chip.teal { color: #0a7064; background: #e3f6f3; } .tp-chip.red { color: #b0324a; background: #fdecef; } .tp-chip.gray { color: #6b7895; background: #f2f5fa; }
.tp-empty { padding: 22px; text-align: center; font-size: 13px; color: #6b7895; border: 1px dashed #d5deec; border-radius: 12px; background: #fafbfe; }
.tp-alert.red { padding: 12px 14px; border-radius: 12px; background: #fdecef; color: #9f2b41; font-size: 13px; }
.tp-muted { color: #98a3ba; }
.tp-seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 14px; border-radius: 10px; background: #edf1f8; }
.tp-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: 600 13px "HarmonyOS Sans SC","MiSans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; color: #6b7895; cursor: pointer; }
.tp-seg button[aria-pressed="true"] { background: #fff; color: #1f63e8; box-shadow: 0 1px 3px rgba(16,35,72,.12); }
.tp-files { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-file { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 4px 10px 4px 4px; border: 1px solid #e3e9f3; border-radius: 10px; background: #fafbfe; font-size: 12px; font-weight: 700; color: #6b7895; text-decoration: none; }
.tp-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.tp-file em { font-style: normal; font-weight: 500; color: #34425e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-file button { border: 0; background: none; color: #d6455d; font-size: 16px; cursor: pointer; }
.tp-upload { margin-top: 8px; width: max-content; }
.tp-err { color: #d6455d; font-size: 13px; margin: 0 0 8px; }
.tp-rv { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e3e9f3; border-radius: 12px; }
.tp-rv-who { display: flex; align-items: center; gap: 10px; }
.tp-rv-who small, .tp-rv-what small { display: block; font-size: 12px; color: #6b7895; margin-top: 2px; }
.tp-rv-what b { margin-left: 6px; }
.tp-rv-acts { display: flex; gap: 8px; }
.tp-teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 12px; }
.tp-teacher { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e3e9f3; border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.tp-teacher:hover { border-color: #b9c8e4; }
.tp-teacher small { display: block; font-size: 12px; color: #6b7895; }
.tp-teacher-badges { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tp-teacher-badges .tb-badge, .tp-teacher-badges .tb-title { height: 20px; font-size: 11px; padding: 0 7px; }
.tp-edit { margin-top: 16px; padding: 18px; border-radius: 14px; background: #f7f9fd; border: 1px solid #e3e9f3; }
.tp-edit h4 { margin: 0 0 8px; font-size: 16px; } .tp-edit h4 small { font-weight: 400; color: #6b7895; font-size: 13px; }
.tp-grant { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e9f3; }
.tp-grant .tp-input { max-width: 320px; }
.tp-modal-back { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(14,27,51,.45); }
.tp-modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(16,35,72,.3); }
.tp-modal h3 { margin: 0; font-size: 18px; font-weight: 800; color: #0e1b33; }
.tp-modal .tp-sub { margin-bottom: 14px; }
.tp-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 10px; background: rgba(14,27,51,.92); color: #fff; font-size: 13.5px; transition: .2s; pointer-events: none; }
.tp-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) {
  .tp-team, .tp-grid { grid-template-columns: 1fr; }
  .tp-card, .tp-card.lead { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .tp-av, .tp-card.lead .tp-av { width: 72px; height: 72px; font-size: 24px; }
  .tp-rv { grid-template-columns: 1fr; }
  .tp-cred { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tp-cred small { grid-column: 1 / -1; }
  .tp-grant { flex-wrap: wrap; }
}
