/* ==========================================================
   祥和守望 · 东胜区祥和小学德育处值班记录
   绿色清新 · 移动优先 · 大字大按钮
   ========================================================== */

:root {
  --green: #5CB85C;
  --green-2: #66BB6A;
  --green-dark: #3E8E45;
  --green-deep: #2F7A38;
  --mint: #E4F3E6;
  --mint-soft: #F1F9F2;
  --bg: #F4F7F4;
  --card: #FFFFFF;
  --text: #1F2E25;
  --text-2: #64766B;
  --text-3: #97A79E;
  --line: #E8EFE9;
  --danger: #E05B45;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 6px 22px rgba(56, 118, 66, .07);
  --shadow-sm: 0 2px 10px rgba(56, 118, 66, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(28px + var(--safe-bottom));
}

/* ---------------- 顶部 Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(20px + var(--safe-top)) 22px 26px;
  background: linear-gradient(158deg, #77CC79 0%, #5CB85C 52%, #4CA457 100%);
  border-radius: 0 0 28px 28px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(76, 164, 87, .22);
}
.hero::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.hero::before {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: 46px; top: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .34);
  display: grid; place-items: center;
  font-size: 21px; font-weight: 700;
  letter-spacing: 0;
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 13px; opacity: .86; margin-top: 1px; letter-spacing: .6px; }

.hero-gear {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  color: #fff;
  transition: background .15s;
}
.hero-gear:active { background: rgba(255, 255, 255, .3); }

.hero-date {
  position: relative; z-index: 1;
  margin-top: 20px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .8px;
  opacity: .97;
}

.hero-stats {
  position: relative; z-index: 1;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  padding: 12px 18px;
  backdrop-filter: blur(4px);
}
.hero-stats > div { display: flex; align-items: baseline; gap: 7px; }
.hero-stats b { font-size: 22px; font-weight: 700; line-height: 1; }
.hero-stats span { font-size: 13px; opacity: .9; }
.hero-stats .dot { width: 1px; height: 22px; background: rgba(255, 255, 255, .32); padding: 0; }

/* ---------------- 首页主体 ---------------- */
.body { padding: 22px 16px 0; }
.section-title {
  margin: 0 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 1.2px;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mcard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 84px;
}
.mcard:active { transform: scale(.983); box-shadow: var(--shadow-sm); }
.mcard-icon {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 17px;
  display: grid; place-items: center;
}
.mcard-icon svg { width: 27px; height: 27px; }
.mcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mcard-text b { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.mcard-text em { font-style: normal; font-size: 13.5px; color: var(--text-3); }
.mcard-arrow { color: #C9D6CE; font-size: 24px; line-height: 1; padding-right: 2px; }

.page-tip {
  margin: 20px 6px 0;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ---------------- 通用顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 8px 0 4px;
  background: rgba(244, 247, 244, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 239, 233, .8);
  margin-bottom: 14px;
}
.topbar h1 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .5px;
}
.tb-btn {
  border: 0;
  background: transparent;
  height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-2);
}
.tb-btn:active { background: #E9F0EA; }
.tb-back svg { width: 22px; height: 22px; }
.tb-link {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tb-link:active { background: var(--mint); }
.tb-link svg { width: 17px; height: 17px; }
.hero-gear svg { width: 20px; height: 20px; }

/* ---------------- 表单 ---------------- */
.form-body { padding: 0 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 16px;
  margin-bottom: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}
.card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .5px;
}
.card-head .hint { font-size: 13px; color: var(--text-3); }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.card > .row-between:last-child { border-bottom: 0; }

.field-label { font-size: 15.5px; color: var(--text-2); font-weight: 500; flex: none; }
.req { color: var(--danger); margin-left: 2px; font-weight: 700; }

.time-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--mint-soft);
  border: 1px solid #DCEFDE;
  color: var(--green-dark);
}
.time-text {
  font-size: 16.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.pencil { width: 17px; height: 17px; color: var(--green); opacity: .95; display: grid; place-items: center; }
.pencil svg { width: 17px; height: 17px; }
.dt-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.inline-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 0;
  outline: none;
}
.inline-input::placeholder { color: #B9C6BE; font-weight: 400; }

.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label {
  display: block;
  font-size: 15.5px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 9px;
}

.finput, .fselect, .ftextarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #FAFCFA;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 17px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.ftextarea { min-height: 96px; resize: vertical; padding-top: 12px; }
.finput:focus, .fselect:focus, .ftextarea:focus {
  border-color: var(--green-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 187, 106, .14);
}
.finput::placeholder, .ftextarea::placeholder { color: #B9C6BE; }

.fselect {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%238CA396' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  min-height: 52px;
}
.fselect:invalid, .fselect option[value=""] { color: #B9C6BE; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line);
  background: #FAFCFA;
  color: var(--text-2);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 15.5px;
  line-height: 1.2;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  transition: all .13s;
}
.chip:active { transform: scale(.97); }
.chip.on {
  background: var(--mint);
  border-color: #9ED9A2;
  color: var(--green-deep);
  font-weight: 600;
}

.field-error .finput, .field-error .fselect, .field-error .ftextarea {
  border-color: #EBA391;
  background: #FFF8F6;
}

/* ---------------- 照片 ---------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 4px;
}
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #EEF3EF;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 30, 24, .55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.photo-add {
  aspect-ratio: 1 / 1;
  border: 1.5px dashed #BEDCC1;
  border-radius: var(--radius-sm);
  background: #F7FBF7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--green-dark);
  font-size: 13.5px;
  cursor: pointer;
}
.photo-add:active { background: var(--mint); }
.photo-add .cam svg { width: 26px; height: 26px; }
.photo-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  gap: 10px;
}
.album-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--mint-soft);
  border: 1px solid #DCEFDE;
}
.album-btn svg { width: 17px; height: 17px; }
.photo-tip { font-size: 12.5px; color: var(--text-3); }

/* ---------------- 底部操作栏 ---------------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actionbar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}
.btn {
  flex: 1;
  height: 56px;
  border-radius: 16px;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.978); }
.btn.primary {
  background: linear-gradient(135deg, #6BC46D, #55B25B);
  color: #fff;
  box-shadow: 0 8px 20px rgba(85, 178, 91, .3);
}
.btn.ghost {
  background: #fff;
  color: var(--green-dark);
  border: 1.5px solid #BDE0BF;
  box-shadow: none;
  flex: 0 0 38%;
}
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid #F0C9C0; }
.btn:disabled { opacity: .6; }
.has-actionbar .form-body { padding-bottom: calc(96px + var(--safe-bottom)); }

.form-note {
  margin: 2px 4px 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
  text-align: center;
  padding-bottom: 8px;
}

/* ---------------- 历史记录 ---------------- */
.history-body { padding: 0 16px; }
.day-group { margin-bottom: 18px; }
.day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 8px;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .8px;
}
.day-head .count { font-weight: 400; }
.hlist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.hitem:last-child { border-bottom: 0; }
.hitem:active { background: #F7FAF7; }
.hitem-main { flex: 1; min-width: 0; }
.hitem-title {
  font-size: 16.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hitem-meta { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.tag {
  flex: none;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: .5px;
}
.tag.draft { background: #F0F1F0; color: #8B978F; }
.tag.done { background: var(--mint); color: var(--green-deep); }

.empty {
  text-align: center;
  padding: 70px 24px;
  color: var(--text-3);
}
.empty .em-icon {
  width: 74px; height: 74px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  color: #C3D5C7;
}
.empty .em-icon svg { width: 34px; height: 34px; }
.empty p { margin: 0; font-size: 15px; }

/* ---------------- 详情 ---------------- */
.detail-body { padding: 0 16px; }
.detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 16px; margin-bottom: 14px; }
.detail-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { flex: none; width: 88px; color: var(--text-3); font-size: 15px; }
.detail-row .v { flex: 1; white-space: pre-wrap; word-break: break-word; }
.detail-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0 16px; }
.detail-photos .photo { cursor: zoom-in; }
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 12px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------------- 设置 ---------------- */
.settings-body { padding: 0 16px; }
.opt-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.opt-group:last-child { border-bottom: 0; }
.opt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.opt-head b { font-size: 15.5px; font-weight: 600; }
.opt-head span { font-size: 12.5px; color: var(--text-3); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-soft);
  border: 1px solid #DCEFDE;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 7px 8px 7px 13px;
  font-size: 14.5px;
}
.opt-chip button {
  border: 0;
  background: rgba(92, 184, 92, .16);
  color: var(--green-deep);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: grid; place-items: center;
}
.opt-add { display: flex; gap: 8px; }
.opt-add input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #FAFCFA;
  outline: none;
}
.opt-add input:focus { border-color: var(--green-2); background: #fff; }
.opt-add button {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 600;
}
.opt-add button:active { opacity: .8; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .s-label { font-size: 16px; }
.setting-row .s-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.setting-row input[type="text"] {
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 16px;
  outline: none;
  width: 130px;
}
.setting-btn {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 15px;
  padding: 6px 4px;
}
.setting-btn.red { color: var(--danger); }

/* ---------------- 弹窗 / Toast ---------------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 36, 29, .42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dialog {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 22px;
  padding: 24px 22px 18px;
  box-shadow: 0 20px 50px rgba(20, 40, 25, .2);
  animation: pop .2s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 600; letter-spacing: .3px; }
.dialog p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }
.dialog-actions .btn { height: 50px; font-size: 16.5px; flex: 1; }
.dialog-actions .btn.ghost { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translate(-50%, 12px);
  z-index: 200;
  background: rgba(31, 46, 37, .92);
  color: #fff;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 14px;
  max-width: 78vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 16, 12, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

/* ---------------- 大屏适配 ---------------- */
@media (min-width: 620px) {
  body { font-size: 17.5px; }
  .module-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mcard { min-height: 96px; }
  .hero { border-radius: 0 0 32px 32px; }
  .app { box-shadow: 0 0 60px rgba(40, 80, 50, .06); background: var(--bg); }
  .photo-grid, .detail-photos { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  body { background: #EDF2EE; }
  .app { margin: 0 auto; }
  .form-body, .history-body, .detail-body, .settings-body, .body { padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- 语音输入 ---------------- */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #9ED9A2;
  background: var(--mint);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform .12s;
}
.voice-btn:active { transform: scale(.96); }
.voice-btn svg { width: 19px; height: 19px; }
.voice-btn.rec {
  background: #FDEBE8;
  border-color: #EBA391;
  color: #D24B33;
  animation: voicePulse 1.2s ease-in-out infinite;
}
.voice-btn.no-support { opacity: .55; }
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 91, 69, .28); }
  50% { box-shadow: 0 0 0 8px rgba(224, 91, 69, 0); }
}
.voice-hint {
  font-size: 13.5px;
  color: var(--text-3);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 考勤点名 ---------------- */
.att-list { display: flex; flex-direction: column; }

.att-quick {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  margin-bottom: 2px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.quick-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 42px;
}
.quick-btn.ghost {
  background: #F1F5F1;
  color: var(--text-2);
}
.quick-btn:active { transform: scale(.96); }
.att-legend { font-size: 13px; color: var(--text-3); flex: 1 1 100%; line-height: 1.4; }

.att-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.att-row:last-child { border-bottom: 0; }
.att-main { display: flex; align-items: stretch; gap: 0; }

.att-name-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: #FAFCFA;
  color: var(--text);
  padding: 11px 12px 11px 15px;
  min-height: 50px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  transition: background .15s, transform .12s;
}
.att-name-btn:active { transform: scale(.99); }
.att-name-btn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name-btn .st { flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.att-name-btn.on.s-ok { background: var(--mint); border-color: #9ED9A2; color: var(--green-deep); }
.att-name-btn.on.s-ok .st { color: var(--green-dark); }
.att-name-btn.on.s-bad { background: #FDEBE8; border-color: #EBA391; color: #B8402A; }
.att-name-btn.on.s-bad .st { color: #D24B33; }
.att-name-btn.on.s-warn { background: #FDF2E7; border-color: #EFC491; color: #965E17; }
.att-name-btn.on.s-warn .st { color: #B57323; }
.att-name-btn.on.s-train { background: #F1EEFC; border-color: #C6BAEF; color: #5B4DA6; }
.att-name-btn.on.s-train .st { color: #6B5BB8; }
.att-name-btn.on.s-out { background: #E9F4FB; border-color: #9CC7E4; color: #255E89; }
.att-name-btn.on.s-out .st { color: #2E6E9E; }

.att-caret {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 0 14px 14px 0;
  background: #F7FAF7;
  color: var(--text-2);
  transition: background .15s;
}
.att-caret svg { width: 20px; height: 20px; transition: transform .18s; }
.att-caret.open { background: var(--mint); border-color: #9ED9A2; color: var(--green-deep); }
.att-caret.open svg { transform: rotate(180deg); }
.att-row.marked .att-caret { background: #fff; }

.att-panel {
  display: flex;
  gap: 8px;
  padding: 10px 0 2px;
}
.att-panel[hidden] { display: none; }
.att-opt {
  flex: 1;
  border: 1.5px solid var(--line);
  background: #FAFCFA;
  color: var(--text-2);
  border-radius: 999px;
  padding: 9px 4px;
  font-size: 15px;
  font-weight: 600;
  min-height: 42px;
}
.att-opt:active { transform: scale(.95); }
.att-opt.on.t-bad { background: #FDEBE8; border-color: #EBA391; color: #D24B33; }
.att-opt.on.t-warn { background: #FDF2E7; border-color: #EFC491; color: #B57323; }
.att-opt.on.t-train { background: #F1EEFC; border-color: #C6BAEF; color: #6B5BB8; }
.att-opt.on.t-out { background: #E9F4FB; border-color: #9CC7E4; color: #2E6E9E; }

.att-empty { text-align: center; padding: 26px 10px 22px; }
.att-empty .t { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.att-empty .sub { font-size: 14.5px; color: var(--text-2); margin: 0 0 18px; }

.att-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 0 2px;
}
.att-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-radius: 12px;
  padding: 9px 11px;
  background: #F5F8F5;
  font-size: 14.5px;
}
.att-detail-item .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-detail-item .s { flex-shrink: 0; font-size: 13px; font-weight: 700; }
.att-detail-item.t-ok { background: var(--mint); color: var(--green-deep); }
.att-detail-item.t-bad { background: #FDEBE8; color: #D24B33; }
.att-detail-item.t-warn { background: #FDF2E7; color: #B57323; }
.att-detail-item.t-train { background: #F1EEFC; color: #6B5BB8; }
.att-detail-item.t-out { background: #E9F4FB; color: #2E6E9E; }

/* ---------------- 检查内容图 ---------------- */
.checklist-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

/* ---------------- 学生管理分类选项卡 ---------------- */
.stu-tabs {
  display: flex;
  gap: 10px;
  padding: 3px 2px 13px;
}
.stu-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: #FAFCFA;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 13px 6px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.stu-tab:active { transform: scale(.97); }
.stu-tab.on {
  background: var(--green);
  border-color: var(--green-dark);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(60, 142, 70, .28);
}
.stu-note {
  margin: 10px 2px 0;
  font-size: 13.5px;
  color: #B57323;
  line-height: 1.5;
}
