/* ==========================================================================
   学生端儿童化 UI
   目标：大图标、大按钮、少层级、高对比、有趣
   ========================================================================== */

/* -------- 打招呼区 -------- */
.kid-hello {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 2px 18px;
}
.kid-hello__txt {
  font-size: 14px;
  color: #86909c;
  font-weight: 500;
  line-height: 1.3;
}
.kid-hello__name {
  font-size: 24px;
  font-weight: 850;
  color: #1d2129;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-top: 2px;
}

.kid-streak {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 9px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4e6, #ffe8cc);
  border: 1.5px solid #ffd8a8;
  flex: 0 0 auto;
}
.kid-streak__num {
  font-size: 21px;
  font-weight: 850;
  color: #ff7d00;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kid-streak__unit {
  font-size: 11.5px;
  color: #d46b08;
  font-weight: 700;
}

/* -------- 超大主按钮 -------- */
.kid-mega {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition: all .24s cubic-bezier(.22,.9,.3,1);
  text-align: left;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px -12px rgba(22,93,255,.5);
}
.kid-mega::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 68%);
  pointer-events: none;
}
.kid-mega:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(22,93,255,.62); }
.kid-mega:active { transform: translateY(0) scale(.99); }

.kid-mega--blue   { background: linear-gradient(125deg, #165dff, #4080ff 55%, #639cff); color: #fff; }
.kid-mega--green  { background: linear-gradient(125deg, #00b42a, #23c343 55%, #4ad96a); color: #fff;
                    box-shadow: 0 10px 28px -12px rgba(0,180,42,.5); }
.kid-mega--orange { background: linear-gradient(125deg, #ff7d00, #ff9a2e 55%, #ffb658); color: #fff;
                    box-shadow: 0 10px 28px -12px rgba(255,125,0,.5); }

.kid-mega__emoji {
  font-size: 38px;
  line-height: 1;
  flex: 0 0 auto;
  position: relative;
}
.kid-mega__body { flex: 1; min-width: 0; position: relative; }
.kid-mega__title {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.kid-mega__sub {
  font-size: 12.5px;
  opacity: .88;
  margin-top: 4px;
  line-height: 1.5;
}
.kid-mega__go {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
  white-space: nowrap;
  position: relative;
}

/* -------- 六宫格快捷按钮 -------- */
.kid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}

.kid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px -3px rgba(22,93,255,.1);
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,.9,.3,1);
  font-family: inherit;
}
.kid-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -8px rgba(22,93,255,.24);
}
.kid-btn:active { transform: translateY(0) scale(.96); }

.kid-btn__icon {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}
.kid-btn__label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.3;
}

/* -------- 卡片 -------- */
.kid-card {
  background: #fff;
  border: 1px solid #eef2f8;
  border-radius: 17px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px -3px rgba(22,93,255,.08);
}

/* -------- 进度条 -------- */
.kid-bar {
  height: 12px;
  border-radius: 99px;
  background: #eef2f8;
  overflow: hidden;
}
.kid-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #165dff, #4080ff, #639cff);
  transition: width .6s cubic-bezier(.22,.9,.3,1);
  position: relative;
  overflow: hidden;
}
.kid-bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: kidShine 2.2s ease-in-out infinite;
}
@keyframes kidShine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(220%); }
}

/* -------- 徽章 -------- */
.kid-badge {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(160deg, #fffdf6, #fff4dd);
  border: 1.5px solid #ffe4b8;
  display: grid;
  place-items: center;
  font-size: 21px;
  line-height: 1;
  transition: transform .2s ease;
}
.kid-badge:hover { transform: scale(1.1) rotate(-4deg); }

/* -------- 极简记题：方式选择 -------- */
.quick-way {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 19px 20px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: all .22s cubic-bezier(.22,.9,.3,1);
  font-family: inherit;
  text-align: left;
  box-shadow: 0 3px 14px -5px rgba(22,93,255,.14);
}
.quick-way:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(22,93,255,.3); }
.quick-way:active { transform: scale(.985); }

.quick-way__icon {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}
.quick-way--blue   .quick-way__icon { background: #e8f3ff; }
.quick-way--green  .quick-way__icon { background: #e8f8ee; }
.quick-way--purple .quick-way__icon { background: #f0eaff; }

.quick-way__body { flex: 1; min-width: 0; }
.quick-way__title {
  font-size: 16px;
  font-weight: 800;
  color: #1d2129;
  margin-bottom: 3px;
  line-height: 1.3;
}
.quick-way__desc {
  font-size: 12px;
  color: #86909c;
  line-height: 1.5;
}
.quick-way__arrow {
  flex: 0 0 auto;
  font-size: 24px;
  color: #c9d3e2;
  line-height: 1;
}

/* -------- 极简记题：进度动画 -------- */
@keyframes quickProg {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   手机端
   ========================================================================== */
@media (max-width: 560px) {
  .kid-hello { padding: 2px 0 15px; }
  .kid-hello__name { font-size: 21px; }
  .kid-streak { padding: 8px 12px; border-radius: 12px; }
  .kid-streak__num { font-size: 18px; }

  .kid-mega { padding: 17px 18px; border-radius: 17px; gap: 13px; margin-bottom: 14px; }
  .kid-mega__emoji { font-size: 32px; }
  .kid-mega__title { font-size: 16.5px; }
  .kid-mega__sub { font-size: 11.5px; }
  .kid-mega__go { font-size: 12px; padding: 8px 13px; }

  .kid-grid { gap: 9px; margin-bottom: 14px; }
  .kid-btn { padding: 13px 6px; border-radius: 14px; gap: 7px; }
  .kid-btn__icon { width: 40px; height: 40px; border-radius: 13px; font-size: 20px; }
  .kid-btn__label { font-size: 11.5px; }

  .kid-card { padding: 15px; border-radius: 15px; margin-bottom: 12px; }
  .kid-bar { height: 10px; }
  .kid-badge { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }

  .quick-way { padding: 16px 17px; gap: 13px; border-radius: 16px; }
  .quick-way__icon { width: 46px; height: 46px; flex: 0 0 46px; font-size: 23px; border-radius: 14px; }
  .quick-way__title { font-size: 15px; }
  .quick-way__desc { font-size: 11.5px; }
}

@media (max-width: 360px) {
  .kid-grid { grid-template-columns: repeat(2, 1fr); }
  .kid-mega__go { display: none; }
  .kid-mega__emoji { font-size: 28px; }
}

/* ==========================================================================
   学生模式：整体更圆润、更活泼
   ========================================================================== */
[data-mode="student"] .card {
  border-radius: 17px;
  box-shadow: 0 2px 10px -3px rgba(22,93,255,.08);
}
[data-mode="student"] .btn {
  border-radius: 13px;
  font-weight: 650;
}
[data-mode="student"] .btn--primary {
  box-shadow: 0 6px 18px -8px rgba(22,93,255,.5);
}
[data-mode="student"] .topbar h1 {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
}

/* 学生模式：导航更大更好点 */
[data-mode="student"] .nav__item {
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
}
[data-mode="student"] .tabbar__item {
  font-size: 10.5px;
  font-weight: 600;
}
[data-mode="student"] .tabbar__item svg {
  width: 22px;
  height: 22px;
}
