/* ===== 培训通知板块样式 ===== */

.tn-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  text-align: center;
}

.tn-subtitle {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-bottom: 20px;
}

.tn-month-group {
  text-align: center;
  margin: 20px 0 12px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
}

.tn-month-group span {
  background: #f5f6fa;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.tn-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border-left: 3px solid transparent;
}

.tn-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.tn-ended {
  opacity: 0.65;
}

.tn-ended:hover {
  opacity: 0.85;
}

.tn-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tn-course-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  flex: 1;
  line-height: 1.4;
}

.tn-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tn-badge-upcoming {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.tn-badge-ongoing {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  animation: tn-pulse 2s ease-in-out infinite;
}

.tn-badge-ended {
  background: #f5f5f5;
  color: #999;
  border: 1px solid #d9d9d9;
}

@keyframes tn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tn-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #888;
}

.tn-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tn-view-all {
  text-align: center;
  margin: 16px 0 24px;
}

.tn-view-all a {
  color: #1890ff;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.tn-view-all a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .tn-card {
    padding: 18px 24px;
  }
}

@media (min-width: 1024px) {
  .tn-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tn-card {
    margin-bottom: 0;
  }
}
