/* ============================================================
   学习中心 / 工作台 / 课堂 / 商城 共用版式
   ============================================================ */

/* ---------- 学习中心 ---------- */

.hub-lede { margin: 8px 0 22px; color: #4d6357; font-size: clamp(14px, 1.1vw, 17px); }

.logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 26px);
  margin: 4px 0 34px;
  align-items: end;
}

.logo-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 4px 12px;
  border-radius: 18px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.logo-card img {
  width: 100%;
  max-width: 168px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px #1d3b2c1f);
  transition: transform .18s ease, filter .18s ease;
}
.logo-card strong { font-size: clamp(13px, 1.05vw, 16px); font-weight: 900; color: #24402f; letter-spacing: .02em; }
.logo-card:hover { background: #ffffffb0; }
.logo-card:hover img { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 14px 16px #1d3b2c2b); }
.logo-card[aria-disabled="true"] { cursor: default; opacity: .55; }
.logo-card[aria-disabled="true"]:hover { background: none; }
.logo-card[aria-disabled="true"]:hover img { transform: none; }

.logo-card__badge {
  font-size: 11px;
  font-weight: 800;
  color: #7b8b7f;
  background: #ffffffb8;
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: .06em;
}

.app-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 26px);
}

.app-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 10px 6px 14px;
  border: 0;
  background: none;
  border-radius: 26px;
  cursor: pointer;
  transition: transform .18s ease;
}
.app-card img {
  width: 100%;
  max-width: 132px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 26%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 22px #1d3b2c26, 0 0 0 3px #ffffff8c inset;
  transition: transform .18s ease, box-shadow .18s ease;
}
.app-card strong { font-size: clamp(13px, 1.05vw, 16px); font-weight: 900; color: #24402f; }
.app-card:hover img { transform: translateY(-4px); box-shadow: 0 16px 28px #1d3b2c33, 0 0 0 3px #ffffffcc inset; }

/* ---------- 学习工作台 ---------- */

.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.bench-panel {
  background: #fdfbf2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px clamp(16px, 2vw, 26px);
}
.bench-panel h2 {
  font-size: 19px;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.bench-panel__sub { margin: 0 0 16px; color: #6b7d72; font-size: 13px; }

.subject-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subject-tab {
  border: 2px solid #e6dfc8;
  background: #fffdf6;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 14px;
  color: #4a5f52;
  cursor: pointer;
}
.subject-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #2d8a58, #1d6543);
  border-color: #1d6543;
  color: #fff;
  box-shadow: 0 6px 14px #1d654333;
}

.task-list { display: grid; gap: 10px; }
.task {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ece5d0;
  background: #fffdf6;
}
.task__mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--sage);
}
.task__body strong { display: block; font-size: 14.5px; }
.task__body small { color: #7c8b81; font-size: 12px; }
.task__go {
  border: 0;
  background: #eef3e0;
  color: #2f7233;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 38px;
}
.task__go:hover { background: #e2ecd0; }
.task--done { opacity: .62; }
.task--done .task__go { background: #eceade; color: #8a978d; cursor: default; }

.ring-wrap { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.ring { width: 132px; height: 132px; }
.ring text { font-family: var(--font); font-weight: 900; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.stat {
  border-radius: 14px;
  background: #f4f7ea;
  padding: 12px 14px;
  border: 1px solid #e8eedb;
}
.stat span { font-size: 12px; color: #6b7d72; }
.stat strong { display: block; font-size: 20px; color: #1d6543; }

.week-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 14px; }
.week-bars .bar { flex: 1; display: grid; justify-items: center; gap: 5px; }
.week-bars .bar i {
  display: block;
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #93c76c, #4f8f4b);
  min-height: 4px;
}
.week-bars .bar b { font-size: 10.5px; font-weight: 700; color: #87988f; }

/* ---------- 森林课堂 ---------- */

.classroom {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.board {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c3f34;
  color: #eaf4e4;
  box-shadow: var(--shadow);
  min-height: 380px;
  max-height: calc(100dvh - 190px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.board__stage {
  position: relative;
  padding: 22px clamp(16px, 2.6vw, 30px);
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  background:
    radial-gradient(700px 340px at 82% 0%, #2f6b4f, transparent 70%),
    radial-gradient(600px 320px at 0% 100%, #234c3c, transparent 65%),
    linear-gradient(160deg, #1a3c31, #142f26);
}
.board__kicker { font-size: 12px; letter-spacing: .18em; color: #a8c8a5; font-weight: 800; }
.board__title { font-size: clamp(22px, 2.4vw, 34px); color: #fdf8e1; font-weight: 900; }
.board__lead { color: #cfe2c7; font-size: 15px; line-height: 1.85; margin: 0; }
.board__word {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 900;
  letter-spacing: .02em;
  color: #ffe89a;
  text-shadow: 0 3px 0 #0c231b;
}
.board__word small { font-size: 16px; font-weight: 700; color: #b7d6ae; letter-spacing: .06em; }
.board__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(14px, 2vw, 22px);
  background: #16362c;
  border-top: 1px solid #2b5749;
}
.board__progress { flex: 1; height: 8px; border-radius: 999px; background: #2a4d40; overflow: hidden; }
.board__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #86c46a, #efe07c); transition: width .3s ease; }
.board__count { font-size: 13px; font-weight: 800; color: #a9c6a1; }

.quiz { display: grid; gap: 8px; margin-top: 2px; }
.quiz__opt {
  text-align: left;
  padding: 10px 15px;
  border-radius: 12px;
  border: 2px solid #35614f;
  background: #1e4638;
  color: #e8f2e2;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.quiz__opt:hover { background: #265440; transform: translateX(2px); }
.quiz__opt[data-state="right"] { border-color: #8ed06c; background: #2a6b46; }
.quiz__opt[data-state="wrong"] { border-color: #e0705f; background: #5c2f2a; }

.lesson-list { display: grid; gap: 10px; }
.lesson {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fdfbf2;
  cursor: pointer;
  text-align: left;
}
.lesson[aria-current="true"] {
  border-color: var(--green-soft);
  background: #f2f8e9;
  box-shadow: 0 0 0 3px #a7cf8140;
}
.lesson__n {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #eef2df;
  font-weight: 900;
  color: #3f6b4f;
}
.lesson strong { font-size: 14.5px; display: block; }
.lesson small { color: #7c8b81; font-size: 12px; }

/* ---------- 学分商城 ---------- */

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.shop-panel {
  background: #fdfbf2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px clamp(14px, 2vw, 24px);
  box-shadow: var(--shadow-sm);
}
.shop-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.shop-panel__head h2 { font-size: 21px; color: var(--green-deep); }
.shop-panel__head .btn { margin-left: auto; }

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

.goods {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece5d0;
  display: grid;
  grid-template-rows: 132px auto auto;
  box-shadow: 0 4px 12px #1d3b2c0f;
}
.goods__art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf2dc, #f7f1de);
}
.goods__art svg { width: 100%; height: 100%; }
.goods__body { padding: 12px 14px 8px; }
.goods__body h3 { font-size: 15px; color: #24402f; }
.goods__body p { margin: 4px 0 0; font-size: 12.5px; color: #7c8b81; }
.goods__price { display: flex; align-items: center; gap: 6px; font-weight: 900; color: #b4791f; font-size: 14px; margin-top: 6px; }
.goods__foot { padding: 0 14px 14px; }
.goods__foot .btn { width: 100%; min-height: 40px; font-size: 13.5px; }
.goods--locked { opacity: .72; }

.plot-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #e6dfc8;
}
.plot-card svg { display: block; width: 100%; height: auto; }
.plot-card__label {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #35513d;
  background: #fffbf0cc;
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .bench-grid, .classroom, .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .app-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .ring-wrap { grid-template-columns: 104px minmax(0, 1fr); }
  .ring { width: 104px; height: 104px; }
  .goods-grid { grid-template-columns: minmax(0, 1fr); }
  .site-head { padding: 18px 14px 4px; gap: 10px; }
  .site-head__title { font-size: 24px; }
}
