.is-career-page .home-header, .is-career-page .home-footer { display: none; }
.is-career-page .home-section { position: relative; display: flex; flex-direction: column; width: 100%; height: 100dvh; margin: 0; padding: clamp(24px, 3dvh, 40px) clamp(20px, 3.5vw, 66px) 16px; overflow-y: auto; overflow-x: hidden; }
.is-career-page #homeSectionTitle { flex: none; margin: 0; text-align: center; font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; letter-spacing: .16em; line-height: 1.4; }
.is-career-page #homeSectionTitle::first-letter { color: var(--home-red); }
.is-career-page .home-back { position: absolute; right: clamp(20px, 3vw, 48px); top: 22px; color: #6b7080; border-color: transparent; font-size: clamp(12px, 1.2vw, 18px); letter-spacing: .1em; direction: ltr; writing-mode: horizontal-tb; }
.is-career-page .home-back:hover { color: var(--home-red); border-color: currentColor; }
.career-page { flex: 1 0 auto; min-height: 0; color: #2a2d38; }
.career-subtitle { margin: 7px 0 16px; text-align: center; color: #6b7080; font-size: clamp(11px, 1.1vw, 17px); letter-spacing: .1em; line-height: 1.5; }
.career-layout { display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); align-items: start; gap: clamp(22px, 3vw, 48px); max-width: 1380px; margin: 0 auto; }
/* ProfileCard 参考稿：倾斜外框、内层视差与全息光带。 */
.career-profile { --profile-rx: 0deg; --profile-ry: 0deg; --profile-x: 0px; --profile-y: 0px; --profile-px: 50%; --profile-py: 50%; --profile-light: 0; min-width: 0; perspective: 1000px; touch-action: pan-y; }
.career-profile-frame { position: relative; padding: 8px; border: 1px solid rgb(42 45 56 / 10%); border-radius: 20px; background: rgb(246 246 248 / 66%); box-shadow: 0 20px 42px -24px rgb(24 24 27 / 34%); transform: rotateX(var(--profile-rx)) rotateY(var(--profile-ry)); transform-style: preserve-3d; }
.career-profile-tile { position: relative; isolation: isolate; overflow: hidden; min-height: 360px; padding: clamp(12px, 1.3vw, 21px); border-radius: 12px; border: 1px solid rgb(255 255 255 / 80%); background: linear-gradient(155deg, rgb(255 255 255 / 85%), rgb(221 224 230 / 75%)); }
.career-profile-foil, .career-profile-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.career-profile-foil { z-index: -1; background: repeating-linear-gradient(115deg, transparent 0%, rgb(183 152 104 / 17%) 20%, rgb(144 167 183 / 18%) 33%, transparent 48%); background-size: 250% 250%; background-position: var(--profile-px) var(--profile-py); opacity: calc(.15 + var(--profile-light) * .65); }
.career-profile-glare { background: radial-gradient(circle at var(--profile-px) var(--profile-py), rgb(255 255 255 / 70%), transparent 65%); mix-blend-mode: soft-light; opacity: var(--profile-light); }
.career-profile-top { display: flex; align-items: flex-start; gap: 12px; }
.career-profile-summary, .career-profile-details { display: contents; }
.career-avatar { position: relative; width: clamp(56px, 5.5vw, 86px); aspect-ratio: 1; border-radius: 50%; flex: none; background: linear-gradient(160deg, #b9bdc7, #8d92a0); border: 3px solid white; box-shadow: 0 4px 12px rgb(0 0 0 / 12%); transform: translate3d(var(--profile-x), var(--profile-y), 8px); }
.career-avatar img { display: block; width: 100%; height: auto; border-radius: inherit; }
.career-avatar::after { content: ''; position: absolute; right: 1px; bottom: 3px; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--home-red); border: 2px solid white; }
.career-name { min-width: 0; }
.career-name h3 { margin: 0; font-size: clamp(21px, 1.8vw, 30px); font-weight: 500; letter-spacing: .1em; }
.career-name p { margin: 4px 0 0; font-size: 12px; color: #6b7080; }
.career-name .career-specialty { font-size: .72rem; line-height: 1.4; }
.career-profile-section { position: relative; margin-top: clamp(12px, 1.5dvh, 20px); }
.career-profile-section h3 { margin: 0 0 5px; padding-bottom: 4px; border-bottom: 1px solid rgb(42 45 56 / 13%); color: var(--home-red); font-size: 12px; font-weight: 500; letter-spacing: .2em; }
.career-profile-section p, .career-contact { margin: 0; padding: 0; font-size: clamp(11px, .95vw, 14px); line-height: 1.65; color: #4c5160; overflow-wrap: anywhere; }
.career-contact { list-style: none; }
.career-contact li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 5px; }
.career-contact li + li { margin-top: 3px; }
.career-contact li > span { color: #777f8b; }
.career-contact a { color: inherit; text-decoration: none; }
.career-contact a:hover { color: var(--home-red); text-decoration: underline; }
.career-experiences { min-width: 0; }
.career-company-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.career-company-button { min-width: 0; min-height: 44px; padding: 7px; border: 1px solid rgb(42 45 56 / 19%); border-radius: 8px; background: rgb(255 255 255 / 45%); color: #515866; font: inherit; font-size: clamp(10px, .95vw, 14px); line-height: 1.4; cursor: pointer; }
.career-company-button small { display: block; margin-top: 2px; font-size: .82em; }
.career-company-button.is-selected { background: #2a2d38; border-color: #2a2d38; color: white; }
.career-stage { width: 100%; min-width: 0; margin-top: 12px; }
.career-card { min-width: 0; width: 100%; border: 1px solid rgb(42 45 56 / 16%); border-radius: 14px; background: linear-gradient(155deg, #fcfcfd, #e8ebef); box-shadow: 0 10px 28px -20px rgb(24 24 27 / 40%); overflow-wrap: anywhere; }
.career-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid rgb(42 45 56 / 12%); font-weight: 500; }
.career-overview { margin: 14px 18px 18px; color: #515866; font-size: 13px; line-height: 1.7; }
.career-number { color: var(--home-red); font-size: 13px; }
.career-role { font-size: clamp(17px, 1.6vw, 25px); letter-spacing: .08em; }
.career-company, .career-period { font-size: 11px; color: #7b8390; }
.career-period { margin-left: auto; }
.career-card-body { display: grid; min-width: 0; grid-template-columns: minmax(110px, .28fr) minmax(0, 1fr); gap: 16px; padding: 16px 18px 18px; }
.career-project-list { display: flex; flex-direction: column; gap: 8px; border-right: 1px solid rgb(42 45 56 / 14%); padding-right: 12px; }
.career-project-label { margin: 0; font-size: 11px; color: var(--home-red); }
.career-project-button { width: 100%; flex: none; padding: 9px 6px; border: 1px solid rgb(42 45 56 / 18%); border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
.career-project-button.is-selected { background: #2a2d38; border-color: #2a2d38; color: white; }
.career-project-detail { min-width: 0; overflow-wrap: anywhere; padding-right: 3px; }
.career-project-detail h4 { margin: 0; font-size: clamp(17px, 1.5vw, 23px); font-weight: 500; line-height: 1.4; }
.career-project-note { margin: 5px 0 14px; font-size: 11px; line-height: 1.5; color: #7b8390; }
.career-project-row { display: grid; gap: 5px; margin: 0 0 14px; color: #515866; font-size: 13px; line-height: 1.8; }
.career-project-row dt { justify-self: start; border-top: 1px solid var(--home-red); padding-top: 3px; color: #2a2d38; }
.career-project-row dd { margin: 0; }
.career-project-row ol { margin: 0; padding-inline-start: 1.6em; }
.career-project-row li + li { margin-top: .45em; }
.career-page a:focus-visible { outline: 2px solid var(--home-red); outline-offset: 3px; }
.career-card :is(.career-project-detail, .career-teaching-detail):focus-visible { outline: 2px solid var(--home-red); outline-offset: -2px; }
@media (min-width: 1101px) {
  .is-career-page .home-section { overflow: clip; }
  .career-page, .career-experiences, .career-card { display: flex; flex-direction: column; }
  .career-page, .career-layout, .career-stage { flex: 1 1 0; min-height: 0; }
  .career-layout { width: 100%; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .career-profile { align-self: start; }
  .career-card { max-height: 100%; }
  .career-card:has(.career-project-detail) { height: 100%; }
  .career-company-list, .career-card-heading { flex: none; }
  .career-card-body { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .career-project-detail, .career-teaching-detail { min-height: 0; overflow: auto; overscroll-behavior-y: contain; }
  .career-project-detail { padding-right: 12px; scrollbar-gutter: stable; }
}
@media (min-width: 1101px) and (max-height: 600px) {
  .is-career-page .home-section { padding-block: clamp(10px, 3dvh, 18px) 12px; }
  .is-career-page #homeSectionTitle { font-size: clamp(27px, 6dvh, 36px); }
  .career-subtitle { margin: 4px 0 10px; }
  .career-layout { grid-template-columns: minmax(244px, .32fr) minmax(0, 1fr); }
  .career-profile-tile { min-height: 0; padding: 10px; }
  .career-avatar { width: 44px; }
  .career-name h3 { font-size: 18px; }
  .career-name p, .career-name .career-specialty { font-size: 10px; }
  .career-profile-section { margin-top: 8px; }
  .career-profile-section h3 { margin-bottom: 3px; padding-bottom: 2px; }
  .career-profile-section p, .career-contact { font-size: 11px; line-height: 1.4; }
  .career-contact li + li { margin-top: 0; }
  .career-card-heading, .career-card-body { padding-block: 10px; }
}
@media (min-width: 1101px) and (max-height: 480px) {
  .career-layout { grid-template-columns: minmax(330px, .38fr) minmax(0, 1fr); }
  .career-profile-tile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .career-profile-summary, .career-profile-details { display: block; min-width: 0; }
  .career-profile-details > :first-child { margin-top: 0; }
  .career-profile-top { gap: 6px; }
  .career-avatar { width: 36px; }
}
@media (max-width: 900px) {
  .career-project-list { flex-flow: row wrap; border-right: 0; padding: 0; }
  .career-project-label { flex-basis: 100%; }
  .career-project-button { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .career-layout { grid-template-columns: minmax(190px, .4fr) minmax(0, 1fr); gap: 18px; }
  .career-card-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .career-role { font-size: 16px; }
  .career-period { margin-left: 0; }
}
@media (max-width: 600px) {
  .is-career-page .home-section { padding: 30px 12px 16px; }
  .is-career-page #homeSectionTitle { font-size: clamp(23px, 5.8vw, 32px); }
  .career-subtitle { margin: 4px 0 10px; font-size: clamp(9px, 2.5vw, 12px); letter-spacing: .04em; }
  .career-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .career-profile-frame { padding: 4px; border-radius: 12px; }
  .career-profile-tile { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; padding: 7px; border-radius: 8px; }
  .career-profile-top { grid-column: 1/-1; gap: 8px; }
  .career-avatar { width: 36px; border-width: 2px; }
  .career-name { min-width: 0; }
  .career-name h3 { font-size: 15px; line-height: 1.25; }
  .career-name p { font-size: 9px; margin-top: 2px; }
  .career-name .career-specialty { font-size: 9px; }
  .career-profile-section { grid-column: 1/-1; margin: 0; }
  .career-profile-section h3 { display: none; }
  .career-profile-section p { font-size: 9px; line-height: 1.35; }
  .career-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding-top: 4px; border-top: 1px solid rgb(42 45 56 / 12%); font-size: 8.5px; line-height: 1.35; }
  .career-contact li { min-width: 0; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 3px; }
  .career-contact li > span { font-size: 7.5px; }
  .career-contact a { min-width: 0; }
  .career-contact li + li { margin-top: 0; }
  .career-company-list { gap: 4px; }
  .career-company-button { min-height: 44px; padding: 5px 2px; font-size: clamp(9px, 2.5vw, 12px); }
  .career-stage { margin-top: 10px; }
  .career-card { border-radius: 10px; }
  .career-card-heading { padding: 10px 12px; gap: 3px 7px; }
  .career-overview { margin: 10px 12px 14px; font-size: 12px; }
  .career-role { font-size: 17px; }
  .career-number { font-size: 11px; }
  .career-company, .career-period { font-size: 10px; }
  .career-period { margin-left: 0; }
  .career-card-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px; padding: 10px 12px 16px; }
  .career-project-list { gap: 4px; }
  .career-project-button { padding: 7px 3px; font-size: 10px; }
  .career-project-detail h4 { font-size: 17px; }
  .career-project-row { font-size: 12px; margin-bottom: 12px; }
}
@media (min-width: 401px) and (max-width: 600px) {
  .career-profile-tile { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 10px; }
  .career-profile-summary, .career-profile-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .career-profile-details { padding-left: 10px; border-left: 1px solid rgb(42 45 56 / 12%); }
  .career-contact { grid-template-columns: minmax(0, 1fr); padding-top: 0; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .career-profile-frame, .career-avatar { transform: none; }
  .career-profile-foil, .career-profile-glare { display: none; }
}
