:root {
  --green-pale: rgba(16, 185, 129, 0.1);
  --text-muted: #94a3b8;
}
body {
  background-color: #090d16;
  color: #e2e8f0;
  font-size: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}
.bg-grid {
  background-image: radial-gradient(
    rgba(56, 189, 248, 0.08) 1px,
    transparent 0
  );
  background-size: 24px 24px;
}
.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}
.text-glow {
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
/* 标题渐变文字 — 持续流动动画 */
.gradient-animate {
  background-image: linear-gradient(
    90deg,
    #22d3ee,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #8b5cf6,
    #3b82f6,
    #22d3ee
  );
  background-size: 200% auto;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientFlow 6s linear infinite;
}
@keyframes gradientFlow {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}
/* 无障碍：尊重「减少动态效果」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .gradient-animate {
    animation: none;
  }
}
/* 交互卡片组与内容排版样式 */
.card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.15);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.card-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}
.card-item-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 600;
}
.card-item-badge.community {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.card-item-badge.external {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
/* 确保 SVG 图标在 flex 容器内与文字同行显示 */
svg[data-lucide],
.card-item svg {
  flex-shrink: 0 !important;
}
/* 模态框标题图标与文字同行 */
#modalTitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#modalTitle svg {
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 模态框内部 HTML 排版样式 */
#modal-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}
#modal-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
#modal-body h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
#modal-body p {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #cbd5e1;
}
#modal-body .tip,
#modal-body .warning,
#modal-body .info-box {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
#modal-body .tip {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid #38bdf8;
  color: #e0f2fe;
}
#modal-body .warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  color: #fef3c7;
}
#modal-body .info-box {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}
/* 仅对显式加了 block-title 类的 strong 做标题换行，避免误伤正文内嵌的 strong */
#modal-body .tip > strong.block-title,
#modal-body .warning > strong.block-title,
#modal-body .info-box > strong.block-title {
  display: block;
  margin-bottom: 0.25rem;
}
/* 体测评分表样式 */
#modal-body .sport-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
#modal-body .sport-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: nowrap;
}
#modal-body .sport-table-wrap thead th {
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  position: sticky;
  top: 0;
}
#modal-body .sport-table-wrap thead th .sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 0.1rem;
}
#modal-body .sport-table-wrap tbody td {
  padding: 0.35rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}
#modal-body .sport-table-wrap tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.3);
}
#modal-body .sport-table-wrap tbody td.score {
  font-weight: 600;
  color: #38bdf8;
}
#modal-body .sport-table-wrap tbody tr.pass-row td {
  background: rgba(34, 197, 94, 0.08);
}
#modal-body .sport-table-wrap tbody tr.fail-row td {
  color: #94a3b8;
}
/* 体测权重小表 */
#modal-body .weight-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
#modal-body .weight-table th,
#modal-body .weight-table td {
  padding: 0.4rem 0.6rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
#modal-body .weight-table th {
  background: rgba(56, 189, 248, 0.15);
  color: #e0f2fe;
  font-weight: 600;
}
#modal-body .weight-table td:first-child {
  text-align: left;
  color: #e2e8f0;
}
#modal-body .weight-table td:last-child {
  color: #38bdf8;
  font-weight: 600;
}
/* 测试项目标签 */
#modal-body .test-tags-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
#modal-body .test-tags-2 span {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}
/* 等级证书 */
#modal-body .grade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}
#modal-body .grade-cards div {
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  background: rgba(30, 41, 59, 0.4);
}
#modal-body .grade-cards div b {
  display: block;
  color: #38bdf8;
  font-size: 0.95rem;
}
#modal-body .grade-cards div small {
  color: #94a3b8;
  font-size: 0.75rem;
}
#modal-body ul.check-list,
#modal-body ul.ban-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}
#modal-body ul.check-list li,
#modal-body ul.ban-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
#modal-body ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: bold;
}
#modal-body ul.ban-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: bold;
}
#modal-body ol.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0 0;
  counter-reset: step;
  position: relative;
}
#modal-body ol.timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    rgba(56, 189, 248, 0.35),
    rgba(56, 189, 248, 0.05)
  );
}
#modal-body ol.timeline li {
  position: relative;
  padding: 0.25rem 0 0.75rem 2.25rem;
  margin-bottom: 0.25rem;
  line-height: 1.7;
}
#modal-body ol.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid #38bdf8;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
#modal-body ol.timeline li > strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
}
#modal-body ol.timeline li span {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
#modal-body .ban-line {
  color: #f87171;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
#modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#modal-body .campus-addresses,
#modal-body .dorm-grid,
#modal-body .venue-grid,
#modal-body .network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
#modal-body .campus-addresses > div,
#modal-body .dorm-grid article,
#modal-body .network-grid article {
  background: rgba(30, 41, 59, 0.5);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
/* 校园运动资源卡片 */
#modal-body .venue-grid > span {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-left: 3px solid #38bdf8;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}
#modal-body .venue-grid > span strong {
  display: block;
  color: #38bdf8;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
#modal-body .dorm-grid article > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
#modal-body .dorm-grid article > a:hover img {
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
#modal-body .dorm-grid img {
  transition: transform 0.25s ease;
}
#modal-body .campus-addresses span {
  display: block;
  background: rgba(30, 41, 59, 0.5);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.7;
}

/* 通用内容区块（清单 / 流程 / 提示等） */
#modal-body .check-section,
#modal-body .flow-section,
#modal-body .dorm-section,
#modal-body .club-section,
#modal-body .transfer-section,
#modal-body .aid-section,
#modal-body .sport-section,
#modal-body .medical-section,
#modal-body .sim-section,
#modal-body .loan-section,
#modal-body .tips-section {
  padding: 0.25rem 0 0.5rem;
  margin-top: 0.75rem;
}
#modal-body .tips-section > * + * {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.75rem;
}

/* 就医渠道样式 */
#modal-body .care-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
#modal-body .care-list > span {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 0.5rem;
  transition: all 0.2s;
}
#modal-body .care-list > span:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}
#modal-body .care-list .care-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#modal-body .care-list .care-head b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #22d3ee;
  color: #0f172a;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
#modal-body .care-list .care-head strong {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.95rem;
}
#modal-body .care-list small {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* 奖学金卡片网格 */
#modal-body .scholarship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0;
}
#modal-body .scholarship-grid article {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.6rem;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
#modal-body .scholarship-grid article > span {
  display: inline-block;
  align-self: flex-start;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
#modal-body .scholarship-grid article > strong {
  font-size: 1rem;
  color: #f1f5f9;
  font-weight: 700;
}
#modal-body .scholarship-grid article > b {
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 700;
}
#modal-body .scholarship-grid article > p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}
#modal-body .scholarship-grid article > small {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: auto;
}
/* 校级奖学金等级 */
#modal-body .award-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0;
}
#modal-body .award-levels i {
  font-style: normal;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-weight: 600;
}
/* 助学金高亮 */
#modal-body .grant-highlight {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#modal-body .grant-highlight > span {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
#modal-body .grant-highlight > span small {
  font-size: 0.75rem;
  color: #94a3b8;
}
#modal-body .grant-highlight > span strong {
  color: #fbbf24;
  font-size: 1.1rem;
  font-weight: 700;
}
#modal-body .grant-highlight > p {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}
/* 帮扶政策网格 */
#modal-body .support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}
#modal-body .support-grid > span {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}
#modal-body .support-grid > span strong {
  display: block;
  color: #38bdf8;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
/* 时间提醒列表 */
#modal-body .date-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
#modal-body .date-list > span {
  background: rgba(30, 41, 59, 0.4);
  border-left: 3px solid #38bdf8;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.4rem 0.4rem 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}
#modal-body .date-list > span b {
  color: #fbbf24;
  margin-right: 0.4rem;
}
#modal-body .check-section h4 em,
#modal-body .flow-section h4 em {
  font-style: normal;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 0.4rem;
  font-weight: 400;
}

/* 报到流程：编号时间轴 */
#modal-body ol.arrival-flow {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  counter-reset: step;
}
#modal-body ol.arrival-flow > li {
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}
#modal-body ol.arrival-flow > li::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(
    rgba(56, 189, 248, 0.4),
    rgba(56, 189, 248, 0.05)
  );
}
#modal-body ol.arrival-flow > li:last-child::before {
  display: none;
}
#modal-body .step-icon {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid #38bdf8;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  z-index: 1;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
#modal-body ol.arrival-flow h4 {
  margin-top: 0.15rem;
}
#modal-body ol.arrival-flow ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.4rem 0;
  color: #cbd5e1;
}
#modal-body ol.arrival-flow ul li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}
/* 移动端流程图紧凑模式（缩小圆圈与间距，保留字号） */
@media (max-width: 640px) {
  #modal-body ol.timeline {
    margin: 0.25rem 0 0 0;
  }
  #modal-body ol.timeline::before {
    left: 0.625rem;
  }
  #modal-body ol.timeline li {
    padding: 0.1rem 0 0.5rem 1.65rem;
    margin-bottom: 0.15rem;
    line-height: 1.6;
  }
  #modal-body ol.timeline li::before {
    width: 1.25rem;
    height: 1.25rem;
    top: 0.25rem;
    font-size: 0.72rem;
    border-width: 1.5px;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.2);
  }
  #modal-body ol.timeline li span {
    margin-top: 0.05rem;
  }
  #modal-body ol.arrival-flow {
    margin: 0.5rem 0;
  }
  #modal-body ol.arrival-flow > li {
    padding-left: 2.35rem;
    margin-bottom: 1rem;
    min-height: 0;
  }
  #modal-body ol.arrival-flow > li::before {
    left: 0.78rem;
    top: 1.75rem;
    bottom: -1rem;
  }
  #modal-body .step-icon {
    width: 1.6rem;
    height: 1.6rem;
    top: 0;
    font-size: 0.8rem;
    border-width: 1.5px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
  }
  #modal-body ol.arrival-flow ul {
    padding-left: 1.1rem;
    margin: 0.25rem 0;
  }
}

#modal-body .mini-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

/* 高亮完成区 / 危险警示区 */
#modal-body .completion-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 1rem;
  margin-top: 1rem;
}
#modal-body .danger-section {
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 1rem;
  margin-top: 1rem;
}
#modal-body .danger-section h4 {
  color: #fca5a5;
}
#modal-body .allow-line {
  display: block;
  color: #34d399;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
#modal-body .detail-action {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #0284c7;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
#modal-body .detail-action:hover {
  background: #0369a1;
}
#modal-body .phone-links a {
  color: #38bdf8;
  text-decoration: underline;
  margin-right: 0.75rem;
  display: inline-block;
}

/* 部门电话目录样式 */
#modal-body .phone-dir-group {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
#modal-body .emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0;
}
#modal-body .emergency-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
}
#modal-body .emergency-card .e-name {
  display: block;
  font-size: 0.8rem;
  color: #fcd34d;
  margin-bottom: 0.2rem;
}
#modal-body .emergency-card .e-num {
  color: #fde68a;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
#modal-body .campus-block {
  margin-top: 0.75rem;
}
#modal-body .campus-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 0.4rem;
  margin: 0.6rem 0 0.5rem;
}
#modal-body .phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.45rem;
}
#modal-body .phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}
#modal-body .phone-row:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(30, 41, 59, 0.7);
}
#modal-body .phone-row .p-name {
  color: #cbd5e1;
  line-height: 1.4;
}
#modal-body .phone-row .p-num {
  color: #38bdf8;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.92rem;
}
#modal-body .phone-row .p-num:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
#modal-body .office-hours-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
#modal-body .office-hours-box .oh-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
#modal-body .office-hours-box .oh-grid span strong {
  display: block;
  color: #e2e8f0;
}
#modal-body .office-hours-box .oh-grid span small {
  color: #94a3b8;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}
/* 制作同款页面引导横幅 */
.custom-page-cta {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(14, 165, 233, 0.04)
  );
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding: 1.5rem 1rem;
}
.custom-page-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.custom-page-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.2rem;
}
.custom-page-text p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}
.custom-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.custom-page-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .custom-page-inner {
    flex-direction: column;
    text-align: center;
  }
}
