/* ===== phonefit20261103a · 手机端统一收口（仅 ≤780px，平板与电脑不受影响）=====
   本文件最后加载，覆盖此前各批手机补丁。规则：
   1) 全站返回键在手机端隐藏，改用左缘右滑 / 系统返回（phone-fit.js 负责把返回动作交给原返回键）。
   2) 字号按正常手机量级：正文 13–14px，小字 10.5–11.5px，标题 15–17px。
   3) 首页三个框左右对齐；今日任务一条 ≈1.5cm；欢迎框背景保留，只缩小元素。
   4) 小院、小十三房间全屏，双指缩放跟手。                                                  */
@media (max-width:780px){

/* ---------- 0. 全站：返回键删除 ---------- */
html body .view-area [data-action="back"],
html body .view-area .reading-back-btn,
html body .view-area .bk-back,
html body .view-area .hw-back,
html body .view-area .court-backrow{display:none!important}

/* ---------- 0. 全站：字号基线 ---------- */
html body .view-area{font-size:13.5px}
html body .view-area h1{font-size:17px!important;line-height:1.35}
html body .view-area h2,html body .view-area .page-title{font-size:15.5px!important;line-height:1.35}
html body .view-area h3,html body .view-area .subhead{font-size:14.5px!important;line-height:1.35}
html body .view-area .caption,html body .view-area small{font-size:11px}
html body .view-area .btn{font-size:12.5px;min-height:30px;padding:5px 11px;white-space:nowrap}
html body .view-area .btn.sm{font-size:12px;min-height:28px;padding:4px 10px}
html body .view-area .tab{font-size:12px;white-space:nowrap}
html body .view-area .paper.panel{padding:12px}
html body .view-area .section-head{gap:8px}
html body .view-area .section-head>span{display:flex;gap:6px;flex-wrap:nowrap}
html body .view-area label.btn{white-space:nowrap}

/* ---------- 1. 首页 ---------- */
html body[data-page="home"] .home-dashboard{display:flex!important;flex-direction:column;gap:10px!important}
html body[data-page="home"] .home-dashboard>section{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box}
/* 欢迎框：背景图保留原大小，元素缩小；搜索/铃铛/界面/继续学习全部删除 */
html body[data-page="home"] .home-hero{min-height:200px!important;padding:10px 14px!important}
html body[data-page="home"] .home-hero .hero-title{font-size:16px!important;letter-spacing:.03em}
html body[data-page="home"] .home-hero .hero-date{font-size:10px!important}
html body[data-page="home"] .home-hero .hero-actions,
html body[data-page="home"] .home-hero .hero-foot,
html body[data-page="home"] .home-hero .mobile-mode-entry,
html body[data-page="home"] .home-hero .hero-top-actions .icon-btn,
html body[data-page="home"] .home-hero .hero-top-actions>*:not(.top-avatar){display:none!important}
html body[data-page="home"] .home-hero .top-avatar{width:28px!important;height:28px!important}
/* 今日任务：一条，≈1.5cm 高，字最小 */
html body[data-page="home"] .home-tasks{display:flex!important;align-items:center;gap:8px;padding:6px 8px!important;min-height:0!important;height:auto}
html body[data-page="home"] .home-tasks .section-head{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0!important;width:52px}
html body[data-page="home"] .home-tasks .section-head h2{font-size:12px!important;line-height:1.2;margin:0;white-space:nowrap}
html body[data-page="home"] .home-tasks .task-total{font-size:10.5px!important}
html body[data-page="home"] .home-tasks .task-total *{font-size:10.5px!important}
html body[data-page="home"] .home-tasks .daily-track{display:none!important}
html body[data-page="home"] .task-tiles{flex:1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;margin:0!important}
html body[data-page="home"] .task-tile{min-height:0!important;height:40px;padding:3px 7px!important;display:flex!important;flex-direction:column;justify-content:center;gap:0;border-radius:9px}
html body[data-page="home"] .task-tile-head{font-size:10.5px!important;line-height:1.2;margin:0!important;gap:3px}
html body[data-page="home"] .task-tile-head svg{width:11px!important;height:11px!important}
html body[data-page="home"] .task-tile-head *{font-size:10.5px!important}
html body[data-page="home"] .task-fraction{margin:0!important;line-height:1.15}
html body[data-page="home"] .task-fraction strong{font-size:13.5px!important}
html body[data-page="home"] .task-fraction span{font-size:10px!important}
html body[data-page="home"] .task-tile .progress,html body[data-page="home"] .task-tile .progress-track{display:none!important}
/* 功能框：与上面两框同宽对齐 */
html body[data-page="home"] .home-launch{padding:10px!important}
html body[data-page="home"] .launch-grid{gap:7px!important;margin:0!important}
html body[data-page="home"] .launch-tile{padding:8px 9px!important;min-height:0!important}
html body[data-page="home"] .launch-name{font-size:12.5px!important}
html body[data-page="home"] .launch-desc{font-size:9.5px!important}

/* ---------- 2. 背单词：选课条 ≈1.5cm，一屏背完不滑动 ---------- */
html body[data-page="learn"] .view-area{padding-top:0}
html body[data-page="learn"] .course-intro{display:flex!important;align-items:center;gap:6px;padding:7px 8px!important;min-height:0!important;margin-bottom:8px!important}
html body[data-page="learn"] .course-intro>div:first-of-type:not(:last-child){display:none!important}
html body[data-page="learn"] .course-intro>div{display:flex!important;align-items:center;gap:6px;flex:1;min-width:0;margin:0!important}
html body[data-page="learn"] .course-controls{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;flex:1;min-width:0;margin:0!important}
html body[data-page="learn"] .course-controls label{min-width:0}
html body[data-page="learn"] .course-controls select{width:100%;height:32px!important;min-height:0!important;font-size:12px!important;padding:0 22px 0 8px!important}
html body[data-page="learn"] .course-intro .tabs{display:flex!important;flex-direction:row!important;gap:3px;flex:none;margin:0!important}
html body[data-page="learn"] .course-intro .tab{height:32px!important;min-height:0!important;padding:0 8px!important;font-size:11.5px!important}
html body[data-page="learn"] .focus-layout{margin:0!important}
html body[data-page="learn"] .focus-card{height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px) - 16px - 46px - 8px - 12px)!important;min-height:0!important;padding:10px 12px!important;display:flex!important;flex-direction:column;box-sizing:border-box}
html body[data-page="learn"] .focus-toolbar{min-height:0!important;margin:0!important}
html body[data-page="learn"] .focus-toolbar .icon-btn{width:34px!important;height:34px!important}
html body[data-page="learn"] .focus-sidebar{display:none!important}

/* ---------- 3. 学句型：阿语一页放得下 ---------- */
html body[data-page="patterns"] .course-intro{padding:7px 8px!important;min-height:0!important;margin-bottom:8px!important}
html body[data-page="patterns"] .course-intro select{height:32px!important;min-height:0!important;font-size:12px!important}
html body[data-page="patterns"] .grammar-card{padding:10px 12px!important}
html body[data-page="patterns"] .grammar-card .arabic,html body[data-page="patterns"] .grammar-card [lang="ar"]{font-size:16px!important;line-height:1.75!important}
html body[data-page="patterns"] .grammar-card h2,html body[data-page="patterns"] .grammar-card h3{font-size:18px!important}

/* ---------- 4. 我的笔记 / 新建笔记：按钮文字不折行 ---------- */
html body[data-page="mynotes"] .notes-head{flex-wrap:nowrap!important;align-items:center}
html body[data-page="mynotes"] .notes-head h2{white-space:nowrap;flex:none}
html body[data-page="mynotes"] .notes-head>span{margin-left:auto;flex:none}
html body[data-page="mynotes"] .notes-head .btn{padding:4px 9px!important;font-size:11.5px!important}
html body .view-area .nb-editor input,html body .view-area .nb-editor textarea{font-size:14px}

/* ---------- 5. 看新闻 ---------- */
html body[data-page="news"] .news-head{margin-bottom:8px!important}
html body[data-page="news"] .news-tabs{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px!important;width:100%;overflow:visible!important;flex-wrap:nowrap}
html body[data-page="news"] .news-tabs .tab{min-width:0!important;padding:0!important;height:26px!important;min-height:0!important;font-size:11px!important;text-align:center;justify-content:center}
html body[data-page="news"] .news-list{gap:6px!important}
html body[data-page="news"] .news-card{padding:8px 10px!important;gap:2px!important;min-height:0!important}
html body[data-page="news"] .news-zh-title{font-size:13px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
html body[data-page="news"] .news-card .arabic{font-size:13.5px!important;line-height:1.6!important;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
html body[data-page="news"] .news-meta{font-size:10px!important;line-height:1.3;gap:5px!important;display:flex!important;flex-wrap:nowrap!important;white-space:nowrap;overflow:hidden}
html body[data-page="news"] .news-meta *{font-size:10px!important}
html body[data-page="news"] .news-meta .tag,html body[data-page="news"] .news-meta .pill{padding:0 5px!important}
/* 新闻阅读：标题两行小字，正文跟着缩小 */
html body[data-page="newsreader"] .view-area h1,html body[data-page="newsreader"] .view-area h2{font-size:14px!important;line-height:1.45!important;margin:4px 0!important}
html body[data-page="newsreader"] .view-area .arabic{font-size:15px!important;line-height:1.85!important}
html body[data-page="newsreader"] .view-area p{font-size:13.5px}
html body[data-page="newsreader"] .view-area .btn{font-size:11.5px!important;min-height:26px!important;padding:3px 9px!important}

/* ---------- 6. 读文章 书架（游戏也照这个尺寸） ---------- */
html body[data-page="reading"] .view-area .btn{font-size:11.5px}

/* ---------- 7. 刷题库 ---------- */
html body[data-page="bank"] .bk-head{min-height:0!important;margin-bottom:4px!important}
html body[data-page="bank"] .bk-head h1,html body[data-page="bank"] .bk-head h2,html body[data-page="bank"] .bk-t{font-size:15px!important}
html body[data-page="bank"] .bk-sub{font-size:10.5px!important}
html body[data-page="bank"] details.bk-note{margin:0 0 8px!important;padding:0!important;min-height:0!important;border-radius:8px}
html body[data-page="bank"] details.bk-note>summary{height:19px;min-height:0!important;line-height:19px!important;padding:0 10px!important;font-size:11px!important}
html body[data-page="bank"] details.bk-note .bk-note-body{font-size:11.5px!important;padding:6px 10px 8px!important}
html body[data-page="bank"] .bk-papers{gap:6px!important;display:grid!important;grid-template-columns:1fr 1fr}
html body[data-page="bank"] .bk-paper-card{padding:8px 10px!important;min-height:0!important}
html body[data-page="bank"] .bk-paper-card *{font-size:11px!important;line-height:1.35!important;margin-top:0!important;margin-bottom:2px!important}
html body[data-page="bank"] .bk-paper-card .bk-y,html body[data-page="bank"] .bk-paper-card>:first-child{font-size:15px!important}
html body[data-page="bank"] .bk-q-stem,html body[data-page="bank"] .bk-q-stem *{font-size:15px!important;line-height:1.75!important}
html body[data-page="bank"] .bk-opt{min-height:0!important;padding:7px 10px!important;font-size:14px!important}
html body[data-page="bank"] .bk-jumps .tab,html body[data-page="bank"] .bk-jump{font-size:11px!important;padding:3px 8px!important;min-height:0!important}
html body[data-page="bank"] .bk-sec-t{font-size:14px!important}

/* ---------- 8. 懂历史 ---------- */
html body[data-page="history"] .hero{padding:10px 12px!important;min-height:0!important;background-size:cover}
html body[data-page="history"] .hero h1{font-size:14.5px!important;margin:2px 0!important}
html body[data-page="history"] .hero p{font-size:10.5px!important;margin:0 0 4px!important;line-height:1.4}
html body[data-page="history"] .hw-backrow{position:absolute;right:10px;top:8px;margin:0!important;z-index:3}
html body[data-page="history"] .hw-search-btn{width:26px!important;height:26px!important}
html body[data-page="history"] .era-block{padding:6px 8px!important;margin-top:4px!important}
html body[data-page="history"] .era-head{font-size:10.5px!important;min-height:0!important}
html body[data-page="history"] .era-head *{font-size:11px!important}
html body[data-page="history"] .era-line{min-height:0!important;height:auto}
html body[data-page="history"] .era-line *{font-size:9.5px!important}
html body[data-page="history"] .toolbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:5px!important;margin:8px 0!important}
html body[data-page="history"] .toolbar .tabs{flex:none;display:flex!important;gap:3px;padding:0!important}
html body[data-page="history"] .toolbar .tab,html body[data-page="history"] .toolbar select,html body[data-page="history"] .pf-time-toggle{height:24px!important;min-height:0!important;line-height:22px!important;padding:0 7px!important;font-size:11px!important;border-radius:7px}
html body[data-page="history"] .toolbar select{flex:1;min-width:0;width:auto!important;padding-right:18px!important}
html body[data-page="history"] .pf-time-toggle{flex:none;border:1px solid rgba(70,110,90,.25);background:rgba(255,255,255,.7);color:#3f6150}
html body[data-page="history"] .pf-time-toggle[aria-expanded="true"]{background:#e3efe7}
html body[data-page="history"] .content-layout{display:block!important}
html body[data-page="history"] .index-panel{max-height:none!important;padding:6px 8px!important}
html body[data-page="history"]:not(.pf-time-open) .index-panel{display:none!important}
html body[data-page="history"] .index-title{font-size:11px!important;min-height:0!important;padding:0 0 4px!important}
html body[data-page="history"] .card-fold *{font-size:11.5px!important}
html body[data-page="history"] .card-fold>button,html body[data-page="history"] .card-fold>div:first-child{min-height:0!important;padding:3px 4px!important}
html body[data-page="history"] .view-area main{font-size:13px!important}
html body[data-page="history"] .view-area main p{font-size:13px;line-height:1.7}
html body[data-page="history"] .view-area main h2{font-size:15px!important}
html body[data-page="history"] .view-area main h3{font-size:13.5px!important}
html body[data-page="history"] .view-area main .tag,html body[data-page="history"] .view-area main .chip,html body[data-page="history"] .view-area main .pill{font-size:10.5px!important;padding:1px 7px!important}
html body[data-page="history"] .view-area textarea{min-height:0!important;height:30px;font-size:13px!important;line-height:1.5!important;padding:4px 8px!important;resize:none;overflow:hidden}
html body[data-page="history"] .view-area textarea:focus{height:auto;min-height:84px!important;overflow:auto}
html body[data-page="history"] .view-area .source,html body[data-page="history"] .view-area .sources,html body[data-page="history"] .view-area [class*="source"],html body[data-page="history"] .view-area [class*="refs"],html body[data-page="history"] .view-area [class*="cite"]{font-size:10px!important;line-height:1.5!important}
html body[data-page="history"] .view-area [class*="source"] *,html body[data-page="history"] .view-area [class*="refs"] *{font-size:10px!important}

/* ---------- 9. 玩游戏：大厅收短、图放大字放小 ---------- */
html body[data-page="games"] .gm-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html body[data-page="games"] .gm-card{display:grid!important;grid-template-columns:1fr 1fr;align-content:start;padding:5px!important;min-height:0!important;height:auto!important;gap:3px!important;border-radius:12px}
html body[data-page="games"] .gm-card>*{grid-column:1/-1;margin:0!important}
html body[data-page="games"] .gm-card-art{width:100%!important;height:auto!important;aspect-ratio:1/1;border-radius:9px;overflow:hidden}
html body[data-page="games"] .gm-card-art img{width:100%!important;height:100%!important;object-fit:cover}
html body[data-page="games"] .gm-card h3{font-size:11px!important;line-height:1.3!important;text-align:center}
html body[data-page="games"] .gm-card p:not(.gm-warn){display:none!important}
html body[data-page="games"] .gm-card .gm-warn{font-size:9px!important;line-height:1.25!important;text-align:center}
html body[data-page="games"] .gm-card .btn{grid-column:auto!important;font-size:10.5px!important;min-height:0!important;height:22px;padding:0 2px!important;width:100%;border-radius:7px}
html body[data-page="games"] .gm-side .gm-panel{padding:10px!important}
html body[data-page="games"] .gm-side *{font-size:12px}
html body[data-page="games"] .gm-side h2,html body[data-page="games"] .gm-side h3{font-size:14px!important}
/* 游戏内 */
html body[data-page="games"] .gm-head{gap:6px!important;min-height:0!important;margin-bottom:6px!important}
html body[data-page="games"] .gm-head *{font-size:12px}
html body[data-page="games"] .gm-prompt-zh{font-size:18px!important}
html body[data-page="games"] .gm-prompt-ar{font-size:24px!important}
html body[data-page="games"] .gm-opt{min-height:44px!important;padding:8px 10px!important;font-size:14px!important}
html body[data-page="games"] .gm-match{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;align-items:stretch}
html body[data-page="games"] .gm-match .gm-col{display:grid!important;grid-auto-rows:1fr;gap:7px!important;margin:0!important;padding:0!important}
html body[data-page="games"] .gm-match .gm-tile{height:64px!important;min-height:0!important;margin:0!important;padding:4px 8px!important;display:flex!important;align-items:center;justify-content:center;text-align:center;overflow:hidden;box-sizing:border-box;font-size:12px!important;line-height:1.35!important}
html body[data-page="games"] .gm-match .gm-tile[lang="ar"],html body[data-page="games"] .gm-match .gm-tile .arabic,html body[data-page="games"] .gm-match .gm-col:first-child .gm-tile{font-size:15px!important;line-height:1.5!important}

/* ---------- 10. 个人中心 ---------- */
html body[data-page="profile"] .profile-cover{padding:9px 12px!important;gap:10px!important;align-items:center}
html body[data-page="profile"] .profile-cover .avatar-frame-wrap,html body[data-page="profile"] .profile-cover .avatar{width:46px!important;height:46px!important}
html body[data-page="profile"] .profile-name{font-size:15px!important;flex-wrap:nowrap!important;white-space:nowrap}
html body[data-page="profile"] .profile-name *{white-space:nowrap}
html body[data-page="profile"] .profile-subtitle{font-size:10.5px!important}
html body[data-page="profile"] .profile-level,html body[data-page="profile"] .growth-chip{font-size:9.5px!important;padding:0 6px!important;white-space:nowrap;flex:none}
html body[data-page="profile"] .profile-controls .btn{min-height:24px!important;height:24px;padding:0 9px!important;font-size:11px!important}
html body[data-page="profile"] .profile-stats{padding:6px!important}
html body[data-page="profile"] .profile-stats strong{font-size:16px!important}
html body[data-page="profile"] .profile-stats span{font-size:10px!important}
html body[data-page="profile"] .profile-menu-item{padding:9px 2px!important;font-size:13.5px!important}
html body[data-page="profile"] .profile-archive-title{font-size:15px!important}

/* ---------- 11. 小院：全屏，滑动逛 ---------- */
html body[data-page="courtyard"] .main,html body[data-page="petroom"] .main{padding:0!important;max-width:none!important}
html body[data-page="courtyard"] .view-area,html body[data-page="petroom"] .view-area{padding:0!important;margin:0!important}
html body[data-page="courtyard"] .court{margin:0!important;padding:0!important}
html body[data-page="courtyard"] .court-scene{height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px))!important;width:100vw!important;margin:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;overflow:auto!important;touch-action:none!important;overscroll-behavior:contain;scrollbar-width:none}
html body[data-page="courtyard"] .court-scene::-webkit-scrollbar{display:none}
html body[data-page="courtyard"] .court-yard{top:0!important;transform:none!important}
html body[data-page="courtyard"] .court-scene~*{display:none!important}
html body[data-page="petroom"] .room-scene{height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px))!important;width:100vw!important;margin:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;aspect-ratio:auto!important;touch-action:none}
html body[data-page="petroom"] .room-bg{transform-origin:0 0!important;will-change:transform;height:100%!important;width:auto!important;max-width:none!important;left:0!important;top:0!important}
html body[data-page="petroom"] .room-crumb{top:calc(10px + env(safe-area-inset-top,0px))!important;font-size:11px!important;padding:4px 9px!important}
html body[data-page="petroom"] .room-card{transform:scale(.86);transform-origin:top right}

/* ---------- 12. 小院各房间（成长阁/储物间/钱柜/会客厅/小铺/商品柜）：手机量级 ---------- */
html body .view-area .court-room-head,html body .view-area .room-head,html body .view-area .court-page-head{padding:8px 10px!important;min-height:0!important;gap:8px!important}
html body .view-area .court-room-head img,html body .view-area .court-page-head img{width:34px!important;height:34px!important}
html body .view-area .court-room-head h1,html body .view-area .court-room-head h2,html body .view-area .court-page-head h1,html body .view-area .court-page-head h2{font-size:15px!important;margin:0!important}
html body .view-area .court-room-head p,html body .view-area .court-page-head p{font-size:10.5px!important;margin:0!important}
/* 称号墙：一页放九个 */
html body[data-page="courtGrowth"] .view-area [class*="title-grid"],html body[data-page="courtGrowth"] .view-area [class*="badge-grid"],html body[data-page="courtGrowth"] .view-area [class*="titles"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html body[data-page="courtGrowth"] .view-area [class*="title-grid"]>*,html body[data-page="courtGrowth"] .view-area [class*="badge-grid"]>*,html body[data-page="courtGrowth"] .view-area [class*="titles"]>*{min-height:0!important;padding:6px 4px!important;font-size:11px!important}
html body[data-page="courtGrowth"] .view-area [class*="title-grid"] img,html body[data-page="courtGrowth"] .view-area [class*="badge-grid"] img,html body[data-page="courtGrowth"] .view-area [class*="titles"] img{width:34px!important;height:34px!important}
/* 货架、背包、商品：小格子 */
html body[data-page="shop"] .view-area [class*="grid"],html body[data-page="backpack"] .view-area [class*="grid"],html body[data-page="cabinet"] .view-area [class*="grid"],html body[data-page="courtVault"] .view-area [class*="grid"]{gap:6px!important}
html body[data-page="shop"] .view-area [class*="item"] img,html body[data-page="backpack"] .view-area [class*="item"] img,html body[data-page="cabinet"] .view-area [class*="item"] img,html body[data-page="shop"] .view-area [class*="card"] img:not(.avatar),html body[data-page="backpack"] .view-area [class*="card"] img:not(.avatar){max-width:54px!important;max-height:54px!important}
html body[data-page="shop"] .view-area [class*="item"],html body[data-page="backpack"] .view-area [class*="item"],html body[data-page="cabinet"] .view-area [class*="item"],html body[data-page="courtVault"] .view-area [class*="item"]{font-size:11.5px}
/* 会客厅 */
html body[data-page="courtHall"] .view-area .tabs{gap:4px!important;margin:6px 0!important}
html body[data-page="courtHall"] .view-area .tab{height:26px!important;min-height:0!important;padding:0 11px!important;font-size:12px!important}
html body[data-page="courtHall"] .pf-hide{display:none!important}

/* ---------- 13. 桌宠：手机端缩小，少挡内容 ---------- */
}
/* ---------- 追加：刷题库年份卡、小游戏页面顶对齐 ---------- */
@media (max-width:780px){
html body[data-page="bank"] #bank-root .bk-papers{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-bottom:10px!important}
html body[data-page="bank"] #bank-root .bk-paper-card{padding:7px 9px!important;min-height:0!important;display:grid!important;grid-template-columns:auto 1fr;align-items:baseline;column-gap:6px;row-gap:3px}
html body[data-page="bank"] #bank-root .bk-paper-card .bk-y{font-size:14px!important;line-height:1.2!important;margin:0!important}
html body[data-page="bank"] #bank-root .bk-paper-card .bk-t{display:none!important}
html body[data-page="bank"] #bank-root .bk-paper-card .bk-m{font-size:10px!important;line-height:1.3!important;margin:0!important;text-align:right;white-space:nowrap}
html body[data-page="bank"] #bank-root .bk-paper-card .bk-m:last-child{grid-column:1/-1;text-align:left}
html body[data-page="bank"] #bank-root .bk-paper-card .bk-bar{grid-column:1/-1;height:3px!important;margin:0!important}
html body[data-page="games"] .gm.gm-playing{min-height:0!important;display:block!important}
html body[data-page="games"] .gm-stage{margin:0!important;padding:10px 12px!important}
html body[data-page="games"] .gm-bar strong{font-size:13px!important}
html body[data-page="games"] .gm-bar .gm-count,html body[data-page="games"] .gm-bar .gm-score{font-size:11px!important}
html body[data-page="games"] .gm-match-tip{margin:4px 0 6px!important;font-size:10.5px!important}
/* 会客厅：页头整框变小、页签小、加好友一行放在「我的好友」后面 */
html body[data-page="courtHall"] .court-room-hero,html body .view-area .court-room-hero{padding:8px 10px!important;min-height:0!important;gap:10px!important;align-items:center}
html body .view-area .court-room-hero .court-room-door{width:40px!important;height:40px!important;flex:none}
html body .view-area .court-room-hero h2{font-size:15px!important;margin:0!important}
html body .view-area .court-room-hero p,html body .view-area .court-room-hero .caption{font-size:10.5px!important;margin:1px 0 0!important}
html body .view-area .court-room-hero .btn{min-height:24px!important;height:24px;padding:0 9px!important;font-size:11px!important}
html body[data-page="courtHall"] .community-tabs{gap:4px!important;margin:8px 0 6px!important}
html body[data-page="courtHall"] .community-tabs .tab{height:24px!important;min-height:0!important;padding:0 10px!important;font-size:11.5px!important}
html body[data-page="courtHall"] .community-panel{padding:9px 10px!important}
html body[data-page="courtHall"] .ft-h{font-size:12.5px!important;margin:0 0 4px!important}
/* 成长阁：称号墙一页九个 */
html body[data-page="courtGrowth"] .growth-now .growth-title-big{font-size:16px!important}
html body[data-page="courtGrowth"] .growth-wall{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
html body[data-page="courtGrowth"] .growth-cell{padding:5px 4px!important;min-height:0!important;border-radius:8px;text-align:center}
html body[data-page="courtGrowth"] .growth-cell b{font-size:11.5px!important;line-height:1.3;display:block}
html body[data-page="courtGrowth"] .growth-cell small{font-size:9px!important;line-height:1.3;display:block}
html body .view-area .ledger-row{padding:5px 2px!important;font-size:12px!important;min-height:0!important}
/* 小铺货架 */
html body[data-page="shop"] .shop-wall{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html body[data-page="shop"] .court-shop-tabs{gap:3px!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
html body[data-page="shop"] .court-shop-tabs .tab{height:24px!important;min-height:0!important;padding:0 9px!important;font-size:11.5px!important}
html body[data-page="shop"] .shop-balance{font-size:11.5px!important}
}
@media (min-width:0){
.ft-headrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.ft-headrow .ft-h{margin:0}
.ft-headrow .ft-add{display:flex;gap:6px;margin-left:auto;flex:0 1 260px;min-width:0}
.ft-headrow .ft-add input{flex:1;min-width:0}
}
@media (max-width:780px){
.ft-headrow .ft-add{flex:0 1 210px}
.ft-headrow .ft-add input{height:26px!important;min-height:0!important;font-size:11.5px!important;padding:0 8px!important}
.ft-headrow .ft-add .btn{height:26px!important;min-height:0!important;font-size:11px!important;padding:0 8px!important}
/* 储物间 / 小铺 / 钱柜：东西放小 */
html body .view-area .bp-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
html body .view-area .bp-card{padding:5px!important;min-height:0!important;gap:2px!important;border-radius:10px}
html body .view-area .bp-art{width:100%!important;height:auto!important;aspect-ratio:1/1;padding:4px!important;box-sizing:border-box;display:grid;place-items:center}
html body .view-area .bp-art img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain}
html body .view-area .bp-name{font-size:10.5px!important;line-height:1.3!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
html body .view-area .bp-meta{font-size:9.5px!important;line-height:1.2!important;min-height:0!important}
html body .view-area .bp-meta *{font-size:9.5px!important}
html body .view-area .bp-card .btn{height:22px!important;min-height:0!important;padding:0 4px!important;font-size:10.5px!important;width:100%}
html body .view-area .shop-item,html body .view-area .shop-card{padding:5px!important;min-height:0!important;border-radius:10px}
html body .view-area .shop-item *,html body .view-area .shop-card *{font-size:10.5px}
html body .view-area .shop-wall img{max-width:100%!important;height:auto!important}
html body .view-area .shop-wall .btn{height:22px!important;min-height:0!important;padding:0 4px!important;font-size:10.5px!important}
html body .view-area .wallet-balance{gap:6px!important;margin:4px 0!important;align-items:baseline}
html body .view-area .wallet-balance span{font-size:11px!important}
html body .view-area .wallet-balance strong{font-size:24px!important;line-height:1.1!important}
html body .view-area .wallet-balance small{font-size:10px!important}
html body .view-area .court-actions{gap:5px!important;margin-top:4px!important}
html body .view-area .cabinet-grid{gap:6px!important}
html body .view-area .cabinet-card{padding:7px!important;min-height:0!important}
html body .view-area .cabinet-card img{max-height:70px!important;width:auto!important}
html body .view-area .cabinet-card *{font-size:11px}
html body .view-area .court-room .paper.panel input{height:32px!important;min-height:0!important;font-size:12.5px!important}
html body .view-area .court-room .paper.panel .btn:not(.sm){min-height:32px!important;height:32px}
}

/* ===== phonefit20261103d · 手机端追加（仅 ≤780px）=====
   1) 字号字体锁定：禁止浏览器自动放大字体；新增板块统一继承同一套字号/字体（另有 phone-fit.js 兜底上下限）。
   2) 首页打招呼框：固定 3cm 高（约 189px），背景沿用网页端：草地人物图按框高等比缩放、靠右，左侧渐变。
   3) 学语法详情：「标记为已学」+ 上一个 / 下一个导引，最小号，三个一行。
   4) 玩游戏「我的进度 / 游戏排行榜」、学句型「句型记录」：收进右上角「⋯」。
   5) 看新闻：卡片框线完整，文字单行末尾省略。                                                   */
@media (max-width:780px){
html,body{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
html body .view-area{--pf-zh-max:24px;--pf-ar-max:36px;--pf-min:9px}
html body .view-area input,html body .view-area select,html body .view-area textarea,html body .view-area button{font-family:inherit}

/* 2. 打招呼框 */
html body[data-page="home"] .home-dashboard .home-hero,
html body[data-page="home"] .home-dashboard .home-hero.shisan-meadow-hero{
  --pf-hero-h:189px;
  height:var(--pf-hero-h)!important;min-height:var(--pf-hero-h)!important;max-height:var(--pf-hero-h)!important;
  box-sizing:border-box!important;padding:12px 14px!important;overflow:hidden!important;
  background-image:linear-gradient(90deg,rgba(239,249,247,.97),rgba(239,249,247,.48) 40%,transparent 60%),url("shisan-meadow/assets/meadow-girl-cat.png")!important;
  background-size:cover,auto 100%!important;background-position:center,right center!important;background-repeat:no-repeat!important;background-color:#edf8f8!important}
html body[data-page="home"] .home-dashboard .home-hero .hero-copy{width:60%!important;max-width:60%!important}

/* 3. 学语法：三个一行，最小号 */
html body[data-page="grammar"] .gw-actions,html body[data-page="grammar"] .gw-nav{display:none!important}
html body[data-page="grammar"] .pf-gw-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0 4px}
html body[data-page="grammar"] .pf-gw-row .gw-btn{min-width:0!important;width:100%!important;height:26px!important;min-height:0!important;margin:0!important;padding:0 5px!important;font-size:10.5px!important;line-height:26px!important;border-radius:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;text-align:center}
html body[data-page="grammar"] .pf-gw-row .pf-gw-empty{visibility:hidden}

/* 4. 右上角「⋯」折叠 */
html body[data-page="games"] .gm-hub .gm-side{display:none!important}
html body[data-page="patterns"] .focus-layout .focus-sidebar{display:none!important}
html body[data-page="patterns"] .focus-layout{display:block!important}
html body .pf-more-row{display:flex;justify-content:flex-end;margin:0 0 6px;position:relative;z-index:30}
html body .pf-more-btn{width:30px;height:26px;border-radius:9px;border:1px solid #dcd3bf;background:rgba(255,253,247,.92);color:#3d6b5c;font-size:16px;line-height:1;letter-spacing:1px;display:flex;align-items:center;justify-content:center;padding:0 0 4px;font-weight:700}
html body.pf-more-open[data-page="games"] .gm-hub .gm-side,
html body.pf-more-open[data-page="patterns"] .focus-layout .focus-sidebar{display:grid!important;position:fixed!important;top:var(--pf-sheet-top,60px)!important;right:12px!important;left:auto!important;width:min(330px,calc(100vw - 24px))!important;max-height:68vh!important;overflow:auto!important;z-index:60!important;gap:2px!important;margin:0!important;padding:4px!important;border-radius:14px!important;background:#fffdf7!important;border:1px solid #e3dac6!important;box-shadow:0 10px 32px rgba(40,50,40,.2)!important}
html body.pf-more-open .gm-side .gm-panel,html body.pf-more-open .focus-sidebar .paper{box-shadow:none!important;background:transparent!important;border:0!important;margin:0!important}
html body.pf-more-open .pf-more-btn{background:#2f6b5c;color:#fff;border-color:#2f6b5c}

/* 5. 看新闻 */
html body[data-page="news"] .news-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;box-sizing:border-box}
html body[data-page="news"] .news-card{width:auto!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;margin-left:0!important;margin-right:0!important}
html body[data-page="news"] .news-card>*{min-width:0!important;max-width:100%!important}
html body[data-page="news"] .news-zh-title,html body[data-page="news"] .news-card .arabic{display:block!important;-webkit-line-clamp:unset!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body[data-page="news"] .news-meta{min-width:0!important;text-overflow:ellipsis}

/* 小十三房间：手势全部交给页面，浏览器不抢 */
html body[data-page="petroom"] .room-scene{touch-action:none!important;overflow:hidden!important}
html body[data-page="petroom"] .room-scene .room-bg{transform-origin:0 0!important;will-change:transform}
}
