/* frontend-h5/src/styles.css */
:root {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: #17202a;
  background: #eef4f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eef4f5;
}
button,
select {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
.wechat-app {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: #eef4f5;
}
.wechat-screen {
  min-height: 100vh;
  padding: 18px 14px 86px;
}
.hero {
  display: flex;
  min-height: 124px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(
      105deg,
      rgba(21, 151, 168, 0.94),
      rgba(71, 130, 232, 0.9)),
    url("data:image/svg+xml,%3Csvg width='380' height='130' viewBox='0 0 380 130' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 91C54 79 81 100 130 82C194 58 210 22 272 38C314 49 336 26 380 16V130H0V91Z' fill='%23FDD96A' fill-opacity='.75'/%3E%3C/svg%3E");
  background-size: cover;
}
.hero.compact {
  min-height: 108px;
}
.hero span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  opacity: .9;
}
.hero strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
}
.hero svg {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.notice,
.student-picker,
.hours-card,
.activity-card,
.lesson-card,
.schedule-board,
.balance,
.record-card,
.eval-row,
.profile,
.mine-list,
.login-form,
.login-status,
.linked-students article {
  margin-top: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 67, 82, .07);
}
.notice {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 12px;
  color: #8d9aa5;
  font-size: 13px;
}
.notice button,
.lesson-date button,
.sub-head span {
  color: #3f7ee8;
  background: transparent;
  font-size: 13px;
}
.student-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: #667085;
  font-size: 13px;
}
.student-picker select {
  max-width: 170px;
  border: 0;
  color: #17202a;
  background: transparent;
  font-weight: 700;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 8px;
  margin: 18px 0 14px;
}
.action-grid button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
}
.action-grid button > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.action-grid strong {
  font-size: 12px;
}
.red {
  background: #ef6351;
}
.blue {
  background: #487cff;
}
.purple {
  background: #6266d9;
}
.green {
  background: #22a06b;
}
.orange {
  background: #f19538;
}
.teal {
  background: #16a394;
}
.hours-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-left: 4px solid #1a9b8f;
}
.hours-card span,
.hours-card p,
.activity-card span,
.record-card span,
.lesson-card p,
.lesson-meta,
.eval-row span,
.profile span {
  color: #667085;
  font-size: 12px;
}
.hours-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.hours-card p {
  max-width: 220px;
  margin: 0;
  text-align: right;
  line-height: 1.55;
}
.activity-card {
  padding: 14px;
  text-align: center;
}
.activity-card div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  text-align: left;
}
.activity-card svg,
.empty svg {
  color: #a8b5bd;
}
.activity-card p {
  color: #a8b5bd;
  font-size: 13px;
}
.login-page {
  display: grid;
  min-height: calc(100vh - 104px);
  align-content: start;
  padding-top: clamp(28px, 8vh, 66px);
}
.login-copy {
  margin-bottom: clamp(58px, 10vh, 86px);
  text-align: center;
}
.login-copy h1 {
  margin: 0 0 18px;
  color: #333b45;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
}
.login-copy p {
  margin: 0 auto;
  max-width: 270px;
  color: #9ca3ad;
  font-size: 16px;
  line-height: 1.55;
}
.login-form {
  display: grid;
  gap: 0;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
}
.login-form label {
  display: grid;
  min-height: 58px;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e3e8ec;
  color: #c0c6ce;
}
.login-form input {
  min-width: 0;
  border: 0;
  color: #17202a;
  background: transparent;
  font: inherit;
  outline: none;
}
.login-form input::placeholder {
  color: #c5cbd2;
}
.login-form label button {
  min-width: 104px;
  min-height: 34px;
  border-left: 1px solid #e0e5e9;
  color: #42a9da;
  background: transparent;
  font-weight: 700;
}
.login-form button:disabled {
  opacity: .58;
  cursor: default;
}
.login-submit {
  min-height: 48px;
  margin-top: 30px;
  border-radius: 8px;
  color: #fff;
  background: #8cc4f2;
  font-size: 18px;
  font-weight: 500;
}
.login-submit:not(:disabled) {
  background: #42a9da;
}
.login-tip {
  margin: 24px 20px 0;
  color: #9aa3ad;
  font-size: 15px;
  line-height: 1.55;
}
.login-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 20px 0;
  padding: 11px 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}
.sub-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  margin: -18px -14px 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e7efee;
}
.sub-head button {
  color: #98a2b3;
  background: transparent;
  font-size: 26px;
  text-align: left;
}
.sub-head strong {
  text-align: center;
}
.section-stack {
  display: grid;
  gap: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17202a;
}
.section-title.spaced {
  margin-top: 8px;
}
.section-title strong {
  font-size: 15px;
}
.section-title span {
  color: #8a96a3;
  font-size: 12px;
}
.schedule-weeks {
  display: grid;
  gap: 14px;
}
.schedule-board {
  overflow: hidden;
  margin-top: 0;
}
.schedule-board-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #edf2f2;
}
.schedule-board-head strong {
  font-size: 15px;
}
.schedule-board-head span {
  color: #8a96a3;
  font-size: 12px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: 46px repeat(7, minmax(0, 1fr));
  gap: 0;
  background: #f4f7f7;
}
.head-cell,
.day-head,
.slot-time,
.schedule-cell {
  min-width: 0;
  background: #fff;
}
.head-cell {
  display: grid;
  place-items: center;
  color: #9aa5ad;
  font-size: 11px;
}
.day-head {
  display: grid;
  min-height: 54px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-left: 1px solid #edf2f2;
}
.day-head strong {
  font-size: 13px;
  font-weight: 700;
}
.day-head span,
.slot-time span {
  color: #8a96a3;
  font-size: 11px;
}
.slot-time {
  display: grid;
  min-height: 118px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-top: 1px solid #edf2f2;
  color: #9aa5ad;
}
.slot-time strong {
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
}
.slot-time span {
  max-width: 42px;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.25;
}
.schedule-cell {
  min-height: 118px;
  padding: 6px 4px;
  border-top: 1px solid #edf2f2;
  border-left: 1px solid #edf2f2;
}
.schedule-pill {
  display: grid;
  min-height: 104px;
  align-content: start;
  gap: 4px;
  padding: 9px 7px;
  border-radius: 8px;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14);
}
.schedule-pill + .schedule-pill {
  margin-top: 6px;
}
.schedule-pill strong,
.schedule-pill span,
.schedule-pill small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-pill strong {
  max-height: 36px;
  font-size: 12px;
  line-height: 1.45;
}
.schedule-pill span,
.schedule-pill small {
  font-size: 10px;
  line-height: 1.28;
  opacity: .9;
}
.tone-purple {
  background: #8e89aa;
}
.tone-sage {
  background: #a7ae9a;
}
.tone-teal {
  background: #6f998e;
}
.tone-blue {
  background: #2f7db5;
}
.tone-clay {
  background: #a58d7f;
}
.tone-lilac {
  background: #aaa4c8;
}
.lesson-card {
  padding: 14px;
}
.lesson-date {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lesson-date span {
  color: #1a9b8f;
  font-weight: 700;
}
.lesson-date b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #1a9b8f;
  background: #e2f5f1;
  font-size: 12px;
}
.lesson-card > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.lesson-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.plan-card {
  border-left: 4px solid #487cff;
}
.plan-summary {
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #487cff,
      #16a394);
  box-shadow: 0 8px 22px rgba(43, 67, 82, .1);
}
.plan-summary span,
.plan-summary p {
  margin: 0;
  opacity: .86;
  font-size: 12px;
}
.plan-summary strong {
  display: block;
  margin: 6px 0;
  font-size: 19px;
}
.leave-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 67, 82, .07);
}
.leave-record strong,
.leave-record span,
.leave-record small {
  display: block;
}
.leave-record span,
.leave-record small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}
.leave-record b {
  min-width: 58px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #a95f00;
  background: #fff0cf;
  font-size: 12px;
  text-align: center;
}
.inline-empty {
  padding: 18px 12px;
  border: 1px dashed #cfdcd8;
  border-radius: 8px;
  color: #8a98a5;
  background: #f8fbfa;
  text-align: center;
  font-size: 13px;
}
.balance {
  display: grid;
  gap: 10px;
  padding: 15px;
}
.balance div {
  display: flex;
  justify-content: space-between;
}
.balance span {
  color: #667085;
  font-size: 12px;
}
.balance strong {
  max-width: 210px;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 16px;
}
.record-card,
.eval-row {
  padding: 14px;
}
.record-card p {
  margin: 7px 0;
  color: #536273;
  font-size: 13px;
  line-height: 1.5;
}
.eval-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.eval-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: #f26d5b;
  font-size: 12px;
}
.timeline {
  position: relative;
  margin-top: 12px;
  padding-left: 16px;
}
.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: #cfe4df;
  content: "";
}
.timeline > b {
  display: block;
  margin-bottom: 10px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.profile > div {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      #4d89ff,
      #1db69e);
  font-size: 20px;
  font-weight: 800;
}
.profile p {
  margin: 0;
}
.profile strong,
.profile span {
  display: block;
}
.linked-students {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.linked-students article {
  padding: 13px 14px;
  border: 1px solid transparent;
}
.linked-students article.active {
  border-color: #1a9b8f;
  background: #f0fbf8;
}
.linked-students strong,
.linked-students span,
.linked-students small {
  display: block;
}
.linked-students strong {
  font-size: 15px;
}
.linked-students span {
  margin-top: 5px;
  color: #536273;
  font-size: 12px;
}
.linked-students small {
  margin-top: 4px;
  color: #8a96a3;
  font-size: 12px;
}
.mine-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #edf2f2;
  background: transparent;
  text-align: left;
}
.mine-page small {
  display: block;
  margin-top: 34px;
  color: #c0c8ce;
  text-align: center;
}
.empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 10px;
  color: #9daab4;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.retry-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #1a9b8f;
  font-size: 13px;
}
.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  width: min(430px, 100vw);
  height: 64px;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid #e7eeec;
  background: rgba(255, 255, 255, .96);
}
.bottom-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #a3aeb8;
  background: transparent;
  font-size: 12px;
}
.bottom-tabs button.active {
  color: #3f7ee8;
}
