/* ============================================================
 * kp-qt-nav.css
 * 考点页面 · 题型分类导航组件样式
 * 中国传统风格（宣纸底色 / 朱砂墨色 / 简约典雅）
 * ============================================================ */

/* ── 题型分类区域 ── */
.qt-section {
  margin-bottom: 28px;
}

.qt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent, #b8860b);
}

.qt-section-title .icon {
  font-size: 1.3em;
}

.qt-section-title h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--accent2, #5c4033);
}

.qt-section-title .count {
  font-size: 0.8em;
  color: var(--muted, #8c7b5e);
  font-weight: 400;
  margin-left: 4px;
}

/* ── 题型卡片网格 ── */
.qt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ── 题型卡片 ── */
.qt-card {
  background: #fff;
  border: 1px solid var(--rule, #d9ceb8);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink, #2c2416);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.qt-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: var(--accent, #b8860b);
}

.qt-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.qt-card-header .qt-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #b8860b), #a68a2e);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  flex-shrink: 0;
}

.qt-card-header h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--accent2, #5c4033);
  flex: 1;
  line-height: 1.4;
}

.qt-card-header .qt-freq {
  font-size: 0.72em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.qt-freq.high {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.qt-freq.medium {
  background: rgba(184, 134, 11, 0.1);
  color: #b8860b;
}

.qt-freq.low {
  background: rgba(140, 123, 94, 0.1);
  color: #8c7b5e;
}

/* ── 题型卡片内容 ── */
.qt-card-body {
  flex: 1;
  margin-bottom: 12px;
}

.qt-card-body .qt-typical {
  font-size: 0.85em;
  color: var(--muted, #8c7b5e);
  line-height: 1.7;
  margin-bottom: 8px;
}

.qt-card-body .qt-typical .label {
  font-weight: 600;
  color: var(--accent2, #5c4033);
}

.qt-card-body .qt-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qt-card-body .qt-meta .qt-score {
  font-size: 0.78em;
  color: var(--muted, #8c7b5e);
  background: var(--bg2, #f5efe0);
  padding: 2px 10px;
  border-radius: 8px;
}

.qt-card-body .qt-meta .qt-steps {
  font-size: 0.78em;
  color: var(--muted, #8c7b5e);
  background: var(--bg2, #f5efe0);
  padding: 2px 10px;
  border-radius: 8px;
}

/* ── 题型卡片底部 ── */
.qt-card .qt-arrow {
  display: inline-block;
  margin-top: auto;
  font-size: 0.85em;
  color: var(--accent, #b8860b);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px dashed var(--rule, #d9ceb8);
}

.qt-card:hover .qt-arrow {
  color: var(--accent2, #5c4033);
}

/* ── 加载状态 ── */
.qt-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted, #8c7b5e);
  font-size: 16px;
}

.qt-loading .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #b8860b);
  margin: 0 4px;
  animation: qt-bounce 1.2s infinite ease-in-out;
}

.qt-loading .dot:nth-child(2) { animation-delay: 0.15s; }
.qt-loading .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes qt-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* ── 错误状态 ── */
.qt-error {
  text-align: center;
  padding: 48px 20px;
  color: var(--warn, #c0392b);
  font-size: 0.95em;
}

.qt-error .icon {
  font-size: 2.5em;
  margin-bottom: 8px;
}

/* ── 空状态 ── */
.qt-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted, #8c7b5e);
}

.qt-empty .icon {
  font-size: 2.5em;
  margin-bottom: 8px;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  .qt-grid {
    grid-template-columns: 1fr;
  }

  .qt-card {
    padding: 16px 18px;
  }

  .qt-card-header h3 {
    font-size: 0.95em;
  }
}
