/* ===== 提问首页 ===== */
.home-banner {
  background: linear-gradient(140deg, #12365c 0%, #0b2745 60%, #071a2e 100%);
  color: #fff;
  padding: 26px 0 58px;
  position: relative;
  overflow: hidden;
}
.home-banner::after {
  content: ''; position: absolute;
  width: 340px; height: 340px; right: -110px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 60, .28), rgba(120, 190, 60, 0) 70%);
}
.banner-inner { position: relative; z-index: 1; }
.banner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.banner-lock { display: flex; align-items: center; gap: 10px; }
.banner-lock .brand-mark { width: 34px; height: 34px; font-size: 14px; border-radius: 9px; }
.banner-lock .brand-name { font-size: 15px; letter-spacing: 2.4px; }.banner-user {
  font-size: 12.5px; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.banner-title { font-size: 24px; font-weight: 800; margin-top: 18px; line-height: 1.3; }
.banner-sub { font-size: 13px; opacity: .74; margin-top: 6px; letter-spacing: .4px; }
.banner-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.banner-chip {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
}

/* position+z-index：横幅是 relative，静态内容会被它盖住，这里把内容提到上层 */
.home-body { margin-top: -40px; padding-bottom: 60px; position: relative; z-index: 2; }

/* 提问框 */
.ask-card { padding: 18px; }
.ask-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ask-head h3 { font-size: 15.5px; }
.ask-note { font-size: 12px; color: var(--ink-3); }
.ask-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.counter { font-size: 12px; color: var(--ink-3); }
.counter b { color: var(--brand); font-weight: 700; }
.ask-actions { margin-top: 14px; display: flex; gap: 10px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--ink-2); }
.switch input { display: none; }
.switch .track {
  width: 40px; height: 22px; border-radius: 999px; background: #d7dfeb;
  position: relative; transition: .18s; flex: none;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: .18s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* Tabs */
.tabs {
  display: flex; gap: 6px; background: #fff; padding: 5px;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  margin: 18px 0 14px;
}
.tab {
  flex: 1; height: 36px; border: none; background: transparent; border-radius: 9px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: .16s;
}
.tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(11, 77, 162, .25); }
.tab .dot {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px;
  border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 11px; margin-left: 4px;
}
.tab.active .dot { background: rgba(255, 255, 255, .28); }

/* 列表标题（提问页只有「我的提问」一个列表，不再用分段的 tab） */
.list-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; }
.list-title { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.list-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 700;
}

/* 提问列表 */
.qlist { display: flex; flex-direction: column; gap: 12px; }
.qcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; box-shadow: var(--shadow-sm);
  animation: fadeUp .26s ease both;
}
.qcard.top { border-color: #ffd8bf; background: linear-gradient(180deg, #fffaf6 0%, #fff 60%); }
.qcard.mine { box-shadow: 0 0 0 2px rgba(11, 77, 162, .08) inset; }
.q-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.q-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #dce8fa, #c3d6f2); color: var(--brand-700);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.q-author { font-size: 13px; font-weight: 700; }
.q-time { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.q-content { font-size: 15px; line-height: 1.72; color: var(--ink); word-break: break-word; }
.q-answer {
  margin-top: 12px; background: #f2f7fd; border-left: 3px solid var(--brand);
  padding: 10px 12px; border-radius: 0 9px 9px 0; font-size: 13.5px; line-height: 1.7;
}
.q-answer b { color: var(--brand); }
.q-foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.link-btn {
  border: none; background: none; font-size: 12.5px; color: var(--ink-3);
  cursor: pointer; padding: 0; font-weight: 600;
}
.link-btn:hover { color: var(--danger); }

.home-foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 26px 0 10px; }
.home-foot a { margin: 0 6px; }

@media (max-width: 640px) {
  .banner-title { font-size: 20px; }
  .home-banner { padding: 20px 0 52px; }
}
