/* Scoped introduction layout. Navigation, subject overview and article have distinct surfaces. */
body.profile-page { --main-nav-hight: 76px; padding-top: 0 !important; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; }
.profile-page .main-header { position: sticky; top: 0; height: 76px; padding: 0; background: #fff; border-bottom: 1px solid #e5e9ee; z-index: 109; }
.profile-page .main-header .header-nav { border-radius: 0; background: #fff !important; box-shadow: none; backdrop-filter: none; }
.profile-page .container-header { max-width: 1280px; padding-left: 24px; padding-right: 24px; }
.profile-page main.reviewed-profile { max-width: 1280px; padding: 28px 24px 40px; margin: 0 auto !important; }
.reviewed-profile > nav[aria-label="面包屑"] { margin-bottom: 22px !important; color: #7b8590; line-height: 1.8; }
.reviewed-profile > nav[aria-label="面包屑"] a { color: #65727f; }
.profile-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 36px; margin-bottom: 20px; padding: 32px; border: 1px solid #e9edf1; border-radius: 18px; background: #fff; }
.profile-summary { min-width: 0; }
.profile-summary h1 { margin: 0 0 18px !important; font-size: clamp(25px,2.2vw,32px); line-height: 1.4; font-weight: 600; color: #333e49; }
.profile-school-logo { width:48px; height:48px; object-fit:contain; padding:3px; margin-right:12px; vertical-align:middle; border-radius:8px; background:#f5f7fa; }
.official-preview-unavailable { display:flex; min-height:240px; padding:24px; gap:16px; align-items:center; justify-content:center; flex-direction:column; color:#5c6773; text-align:center; }
.official-preview-unavailable span {font-size:14px; line-height:1.8;}
.school-related-note {font-size:13px;color:#78838e;margin-top:14px;}
.school-related .sites-icon {object-fit:contain;}
.profile-summary > p { margin-bottom: 18px !important; max-width: 62ch; font-size: 16px; line-height: 1.9; color: #5c6773; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.profile-tags > span { padding: 5px 10px; border-radius: 7px; background: #edf4f8; color: #456677; font-size: 13px; line-height: 1.5; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-primary-action, .profile-secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 15px; line-height: 1.5; }
.profile-primary-action { background: #f1404b; color: #fff; }
.profile-primary-action:hover { background: #df3541; color: #fff; }
.profile-secondary-action { border-color: #e1e7ed; background: #fff; color: #5c6773; }
.profile-secondary-action:hover { border-color: #f1404b; color: #d63743; }
.official-preview { min-width: 0; margin: 0; border: 1px solid #e0e6ec; border-radius: 12px; overflow: hidden; background: #f8fafc; }
.official-preview-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e0e6ec; font-size: 12px; line-height: 1.5; color: #6f7b88; }
.official-preview-dots { display: flex; gap: 5px; }
.official-preview-dots span { width: 6px; height: 6px; background: #c9d1da; border-radius: 50%; }
.official-preview-image { display: block; background: #fff; }
.official-preview-image img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: contain; }
.official-preview figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid #e0e6ec; color: #7b8590; font-size: 12px; line-height: 1.7; }
.official-preview figcaption a { color: #54768b; }
.site-profile { margin-bottom: 32px; padding: 30px 36px; border-radius: 18px; background: #fff; color: #444c55; }
.profile-outline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; padding: 16px 22px; border: 1px solid #e5e9ef; border-radius: 12px; background: #fafbfc; }
.profile-outline-label { padding-right: 18px; border-right: 1px solid #dbe1e8; font-size: 13px; font-weight: 600; color: #465461; }
.profile-outline a { padding: 3px 0; color: #626d79; font-size: 14px; line-height: 2; }
.profile-outline a:hover { color: #d63743; }
.profile-section { padding: 26px 0; border-bottom: 1px solid #eef0f3; scroll-margin-top: 115px; }
.profile-section:first-child { padding-top: 0; }
.profile-section h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.5; font-weight: 600; color: #3f4954; }
.profile-section h2::before { content: ''; display: inline-block; width: 4px; height: 18px; margin-right: 10px; border-radius: 3px; background: #f1404b; vertical-align: -2px; }
.profile-section > p { margin: 0 0 14px; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.profile-section > p:last-child { margin-bottom: 0; }
.profile-section > .profile-citation { margin-top: 16px; font-size: 13px; line-height: 1.8; color: #6c7783; }
.profile-citation a { color: #54768b; text-decoration: underline; text-underline-offset: 3px; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; margin-bottom: 0; }
.profile-facts > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.8; }
.profile-facts dt { font-weight: 400; color: #75808b; }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.profile-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-link { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 16px 18px; min-width: 0; border-radius: 12px; background: #f6f7f9; color: #4c535c; transition: background .15s; }
.profile-link:hover { background: #f0f3f6; color: #d63743; }
.profile-link strong { font-size: 15px; font-weight: 600; line-height: 1.7; }
.profile-link-arrow { color: #9099a3; }
.profile-link-description { grid-column: 1/-1; font-size: 13px; line-height: 1.8; color: #717c88; overflow-wrap: anywhere; }
.profile-editorial { padding-top: 22px; color: #78838e; font-size: 13px; line-height: 1.8; }
.profile-editorial p { margin: 0 0 8px; }
.profile-editorial p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  body.profile-page { --main-nav-hight: 64px; }
  .profile-page .main-header { height: 64px; }
  .profile-page .container-header { padding-left: 16px; padding-right: 16px; }
  .profile-page main.reviewed-profile { padding: 20px 16px 30px; }
  .reviewed-profile > nav[aria-label="面包屑"] { margin-bottom: 16px !important; }
  .profile-hero { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 22px; border-radius: 14px; }
  .profile-summary h1 { font-size: 25px; }
  .profile-summary > p { font-size: 15px; line-height: 1.9; }
  .profile-tags { margin-bottom: 20px; }
  .profile-actions { gap: 10px; }
  .profile-primary-action, .profile-secondary-action { font-size: 14px; padding: 10px 14px; }
  .official-preview figcaption { font-size: 11px; padding: 9px 10px; }
  .site-profile { padding: 20px; border-radius: 14px; margin-bottom: 24px; }
  .profile-outline { gap: 6px 16px; padding: 14px 18px; }
  .profile-outline-label { flex-basis: 100%; border: 0; padding: 0; margin-bottom: 2px; }
  .profile-section { padding: 22px 0; scroll-margin-top: 90px; }
  .profile-section h2 { font-size: 18px; }
  .profile-section > p { font-size: 15px; line-height: 1.9; }
  .profile-facts { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .profile-facts > div { grid-template-columns: 98px minmax(0,1fr); gap: 10px; }
  .profile-links { grid-template-columns: minmax(0,1fr); }
}
