/* ============================================================
   好奇生长园 · 视觉系统
   奶油白底 / 自然绿主色 / 探索蓝 + 问号黄点缀
   自然手账 · 探索卡片
   ============================================================ */

:root {
  --bg: #FBF6EC;
  --bg-2: #F4EDDD;
  --card: #FFFFFF;
  --card-2: #FEFCF6;
  --line: #EDE3D0;
  --line-2: #F3EBDC;

  --ink: #2C3830;
  --ink-2: #5A685E;
  --muted: #8B978D;

  --green: #55A06B;
  --green-d: #3B7A50;
  --green-l: #E9F3E6;
  --green-mid: #BFDDC3;

  --blue: #4B8FC4;
  --blue-l: #E7F1F8;
  --blue-d: #356F9C;

  --yellow: #EFBF4B;
  --yellow-d: #C99A26;
  --yellow-l: #FCF2D8;

  --soil: #C9A97E;
  --soil-2: #B08F63;
  --rose: #D98A7E;
  --rose-l: #FBEDEA;

  --r: 22px;
  --r-sm: 14px;
  --r-lg: 28px;
  --sh: 0 10px 26px -14px rgba(58, 88, 66, .38), 0 2px 6px -3px rgba(58, 88, 66, .10);
  --sh-sm: 0 4px 12px -6px rgba(58, 88, 66, .28);
  --sh-btn: 0 8px 18px -8px rgba(60, 122, 80, .55);

  --f: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-num: "Avenir Next", "Nunito", "Quicksand", var(--f);
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(191, 221, 195, .34), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(252, 242, 216, .7), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(231, 241, 248, .55), transparent 46%);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* 手账纸纹：极淡的方格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201, 169, 126, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 126, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 25%, transparent 78%);
}

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--green-d); }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #DFD4BE; border-radius: 9px; }

/* ---------------- 外框 ---------------- */
.app {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 108px;
  min-height: 100vh;
}

@media (min-width: 720px) {
  body { padding: 22px 0; }
  .app {
    max-width: 620px;
    background: var(--card-2);
    border-radius: 34px;
    box-shadow: 0 30px 70px -40px rgba(58, 88, 66, .5), 0 2px 0 #fff inset;
    border: 1px solid var(--line);
    padding-left: 22px;
    padding-right: 22px;
    min-height: calc(100vh - 44px);
    overflow: hidden;
  }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 10px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(251, 246, 236, 0));
}
@media (min-width: 720px) {
  .topbar { background: linear-gradient(180deg, var(--card-2) 62%, rgba(254, 252, 246, 0)); }
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--green-l), #D8EBD4);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--green-mid);
}
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; line-height: 1.2; }
.topbar .spacer { flex: 1; }

.chip-me {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 46vw;
}
.chip-me b { font-weight: 600; color: var(--ink); }
.chip-me .av { font-size: 14px; line-height: 1; }
.chip-me .cls {
  font-family: var(--f-num);
  background: var(--green-l); color: var(--green-d);
  border-radius: 999px; padding: 1px 6px; font-size: 11px; font-weight: 700;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 16px;
  position: relative;
}
.card.tight { padding: 13px; }
.card.flat { box-shadow: var(--sh-sm); }
.card + .card, .card + .sec, .sec + .card { margin-top: 14px; }

.sec { margin-top: 20px; }
.sec-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 2px 10px;
}
.sec-head h2 {
  font-size: 15.5px; margin: 0; font-weight: 700; letter-spacing: .4px;
  display: flex; align-items: center; gap: 7px;
}
.sec-head h2 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sec-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.sec-head .more:active { color: var(--green-d); }

/* 便签纸角 */
.tape {
  position: absolute; top: -8px; left: 22px;
  width: 62px; height: 17px;
  background: rgba(239, 191, 75, .42);
  border-radius: 2px;
  transform: rotate(-2.4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.tape.blue { background: rgba(75, 143, 196, .28); }
.tape.green { background: rgba(85, 160, 107, .3); }

/* ---------------- 首页：小苗区 ---------------- */
.garden {
  background:
    radial-gradient(circle at 78% 18%, rgba(252, 242, 216, .95), transparent 55%),
    linear-gradient(168deg, #F4FAF0 0%, #EAF4E5 55%, #E4F0DD 100%);
  border: 1px solid #DCEBD6;
  overflow: hidden;
}
.garden::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(201, 169, 126, .35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(176, 143, 99, .18) 0 2px, transparent 2px 9px);
  opacity: .6;
  pointer-events: none;
}
.garden-top { display: flex; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.garden-hello { font-size: 13px; color: var(--green-d); letter-spacing: .6px; }
.garden-title { font-size: 20px; font-weight: 800; letter-spacing: .6px; margin: 2px 0 4px; }
.garden-title em { font-style: normal; color: var(--green-d); }
.garden-desc { font-size: 12.5px; color: #6C7F6F; line-height: 1.55; max-width: 78%; }

.plant-stage { flex: none; width: 92px; margin: -6px -4px 0 0; }
.plant-stage svg { width: 100%; height: auto; overflow: visible; }
.sway { transform-origin: 50% 100%; animation: sway 5.5s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.8deg); }
}

.garden-meta {
  position: relative; z-index: 1;
  display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap;
}
.mini-stat {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #DDEBD7;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 12px; color: var(--ink-2);
  backdrop-filter: blur(4px);
}
.mini-stat b { font-family: var(--f-num); font-size: 13.5px; color: var(--green-d); }
.mini-stat .ic { font-size: 12px; }

/* 一滴水进度 */
.drops { display: flex; gap: 4px; margin-top: 10px; position: relative; z-index: 1; }
.drops i {
  width: 15px; height: 15px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #DCE9D6;
  box-shadow: inset 0 0 0 1px #CEE0C6;
}
.drops i.on { background: linear-gradient(150deg, #9BD3B4, #55A06B); box-shadow: inset 0 0 0 1px #4C9463; }

/* ---------------- 任务卡（种田格） ---------------- */
.task-row { display: grid; gap: 11px; }
.task-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
  text-align: left; width: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative; overflow: hidden;
}
.task-tile:active { transform: scale(.985); }
.task-tile .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--green-l);
  box-shadow: inset 0 0 0 1px #D9EAD3;
}
.task-tile.k-plant .ic { background: var(--blue-l); box-shadow: inset 0 0 0 1px #D3E4F0; }
.task-tile.k-free .ic { background: var(--yellow-l); box-shadow: inset 0 0 0 1px #F3E2B8; }
.task-tile .txt { min-width: 0; flex: 1; }
.task-tile .t { font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.task-tile .s { font-size: 11.8px; color: var(--muted); margin-top: 2px; }
.task-tile .go {
  flex: none; font-size: 12px; font-weight: 700; color: var(--green-d);
  background: var(--green-l); border-radius: 999px; padding: 6px 11px;
}
.task-tile .go.done { color: #fff; background: var(--green); }
.task-tile .done-flag {
  position: absolute; right: 0; top: 0;
  font-size: 10px; color: #fff; background: var(--green);
  padding: 2px 8px; border-bottom-left-radius: 10px;
}

/* ---------------- 观察文件夹（归档卡片） ---------------- */
.folder-grid { display: grid; gap: 11px; }
.folder-card {
  display: block; width: 100%; text-align: left;
  padding: 13px 14px 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative;
}
.folder-card::before {
  /* 文件夹的「耳朵」 */
  content: ""; position: absolute; left: 16px; top: -1px;
  width: 54px; height: 5px; border-radius: 0 0 6px 6px;
  background: var(--green-mid);
}
.folder-card:active { transform: scale(.985); }
.folder-card.off { background: var(--card-2); box-shadow: none; opacity: .72; }
.folder-card.off::before { background: var(--line); }
.f-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.f-ic {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--green-l); box-shadow: inset 0 0 0 1px #D9EAD3;
}
.f-tt { min-width: 0; flex: 1; }
.f-tt b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.f-tt span { display: block; font-size: 11.6px; color: var(--muted); margin-top: 1px; }
.f-count {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--green-d);
  background: var(--green-l); border-radius: 999px; padding: 4px 10px;
}
.f-spark { margin: 9px 0 2px; height: 34px; }
.spark { width: 100%; height: 100%; display: block; }
.f-stat { margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 4px; }
.f-stat .up { color: var(--green-d); }
.f-stat .dn { color: var(--rose); }
.f-foot {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 11.4px; color: var(--muted);
}
.f-foot .open { margin-left: auto; color: var(--green-d); font-weight: 700; }

/* 文件夹里的连续翻阅 */
.f-prog { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; flex-wrap: wrap; }
.f-prog .p { font-size: 12.5px; color: var(--ink-2); }
.f-prog .p b { font-family: var(--f-num); font-size: 15px; color: var(--green-d); }
.f-photo {
  width: 100%; border-radius: 18px; border: 1px solid var(--line);
  margin-bottom: 11px; max-height: 340px; object-fit: cover; background: var(--bg-2);
}
.f-text { font-size: 15px; line-height: 1.72; margin: 0 0 9px; word-break: break-word; }
.f-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.f-chart {
  margin: 12px 0 4px; padding: 10px 12px 6px;
  background: #FAF7EF; border: 1px solid var(--line); border-radius: 14px;
}
.f-chart-t { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
.f-chart .spark { height: 60px; }
.f-navs { display: flex; gap: 9px; margin-top: 13px; }
.f-navs .btn { flex: 1; }
.f-navs .btn[disabled] { opacity: .38; }
.f-sum { margin-top: 11px; font-size: 11.8px; color: var(--muted); text-align: center; }

/* 跨班猜想的班级角标 */
.guesses li .gc {
  font-style: normal; font-size: 9.6px; font-weight: 700;
  color: var(--blue-d); background: var(--blue-l);
  border-radius: 999px; padding: 1px 5px; margin: 0 3px;
  vertical-align: 1px;
}

/* ---------------- 问题卡 ---------------- */
.q-card { padding: 14px 14px 10px; }
.q-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.av-badge {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  background: var(--green-l); flex: none;
  box-shadow: inset 0 0 0 1px #DBEAD5;
}
.q-who { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.q-when { font-size: 11px; color: var(--muted); margin-left: auto; }
.q-text {
  font-size: 15px; line-height: 1.62; letter-spacing: .2px;
  margin: 0 0 9px; word-break: break-word;
}
.q-text .qm {
  color: var(--yellow-d); font-weight: 800; font-family: var(--f-num);
  margin-right: 2px;
}
.q-photo {
  width: 100%; border-radius: 14px; margin: 2px 0 9px;
  max-height: 300px; object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.q-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.tag {
  font-size: 10.5px; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag.gold { background: var(--yellow-l); color: #9A7415; border-color: #F1E0B2; }
.tag.blue { background: var(--blue-l); color: var(--blue-d); border-color: #D5E5F1; }
.tag.green { background: var(--green-l); color: var(--green-d); border-color: #D6E8D1; }
.tag.rose { background: var(--rose-l); color: #A65E52; border-color: #F2DAD5; }
.tag.pend { background: #F4F1E9; color: #9A8F76; border-color: #E9E1CF; }

.q-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 9px; border-top: 1px dashed var(--line);
}
.q-act {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-2);
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.q-act:active { transform: scale(.94); }
.q-act b { font-family: var(--f-num); font-size: 13px; }
.q-act.voted { background: var(--yellow-l); color: #9A7415; border-color: #F0DFB0; }
.q-act.voted b { color: #9A7415; }
.q-act.ghost { background: transparent; border-color: var(--line); }
.q-foot .r { margin-left: auto; }

.q-note {
  margin: 8px 0 0; padding: 8px 11px;
  background: var(--green-l); border-radius: 12px;
  font-size: 12px; color: var(--green-d); line-height: 1.5;
  border-left: 3px solid var(--green-mid);
}
.q-note.blue { background: var(--blue-l); color: var(--blue-d); border-left-color: #B7D3E7; }

/* 猜想列表 */
.guesses { margin: 8px 0 0; padding: 0; list-style: none; }
.guesses li {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  padding: 7px 10px; border-radius: 12px;
  background: #FAF7EF;
  margin-bottom: 5px;
}
.guesses li .n { font-weight: 700; color: var(--ink); flex: none; }
.guesses li .pend { font-size: 10.5px; color: #A99669; flex: none; }

/* 精选 */
.q-card.featured { border-color: #F0DEAF; background: linear-gradient(180deg, #FFFDF4, #fff 40%); }
.q-card.featured::before {
  content: "本周好问题";
  position: absolute; right: 12px; top: -9px;
  font-size: 10px; letter-spacing: 1px; color: #8A6A12;
  background: var(--yellow-l); border: 1px solid #F0DEAF;
  padding: 2px 8px; border-radius: 999px;
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 13px; }
.field > label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px; letter-spacing: .3px;
}
.field > label .u { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.inp, textarea.inp, select.inp {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #FDFBF6;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.inp:focus {
  border-color: var(--green-mid);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(85, 160, 107, .13);
}
textarea.inp { resize: vertical; min-height: 84px; }
select.inp {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%238B978D' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.inp-num { font-family: var(--f-num); font-size: 17px; font-weight: 600; letter-spacing: .5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: .6px;
  box-shadow: var(--sh-btn);
  transition: transform .15s ease, filter .15s;
  border: 1px solid rgba(0, 0, 0, .04);
}
.btn:active { transform: translateY(1px) scale(.985); filter: brightness(.96); }
.btn.block { width: 100%; }
.btn.ghost {
  background: var(--card); color: var(--green-d);
  border: 1.5px solid var(--green-mid); box-shadow: none;
}
.btn.blue { background: var(--blue); box-shadow: 0 8px 18px -8px rgba(75, 143, 196, .6); }
.btn.sm { padding: 8px 13px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 9px; }
.btn-row .btn { flex: 1; }

/* 分段选择（班级） */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg-grid button {
  padding: 11px 0; border-radius: 13px;
  background: #FDFBF6; border: 1px solid var(--line);
  font-family: var(--f-num); font-size: 15px; font-weight: 700; color: var(--ink-2);
  letter-spacing: 1px; transition: all .15s;
}
.seg-grid button.on {
  background: var(--green); color: #fff; border-color: var(--green-d);
  box-shadow: 0 6px 14px -7px rgba(60, 122, 80, .8);
}
.seg-grid button:active { transform: scale(.96); }

/* 头像选择 */
.av-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.av-grid button {
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 20px; display: grid; place-items: center;
  background: #FDFBF6; border: 1.5px solid var(--line);
}
.av-grid button.on { border-color: var(--green); background: var(--green-l); box-shadow: 0 0 0 3px rgba(85, 160, 107, .15); }

/* 选项胶囊 */
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills button {
  padding: 7px 12px; border-radius: 999px;
  background: #FDFBF6; border: 1px solid var(--line);
  font-size: 12.8px; color: var(--ink-2);
}
.pills button.on { background: var(--green-l); border-color: var(--green-mid); color: var(--green-d); font-weight: 600; }
.pills button.on.blue { background: var(--blue-l); border-color: #C9DFEE; color: var(--blue-d); }

/* 引导句式抽屉 */
.stem-list { display: grid; gap: 9px; }
.stem {
  text-align: left; width: 100%;
  padding: 12px 13px; border-radius: 16px;
  background: var(--yellow-l); border: 1px solid #F1E1B5;
  color: #6E5510;
}
.stem .lb {
  font-size: 10.5px; letter-spacing: 1px; color: #A0801F;
  display: inline-block; background: #fff8e6; border-radius: 999px; padding: 1px 8px; margin-bottom: 5px;
}
.stem .tx { font-size: 13.5px; line-height: 1.6; }
.stem .tx u { text-decoration: none; border-bottom: 1.5px dashed #D9B44F; padding: 0 2px; }
.stem .hint { font-size: 11px; color: #A0801F; margin-top: 4px; opacity: .85; }

/* 照片上传 */
.photo-add {
  width: 100%; height: 132px;
  border: 1.5px dashed #DCCFB6; border-radius: 18px;
  background: #FDFAF2;
  display: grid; place-items: center;
  color: var(--muted); font-size: 12.5px; gap: 4px;
  position: relative; overflow: hidden;
}
.photo-add:active { background: #F8F3E6; }
.photo-add.has { border-style: solid; border-color: var(--line); padding: 0; }
.photo-add img { width: 100%; height: 100%; object-fit: cover; }
.photo-add .del {
  position: absolute; right: 7px; top: 7px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .48); color: #fff; font-size: 14px;
  display: grid; place-items: center;
}

/* ---------------- 时间轴 ---------------- */
.tl { position: relative; padding-left: 26px; }
.tl::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, #DDE9D6 0 5px, transparent 5px 10px);
}
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--green-mid);
}
.tl-item.hot::before { border-color: var(--yellow); background: var(--yellow); }
.tl-item.pend::before { border-color: #D8CFBA; }
.tl-date {
  font-family: var(--f-num); font-size: 11.5px; color: var(--muted);
  letter-spacing: .8px; margin-bottom: 4px;
}
.tl-body { font-size: 14px; line-height: 1.6; }
.tl-body .kv { font-size: 12.5px; color: var(--ink-2); }
.tl-body .kv span { color: var(--green-d); font-weight: 600; }
.tl-photo { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-top: 7px; }

/* ---------------- 观察墙（田格） ---------------- */
.wall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 520px) { .wall { grid-template-columns: repeat(3, 1fr); } }
.plot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-align: left;
  display: flex; flex-direction: column;
}
.plot .img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background:
    linear-gradient(160deg, #F2F8EC, #E3EFDC);
  position: relative;
}
.plot .img.noimg {
  display: grid; place-items: center; font-size: 30px; color: #A9C4A4;
}
.plot .soil {
  height: 26px; background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, var(--soil), var(--soil-2));
}
.plot .info {
  padding: 8px 10px 9px;
  font-size: 11.8px; color: var(--ink-2); line-height: 1.45;
}
.plot .info .nm { font-weight: 700; color: var(--ink); font-size: 12px; }
.plot .info .dt { color: var(--muted); font-family: var(--f-num); font-size: 10.5px; }
.plot .badge-pend {
  position: absolute; left: 8px; top: 8px;
  font-size: 10px; background: rgba(255, 255, 255, .92); color: #9A8F76;
  padding: 1px 7px; border-radius: 999px;
}
.plot.hl { outline: 2px solid var(--yellow); outline-offset: -2px; }

/* 空态 */
.empty {
  text-align: center; padding: 34px 18px; color: var(--muted);
  font-size: 13px; line-height: 1.7;
}
.empty .em { font-size: 30px; display: block; margin-bottom: 8px; opacity: .8; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 0 10px calc(8px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.tabbar-inner {
  pointer-events: auto;
  width: 100%; max-width: 600px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 -4px 24px -12px rgba(58, 88, 66, .35), var(--sh);
  display: flex; padding: 7px 6px;
  margin-bottom: 2px;
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 2px 6px; border-radius: 16px;
  color: var(--muted); font-size: 10.5px; letter-spacing: .4px;
  transition: color .15s, background .15s;
}
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button.on { color: var(--green-d); background: var(--green-l); font-weight: 700; }
.tabbar button.on svg { stroke: var(--green-d); }

/* 提问悬浮球 */
.fab {
  position: fixed; z-index: 45;
  right: max(18px, calc(50vw - 300px + 18px)); bottom: 96px;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(150deg, #F7D066, var(--yellow));
  color: #6E5510;
  font-size: 27px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(201, 154, 38, .7), inset 0 -2px 0 rgba(0, 0, 0, .07);
  font-family: var(--f-num);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.fab:active { transform: scale(.92) rotate(-8deg); }
@media (min-width: 720px) { .fab { right: calc(50vw - 300px + 18px); bottom: 108px; } }

/* ---------------- 遮罩 / 弹层 ---------------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(44, 56, 48, .34);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 600px;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto;
  animation: slideUp .26s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .3);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 2px 12px;
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.sheet-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: .5px; }
.sheet-head .x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%;
  background: #EFE8D8; color: var(--ink-2); font-size: 16px;
  display: grid; place-items: center;
}
.sheet-grab {
  width: 40px; height: 4px; border-radius: 4px; background: #E2D8C4;
  margin: 4px auto 6px;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 118px; z-index: 90;
  transform: translateX(-50%) translateY(14px);
  background: #2F3B33; color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13px; letter-spacing: .3px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: all .26s cubic-bezier(.2, .9, .3, 1);
  max-width: 84vw; text-align: center; line-height: 1.45;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.good { background: linear-gradient(140deg, #4C9463, #3B7A50); }

/* 加载 */
.loading { text-align: center; padding: 60px 0; color: var(--muted); font-size: 13px; }
.loading .sp {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 2.5px solid #E3DCCB; border-top-color: var(--green);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 登录页 ---------------- */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 26px 0 44px; }
.login-hero { text-align: center; margin-bottom: 20px; }
.login-hero .logo {
  width: 96px; height: 96px; margin: 0 auto 12px;
}
.login-hero h1 { font-size: 25px; margin: 0 0 5px; letter-spacing: 2px; font-weight: 800; }
.login-hero p { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }

/* ---------------- 教师端 ---------------- */
.t-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 60px; }
.t-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 0 12px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(251, 246, 236, 0));
}
.t-top h1 { font-size: 17px; margin: 0; letter-spacing: 1px; }
.t-top .sub { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.t-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.t-tabs button {
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .15s;
}
.t-tabs button.on { background: var(--green); color: #fff; border-color: var(--green-d); font-weight: 700; }
.t-tabs button .n {
  display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 4px;
  background: rgba(217, 138, 126, .9); color: #fff; border-radius: 999px;
  font-size: 10.5px; line-height: 16px; font-family: var(--f-num);
}
.t-tabs button.on .n { background: rgba(255, 255, 255, .3); }

.t-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px; box-shadow: var(--sh-sm); }
.kpi .lb { font-size: 11.5px; color: var(--muted); letter-spacing: .8px; }
.kpi .v { font-family: var(--f-num); font-size: 25px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.kpi .v.sm { font-size: 19px; }
.kpi.gold .v { color: var(--yellow-d); }
.kpi.green .v { color: var(--green-d); }
.kpi.blue .v { color: var(--blue-d); }
.kpi.rose .v { color: #A65E52; }

.t-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 13px; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 9px;
}
.t-item .meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.t-item .body { font-size: 14px; line-height: 1.6; }
.t-item .pub { font-size: 12.5px; color: var(--ink-2); }
.t-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.t-acts button {
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); background: #FDFBF6; color: var(--ink-2);
}
.t-acts button.ok { background: var(--green); color: #fff; border-color: var(--green-d); }
.t-acts button.star { background: var(--yellow-l); color: #8A6A12; border-color: #F0DEAF; }
.t-acts button.no { background: var(--rose-l); color: #A65E52; border-color: #F2DAD5; }
.t-acts button:active { transform: scale(.96); }

.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th, .t-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line-2); }
.t-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.t-table td.n { font-family: var(--f-num); font-weight: 600; }
.t-table tr:last-child td { border-bottom: 0; }
.bar { height: 6px; border-radius: 6px; background: #EDE6D5; overflow: hidden; min-width: 50px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #8AC49B, var(--green)); border-radius: 6px; }

.t-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.t-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.t-field-line { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.t-field-line .inp { padding: 8px 10px; font-size: 13px; }
.t-field-line .x { width: 34px; height: 34px; border-radius: 10px; background: var(--rose-l); color: #A65E52; font-size: 15px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.switch input { display: none; }
.switch .track {
  width: 42px; height: 24px; border-radius: 999px; background: #E2DBC9;
  position: relative; transition: background .18s;
}
.switch .track::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* 抽屉式表格滚动 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 打印 */
@media print {
  .tabbar, .fab, .t-tabs, .topbar { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
