/* ===========================================================
   独立页：怎么改进打气筒（/idea）
   结构样式复用 student.css（顶栏页签 / .card / .step-head /
   .group-grid / .submit-bar），这里只放这一页独有的部分
   =========================================================== */

body.idea-page {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

/* ---------- 改进方向卡片 ---------- */
.idea-card {
  border-color: rgba(11, 135, 199, 0.24);
  background: linear-gradient(180deg, #f3f9fe, #ffffff);
}

.idea-card .hint .hint-sub {
  display: block;
}

.tag-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  /* 有的方向名字长、会折成两行：同一行的两块必须一样高，否则看起来像排版错了 */
  align-items: stretch;
}

.tag {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  text-align: left;
  line-height: 1.35;
  height: 100%;
  transition: all 0.15s ease;
}

/* 勾选框跟第一行文字对齐（标签折成两行时不会跑到中间） */
.tag .box {
  margin-top: 1px;
}

.tag:active {
  transform: scale(0.97);
}

.tag .box {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(28, 46, 66, 0.28);
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: transparent;
  transition: all 0.15s ease;
}

.tag.on {
  border-color: rgba(11, 135, 199, 0.65);
  background: var(--brand-soft);
  color: #0a6b9d;
  box-shadow: 0 0 0 1px rgba(11, 135, 199, 0.35);
}

.tag.on .box {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* ---------- 自由填写 ---------- */
.idea-write {
  position: relative;
  margin-top: 10px;
}

.idea-write textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px 22px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  color: var(--txt);
  resize: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.idea-write textarea::placeholder {
  color: #a9b8c8;
}

.idea-write textarea:focus {
  border-color: rgba(11, 135, 199, 0.6);
  box-shadow: 0 0 0 3px rgba(11, 135, 199, 0.12);
}

.idea-write .counter {
  position: absolute;
  right: 11px;
  bottom: 7px;
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---------- 本组已提的建议 ---------- */
.mine-card {
  border-color: rgba(14, 154, 114, 0.22);
  background: linear-gradient(180deg, #f4fbf8, #ffffff);
}

.mine-list {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mine-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.mine-item .mhead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mine-item .mtag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0a6b9d;
  background: var(--brand-soft);
}

.mine-item .mtime {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.mine-item .mtext {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txt-soft);
}

/* ---------- 提交条 ---------- */
.idea-page #toast {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (min-width: 560px) {
  /* 6 个方向正好排两行、每行三块，不会出现最后一行只剩两个、右边空一块 */
  .tag-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tag {
    font-size: 13.5px;
  }
}
