/* Shared workspace frame; Editorial greeting, existing brand and system font.
   Content width 1100px; two game columns: (1100 - 24) / 2 = 538px. */
.app { background: #f5f7f5; }
.sidebar { background: #fafbf9; border-color: #e3e8e5; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sidebar .brand { padding: 10px 8px 24px; align-items: flex-start; }
.sidebar .brand-mark { background: transparent; border: 0; box-shadow: none; }
.sidebar .brand-name { font-size: 14px; font-weight: 600; }
.sidebar .brand-sub { color: #626c68; font-size: 11px; line-height: 1.6; }
.sidebar .side-label { font-size: 12px; color: #626c68; letter-spacing: 0; text-transform: none; margin-bottom: 10px; }
.sidebar .side-group + .side-group { margin-top: 28px; }
.sidebar .side-item { min-height: 40px; border-radius: 8px; color: #46544c; font-size: 14px; }
.sidebar .side-sub .side-item { font-size: 13px; }
.sidebar .side-item.is-active { background: #e9eeea; color: #1f5949; font-weight: 600; box-shadow: none; }
.sidebar .side-item.is-active::before { display: none; }
.sidebar .side-item.is-soon { opacity: 1; color: #626c68; }
.app:not(.is-nav-open) .sidebar { box-shadow: none; }
.sidebar .side-item:hover:not(.is-soon) { background: #edf1ed; }
.sidebar .side-sub::before { background: #e3e8e5; }
.sidebar .side-foot { border-color: #e3e8e5; padding-top: 16px; }
.sidebar .side-user { border-radius: 8px; padding: 10px 8px; }
.sidebar .side-user-role { color: #626c68; font-size: 12px; }
.topbar { background: #fafbf9; border-color: #e3e8e5; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.topbar .crumbs { color: #626c68; font-size: 13px; }
.topbar .child-switch { min-height: 42px; background: #fff; border-color: #dce3dd; border-radius: 8px; box-shadow: none; padding: 5px 10px; }
.topbar .child-switch-grade { color: #626c68; font-size: 11px; }
.topbar .avatar, .sidebar .avatar { background: #edf3ee; color: #345b46; border-color: #dce6dd; }
.topbar .icon-btn:focus-visible, .sidebar button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* Authentication is a form, not a marketing page. Brand left, one action right. */
.auth { display: flex; justify-content: center; align-items: center; min-height: 100dvh; padding: 40px 24px; background: #f5f7f5; }
.auth-card { width: min(100%, 880px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 48px; padding: 40px; border: 1px solid #e0e7e1; border-radius: 16px; background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth-card::before { display: none; }
.auth-brandbar { grid-column: 1; grid-row: 1 / 5; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 12px; padding: 8px 28px 20px 0; border-bottom: 0; border-right: 1px solid #e3e8e5; }
.auth-brandbar .brand-mark { width: 42px; height: 42px; background: none; border: 0; box-shadow: none; }
.auth-brand-copy { flex: 1; }
.auth-brand-name { font-size: 16px; line-height: 1.5; }
.auth-brand-sub { font-size: 12px; color: #626c68; line-height: 1.7; margin-top: 6px; }
.auth-intro { width: 100%; margin-top: 72px; }
.auth-intro p { font-size: 28px; font-weight: 500; line-height: 1.55; letter-spacing: -.03em; margin: 0 0 24px; color: #254a39; }
.auth-intro span { font-size: 13px; line-height: 2; color: #626c68; }
.auth-head, .auth-form, .auth-foot { grid-column: 2; min-width: 0; }
.auth-head { margin-top: 0; }
.auth-kicker { font-size: 12px; letter-spacing: 0; font-weight: 400; color: #626c68; }
.auth-kicker::before { display: none; }
.auth-head .h1 { font-size: 28px; font-weight: 600; margin-top: 8px; }
.auth-form { margin-top: 28px; gap: 20px; }
.auth-form .label { font-size: 14px; color: #28382f; }
.auth-form .input { height: 48px; border-radius: 8px; border-color: #cbd5cd; background: #fff; box-shadow: none; }
.auth-form .input::placeholder { color: #69736d; }
.auth-form .input:focus { border-color: var(--brand-600); outline: 2px solid #dcece3; outline-offset: 1px; }
.auth-form .input-icon-btn { min-width: 44px; min-height: 44px; }
.auth-submit { background: var(--brand-600); border-radius: 8px; box-shadow: none; font-size: 14px; }
.auth-foot { border-top: 1px solid #e3e8e5; margin-top: 28px; padding-top: 20px; }
.auth-wechat summary { color: #46544c; font-size: 13px; line-height: 1.6; padding-right: 20px; }
.auth-wechat-card { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 12px 0 0; background: none; border: 0; box-shadow: none; }
.auth-wechat-card img { width: 96px; height: 96px; border-radius: 0; }
.auth-wechat-card span { font-size: 12px; color: #626c68; }

/* Learning catalogue: actual game artwork, balanced cards, visible next action. */
.learning-games-page, .members-page { max-width: 1100px; margin: 0 auto; }
.learning-games-page .h1, .members-page .h1 { font-size: 24px; font-weight: 600; }
.learning-games-page .page-sub, .members-page .page-sub { font-size: 14px; line-height: 1.7; color: #626c68; max-width: 66ch; }
.learning-games-page .games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.learning-games-page .game-card { padding: 0 24px 24px; gap: 16px; background: #fff; border: 1px solid #e0e7e1; border-radius: 16px; box-shadow: none; overflow: hidden; }
.learning-games-page .game-card:hover { transform: none; box-shadow: none; border-color: #a8bdae; }
.learning-games-page .game-cover { aspect-ratio: 16 / 10; margin: 0 -24px 4px; border-radius: 0; }
.learning-games-page .game-cover-badge { background: #fff; color: #365846; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 12px; }
.learning-games-page .game-title { font-size: 20px; font-weight: 600; }
.learning-games-page .game-desc { font-size: 14px; line-height: 1.8; color: #526057; }
.learning-games-page .game-meta { color: #626c68; font-size: 12px; }
.learning-games-page .game-play { min-height: 44px; border-radius: 8px; box-shadow: none; background: var(--brand-50); color: var(--brand-700); border-color: #ccddd2; }
.learning-games-page .game-play:hover { background: var(--brand-100); }

/* Member list: preserve every field and every operation at all widths. */
.members-page .card { border: 1px solid #e0e7e1; border-radius: 16px; box-shadow: none; background: #fff; backdrop-filter: none; }
.members-page .page-head-actions .btn { min-height: 40px; border-radius: 8px; box-shadow: none; }
.members-page .page-head-actions .btn-primary { background: var(--brand-600); }
.members-page .toolbar { gap: 12px; flex-wrap: wrap; }
.members-page .input, .members-page .select { min-height: 40px; border-radius: 8px; background-color: #fff; border-color: #ccd6ce; }
.members-page .input::placeholder { color: #69736d; }
.members-page .table th { background: #fff; color: #626c68; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.members-page button, .members-page .btn { box-shadow: none; }
.members-page .table td { padding-top: 20px; padding-bottom: 20px; border-color: #edf1ee; font-size: 13px; }
.members-page .user-name { font-size: 14px; }
.members-page .micro, .members-page .user-sub, .members-page .dim { color: #626c68; font-size: 12px; }
.members-page .table tbody tr:hover { background: #f7f9f7; }
.members-page .pager { border-color: #e3e8e5; gap: 12px; flex-wrap: wrap; }

/* 家长端「我的孩子」：一行一个孩子。姓名/年级、账号、状态、最近活跃共用一条基线，
   操作只有「编辑」和更多两项；整行不可点。手机端压成三段：姓名+操作、账号、状态+活跃。 */
.members-page .kid-head,
.members-page .kid-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 88px 96px 96px;
  gap: 0 20px;
  align-items: center;
}
.members-page .kid-head {
  padding: 16px 24px 10px;
  color: #626c68;
  font-size: 12px;
}
.members-page .kid-list { list-style: none; margin: 0; padding: 0; }
.members-page .kid-row { padding: 14px 24px; border-top: 1px solid #edf1ee; }
.members-page .kid-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.members-page .kid-row .avatar { width: 40px; height: 40px; flex: none; font-size: 15px; }
.members-page .kid-id { min-width: 0; }
.members-page .kid-name { font-size: 15px; font-weight: 600; line-height: 1.35; color: #1f2a24; }
.members-page .kid-meta { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #626c68; }
.members-page .kid-detail { display: contents; }
.members-page .kid-account { font-size: 13px; color: #1f2a24; overflow-wrap: anywhere; }
.members-page .kid-facts { display: contents; }
.members-page .kid-last { font-size: 13px; color: #626c68; font-variant-numeric: tabular-nums; white-space: nowrap; }
.members-page .kid-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.members-page .kid-actions .btn { min-height: 32px; padding: 0 8px; }
.members-page .kid-foot { padding: 14px 24px 16px; border-top: 1px solid #edf1ee; font-size: 12.5px; color: #626c68; }
.members-page .kid-pager { padding: 12px 24px; }
@media (max-width: 900px) {
  .auth-card { column-gap: 28px; padding: 28px; }
  .auth-brandbar { padding-right: 20px; }
  .auth-intro p { font-size: 24px; }
  .learning-games-page .games-grid { gap: 16px; }
  .learning-games-page .game-card { padding: 0 16px 20px; }
  .learning-games-page .game-cover { margin-left: -16px; margin-right: -16px; }
  .members-page .table-wrap { overflow: visible; }
  .members-page .table, .members-page .table tbody { display: block; width: 100%; min-width: 0; }
  .members-page .table thead { display: none; }
  .members-page .table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 24px; padding: 20px 24px; border-top: 1px solid #e3e8e5; }
  .members-page .table td { display: block; width: auto !important; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .members-page .table td:first-child { grid-column: 1/-1; }
  .members-page .table td[data-label]::before { content: attr(data-label); display: block; color: #626c68; font-size: 12px; margin-bottom: 4px; }
  .members-page .table td:last-child { grid-column: 1/-1; }
  .members-page .table td:last-child .btn, .members-page .table td:last-child .icon-btn { min-height: 44px; min-width: 44px; }
}
@media (max-width: 640px) {
  .auth { padding: 20px 16px; align-items: flex-start; }
  .auth-card { display: block; padding: 24px; border-radius: 12px; }
  .auth-brandbar { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #e3e8e5; }
  .auth-brand-name { font-size: 14px; }
  .auth-brand-sub { font-size: 12px; }
  .auth-intro { display: none; }
  .auth-head { margin-top: 24px; }
  .auth-head .h1 { font-size: 24px; }
  .topbar { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .topbar .crumbs { font-size: 12px; gap: 6px; }
  .topbar .child-switch { padding: 4px 8px; min-height: 44px; }
  .sidebar .side-item { min-height: 44px; }
  .learning-games-page, .members-page { margin: 0 4px; }
  .learning-games-page .games-grid { grid-template-columns: minmax(0,1fr); }
  .learning-games-page .game-title { font-size: 18px; }
  .learning-games-page .h1, .members-page .h1 { font-size: 22px; }
  .members-page .page-head { gap: 16px; }
  .members-page .card-body { padding: 16px; }
  .members-page .toolbar .search { flex-basis: 100%; max-width: none !important; }
  .members-page .toolbar .input, .members-page .toolbar .select { min-height: 44px; }
  .members-page .table tr { padding: 20px 16px; gap: 16px; }
  .members-page .user-cell { align-items: flex-start; }
  .members-page .pager { padding: 16px; }
  .members-page .page-head-actions .btn { min-height: 44px; }
}
@media (max-width: 720px) {
  .members-page .kid-head { display: none; }
  .members-page .kid-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "who actions" "detail detail";
    gap: 4px 12px;
    padding: 14px 16px;
  }
  .members-page .kid-who { grid-area: who; align-items: flex-start; }
  .members-page .kid-row .avatar { width: 36px; height: 36px; font-size: 14px; }
  .members-page .kid-name { font-size: 15px; }
  .members-page .kid-meta { font-size: 12.5px; }
  .members-page .kid-detail {
    grid-area: detail;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding-left: 48px;
    font-size: 13px;
  }
  .members-page .kid-account { font-size: 13px; }
  .members-page .kid-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
  .members-page .kid-facts::before { content: "·"; color: #9aa39d; }
  .members-page .kid-last { font-size: 12.5px; }
  .members-page .kid-last::before { content: "·"; margin-right: 8px; color: #9aa39d; }
  .members-page .kid-actions { grid-area: actions; align-self: start; }
  .members-page .kid-actions .btn { min-height: 44px; }
  .members-page .kid-actions .icon-btn { min-width: 44px; min-height: 44px; }
  .members-page .kid-foot { padding: 14px 16px; }
  .members-page .kid-pager { padding: 12px 16px; }
  /* 手机上标题说明与主操作各占一行，按钮拉满整行，拇指好按 */
  .members-page .page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .members-page .page-head-actions { width: 100%; }
  .members-page .page-head-actions .btn { flex: 1; justify-content: center; }
}
