.bch-topic .gt-nav,
.bch-topic-layout .gt-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bch-lab {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.bch-select-label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.bch-select-label select {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  padding: 0 10px;
  color: #0f172a;
  font-weight: 900;
  background: #fff;
}

.bch-model-visual,
.bch-exp-visual {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.055) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.055) 0 1px, transparent 1px 30px);
  overflow: hidden;
}

.bch-exp-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 16px;
}

.bch-exp-story {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(190, 202, 222, 0.82);
  border-radius: 16px;
  background: #fff;
}

.bch-exp-story span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 950;
}

.bch-exp-story strong {
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.24;
}

.bch-exp-story p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.bch-exp-board {
  display: grid;
  gap: 12px;
}

.bch-case-grid {
  grid-template-columns: repeat(3, minmax(270px, 1fr));
}

.bch-case {
  display: grid;
  gap: 12px;
  min-height: 560px;
  padding: 14px;
  border: 1px solid rgba(190, 202, 222, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.05);
}

.bch-case-head {
  display: grid;
  gap: 4px;
}

.bch-case-head span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 950;
}

.bch-case-head strong {
  color: #0f172a;
  font-size: 1.14rem;
  line-height: 1.2;
}

.bch-case p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.bch-case-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bch-case-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #334155;
  font-weight: 900;
}

.bch-case-controls input {
  width: 100%;
}

.bch-case-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(240, 253, 250, 0.88)),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 24px);
  overflow: hidden;
}

.bch-case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bch-case-metrics span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.74rem;
  font-weight: 900;
}

.bch-case-metrics b {
  color: #0f172a;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.bch-case-result {
  min-height: 78px;
  padding: 12px;
  border-radius: 14px;
  color: #254155;
  background: rgba(236, 253, 245, 0.9);
  font-weight: 850;
  line-height: 1.45;
}

.bch-scene-object {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 285px);
  min-height: 210px;
}

.bch-scene-title {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 8;
  max-width: 92%;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.bch-scene-decor {
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
}

.bch-scene-decor i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(15, 23, 42, 0.16);
  background: #bfdbfe;
}

.bch-scene-decor i:nth-child(1) {
  left: 8px;
  top: 12px;
}

.bch-scene-decor i:nth-child(2) {
  right: 12px;
  top: 18px;
}

.bch-scene-decor i:nth-child(3) {
  left: 18px;
  bottom: 26px;
}

.bch-scene-decor i:nth-child(4) {
  right: 22px;
  bottom: 30px;
}

.bch-chart,
.bch-exp-svg {
  position: relative;
  z-index: 3;
  width: min(100%, 340px);
  min-height: 210px;
}

.bch-chart text,
.bch-exp-svg text {
  fill: #334155;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.bch-chart .caption,
.bch-exp-svg .caption {
  text-anchor: start;
  font-size: 13px;
  fill: #0f172a;
}

.axis {
  stroke: #475569;
  stroke-width: 3;
  stroke-linecap: round;
}

.bar {
  stroke: rgba(15, 23, 42, 0.18);
  stroke-width: 2;
}

.bar-0,
.slice-0 {
  fill: #38bdf8;
}

.bar-1,
.slice-1 {
  fill: #f97316;
}

.bar-2,
.slice-2 {
  fill: #22c55e;
}

.bar-3,
.slice-3 {
  fill: #a78bfa;
}

.line-path {
  fill: none;
  stroke: #2563eb;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bch-exp-svg .line-path {
  opacity: 0.25;
}

.bch-exp-svg .line-path.is-on {
  opacity: 1;
}

.bch-chart circle,
.bch-exp-svg circle {
  fill: #f97316;
  stroke: #fff;
  stroke-width: 3;
}

.is-focus .bar,
.slice.is-focus,
.is-focus circle {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
  stroke: #0f172a;
  stroke-width: 3;
}

.bch-pie-wrap,
.bch-exp-pie {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(90px, 0.7fr);
  gap: 8px;
  align-items: center;
  width: min(100%, 330px);
}

.pie-hole {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 2;
}

.bch-pie-legend,
.bch-exp-legend {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
}

.slice-key {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.slice-key i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.key-0 i {
  background: #38bdf8;
}

.key-1 i {
  background: #f97316;
}

.key-2 i {
  background: #22c55e;
}

.key-3 i {
  background: #a78bfa;
}

.bch-object-fruit {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.8), rgba(220, 252, 231, 0.75));
}

.bch-decor-fruit .apple {
  border-radius: 50% 50% 46% 46%;
  background: #ef4444;
}

.bch-decor-fruit .banana {
  border-radius: 70% 10% 70% 10%;
  background: #facc15;
  transform: rotate(-25deg);
}

.bch-decor-fruit .orange {
  border-radius: 50%;
  background: #fb923c;
}

.bch-decor-fruit .grape {
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 10px 6px 0 #8b5cf6, 2px 14px 0 #8b5cf6;
}

.bch-object-lunch {
  background: linear-gradient(#fef3c7 0 58%, #d1fae5 58%);
  border-radius: 22px;
}

.bch-decor-lunch i {
  border-radius: 8px 8px 18px 18px;
  background: #fff7ed;
}

.bch-decor-lunch .rice {
  box-shadow: inset 0 -10px 0 #f8fafc;
}

.bch-decor-lunch .noodle {
  background: repeating-linear-gradient(90deg, #fde68a 0 4px, #f97316 4px 7px);
}

.bch-decor-lunch .sandwich {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fbbf24;
}

.bch-decor-lunch .salad {
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #22c55e 0 8px, #86efac 9px);
}

.bch-object-library {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.28) 0 4px, transparent 4px),
    linear-gradient(#f8fafc 0 32%, #cbd5e1 32% 36%, #f8fafc 36% 68%, #cbd5e1 68% 72%, #f8fafc 72%);
  border: 5px solid #92400e;
  border-radius: 14px;
}

.bch-decor-library i {
  width: 22px;
  height: 38px;
  border-radius: 4px;
  background: #3b82f6;
}

.bch-decor-library .science {
  background: #22c55e;
}

.bch-decor-library .comic {
  background: #f97316;
}

.bch-decor-library .mag {
  background: #a78bfa;
}

.bch-object-recycle {
  background: linear-gradient(#ecfeff, #f0fdf4);
  border-radius: 20px;
}

.bch-decor-recycle i {
  width: 34px;
  height: 42px;
  border-radius: 6px 6px 12px 12px;
  background: #22c55e;
}

.bch-decor-recycle .plastic {
  background: #38bdf8;
}

.bch-decor-recycle .metal {
  background: #94a3b8;
}

.bch-decor-recycle .glass {
  background: #10b981;
}

.bch-object-weather {
  background: linear-gradient(#dbeafe 0 62%, #fef3c7 62%);
  border-radius: 22px;
}

.bch-decor-weather .sun {
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.24);
}

.bch-decor-weather .cloud {
  width: 48px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: -14px 8px 0 #f8fafc, 12px 7px 0 #f8fafc;
}

.bch-decor-weather .thermo {
  width: 14px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(#e0f2fe 0 40%, #ef4444 40%);
}

.bch-object-reading {
  background: linear-gradient(135deg, #fff7ed, #e0f2fe);
  border-radius: 18px;
}

.bch-decor-reading .book {
  width: 50px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #38bdf8 50%, #f97316 50%);
}

.bch-decor-reading .lamp {
  clip-path: polygon(30% 0, 70% 0, 100% 70%, 0 70%);
  background: #facc15;
}

.bch-decor-reading .pencil {
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316 0 75%, #334155 75%);
  transform: rotate(-24deg);
}

.bch-object-plant {
  background: linear-gradient(#dcfce7 0 68%, #a7f3d0 68%);
  border-radius: 22px;
}

.bch-decor-plant .sprout,
.bch-decor-plant .leaf {
  border-radius: 80% 8% 80% 8%;
  background: #22c55e;
}

.bch-decor-plant .pot {
  width: 42px;
  height: 32px;
  border-radius: 8px 8px 18px 18px;
  background: #c2410c;
}

.bch-object-bus {
  background: linear-gradient(#dbeafe 0 70%, #475569 70%);
  border-radius: 18px;
}

.bch-decor-bus .bus {
  width: 70px;
  height: 38px;
  border-radius: 8px 8px 4px 4px;
  background:
    radial-gradient(circle at 24% 88%, #0f172a 0 7px, transparent 8px),
    radial-gradient(circle at 76% 88%, #0f172a 0 7px, transparent 8px),
    #facc15;
}

.bch-decor-bus .stop {
  width: 16px;
  height: 58px;
  border-radius: 999px;
  background: #ef4444;
}

.bch-decor-bus .people {
  border-radius: 50% 50% 8px 8px;
  background: #2563eb;
}

.bch-object-phone {
  border-radius: 28px;
  background: #0f172a;
  box-shadow: inset 0 0 0 12px #e2e8f0;
}

.bch-decor-phone i {
  border-radius: 9px;
  background: #38bdf8;
}

.bch-decor-phone .video {
  background: #f97316;
}

.bch-decor-phone .game {
  background: #8b5cf6;
}

.bch-decor-phone .chat {
  border-radius: 12px 12px 12px 2px;
  background: #22c55e;
}

.bch-object-allowance {
  background: linear-gradient(135deg, #fef3c7, #f8fafc);
  border-radius: 18px;
}

.bch-decor-allowance i {
  border-radius: 50%;
  background: #facc15;
}

.bch-decor-allowance .save {
  width: 52px;
  height: 36px;
  border-radius: 12px;
  background: #38bdf8;
}

.bch-decor-allowance .snack {
  border-radius: 6px;
  background: #f97316;
}

.bch-object-club {
  background: radial-gradient(circle at 50% 30%, #f8fafc 0 30%, #e0f2fe 31%);
  border-radius: 22px;
}

.bch-decor-club i {
  border-radius: 50%;
  background: #38bdf8;
}

.bch-decor-club .art {
  background: #f97316;
}

.bch-decor-club .music {
  background: #a78bfa;
}

.bch-decor-club .tech {
  border-radius: 8px;
  background: #22c55e;
}

.bch-object-garden {
  border-radius: 50%;
  background:
    conic-gradient(#22c55e 0 42%, #f9a8d4 42% 68%, #fef3c7 68% 88%, #94a3b8 88% 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.82);
}

.bch-decor-garden i {
  border-radius: 70% 8% 70% 8%;
  background: #16a34a;
}

.bch-decor-garden .flower {
  border-radius: 50%;
  background: #f472b6;
}

.bch-decor-garden .path {
  width: 44px;
  height: 16px;
  border-radius: 999px;
  background: #fbbf24;
}

.bch-decor-garden .tool {
  width: 12px;
  height: 50px;
  border-radius: 999px;
  background: #64748b;
  transform: rotate(28deg);
}

html[lang="en"] .bch-case {
  min-height: 610px;
}

html[lang="en"] .bch-case-head strong {
  font-size: 1.02rem;
}

html[lang="en"] .bch-case-controls,
html[lang="en"] .bch-case-metrics {
  grid-template-columns: 1fr;
}

html[lang="en"] .bch-exp-workbench,
html[lang="en"] .bch-lab {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

@media (max-width: 980px) {
  .bch-case-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }

  .bch-lab,
  .bch-exp-workbench,
  html[lang="en"] .bch-exp-workbench,
  html[lang="en"] .bch-lab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .bch-topic .gt-nav,
  .bch-topic-layout .gt-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bch-case-grid {
    grid-template-columns: 1fr;
  }

  .bch-case-controls,
  .bch-case-metrics {
    grid-template-columns: 1fr;
  }

  .bch-pie-wrap,
  .bch-exp-pie {
    grid-template-columns: 1fr;
  }
}
