/* 硕博项目详情 — 参考 orecord.org.cn/projects/* */

body.oh-grad-page--programme-detail {
  background: #f5f4f0;
}

body.oh-grad-page--programme-detail .oh-grad__pane {
  background: #f5f4f0;
}

.oh-grad__detail-top {
  padding-top: 0.65rem;
  padding-bottom: 0.25rem;
}

.oh-grad__detail-top .oh-grad__crumb {
  margin: 0;
  font-size: 0.8125rem;
  color: #71717a;
  opacity: 1;
}

.oh-grad__detail-top .oh-grad__crumb a {
  color: #71717a;
  text-decoration: none;
  border-bottom: 0;
}

.oh-grad__detail-top .oh-grad__crumb a:hover {
  color: #18181b;
}

.oh-grad__detail-top .oh-grad__crumb [aria-current="page"] {
  color: #18181b;
  font-weight: 600;
}

.oh-grad-detail__loading {
  margin: 2rem 0;
  color: #71717a;
  font-size: 0.9375rem;
}

.oh-grad-proj {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 3rem;
  box-sizing: border-box;
}

.oh-grad-proj__back {
  margin: 0 0 0.85rem;
  padding: 0;
  text-align: left;
}

.oh-grad-proj__back a {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.oh-grad-proj__back a:hover {
  color: var(--grad-accent);
}

.oh-grad-proj__hero {
  margin-bottom: 1.25rem;
}

.oh-grad-proj__hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

@media (min-width: 768px) {
  .oh-grad-proj__hero-panel {
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 7.5fr);
  }
}

.oh-grad-proj__hero-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e4e4e7 0%, #f4f4f5 45%, #fafafa 100%);
  border: 1px solid #eceae6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.oh-grad-proj__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oh-grad-proj__hero-media.is-fallback span {
  font-size: clamp(3rem, 12vw, 4.25rem);
  font-weight: 800;
  color: rgba(24, 24, 27, 0.12);
  letter-spacing: -0.04em;
  line-height: 1;
}

.oh-grad-proj__hero-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.oh-grad-proj__hero-card--intro {
  background: #fafaf9;
  border: 1px solid #eceae6;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin: 0.65rem 0 0.85rem;
}

.oh-grad-proj__hero-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grad-accent);
}

.oh-grad-proj__hero-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #52525b;
}

.oh-grad-proj__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
}

.oh-grad-proj__hero-actions .oh-grad-proj__btn {
  min-width: 8.5rem;
  justify-content: center;
  cursor: pointer;
}

.oh-grad-proj__btn--fav.is-saved {
  border-color: #fbbf24;
  color: #b45309;
  background: #fffbeb;
}

.oh-grad-proj__btn.is-disabled,
.oh-grad-proj__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oh-grad-proj__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #18181b;
  font-weight: 700;
}

.oh-grad-proj__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #71717a;
  line-height: 1.45;
}

.oh-grad-proj__en {
  margin: -0.15rem 0 0.85rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.oh-grad-proj__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  background: #27272a;
  color: #fafafa;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.oh-grad-proj__rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  white-space: nowrap;
}

.oh-grad-proj__rail-chip--accent {
  background: rgba(185, 28, 28, 0.25);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.oh-grad-proj__rail-link {
  margin-left: auto;
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
}

.oh-grad-proj__rail-link:hover {
  color: #fff;
  text-decoration: underline;
}

.oh-grad-proj__tabs {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px solid #e7e5e4;
  border-bottom: 1px solid #e7e5e4;
  margin-bottom: 0;
  padding: 0 1rem;
  background: #fff;
  border-radius: 14px 14px 0 0;
}

.oh-grad-proj__tab {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.65rem 0;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.oh-grad-proj__tab:hover {
  color: #18181b;
}

.oh-grad-proj__tab.is-active {
  color: #18181b;
  border-bottom-color: var(--grad-accent);
}

.oh-grad-proj__panels {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 0;
  margin-bottom: 1rem;
}

.oh-grad-proj__panel {
  display: none;
}

.oh-grad-proj__panel.is-active {
  display: block;
}

.oh-grad-proj__split {
  display: grid;
  align-items: stretch;
  padding: 1.15rem 1.25rem 1.5rem;
}

.oh-grad-proj__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.oh-grad-proj__aside {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.oh-grad-proj__aside-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #18181b;
}

.oh-grad-proj__related-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.oh-grad-proj__related-card {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0eeeb;
  text-decoration: none;
  color: inherit;
}

.oh-grad-proj__related-card:last-child {
  border-bottom: 0;
}

.oh-grad-proj__related-card:hover .oh-grad-proj__related-title {
  color: var(--grad-accent);
}

.oh-grad-proj__related-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4e4e7 0%, #f4f4f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: rgba(24, 24, 27, 0.12);
}

.oh-grad-proj__related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.oh-grad-proj__related-title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #18181b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oh-grad-proj__related-meta {
  font-size: 0.6875rem;
  color: #a1a1aa;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oh-grad-proj__related-badge {
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--grad-accent);
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.oh-grad-proj__split {
  grid-template-columns: 1fr;
  gap: 1.25rem 0;
}

.oh-grad-proj__aside {
  border-left: 0;
  padding-left: 0;
  padding-top: 1rem;
  border-top: 1px solid #f0eeeb;
}

@media (min-width: 992px) {
  .oh-grad-proj__split {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 0 1.25rem;
  }

  .oh-grad-proj__aside {
    position: sticky;
    top: var(--oh-grad-filter-sticky-top, 1rem);
    align-self: start;
    border-left: 1px solid #f0eeeb;
    padding-left: 1rem;
    padding-top: 0;
    border-top: 0;
  }
}

.oh-grad-proj__section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.15rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #18181b;
}

.oh-grad-proj__section-head::before {
  content: "";
  width: 3px;
  height: 1em;
  background: var(--grad-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.oh-grad-proj__block:first-child .oh-grad-proj__section-head {
  margin-top: 0;
}

.oh-grad-proj__card {
  background: #fafaf9;
  border: 1px solid #eceae6;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.oh-grad-proj__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
  border: 1px solid #eceae6;
  border-radius: 12px;
}

.oh-grad-proj__table-scroll .oh-grad-proj__table {
  margin-bottom: 0;
}

.oh-grad-proj__table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.oh-grad-proj__table th,
.oh-grad-proj__table td {
  border: 1px solid #eceae6;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.oh-grad-proj__table thead th {
  background: #f5f4f0;
  color: #71717a;
  font-weight: 600;
  font-size: 0.8125rem;
}

.oh-grad-proj__table tbody th {
  background: #fafaf9;
  color: #52525b;
  font-weight: 600;
  width: 28%;
}

.oh-grad-proj__table tbody td {
  color: #18181b;
  font-weight: 500;
}

.oh-grad-proj__table-link {
  color: var(--grad-accent);
  font-weight: 600;
  text-decoration: none;
}

.oh-grad-proj__table-link:hover {
  text-decoration: underline;
}

.oh-grad-proj__block {
  margin-bottom: 1.35rem;
}

.oh-grad-proj__block:last-child {
  margin-bottom: 0;
}

.oh-grad-proj__block-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--grad-accent);
}

.oh-grad-proj__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 576px) {
  .oh-grad-proj__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .oh-grad-proj__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .oh-grad-proj__hero-actions .oh-grad-proj__btn--primary {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.oh-grad-proj__fact {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.oh-grad-proj__fact b {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.oh-grad-proj__fact span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #18181b;
}

.oh-grad-proj__prose {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #3f3f46;
}

.oh-grad-proj__prose p {
  margin: 0 0 0.75rem;
}

.oh-grad-proj__prose p:last-child {
  margin-bottom: 0;
}

.oh-grad-proj__empty {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin: 0;
}

.oh-grad-proj__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
}

.oh-grad-proj__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e7e5e4;
  color: #18181b;
  background: #fff;
}

.oh-grad-proj__btn:hover {
  border-color: #d4d4d8;
}

.oh-grad-proj__btn--primary {
  background: var(--grad-accent);
  border-color: var(--grad-accent);
  color: #fff;
}

.oh-grad-proj__btn--primary:hover {
  background: var(--grad-accent-hover);
  border-color: var(--grad-accent-hover);
  color: #fff;
}

.oh-grad-proj__footnote {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.55;
}

.oh-grad-proj__footnote a {
  color: #71717a;
  text-decoration: underline;
}
