/* 眉县猕猴桃 · 问答看板（与写字机完全不同的排版） */
:root {
  --leaf: #2f7a4b;
  --leaf-deep: #1f5a36;
  --fruit: #8fcf3a;
  --fruit-deep: #6aa61f;
  --cream: #f4f7ef;
  --ink: #1c2a1f;
  --muted: #5d7263;
  --panel: rgba(255, 255, 255, 0.88);
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "STKaiti", "KaiTi", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(143, 207, 58, 0.28), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(47, 122, 75, 0.22), transparent 40%),
    linear-gradient(165deg, #d7ebc8 0%, #b7d39a 42%, #7fad68 100%);
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 10vh minmax(0, 1fr) 30vh;
}

.safe-note {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(28, 42, 31, 0.28);
  padding-bottom: 2.2vh;
}

.board {
  width: min(720px, 92vw);
  margin: 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
  padding: 0 1vw;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--leaf-deep);
  margin-bottom: 6px;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--leaf-deep);
}

.hero p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 122, 75, 0.22);
  font-size: 12px;
  color: var(--leaf-deep);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e24a4a;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.qa {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 12px;
}

.col-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.ask-card,
.ans-card {
  height: calc(100% - 22px);
  min-height: 140px;
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ask-card {
  background: rgba(31, 90, 54, 0.92);
  color: #f4f7ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ask-nick {
  font-size: 13px;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

.ask-q {
  font-family: var(--display);
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.35;
  word-break: break-word;
}

.ans-card {
  background: var(--panel);
  border: 1px solid rgba(47, 122, 75, 0.14);
  box-shadow: 0 14px 28px rgba(31, 90, 54, 0.1);
}

.ans-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(143, 207, 58, 0.35);
  color: var(--leaf-deep);
  font-weight: 700;
}

.ans-body {
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}

.qa.flash .ask-card,
.qa.flash .ans-card {
  animation: pop 0.45s ease;
}

@keyframes pop {
  0% { transform: translateY(8px); opacity: 0.55; }
  100% { transform: translateY(0); opacity: 1; }
}

.keywords {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(47, 122, 75, 0.12);
  border-radius: 16px;
  padding: 10px 12px 12px;
}

.kw-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw-list button {
  border: 1px solid rgba(47, 122, 75, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--leaf-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: default;
  font-family: inherit;
}

.kw-list button.active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.queue-hint {
  min-height: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(28, 42, 31, 0.55);
}

@media (max-width: 560px), (max-height: 780px) {
  .qa { grid-template-columns: 1fr; }
  .ask-card, .ans-card { min-height: 96px; height: auto; }
}

@media (min-aspect-ratio: 1/1) {
  .stage { grid-template-rows: 8vh minmax(0, 1fr) 28vh; }
  .board { width: min(560px, 46vw); }
}
