:root {
  --navy: #101d63;
  --navy-deep: #0a1650;
  --brand: #2233d6;
  --brand-dark: #1a2ab5;
  --brand-soft: #eef1fc;
  --red: #d9251d;
  --gold: #f5a623;
  --bg: #eff0f4;
  --card: #ffffff;
  --text: #1f2329;
  --text-sub: #5c6270;
  --text-weak: #8f959e;
  --line: #e2e4ea;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 29, 99, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 政务风头部 ---------- */
.gov-head {
  background: var(--navy);
  color: #fff;
}
.gov-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.gov-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gov-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.gov-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.gov-nav a.active {
  color: #fff;
  font-weight: 600;
}

/* ---------- 容器 ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 70px;
}

/* ---------- 课程标题 ---------- */
.page-title {
  margin: 2px 0 16px;
  text-align: center;
}
.page-title-main {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.page-title-sub {
  margin-top: 6px;
  text-align: right;
  padding-right: 6px;
  font-family: 'KaiTi', '楷体', 'STKaiti', 'Kaiti SC', 'Songti SC', 'Noto Serif CJK SC', serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ---------- 表单面板 ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 26px;
  box-shadow: var(--shadow);
}

/* 匿名保障提示 */
.notice {
  background: var(--brand-soft);
  border: 1px solid #dfe4fb;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.notice-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-sub);
}

.notice p b {
  color: var(--brand);
  font-weight: 600;
}

/* 评价进度 */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.progress-label {
  white-space: nowrap;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: #eef0f5;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.25s;
}
.progress-num {
  white-space: nowrap;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

/* 表单项 */
.form-item {
  margin-bottom: 22px;
}
.form-item > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.form-item > label .star-req {
  color: var(--red);
  margin-left: 2px;
}
.form-item > label .opt {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
}

select,
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #d5d8e0;
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6270' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
select:invalid,
select.placeholder {
  color: var(--text-weak);
}
select:focus,
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 51, 214, 0.09);
}
textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}
textarea::placeholder,
input::placeholder {
  color: #aeb2bd;
}

/* 讲师信息卡 */
.lec-info {
  border: 1px solid #dfe4fb;
  background: #f8f9fe;
  border-radius: 6px;
  padding: 15px 16px;
  margin: -8px 0 24px;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lec-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}
.lec-name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lec-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--brand);
  background: #fff;
  border: 1px solid #dfe4fb;
  border-radius: 3px;
  padding: 2px 7px;
}
.lec-meta {
  font-size: 12px;
  color: var(--text-weak);
  margin-top: 4px;
}
.lec-meta b {
  color: var(--gold);
}
.lec-bio {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-sub);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dfe4fb;
}
.lec-courses-label {
  font-size: 12.5px;
  color: var(--text-weak);
  margin: 12px 0 6px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 12px;
  background: #fff;
  border: 1px solid #dfe4fb;
  color: var(--brand);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* 星级 */
.rate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.star-picker {
  display: flex;
  gap: 6px;
}
.star-picker .star {
  cursor: pointer;
  line-height: 0;
  transition: transform 0.12s;
}
.star-picker .star svg {
  width: 40px;
  height: 40px;
  display: block;
}
.star-picker .star path {
  fill: transparent;
  stroke: #a3a8b4;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill 0.12s, stroke 0.12s;
}
.star-picker .star.on path {
  fill: var(--gold);
  stroke: var(--gold);
}
.star-picker .star.on {
  transform: scale(1.04);
}
.star-hint {
  font-size: 13px;
  color: var(--text-weak);
}
.star-hint.active {
  color: var(--brand);
  font-weight: 600;
}
.star-hint .dash {
  color: var(--gold);
  margin-right: 6px;
  font-weight: 700;
}

/* 底部操作 */
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.btn-text {
  background: none;
  border: none;
  color: var(--text-sub);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 6px;
}
.btn-text:hover {
  color: var(--text);
}
.btn-next {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 4px;
  font: inherit;
  font-size: 13.5px;
  padding: 9px 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-next:hover {
  background: var(--brand-soft);
}
.btn-submit {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 46px;
  cursor: pointer;
  transition: 0.2s;
  min-width: 160px;
}
.btn-submit:hover {
  background: var(--brand-dark);
}
.btn-submit:disabled {
  background: #a9b0e0;
  cursor: not-allowed;
}

/* 收起状态 */
.collapsed-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-sub);
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 4px;
  font: inherit;
  font-size: 13.5px;
  padding: 7px 16px;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--brand-soft);
}

/* 提交成功 */
.success-box {
  text-align: center;
  padding: 34px 10px 22px;
}
.success-box .tick {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f6ee;
  color: #147a4e;
  display: grid;
  place-items: center;
  font-size: 31px;
  margin: 0 auto 16px;
}
.success-box h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.success-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-sub);
}
.success-note {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 7px 16px;
}
.success-note b {
  color: var(--brand);
  font-size: 15px;
  margin: 0 2px;
}

.dir-done {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: #147a4e;
  background: #e8f6ee;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 7px;
  vertical-align: 1px;
}

/* 浮层提示 */
.toast {
  position: fixed;
  left: 50%;
  top: 74px;
  transform: translate(-50%, -12px);
  background: rgba(31, 35, 41, 0.92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 11px 18px;
  border-radius: 6px;
  max-width: calc(100% - 40px);
  text-align: center;
  opacity: 0;
  transition: 0.24s;
  z-index: 99;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.ok {
  background: rgba(20, 122, 78, 0.95);
}
.toast .gold {
  color: #ffd571;
}

/* 弹窗（讲师名录 / 后台） */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 29, 99, 0.42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow: auto;
}
.modal h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.modal .modal-sub {
  font-size: 12.5px;
  color: var(--text-weak);
  margin: 0 0 16px;
}
.modal label {
  display: block;
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 13px 0 5px;
}
.modal input,
.modal textarea {
  border-radius: 4px;
  padding: 9px 11px;
}
.modal textarea {
  min-height: 78px;
}
.dir-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dir-item:last-of-type {
  border-bottom: none;
}
.dir-item .avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}
.dir-item .n {
  font-size: 14.5px;
  font-weight: 600;
}
.dir-item .t {
  font-size: 12px;
  color: var(--text-weak);
  margin: 2px 0 6px;
}

/* ---------- 后台 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.section-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0 0 16px;
}
.login-box {
  max-width: 360px;
  margin: 70px auto;
}
.login-box input {
  margin-bottom: 12px;
}
.err {
  color: var(--red);
  font-size: 12.5px;
  min-height: 18px;
  margin-bottom: 8px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.summary .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.summary .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}
.summary .lbl {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 12.5px;
  background: #f7f8fb;
  white-space: nowrap;
}
tbody tr:hover {
  background: #fafbfe;
}
.rank {
  width: 30px;
  color: var(--text-weak);
}
.rank.top {
  color: var(--red);
  font-weight: 700;
}
.stars-view {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.avg-num {
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
}
.bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar {
  flex: 1;
  height: 6px;
  background: #eef0f5;
  border-radius: 3px;
  overflow: hidden;
  max-width: 150px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}

.btn {
  border: none;
  border-radius: 4px;
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
}
.btn-ghost {
  background: #fff;
  border: 1px solid #d5d8e0;
  color: var(--text-sub);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-sm {
  padding: 4px 11px;
  font-size: 12.5px;
}
.btn-danger {
  background: #fff;
  border: 1px solid #f0c3c0;
  color: var(--red);
}
.btn-danger:hover {
  background: #fdf2f1;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.comment-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-weak);
  margin-bottom: 5px;
  gap: 8px;
}
.comment-item .txt {
  font-size: 13.5px;
  line-height: 1.7;
}
.comment-item .txt.no {
  color: var(--text-weak);
}
.empty {
  text-align: center;
  color: var(--text-weak);
  font-size: 14px;
  padding: 36px 0;
}

@media (max-width: 560px) {
  .gov-inner {
    height: 52px;
    gap: 9px;
    padding: 0 12px;
  }
  .brand-name {
    font-size: 15.5px;
  }
  .gov-nav a {
    font-size: 13px;
    padding: 6px 7px;
  }
  .page-title-main {
    font-size: 18.5px;
  }
  .page-title-sub {
    font-size: 14.5px;
    padding-right: 2px;
    letter-spacing: 0.5px;
  }
  .wrap {
    padding: 14px 12px 60px;
  }
  .panel {
    padding: 18px 14px 22px;
  }
  .star-picker {
    gap: 4px;
  }
  .star-picker .star svg {
    width: 34px;
    height: 34px;
  }
  .btn-submit {
    padding: 12px 30px;
    min-width: 150px;
  }
  .form-actions {
    gap: 8px;
  }
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
}
