/* ============================================================
   问答「晴空问路」· 发布问题区（qa.css）
   只服务 qa_index / qa_detail 的提问框；不动 style.css。
   全站无阴影：层次一律 1px 细边线 + 半透明底。
   类名统一 qa- 前缀。
   ============================================================ */

/* —— 发布问题：一张安静的玻璃卡片 —— */
.thm-qa .qa-post.qa-ask {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
}

/* —— 方向胶囊：一行单选，窄屏自动换行 —— */
.thm-qa .qa-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.thm-qa .qa-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
/* 原生单选圈藏起来，视觉交给下面的胶囊文字 */
.thm-qa .qa-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.thm-qa .qa-chip-text {
  max-width: 168px; /* 方向名过长时省略号截断，全称在 title 属性里 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  transition: background .18s, border-color .18s, color .18s;
}
.thm-qa .qa-chip:hover .qa-chip-text {
  border-color: var(--brand-line);
  color: var(--brand-strong);
}
/* 选中态：品牌色实底 + 白字 */
.thm-qa .qa-chip input:checked + .qa-chip-text {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.thm-qa .qa-chip input:focus-visible + .qa-chip-text {
  outline: 2px solid var(--brand-line);
  outline-offset: 2px;
}

/* —— 正文框：写得舒服一点，第一句就是标题 —— */
.thm-qa .qa-ask-input {
  width: 100%;
  min-height: 152px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.75;
  resize: vertical;
}
.thm-qa .qa-ask-input:focus {
  outline: none;
  border-color: var(--brand-line);
  background: rgba(255, 255, 255, .95);
}

/* —— 底栏：左提示、右提交，按钮不换行 —— */
.thm-qa .qa-ask-foot { margin-top: 2px; }
.thm-qa .qa-ask-btn { white-space: nowrap; }

/* —— 窄屏：胶囊收窄、底栏竖排，不横向溢出 —— */
@media (max-width: 620px) {
  .thm-qa .qa-post.qa-ask { padding: 16px 14px 14px; }
  .thm-qa .qa-chip-text { max-width: 132px; padding: 5px 12px; }
  .thm-qa .qa-ask-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .thm-qa .qa-ask-btn { width: 100%; }
}
