/* 天智 · 练习/对话模块样式 */
:root {
  --ink: #173a6e;
  --ink2: #12315f;
  --muted: #5a6b86;
  --blue: #2563ff;
  --orange: #ef8a2e;
  --green: #2aa86a;
  --gold: #ffb43d;
  --line: #dbe7f8;
  --shadow: 0 16px 38px rgba(34, 74, 136, 0.1);
  --shadow2: 0 10px 26px rgba(33, 70, 135, 0.08);
}

.wrap {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 8px 0 24px;
}

.hero {
  margin: 8px 0 18px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero.two {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 24px;
  align-items: center;
}

.hero .label {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff5dc;
  color: #8a6318;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  margin: 12px 0 10px;
  letter-spacing: -0.03em;
  color: var(--ink2);
  line-height: 1.08;
}

.hero .lead,
.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.85;
  color: var(--muted);
  font-weight: 650;
  max-width: 760px;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.principles span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 168, 106, 0.1);
  color: #1f8b5e;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(42, 168, 106, 0.18);
}

.section-label {
  margin: 8px 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #5a7396;
  letter-spacing: 0.04em;
}

.boards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.board {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  padding: 18px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.board:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.board.featured {
  grid-column: span 2;
  min-height: 118px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff9ef, #f3f8ff);
  border-color: rgba(255, 180, 61, 0.35);
}

.board.featured .ico {
  width: 64px;
  height: 64px;
  font-size: 34px;
}

.board.featured .copy {
  text-align: left;
}

.board.featured .name {
  font-size: 20px;
}

.board.featured .hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.board .ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.board .ico:not(:has(svg)) {
  font-size: 34px;
  display: grid;
  place-items: center;
}

.board .ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.board .name {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink2);
}

.crumb {
  margin: 0 0 12px;
  color: #507a68;
  font-weight: 850;
  font-size: 14px;
}

.crumb a {
  color: inherit;
  text-decoration: none;
}

.ttl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ttl .ico {
  font-size: 34px;
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.mode {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease;
}

.mode:hover {
  transform: translateY(-2px);
}

.mode.soon {
  opacity: 0.72;
  pointer-events: none;
}

.mode .badge {
  font-size: 28px;
}

.mode .name {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink2);
}

.mode .skill {
  font-size: 13px;
  font-weight: 800;
  color: #1f8b7b;
}

.mode .desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 650;
}

.mode .go {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
}

.tag-soon {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff5dc;
  color: #8a6318;
  font-size: 12px;
  font-weight: 900;
}

.backlink {
  display: inline-flex;
  margin: 0 0 12px;
  color: #507a68;
  font-weight: 850;
  text-decoration: none;
}

.panel {
  padding: clamp(22px, 3.5vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  margin: 18px 0;
}

.panel h2 {
  font-size: clamp(24px, 3.8vw, 34px);
  margin: 0 0 12px;
  color: #1f7f72;
}

.panel p {
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.95;
  color: #263a5d;
  font-weight: 620;
  margin: 0 0 12px;
}

.hero-img {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

.lvl {
  margin: 18px 0;
}

.lvl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lvl-head h2 {
  margin: 0;
  font-size: 22px;
  color: #1f7f72;
}

.stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.story {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow2);
}

.story .thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f7ff;
  display: grid;
  place-items: center;
}

.story .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story .thumb .ph {
  font-size: 28px;
}

.story .thumb.noimg .ph {
  display: block;
}

.st-title {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  color: var(--ink2);
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.letter-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

.letter-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.letter-top b {
  font-size: 28px;
}

.letter-top .play,
.word-list .word {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef4ff;
  color: #2563ff;
  font-weight: 800;
  cursor: pointer;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-list .hl {
  color: #2563ff;
  font-weight: 900;
}

.ipa,
.note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.quick {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quick a {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-weight: 850;
}

.quick small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 900px) {
  .boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board.featured {
    grid-column: span 2;
  }
  .hero.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1120px, calc(100vw - 22px));
  }
  .boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .board {
    min-height: 118px;
    padding: 14px 10px;
    border-radius: 20px;
  }
  .board.featured {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
  .board .name {
    font-size: 15px;
  }
}
