/* MQL5 课程站公共样式 —— 响应式：PC 双栏舒展，手机单栏 */
:root { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #14171f; color: #e8ebf2;
  min-height: 100vh;
}
a { color: #6ea8ff; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #1c2030; border-bottom: 1px solid #2c3348;
  position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-weight: 600; font-size: 15px; }
.topbar .meta { font-size: 12px; color: #9aa3b5; display: flex; gap: 14px; align-items: center; }
.card {
  background: #1c2030; border: 1px solid #2c3348;
  border-radius: 10px; padding: 16px; margin-bottom: 14px;
}
label { display: block; font-size: 13px; color: #9aa3b5; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 9px 10px; border-radius: 8px;
  border: 1px solid #3a4258; background: #262c3f; color: #e8ebf2; font-size: 14px;
}
button {
  padding: 10px 22px; border: none; border-radius: 8px;
  background: #2f6feb; color: #fff; font-size: 14px; cursor: pointer; margin-top: 10px;
}
button:disabled { background: #3a4258; cursor: not-allowed; }
button:hover:not(:disabled) { background: #3d7bf5; }
button.ghost { background: transparent; border: 1px solid #3a4258; color: #9aa3b5; }
button.danger { background: #a03030; }
button.small { padding: 4px 10px; font-size: 12px; margin-top: 0; }
.hint { font-size: 12px; color: #7d8698; line-height: 1.7; margin-top: 8px; }
.ok { color: #8fd8a3; }
.err { color: #ff9d9d; }
.warn { color: #ffce7a; }
/* 课程列表 */
.chapter-title { font-size: 15px; color: #9aa3b5; margin: 22px 0 10px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.course-card {
  background: #1c2030; border: 1px solid #2c3348; border-radius: 10px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
}
.course-card:hover { border-color: #2f6feb; }
.course-card .t { font-size: 14px; font-weight: 600; line-height: 1.5; }
.course-card .d { font-size: 12px; color: #7d8698; }
/* 视频页 */
#player-wrap { width: 100%; }
#player-container-id, #player-wrap video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.summary h2 { font-size: 16px; margin-bottom: 10px; }
.summary p { font-size: 14px; line-height: 1.9; color: #c3c9d6; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #2c3348; text-align: left; word-break: break-all; }
th { color: #9aa3b5; font-weight: 500; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.badge.on { background: #1d3a2a; color: #8fd8a3; }
.badge.off { background: #3a2222; color: #ff9d9d; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 0 auto; }
.grow { flex: 1 1 120px; }
@media (max-width: 600px) {
  .container { padding: 10px; }
  .card { padding: 12px; }
}
