/* 平板保留紧凑卡片，桌面切换为横版网页工作台。 */
@media (min-width:700px) and (max-width:899px){
  body{padding:20px 0}
  .app-shell{border-radius:34px;min-height:calc(100vh - 40px)}
  .bottom-nav{bottom:20px;border-radius:0 0 34px 34px}
  .modal{border-radius:30px;margin-bottom:20px}
}

/* 学习宇宙二级页：驾驶舱背景、独立学习星球与中央学习人物。 */
.study-universe-page{position:relative;overflow:hidden;background:#07154f;color:#fff}
.study-back{position:absolute;z-index:7;left:20px;top:18px;border:1px solid #ffffff62;border-radius:18px;padding:9px 15px;background:#071444b8;color:#fff;font-weight:700;backdrop-filter:blur(10px)}
.study-heading{position:relative;z-index:5;padding:72px 4px 4px}
.study-heading p{margin:0;color:#b8dfff;font-size:10px;font-weight:800;letter-spacing:1.5px}
.study-heading h2{margin:2px 0;font-size:28px}.study-heading span{font-size:12px;color:#dceaff}
.study-orbit{position:relative;min-height:590px;margin:0 -18px;background:url("assets/study/cockpit-bg.png") center/cover no-repeat}
.study-topic{position:absolute;z-index:4;width:44%;aspect-ratio:1;border:0;background-color:transparent;background-position:center;background-repeat:no-repeat;background-size:contain;cursor:pointer;animation:planet-float 4.2s ease-in-out infinite;transition:scale .2s ease}
.study-topic:hover{scale:1.035;animation-play-state:paused}.study-topic:active{scale:.98}
.topic-english{left:1%;top:1%;background-image:url("assets/study/english.png");animation-delay:-.7s}
.topic-chinese{right:1%;top:1%;background-image:url("assets/study/chinese.png");animation-delay:-1.8s}
.topic-math{left:1%;bottom:4%;background-image:url("assets/study/math.png");animation-delay:-2.7s}
.topic-other{right:1%;bottom:4%;background-image:url("assets/study/other.png");animation-delay:-3.5s}
.study-character{position:absolute;z-index:3;left:50%;bottom:9%;translate:-50% 0;width:43%;height:66%;background:url("assets/study/study-boy.png") center bottom/contain no-repeat;filter:drop-shadow(0 12px 16px rgba(0,18,70,.55));pointer-events:none}

@media (min-width:900px){
  .app-shell:has(#study-page.active){width:100%;height:100vh;min-height:680px;padding:0;border-radius:0;background:#020a35;box-shadow:none}
  .app-shell:has(#study-page.active) .topbar{display:none}
  .app-shell:has(#study-page.active) main{width:100%;max-width:none;height:100vh;margin:0}
  #study-page.active{display:block;width:100%;height:100vh;min-height:680px;padding:0;background:url("assets/study/cockpit-bg.png") center/cover no-repeat;animation:none}
  #study-page .study-heading{position:absolute;z-index:6;left:4%;top:3%;padding:0;text-shadow:0 3px 9px #000}
  #study-page .study-heading p{font-size:11px;letter-spacing:2px}
  #study-page .study-heading h2{font-size:38px;margin:2px 0}
  #study-page .study-heading span{font-size:15px;font-weight:600}
  #study-page .study-back{left:4%;top:17%;font-size:14px;padding:10px 17px}
  #study-page .study-orbit{position:absolute;inset:0;min-height:0;margin:0;background:none}
  #study-page .study-topic{width:23%;height:34%;aspect-ratio:auto}
  #study-page .topic-english{left:12%;top:9%}
  #study-page .topic-chinese{right:12%;top:9%}
  #study-page .topic-math{left:12%;bottom:13%}
  #study-page .topic-other{right:12%;bottom:13%}
  #study-page .study-character{width:22%;height:65%;bottom:13%}
  .app-shell:has(#study-page.active) .bottom-nav{bottom:14px;background:#fff;box-shadow:0 10px 36px #020727cc,0 0 0 7px #173d8388}
}

/* 新导航图片图标与干净封面文字。 */
.bottom-nav span img{display:block;width:31px;height:31px;margin:0 auto;object-fit:contain}
.book-cover img~span,.book-cover img~b{
  background:transparent;border-radius:0;padding:2px 3px;
  text-shadow:0 2px 4px #000,0 0 8px #0009
}

/* 礼品图片严格限制在展示框内，完整显示且不溢出。 */
.reward-visual{position:relative;overflow:hidden;min-width:0;min-height:0}
.reward-visual img{
  position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);
  max-width:calc(100% - 16px);max-height:calc(100% - 16px);
  object-fit:contain;border-radius:12px
}
.reward-card .cost{z-index:2}

/* 家长设置中心。 */
.app-shell:has(#parent-page.active){background:linear-gradient(145deg,#24106d,#4930b8)}
.parent-page{color:#fff}.parent-heading{display:flex;align-items:center;gap:18px}.parent-heading>button{border:1px solid #ffffff55;border-radius:17px;padding:9px 14px;background:#ffffff14;color:#fff}.parent-heading>div{flex:1}.parent-heading p{margin:0;color:#cec3ff;font-size:10px;font-weight:900;letter-spacing:1.5px}.parent-heading h2{margin:3px 0;font-size:28px}.parent-heading small{color:#ded7ff}.parent-heading>span{padding:9px 13px;border-radius:14px;background:#ffffff16;font-size:11px}
.parent-tabs{display:flex;gap:9px;margin:20px 0 13px}.parent-tabs button{border:0;border-radius:16px;padding:11px 18px;background:#ffffff1c;color:#ddd5ff;font-weight:800}.parent-tabs button.active{background:#fff;color:#5b43c5}
.parent-panel{display:none;padding:20px;border-radius:25px;background:#fff;color:#312c46}.parent-panel.active{display:block}.parent-panel-title{display:flex;align-items:center;justify-content:space-between}.parent-panel-title h3{margin:0;font-size:20px}.parent-panel-title p{margin:4px 0 0;color:#9a94a6;font-size:11px}.parent-panel-title>button{border:0;border-radius:14px;padding:11px 15px;background:#6750d7;color:#fff;font-weight:800}
.parent-manage-list,.parent-reward-list{display:grid;gap:9px;margin-top:16px}.parent-manage-list article,.parent-reward-list article{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #ece8f5;border-radius:17px;background:#faf9ff}.parent-manage-list article>span,.parent-reward-thumb{width:45px;height:45px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#eeeaff;font-size:24px}.parent-reward-thumb img,.reward-visual img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.parent-manage-list article>div,.parent-reward-list article>div:nth-child(2){flex:1}.parent-manage-list b,.parent-manage-list small,.parent-reward-list b,.parent-reward-list small{display:block}.parent-manage-list small,.parent-reward-list small{margin-top:3px;color:#9992a6;font-size:10px}.parent-manage-list article>button,.parent-reward-list article>button{border:0;border-radius:10px;padding:8px 11px;background:#eeeaff;color:#5e49be;font-weight:700}.parent-manage-list .danger-link,.parent-reward-list .danger-link{background:#fff0f1;color:#dd4f5a}

@media (min-width:900px){
  .app-shell:has(#parent-page.active){min-height:100vh;padding:30px 42px 105px}.app-shell:has(#parent-page.active) .topbar{display:none}
  #parent-page.active{display:block;max-width:1180px;margin:auto;padding:0}.parent-manage-list,.parent-reward-list{grid-template-columns:1fr 1fr}
}
.field-tip{display:block;margin-top:5px;color:#999;font-size:10px;font-weight:500}

@media (min-width:900px){
  .bottom-nav span img{width:28px;height:28px}
}

@media (min-width:900px) and (max-width:1180px){
  #study-page .study-topic{width:25%}
  #study-page .topic-english,#study-page .topic-math{left:8%}
  #study-page .topic-chinese,#study-page .topic-other{right:8%}
  #study-page .study-character{width:25%}
}

@media (prefers-reduced-motion:reduce){.study-topic{animation:none;transition:none}}

/* 图书馆二级页：儿童阅读记录书架。 */
.library-page{color:#46304c;background:linear-gradient(145deg,#fffaf3,#f2eeff);border-radius:24px;overflow:hidden}
.library-side{padding:20px;background:linear-gradient(160deg,#fff,#fff6e9);border-right:1px dashed #dec9bd}
.library-back{border:0;background:none;color:#725994;font-weight:700;padding:0 0 18px}
.library-brand{display:grid;grid-template-columns:42px 1fr;align-items:center}.library-brand>span{grid-row:1/3;font-size:30px}.library-brand b{font-size:18px}.library-brand small{color:#a38d91}
.library-side nav{display:grid;gap:8px;margin-top:22px}.library-side nav button{border:0;border-radius:13px;padding:11px 13px;background:transparent;color:#765e73;text-align:left}.library-side nav button.active{background:#eee7df;color:#7b492d;font-weight:800}
.reading-total{margin-top:20px;padding:14px;border-radius:16px;background:#fff;box-shadow:0 7px 20px #6f56721d}.reading-total strong{font-size:26px;color:#6447c2}.reading-total span{font-weight:700}.reading-total small{display:block;color:#9a8798}.add-book-button{width:100%;margin-top:10px;padding:11px;border:0;border-radius:13px;background:linear-gradient(135deg,#7357d9,#4f8be8);color:#fff;font-weight:800;box-shadow:0 7px 17px #624cc344}
.library-content{padding:20px}.library-header{display:flex;align-items:center;justify-content:space-between;gap:18px}.library-header p{margin:0;color:#a47b68;font-size:10px;font-weight:800;letter-spacing:1.5px}.library-header h2{margin:3px 0;font-size:27px}.library-search{width:45%;padding:11px 15px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px #e9dfdb;color:#aaa;font-size:12px}
.shelf-section{margin-top:21px}.shelf-title{display:flex;align-items:center;justify-content:space-between}.shelf-title>span{display:grid;grid-template-columns:30px auto;align-items:center}.shelf-title i{grid-row:1/3;font-style:normal;font-size:22px}.shelf-title b{font-size:15px}.shelf-title small{font-size:10px;color:#aa9091}.shelf-title em{font-style:normal;color:#9c8395;font-size:11px}
.book-row{position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;gap:25px 15px;min-height:150px;margin-top:4px;padding:7px 10px 18px;overflow:visible}.book-row::after{content:"";position:absolute;z-index:0;left:0;right:0;bottom:10px;height:8px;border-radius:4px;background:linear-gradient(#f1e6d0,#d7c5a7);box-shadow:0 5px 8px #76552d35}.book-row.drop-ready{border-radius:14px;background:#7557d918;box-shadow:inset 0 0 0 2px #7557d966}.book-card{position:relative;z-index:1;flex:0 0 112px;cursor:grab;user-select:none;touch-action:pan-y}.book-card.current{flex-basis:112px}.book-card.dragging{opacity:.45;scale:.96}.book-cover{position:relative;isolation:isolate;width:92px;height:132px;border-radius:4px 9px 9px 4px;padding:10px 7px;color:#fff;box-shadow:5px 4px 9px #3c254c40;display:flex;flex-direction:column;text-align:center;overflow:hidden}.book-cover img{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover}.book-cover img~span,.book-cover img~b{position:relative;z-index:1;padding:2px 3px;border-radius:4px;background:#1e174f9c;text-shadow:0 1px 3px #000}.book-cover span{position:relative;z-index:1;font-size:7px;letter-spacing:1px}.book-cover b{position:relative;z-index:1;font-size:13px;margin-top:5px}.book-cover i{position:relative;z-index:1;font-size:30px;font-style:normal;margin:auto}.delete-book,.edit-book{position:absolute;z-index:4;top:-8px;width:25px;height:25px;padding:0;border:2px solid #fff;border-radius:50%;color:#fff;font-size:16px;line-height:19px;box-shadow:0 4px 9px #6c233b55;cursor:pointer;opacity:0;transition:.2s}.delete-book{right:8px;background:#ff626b;font-size:18px}.edit-book{right:36px;background:#6655d9}.book-card:hover .delete-book,.book-card:hover .edit-book,.delete-book:focus,.edit-book:focus{opacity:1}.cover-blue{background:linear-gradient(145deg,#37bfe7,#245eb6)}.cover-yellow{background:linear-gradient(145deg,#f7cf54,#e28c23)}.cover-green{background:linear-gradient(145deg,#68c982,#27795a)}.cover-purple{background:linear-gradient(145deg,#b77fea,#6541a1)}.cover-red{background:linear-gradient(145deg,#ff8e83,#b53b4e)}.cover-cyan{background:linear-gradient(145deg,#60d5d5,#227f98)}.cover-orange{background:linear-gradient(145deg,#ffb45a,#d96328)}.cover-navy{background:linear-gradient(145deg,#505c91,#191e4f)}
.move-book-sheet{display:grid;gap:10px}.move-book-sheet p{margin:0 0 5px;color:#888}.move-book-sheet button{border:0;border-radius:15px;padding:13px;background:#f2efff;color:#5644af;font-weight:800;text-align:left}
.danger-button{background:#ef5964!important}

@media (hover:none){.delete-book,.edit-book{opacity:1}}
.reflection-modal>p{color:#756e8d;line-height:1.7}.reflection-modal .reflection-book{margin:2px 0 8px;color:#27234e;font-size:20px;font-weight:800}.reflection-modal b{color:#f19a13}.reflection-upload{display:flex!important;align-items:center;justify-content:center;min-height:76px;border:2px dashed #9b83ea!important;border-radius:18px;background:#f5f1ff;color:#6047d9;text-align:center;cursor:pointer}.reflection-upload input{position:absolute;width:1px;height:1px;opacity:0}.reflection-preview{display:grid;place-items:center;min-height:150px;margin:14px 0;border-radius:18px;background:#f7f5fc;color:#9a94aa;overflow:hidden}.reflection-preview img{display:block;width:100%;max-height:310px;object-fit:contain;background:#eeeaf9}

@media (min-width:900px){
  .app-shell:has(#library-page.active){min-height:100vh;padding:28px 40px 105px;background:radial-gradient(circle at 15% 8%,#efe9ff,#f7f3ff 42%,#e8edf8)}
  .app-shell:has(#library-page.active) .topbar{display:none}
  #library-page.active{display:grid;grid-template-columns:205px 1fr;max-width:1320px;height:calc(100vh - 133px);min-height:600px;margin:auto;padding:0;box-shadow:0 18px 45px #291b4c30}
  .library-side{padding:28px 22px}.library-back{padding-bottom:25px}.library-side nav{margin-top:22px}.reading-total{position:static;width:auto}
  .library-content{padding:26px 32px;overflow:auto}.library-header h2{font-size:30px}.library-search{max-width:370px}
  .shelf-section{margin-top:19px}.book-row{column-gap:25px;padding-left:18px}.book-card{flex-basis:125px}.book-cover{width:100px;height:130px}.book-card.current{flex-basis:125px}
}

@media (max-width:899px){
  .library-page{margin:0 -5px;border-radius:0}.library-side{border:0}.library-side nav{display:none}.reading-total{display:inline-block;margin-right:8px}.add-book-button{display:inline-block;width:auto;padding:11px 17px}.library-content{padding:16px}.library-header{display:block}.library-search{width:100%;margin-top:12px}.library-page .bottom-nav{display:grid}.book-card.current{flex-basis:112px}
}

/* 二级功能页统一为连续紫色底，取消灰白分段。 */
.app-shell:has(#tasks-page.active),
.app-shell:has(#rewards-page.active),
.app-shell:has(#profile-page.active){
  background:linear-gradient(150deg,#26106f 0%,#3f249b 42%,#573bd0 100%);
}

/* 四个学科独立页面。 */
.app-shell:has(.subject-page.active){background:linear-gradient(145deg,#24106d,#4930b8);color:#fff}
.subject-page{min-height:calc(100vh - 188px);color:#fff}
.subject-back{border:1px solid #ffffff55;border-radius:18px;padding:9px 15px;background:#ffffff14;color:#fff;font-weight:700}
.subject-hero{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:18px;margin-top:18px;padding:22px 25px;border:1px solid #ffffff38;border-radius:27px;background:#ffffff16;box-shadow:inset 0 1px #ffffff38;backdrop-filter:blur(12px)}
.subject-hero>span{width:66px;height:66px;border-radius:22px;display:grid;place-items:center;background:#fff;color:#5638bd;font-size:24px;font-weight:900;box-shadow:0 9px 22px #12074c55}.subject-hero p{margin:0;color:#d9d0ff;font-size:10px;font-weight:900;letter-spacing:1.5px}.subject-hero h2{margin:3px 0;font-size:25px}.subject-hero small{color:#e5e0ff}.subject-hero strong{padding:9px 13px;border-radius:15px;background:#160b5b77;font-size:12px}
.subject-progress{display:grid;grid-template-columns:150px 1fr 50px;align-items:center;gap:18px;margin-top:17px;padding:17px 22px;border-radius:22px;background:#fff;color:#33294d}.subject-progress span b,.subject-progress span small{display:block}.subject-progress span small{margin-top:3px;color:#9991a8;font-size:10px}.subject-progress>div{height:10px;border-radius:10px;background:#e9e4f7;overflow:hidden}.subject-progress>div i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#7254df,#4e9bea)}.subject-progress em{font-style:normal;font-weight:900;color:#654bd0}
.subject-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:17px}.subject-card{display:flex;align-items:center;gap:15px;width:100%;padding:16px 18px;border:1px solid #ffffff38;border-radius:21px;background:#ffffffee;color:#33294d;text-align:left;box-shadow:0 7px 20px #16084b25}.subject-card>i{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#eee9ff;font-size:25px;font-style:normal}.subject-card>span{flex:1}.subject-card b,.subject-card small{display:block}.subject-card b{font-size:14px}.subject-card small{margin-top:4px;color:#948ba4;font-size:10px}.subject-card>em{font-style:normal;color:#684fd0;font-size:11px;font-weight:800}.subject-card:hover{translate:0 -2px;box-shadow:0 10px 24px #14094e55}.subject-chinese .subject-hero>span{color:#b76a13;background:#fff1bd}.subject-math .subject-hero>span{color:#1169b8;background:#d9f3ff}.subject-other .subject-hero>span{background:#ffe3d9}.add-custom-card{background:linear-gradient(135deg,#fff,#eee8ff)}

@media (min-width:900px){
  .app-shell:has(.subject-page.active){min-height:100vh;padding:25px 42px 105px;background:linear-gradient(145deg,#24106d,#4930b8)}
  .app-shell:has(.subject-page.active) .topbar{display:none}
  .subject-page.active{display:block;max-width:1180px;min-height:0;margin:auto;padding:0}
  .subject-back{margin-top:2px}.subject-hero{margin-top:14px;padding:20px 28px}.subject-hero h2{font-size:30px}
  .subject-grid{grid-template-columns:1fr 1fr;gap:15px}.subject-card{min-height:92px;padding:17px 20px}.subject-card b{font-size:16px}.subject-card small{font-size:11px}
}
.app-shell:has(#library-page.active){background:#35208e}
#tasks-page.active,#rewards-page.active,#profile-page.active{background:transparent}

@media (min-width:900px){
  .app-shell:has(#tasks-page.active),
  .app-shell:has(#rewards-page.active),
  .app-shell:has(#profile-page.active){
    min-height:100vh;background:linear-gradient(145deg,#24106d 0%,#3c2499 45%,#5639ca 100%);
  }
  .app-shell:has(#library-page.active){background:#35208e}
}

@media (min-width:900px){
  body{min-height:100vh;padding:0;background:#100944;overflow-x:hidden}
  .stars{background:radial-gradient(circle at 18% 12%,#5b35b6 0,transparent 30%),radial-gradient(circle at 83% 18%,#0c4bad 0,transparent 32%),radial-gradient(#fff 1px,transparent 1px);background-size:auto,auto,48px 48px}
  .app-shell{width:100%;max-width:none;min-height:100vh;border-radius:0;background:linear-gradient(180deg,#28146f 0,#4d37b9 52%,#f6f4ff 52%);padding:0 42px 105px;box-shadow:none;overflow:visible}
  .topbar{height:94px;padding:18px 6px;max-width:1440px;margin:auto}
  .avatar{width:52px;height:52px;border-radius:18px}
  .avatar-button b{font-size:18px}
  .score-card{height:58px;min-width:170px;justify-content:center}
  main{max-width:1440px;margin:auto}
  .page{padding:0}
  .page.active{display:block}
  #home-page.active{display:grid;grid-template-columns:minmax(560px,1.2fr) minmax(360px,.8fr);grid-template-rows:auto 1fr auto;column-gap:42px;align-items:start}
  #home-page .hero-copy{grid-column:1;grid-row:1;height:118px;padding:12px 8px}
  #home-page .hero-copy h1{font-size:38px}
  #home-page .hero-copy>p:last-child{font-size:15px}
  #home-page .mission-orbit{grid-column:1;grid-row:2 / span 2;height:530px;margin:0;background:radial-gradient(circle at 50% 50%,#8974ef66 0,transparent 46%)}
  #home-page .ring-one{width:600px;height:330px}
  #home-page .ring-two{width:440px;height:440px}
  #home-page .planet-core{width:175px;height:175px}
  #home-page .planet-face{font-size:38px}
  #home-page .sprout{font-size:56px;top:-32px}
  #home-page .level-pill{font-size:14px;padding:7px 17px}
  #home-page .planet{width:145px;height:145px}
  #home-page .planet-icon{font-size:40px}
  #home-page .planet b{font-size:22px}
  #home-page .planet small{font-size:11px}
  #home-page .planet-reading{left:5%;top:22px}
  #home-page .planet-study{right:5%;top:18px}
  #home-page .planet-manner{right:7%;bottom:22px}
  #home-page .planet-sport{left:7%;bottom:18px}
  #home-page .today-card{grid-column:2;grid-row:1 / span 2;margin-top:14px;padding:23px;border-radius:28px;min-height:330px}
  #home-page .card-title{font-size:18px}
  #home-page .mini-task{padding:14px 2px}
  #home-page .mini-task .task-dot{width:42px;height:42px;font-size:20px}
  #home-page .mini-task b{font-size:14px}
  #home-page .reward-banner{grid-column:2;grid-row:3;margin:18px 0 0;padding:20px;border-radius:26px}
  .bottom-nav{left:50%;bottom:18px;width:480px;height:72px;border-radius:24px;box-shadow:0 12px 34px #170c503d;border:1px solid #eeeaf5;padding:7px 18px}
  .bottom-nav span{font-size:25px}
  .bottom-nav b{font-size:11px}
  #tasks-page,#rewards-page,#profile-page{max-width:1180px;margin:auto}
  .section-heading{height:120px}
  .summary-panel{min-height:130px;padding:22px 30px}
  .task-list{grid-template-columns:1fr 1fr;gap:14px}
  .task-card{min-height:82px;padding:16px}
  .parent-add{max-width:360px;display:block;margin:20px auto}
  .reward-grid{grid-template-columns:repeat(3,1fr);gap:18px}
  .reward-visual{height:150px;font-size:70px}
  .reward-card{padding:16px}
  .reward-card h3{font-size:16px}
  .profile-hero{padding:20px 0}
  .stats-grid{width:100%;max-width:850px;margin:0 auto 18px}
  .settings-card{max-width:850px;margin:auto}
  .modal-backdrop{place-items:center}
  .modal{width:min(520px,90vw);border-radius:30px;padding:30px;margin:0}
}

@media (min-width:1400px){
  .app-shell{padding-left:64px;padding-right:64px}
  #home-page.active{grid-template-columns:minmax(700px,1.35fr) minmax(420px,.65fr);column-gap:58px}
  #home-page .mission-orbit{height:570px}
  #home-page .ring-one{width:720px;height:360px}
  #home-page .ring-two{width:500px;height:500px}
  #home-page .planet{width:158px;height:158px}
}

@media (min-width:900px) and (max-height:760px){
  .topbar{height:78px}
  .app-shell{padding-bottom:85px}
  #home-page .hero-copy{height:94px;padding-top:2px}
  #home-page .hero-copy h1{font-size:32px}
  #home-page .mission-orbit{height:450px}
  #home-page .planet{width:125px;height:125px}
  #home-page .planet-icon{font-size:32px}
  #home-page .planet-core{width:150px;height:150px}
  .bottom-nav{height:64px;bottom:10px}
}

.level-card,.desktop-growth-cta,.planet-exam,.orbit-stars{display:none}

/* 沉浸式宇宙驾驶舱首页 */
@media (min-width:900px){
  .app-shell:has(#home-page.active){
    min-height:100vh;padding:0;overflow:hidden;
    background:
      radial-gradient(circle at 50% 48%,rgba(25,103,255,.3) 0,rgba(9,25,104,.12) 30%,transparent 54%),
      linear-gradient(180deg,#020a35 0%,#07195c 54%,#071743 100%);
  }
  .app-shell:has(#home-page.active)::before{
    content:"";position:absolute;z-index:1;left:-8%;right:-8%;bottom:-18%;height:49%;border-radius:50% 50% 0 0;
    background:repeating-linear-gradient(90deg,transparent 0 6%,#27baff20 6.2% 6.5%),linear-gradient(180deg,#163c8c,#07143b 68%);
    border-top:5px solid #347cf1;box-shadow:0 -20px 55px #1464e888,inset 0 30px 70px #229fff33;
  }
  .app-shell:has(#home-page.active)::after{
    content:"";position:absolute;z-index:2;inset:20% 4% 18%;border:8px solid #193a91;border-radius:46% 46% 20% 20%;box-shadow:inset 0 0 35px #1788ff55,0 0 0 18px #07113e99;pointer-events:none;
  }
  .app-shell:has(#home-page.active) .topbar{position:absolute;z-index:8;top:25px;right:42px;width:400px;height:auto;padding:0;gap:16px;justify-content:flex-end}
  .app-shell:has(#home-page.active) .avatar-button{display:none}
  .app-shell:has(#home-page.active) .score-card,.level-card{height:62px;padding:8px 21px;border:2px solid #8194d06b;border-radius:28px;background:#050b34aa;box-shadow:inset 0 0 18px #315bc044;color:#fff}
  .app-shell:has(#home-page.active) .score-card{order:2;min-width:215px}
  .app-shell:has(#home-page.active) .score-card small{font-size:0}
  .app-shell:has(#home-page.active) .score-card small::after{content:"成长值";font-size:12px;color:#fff}
  .app-shell:has(#home-page.active) .score-card strong{font-size:24px}
  .app-shell:has(#home-page.active) .tiny-add{display:none}
  .level-card{display:flex;order:1;align-items:center;gap:11px;min-width:150px;justify-content:center}
  .level-card span{font-size:30px}.level-card b{font-size:24px}.level-card i{font-style:normal}
  .app-shell:has(#home-page.active) main{position:relative;z-index:3;width:100%;max-width:none;height:100vh;margin:0}
  .app-shell:has(#home-page.active) .page{animation:none}
  #home-page.active{display:block;position:relative;width:100%;height:100vh;min-height:680px;overflow:hidden}
  #home-page .hero-copy{position:absolute;z-index:7;left:4%;top:3.5%;width:510px;height:auto;padding:0;color:#fff}
  #home-page .hero-copy .eyebrow{display:none}
  #home-page .hero-copy h1{font-family:"ZCOOL KuaiLe","PingFang SC",sans-serif;font-size:48px;letter-spacing:2px;text-shadow:0 4px 0 #273d86,0 8px 20px #0008;white-space:nowrap}
  #home-page .hero-copy h1 span{color:#ffd43f;margin-left:8px}
  #home-page .hero-copy h1 i{font-size:34px;margin-left:6px}
  #home-page .hero-copy>p:last-child{font-size:20px;font-weight:800;color:#f1f4ff;margin-top:7px;text-shadow:0 3px 8px #000}
  #home-page .mission-orbit{position:absolute;z-index:4;inset:8% 8% 11%;width:auto;height:auto;margin:0;background:radial-gradient(ellipse at center,#0b74df48 0,transparent 55%)}
  #home-page .orbit-ring{border-width:3px;border-style:dashed;border-color:#67ddff;box-shadow:0 0 12px #36caff}
  #home-page .ring-one{width:68%;height:57%;transform:translate(-50%,-50%) rotate(-5deg)}
  #home-page .ring-two{width:49%;height:78%;border-color:#ffd958;transform:translate(-50%,-50%) rotate(63deg);opacity:.65}
  #home-page .planet-core{top:62%;width:205px;height:205px;border:0;background:radial-gradient(circle,#32ccff88 0,#0877e399 42%,#0643a0 70%);box-shadow:0 0 18px #45dbff,0 0 60px #1688ff,inset 0 -20px 40px #073783}
  #home-page .character-halo{position:absolute;inset:-24px;border-radius:50%;border:4px solid #54dfff;box-shadow:0 0 22px #2ed9ff}
  #home-page .planet-face{font-size:112px;filter:drop-shadow(0 12px 8px #00184d);transform:translateY(-8px)}
  #home-page .sprout{top:-35px;right:-12px;font-size:38px}
  #home-page .level-pill{display:none}
  #home-page .planet{width:222px;height:168px;border-radius:50%;border:5px solid #fff9;box-shadow:inset -18px -20px 0 #0002,0 0 0 9px #ffffff20,0 0 34px currentColor;overflow:visible}
  #home-page .planet::after{content:"";position:absolute;left:-18px;right:-18px;bottom:-10px;height:54px;border:6px solid #fff9;border-radius:50%;transform:rotate(-4deg);box-shadow:0 0 17px currentColor;pointer-events:none}
  #home-page .planet-icon{font-size:62px;filter:drop-shadow(0 7px 3px #0004);transform:translateY(-13px)}
  #home-page .planet b{position:absolute;z-index:2;bottom:-27px;min-width:180px;padding:8px 22px 18px;border:4px solid #fffc;border-radius:24px;background:#ffffffef;color:currentColor;font-size:25px;line-height:1;box-shadow:0 7px 18px #0006}
  #home-page .planet small{position:absolute;z-index:3;bottom:-19px;color:currentColor;font-size:11px;font-weight:900;opacity:1}
  #home-page .planet-reading{color:#b3580a;left:13%;top:19%;background:radial-gradient(circle at 40% 30%,#ffd969,#f2a329 64%,#cf651c)}
  #home-page .planet-manner{display:flex;color:#087742;left:42%;top:1%;right:auto;bottom:auto;background:radial-gradient(circle at 40% 30%,#8ff0bd,#37b778 68%,#167b55)}
  #home-page .planet-study{color:#4a25bd;right:11%;top:19%;background:radial-gradient(circle at 40% 30%,#c594ff,#754be0 68%,#4f28a6)}
  #home-page .planet-sport{color:#0757ad;left:14%;bottom:7%;background:radial-gradient(circle at 40% 30%,#78dcff,#2994dc 68%,#1260a9)}
  #home-page .planet-exam{display:flex;color:#b83720;right:12%;bottom:7%;background:radial-gradient(circle at 40% 30%,#ff9a78,#ef5f42 68%,#b62e28)}
  #home-page .orbit-stars{display:block;position:absolute;left:26%;right:25%;bottom:14%;color:#ffd84f;font-size:22px;word-spacing:65px;text-shadow:0 0 11px #ffd344;transform:rotate(3deg)}
  #home-page .today-card,#home-page .reward-banner{display:none}
  .desktop-growth-cta{display:block;position:absolute;z-index:8;left:50%;bottom:2.6%;transform:translateX(-50%);width:370px;padding:18px 26px;border:4px solid #b8eeff;border-radius:32px;background:linear-gradient(180deg,#218dff,#0750ce);box-shadow:0 0 0 7px #147ff788,0 0 30px #1bbcff;color:#fff;font:900 27px Nunito,"PingFang SC",sans-serif;letter-spacing:2px;text-shadow:0 3px 4px #0646a2}
  .desktop-growth-cta span{color:#9cf7ff;margin-left:9px}
  .app-shell:has(#home-page.active) .bottom-nav{display:none}
}

@media (min-width:900px) and (max-width:1180px){
  #home-page .hero-copy h1{font-size:36px}
  #home-page .planet{width:170px;height:135px}
  #home-page .planet-icon{font-size:48px}
  #home-page .planet b{min-width:145px;font-size:20px}
  #home-page .planet-core{width:170px;height:170px}
  #home-page .planet-face{font-size:90px}
}

/* 首页底部改为白色悬浮导航栏 */
@media (min-width:900px){
  .desktop-growth-cta{display:none}
  .app-shell:has(#home-page.active) .bottom-nav{
    display:grid;z-index:12;bottom:16px;width:min(760px,72vw);height:84px;
    padding:8px 38px;border:2px solid #fff;border-radius:30px;
    background:rgba(255,255,255,.96);box-shadow:0 12px 34px #050b3299,0 0 28px #7d72dc44;
    backdrop-filter:blur(18px)
  }
  .app-shell:has(#home-page.active) .bottom-nav button{position:relative;color:#aaa6b6;transition:transform .2s,color .2s}
  .app-shell:has(#home-page.active) .bottom-nav button:hover{transform:translateY(-3px)}
  .app-shell:has(#home-page.active) .bottom-nav span{font-size:30px;line-height:32px;filter:grayscale(1);opacity:.55}
  .app-shell:has(#home-page.active) .bottom-nav b{font-size:15px;margin-top:3px}
  .app-shell:has(#home-page.active) .bottom-nav button.active{color:#6049d8}
  .app-shell:has(#home-page.active) .bottom-nav button.active span{filter:none;opacity:1;transform:translateY(-1px)}
  #home-page .orbit-stars{bottom:18%}
}

@media (min-width:900px) and (max-height:760px){
  .app-shell:has(#home-page.active) .bottom-nav{height:72px;bottom:10px}
  .app-shell:has(#home-page.active) .bottom-nav span{font-size:25px;line-height:27px}
  .app-shell:has(#home-page.active) .bottom-nav b{font-size:13px}
}

/* 全站统一思源黑体，并让首页导航与其他页面保持相同尺寸。 */
html,body,button,input,select,textarea,
.hero-copy h1,.section-heading h2,.desktop-growth-cta{
  font-family:"Source Han Sans SC","Noto Sans SC","思源黑体 CN","PingFang SC","Microsoft YaHei",sans-serif
}

@media (min-width:900px){
  .app-shell:has(#home-page.active) .bottom-nav{
    width:480px;height:72px;bottom:18px;padding:7px 18px;border-radius:24px
  }
  .app-shell:has(#home-page.active) .bottom-nav span{font-size:25px;line-height:27px}
  .app-shell:has(#home-page.active) .bottom-nav b{font-size:11px;margin-top:2px}
}

/* 设计稿切图首页：16:9 像素级呈现，保留星球点击热区。 */
@media (min-width:900px){
  .app-shell:has(#home-page.active){background:#020a35}
  .app-shell:has(#home-page.active)::before,
  .app-shell:has(#home-page.active)::after,
  .app-shell:has(#home-page.active) .topbar{display:none}
  #home-page.active{
    min-height:0;background-image:url("assets/growth-universe-home.png");
    background-position:center center;background-repeat:no-repeat;background-size:cover
  }
  #home-page .hero-copy,#home-page .today-card,#home-page .reward-banner,
  #home-page .desktop-growth-cta,#home-page .orbit-ring,#home-page .planet-core,
  #home-page .orbit-stars{display:none}
  #home-page .mission-orbit{position:absolute;inset:0;width:100%;height:100%;margin:0;background:none}
  #home-page .planet{
    display:block;width:23%;height:30%;padding:0;border:0;border-radius:42%;
    background:transparent;box-shadow:none;color:transparent;opacity:0;cursor:pointer
  }
  #home-page .planet::after,#home-page .planet>*{display:none}
  #home-page .planet-reading{left:12.5%;top:18%}
  #home-page .planet-manner{left:39%;top:2%;right:auto;bottom:auto}
  #home-page .planet-study{left:auto;right:12.5%;top:18%}
  #home-page .planet-sport{left:12.5%;bottom:10%;top:auto}
  #home-page .planet-exam{left:auto;right:12.5%;bottom:10%;top:auto}
  .app-shell:has(#home-page.active) .bottom-nav{
    bottom:14px;background:#fff;box-shadow:0 10px 36px #020727cc,0 0 0 7px #173d8388
  }
}

/* 金币积分：单行展示“积分｜数值” */
.score-icon{width:34px;height:34px;object-fit:contain;flex:0 0 auto}
.score-inline{display:flex;align-items:center;white-space:nowrap;color:#fff}
.score-inline b{font-size:15px;font-weight:700}
.score-inline i{font-style:normal;color:#8e99c7;margin:0 6px;font-size:17px}
.score-inline strong{font-size:22px;line-height:1;font-weight:800}

@media (min-width:900px){
  .app-shell:has(#home-page.active) .score-card{min-width:205px;gap:10px}
  .app-shell:has(#home-page.active) .score-icon{width:38px;height:38px}
  .app-shell:has(#home-page.active) .score-inline b{font-size:17px}
  .app-shell:has(#home-page.active) .score-inline strong{font-size:23px}
}

@media (min-width:900px) and (max-aspect-ratio:4/3){
  #home-page.active{background-size:cover}
}

/* 独立星球素材与漂浮动效 */
@keyframes planet-float{
  0%,100%{translate:0 0}
  50%{translate:0 -10px}
}
@keyframes planet-glow{
  0%,100%{filter:drop-shadow(0 5px 8px rgba(0,18,74,.4)) brightness(1)}
  50%{filter:drop-shadow(0 12px 18px rgba(62,206,255,.75)) brightness(1.07)}
}
@keyframes planet-halo{
  0%,100%{opacity:.35;scale:.96}
  50%{opacity:.85;scale:1.04}
}

@media (min-width:900px){
  #home-page.active{background-image:url("assets/growth-universe-clean-bg.png")}
  #home-page .planet{
    width:23%;height:31%;border-radius:0;opacity:1;background-color:transparent;
    background-repeat:no-repeat;background-position:center;background-size:contain;
    animation:planet-float 4.2s ease-in-out infinite;
    filter:none;isolation:isolate;transition:scale .2s ease
  }
  #home-page .planet::before{
    content:"";display:block;position:absolute;z-index:-1;inset:3%;border-radius:48%;
    background:radial-gradient(ellipse at center,transparent 57%,rgba(94,222,255,.1) 66%,rgba(94,222,255,.7) 76%,transparent 80%);
    filter:blur(7px);animation:planet-halo 2.8s ease-in-out infinite;pointer-events:none
  }
  #home-page .planet:hover{scale:1.035;animation-play-state:paused}
  #home-page .planet:hover::before{opacity:1;scale:1.08;filter:blur(9px)}
  #home-page .planet:active{scale:.98}
  #home-page .planet-reading{left:12.5%;top:14%;background-image:url("assets/planets/library.png");animation-delay:-.7s}
  #home-page .planet-manner{left:39%;top:1%;background-image:url("assets/planets/manners.png");animation-delay:-1.8s}
  #home-page .planet-study{left:auto;right:12.5%;top:14%;background-image:url("assets/planets/study.png");animation-delay:-2.7s}
  #home-page .planet-sport{left:12.5%;bottom:13%;top:auto;background-image:url("assets/planets/sport.png");animation-delay:-3.4s}
  #home-page .planet-exam{left:auto;right:12.5%;bottom:13%;top:auto;background-image:url("assets/planets/exam.png");animation-delay:-1.1s}
  #home-page .planet-reading::before{background:radial-gradient(ellipse,transparent 57%,#ffcf4d22 66%,#ffc43dcc 76%,transparent 80%)}
  #home-page .planet-manner::before{background:radial-gradient(ellipse,transparent 57%,#5cffad22 66%,#51e59dcc 76%,transparent 80%)}
  #home-page .planet-study::before{background:radial-gradient(ellipse,transparent 57%,#b688ff22 66%,#a76cffcc 76%,transparent 80%)}
  #home-page .planet-sport::before{background:radial-gradient(ellipse,transparent 57%,#51d5ff22 66%,#41c9ffcc 76%,transparent 80%)}
  #home-page .planet-exam::before{background:radial-gradient(ellipse,transparent 57%,#ff8d6b22 66%,#ff7658cc 76%,transparent 80%)}
}

@media (prefers-reduced-motion:reduce){
  #home-page .planet,#home-page .planet::before{animation:none;transition:none}
}

/* 新版分层首页：纯驾驶舱背景 + 独立人物 + 独立任务星球。 */
.character-layer{display:none}

@media (min-width:900px){
  #home-page.active{background-image:url("assets/growth-universe-bg-v2.png")}
  .app-shell:has(#home-page.active) .topbar{display:flex}
  #home-page .hero-copy{display:block}
  #home-page .character-layer{
    display:block;position:absolute;z-index:2;left:50%;bottom:21.5%;translate:-50% 0;
    width:16%;height:49%;background:url("assets/character-boy.png") center bottom/contain no-repeat;
    filter:drop-shadow(0 12px 12px rgba(0,24,80,.55));pointer-events:none
  }
  #home-page .planet{z-index:3}
}

@media (min-width:900px) and (max-width:1180px){
  #home-page .character-layer{width:18%;height:47%;bottom:21%}
}

/* 顶部品牌与积分显示 */
@media (min-width:900px){
  #home-page .hero-copy h1{text-shadow:none}
  .app-shell:has(#home-page.active) .score-card small::after{content:"积分"}
  .app-shell:has(#home-page.active) .score-star{
    width:34px;height:34px;display:grid;place-items:center;font-size:29px;line-height:1;
    filter:drop-shadow(0 2px 3px rgba(90,45,0,.35))
  }
}

/* 礼品图最终覆盖规则：使用正方形展示，并完整缩放在框内。 */
.reward-visual{
  position:relative!important;
  overflow:hidden!important;
  width:100%;
  height:auto!important;
  aspect-ratio:1 / 1
}
.reward-visual img{
  position:absolute!important;inset:8px!important;
  width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;
  max-width:calc(100% - 16px)!important;max-height:calc(100% - 16px)!important;
  object-fit:contain!important;border-radius:12px!important
}

/* 礼品储蓄进度与待分配积分倒计时。 */
.reward-progress-copy{display:flex;justify-content:space-between;align-items:center;margin:10px 2px 5px;color:#8d86a5;font-size:11px}
.reward-progress-copy b{color:#6650dc}
.reward-progress{height:9px;margin:0 2px 11px;overflow:hidden;border-radius:999px;background:#e9e5f5}
.reward-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffbd3d,#ff7c94);transition:width .35s ease}
.expiry-card{margin:0 0 14px;padding:18px;border-radius:24px;background:#fff;box-shadow:0 8px 24px #3028641c}
.expiry-heading{display:flex;align-items:center;justify-content:space-between}
.expiry-heading small{color:#8876d5;font-size:9px;font-weight:900;letter-spacing:1.2px}
.expiry-heading h3{margin:3px 0 0;font-size:18px}
.expiry-heading>b{padding:8px 11px;border-radius:14px;background:#fff4cf;color:#d88a00}
.expiry-card>p{margin:10px 0 14px;color:#918aa7;font-size:11px;line-height:1.6}
.point-batch-list{display:grid;gap:8px}
.point-batch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-radius:14px;background:#f5f2ff;font-size:11px}
.point-batch span{display:grid;gap:3px}.point-batch small{color:#8f89a7;font-size:10px}.point-batch b{font-size:13px}.point-batch em{color:#e18b18;font-style:normal;font-size:10px}
.point-batch-expiry{color:#795fd4;text-align:right;font-variant-numeric:tabular-nums}.point-batch-expiry b{font-size:14px}
.task-period-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:-4px 0 14px;padding:5px;border-radius:18px;background:#ffffff24}
.task-period-tabs button{border:0;border-radius:14px;padding:11px;background:transparent;color:#d9d2ff;font:700 13px inherit;transition:.2s}
.task-period-tabs button.active{background:#fff;color:#563fd0;box-shadow:0 5px 14px #1b0d6a44}
.allocation-help{color:#77718f;font-size:13px;line-height:1.7}
.allocation-shortcuts{display:flex;gap:8px;margin-top:10px}
.allocation-shortcuts button{flex:1;border:0;border-radius:12px;padding:9px;background:#eeeaff;color:#654fca;font-weight:800}
.book-icon-field{margin:13px 0 0;padding:0;border:0}
.book-icon-field legend{font-size:12px;font-weight:900}
.book-icon-presets{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin-top:7px}
.book-icon-presets label{display:block;margin:0}
.book-icon-presets input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.book-icon-presets span{display:grid;place-items:center;aspect-ratio:1;border:2px solid #ece8f7;border-radius:11px;background:#faf9ff;font-size:22px;cursor:pointer;transition:.16s}
.book-icon-presets input:checked+span{border-color:#6851db;background:#eeeaff;box-shadow:0 0 0 2px #6851db22;transform:translateY(-1px)}
.task-time-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.modal textarea{width:100%;padding:12px;border:2px solid #ece8f7;border-radius:13px;margin-top:5px;font:inherit}.modal textarea[data-autogrow]{min-height:52px;overflow:hidden;resize:none;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.custom-task-empty{grid-column:1/-1;padding:40px 20px;border-radius:22px;background:#ffffffdf}
.subject-card.done{opacity:.65;background:#effcf6}
.subject-other #custom-task-grid{grid-template-columns:1fr;gap:20px}
.subject-other .custom-subject-card{min-height:138px;padding:24px 28px;gap:24px;border-radius:28px}
.subject-other .custom-subject-card>i{width:72px;height:72px;flex:0 0 72px;border-radius:22px;font-size:36px}
.subject-other .custom-subject-card b{font-size:25px;line-height:1.3;font-weight:900;overflow-wrap:anywhere}
.subject-other .custom-subject-card .custom-task-description{margin-top:8px;color:#746d8d;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.subject-other .custom-subject-card .custom-task-time{margin-top:8px;color:#6752c9;font-size:14px;font-weight:800}
.subject-other .custom-subject-card>em{flex:0 0 auto;padding:12px 16px;border-radius:15px;background:#eee9ff;font-size:16px;white-space:nowrap}
@media (max-width:600px){.subject-other .custom-subject-card{align-items:flex-start;padding:19px;gap:14px}.subject-other .custom-subject-card>i{width:56px;height:56px;flex-basis:56px;font-size:29px}.subject-other .custom-subject-card b{font-size:20px}.subject-other .custom-subject-card .custom-task-description{font-size:14px}.subject-other .custom-subject-card>em{padding:8px 10px;font-size:13px}}
@media (max-width:420px){.book-icon-presets{grid-template-columns:repeat(6,1fr)}}
@media (min-width:900px){.expiry-card{max-width:850px;margin:0 auto 18px}.point-batch-list{grid-template-columns:1fr 1fr}}

@media (min-width:900px){
  .app-shell:has(#tasks-page.active) .topbar,
  .app-shell:has(#rewards-page.active) .topbar,
  .app-shell:has(#profile-page.active) .topbar{max-width:1180px;padding-left:0;padding-right:0}
}

/* 孩子任务图片打卡与家长查阅。 */
.checkin-modal h3{margin:5px 0 8px;color:#4c3d75}.checkin-modal>p{margin:0 0 14px;color:#898198;font-size:12px}.checkin-upload{display:block!important;padding:15px!important;border:2px dashed #8a74e0;border-radius:16px;background:#f4f1ff;color:#624dc2;text-align:center;cursor:pointer}.checkin-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.checkin-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;min-height:82px;margin-top:11px;padding:8px;border-radius:14px;background:#f5f3fa}.checkin-preview span{grid-column:1/-1;display:grid;place-items:center;color:#aaa2b4;font-size:11px}.checkin-preview img{width:100%;height:74px;object-fit:cover;border-radius:10px}.checkin-count{padding:8px 12px;border-radius:13px;background:#eee9ff;color:#624fc3;font-size:11px;font-weight:800}.parent-checkin-list{display:grid;gap:12px;margin-top:16px}.checkin-record{padding:14px;border:1px solid #ebe6f4;border-radius:18px;background:#faf9ff}.checkin-meta{display:flex;align-items:center;gap:11px}.checkin-meta>span{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#eeeaff;font-size:22px}.checkin-meta>div{flex:1}.checkin-meta b,.checkin-meta small{display:block}.checkin-meta small{margin-top:3px;color:#9992a6;font-size:10px}.checkin-meta em{font-style:normal;color:#39a77c;font-size:11px;font-weight:800}.checkin-images{display:grid;grid-template-columns:repeat(5,minmax(70px,120px));gap:8px;margin-top:11px}.checkin-images button{padding:0;border:0;border-radius:12px;background:#eee;overflow:hidden;aspect-ratio:1}.checkin-images img{width:100%;height:100%;object-fit:cover}.checkin-photo-view{text-align:center}.checkin-photo-view img{display:block;max-width:100%;max-height:70vh;margin:12px auto 0;border-radius:15px;object-fit:contain}

@media (min-width:900px){.parent-checkin-list{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.checkin-preview{grid-template-columns:repeat(3,1fr)}.checkin-images{grid-template-columns:repeat(3,1fr)}}

/* 家长星星明细。 */
.parent-tabs{overflow-x:auto;scrollbar-width:none}.parent-tabs button{flex:0 0 auto}.star-ledger-total{padding:9px 13px;border-radius:14px;background:#fff4ce;color:#c47b00;font-size:12px;font-weight:900}.star-ledger{display:grid;gap:16px;margin-top:18px}.star-ledger-day{overflow:hidden;border:1px solid #ece7f5;border-radius:20px;background:#faf9ff}.star-ledger-day>header{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#eeeaff;color:#5747a2;font-size:12px}.star-ledger-day>header span{font-weight:900;color:#d58a00}.star-ledger-day article{display:flex;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid #eeeaf5}.star-ledger-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#fff4ce;font-size:20px}.star-ledger-day article>div{flex:1}.star-ledger-day article b,.star-ledger-day article small{display:block}.star-ledger-day article small{margin-top:4px;color:#9992a6;font-size:10px}.star-ledger-day article strong{color:#df9000;font-size:17px}@media(min-width:900px){.star-ledger{grid-template-columns:1fr 1fr;align-items:start}}

/* 家长入口密码。 */
.parent-login{text-align:center}.parent-login .huge{font-size:58px}.parent-login>p{margin:-5px 0 15px;color:#8c849a}.parent-login form{text-align:left}.parent-login #parent-password-error{min-height:16px;color:#e45862;font-weight:700}

/* 阅读记录。 */
.library-content[hidden]{display:none!important}.reading-record-total{padding:10px 15px;border-radius:16px;background:#fff5d5;color:#946718;font-size:13px}.reading-record-list{display:grid;gap:13px;margin-top:20px}.reading-record-card{display:grid;grid-template-columns:70px 1fr minmax(145px,210px);align-items:center;gap:18px;padding:17px 20px;border:1px solid #eadfce;border-radius:22px;background:#fff;box-shadow:0 7px 20px #57351c12}.reading-record-cover{width:70px;height:88px;display:grid;place-items:center;overflow:hidden;border-radius:8px 14px 14px 8px;background:linear-gradient(145deg,#8bcff0,#5d5ed1);font-size:34px}.reading-record-cover img{width:100%;height:100%;object-fit:cover}.reading-record-card small{color:#a47e5d}.reading-record-card h3{margin:4px 0 10px;font-size:19px;color:#473126}.reading-record-card p{display:flex;gap:12px;margin:0;font-size:12px}.reading-record-card p b{color:#32a479}.reading-record-card p span{color:#9a8d83}.reading-reflection-status{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;padding:10px;border-radius:15px;background:#f6f1ea;color:#9a8d83;font-size:11px}.reading-reflection-status>span{font-size:26px}.reading-reflection-status img{width:42px;height:42px;border-radius:9px;object-fit:cover}.reading-reflection-status.uploaded{background:#edf9f4;color:#278b69}@media(max-width:650px){.reading-record-card{grid-template-columns:55px 1fr;padding:14px}.reading-record-cover{width:55px;height:72px}.reading-reflection-status{grid-column:1/-1}.reading-record-card h3{font-size:16px}}

/* 封面图上的文字不再使用灰色底条。 */
.book-cover img~span,.book-cover img~b{
  background:transparent;border-radius:0;padding:2px 3px;
  text-shadow:0 2px 4px #000,0 0 8px #0009
}
