@layer legacy {
/* ========================================
   iLink Teacher Wall — 导师招贤 (Editorial)
   ======================================== */

/* === Hero Section === */
.hero-section {
    padding: 32px 24px 24px;
    background: transparent;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #faf6f0;
    border: 1px solid #f5efe6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a08055;
    margin-bottom: 16px;
}

.hero-eyebrow svg {
    width: 14px;
    height: 14px;
    stroke: #a08055;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-title {
    font-family: "SimSun", "宋体", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    max-width: 600px;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-top: 16px;
    max-width: 480px;
}

/* === Toolbar Section === */
.toolbar-section {
    padding: 0 24px 24px;
    background: transparent;
}

.toolbar-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* === Content Section === */
.content-section {
    padding: 0 24px 80px;
    background: transparent;
}

.content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* === Mentor Grid === */
#teacherList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* === Mentor Card === */
.mentor-card-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.mentor-card-shell:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
    border-color: rgba(196, 167, 125, 0.3);
}

/* Corner Decoration */
.mentor-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mentor-card-shell:hover .mentor-corner {
    opacity: 1;
}

.mentor-corner svg {
    width: 100%;
    height: 100%;
    stroke: #c4a77d;
    stroke-width: 1.5;
    fill: none;
}

/* Header */
.mentor-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.mentor-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e4df, #f5f3ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.mentor-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
}

.mentor-card-shell:hover .mentor-avatar::after {
    border-color: #c4a77d;
}

.mentor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mentor-avatar .avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e4df, #f5f3ef);
    border-radius: 50%;
}

.mentor-info { flex: 1; min-width: 0; padding-top: 4px; }

.mentor-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 2px;
}

.mentor-title-row {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.mentor-dept {
    display: inline-block;
    padding: 4px 12px;
    background: #faf9f7;
    border-radius: 999px;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.02em;
    border: 1px solid #f5efe6;
}

/* Gradient Divider */
.mentor-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
    margin: 20px 0;
    position: relative;
}

.mentor-divider::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #c4a77d, transparent);
    transition: width 0.6s ease;
}

.mentor-card-shell:hover .mentor-divider::after {
    width: 60%;
}

/* Bio */
.mentor-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Tags */
.mentor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.mentor-tag {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #888;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.mentor-card-shell:hover .mentor-tag {
    border-color: rgba(196, 167, 125, 0.4);
    color: #444;
}

.mentor-tag:hover {
    background: rgba(196, 167, 125, 0.08);
    border-color: #c4a77d;
    color: #111;
}

/* Footer */
.mentor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.mentor-stats {
    display: flex;
    gap: 28px;
}

.mentor-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mentor-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: #111;
    line-height: 1;
}

.mentor-stat-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.05em;
}

.mentor-btn {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    background: #1a1a1a;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Inter", "Microsoft YaHei", "微软雅黑", sans-serif;
    text-decoration: none;
}

.mentor-btn:hover {
    background: #c4a77d;
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(196, 167, 125, 0.3);
}

.mentor-btn svg {
    transition: transform 0.3s ease;
}

.mentor-btn:hover svg {
    transform: translateX(2px);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #888;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state span {
    font-size: 14px;
    color: #aaa;
}

/* === Pagination === */
#pagination {
    margin: 40px auto 60px;
    text-align: center;
}

#pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#pagination li {
    margin: 0;
}

#pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

#pagination .page-link:hover {
    border-color: #c4a77d;
    color: #111;
}

#pagination .page-item.active .page-link {
    background: #1a1a1a;
    color: #faf9f7;
    border-color: #1a1a1a;
}

#pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Modal Overlay === */
.teacher-apply-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.teacher-apply-overlay.show {
    opacity: 1;
    visibility: visible;
}

.teacher-apply-dialog {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-apply-overlay.show .teacher-apply-dialog {
    transform: translateY(0) scale(1);
}

.teacher-apply-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.teacher-apply-dialog__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.teacher-apply-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.teacher-apply-dialog__close:hover {
    background: #faf9f7;
    color: #111;
}

.teacher-apply-dialog__body {
    padding: 28px;
}

.teacher-apply-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* === Form Fields === */
.teacher-apply-field {
    margin-bottom: 20px;
}

.teacher-apply-field:last-child {
    margin-bottom: 0;
}

.teacher-apply-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 8px;
}

.teacher-apply-input,
.teacher-apply-textarea {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-family: "Inter", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #111;
    background: #faf9f7;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    resize: vertical;
    outline: none;
}

.teacher-apply-input:focus,
.teacher-apply-textarea:focus {
    border-color: #c4a77d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.12);
}

.teacher-apply-input::placeholder,
.teacher-apply-textarea::placeholder {
    color: #888;
}

/* teacher-wall shell overrides — migrated from style.css */

body[data-app-page="teacher-wall"] .il-teacher-footer .il-btn {
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px ;
}
body[data-app-page="teacher-wall"] .il-teacher-avatar {
  width: 56px ;
  height: 56px ;
  min-width: 56px ;
  max-width: 56px ;
  min-height: 56px ;
  max-height: 56px ;
  border-radius: 50% ;
  background: var(--bg-gray) ;
  border: 1px solid var(--border-light) ;
  box-shadow: none ;
  color: var(--text-secondary) ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  overflow: hidden ;
  flex-shrink: 0 ;
  position: relative ;
  font-size: 1.25rem ;
  font-weight: 600 ;
  line-height: 1 ;
  text-align: center ;
}
body[data-app-page="teacher-wall"] .il-teacher-avatar img {
  width: 100% ;
  height: 100% ;
  min-width: 0 ;
  min-height: 0 ;
  object-fit: cover ;
  display: block ;
  border-radius: 50% ;
}
body[data-app-page="teacher-wall"] .il-teacher-avatar-fallback {
  position: absolute ;
  inset: 0 ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 100% ;
  height: 100% ;
  color: var(--text-secondary) ;
  font-weight: 600 ;
  line-height: 1 ;
}
body[data-app-page="teacher-wall"] .il-teacher-header {
  gap: 12px ;
  margin-bottom: 10px ;
}
#applyModal.teacher-apply-overlay,
body[data-app-page="teacher-wall"] .teacher-apply-overlay {
  position: fixed ;
  inset: 0 ;
  display: none ;
  align-items: center ;
  justify-content: center ;
  padding: 24px ;
  background: rgba(17, 17, 17, 0.52) ;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100 ;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
}
#applyModal.teacher-apply-overlay.show,
body[data-app-page="teacher-wall"] .teacher-apply-overlay.show {
  display: flex ;
  visibility: visible;
  pointer-events: auto;
}
#applyModal .teacher-apply-dialog,
body[data-app-page="teacher-wall"] .teacher-apply-dialog {
  position: relative ;
  inset: auto ;
  top: auto ;
  right: auto ;
  bottom: auto ;
  left: auto ;
  z-index: auto ;
  width: 100% ;
  max-width: 520px ;
  max-height: min(90vh, 720px) ;
  margin: 0 ;
  padding: 0 ;
  display: flex ;
  flex-direction: column ;
  align-items: stretch ;
  justify-content: flex-start ;
  background: #ffffff ;
  border: 1px solid var(--border-light) ;
  border-radius: 12px ;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) ;
  overflow: hidden ;
  animation: ilink-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-sizing: border-box;
}
#applyModal .teacher-apply-dialog__header,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__header {
  display: flex ;
  align-items: center ;
  justify-content: space-between ;
  gap: 12px ;
  flex-shrink: 0 ;
  padding: 20px 24px ;
  border-bottom: 1px solid var(--border-light) ;
}
#applyModal .teacher-apply-dialog__title,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__title {
  margin: 0 ;
  font-size: 18px ;
  font-weight: 600 ;
  line-height: 1.3 ;
  color: #111827 ;
}
#applyModal .teacher-apply-dialog__close,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__close {
  flex-shrink: 0 ;
  width: 36px ;
  height: 36px ;
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  border: none ;
  border-radius: 999px ;
  background: #f3f4f6 ;
  color: #6b7280 ;
  cursor: pointer ;
  padding: 0 ;
}
#applyModal .teacher-apply-dialog__close:hover,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__close:hover {
  background: #e5e7eb ;
  color: #111827 ;
}
#applyModal .teacher-apply-dialog__body,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__body {
  flex: 1 1 auto ;
  min-height: 0 ;
  overflow-y: auto ;
  padding: 24px ;
}
#applyModal .teacher-apply-form,
body[data-app-page="teacher-wall"] .teacher-apply-form {
  display: flex ;
  flex-direction: column ;
  gap: 16px ;
  margin: 0 ;
}
#applyModal .teacher-apply-field,
body[data-app-page="teacher-wall"] .teacher-apply-field {
  display: flex ;
  flex-direction: column ;
  gap: 8px ;
  margin: 0 ;
  width: 100% ;
}
#applyModal .teacher-apply-label,
body[data-app-page="teacher-wall"] .teacher-apply-label {
  display: block ;
  margin: 0 ;
  font-size: 14px ;
  font-weight: 500 ;
  line-height: 1.4 ;
  color: #4b5563 ;
}
#applyModal .teacher-apply-input,
#applyModal .teacher-apply-textarea,
body[data-app-page="teacher-wall"] .teacher-apply-input,
body[data-app-page="teacher-wall"] .teacher-apply-textarea {
  display: block ;
  width: 100% ;
  margin: 0 ;
  padding: 12px 14px ;
  border: 1px solid #d1d5db ;
  border-radius: 8px ;
  font-size: 14px ;
  line-height: 1.5 ;
  color: #111827 ;
  background: #ffffff ;
  box-sizing: border-box ;
}
#applyModal .teacher-apply-textarea,
body[data-app-page="teacher-wall"] .teacher-apply-textarea {
  min-height: 88px ;
  resize: vertical ;
}
#applyModal .teacher-apply-input:focus,
#applyModal .teacher-apply-textarea:focus,
body[data-app-page="teacher-wall"] .teacher-apply-input:focus,
body[data-app-page="teacher-wall"] .teacher-apply-textarea:focus {
  outline: none ;
  border-color: #6b7280 ;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) ;
}
#applyModal .teacher-apply-dialog__footer,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer {
  display: flex ;
  flex-shrink: 0 ;
  justify-content: flex-end ;
  align-items: center ;
  gap: 12px ;
  padding: 16px 24px 24px ;
  border-top: 1px solid var(--border-light) ;
}
#applyModal .teacher-apply-dialog__footer .il-btn-primary,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer .il-btn-primary {
  background: #111827 ;
  border-color: #111827 ;
  color: #ffffff ;
}
#applyModal .teacher-apply-dialog__footer .il-btn-primary:hover,
body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer .il-btn-primary:hover {
  background: #374151 ;
  border-color: #374151 ;
}

@media (max-width: 767.98px) {
  #applyModal.teacher-apply-overlay,
  body[data-app-page="teacher-wall"] .teacher-apply-overlay {
    align-items: flex-end;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  }

  #applyModal .teacher-apply-dialog,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog {
    max-width: none;
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  #applyModal .teacher-apply-dialog__header,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__header,
  #applyModal .teacher-apply-dialog__body,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__body,
  #applyModal .teacher-apply-dialog__footer,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer {
    padding: 16px;
  }

  #applyModal .teacher-apply-dialog__close,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__close,
  #applyModal .teacher-apply-dialog__footer button,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer button {
    min-width: 44px;
    min-height: 44px;
  }

  #applyModal .teacher-apply-input,
  #applyModal .teacher-apply-textarea,
  body[data-app-page="teacher-wall"] .teacher-apply-input,
  body[data-app-page="teacher-wall"] .teacher-apply-textarea {
    min-height: 48px;
    font-size: 16px;
  }
}

/* teacher-detail shell overrides — migrated from style.css */

body[data-app-page="teacher-detail"] .detail-page__column {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
body[data-app-page="teacher-detail"] .teacher-detail-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
body[data-app-page="teacher-detail"] .teacher-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
body[data-app-page="teacher-detail"] .teacher-detail-back:hover {
  color: #111827;
  text-decoration: none;
}
body[data-app-page="teacher-detail"] .teacher-detail-card {
  margin: 0;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.06),
    0 8px 24px rgba(17, 24, 39, 0.08);
}
body[data-app-page="teacher-detail"] .teacher-detail-card:hover {
  transform: none;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.06),
    0 8px 24px rgba(17, 24, 39, 0.08);
}
body[data-app-page="teacher-detail"] .teacher-detail__header {
  padding: 1.5rem 1.75rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
body[data-app-page="teacher-detail"] .teacher-detail__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
body[data-app-page="teacher-detail"] .teacher-detail__avatar-slot {
  flex-shrink: 0;
}
body[data-app-page="teacher-detail"] .teacher-detail__avatar-slot .publisher-avatar,
body[data-app-page="teacher-detail"] .teacher-detail__avatar-slot > a.publisher-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #6b7280;
  color: #ffffff;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 0 2px #ffffff, 0 2px 8px rgba(17, 24, 39, 0.1);
}
body[data-app-page="teacher-detail"] .teacher-detail__avatar-slot .publisher-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body[data-app-page="teacher-detail"] .teacher-detail__avatar-slot .publisher-avatar__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
body[data-app-page="teacher-detail"] .teacher-detail__title-wrap {
  min-width: 0;
}
body[data-app-page="teacher-detail"] .teacher-detail__body {
  padding: 0 1.75rem 1.75rem;
}
body[data-app-page="teacher-detail"] .teacher-detail__meta {
  padding-top: 0.25rem;
}
body[data-app-page="teacher-detail"] .teacher-detail__apply {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
body[data-app-page="teacher-detail"] .teacher-detail__section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
}
body[data-app-page="teacher-detail"] .teacher-detail__apply-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
body[data-app-page="teacher-detail"] .teacher-detail__textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body[data-app-page="teacher-detail"] .teacher-detail__textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
body[data-app-page="teacher-detail"] .teacher-detail__textarea:disabled {
  background: var(--bg-light, #f8f9fa);
  color: var(--text-tertiary);
  cursor: not-allowed;
}
body[data-app-page="teacher-detail"] .teacher-detail__apply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
body[data-app-page="teacher-detail"] .teacher-detail__submit {
  min-width: 7.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
  border-radius: 8px;
}
body[data-app-page="teacher-detail"] .teacher-detail__submit:hover:not(:disabled) {
  background: #374151 !important;
  border-color: #374151 !important;
}
body[data-app-page="teacher-detail"] .teacher-detail__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
body[data-app-page="teacher-detail"] .teacher-detail__apply-status {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
@media (max-width: 479.98px) {
  #applyModal .teacher-apply-dialog__footer button,
  body[data-app-page="teacher-wall"] .teacher-apply-dialog__footer button {
    flex: 1 1 0;
  }

  body[data-app-page="teacher-detail"] .teacher-detail__header,
  body[data-app-page="teacher-detail"] .teacher-detail__body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  body[data-app-page="teacher-detail"] .teacher-detail__apply-actions {
    justify-content: stretch;
  }

  body[data-app-page="teacher-detail"] .teacher-detail__submit {
    width: 100%;
  }
}


/* 有可用头像时隐藏字母兜底层：特异性(0,5,2)需高于 portal-redesign.css 中
   body[data-app-page="teacher-wall"] .mentor-avatar .avatar-fallback{display:grid!important}(0,4,2)，
   否则同 !important 下后加载的 portal 规则会让字母层永久盖住头像 */
html.ilink-app body[data-app-page="teacher-wall"] .mentor-card-shell .mentor-avatar .avatar-fallback.avatar-fallback--hidden {
    display: none !important;
}


/* === 导师资料未完善提示条 === */
.banner-section {
    padding: 0 24px 4px;
    background: transparent;
}
.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.teacher-incomplete-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8e8, #fffdf5);
    border: 1px solid #f0d9a8;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.teacher-incomplete-banner[hidden] {
    display: none;
}
.teacher-incomplete-banner__icon {
    flex-shrink: 0;
    color: #d99a1f;
}
.teacher-incomplete-banner__body {
    flex: 1;
    min-width: 0;
}
.teacher-incomplete-banner__title {
    font-size: 15px;
    font-weight: 600;
    color: #7a5a12;
    line-height: 1.4;
}
.teacher-incomplete-banner__text {
    margin-top: 3px;
    font-size: 13px;
    color: #8a6d2a;
    line-height: 1.5;
}
.teacher-incomplete-banner__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #d99a1f;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.teacher-incomplete-banner__action:hover {
    background: #c2881a;
    color: #fff;
}
@media (max-width: 767.98px) {
    .teacher-incomplete-banner {
        flex-wrap: wrap;
    }
    .teacher-incomplete-banner__action {
        margin-left: auto;
    }
}

/* === ui-refresh：紧凑搜索栏（与组队大厅统一风格） ===
body[data-app-page="teacher-wall"] .il-search-bar {
    min-height: 60px;
    padding: 10px 16px;
    gap: 10px;
}
/* 去掉与搜索框平分宽度的空白 spacer，让搜索框占满、操作按钮靠右 */
body[data-app-page="teacher-wall"] .il-search-bar__spacer {
    display: none;
}
/* 中屏空间不足、ghost 按钮换行时贴右对齐 */
@media (min-width: 768px) and (max-width: 1280px) {
    body[data-app-page="teacher-wall"] .il-search-bar__btn--ghost {
        margin-left: auto;
    }
}

}
