/* ============================================================
   MathLingua · 题型自由选择大厅
   5 大板块 × 19 个知识点，全部开放、无锁定
   ============================================================ */

.hall-wrap { max-width: 1240px; margin: 0 auto; }

/* ============================ Hero ============================ */
.hero-band {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #e9ffd9 0%, #e3fbff 55%, #f4edff 100%);
  border: 2px solid #dcf0cd;
  box-shadow: 0 5px 0 #dcefd0;
  overflow: hidden;
}
.hero-band::after {
  content: "";
  position: absolute; right: -60px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-deep);
  font-size: 11.5px; font-weight: 900; letter-spacing: 1px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 0 #c9ebb2;
}
.hero-copy h2 {
  font-size: 27px; font-weight: 900; line-height: 1.35;
  color: #2c6b00; margin: 12px 0 8px;
}
.hero-copy p {
  font-size: 14px; font-weight: 700; line-height: 1.7;
  color: #5c7a4b;
}
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.hero-art { position: relative; flex: none; width: 170px; height: 150px; }
.hero-owl {
  position: absolute; inset: 0; margin: auto;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  font-size: 54px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow: 0 6px 0 #d7ead0;
  animation: owlFloat 3.4s ease-in-out infinite;
}
@keyframes owlFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.hero-spark {
  position: absolute;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.06);
  animation: sparkBob 3s ease-in-out infinite;
}
.hero-spark.s1 { top: 2px; left: 12px; animation-delay: 0.2s; }
.hero-spark.s2 { bottom: 12px; left: 0; animation-delay: 0.9s; }
.hero-spark.s3 { top: 16px; right: 0; animation-delay: 1.5s; }
@keyframes sparkBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

/* ============================ 筛选条 ============================ */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 22px 0 20px;
}

/* ============================ 板块 ============================ */
.hall-sections { display: flex; flex-direction: column; gap: 20px; }

.section-block {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 0 var(--line);
  padding: 20px;
}
.section-block.hidden { display: none; }

.section-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px dashed #f0f0f0;
}
.section-badge {
  flex: none;
  width: 50px; height: 50px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 25px; line-height: 1;
  background: var(--accent-wash);
  box-shadow: 0 3px 0 var(--accent-edge);
}
.section-meta { flex: 1; min-width: 0; }
.section-meta h2 {
  font-size: 17.5px; font-weight: 900; color: var(--accent-deep);
  line-height: 1.3;
}
.section-meta p {
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  margin-top: 3px;
}
.section-count {
  flex: none;
  font-size: 12px; font-weight: 900;
  color: var(--accent-deep);
  background: var(--accent-wash);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ============================ 知识点卡片 ============================ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
}

.skill-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 13px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease,
    background 0.15s ease, box-shadow 0.12s ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-edge);
  background: var(--accent-wash);
  box-shadow: 0 5px 0 var(--accent-edge);
}
.skill-card:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: none;
}
.skill-card:focus-visible {
  outline: 3px solid rgba(28, 176, 246, 0.5);
  outline-offset: 2px;
}

.skill-emoji {
  grid-row: 1 / span 2;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-size: 25px; line-height: 1;
  border-radius: 15px;
  background: var(--accent-wash);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.045);
  transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.skill-card:hover .skill-emoji { transform: scale(1.06) rotate(-4deg); }

.skill-main { min-width: 0; }
.skill-title {
  display: block;
  font-size: 15.5px; font-weight: 900; color: var(--text);
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.skill-desc {
  display: block;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.skill-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.skill-stars {
  display: inline-flex; gap: 1px;
  font-size: 12px; line-height: 1;
}
.skill-stars .st { filter: grayscale(1); opacity: 0.3; }
.skill-stars .st.on { filter: none; opacity: 1; }
.skill-go {
  font-size: 11.5px; font-weight: 900;
  color: var(--accent-deep);
  background: var(--accent-wash);
  padding: 3px 10px; border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.skill-card:hover .skill-go {
  background: var(--accent);
  color: #fff;
}

/* 板块配色 */
.green  { --accent: #58cc02; --accent-edge: #b7e59b; --accent-wash: #eefbe2; --accent-deep: #3f7d07; }
.blue   { --accent: #1cb0f6; --accent-edge: #a9dcf9; --accent-wash: #e8f7ff; --accent-deep: #0b6f9e; }
.yellow { --accent: #ffc800; --accent-edge: #f2d98c; --accent-wash: #fff9e3; --accent-deep: #8a6500; }
.purple { --accent: #ce82ff; --accent-edge: #dcbdf5; --accent-wash: #f8efff; --accent-deep: #7b3aae; }
.orange { --accent: #ff9600; --accent-edge: #f6cd97; --accent-wash: #fff3e4; --accent-deep: #9c5c00; }

/* ============================ 页脚提示 ============================ */
.hall-foot {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 4px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: #fbfbfb;
  border: 2px dashed var(--line);
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  line-height: 1.6;
}
.hall-foot span { font-size: 22px; }

/* ============================ 响应式 ============================ */
@media (max-width: 900px) {
  .hero-band { padding: 22px 22px; }
  .hero-copy h2 { font-size: 22px; }
  .hero-art { width: 130px; height: 120px; }
  .hero-owl { width: 84px; height: 84px; font-size: 42px; border-radius: 26px; }
  .hero-spark { width: 32px; height: 32px; font-size: 15px; border-radius: 11px; }
  .skill-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 680px) {
  .hero-band { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-art { display: none; }
  .hero-copy h2 { font-size: 20px; }
  .hero-actions .btn-3d { flex: 1; min-width: 150px; }
  .section-block { padding: 16px 14px; }
  .section-badge { width: 42px; height: 42px; font-size: 21px; border-radius: 13px; }
  .section-meta h2 { font-size: 16px; }
  .skill-grid { grid-template-columns: 1fr; }
}
