/* hdc-pc 站点样式：只补 Bootstrap 覆盖不到的部分，不重写栅格与组件。 */

:root {
  --site-brand: #185fa5;
  --site-brand-soft: #e6f1fb;
  --site-ink: #1f2328;
}

body {
  color: var(--site-ink);
}

a {
  text-decoration-thickness: 1px;
}

.site-brand {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--site-brand);
}

.site-brand:hover {
  color: var(--site-brand);
}

.site-search {
  min-width: 240px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
}

.stat-tile {
  background: var(--site-brand-soft);
  border-radius: 10px;
  padding: 14px 10px;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--site-brand);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: #5f5e5a;
  margin-top: 2px;
}

.school-card {
  border: 1px solid var(--bs-border-color);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.school-card:hover {
  border-color: var(--site-brand);
  transform: translateY(-1px);
}

.tier-badge {
  background: var(--site-brand-soft);
  color: var(--site-brand);
  font-weight: 500;
  font-size: 0.72rem;
}

.year-badge {
  background: #f1efe8;
  color: #444441;
  font-weight: 400;
}

.school-table th,
.major-table th {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5f5e5a;
  white-space: nowrap;
}

.school-table td,
.major-table td {
  font-size: 0.9rem;
}

.major-table td:last-child {
  min-width: 220px;
}

/* 同一专业多种语种组合：默认只露第一组，其余折叠 */
.subject-more {
  margin-top: 0.35rem;
}

.subject-more > summary {
  font-size: 0.78rem;
  color: var(--site-brand);
  cursor: pointer;
  list-style: none;
}

.subject-more > summary::-webkit-details-marker {
  display: none;
}

.subject-more > summary::after {
  content: " ▾";
}

.subject-more[open] > summary::after {
  content: " ▴";
}

.subject-group {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px dashed var(--bs-border-color);
}

.enroll-note {
  font-size: 0.72rem;
  color: #888780;
}

.prose-block h2 {
  margin-bottom: 0.6rem;
}

.prose-block p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #444441;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
}

/* 小屏收窄内边距，避免 375px 下出现横向溢出 */
@media (max-width: 575.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stat-num {
    font-size: 1.15rem;
  }

  .school-table td,
  .major-table td {
    font-size: 0.86rem;
  }

  .site-search {
    min-width: 0;
    width: 100%;
    margin-top: 0.5rem;
  }
}
