/* 《机械工程智能化技术及应用》课程网站样式 */

:root {
  --brand: #14508c;      /* 铁道蓝 */
  --brand-dark: #0d3a66;
  --brand-light: #eaf2fa;
}

body {
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.site-nav { background-color: var(--brand-dark); }
.site-nav .nav-link:hover { color: #fff; opacity: .85; }

.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #2a76b8 100%);
}

.section-title {
  font-weight: 700;
  border-left: 5px solid var(--brand);
  padding-left: .6rem;
  margin-bottom: 1rem;
}

.brand-badge { background-color: var(--brand); color: #fff; }

.lecture-card {
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid #e6ecf2;
}
.lecture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(13, 58, 102, .15);
}

.goal-card { background-color: var(--brand-light); border-color: #cfe1f2; }
.task-card { background-color: #fffaf0; border-color: #f2dfc0; }

.notice-content p { margin-bottom: 0; }

.md-content h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.md-content h3 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
.md-content table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
.md-content th, .md-content td { border: 1px solid #d8e0e8; padding: .4rem .6rem; font-size: .95rem; }
.md-content th { background: #f0f4f8; }
.md-content code { background: #eef1f4; padding: .1rem .3rem; border-radius: 3px; }
.md-content pre { background: #2d333b; color: #cdd9e5; padding: .8rem; border-radius: .4rem; overflow-x: auto; }
.md-content pre code { background: transparent; color: inherit; }
.md-content blockquote { border-left: 4px solid var(--brand); padding-left: .8rem; color: #555; margin: .5rem 0; }

.site-footer {
  background-color: var(--brand-dark);
  color: #d7e3f0;
  flex-shrink: 0;
}

.coze-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2a76b8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 58, 102, .4);
  z-index: 1050;
}
