/* 课程表·作业小助手 —— 管理端粉色主题 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #FFF0F5;
  color: #5C3A4A;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFB6C1; padding: 10px 20px; border-radius: 0 0 16px 16px;
}
.topbar .logo { font-weight: 700; font-size: 18px; }
.topbar nav a { margin-left: 14px; color: #5C3A4A; text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: #FF69B4; }
.wrap { max-width: 960px; margin: 24px auto; padding: 0 16px; }
h1 { color: #FF69B4; } h2 { color: #E0559E; }
.card {
  background: #fff; border-radius: 14px; padding: 16px 18px; margin: 14px 0;
  box-shadow: 0 2px 10px rgba(255, 105, 180, .12);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.muted { color: #A8889A; }
.small { font-size: 12px; }
.error { background: #FFE4E8; color: #C0304A; border-radius: 8px; padding: 8px 12px; }
.flash { border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.flash.ok { background: #E4F8EC; color: #1E7A46; }
.flash.warn { background: #FFF3E0; color: #B26A00; }
.flash.error { background: #FFE4E8; color: #C0304A; }
.link-a { color: #FF69B4; text-decoration: none; margin-right: 6px; font-size: 14px; }
.link-a:hover { text-decoration: underline; }
.tag { background: #FF69B4; color: #fff; border-radius: 8px; font-size: 12px; padding: 1px 6px; }
.plain { list-style: none; padding-left: 0; }
.plain li { padding: 4px 0; border-bottom: 1px dashed #FFE0EA; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid #FFE0EA; text-align: left; }
.table th { background: #FFD9E4; }
input, select, textarea, button {
  font: inherit; border-radius: 9px; border: 1px solid #F3B9CC; padding: 7px 10px; background: #fff;
}
button { background: #FF69B4; color: #fff; border: none; cursor: pointer; font-weight: 600; }
button:hover { background: #E0559E; }
button.link-btn { background: none; color: #FF69B4; padding: 0 4px; font-weight: 500; }
button.link-btn.muted { color: #A8889A; }
.btn { display: inline-block; background: #FF69B4; color: #fff; padding: 8px 14px; border-radius: 9px; text-decoration: none; }
.btn.ghost { background: #fff; color: #FF69B4; border: 1px solid #F3B9CC; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 4px; }
.inline { display: inline; }
.w60 { width: 64px; }
.center-page { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: 320px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.login-card h2 { margin: 6px 0 0; }
.foot { text-align: center; color: #C9A8B8; font-size: 12px; padding: 20px; }
