/* ==========================================================================
   湘智伴学 H5 · 设计系统
   视觉语言沿用小程序：淡蓝渐变底 + 白色半透明卡片 + 蓝色渐变标题条
   ========================================================================== */

:root {
  --blue: #2f84ff;
  --blue-deep: #1f73ef;
  --blue-light: #6eb7ff;
  --ink: #16233e;
  --ink-2: #1c2d49;
  --ink-3: #2a3c57;
  --text: #50607a;
  --muted: #7b8aa1;
  --muted-2: #8a97aa;
  --line: rgba(234, 239, 248, 0.9);
  --card: rgba(255, 255, 255, 0.92);
  --sheet: rgba(255, 255, 255, 0.99);
  --green: #27b78f;
  --teal: #32c0a6;
  --orange: #ff912f;
  --purple: #8f73ff;
  --red: #ff6a6a;
  --shadow-card: 0 7px 17px rgba(123, 160, 206, 0.1);
  --shadow-float: 0 -5px 16px rgba(128, 160, 202, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shell: 460px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, -apple-system,
    'Segoe UI', sans-serif;
  color: var(--ink-3);
  background: #e9f1fa;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* ------------------------------------------------------------------ 外壳 */

.app {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #edf6ff 0%, #ffffff 42%, #f7fbff 100%);
}

@media (min-width: 760px) {
  body {
    background: radial-gradient(circle at 50% 0%, #dbeaff 0%, #eef4fb 55%, #e6eef8 100%);
  }
  .app {
    min-height: 100dvh;
    box-shadow: 0 24px 60px rgba(89, 124, 175, 0.18);
  }
}

.decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.decor-top {
  top: -110px;
  left: -115px;
  width: 470px;
  height: 470px;
  background: rgba(198, 229, 255, 0.46);
}

.decor-bottom {
  right: -130px;
  bottom: -130px;
  width: 430px;
  height: 430px;
  background: rgba(221, 238, 255, 0.4);
}

.decor-shine {
  top: 56px;
  left: 50%;
  width: 345px;
  height: 800px;
  margin-left: -172px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.content {
  position: relative;
  z-index: 1;
  padding: 8px 14px calc(104px + env(safe-area-inset-bottom, 0px));
  animation: rise 0.32s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ 顶部导航 */

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 6px;
  margin-bottom: 2px;
}

.nav-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 2px;
  font-size: 26px;
  line-height: 1;
  color: #23385c;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-back:active {
  background: rgba(47, 132, 255, 0.1);
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.nav-spacer {
  width: 34px;
  height: 34px;
}

/* ------------------------------------------------------------------ 卡片 */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card + .card,
.section-block + .section-block {
  margin-top: 11px;
}

.band {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 9px;
  color: #fff;
}

.band--blue {
  background: linear-gradient(90deg, #1f73ef 0%, #6eb7ff 100%);
}
.band--green {
  background: linear-gradient(90deg, #27b78f 0%, #7edbc8 100%);
}
.band--orange {
  background: linear-gradient(90deg, #ff912f 0%, #ffbd74 100%);
}
.band--purple {
  background: linear-gradient(90deg, #8f73ff 0%, #b5a7ff 100%);
}
.band--teal {
  background: linear-gradient(90deg, #32c0a6 0%, #9be2d5 100%);
}

.band-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 11px;
  font-weight: 700;
}

.band-title {
  margin-left: 7px;
  font-size: 14px;
  font-weight: 700;
}

.band-link {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ 图标网格 */

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 11px 9px 4px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.icon-item--5 {
  width: 20%;
}

.icon-item img {
  width: 34px;
  height: 34px;
}

.icon-label {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
}

.icon-item:active img {
  transform: scale(0.92);
}

.icon-item img {
  transition: transform 0.16s ease;
}

/* ------------------------------------------------------------------ 底部导航 */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  width: min(var(--shell), 100%);
  padding: 9px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(10px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #95a0af;
  font-size: 10px;
}

.tab-item img {
  width: 19px;
  height: 19px;
}

.tab-item--active {
  color: var(--blue);
  font-weight: 700;
}

/* ------------------------------------------------------------------ 底部弹层 */

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 31, 50, 0.24);
  animation: fade 0.2s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  width: min(calc(var(--shell) - 24px), calc(100% - 24px));
  max-height: 74vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 0 12px 24px rgba(108, 140, 182, 0.18);
  animation: sheet-up 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: #d7e5f5;
}

.sheet-title {
  margin: 9px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
}

.sheet-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7d8ca2;
}

.sheet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.sheet-stat {
  padding: 9px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f4f9ff 0%, #eef5ff 100%);
}

.sheet-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}

.sheet-stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.sheet-list {
  margin-top: 4px;
}

.sheet-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 9px;
  margin-top: 9px;
  border-top: 1px solid rgba(236, 241, 247, 0.96);
}

.sheet-item:first-child {
  border-top: none;
}

.sheet-item-main {
  flex: 1;
  min-width: 0;
}

.sheet-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #20314d;
}

.sheet-item-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #74839b;
}

.sheet-item-meta {
  flex-shrink: 0;
  padding-top: 1px;
  font-size: 10.5px;
  color: var(--blue);
}

.sheet-action {
  width: 100%;
  height: 39px;
  margin-top: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #1f73ef 0%, #2f84ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sheet-action:active {
  opacity: 0.88;
}

.sheet-feedback {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--blue);
  text-align: center;
}

/* ------------------------------------------------------------------ 通用控件 */

.btn-primary {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #1f73ef 0%, #2f84ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(47, 132, 255, 0.26);
}

.btn-primary:active {
  transform: translateY(1px);
  opacity: 0.92;
}

.btn-primary[disabled] {
  opacity: 0.6;
}

.chip {
  border: none;
  border-radius: 9px;
  background: #f6f9fe;
  box-shadow: inset 0 0 0 1px rgba(223, 231, 244, 0.9);
  color: #5b6981;
  font-size: 12px;
  cursor: pointer;
}

.chip--active {
  background: linear-gradient(90deg, #1f73ef 0%, #2f84ff 100%);
  box-shadow: none;
  color: #fff;
  font-weight: 700;
}

.tag {
  display: inline-block;
  min-width: 60px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
}

.tag--orange {
  background: rgba(255, 149, 52, 0.14);
  color: #f28a2c;
}
.tag--green {
  background: rgba(59, 198, 146, 0.14);
  color: #2eb38a;
}
.tag--blue {
  background: rgba(47, 132, 255, 0.14);
  color: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(22, 35, 62, 0.86);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  animation: fade 0.18s ease both;
  pointer-events: none;
}

.empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ 启动页 */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 76px 24px 28px;
  text-align: center;
}

.splash-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  object-fit: contain;
  animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}

.splash-title {
  margin: 16px 0 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1b3358;
}

.splash-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #6f86a3;
}

.splash-art {
  position: relative;
  width: 100%;
  margin: 26px 0 0;
}

.splash-art img {
  width: 100%;
  border-radius: 20px;
}

.splash-count {
  margin-top: 14px;
  font-size: 12px;
  color: #8ba0b9;
}

.splash-count b {
  color: var(--blue);
}

.splash-skip {
  margin-top: 18px;
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ------------------------------------------------------------------ 登录页 */

.login {
  padding-top: 34px;
}

.login-brand {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1b3358;
}

.login-hello {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #7c93ad;
}

.role-list {
  margin-top: 16px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 9px;
  border: 1px solid rgba(228, 236, 246, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.role-card--active {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 132, 255, 0.16);
}

.role-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.role-copy {
  flex: 1;
  min-width: 0;
}

.role-name {
  font-size: 14px;
  font-weight: 700;
  color: #26374f;
}

.role-name--student {
  color: var(--blue);
}
.role-name--parent {
  color: #f2872c;
}
.role-name--school {
  color: #27b78f;
}

.role-desc {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: #8a97aa;
}

.role-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #dbe4f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-check--active {
  border-color: var(--blue);
  background: var(--blue);
}

.role-check-mark {
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.login-tabs {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  padding: 0 2px;
}

.login-tab {
  position: relative;
  padding: 0 0 8px;
  border: none;
  background: none;
  font-size: 13px;
  color: #93a1b4;
  cursor: pointer;
}

.login-tab--active {
  color: var(--ink-2);
  font-weight: 700;
}

.login-tab-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f73ef, #2f84ff);
}

.form-area {
  margin-top: 14px;
}

.field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(226, 235, 246, 0.96);
}

.field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #a7b5c8;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 13.5px;
  color: var(--ink-3);
}

.field input::placeholder {
  color: #b3bccb;
}

.field-action {
  flex-shrink: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(232, 238, 246, 0.96);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: none;
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
}

.field-action--disabled {
  color: #b3bccb;
  cursor: default;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #93a1b4;
}

.demo-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--blue);
  cursor: pointer;
}

.mock-hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #f2872c;
}

.login-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  color: #93a1b4;
}

.login-foot button {
  border: none;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--blue);
  cursor: pointer;
}

.agree {
  display: flex;
  align-items: center;
  margin-top: 26px;
  font-size: 11px;
  color: #93a1b4;
  cursor: pointer;
}

.agree-box {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 4px;
  border: 1.5px solid #cfdae8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agree-box--on {
  border-color: var(--blue);
  background: var(--blue);
}

.agree-mark {
  width: 6px;
  height: 3px;
  margin-top: -1px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.agree button {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--blue);
  cursor: pointer;
}

/* 登录页明细：标题/提示/标签页的密度与原设计对齐 */
.block-title--sm {
  margin-top: 16px;
  font-size: 13px;
}

.mock-hint--muted {
  color: #93a1b4;
}

.login-tabs--tight {
  margin-top: 8px;
}

.form-area .btn-primary {
  margin-top: 4px;
}

/* ------------------------------------------------------------------ 首页 */

.hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 9px rgba(120, 156, 203, 0.16);
  cursor: pointer;
  flex-shrink: 0;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(230, 237, 246, 0.9);
  cursor: pointer;
  min-width: 0;
}

.search-icon {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border: 1.5px solid #aeb8c8;
  border-radius: 50%;
}

.search-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 5px;
  height: 1.5px;
  border-radius: 999px;
  background: #aeb8c8;
  transform: rotate(45deg);
}

.search-placeholder {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: #b3bccb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(230, 237, 246, 0.88);
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

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

.feature-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease;
}

.feature-card:active {
  transform: scale(0.975);
}

.feature-card--blue {
  background: linear-gradient(135deg, #edf6ff 0%, #e7f0ff 100%);
}
.feature-card--green {
  background: linear-gradient(135deg, #effcf3 0%, #ebfbef 100%);
}
.feature-card--purple {
  background: linear-gradient(135deg, #f2f0ff 0%, #f0efff 100%);
}
.feature-card--orange {
  background: linear-gradient(135deg, #fff5ee 0%, #fff4ea 100%);
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.feature-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #24364f;
}

.feature-title--blue {
  color: #1f6fe0;
}
.feature-title--green {
  color: #1d9c78;
}
.feature-title--purple {
  color: #6b57cf;
}
.feature-title--orange {
  color: #e07b23;
}

.feature-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: #8a97aa;
}

.feature-icon {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  flex-shrink: 0;
}

.block-title {
  margin: 16px 0 9px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2f49;
}

.quick-grid {
  display: flex;
  padding: 12px 4px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.quick-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.quick-item img {
  width: 30px;
  height: 30px;
}

.quick-label {
  font-size: 10.5px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

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

.zone-card {
  position: relative;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.zone-card--orange {
  background: linear-gradient(135deg, #fff7ee 0%, #fffaf5 100%);
}
.zone-card--blue {
  background: linear-gradient(135deg, #f1f7ff 0%, #f7fbff 100%);
}

.zone-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #24364f;
}

.zone-title--orange {
  color: #d97a1c;
}
.zone-title--blue {
  color: #1f6fe0;
}

.zone-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: #8a97aa;
}

.zone-bullets {
  margin-top: 8px;
}

.zone-bullet {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10.5px;
  color: #6b7a90;
}

.zone-dot {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b9cbe6;
}

.zone-dot--orange {
  background: #f5b06a;
}
.zone-dot--blue {
  background: #8cbcf5;
}

.zone-art {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  opacity: 0.32;
}

.growth-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  width: 100%;
  text-align: left;
  background: linear-gradient(90deg, #e4f0ff 0%, #f2f8ff 42%, #edf9ef 100%);
  cursor: pointer;
  overflow: hidden;
}

.growth-copy {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

.growth-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1d3a63;
  line-height: 1.45;
}

.growth-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.9;
}

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

.stats-card {
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  text-align: left;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  cursor: pointer;
}

.stats-label {
  font-size: 11px;
  color: #7b8aa1;
}

.stats-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 7px;
}

.stats-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.stats-value--green {
  color: #16af80;
}

.stats-unit {
  margin-left: 3px;
  font-size: 10.5px;
  color: #8a97aa;
}

.stats-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

/* ------------------------------------------------------------------ 学业中心 */

.chip-row {
  display: flex;
  gap: 8px;
}

.chip--subject {
  width: 46px;
  height: 30px;
}

.diagnosis-body {
  padding: 12px 11px 13px;
}

.diagnosis-main {
  flex: 1;
  min-width: 0;
}

.diagnosis-side {
  width: 122px;
  flex-shrink: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.sub-label {
  margin-bottom: 7px;
  font-size: 11px;
  color: #7b8aa1;
}

.qtype-row {
  display: flex;
  gap: 8px;
}

.chip--qtype {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 9px;
  background: #fbfdff;
}

.chip--qtype.chip--active {
  background: linear-gradient(180deg, #f4f9ff 0%, #eef5ff 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 167, 255, 0.65);
  color: var(--blue);
}

.qtype-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a90ff, #66b3ff);
}

.qtype-icon--cyan {
  background: linear-gradient(135deg, #59c7ff, #78d5ff);
}

.progress-list {
  margin-top: 2px;
}

.progress-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.4;
  color: #617089;
}

.progress-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(47, 132, 255, 0.16);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.result-card {
  margin: 0 11px 12px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(225, 234, 246, 0.92);
}

.result-title {
  font-size: 13px;
  font-weight: 700;
  color: #24406a;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.result-stat {
  padding: 7px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.result-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.result-label {
  margin-top: 3px;
  font-size: 10px;
  color: #7c8aa0;
}

.result-text {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7890;
}

.result-next {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--blue);
}

.archive-body {
  padding: 12px 11px 13px;
}

.archive-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-grade {
  font-size: 15px;
  font-weight: 700;
  color: #25344f;
}

.pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(59, 198, 146, 0.12);
  color: #31b489;
  font-size: 11px;
}

.archive-charts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.radar-card {
  flex: 1;
  min-width: 0;
  min-height: 150px;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 239, 247, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar {
  position: relative;
  width: 112px;
  height: 112px;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(114, 212, 202, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring--outer {
  width: 92px;
  height: 92px;
}
.radar-ring--mid {
  width: 64px;
  height: 64px;
}
.radar-ring--inner {
  width: 38px;
  height: 38px;
}

.radar-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 46px;
  background: rgba(114, 212, 202, 0.42);
  transform-origin: center 0;
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(77, 220, 204, 0.2);
  box-shadow: 0 0 0 13px rgba(77, 220, 204, 0.08);
  transform: translate(-50%, -50%);
}

.radar-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c4b2;
  box-shadow: 0 0 0 4px rgba(53, 196, 178, 0.12);
}

.radar-label {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
  font-size: 10px;
  color: #6f7d93;
  text-align: center;
}

.radar-tag {
  max-width: 92px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(226, 235, 246, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: #6d7c93;
}

.archive-side {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-card {
  flex: 1;
  min-height: 68px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 239, 247, 0.92);
}

.side-title {
  font-size: 10px;
  color: #8a97aa;
}

.side-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #ff8a2b;
}

.side-value--green {
  color: #16af80;
}

.side-unit {
  margin-left: 2px;
  font-size: 10px;
  color: #627088;
  font-weight: 400;
}

.side-desc {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.35;
  color: #8b98aa;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px;
  border: none;
  border-top: 1px solid rgba(237, 241, 247, 0.92);
  background: none;
  text-align: left;
  cursor: pointer;
}

.plan-row:first-child {
  border-top: none;
}

.plan-row--active {
  background: rgba(47, 132, 255, 0.04);
}

.plan-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.plan-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.plan-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2a3c57;
}

.plan-desc {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #8b98aa;
}

.plan-accent {
  width: 4px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
}

.plan-detail {
  margin: 0 11px 11px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff8f1 0%, #fffdf8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 195, 0.92);
}

.plan-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #9a5c17;
}

.plan-detail-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #7b6d57;
}

.plan-step {
  margin-top: 5px;
  font-size: 11px;
  color: #6f6659;
}

/* 学业页版式：上次练习摘要 / 主次动作 / 档案数值区 */
.diagnosis-sub {
  margin-top: 12px;
}

.diagnosis-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(244, 249, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 235, 246, 0.9);
}

.diagnosis-result-label {
  flex-shrink: 0;
  font-size: 10.5px;
  color: #7b8aa1;
}

.diagnosis-result-value {
  font-size: 11.5px;
  font-weight: 600;
  color: #2b3d59;
  font-variant-numeric: tabular-nums;
}

.diagnosis-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px 13px;
}

.diagnosis-actions .btn-primary {
  width: auto;
  flex: 1;
  min-width: 0;
}

.btn-quiet {
  flex-shrink: 0;
  height: 40px;
  padding: 0 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: #eef5ff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-quiet:active {
  background: #e3eeff;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 226px;
  flex-shrink: 0;
}

.archive-stats .stat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(233, 239, 247, 0.92);
}

.archive-stats .stat-cell-value {
  font-size: 16px;
}

.archive-stats .stat-cell-label {
  font-size: 9.5px;
}

#study-root .card + .card {
  margin-top: 11px;
}

/* ------------------------------------------------------------------ 联动服务 / 情感陪伴 */

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 265 / 110;
  margin-top: 12px;
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
}

.section-block {
  margin-top: 11px;
}

.section-block .icon-grid {
  position: relative;
}

.hero-emotion {
  position: relative;
  margin-top: 12px;
  padding: 13px 12px;
  min-height: 105px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff5e8 0%, #fff9f1 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
}

.hero-emotion-copy {
  position: relative;
  z-index: 1;
  max-width: 74%;
}

.hero-emotion-title {
  font-size: 18px;
  font-weight: 700;
  color: #b75b24;
}

.hero-emotion-line {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #8a643f;
}

.hero-emotion-art {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 116px;
  height: 96px;
  object-fit: contain;
  object-position: right bottom;
}

/* ------------------------------------------------------------------ 我的 */

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2f49;
}

.profile-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(47, 132, 255, 0.14);
  color: var(--blue);
  font-size: 10px;
}

.profile-meta,
.profile-school {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: #76839a;
}

.plain-card {
  margin-top: 11px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.plain-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2f49;
  padding: 0 2px;
}

.plain-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 11px;
}

.plain-item {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.plain-item img {
  width: 31px;
  height: 31px;
}

/* ------------------------------------------------------------------ 辅助功能 */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

@media (max-width: 379px) {
  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool-card {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-body {
  padding: 11px 9px 12px;
  flex: 1;
}

.tool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.tool-grade {
  font-size: 12px;
  font-weight: 700;
  color: #2a3c57;
}

.tool-date {
  font-size: 9.5px;
  color: #8a97aa;
}

.tool-score-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
}

.tool-score {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.tool-score-desc {
  font-size: 10.5px;
  color: #617089;
}

.mini-radar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 8px auto 0;
}

.mini-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(103, 215, 200, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mini-radar-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 34px;
  background: rgba(103, 215, 200, 0.42);
  transform-origin: center 0;
}

.mini-radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(57, 206, 187, 0.18);
  box-shadow: 0 0 0 9px rgba(57, 206, 187, 0.08);
  transform: translate(-50%, -50%);
}

.weak-title {
  margin-top: 10px;
  font-size: 10px;
  color: #8a97aa;
}

.weak-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 10.5px;
  color: #5d6b82;
}

.weak-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.weak-tag {
  margin-left: auto;
  font-size: 9.5px;
  color: #ff7e37;
}

.card-link {
  width: 100%;
  margin-top: 9px;
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}

.report-expand {
  margin-top: 9px;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8ff 100%);
}

.report-expand-title {
  font-size: 11px;
  font-weight: 700;
  color: #24406a;
}

.report-expand-line {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
  color: #6e7b90;
}

.resource-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.resource-tab {
  min-width: 36px;
  height: 21px;
  padding: 0 9px;
  border: none;
  border-radius: 11px;
  background: #f2f6fc;
  color: #7b8798;
  font-size: 10px;
  cursor: pointer;
}

.resource-tab--active {
  background: rgba(47, 132, 255, 0.14);
  color: var(--blue);
  font-weight: 700;
}

.resource-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px;
  border: none;
  border-radius: 9px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.resource-row + .resource-row {
  margin-top: 8px;
}

.resource-row--active {
  background: rgba(47, 132, 255, 0.06);
  padding: 5px;
}

.resource-image {
  width: 41px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eef5ff;
  object-fit: cover;
}

.resource-copy {
  min-width: 0;
  flex: 1;
}

.resource-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #2a3c57;
}

.resource-desc {
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.35;
  color: #7b8798;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-card {
  margin-top: 9px;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
}

.preview-title {
  font-size: 11px;
  font-weight: 700;
  color: #2a3c57;
}

.preview-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: #6f7b90;
}

.preview-meta {
  margin-top: 5px;
  font-size: 10px;
  color: var(--blue);
}

.form-title {
  font-size: 12px;
  font-weight: 700;
  color: #2a3c57;
}

.form-row {
  margin-top: 8px;
}

.form-label {
  display: block;
  font-size: 10px;
  color: #7b8798;
}

.form-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  margin-top: 4px;
  padding: 0 8px;
  border: none;
  width: 100%;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(229, 236, 246, 0.92);
  font-size: 11px;
  color: #55657d;
  cursor: pointer;
  text-align: left;
}

.form-value::after {
  content: '›';
  color: #b3bccb;
  font-size: 13px;
}

.submit-button {
  width: 100%;
  height: 35px;
  margin-top: 11px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(90deg, #1f73ef 0%, #2f84ff 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.form-note {
  margin-top: 5px;
  font-size: 9px;
  color: #9aa5b6;
}

.booking-result {
  margin-top: 9px;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #eef8ff 0%, #f8fcff 100%);
}

.booking-line {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: #6f7b90;
}

.booking-status {
  margin-top: 6px;
  font-size: 10px;
  color: var(--blue);
}

.notice-tabs {
  display: flex;
  gap: 9px;
  margin-bottom: 4px;
}

.notice-tab {
  padding: 0 0 3px;
  border: none;
  border-bottom: 1.5px solid transparent;
  background: none;
  font-size: 11px;
  color: #8a97aa;
  cursor: pointer;
}

.notice-tab--active {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

.notice-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 5px;
  margin-top: 4px;
  border: none;
  border-radius: 9px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.notice-row--active {
  background: rgba(47, 132, 255, 0.05);
}

.notice-icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
}

.notice-icon--green {
  background: #4bc498;
}
.notice-icon--orange {
  background: #ff9c43;
}
.notice-icon--blue {
  background: var(--blue);
}
.notice-icon--purple {
  background: #7d7cff;
}

.notice-copy {
  flex: 1;
  min-width: 0;
}

.notice-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #2a3c57;
}

.notice-desc {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
  color: #8a97aa;
}

.notice-meta {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #a0aabe;
}

.notice-dot {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
}

.notice-detail {
  margin-top: 9px;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f8ff 100%);
}

.notice-detail-title {
  font-size: 11px;
  font-weight: 700;
  color: #27406a;
}

.notice-detail-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: #6f7b90;
}

.notice-detail-meta {
  margin-top: 5px;
  font-size: 10px;
  color: var(--blue);
}

/* ------------------------------------------------------------ 无障碍/减少动效 */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================ 功能面板 */

.panel-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(17, 31, 50, 0.28);
  animation: fade 0.18s ease both;
}

.panel {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  width: min(var(--shell), 100%);
  height: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 38%, #f8fbff 100%);
  box-shadow: 0 0 40px rgba(89, 124, 175, 0.18);
  pointer-events: auto;
  animation: panel-up 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(230, 238, 248, 0.9);
}

.panel-back {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #23385c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.panel-title-wrap {
  flex: 1;
  min-width: 0;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #16233e;
}

.panel-subtitle {
  margin-top: 2px;
  font-size: 11px;
  color: #7b8aa1;
}

.panel-action {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  padding: 6px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.panel-footer {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(230, 238, 248, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.sub-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2f49;
}

.sub-title:first-child {
  margin-top: 0;
}

.empty-state {
  padding: 22px 10px;
  text-align: center;
  font-size: 12px;
  color: #8a97aa;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 11px;
  margin-bottom: 8px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
}

.list-row-main {
  flex: 1;
  min-width: 0;
}

.list-row-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #26374f;
}

.list-row-desc {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  color: #7b8aa1;
}

.list-row-meta {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--blue);
}

.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
}

.status-pill--pending {
  background: rgba(255, 149, 52, 0.14);
  color: #e07b23;
}

.status-pill--approved {
  background: rgba(59, 198, 146, 0.16);
  color: #1f9c74;
}

.status-pill--cancelled {
  background: rgba(138, 151, 170, 0.16);
  color: #7b8aa1;
}

.form-item {
  margin-bottom: 10px;
}

.form-item-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: #6f7d93;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 235, 246, 0.96);
  font-size: 13px;
  color: #2a3c57;
  outline: none;
}

.form-textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  box-shadow: inset 0 0 0 1.5px rgba(47, 132, 255, 0.6);
}

.form-hint {
  margin-top: 5px;
  font-size: 10.5px;
  color: #93a1b4;
}

.form-error {
  margin-top: 5px;
  font-size: 11px;
  color: #ff6a6a;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.toggle-copy {
  flex: 1;
  min-width: 0;
}

.toggle-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #2a3c57;
}

.toggle-desc {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #8a97aa;
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #dbe4f0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.toggle--on {
  background: linear-gradient(90deg, #1f73ef, #2f84ff);
}

.toggle-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 50, 80, 0.2);
  transition: transform 0.18s ease;
}

.toggle--on .toggle-dot {
  transform: translateX(18px);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11.5px;
  color: #7b8aa1;
}

.quiz-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(47, 132, 255, 0.12);
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f73ef, #2f84ff);
  transition: width 0.2s ease;
}

.quiz-card {
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.quiz-meta {
  font-size: 10.5px;
  color: #8a97aa;
}

.quiz-stem {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2f49;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
  margin-bottom: 8px;
  border: 1px solid rgba(226, 235, 246, 0.96);
  border-radius: 11px;
  background: #fbfdff;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.5;
  color: #33465f;
  cursor: pointer;
}

.quiz-option-key {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(47, 132, 255, 0.12);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.quiz-option--active {
  border-color: rgba(47, 132, 255, 0.7);
  background: rgba(47, 132, 255, 0.06);
}

.quiz-option--correct {
  border-color: rgba(46, 179, 138, 0.8);
  background: rgba(59, 198, 146, 0.1);
}

.quiz-option--wrong {
  border-color: rgba(255, 106, 106, 0.8);
  background: rgba(255, 106, 106, 0.08);
}

.quiz-review-item {
  padding: 11px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.quiz-review-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7b8aa1;
}

.quiz-review-flag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
}

.quiz-review-flag--ok {
  background: rgba(59, 198, 146, 0.16);
  color: #1f9c74;
}

.quiz-review-flag--no {
  background: rgba(255, 106, 106, 0.14);
  color: #e05353;
}

.quiz-review-stem {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #26374f;
}

.quiz-review-answer {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #5b6b82;
}

.quiz-review-analysis {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: #8a97aa;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 8px;
}

.chat-msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.chat-msg--user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f1ff;
}

.chat-bubble {
  max-width: 74%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  background: #fff;
  color: #26374f;
  box-shadow: var(--shadow-card);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, #2f84ff, #1f73ef);
  color: #fff;
}

.chat-time {
  margin-top: 4px;
  font-size: 9.5px;
  color: #a0aabe;
  text-align: right;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input-row .form-textarea {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
}

.chat-send {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #1f73ef, #2f84ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chat-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.chat-quick button {
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: rgba(47, 132, 255, 0.1);
  color: var(--blue);
  font-size: 11px;
  cursor: pointer;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stat-cell {
  padding: 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.stat-cell-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.stat-cell-label {
  margin-top: 4px;
  font-size: 10.5px;
  color: #8a97aa;
}

.stat-cell--green .stat-cell-value {
  color: #16af80;
}

.stat-cell--orange .stat-cell-value {
  color: #f2872c;
}

.knowledge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #5b6b82;
}

.knowledge-name {
  width: 88px;
  flex-shrink: 0;
}

.knowledge-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(47, 132, 255, 0.12);
  overflow: hidden;
}

.knowledge-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4bbd95, #27b78f);
}

.knowledge-value {
  width: 38px;
  text-align: right;
  color: #2a3c57;
  font-weight: 600;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  margin-bottom: 8px;
  border: none;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  font-size: 12.5px;
  color: #2a3c57;
  cursor: pointer;
}

.task-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid #d7e2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
}

.task-row--done .task-box {
  background: linear-gradient(135deg, #2f84ff, #1f73ef);
  border-color: transparent;
  color: #fff;
}

.task-row--done .task-text {
  color: #a0aabe;
  text-decoration: line-through;
}

.faq-item {
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-q {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: none;
  background: none;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: #26374f;
  cursor: pointer;
}

.faq-a {
  padding: 0 11px 11px 30px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6f7d93;
}

.attempt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 11.5px;
  color: #5b6b82;
}

.attempt-score {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}

.link-line {
  display: inline-block;
  margin-top: 6px;
  border: none;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--blue);
  cursor: pointer;
}

/* 学业页：年级 / 册次选择 */
.chip-row--grades,
.chip-row--terms {
  flex-wrap: wrap;
}

.chip--grade,
.chip--term {
  height: 30px;
  padding: 0 9px;
}

/* AI 答疑：回答里带题干与选项，气泡放宽一点 */
.chat-bubble--qa {
  max-width: 88%;
  font-size: 12px;
  line-height: 1.6;
}
