/* Transparent reading-room environment: all pages, same image, never receives clicks. */
body{background-color:#f6f7f1;isolation:isolate}
body::before{content:"";position:fixed;inset:0 0 0 236px;z-index:-1;pointer-events:none;background:url("assets/home-environment.png") center center/cover no-repeat;opacity:.6}
body .shell{background:transparent}
body .paper{background-color:rgba(255,254,250,.80)}
/* Big study cards (word/recite/grammar/sentence): more transparent so the room shows through; large text stays readable. */
body .paper.focus-card{background:radial-gradient(ellipse at 50% 46%,rgba(242,246,238,.80) 0%,rgba(255,254,250,.80) 58%)}
body .paper.grammar-card{background-color:rgba(255,254,250,.80)}
/* Two-column pages (desktop only): wider side column, both columns level with each other. */
@media(min-width:981px){
.focus-layout{grid-template-columns:minmax(0,1fr) minmax(300px,30%);align-items:stretch}
.focus-sidebar{display:flex;flex-direction:column;height:100%}
.focus-sidebar>*:last-child{flex:1}
.page-grid{grid-template-columns:minmax(0,1.15fr) minmax(300px,0.85fr)}
}
/* Very wide screens: let the main area breathe instead of leaving wide blank margins. */
@media(min-width:1900px){.main{max-width:1850px}}
/* Sentence-pattern study card: larger examples to fill sparse content. */
.pattern-examples{gap:22px}
.pattern-ex{padding-bottom:20px}
.pattern-zh{font-size:18px}
/* Breadcrumb readability over the background image. */
body .eyebrow{color:#5f7d6f;background:rgba(255,255,254,.78);padding:2px 10px;border-radius:20px}
body[data-page="home"] .home-dashboard>.paper,
body[data-page="home"] .home-aside>.paper{background-color:rgba(255,254,250,.80)}
body[data-page="home"] .home-hero{background-image:linear-gradient(90deg,rgba(246,250,242,.94),rgba(246,250,242,.76) 55%,rgba(246,250,242,.12)),url("assets/home-environment.png");background-size:cover;background-position:center 60%;background-repeat:no-repeat;background-color:#f3f7ef}
body[data-page="home"] .home-hero::before,
body[data-page="home"] .home-hero::after{display:none}
body[data-page="home"] .home-hero .hero-copy{max-width:100%}
@media(max-width:980px){body::before{left:196px}}
@media(max-width:780px){body::before{left:0;opacity:.35;background-position:center bottom}body[data-page="home"] .home-hero{background-position:60% center}}
@media print{body::before,#shisan-pet,.pet-restore{display:none!important}}
/* 背单词页专注化（2026-10-28）：卡片固定、只留背词主体、选择区与反馈区紧凑，桌宠不动 */
/* 背词页只留背词主体：隐藏页内顶栏（卡片自带返回，侧栏/底栏仍可导航） */
body[data-page="learn"] .topbar{display:none}
/* 卡片内部位置固定：揭示区永远占位、词块两行高居中、超长内容在卡片内滚不撑卡片 */
body[data-page="learn"] .focus-card{overflow:hidden}
body[data-page="learn"] .focus-center{overflow-y:auto;min-height:0}
body[data-page="learn"] .focus-center .main-arabic{min-height:3.8em;display:flex;align-items:center;justify-content:center}
body[data-page="learn"] .focus-answer{min-height:140px}
body[data-page="learn"] .spell-result{min-height:28px}
/* 单栏以下断点：选择区与反馈区紧凑，卡片与反馈贴近 */
@media(max-width:980px){
body[data-page="learn"] .focus-layout{gap:12px}
body[data-page="learn"] .course-intro{padding:10px 14px;gap:10px;margin-bottom:12px}
body[data-page="learn"] .course-intro strong{font-size:14px}
body[data-page="learn"] .course-intro span{font-size:11px}
body[data-page="learn"] .course-controls select{height:38px;font-size:13px}
body[data-page="learn"] .course-controls label{min-width:140px}
body[data-page="learn"] .focus-stat-panel{padding:16px 14px}
body[data-page="learn"] .focus-data{margin:14px 0;gap:8px}
body[data-page="learn"] .focus-data>div{padding:12px 6px}
body[data-page="learn"] .focus-data b{font-size:24px}
}
/* 单栏平板（901-980）：卡片固定高度，不再随词长伸缩 */
@media(min-width:901px) and (max-width:980px){
body[data-page="learn"] .focus-card{height:680px;height:min(680px,74vh);height:min(680px,74dvh);min-height:0}
}
/* 手机竖屏：卡片固定高度，揭示区占位更小，选择区与反馈区再紧凑一档 */
@media(max-width:560px){
body[data-page="learn"] .focus-card{height:clamp(430px,72vh,620px);height:clamp(430px,72dvh,620px);min-height:0}
body[data-page="learn"] .focus-answer{min-height:120px}
body[data-page="learn"] .course-intro{padding:8px 10px;gap:8px}
body[data-page="learn"] .course-controls select{height:36px}
body[data-page="learn"] .course-controls label{min-width:120px}
body[data-page="learn"] .focus-stat-panel{padding:14px 12px}
body[data-page="learn"] .focus-data{margin:12px 0}
body[data-page="learn"] .focus-data>div{padding:10px 6px}
body[data-page="learn"] .focus-data b{font-size:22px}
}
/* 桌面与平板横屏：选择区也略缩小；卡片仍与侧栏拉齐（高度由侧栏定，侧栏内容不变故卡片不动） */
@media(min-width:981px){
body[data-page="learn"] .course-intro{padding:11px 16px;margin-bottom:12px}
body[data-page="learn"] .course-intro strong{font-size:14px}
body[data-page="learn"] .course-controls select{height:36px}
}
/* 横屏矮屏：不强求固定高，改回内容高，避免卡片超高 */
@media(max-height:500px) and (orientation:landscape){
body[data-page="learn"] .focus-card{height:auto}
}

/* 词库总览 */
.dict-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:6px 0 22px}
.dict-overview-card{display:flex;align-items:center;gap:12px;text-align:left;background:#f4f1e6;border:1px solid #e0d8c8;border-radius:20px;padding:20px 16px;cursor:pointer;color:#2f463f}
.dict-overview-card.tone-peach{background:#fdf0e6;border-color:#ecd9c8}
.dict-overview-card.tone-pink{background:#fdefec;border-color:#ecd2c8}
.dict-overview-card.tone-mint{background:#eaf3ec;border-color:#d3e2d4}
.dict-overview-ico{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#fffdf6;border:1px solid #e6ddc9;color:#5d7a68}
.dict-overview-ico .ui-ico{width:28px;height:28px}
.dict-overview-glyph{font-size:28px;line-height:1}
.dict-overview-text{min-width:0}
.dict-overview-text b{display:block;font-size:18px}
.dict-overview-text small{display:block;color:#7a8a7d;font-size:12px;margin-top:4px;line-height:1.6}
.dict-overview-arrow{margin-left:auto;font-size:26px;color:#9aa89b;flex:none}
.dict-continue{border-top:1px solid #e4ddd2;padding-top:18px}
.dict-continue-book{font-size:17px;font-weight:700;color:#2f463f;margin:2px 0 12px}
.dict-continue-count{color:#7a8a7d;font-size:12px;margin:8px 0 14px}
.dict-backline{margin-bottom:14px}
@media(max-width:480px){.dict-overview-grid{gap:10px}.dict-overview-card{padding:16px 12px}.dict-overview-ico{width:44px;height:44px}.dict-overview-text b{font-size:16px}}

/* 20261028 batch2: 阿语装饰 + 词库总览 + 四块搬家 + 底栏 */
.hero-kicker{direction:rtl}
.hero-kicker span[lang="ar"]{letter-spacing:0;font-size:13px;font-family:var(--arabic)}
.aside-title span[lang="ar"]{letter-spacing:0;font-size:12px;font-family:var(--arabic)}
.logo-sub span[lang="ar"]{letter-spacing:0;font-size:11px;font-family:var(--arabic)}
.dict-continue .btn[data-action="dict-continue"]{width:100%;background:#cfe6d8;color:#2f5d49;border-color:#bcd8c6;box-shadow:none}
.profile-home-panels{display:none}
@media(max-width:1180px){.home-dashboard .home-footprints,.home-dashboard .home-aside .today-ring,.home-dashboard .home-aside .badge-panel,.home-dashboard .home-aside .weekly-panel{display:none}.profile-home-panels{display:grid;gap:14px;margin-top:16px}}
@media(max-width:780px){nav.bottom-nav{grid-template-columns:repeat(2,1fr)}.bottom-nav button[data-view="dictionary"],.bottom-nav button[data-view="learn"],.bottom-nav button[data-view="reading"]{display:none}}

/* 背单词卡片一屏放下：卡片高度随视口封顶，词区内部滚动，认识/不认识常驻可见 */
body[data-page="learn"] .focus-card{min-height:min(604px,max(230px,calc(100dvh - 190px)));max-height:calc(100dvh - 190px)}
body[data-page="learn"] .focus-card .focus-center{min-height:0!important;overflow:auto}
body[data-page="learn"] .focus-card .focus-toolbar,body[data-page="learn"] .focus-card .focus-footer{flex:none}

/* 右侧栏跟着卡片一起调整：高度同样随视口封顶，内容多时在栏内滚动，页面本身不滚 */
@media(min-width:981px){
body[data-page="learn"] .focus-sidebar{max-height:calc(100dvh - 190px);overflow:auto}
}
/* 右侧两块收紧：反馈与档案面板更紧凑，一屏能放下更多 */
.focus-stat-panel{padding:16px 16px}
.focus-data{margin:12px 0}
.focus-data>div{padding:10px 6px}
.focus-data b{font-size:23px}
.focus-sidebar{gap:12px}

/* 首页去小字：删侧栏分组标题、logo阿语小字、顶栏标题、交互样本、hero角标、阅读角标题、查看词库按钮 */
.sidebar .logo-sub{display:none}
.sidebar .nav-group-title{display:none}
.topbar .page-title{display:none}
.mode-indicator{display:none}
.hero-corner{display:none}
.bookline .aside-title{display:none}
.hero-actions button[data-view="dictionary"]{display:none}
/* 首页收窄上移：大卡片变矮、间距缩小、顶栏变短，内容往上提 */
@media(min-width:781px){
body[data-page="home"] .topbar{margin-bottom:12px}
body[data-page="home"] .main{padding-top:20px}
body[data-page="home"] .home-hero{min-height:210px;padding:24px 28px}
body[data-page="home"] .hero-title{margin:12px 0 6px}
body[data-page="home"] .hero-actions{margin-top:16px}
body[data-page="home"] .hero-mini{margin-top:10px}
body[data-page="home"] .home-dashboard{gap:12px 14px}
body[data-page="home"] .home-tasks,body[data-page="home"] .home-launch,body[data-page="home"] .home-footprints{padding:18px 22px}
}

/* 20261028h 首页批改：阅读角整栏删、logo换手机图标、打招呼居中放大、阿语小字挪右、日期进欢迎框、继续学习变淡蓝 */
body[data-page="home"] .bookline{display:none}
img.logo-mark{object-fit:cover}
body[data-page="home"] .home-hero .hero-copy{align-items:center;text-align:center}
body[data-page="home"] .hero-kicker{margin-left:auto}
body[data-page="home"] .hero-title{font-size:clamp(34px,4.5vw,52px);text-align:center}
.hero-date{font-size:13px;color:#7d9484;letter-spacing:1px;margin-top:2px}
body[data-page="home"] .hero-actions .btn{background:#b9d6ef;border-color:#b9d6ef;color:#2c5a7d}
body[data-page="home"] .hero-actions .btn:hover{background:#a9cbe9;border-color:#a9cbe9;color:#2c5a7d}
@media(min-width:981px) and (max-width:1180px){
body[data-page="home"] .home-aside{display:none}
body[data-page="home"] .home-launch{grid-column:2;grid-row:1/5;align-self:start}
body[data-page="home"] .launch-grid{grid-template-columns:1fr}
body[data-page="home"] .launch-tile{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:1px 10px;min-height:0;padding:12px 14px}
body[data-page="home"] .launch-icon{grid-column:1;grid-row:1/3}
body[data-page="home"] .launch-name{grid-column:2;grid-row:1}
body[data-page="home"] .launch-desc{grid-column:2;grid-row:2}
body[data-page="home"] .launch-arrow{grid-column:3;grid-row:1/3;position:static}
}

/* 20261028i 欢迎框重排：顶栏并入欢迎框右上角、打招呼整框居中、按钮日期左对齐同行、介绍与已学习删除、分设备参数、平板两栏底端对齐一屏 */
body[data-page="home"] .topbar{display:none}
body[data-page="home"] .home-hero .hero-copy{width:100%}
body[data-page="home"] .hero-kicker{margin-left:auto;margin-top:32px}
body[data-page="home"] .hero-title{font-size:52px}
.hero-top-actions{position:absolute;top:16px;right:19px;z-index:4;display:flex;align-items:center;gap:12px}
.hero-foot{display:flex;align-items:center;gap:14px;align-self:stretch;justify-content:flex-start;margin-top:16px}
body[data-page="home"] .hero-foot .hero-actions{margin-top:0}
.hero-foot .hero-date{margin-top:0;font-size:13px}
@media(min-width:981px) and (max-width:1180px){
body[data-page="home"] .hero-title{font-size:40px}
body[data-page="home"] .home-hero{padding:24px 28px}
body[data-page="home"] .hero-kicker{margin-top:34px}
.hero-top-actions{top:14px;right:16px;gap:10px}
.hero-top-actions .top-avatar{height:38px;width:38px}
.hero-top-actions .icon-btn{width:38px;height:38px}
.hero-foot{gap:12px;margin-top:14px}
.hero-foot .hero-date{font-size:12px}
body[data-page="home"] .main{padding-bottom:32px}
body[data-page="home"] .home-tasks{padding:16px 20px}
body[data-page="home"] .home-launch{align-self:stretch}
body[data-page="home"] .launch-grid{height:100%;grid-template-rows:repeat(6,1fr)}
body[data-page="home"] .launch-tile{align-content:center}
}
@media(max-width:780px){
body[data-page="home"] .hero-title{font-size:30px}
body[data-page="home"] .home-hero{padding:20px}
body[data-page="home"] .hero-kicker{margin-top:34px}
.hero-top-actions{top:12px;right:12px;gap:10px}
.hero-top-actions .top-avatar{height:36px;width:36px}
.hero-top-actions .icon-btn{width:36px;height:36px}
.hero-foot{gap:10px;margin-top:12px}
.hero-foot .hero-date{font-size:11px}
}
@media(max-width:525px){
body[data-page="home"] .hero-title{font-size:28px}
}

/* 20261028j 欢迎框微调：继续学习改淡绿、日期挪左上角、右边阿语小字删除 */
body[data-page="home"] .hero-actions .btn{background:#cfe6d8;border-color:#cfe6d8;color:#2f5d49}
body[data-page="home"] .hero-actions .btn:hover{background:#bcdcc8;border-color:#bcdcc8;color:#2f5d49}
body[data-page="home"] .hero-kicker{display:none}
.hero-date{position:absolute;top:16px;left:19px;z-index:4;margin-top:0}
@media(min-width:981px) and (max-width:1180px){
.hero-date{top:14px;left:16px;font-size:12px}
}
@media(max-width:780px){
.hero-date{top:12px;left:12px;font-size:11px}
}

/* 20261028l 首页四改：足迹进右侧栏且左右底端齐平（仅电脑端）、欢迎框按钮放左下角 */
@media(min-width:1181px){
body[data-page="home"] .home-dashboard{align-items:stretch}
body[data-page="home"] .home-aside{grid-template-rows:auto auto 1fr;grid-row:1/4}
body[data-page="home"] .home-aside .home-footprints{display:flex;flex-direction:column;justify-content:center}
body[data-page="home"] .home-aside .footprints-stats{grid-template-columns:repeat(2,1fr);gap:18px 0}
body[data-page="home"] .home-aside .footprints-stats>div{border-right:0}
body[data-page="home"] .home-aside .footprints-stats>div:nth-child(odd){border-right:1px solid #e9eee9}
body[data-page="home"] .home-launch .launch-grid{height:100%;grid-template-rows:1fr 1fr}
body[data-page="home"] .home-launch .launch-tile{justify-content:center}
}
html body .home-hero.shisan-meadow-hero{align-items:stretch}
html body .home-hero.shisan-meadow-hero .hero-foot{margin-top:auto}

/* 20261028m 左右底端对齐修正：仪表盘只用三行、右侧栏只跨这三行，两栏共用同一组行高 */
@media(min-width:1181px){
body[data-page="home"] .home-dashboard{grid-template-rows:auto auto 1fr}
}

/* 成就贴纸（内容，全部设备共用） */
.medal img{width:56px;height:56px;object-fit:contain;display:block}
/* 电脑端专用标语（默认隐藏，手机平板不显示） */
.side-slogan-d{display:none}
/* 20261028p 电脑端布局：以下只在电脑端生效，手机平板不动 */
@media(min-width:1181px){
/* 侧栏：导航下移＋整体放大，适配左栏 */
.sidebar .side-nav:first-of-type{margin-top:30px}
.sidebar .side-nav{gap:6px}
.sidebar .nav-link{font-size:16px;min-height:52px;padding:13px 16px;gap:14px}
.sidebar .logo-text{font-size:20px}
.sidebar .logo-mark{width:52px;height:52px}
/* 标语移到横线之上，旧标语电脑端隐藏 */
.side-slogan-d{display:flex;align-items:center;gap:8px;margin-top:auto;padding:0 8px 14px;color:#578b77;font-weight:600;font-size:13px}
.sidebar .side-footer{margin-top:0}
.sidebar .side-progress{display:none}
/* 退出登录图标换热气球贴纸 */
.sidebar .side-footer button[data-action="logout"] .nav-ico{display:none}
.sidebar .side-footer button[data-action="logout"]::before{content:"";width:23px;height:23px;flex-shrink:0;background:url(assets/logout-balloon.png) center/contain no-repeat}
/* 侧栏不展示成就/排行榜/意见反馈（个人中心里有） */
.sidebar .side-nav button[data-view="achievements"],.sidebar .side-nav button[data-view="rank"],.sidebar .side-nav button[data-view="feedback"]{display:none}
/* 个人中心：删学习统计、去菜单箭头，两卡占满 */
.profile-layout{grid-template-columns:minmax(0,1fr);gap:20px}
.profile-summary{display:none}
.profile-menu-item>svg{display:none}
.profile-cover{padding:30px 36px;min-height:180px}
.profile-name{font-size:28px}
.profile-stats{padding:22px}
.profile-menu-item{padding:20px 8px;font-size:16px}
/* 其他背诵顶栏（重复标题）电脑端隐藏 */
body[data-page="recite"] .course-intro{display:none}
/* 反馈按钮改继续学习色（浅绿底＋深绿字） */
body[data-page="feedback"] .btn{background:#cfe6d8;color:#2f5d49;border-color:#cfe6d8}
body[data-page="feedback"] .btn:hover{background:#bcdcc8;border-color:#bcdcc8;color:#2f5d49}
}

/* 首页六方块：六种不同浅色（全部设备，贴合整体淡色风） */
.launch-tile.tile-0{background:rgba(226,240,228,.5)}.launch-tile.tile-0 .launch-icon{color:#5d8f6e}
.launch-tile.tile-1{background:rgba(221,234,245,.5)}.launch-tile.tile-1 .launch-icon{color:#718fae}
.launch-tile.tile-2{background:rgba(251,228,232,.5)}.launch-tile.tile-2 .launch-icon{color:#c98a96}
.launch-tile.tile-3{background:rgba(253,243,216,.5)}.launch-tile.tile-3 .launch-icon{color:#b39a5e}
.launch-tile.tile-4{background:rgba(233,228,245,.5)}.launch-tile.tile-4 .launch-icon{color:#8f86b8}
.launch-tile.tile-5{background:rgba(253,232,216,.5)}.launch-tile.tile-5 .launch-icon{color:#c98a6b}
/* 20261028r 电脑端侧栏：标语块居中到空隙中间（空隙省一半），标语放大，退出登录改小 */
@media(min-width:1181px){
.side-bottom-d{margin-top:auto;margin-bottom:auto}
.side-slogan-d{margin-top:0;font-size:18px}
.sidebar .side-footer button[data-action="logout"]{font-size:13px;min-height:40px;padding:9px 16px}
.sidebar .side-footer button[data-action="logout"]::before{width:18px;height:18px}
}
/* 20261028s 电脑端侧栏：导航整体下移＋拉开行距，标语已删，退出登录回到底部 */
@media(min-width:1181px){
.sidebar .side-nav:first-of-type{margin-top:64px}
.sidebar .side-nav{gap:14px}
.sidebar .side-nav + .side-nav{margin-top:14px}
.sidebar .side-footer{margin-top:auto}
}
/* 20261028t 电脑端句型页：记录放顶行与标题并排，句型框横拉满宽 */
@media(min-width:1181px){
body[data-page="patterns"] .focus-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
body[data-page="patterns"] .focus-layout > div{display:contents}
body[data-page="patterns"] .focus-layout .course-intro{grid-column:1;grid-row:1;margin-bottom:0 !important}
body[data-page="patterns"] .focus-layout > .focus-sidebar{grid-column:2;grid-row:1}
body[data-page="patterns"] .focus-layout .grammar-card{grid-column:1 / -1;grid-row:2}
}
/* 20261028u 平板端（781-1180）：个人中心＋句型页按电脑端同样改法，电脑端不动 */
@media(min-width:781px) and (max-width:1180px){
/* 个人中心：删学习统计、去菜单箭头，两卡占满放大 */
body[data-page="profile"] .profile-layout{grid-template-columns:minmax(0,1fr);gap:20px}
body[data-page="profile"] .profile-summary{display:none}
body[data-page="profile"] .profile-menu-item>svg{display:none}
body[data-page="profile"] .profile-cover{padding:30px 36px;min-height:180px}
body[data-page="profile"] .profile-name{font-size:28px}
body[data-page="profile"] .profile-stats{padding:22px}
body[data-page="profile"] .profile-menu-item{padding:20px 8px;font-size:16px}
/* 句型页：记录放顶行与标题并排，句型框横拉满宽 */
body[data-page="patterns"] .focus-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
body[data-page="patterns"] .focus-layout > div{display:contents}
body[data-page="patterns"] .focus-layout .course-intro{grid-column:1;grid-row:1;margin-bottom:0 !important}
body[data-page="patterns"] .focus-layout > .focus-sidebar{grid-column:2;grid-row:1}
body[data-page="patterns"] .focus-layout .grammar-card{grid-column:1 / -1;grid-row:2}
}
/* 20261028v 平板端（781-1180）其他背诵：删顶栏、只留词组谚语、一屏内显示完整 */
@media(min-width:781px) and (max-width:1180px){
body[data-page="recite"] .course-intro{display:none}
body[data-page="recite"] .focus-card{height:min(604px,max(230px,100dvh-180px));min-height:0}
body[data-page="recite"] .focus-card .focus-center{min-height:0;overflow:auto}
}
/* 20261028w 平板端（781-1180）背单词页：单词一页显示完、右边收窄、背词面板向右拉大 */
@media(min-width:781px) and (max-width:1180px){
body[data-page="learn"] .focus-layout{grid-template-columns:minmax(0,1fr) 190px}
body[data-page="learn"] .focus-sidebar .focus-stat-panel{padding:14px 10px}
body[data-page="learn"] .focus-sidebar .focus-data{gap:8px;margin:10px 0}
body[data-page="learn"] .focus-sidebar .focus-data > div{padding:10px 4px}
body[data-page="learn"] .focus-sidebar .focus-data b{font-size:20px}
body[data-page="learn"] .focus-sidebar .focus-data span{font-size:9px}
body[data-page="learn"] .focus-sidebar .subhead{font-size:15px}
body[data-page="learn"] .focus-center .main-arabic{font-size:clamp(40px,5vw,56px);line-height:1.7}
body[data-page="learn"] .focus-center{justify-content:safe center}
}
/* 20261028t 平板侧栏＝电脑端、平板句型 compact、桌面单词缩小两档 */
@media(min-width:781px) and (max-width:1180px){
.sidebar .side-nav button[data-view="achievements"],.sidebar .side-nav button[data-view="rank"],.sidebar .side-nav button[data-view="feedback"]{display:none}
.sidebar .side-nav:first-of-type{margin-top:64px}
.sidebar .side-nav{gap:14px}
.sidebar .side-nav + .side-nav{margin-top:14px}
.sidebar .nav-link{font-size:16px;min-height:52px;padding:13px 16px;gap:14px}
.sidebar .logo-text{font-size:20px}
.sidebar .logo-mark{width:52px;height:52px}
.sidebar .side-progress{display:none}
.sidebar .side-footer button[data-action="logout"] .nav-ico{display:none}
.sidebar .side-footer button[data-action="logout"]::before{content:"";width:18px;height:18px;flex-shrink:0;background:url(assets/logout-balloon.png) center/contain no-repeat}
.sidebar .side-footer button[data-action="logout"]{font-size:13px;min-height:40px;padding:9px 16px}
body[data-page="patterns"] .course-intro > div:first-child{display:none}
body[data-page="patterns"] .course-intro{padding:12px 16px}
body[data-page="patterns"] .course-controls{display:flex;gap:12px;flex-wrap:wrap}
body[data-page="patterns"] .focus-layout{gap:12px 18px}
body[data-page="learn"] .focus-sidebar label{font-size:12px !important}
body[data-page="learn"] .focus-sidebar label input{width:48px !important}
}
@media(min-width:1181px){
body[data-page="learn"] .focus-center .main-arabic,body[data-page="recite"] .focus-center .main-arabic{font-size:clamp(45px,4.5vw,68px);line-height:1.8}
}
body[data-page="learn"] .focus-center,body[data-page="recite"] .focus-center{justify-content:safe center}
/* 20261028u 背单词不滑动：词固定32px＋答案区收紧＋词区取消滚动（仅平板电脑端，手机不动） */
@media(min-width:781px){
body[data-page="learn"] .focus-center .main-arabic,body[data-page="recite"] .focus-center .main-arabic{font-size:32px;line-height:1.5}
body[data-page="learn"] .focus-answer{gap:10px;font-size:18px}
body[data-page="learn"] .focus-card{padding:20px 24px 24px}
body[data-page="learn"] .focus-progress{margin:10px 0}
body[data-page="learn"] .focus-card .focus-center{overflow:hidden}
}
/* 20261028v 平板背单词释义区收紧：汉语缩小＋行距收紧＋整体上移（仅平板，电脑不动） */
@media(min-width:781px) and (max-width:1180px){
body[data-page="learn"] .focus-answer{gap:8px;font-size:16px;line-height:1.4}
body[data-page="learn"] .focus-answer .caption{font-size:11px;line-height:1.4}
body[data-page="learn"] .example-trigger{padding:6px 12px;font-size:11px}
body[data-page="learn"] .form-action-list .btn{font-size:11px;padding:5px 10px;min-height:30px}
body[data-page="learn"] .focus-ornament{font-size:20px}
body[data-page="learn"] .focus-center .main-arabic{margin:4px auto 8px}
body[data-page="learn"] .focus-card{padding-top:16px}
}
/* 20261028w 继续按钮＋认读拼写选中改主页淡绿色（三个端） */
.focus-card .continue{background:#cfe6d8;color:#2f5d49}
.focus-card .continue:hover{background:#bcdcc8;filter:none}
body[data-page="learn"] .tab.active{background:#cfe6d8;color:#2f5d49}
/* 20261028x 平板侧栏logo同一行：缩小（仅平板，电脑不动） */
@media(min-width:781px) and (max-width:1180px){
.sidebar .logo-mark{width:42px;height:42px}
.sidebar .logo-text{font-size:16px;white-space:nowrap}
.sidebar .logo-wrap{gap:10px}
}
/* 20261028y 平板侧栏不单独加懂历史（仅平板，电脑侧栏保留、首页方块保留） */
@media(min-width:781px) and (max-width:1180px){
.sidebar .side-nav button[data-view="history"]{display:none}
}
/* 20261028z 侧栏退出登录整行藏掉，只留个人中心页的退出（三个端） */
.sidebar .side-footer{display:none}
/* 20261028aa 手机端三改（仅手机，平板电脑不动） */
@media(max-width:780px){
body[data-page="learn"] .focus-center .main-arabic,body[data-page="recite"] .focus-center .main-arabic{font-size:32px;line-height:1.5;margin:4px auto 8px}
body[data-page="learn"] .focus-answer{gap:8px;font-size:16px;line-height:1.4}
body[data-page="learn"] .focus-answer .caption{font-size:11px;line-height:1.4}
body[data-page="learn"] .example-trigger{padding:6px 12px;font-size:11px}
body[data-page="learn"] .form-action-list .btn{font-size:11px;padding:5px 10px;min-height:30px}
body[data-page="learn"] .focus-ornament{font-size:20px}
body[data-page="learn"] .focus-card .focus-center{overflow:hidden}
body[data-page="patterns"] .course-intro > div:first-child{display:none}
body[data-page="patterns"] .course-intro{padding:12px 16px}
body[data-page="patterns"] .course-controls{display:flex;gap:12px;flex-wrap:wrap}
.focus-sidebar{grid-template-columns:1fr}
}
/* 20261028ab 手机首页一屏＋背单词只留卡片＋个人中心整理（手机为主，学习统计已从 app.js 直接删） */
body[data-page="learn"] .focus-layout{grid-template-columns:1fr}
.profile-menu-item>svg{display:none}
@media(max-width:600px){
html body .home-dashboard .home-hero.shisan-meadow-hero{min-height:0!important;padding:16px!important;background-size:100% 100%,cover!important;background-position:center,center!important}
html body .home-dashboard .home-hero.shisan-meadow-hero .hero-foot{margin-top:0!important}
body[data-page="home"] .main{padding:12px 15px 70px}
body[data-page="home"] .home-tasks,body[data-page="home"] .home-launch{max-width:calc(100% - 16px);margin-left:auto;margin-right:auto}
body[data-page="home"] .home-tasks{padding:12px 16px}
body[data-page="home"] .home-tasks .section-head{margin-bottom:10px}
body[data-page="home"] .home-tasks .section-head h2{font-size:18px}
body[data-page="home"] .daily-track{margin:0 0 12px}
body[data-page="home"] .task-tile{padding:8px 8px}
body[data-page="home"] .task-fraction{margin:8px 0}
body[data-page="home"] .task-fraction strong{font-size:20px}
body[data-page="home"] .home-launch{padding:12px 16px}
body[data-page="home"] .launch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-page="home"] .launch-tile{min-height:0;padding:8px 8px;gap:3px}
body[data-page="home"] .launch-icon{width:20px;height:20px}
body[data-page="home"] .launch-icon svg{width:18px;height:18px}
body[data-page="home"] .launch-name{font-size:13px}
}
@media(max-width:1180px){
.profile-home-panels{grid-template-columns:1fr 1fr}
.profile-home-panels .weekly-panel{grid-column:1/-1}
.profile-home-panels .home-footprints,.profile-home-panels .today-ring{padding:14px 16px}
.profile-home-panels .section-head{margin-bottom:10px}
.profile-home-panels .section-head h2{font-size:16px}
.profile-home-panels .footprints-stats{grid-template-columns:repeat(2,1fr);gap:10px 0;margin-top:10px}
.profile-home-panels .footprints-stats strong{font-size:20px}
.profile-home-panels .ring-wrap{margin:10px 0}
.profile-home-panels .progress-ring{width:96px;height:96px}
.profile-home-panels .progress-ring>div{width:80px;height:80px}
.profile-home-panels .progress-ring b{font-size:22px}
}
/* 20261028ac 电脑端改回去：个人中心反馈/档案只在平板手机显示，电脑端背单词侧栏恢复，侧栏懂历史全部去掉 */
@media(min-width:1181px){
body[data-page="learn"] .focus-layout{grid-template-columns:minmax(0,1fr) 276px}
body[data-page="profile"] .profile-layout > .focus-stat-panel{display:none}
.sidebar button[data-view="history"]{display:none}
}
@media(max-width:1180px){
body[data-page="learn"] .focus-sidebar{display:none}
}
/* 20261029a 登录页正常居中单卡：根因是 #app.shell 两栏网格，登录页无侧栏时主区被放进第一栏窄轨；登录页改单栏，卡片居中；背景只用蒙版晕染，不用图片 */
body[data-page="auth"] .shell{grid-template-columns:1fr}
body[data-page="auth"]::before{background:radial-gradient(ellipse at 12% 18%,#e9efdf,transparent 48%),radial-gradient(ellipse at 86% 82%,#f6e0d3,transparent 50%),#f4f0e7;inset:0;opacity:1}
body[data-page="auth"] .auth-main{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px}
body[data-page="auth"] .auth-layout{position:relative;display:block;width:100%;max-width:460px;margin:0 auto;background:#fcf7ee;border:1px solid #fff;border-radius:32px;box-shadow:0 24px 80px #73544216;overflow:hidden}
body[data-page="auth"] .auth-panel{background:transparent;border:0;box-shadow:none;border-radius:0;padding:32px 36px}
body[data-page="auth"] .auth-brand{text-align:center;margin-bottom:20px}
body[data-page="auth"] .auth-brand-logo{font-size:36px;font-weight:900;color:#694a3f;text-shadow:0 2px 0 #fff;letter-spacing:1px;line-height:1.2}
body[data-page="auth"] .auth-brand-sub{font-size:15px;letter-spacing:2px;color:#896b57;margin-top:8px}
body[data-page="auth"] .auth-stroke{width:155px;height:5px;border-radius:90%;background:#edcc88;margin:14px auto 0;transform:rotate(-3deg)}
body[data-page="auth"] .auth-words{display:flex;gap:10px;width:100%;max-width:340px;margin:0 auto 20px}
body[data-page="auth"] .auth-word{flex:1 1 0;min-width:0;text-align:center;background:#fffaf0e8;border:1px solid #eedac6;box-shadow:0 6px 20px #805b3f0a;border-radius:14px;padding:10px 4px 12px;color:#6c584b;font-size:17px;white-space:nowrap;direction:rtl;font-family:'Noto Naskh Arabic',Tahoma,serif;animation:auth-float 6s ease-in-out infinite}
body[data-page="auth"] .auth-symbol{display:block;font-family:Georgia,serif;font-size:20px;line-height:1.2;margin-bottom:4px}
body[data-page="auth"] .auth-love{--t:-6deg;transform:rotate(-6deg)}
body[data-page="auth"] .auth-love .auth-symbol{color:#d89c84}
body[data-page="auth"] .auth-courage{--t:4deg;transform:rotate(4deg);animation-delay:-2s}
body[data-page="auth"] .auth-courage .auth-symbol{color:#cfad62}
body[data-page="auth"] .auth-future{--t:-3deg;transform:rotate(-3deg);animation-delay:-4s}
body[data-page="auth"] .auth-future .auth-symbol{color:#a9b49a}
@keyframes auth-float{0%,100%{transform:translateY(0) rotate(var(--t))}50%{transform:translateY(-5px) rotate(var(--t))}}
body[data-page="auth"] .auth-panel h2{font-family:inherit;font-weight:900;color:#694a3f;text-shadow:0 2px 0 #fff;font-size:22px}
body[data-page="auth"] .auth-panel .stack-form input:focus{border-color:#cfad62;box-shadow:0 0 0 3px #edcc8855}
body[data-page="auth"] .auth-panel .btn.full.auth-submit{background:linear-gradient(180deg,#e9ad9a,#d88b7c);border-color:#d99483;border-radius:999px;color:#fffdf8;box-shadow:inset 0 2px 3px #fff8,0 8px 18px #c8857620;min-height:54px;font-size:17px}
body[data-page="auth"] .auth-panel .btn.full.auth-submit:hover{filter:brightness(1.035);background:linear-gradient(180deg,#e9ad9a,#d88b7c);transform:translateY(-1px)}
body[data-page="auth"] .auth-panel .admin-entry-link{border-color:#eedac6;background:#fffaf0;color:#896b57;border-radius:999px}
body[data-page="auth"] .auth-caption-ar{display:flex;justify-content:center;align-items:center;gap:12px;font-size:14px;color:#a68872;margin-top:16px;font-family:'Noto Naskh Arabic',Tahoma,serif;direction:rtl}
body[data-page="auth"] .auth-caption-ar span{width:28px;height:1px;background:#d8bda1}
body[data-page="auth"] .auth-note-ar{text-align:center;font-size:15px;color:#a58c75;margin-top:12px;font-family:'Noto Naskh Arabic',Tahoma,serif;direction:rtl}
body[data-page="auth"] .auth-spark{position:absolute;color:#e8bc68;font:34px Georgia,serif;pointer-events:none;animation:auth-glow 4s ease-in-out infinite}
body[data-page="auth"] .auth-spark-a{left:3%;top:8%}
body[data-page="auth"] .auth-spark-b{right:4%;top:12%;font-size:44px;animation-delay:-2s}
@keyframes auth-glow{0%,100%{opacity:.5}50%{opacity:1}}
@media(max-width:480px){
body[data-page="auth"] .auth-brand-logo{font-size:32px}
body[data-page="auth"] .auth-panel{padding:24px 20px}
body[data-page="auth"] .auth-spark{font-size:24px}
}
@media(prefers-reduced-motion:reduce){body[data-page="auth"] .auth-word,body[data-page="auth"] .auth-spark{animation:none!important}}
/* 20261029b 首页玩游戏方块：橙色半透明，与其余方块同制式 */
.launch-tile.tile-7{background:rgba(255,230,190,.5)}.launch-tile.tile-7 .launch-icon{color:#c98a3a}

/* ===== 20261102 平板统一适配（781–1180)：全站同步收口 =====
 * 审计结论：外壳/首页/学词/背诵/个人中心/游戏/社区/小铺/商品柜/背包/笔记架/成长墙
 * 已有平板规则或自适应网格，不动；此处只补此前无平板规则、被桌面多栏硬挤的模块。
 * 桌面（≥1181）与手机（≤780）规则一概不碰。 */
@media (min-width:781px) and (max-width:1180px){
  .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .court-room-hero{flex-wrap:wrap}
}
@media (min-width:781px) and (max-width:980px){
  .reading-covers{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== 2026-11-02 手机与电脑端对齐：同一套页面与内容，按手机屏宽排版与字号（仅 ≤780px） ===== */
@media(max-width:780px){
 /* 学习/句型：电脑端的左右栏改为上下排，内容一项不少 */
 .focus-layout{grid-template-columns:minmax(0,1fr)!important}
 body[data-page="patterns"] .focus-layout{grid-template-columns:minmax(0,1fr)!important}
 body[data-page="patterns"] .focus-layout>div{display:block!important}
 body[data-page="patterns"] .focus-layout .course-intro,body[data-page="patterns"] .focus-layout>.focus-sidebar,body[data-page="patterns"] .focus-layout .grammar-card{grid-column:auto!important;grid-row:auto!important}
 .focus-sidebar{display:grid;gap:12px}
 /* 阅读：重点词侧栏排到正文下方，不再隐藏 */
 .reading-layout{grid-template-columns:minmax(0,1fr)!important}
 .reading-side{display:block!important}
 /* 字号按手机屏幕收一档，阿语正文保持可读 */
 .page-title{font-size:22px}
 .section-head h2{font-size:18px}
 .subhead{font-size:16px}
 .reading-text{font-size:21px;line-height:2.1}
 .grammar-body{font-size:16.5px;line-height:2}
 /* 十三小院：与电脑端一样整院适配屏宽完整显示，不再用固定宽横向拖动（此前手机上滑不动） */
 /* 手机小院：全屏沉浸——院景按屏高撑满，宽度溢出屏幕，左右滑动逛院子（状态卡与日签牌都在院景里、随院一起滑） */
 .court-scene{overflow-x:auto!important;overflow-y:hidden!important;height:calc(100vh - 86px);height:calc(100dvh - 86px);touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .court-scene::-webkit-scrollbar{display:none}
 .court-scene .court-yard{width:auto!important;height:100%}
 .court-swipe-hint{display:none!important}
 .court-scene-title{padding:5px 10px 4px}
 .court-scene-title h2{font-size:13px}
 .court-pet{height:24%}
 .court-pet-card:before{display:none}
 .court-plaque b{font-size:13px}
}

/* ===== 2026-11-03 手机端整体适配批（仅手机 ≤780）：字号排版/竖屏背景/欢迎框/今日任务/选课条/一屏背词 ===== */
@media (max-width:780px){
 /* 2 竖屏背景：专用竖版读书房图铺满全屏，其他页面半透透出背景 */
 body::before{left:0;opacity:.5;background-image:url("assets/home-environment-portrait.webp");background-position:center center;background-size:cover}
 body .paper{background-color:rgba(255,254,250,.78)}
 /* 1 句型学习：阿语回正常手机字号，尽量一页放下 */
 .grammar-card .grammar-name{font-size:21px!important;line-height:1.7}
 .pattern-examples{gap:12px}
 .pattern-ex{padding:4px 2px 10px}
 .pattern-examples .arabic{font-size:18.5px!important;line-height:1.95}
 .pattern-zh{font-size:14.5px;margin-top:5px}
 /* 1 笔记页头：标题与按钮不折字 */
 .notes-head{flex-wrap:wrap;row-gap:8px}
 .notes-head h2{white-space:nowrap}
 .notes-head .btn{white-space:nowrap;padding:6px 10px;font-size:12.5px}
 .notes-head>span{flex-wrap:wrap;justify-content:flex-end}
 /* 1 全平台通用：分区标题不折行、行内按钮不折字 */
 .section-head h2{white-space:nowrap}
 .section-head .btn,.section-head .text-link{white-space:nowrap}
 /* 3 欢迎框：整体缩小，背景图回来 */
 body[data-page="home"] .home-hero{min-height:0;padding:14px 14px 12px;background-image:linear-gradient(95deg,rgba(246,250,242,.88),rgba(246,250,242,.55) 60%,rgba(246,250,242,.15)),url("assets/home-environment.png");background-size:cover;background-position:68% center}
 .home-hero .hero-title{font-size:20px}
 .home-hero .hero-kicker{font-size:10px;margin-bottom:5px}
 .home-hero .hero-date{font-size:11px;top:12px;left:14px}
 .home-hero .hero-actions .btn{padding:7px 13px;font-size:13px}
 .home-hero .hero-art{width:84px}
 .home-hero .hero-corner{display:none}
 /* 4 今日任务：与上下对齐拉宽，压低高度 */
 .home-tasks{max-width:none;margin:0;padding:10px 12px 12px}
 .home-tasks .section-head{margin-bottom:4px}
 .home-tasks .section-head h2{font-size:16px}
 .home-tasks .task-total{font-size:19px}
 .daily-track .progress{height:5px}
 .task-tiles{gap:8px;margin-top:8px}
 .task-tile{padding:7px 9px;gap:2px;border-radius:12px}
 .task-tile-head span:first-child{font-size:12px}
 .task-tile-head .task-icon svg{width:15px;height:15px}
 .task-fraction strong{font-size:18px}
 .task-fraction span{font-size:12px}
 .task-tile .progress{height:4px;margin-top:3px}
 /* 6 选课条：选书/选课并排紧凑，整框约 1.5cm 高 */
 .course-intro{flex-wrap:wrap;gap:6px 8px;padding:8px 10px}
 .course-intro strong{font-size:14px}
 .course-scope-note{font-size:11px}
 .course-controls{display:flex;gap:6px;flex:1 1 auto;min-width:0}
 .course-controls label{font-size:0;flex:1 1 0;min-width:0;display:block;margin:0}
 .course-controls select{width:100%;font-size:13px;padding:6px;min-height:34px}
 .course-intro .tabs{margin:0}
 .course-intro .tabs .tab{padding:6px 10px;font-size:12.5px}
 .course-intro .icon-btn{width:32px;height:32px;flex:none}
 /* 6 背词卡高度：一页放下，不滑动就能点认识/不认识 */
 body[data-page="learn"] .focus-card{height:calc(100dvh - 224px);min-height:330px}
 body[data-page="learn"] .focus-answer{min-height:92px}
 body[data-page="learn"] .focus-center .main-arabic{font-size:30px;min-height:3.2em}
 /* 5 小院放大后可上下逛（放大前院高=屏高，无纵向溢出） */
 .court-scene{overflow-y:auto!important}
}

/* ===== 2026-11-03 手机适配二批（仅手机 ≤780）：看新闻紧凑 ===== */
@media (max-width:780px){
 .news-head{align-items:center;gap:8px;margin-bottom:10px}
 .news-head .icon-btn{width:34px;height:34px;flex:none}
 .news-tabs{margin:0;flex:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
 .news-tabs::-webkit-scrollbar{display:none}
 .news-tabs .tab{flex:none;padding:5px 10px;font-size:12px}
 .news-list{gap:7px}
 .news-card{padding:9px 11px;border-radius:11px}
 .news-card .arabic{font-size:16.5px!important;line-height:1.6}
 .news-zh-title{font-size:14.5px;font-weight:600}
 .news-meta{gap:7px;margin-top:5px}
 .news-meta .caption{font-size:11px}
 .news-tag{font-size:11px;padding:1px 8px}
 body[data-page="newsreader"] .reading-paper{padding:16px 14px}
 body[data-page="newsreader"] .reading-arabic-title{font-size:21px;line-height:1.7;margin:4px 0 6px}
 body[data-page="newsreader"] .reading-text{font-size:17.5px;line-height:2}
 body[data-page="newsreader"] .news-subhead{font-size:17px;margin:14px 0 2px}
 body[data-page="newsreader"] .reading-zh{font-size:13.5px}
}

/* ===== 2026-11-03 手机全平台尺寸总扫（仅手机 ≤780）：所有页面按手机量级收一遍 ===== */
@media (max-width:780px){
 /* 全局量级 */
 .panel{padding:14px 13px}
 .section-head{margin-bottom:10px}
 .section-head h2{font-size:17px}
 .section-head .caption{white-space:normal;text-align:right}
 .caption,.summary-note{font-size:12px}
 .modal{padding:18px 16px}
 .phase-heading{padding:13px 14px;margin:6px 0 10px}
 .phase-heading h2{font-size:20px;margin:6px 0 3px}
 .phase-heading p{font-size:13px;line-height:1.7}
 .court-backrow .court-back,.court-back{font-size:13px;padding:6px 12px}
 /* 小院各房间页头：图小、字小、一行交代完 */
 .court-room-hero{gap:12px}
 .court-room-door{width:64px}
 .court-room-hero-copy h2{font-size:19px;letter-spacing:.1em}
 .court-points-line{font-size:12.5px;line-height:1.6}
 .court-actions .btn{min-height:34px;padding:6px 14px;font-size:13px}
 /* 成长阁：等级字不再竖排、称号墙四列一页放完 */
 .growth-now{flex-direction:column;align-items:flex-start;gap:2px}
 .growth-title-big{font-size:27px}
 .growth-bar{height:7px}
 .growth-wall{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .growth-cell{padding:7px 6px;border-radius:10px;gap:2px}
 .growth-cell b{font-size:12.5px}
 .growth-cell small{font-size:9.5px;line-height:1.4}
 .ledger-row{padding:8px 2px;font-size:13px}
 .growth-rank{font-size:13px}
 /* 储物间：三列小卡，不再一张占半屏 */
 .bp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .bp-card{padding:6px}
 .bp-name{font-size:12.5px}
 .bp-meta{font-size:11px}
 .bp-wear{width:100%;white-space:nowrap;min-height:30px;font-size:12px;padding:4px 6px}
 /* 小铺：页头收小、货架三列紧凑、按钮不竖排 */
 .court-shop-head{padding:10px 12px;gap:8px 12px;margin-bottom:10px}
 .court-shop-door{width:56px}
 .court-shop-title h2{font-size:20px}
 .court-shop-title .hero-kicker{font-size:12px}
 .shop-balance{margin-top:0;font-size:13px}
 .shop-balance b{font-size:18px}
 .court-shop-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .court-shop-tabs .tab{flex:none;padding:6px 13px;font-size:13px}
 .shop-wall,.shop-wall-notes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .shop-card-media{aspect-ratio:1/1}
 .shop-card-body{padding:6px 7px 8px;gap:2px}
 .shop-card h3{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .shop-card-price{font-size:11px}
 .shop-card-price b{font-size:15px}
 .shop-card-row{flex-direction:column;align-items:stretch;gap:3px}
 .shop-card-row .btn{width:100%;white-space:nowrap;min-height:29px;padding:4px 6px;font-size:11.5px}
 .shop-short{font-size:10px;text-align:center}
 /* 钱柜/积分/商品柜 */
 .points-balance{gap:14px;flex-wrap:wrap}
 .points-balance strong{font-size:21px}
 .points-task{padding:8px 0;font-size:13.5px}
 .cabinet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .cabinet-card{padding:8px;gap:5px}
 .cabinet-name{font-size:12px;line-height:1.5}
 .cabinet-price{font-size:15px}
 .cabinet-card .caption{font-size:10.5px;line-height:1.55}
 .cabinet-card .btn{min-height:32px;font-size:12.5px;white-space:nowrap;padding:5px 8px}
 /* 会客厅/社区 */
 .community-panel{padding:14px 13px}
 .community-tabs{gap:7px}
 .community-tabs .tab{padding:6px 14px;font-size:13px}
 .ft-h{font-size:14.5px;margin:12px 0 6px}
 .ft-row{padding:7px 0;gap:8px}
 .ft-name{font-size:14px}
 .community-status{font-size:13px;line-height:1.7}
 .stack-form input,#friend-username{min-height:38px;font-size:14px}
 .team-code-box{flex-wrap:wrap;gap:6px;font-size:13px}
 /* 个人中心/成就/笔记架/语法卡 */
 .profile-main-card{padding:16px 14px}
 .profile-name{font-size:19px}
 .profile-stats strong{font-size:18px}
 .profile-menu-item{padding:11px 2px;font-size:14.5px}
 .achievement{min-height:98px;padding:10px 4px}
 .medal{width:44px;height:44px}
 .word-row .arabic{font-size:20px}
 .nb-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .nb-meta b{font-size:12.5px}
 .grammar-card{padding:18px 16px;min-height:0}
 .grammar-body{font-size:16px;line-height:2}
}

/* ===== 2026-11-03 首页定点修正（仅手机）：欢迎框不撞按钮、今日任务磁贴上提 ===== */
@media (max-width:780px){
 body[data-page="home"] .home-hero{padding:12px 12px 10px}
 .home-hero .hero-copy{max-width:57%;align-items:flex-start;text-align:left}
 .home-hero .hero-title{font-size:19px;line-height:1.35;margin:4px 0 8px}
 .home-hero .hero-top-actions{top:10px;right:10px;gap:7px}
 .home-hero .hero-top-actions .icon-btn{width:32px;height:32px;border-radius:10px}
 .home-hero .hero-top-actions .icon-btn svg{width:16px;height:16px}
 .hero-top-actions .mobile-mode-entry{padding:5px 8px;font-size:11px;gap:4px;min-height:30px}
 .hero-top-actions .mobile-mode-entry svg{width:13px;height:13px}
 .home-hero .top-avatar{width:32px;height:32px;border-width:2px}
 .home-hero .hero-date{top:10px;left:12px;font-size:11px}
 .home-hero .hero-kicker{margin-bottom:2px}
 .home-hero .hero-actions{gap:8px;flex-wrap:wrap}
 .home-hero .hero-actions .btn{padding:6px 12px;min-height:34px;font-size:13px}
 .home-hero .hero-art{width:40%}
 .home-tasks{padding:9px 12px 10px}
 .home-tasks .section-head{margin-bottom:3px}
 .daily-track{margin:0 0 5px}
 .task-tiles{margin-top:0;gap:7px}
}

/* ===== 2026-11-03 会客厅定点修正（仅手机）：回院子钮删除、页头与面板再收 ===== */
@media (max-width:780px){
 .court-backrow{display:none}
 .court-room-hero{padding:11px 12px}
 .court-room-door{width:52px}
 .court-room-hero-copy h2{font-size:17px}
 .court-points-line{font-size:11.5px}
 .court-actions .btn{min-height:30px;padding:5px 12px;font-size:12px}
 .community-panel{padding:12px 11px}
 .community-tabs .tab{padding:5px 12px;font-size:12.5px;min-height:30px}
 .ft-h{font-size:13.5px;margin:8px 0 5px}
 .community-status{font-size:12.5px}
 #friend-username{min-height:36px;font-size:13.5px}
 .community-panel .row .btn{white-space:nowrap;min-height:36px;padding:6px 14px;font-size:13.5px}
}

/* ===== 2026-11-03 首页再改（仅手机）：欢迎框做成最矮一条、删按钮、任务框对齐 ===== */
@media (max-width:780px){
 body[data-page="home"] .home-dashboard{grid-template-columns:minmax(0,1fr)}
 body[data-page="home"] .home-hero{min-height:0;padding:7px 12px;display:flex;align-items:center}
 body[data-page="home"] .home-hero .hero-copy{max-width:none;flex:1;margin-top:11px;align-items:flex-start;text-align:left}
 body[data-page="home"] .home-hero .hero-title{font-size:17px;letter-spacing:.05em;line-height:1.3;margin:0}
 body[data-page="home"] .home-hero .hero-kicker,
 body[data-page="home"] .home-hero .hero-art,
 body[data-page="home"] .home-hero .hero-corner,
 body[data-page="home"] .home-hero .hero-actions,
 body[data-page="home"] .home-hero .hero-top-actions .mobile-mode-entry,
 body[data-page="home"] .home-hero .hero-top-actions .icon-btn{display:none}
 body[data-page="home"] .home-hero .hero-date{top:5px;left:12px;font-size:10px}
 body[data-page="home"] .home-hero .hero-top-actions{top:50%;transform:translateY(-50%);right:12px}
 body[data-page="home"] .home-hero .top-avatar{width:28px;height:28px;border-width:2px}
 body[data-page="home"] .home-tasks{grid-column:1/-1;width:100%;max-width:none;margin:0;padding:8px 12px 9px}
 body[data-page="home"] .home-tasks .section-head{margin-bottom:4px}
 body[data-page="home"] .home-tasks .section-head h2{font-size:15px}
 body[data-page="home"] .home-tasks .task-total{font-size:13px}
 body[data-page="home"] .daily-track{display:none}
 body[data-page="home"] .task-tiles{margin-top:0;gap:7px}
 body[data-page="home"] .task-tile{padding:6px 4px}
 body[data-page="home"] .task-tile-head{font-size:11px}
 body[data-page="home"] .task-fraction strong{font-size:17px}
}

/* ===== 2026-11-03 个人中心收短（仅手机）：头像框整体变小、等级不再错行 ===== */
@media (max-width:780px){
 body[data-page="profile"] .profile-layout{grid-template-columns:minmax(0,1fr)}
 body[data-page="profile"] .profile-main-card{padding:0!important}
 body[data-page="profile"] .profile-cover{min-height:0!important;padding:12px 14px!important;gap:12px}
 body[data-page="profile"] .profile-cover .avatar-frame-wrap{width:54px;height:54px;flex:none}
 body[data-page="profile"] .profile-cover .avatar{width:54px!important;height:54px!important;flex:none}
 body[data-page="profile"] .profile-main{min-width:0;flex:1}
 body[data-page="profile"] .profile-name{font-size:19px!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 body[data-page="profile"] .profile-name .growth-chip{font-size:10.5px;padding:1px 7px;margin-left:0}
 body[data-page="profile"] .profile-subtitle{font-size:11.5px!important;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-page="profile"] .profile-level{font-size:10.5px;padding:2px 6px;white-space:nowrap}
 body[data-page="profile"] .profile-controls{margin-top:7px;display:flex;gap:7px}
 body[data-page="profile"] .profile-controls .btn{min-height:30px;padding:5px 12px;font-size:12.5px}
 body[data-page="profile"] .profile-stats{padding:9px 6px!important}
 body[data-page="profile"] .profile-stats strong{font-size:19px!important}
 body[data-page="profile"] .profile-stats span{font-size:11px}
 body[data-page="profile"] .profile-menu{padding:14px 13px}
 body[data-page="profile"] .profile-archive-title{font-size:17px}
 body[data-page="profile"] .profile-menu-item{padding:11px 2px!important;font-size:14.5px}
 body[data-page="profile"] .footprints-stats strong{font-size:19px}
 body[data-page="profile"] .progress-ring{width:96px;height:96px}
 body[data-page="profile"] .progress-ring>div{width:78px;height:78px}
 body[data-page="profile"] .progress-ring b{font-size:20px}
 body[data-page="profile"] .aside-title{font-size:15.5px}
}

/* ===== 2026-11-03 首页纠正（仅手机）：界面钮真删、欢迎框背景恢复、中间任务框收短 ===== */
@media (max-width:780px){
 body[data-page="home"] .home-hero .hero-top-actions .mobile-mode-entry{display:none!important}
 body[data-page="home"] .home-hero{min-height:168px;padding:12px 14px}
 body[data-page="home"] .home-tasks{padding:9px 12px 10px!important}
 body[data-page="home"] .home-tasks .section-head{margin-bottom:5px}
 body[data-page="home"] .home-tasks .section-head h2{font-size:15px}
 body[data-page="home"] .task-tile{padding:7px 8px 8px!important}
 body[data-page="home"] .task-tile-head{font-size:11.5px}
 body[data-page="home"] .task-tile-head svg{width:14px;height:14px}
 body[data-page="home"] .task-fraction strong{font-size:16px}
 body[data-page="home"] .task-tile .progress{display:none}
}

/* ===== 2026-11-03 今日任务真收短（仅手机）：破 mobile-app 的 75px 最小高 ===== */
@media (max-width:780px){
 body[data-page="home"] .home-tasks .section-head h2{font-size:15px!important}
 body[data-page="home"] .task-tile{min-height:0!important;padding:7px 9px!important;text-align:left}
 body[data-page="home"] .task-tile-head{font-size:11.5px;justify-content:space-between}
 body[data-page="home"] .task-fraction{margin:3px 0 0!important}
 body[data-page="home"] .task-fraction strong{font-size:17px!important}
 body[data-page="home"] .task-tile .progress-track{display:none}
}
