/* PC 院校详情页 */
.page-schools-detail .pc-main {
  padding: 24px 0 64px;
}

.sd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.sd-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sd-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.sd-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-hero__img--empty {
  background: linear-gradient(145deg, #2a3548 0%, #1a2332 100%);
}

.sd-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
}

.sd-hero__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sd-summary {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.sd-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.sd-name-en {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.sd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sd-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sd-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sd-tabs-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sd-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.sd-tab {
  flex: 1;
  padding: 16px 12px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.sd-tab:hover {
  color: var(--text-secondary);
}

.sd-tab.active {
  color: var(--primary);
}

.sd-tab.active::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

.sd-panel {
  display: none;
  padding: 24px 28px;
}

.sd-panel.active {
  display: block;
}

.sd-intro__body p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.sd-intro__body h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.sd-intro__body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.sd-intro__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sd-course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sd-course-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.sd-course-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.sd-course-item__cover {
  position: relative;
  width: 160px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sd-course-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-course-item__time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
}

.sd-course-item__body {
  flex: 1;
  min-width: 0;
}

.sd-course-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.sd-course-item__desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sd-course-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.sd-course-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--live);
}

.sd-course-item__price del {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.sd-course-item__count {
  color: var(--text-muted);
}

.sd-advisor__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.sd-advisor__body--info-only {
  grid-template-columns: 1fr;
}

.sd-advisor__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sd-advisor__wx-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.sd-advisor__avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sd-advisor__wx-meta strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.sd-advisor__wx-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.sd-advisor__qr-wrap img,
.sd-advisor__qr-wrap canvas {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.sd-advisor__qr-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.sd-advisor__info p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sd-advisor__info p:last-child {
  margin-bottom: 0;
}

.sd-advisor__info span {
  color: var(--text-muted);
}

.sd-advisor__info a {
  color: var(--accent);
}

.sd-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.sd-empty i {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.sd-empty p {
  margin: 0;
  font-size: 14px;
}

/* 侧栏 */
.sd-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.sd-quote-card {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(232, 135, 46, 0.08) 0%, rgba(26, 35, 50, 0.03) 100%);
  box-shadow: var(--shadow-sm);
}

.sd-quote-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sd-quote-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.sd-quote-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.sd-quote-card__body {
  position: relative;
  margin: 0 0 10px;
  padding: 0 8px;
}

.sd-quote-card__mark {
  position: absolute;
  font-size: 36px;
  line-height: 1;
  color: rgba(232, 135, 46, 0.25);
  font-family: Georgia, 'Times New Roman', serif;
}

.sd-quote-card__mark--open {
  top: -8px;
  left: -4px;
}

.sd-quote-card__mark--close {
  right: -4px;
  bottom: -18px;
}

.sd-quote-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-primary);
}

.sd-quote-card__author {
  margin: 0;
  padding-left: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.sd-action-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.sd-action-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.sd-action-card__stats div {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  text-align: center;
}

.sd-action-card__stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.sd-action-card__stats span {
  font-size: 12px;
  color: var(--text-muted);
}

.sd-action-card__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity var(--transition), transform var(--transition);
}

.sd-btn--primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.sd-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff;
}

.sd-related__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.sd-related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.sd-related-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.sd-related-item__cover {
  width: 96px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.sd-related-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-related-item__tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.sd-related-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sd-related-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.sd-related-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.sd-page-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sd-page-empty i {
  font-size: 48px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 16px;
}

.sd-page-empty p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.sd-page-empty a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sd-page-empty a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sd-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(26, 35, 50, 0.92);
  color: #fff;
  font-size: 14px;
  z-index: 300;
}

.sd-toast[hidden] {
  display: none;
}

.sd-cs-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.sd-cs-modal[hidden] {
  display: none;
}

.sd-cs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.45);
}

.sd-cs-modal__panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 24px 20px 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sd-cs-modal__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.sd-cs-modal__img-wrap {
  width: 220px;
  height: 220px;
  margin: 8px auto 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.sd-cs-modal__img-wrap img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.sd-cs-modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.sd-cs-modal__empty i {
  font-size: 28px;
  opacity: 0.7;
}

.sd-cs-modal__empty p {
  margin: 0;
}

.sd-cs-modal__tip {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.sd-cs-modal__close {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 22px;
  background: var(--accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .sd-layout {
    grid-template-columns: 1fr;
  }

  .sd-sidebar {
    position: static;
    order: -1;
  }

  .sd-advisor__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sd-title {
    font-size: 22px;
  }

  .sd-course-item {
    flex-direction: column;
  }

  .sd-course-item__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
