body,html,ul,li,p{margin:0;padding:0}body,html{font-size:12px;font-family:'HanHei SC','PingFang SC','Helvetica Neue','Helvetica','STHeitiSC-Light','Arial',sans-serif}html{-webkit-tap-highlight-color:rgba(0,0,0,0)}a{text-decoration:none}*{box-sizing:border-box}.markdown-body .edit_btn{position:relative;right:20px;float:right;top:16px;z-index:2;font-size:14px}@media screen and (max-width:479px){.markdown-body .edit_btn{right:15px}}.markdown-body .edit_btn .split{display:inline-block;height:13px;vertical-align:middle;width:1px;margin:-1px 0 0 0}.markdown-body .edit_btn a{text-decoration:none;background:#2196f3;color:#fff;border-radius:3px;padding:2px 5px}.markdown-body .edit_btn a:hover{color:#333;background:#e6e6e6}.markdown-body .markdown-body{padding-top:0 !important;padding-left:0 !important;padding-right:0 !important}.markdown-body{margin:0 auto 0 auto;margin-top:0 !important;padding:90px 35px 30px 35px;max-width:980px}@media screen and (max-width:479px){.markdown-body{padding:70px 15px 30px 15px}}[data-color-mode*='dark'],[data-color-mode*='dark'] body{color-scheme:dark;--color-header-bg:rgba(58,58,58,0.561);--color-header-border:#323232;--color-hover:rgba(255,255,255,0.188)}[data-color-mode*='light'],[data-color-mode*='light'] body{color-scheme:light;--color-header-bg:rgba(255,255,255,0.322);--color-header-border:#d3d3d3;--color-hover:#f2f2f2}.warpper{min-height:100vh;display:flex;flex-direction:column;justify-content:center}.warpper .footer{padding-bottom:280px}.header{width:517px;margin:0 auto 0;padding:0 10px}.header .logo a{display:flex;color:currentColor}.header .box{position:relative}.header .search{min-height:20px;position:relative;display:table;border-collapse:separate}.header .search li,.header .search ul{list-style:none}.header .search #result .ok{background:#f4f4f4}.header .search .search-list{position:absolute;display:none;z-index:999;box-shadow:1px 1px 3px var(--color-theme-bg);border:1px solid var(--color-header-border);background:var(--color-theme-bg);min-width:100px;top:39px;width:100%;padding:5px;border-radius:5px 5px 5px 5px}.header .search .search-list li{line-height:23px}.header .search .search-list li span{padding:0 8px;color:#b9b9b9}.header .search .search-list a{display:block;padding:2px 6px 2px 6px}.header .search .search-list a:hover{background-color:var(--color-hover)}.header .search .search-list a .kw{color:#f00;font-style:inherit;font-weight:bold}.header .search .query,.header .search .enter-input{display:table-cell;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.header .search .query{resize:none;position:relative;z-index:2;width:100%;height:40px;padding:6px 12px;font-size:14px;font-weight:bold;line-height:1.42857143;background-color:transparent;background-image:none;border:1px solid rgba(143,143,143,0.478);border-radius:5px 0 0 5px;-webkit-appearance:none}.header .search .query:focus{z-index:99;border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.header .search .enter-input{white-space:nowrap}.header .search .enter-input button{margin:0;left:-1px;position:relative;z-index:5;display:inline-block;padding:9px 23px;font-size:14px;font-weight:bold;line-height:1.42857143;text-align:center;text-rendering:auto;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;user-select:none;background-image:none;border:1px solid transparent;border-collapse:separate;border-radius:0 5px 5px 0;border-color:rgba(143,143,143,0.478)}.header .search .enter-input button:focus,.header .search .enter-input button:active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.header .search .enter-input button:active{color:#333;background-color:#e6e6e6;border-color:#b4b4b4;background-image:none;box-shadow:inset 0 8px 32px -8px rgba(0,0,0,0.3)}.header .search .enter-input button:focus{color:#333;background-color:#e6e6e6;border-color:#999;text-decoration:none}.header .search .enter-input button:hover{color:#333;background-color:#e6e6e6;border-color:#b4b4b4}.footer{text-align:center;padding-top:31px;font-size:14px;font-weight:300;border-top:1px solid var(--color-header-border);padding-bottom:50px;padding:31px 6px 50px 6px}.footer.home{border-top:0}.footer div{font-size:12px}.footer .ad a b{display:block;line-height:1}.footer .ad a{width:160px}.footer .ad_title{padding-top:3rem}.footer .ad{flex-wrap:wrap;display:inline-flex;gap:1rem}.header.home .header_inner{display:flex;flex-direction:column;align-items:center}.header.home .logo{min-height:140px;display:flex;align-items:center}.header.home .search{display:flex;min-width:320px}.header.header_list{width:auto;position:fixed;width:100%;background:var(--color-theme-bg);backdrop-filter:saturate(180%) blur(.4rem);background-color:var(--color-header-bg);z-index:99}.header_list{padding:10px 10px 10px 13px;border-bottom:1px solid var(--color-header-border)}.header_list .logo{padding-right:24px;text-align:left}.header_list .logo svg{height:37px;width:136px}.search_list{padding:79px 27px}.search_list a{font-size:16px}.search_list a strong{font-weight:bold}.search_list a .kw{color:#f00;font-style:inherit;font-weight:bold}.search_list a:hover .kw{color:#333}.search_list li{padding:10px 0 10px 0;list-style-type:none}.search_list li p{padding-top:5px;color:#4f4f4f}.hotlist{padding:79px 27px}.hotlist a{font-size:16px}.hotlist a strong{font-weight:bold}.hotlist li{padding:5px 0 5px 0;list-style-type:none}.hotlist li p{padding-top:5px;color:#4f4f4f}.header_list .header_inner{display:flex;align-items:center}.header_list .header_inner .search{flex:1;display:flex}.header_inner,.hotlist,.search_list,.contributors{max-width:920px;margin:0 auto}.contributors{padding:79px 27px;max-width:960px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.contributors a{font-weight:bold}.contributors .links{display:inline-flex;flex-wrap:wrap}.contributors .links a{background:var(--color-theme-bg);height:2.1rem;border-radius:.3rem;gap:.1rem;padding:0 .5rem 0 .4rem}@media screen and (max-width:479px){.header{width:inherit}.header .search .enter-input button{padding:9px 14px}.header_list{padding:10px 10px 10px 13px}.header_list .logo{float:inherit;padding-right:10px;text-align:center}.header_list .logo svg{width:96px}.header_list .search .query{line-height:31px}.search_list,.hotlist{padding:78px 27px}}
/* ===== 分支标签 ===== */
.branches{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
/* 内页顶栏:标签两侧都要留白 —— 左侧与 logo 分隔,右侧与搜索框分隔。
   只给 margin-left 会让最后一个标签紧贴搜索框。 */
.header_list .branches{margin:0 16px;flex:0 0 auto;justify-content:flex-start}
.branch-tab{display:inline-block;padding:4px 12px;border-radius:14px;font-size:13px;line-height:1.5;color:inherit;opacity:.62;border:1px solid var(--color-header-border);white-space:nowrap;transition:background .15s,opacity .15s}
.branch-tab:hover{background:var(--color-hover);opacity:1}
.branch-tab.is-active{background:#2196f3;border-color:#2196f3;color:#fff;opacity:1;font-weight:bold}
.header.home .branches{margin:14px 0 18px}

/* ===== 搜索结果分支徽标 ===== */
.header .search .search-list a .branch,
.search_list a .branch{display:inline-block;margin-left:6px;padding:0 6px;border-radius:8px;font-size:11px;font-style:normal;line-height:16px;vertical-align:1px;color:#fff;background:#8a8a8a;opacity:.85}

/* ===== 总览页分支分组 ===== */
.hotlist-branch{margin:26px 0 6px;font-size:18px;font-weight:bold;padding-bottom:6px;border-bottom:1px solid var(--color-header-border);display:flex;align-items:center;gap:10px}
.hotlist-branch:first-child{margin-top:0}
.hotlist-count{font-size:12px;font-weight:400;color:#999;border:1px solid var(--color-header-border);border-radius:10px;padding:0 8px;line-height:18px}

/* ===== 内页顶栏:给左上角的 dark-mode 开关让位 =====
   开关是**视口固定**的(head.ejs 内联样式 left:10px / z-index:999),而内页
   顶栏是整宽固定条 —— 两者会不会撞,取决于顶栏内容是否够得着左边缘。
   宽屏时 .header_inner 的 920px 容器居中,logo 被推离左边缘,不碰;
   视口窄到容器贴住左内边距后,logo 落到 x=13 附近,被开关盖住
   (实测 940px 下重叠 39.7px)。故在会撞的区间把左内边距让到 64px。
   断点取 1044,而不是"刚好看不见重叠"的 1023:容器居中带来的偏移是渐变的,
   1023 那版在 1024–1026 区间只剩 0.8–1.8px 余量,深色模式下反而实测
   重叠 1.45px。取 1044 后切换点两侧余量对称,全宽度区间最小 9px。
   64 的来历:开关宽度**随状态变化** —— 浅色下「🌒 Dark」实测 52.71px,
   深色下「🌞 Light」实测 54.95px,按更宽的 54.95 再加约 9px 余量,
   以吸收不同平台的 emoji 字体宽度差异。 */
@media screen and (max-width:1044px){
  .header_list{padding-left:64px}
}

/* ===== 窄屏:标签换到独立一行,内容区相应下移 =====
   断点按内容宽度定,不沿用 legacy 的 479px。
   实测关系:单行时「搜索框宽 = 视口宽 − 左内边距 − 10(右内边距) − 516(其余项)」。
   断点两次随顶栏变宽而后移:
     760 → 790  加 GitHub 图标(20px + 间距 10px,共 30px)
     790 → 840  上面的开关让位(左内边距 13 → 64,共 51px)
   当前 840 时搜索框约 251px,守住 250 的目标下限。 */
/* 窄屏排成两行:第一行 logo + 搜索,第二行分支标签。
   不给搜索框设 flex-basis:100%,否则会被挤到独立一行变成三行。 */
@media screen and (max-width:840px){
  .header_list .header_inner{flex-wrap:wrap}
  .header_list .branches{order:3;width:100%;margin:8px 0 0;justify-content:center}
  .hotlist,.search_list{padding-top:108px}
  .markdown-body{padding-top:108px}
}
@media screen and (max-width:479px){
  .branch-tab{padding:3px 9px;font-size:12px}
  .hotlist,.search_list,.markdown-body{padding-top:96px}
}

/* ===== 全站 GitHub 入口(顶栏图标 + 页脚署名) ===== */
/* 图标挂在 .search 内部而非 .header_inner:首页 .header_inner 是纵向 column
   布局,挂外层会掉到搜索框下面;挂 .search 内则内页排到整行最右、
   首页排在搜索框右侧,两种布局都对。 */
.header .search .github-link{display:flex;align-items:center;flex:0 0 auto;margin-left:10px;color:inherit;opacity:.62;transition:opacity .15s}
.header .search .github-link:hover{opacity:1}
.header .search .github-link svg{display:block;width:20px;height:20px;fill:currentColor}
/* 首页顶栏是居中列,图标参与流式排布会把搜索框挤得偏左;
   改为固定右上角,与左上角的 dark-mode 开关(同 z-index)左右对称。 */
.header.home .search .github-link{position:fixed;right:10px;top:8px;z-index:999;margin:0}
/* 页脚署名:字号由已有的 .footer div{font-size:12px} 接管 */
.footer .credit{margin-top:10px}
.footer .credit a:hover{text-decoration:underline}

/* ===== 首页正文(SEO P0:让百度有正文可摘,也给用户直达入口) ===== */
/* 原布局靠 flex 居中 + footer 底部 280px 撑出"搜索框居中"的效果。
   加入正文后内容会超过一屏,居中会导致顶部被裁,故首页改为顶部对齐。 */
.warpper.home-page{
  position:relative;
  justify-content:flex-start;
  padding-top:5vh;
  background:
    radial-gradient(1000px 560px at 50% -180px, rgba(33,150,243,.16), transparent 70%),
    radial-gradient(720px 440px at 88% 4%, rgba(124,58,237,.10), transparent 70%);
}
[data-color-mode*='dark'] .warpper.home-page{
  background:
    radial-gradient(1000px 560px at 50% -180px, rgba(59,130,246,.24), transparent 70%),
    radial-gradient(720px 440px at 88% 4%, rgba(139,92,246,.16), transparent 70%);
}
.warpper.home-page::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:620px;
  pointer-events:none;
  background-image:radial-gradient(rgba(120,120,120,.16) 1px, transparent 1px);
  background-size:22px 22px;
  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
  opacity:.35;
}
.home-page .header.home{width:min(640px,100%)}
.home-page .header.home .logo{min-height:112px}
/* 首页分支标签统一为圆角标签：PC 单行，移动端 3 列网格。 */
.home-page .header.home .branches{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:2px 8px;
  width:100%;
  max-width:100%;
  margin:8px auto 14px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.home-page .branch-tab{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:0;
  min-height:34px;
  padding:6px 8px 9px;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font-size:clamp(11px,.95vw,12px);
  line-height:1.2;
  opacity:.66;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  transition:color .15s,opacity .15s,background .15s;
}
.home-page .branch-tab:hover{background:transparent;color:#2196f3;opacity:1}
.home-page .branch-tab.is-active{
  background:transparent;
  border-color:transparent;
  color:#2196f3;
  opacity:1;
  box-shadow:none;
}
.home-page .branch-tab.is-active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:3px;
  width:18px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,#2196f3,#6366f1);
  transform:translateX(-50%);
}
.home-page .header.home .search{width:100%;min-width:0}
.home-page .header .search .query{height:52px;padding:0 18px;font-size:15px;font-weight:500;border-radius:14px 0 0 14px;background:rgba(127,127,127,.06);border-color:var(--color-header-border)}
.home-page .header .search .query:focus{border-color:#2196f3;box-shadow:0 0 0 4px rgba(33,150,243,.16)}
.home-page .header .search .enter-input button{height:52px;padding:0 26px;font-size:15px;font-weight:600;color:#fff;border:1px solid transparent;border-radius:0 14px 14px 0;background:linear-gradient(135deg,#2196f3,#6366f1)}
.home-page .header .search .enter-input button:hover{background:linear-gradient(135deg,#1d86e0,#5457e5);border-color:transparent}
.home-page .header .search .search-list{top:52px;border-radius:12px;overflow:hidden}

.home-intro{max-width:920px;margin:0 auto;padding:20px 27px 20px;text-align:center}
.home-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:5px 13px;border:1px solid var(--color-header-border);border-radius:999px;font-size:12px;font-weight:500;letter-spacing:.04em;color:#777;background:rgba(127,127,127,.06)}
[data-color-mode*='dark'] .home-eyebrow{color:#aaa}
.home-eyebrow-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.home-intro h1{margin:0 0 14px;font-size:clamp(28px,4vw,42px);line-height:1.2;font-weight:800;letter-spacing:-.02em}
.home-title-accent{background:linear-gradient(120deg,#2196f3 10%,#7c3aed 90%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
[data-color-mode*='dark'] .home-title-accent{background-image:linear-gradient(120deg,#60a5fa 10%,#a78bfa 90%)}
.home-lead{max-width:680px;margin:0 auto;font-size:14px;line-height:1.9;color:#666}
[data-color-mode*='dark'] .home-lead{color:#aaa}
.home-stats{display:flex;max-width:520px;margin:26px auto 18px;padding:15px 0;border-top:1px solid var(--color-header-border);border-bottom:1px solid var(--color-header-border);list-style:none}
.home-stats li{position:relative;flex:1;min-width:0;list-style:none}
.home-stats li+li::before{content:"";position:absolute;left:0;top:50%;width:1px;height:26px;transform:translateY(-50%);background:var(--color-header-border)}
.home-stats strong{display:block;font-size:22px;line-height:1.15;font-weight:800;font-variant-numeric:tabular-nums}
.home-stats span{display:block;margin-top:4px;font-size:12px;color:#888}
.home-games{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 24px;font-size:12px;color:#888}
[data-color-mode*='dark'] .home-games{color:#aaa}
.home-games-label{letter-spacing:.08em;opacity:.75}
.home-games a{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border:1px solid var(--color-header-border);border-radius:999px;color:inherit;opacity:.82;background:rgba(127,127,127,.04);transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease}
.home-games a:hover{transform:translateY(-1px);border-color:rgba(33,150,243,.5);background:rgba(33,150,243,.08);opacity:1}
.home-games a:focus-visible{outline:2px solid #2196f3;outline-offset:3px}

/* ===== 首页「我想…」场景入口 ===== */
.home-scenarios{max-width:820px;margin:0 auto 24px;text-align:left}
.home-scenario-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.home-scenario-card{list-style:none}
.home-scenario-card a{display:flex;flex-direction:column;gap:5px;height:100%;padding:14px 15px;border:1px solid var(--color-header-border);border-radius:14px;background:linear-gradient(160deg,rgba(33,150,243,.07),rgba(124,58,237,.05) 60%,rgba(127,127,127,.02));color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.home-scenario-card a:hover{transform:translateY(-2px);border-color:rgba(33,150,243,.5);box-shadow:0 8px 22px rgba(33,150,243,.12)}
.home-scenario-card a:focus-visible{outline:2px solid #2196f3;outline-offset:3px}
.home-scenario-kicker{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;color:#2196f3;background:rgba(33,150,243,.10)}
.home-scenario-kicker::before{content:"";width:5px;height:5px;border-radius:50%;background:linear-gradient(135deg,#2196f3,#7c3aed)}
[data-color-mode*='dark'] .home-scenario-kicker{color:#60a5fa;background:rgba(96,165,250,.14)}
.home-scenario-title{font-size:14px;line-height:1.4;font-weight:700}
.home-scenario-desc{font-size:11px;line-height:1.6;color:#888}
[data-color-mode*='dark'] .home-scenario-desc{color:#aaa}
@media screen and (max-width:840px){
  .home-scenarios{margin-bottom:20px}
  .home-scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  .home-scenario-card a{transition:none}
}

.home-hot{max-width:820px;margin:0 auto;padding:20px 22px 22px;border:1px solid var(--color-header-border);border-radius:20px;background:rgba(127,127,127,.035);box-shadow:0 14px 40px rgba(15,23,42,.05);text-align:left}
[data-color-mode*='dark'] .home-hot{background:rgba(255,255,255,.03);box-shadow:0 14px 40px rgba(0,0,0,.18)}
.home-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px}
.home-section-head h2{margin:0;font-size:16px;font-weight:700;letter-spacing:.01em}
.home-section-head h2::before{content:"";display:inline-block;width:4px;height:14px;margin-right:8px;border-radius:2px;background:linear-gradient(180deg,#2196f3,#7c3aed);vertical-align:-2px}
.home-more{font-size:13px;white-space:nowrap;color:#2196f3}
.home-more:hover{text-decoration:underline}
.hot-commands{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}
.hot-commands li{list-style:none}
.hot-commands a{display:inline-block;padding:6px 13px;border:1px solid var(--color-header-border);border-radius:16px;font-size:13px;line-height:1.5;color:inherit;opacity:.78;transition:background .15s,opacity .15s}
.hot-commands a:hover{background:var(--color-hover);opacity:1}
.home-page .hot-commands{justify-content:flex-start}
.home-page .hot-commands a{padding:7px 14px;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;opacity:1;background:rgba(127,127,127,.05);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.home-page .hot-commands a:hover{transform:translateY(-2px);border-color:rgba(33,150,243,.55);background:rgba(33,150,243,.08);box-shadow:0 8px 20px rgba(33,150,243,.14)}
.home-page .hot-commands a:focus-visible,.home-more:focus-visible{outline:2px solid #2196f3;outline-offset:3px}
.warpper.home-page .footer{max-width:820px;width:100%;margin:0 auto;padding-top:18px;padding-bottom:56px;border-top:1px solid var(--color-header-border)}

/* ===== 首页访问统计 ===== */
.home-visits{
  --visits-bar:rgba(33,150,243,.38);
  --visits-bar-hover:#2196f3;
  --visits-bar-today:linear-gradient(180deg,#2196f3,#6366f1);
  max-width:820px;
  margin:26px auto 0;
  padding:18px 22px 16px;
  border-top:1px solid var(--color-header-border);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,320px);
  grid-template-areas:"head chart" "note note";
  align-items:center;
  gap:6px 30px;
  text-align:left
}
.home-visits[hidden]{display:none}
[data-color-mode*='dark'] .home-visits{
  --visits-bar:rgba(96,165,250,.32);
  --visits-bar-hover:#60a5fa;
  --visits-bar-today:linear-gradient(180deg,#60a5fa,#a78bfa);
}
.home-visits-head{grid-area:head;min-width:0}
.home-visits-title{margin:0 0 7px;font-size:11px;line-height:1;font-weight:600;letter-spacing:.12em;color:#999}
[data-color-mode*='dark'] .home-visits-title{color:#8b8b8b}
.home-visits-today{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 5px;margin:0;color:#1f2937;font-size:13px;line-height:1.2}
[data-color-mode*='dark'] .home-visits-today{color:#f3f4f6}
.home-visits-today strong{font-size:24px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.home-visits-label,.home-visits-unit,.home-visits-dot{font-size:12px;color:#888;font-weight:400}
[data-color-mode*='dark'] .home-visits-label,[data-color-mode*='dark'] .home-visits-unit,[data-color-mode*='dark'] .home-visits-dot{color:#aaa}
.home-visits-label{margin-right:2px}
.home-visits-dot{margin:0 3px}
.home-visits-chart{grid-area:chart;min-width:0;align-self:end}
.home-visits-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;align-items:end;margin:0;padding:0;height:58px;list-style:none}
.home-visits-day{display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-width:0;list-style:none;position:relative}
.home-visits-bar{position:relative;display:flex;align-items:flex-end;height:43px;outline:none;border-radius:4px 4px 0 0}
.home-visits-bar-fill{display:block;width:100%;min-height:0;border-radius:4px 4px 0 0;background:var(--visits-bar);transform-origin:bottom;transition:background .15s ease,filter .15s ease}
.home-visits-day.is-today .home-visits-bar-fill{background:var(--visits-bar-today)}
.home-visits-bar:hover .home-visits-bar-fill,.home-visits-bar:focus-visible .home-visits-bar-fill{background:var(--visits-bar-hover)}
.home-visits-day.is-today .home-visits-bar:hover .home-visits-bar-fill,.home-visits-day.is-today .home-visits-bar:focus-visible .home-visits-bar-fill{background:var(--visits-bar-today);filter:brightness(1.07)}
.home-visits-bar:focus-visible{outline:2px solid #2196f3;outline-offset:2px}
.home-visits-date{display:block;margin-top:5px;font-size:9px;line-height:1;color:#999;text-align:center;letter-spacing:-.02em;white-space:nowrap}
[data-color-mode*='dark'] .home-visits-date{color:#777}
.home-visits-day.is-today .home-visits-date{color:#2196f3;font-weight:700}
[data-color-mode*='dark'] .home-visits-day.is-today .home-visits-date{color:#60a5fa}
.home-visits-note{grid-area:note;margin:2px 0 0;font-size:11px;line-height:1.5;color:#999;font-variant-numeric:tabular-nums}
[data-color-mode*='dark'] .home-visits-note{color:#888}
.home-visits.is-ready .home-visits-bar-fill{animation:visits-rise .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 35ms)}
@keyframes visits-rise{from{transform:scaleY(0);opacity:.35}to{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.home-visits.is-ready .home-visits-bar-fill{animation:none}}
@media screen and (max-width:840px){
  .home-visits{padding-left:16px;padding-right:16px}
  /* 小程序面板默认展开时，给页脚留出安全区，避免盖住统计条和页脚内容。
     280px ≈ 面板(204) + 按钮(34) + 间距/缓冲；再叠加刘海屏安全区。
     面板收起后规则自动失效；不支持 :has() 的浏览器只是退回原来的间距。 */
  body:has(.miniapp-fab.open) .warpper.home-page .footer{padding-bottom:calc(280px + env(safe-area-inset-bottom,0px))}
}
@media screen and (max-width:640px){
  .home-visits{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "chart" "note";gap:14px;margin-top:22px;padding:16px 2px 14px}
  .home-visits-today strong{font-size:22px}
  .home-visits-chart{width:100%}
}

@media (prefers-reduced-motion: reduce){
  .home-page .hot-commands a{transition:none}
}
@media screen and (max-width:840px){
  .home-intro{padding:16px 20px 18px}
  .home-hot{padding:16px 16px 18px;border-radius:16px}
  .home-page .header .search .enter-input button{padding:0 20px}
}
@media screen and (max-width:479px){
  .warpper.home-page{padding-top:24px}
  .home-page .header.home .logo{min-height:92px}
  .home-page .header.home .branches{margin:10px 0 14px}
  .home-page .header .search .query,.home-page .header .search .enter-input button{height:48px}
  .home-page .header .search .search-list{top:48px}
  .home-page .header .search .enter-input button{padding:0 18px}
  .home-intro{padding:16px 15px 16px}
  .home-intro h1{font-size:26px}
  .home-lead{font-size:13px;line-height:1.8}
  .home-stats{margin:20px auto 16px;padding:12px 0}
  .home-stats strong{font-size:19px}
  .home-games{flex-wrap:wrap;gap:6px;margin-bottom:20px}
  .home-games a{padding:4px 10px}
  .home-section-head{flex-wrap:wrap;gap:6px 12px}
  .home-hot{padding:14px 14px 16px}
  .home-page .hot-commands a{padding:6px 11px;font-size:12px}
}

/* ===== 分支二级分类 ===== */
.category-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}
.category-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid var(--color-header-border);border-radius:16px;font-size:13px;line-height:1.5;color:inherit;opacity:.78;transition:background .15s,opacity .15s}
.category-chip:hover{background:var(--color-hover);opacity:1}
.category-chip.is-active{background:#2196f3;border-color:#2196f3;color:#fff;opacity:1}
.category-chip span{font-size:11px;opacity:.7}
.category-page .breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px;font-size:13px;color:#888}
.category-page .breadcrumb a{color:#2196f3}
.category-page .breadcrumb .sep{color:#bbb}
.category-page .category-links{margin-top:18px}
.category-featured{margin:0 0 26px;padding:16px 18px;border:1px solid var(--color-header-border);border-radius:9px;background:var(--color-theme-bg)}
.category-featured h2{margin:0 0 10px;font-size:15px;font-weight:700}
.category-featured ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.category-featured li{margin:0;list-style:none}
.category-featured a{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--color-header-border);border-radius:7px;color:inherit}
.category-featured a:hover{background:var(--color-hover)}
.featured-name{font-size:14px;font-weight:700;color:#2196f3}
.featured-desc{font-size:12px;line-height:1.55;color:#777}
[data-color-mode*='dark'] .featured-desc{color:#aaa}
@media screen and (max-width:700px){.category-featured ol{grid-template-columns:1fr}}

/* ===== 分支页 / 全部命令页标题 ===== */
.hotlist-title{margin:0 0 8px;font-size:22px;line-height:1.4;font-weight:700}
.hotlist-desc{margin:0 0 22px;font-size:14px;line-height:1.8;color:#666}
[data-color-mode*='dark'] .hotlist-desc{color:#aaa}

/* ===== 分支页学习路径入口 ===== */
.branch-learning{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px;padding:14px 16px;border:1px solid rgba(33,150,243,.35);border-radius:14px;background:linear-gradient(135deg,rgba(33,150,243,.10),rgba(124,58,237,.07));color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.branch-learning:hover{transform:translateY(-1px);border-color:rgba(33,150,243,.6);box-shadow:0 8px 22px rgba(33,150,243,.12)}
.branch-learning:focus-visible{outline:2px solid #2196f3;outline-offset:3px}
.branch-learning-kicker{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;color:#fff;background:linear-gradient(135deg,#2196f3,#6366f1);white-space:nowrap}
.branch-learning-body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:220px}
.branch-learning-body strong{font-size:14px;line-height:1.4}
.branch-learning-desc{font-size:12px;line-height:1.6;color:#777}
[data-color-mode*='dark'] .branch-learning-desc{color:#aaa}
.branch-learning-cta{font-size:12px;font-weight:600;color:#2196f3;white-space:nowrap}
[data-color-mode*='dark'] .branch-learning-cta{color:#60a5fa}
@media screen and (max-width:479px){
  .branch-learning{gap:8px;padding:12px 14px}
  .branch-learning-body{min-width:100%}
  .branch-learning-cta{margin-left:auto}
}

/* ===== 详情页:面包屑 / 相关命令 / 上一条下一条 ===== */
.markdown-body .breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 18px;font-size:13px;color:#888}
.markdown-body .breadcrumb a{color:#2196f3}
.markdown-body .breadcrumb .sep{color:#bbb}
.markdown-body .breadcrumb .current{color:inherit}
.related-commands{margin:36px 0 0;padding-top:22px;border-top:1px solid var(--color-header-border)}
.related-commands h2{margin:0 0 12px;padding:0;border-bottom:0;font-size:16px;font-weight:700}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.related-card{margin:0;padding:12px 14px;border:1px solid var(--color-header-border);border-radius:8px;list-style:none;background:var(--color-theme-bg)}
.related-card-link{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:700;color:#2196f3}
.related-card-link:hover .related-name{text-decoration:underline}
.related-branch{flex:0 0 auto;padding:1px 7px;border-radius:9px;font-size:11px;font-weight:400;line-height:16px;color:#888;border:1px solid var(--color-header-border)}
.related-desc{margin:5px 0 0;font-size:13px;line-height:1.6;color:#777}
[data-color-mode*='dark'] .related-desc{color:#aaa}
@media screen and (max-width:560px){.related-grid{grid-template-columns:1fr}}

/* ===== 详情页系统学习入口 ===== */
.learning-link{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:8px 12px;border:1px solid var(--color-header-border);border-radius:8px;font-size:13px;line-height:1.5;color:inherit;background:var(--color-theme-bg)}
.learning-link:hover{background:var(--color-hover)}
.learning-link span:first-child{flex:0 0 auto;padding:1px 7px;border-radius:9px;font-size:11px;color:#fff;background:#2196f3}
.learning-link strong{font-weight:600;color:#2196f3}
.verified-badge{display:inline-block;margin:0 0 16px;padding:2px 9px;border:1px solid var(--color-header-border);border-radius:10px;font-size:12px;line-height:18px;color:#777}
[data-color-mode*='dark'] .verified-badge{color:#aaa}
.lab-status{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;padding:3px 10px;border:1px solid var(--color-header-border);border-radius:12px;font-size:12px;line-height:20px}
.lab-status strong{font-weight:600}
.lab-status-meta{color:#777}
.lab-status-note{margin:0 0 16px;font-size:12px;line-height:1.6;color:#777}
.lab-status-passed{border-color:#81c784;background:#edf7ed;color:#1b5e20}
.lab-status-partial{border-color:#ffb74d;background:#fff8e1;color:#8a5300}
.lab-status-partial-review{border-color:#90caf9;background:#e3f2fd;color:#0d47a1}
.lab-status-static{border-color:#bdbdbd;background:#f5f5f5;color:#555}
.lab-status-new{border-color:#ce93d8;background:#f3e5f5;color:#6a1b9a}
[data-color-mode*='dark'] .lab-status-meta,[data-color-mode*='dark'] .lab-status-note{color:#aaa}
[data-color-mode*='dark'] .lab-status-static{background:#2a2a2a;color:#bbb}
[data-color-mode*='dark'] .lab-status-passed{background:#17351c;color:#a5d6a7}
[data-color-mode*='dark'] .lab-status-partial{background:#3a2a12;color:#ffcc80}
[data-color-mode*='dark'] .lab-status-partial-review{background:#14283a;color:#90caf9}
[data-color-mode*='dark'] .lab-status-new{background:#321a38;color:#e1bee7}

/* ===== 命令页排障入口 ===== */
.troubleshoot-links{margin:30px 0 0;padding:14px 18px;border:1px solid var(--color-header-border);border-left:3px solid #e8710a;border-radius:8px;background:var(--color-theme-bg)}
.troubleshoot-links h2{margin:0 0 8px;padding:0;border-bottom:0;font-size:14px;font-weight:700}
.troubleshoot-links ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;margin:0;padding:0;list-style:none}
.troubleshoot-links li{display:flex;flex-direction:column;gap:2px;margin:0;list-style:none;font-size:13px;line-height:1.5}
.troubleshoot-links a{color:#2196f3;font-weight:700}
.troubleshoot-links span{font-size:12px;color:#777}
[data-color-mode*='dark'] .troubleshoot-links span{color:#aaa}
@media screen and (max-width:700px){.troubleshoot-links ul{grid-template-columns:1fr}}

/* ===== 长页目录 ===== */
.page-toc{margin:0 0 22px;padding:14px 18px;border:1px solid var(--color-header-border);border-radius:8px;background:var(--color-theme-bg)}
.page-toc h2{margin:0 0 8px;padding:0;border-bottom:0;font-size:14px;font-weight:700}
.page-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin:0;padding-left:20px;font-size:13px;line-height:1.7}
.page-toc li{margin:0}
.page-toc a{color:#2196f3}
.page-toc a:hover{text-decoration:underline}
@media screen and (max-width:560px){.page-toc ol{grid-template-columns:1fr}}
.prev-next{display:flex;justify-content:space-between;gap:16px;margin:26px 0 0;padding-top:18px;border-top:1px solid var(--color-header-border);font-size:14px}
.prev-next a{color:#2196f3}
.prev-next .next{margin-left:auto;text-align:right}

/* ===== 404 ===== */
.error-page{max-width:920px;margin:0 auto;padding:110px 27px 40px;text-align:center}
.error-page h1{margin:0 0 12px;font-size:26px;line-height:1.4}
.error-page p{margin:0 0 14px;font-size:14px;line-height:1.8;color:#666}
[data-color-mode*='dark'] .error-page p{color:#aaa}
.error-page .hot-commands{margin-top:24px}
@media screen and (max-width:479px){
  .error-page{padding:96px 15px 32px}
  .error-page h1{font-size:21px}
}

/* ===== 右下角小程序悬浮入口 ===== */
.miniapp-fab{--mini-panel:clamp(158px,12vw + 40px,180px);--mini-pad:clamp(10px,1vw,13px);position:fixed;right:clamp(12px,1.4vw,18px);bottom:calc(clamp(12px,1.4vw,18px) + env(safe-area-inset-bottom,0px));z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:clamp(8px,.8vw,10px);pointer-events:none}
.miniapp-toggle{display:flex;align-items:center;gap:7px;padding:clamp(8px,.8vw,10px) clamp(11px,1.1vw,14px);border:0;border-radius:999px;background:#07c160;color:#fff;font:inherit;font-size:clamp(12px,.95vw,13px);font-weight:600;line-height:1;cursor:pointer;pointer-events:auto;box-shadow:0 6px 18px rgba(7,193,96,.34);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.miniapp-toggle svg{display:block;flex:0 0 auto;width:18px;height:18px;fill:currentColor}
.miniapp-toggle:hover{background:#06ad56;transform:translateY(-1px);box-shadow:0 8px 22px rgba(7,193,96,.42)}
.miniapp-toggle:focus-visible{outline:2px solid #07c160;outline-offset:3px}
.miniapp-panel{position:relative;width:var(--mini-panel);padding:var(--mini-pad) var(--mini-pad) calc(var(--mini-pad) + 2px);border:1px solid rgba(0,0,0,.06);border-radius:14px;background:#fff;color:#1f2328;text-align:center;box-shadow:0 12px 36px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(8px) scale(.98);transform-origin:bottom right;transition:opacity .16s ease,transform .16s ease,visibility .16s;pointer-events:none}
.miniapp-fab.open .miniapp-panel{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.miniapp-qr{display:block;width:100%;height:auto;border-radius:8px;background:#fff}
.miniapp-title{margin:9px 0 0;font-size:clamp(12px,1vw,13px);font-weight:600;line-height:1.4}
.miniapp-desc{margin:2px 0 0;font-size:clamp(11px,.9vw,12px);line-height:1.5;color:#646a73}
.miniapp-close{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#646a73;font-size:18px;line-height:1;cursor:pointer}
.miniapp-close:hover{background:#f0f0f0;color:#1f2328}
.miniapp-close:focus-visible{outline:2px solid #07c160;outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  .miniapp-toggle,.miniapp-panel{transition:none}
}

/* ===== 页脚备案号 ===== */
.footer .footer-meta{margin-top:8px}
.footer .footer-meta a{opacity:.72}
.footer .footer-meta a:hover{opacity:1;text-decoration:underline}

/* ===== 可访问性:仅屏幕阅读器可见 ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== 站点文字标识(替换旧 Linux 企鹅) ===== */
.logo-wordmark{display:inline-flex;align-items:baseline;gap:1px;color:currentColor;font-family:"SFMono-Regular","JetBrains Mono","IBM Plex Mono",Menlo,Consolas,monospace;font-size:21px;font-weight:700;line-height:1;letter-spacing:-.05em;white-space:nowrap}
.logo-slash{color:#2196f3;font-weight:700;margin:0 1px}
[data-color-mode*='dark'] .logo-slash{color:#60a5fa}
.logo-sub{margin-left:9px;color:currentColor;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:11px;font-weight:600;letter-spacing:.14em;opacity:.58}
.home-page .header.home .logo-wordmark{font-size:28px}
.home-page .header.home .logo-sub{font-size:13px}
.header_list .logo-wordmark{font-size:20px}
.header_list .logo-sub{font-size:10px}
@media screen and (max-width:479px){
  .header_list .logo-wordmark{font-size:17px}
  .header_list .logo-sub{display:none}
  .home-page .header.home .logo-wordmark{font-size:24px}
  .home-page .header.home .logo-sub{font-size:12px}
}

/* ===== 首页六分支入口(沿用旧版圆角卡片视觉) ===== */
.home-page .header.home{width:min(760px,100%)}
.home-branches{max-width:820px;margin:0 auto 24px;text-align:left}
.home-branch-note{font-size:12px;color:#999}
.home-branch-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.home-branch-card{grid-column:span 2;list-style:none}
.home-branch-card a{display:flex;flex-direction:column;gap:5px;height:100%;padding:15px 16px;border:1px solid var(--color-header-border);border-radius:14px;background:rgba(127,127,127,.035);color:inherit;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.home-branch-card a:hover{transform:translateY(-2px);border-color:rgba(33,150,243,.5);background:rgba(33,150,243,.06);box-shadow:0 8px 22px rgba(33,150,243,.12)}
.home-branch-card a:focus-visible{outline:2px solid #2196f3;outline-offset:3px}
.home-branch-name{font-size:15px;line-height:1.3;font-weight:700}
.home-branch-desc{font-size:12px;line-height:1.6;color:#777}
[data-color-mode*='dark'] .home-branch-desc{color:#aaa}
.home-branch-meta{margin-top:auto;padding-top:8px;font-size:11px;color:#999}
.home-branches .home-section-head{margin-bottom:12px}
/* 6 列网格:每张卡占 2 列,一行 3 张。
   7 个分支时最后一张通栏;8 个分支时最后两张各占一半。 */
.home-branch-card:last-child:nth-child(3n+1){grid-column:span 6}
.home-branch-card:last-child:nth-child(3n+1) a{flex-direction:row;align-items:baseline;gap:16px;flex-wrap:wrap}
.home-branch-card:last-child:nth-child(3n+1) .home-branch-name{margin:0}
.home-branch-card:last-child:nth-child(3n+1) .home-branch-desc{flex:1;min-width:200px;margin:0}
.home-branch-card:last-child:nth-child(3n+1) .home-branch-meta{margin:0;padding:0}
.home-branch-card:nth-last-child(2):nth-child(3n+1),
.home-branch-card:last-child:nth-child(3n+2){grid-column:span 3}
@media screen and (max-width:840px){
  .home-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-branch-card,
  .home-branch-card:last-child:nth-child(3n+1),
  .home-branch-card:nth-last-child(2):nth-child(3n+1),
  .home-branch-card:last-child:nth-child(3n+2){grid-column:auto}
  .home-branch-card:last-child:nth-child(3n+1) a{flex-direction:column;align-items:stretch;gap:5px}
  .home-branch-card:last-child:nth-child(3n+1) .home-branch-desc{flex:none;min-width:0}
  .home-branch-card:last-child:nth-child(3n+1) .home-branch-meta{margin-top:auto;padding-top:8px}
}
@media screen and (max-width:479px){
  .home-branch-grid{grid-template-columns:1fr}
  .home-branches{margin-bottom:20px}
}
@media (prefers-reduced-motion:reduce){
  .home-branch-card a{transition:none}
}

/* ===== 内页顶栏：搜索框优先 =====
   旧布局把 logo、8 个分支标签和搜索框挤在同一行，而 header_inner 最宽只有
   920px、分支标签固定占 650px，宽屏下输入框实测只剩 26px。现在固定为两行：
   第一行 logo + 搜索框 + GitHub，第二行分支标签；窄屏标签横向滚动，不换行。
   顶栏同时由 fixed 改为 sticky，占据文档流高度，移动端内容不会被顶栏遮挡。 */
.header.header_list{
  position:sticky;
  top:0;
  width:100%;
}
.header_list .header_inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  row-gap:8px;
}
.header_list .logo{flex:0 0 auto;padding-right:24px}
.header_list .header_inner .search{
  flex:1 1 320px;
  min-width:240px;
  display:flex;
  align-items:center;
}
.header_list .search .query{
  display:block;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  height:40px;
  padding:0 14px;
  font-size:14px;
  font-weight:500;
  border:1px solid var(--color-header-border);
  border-radius:12px 0 0 12px;
  background:rgba(127,127,127,.055);
}
.header_list .search .query:focus{
  border-color:#2196f3;
  box-shadow:0 0 0 3px rgba(33,150,243,.16);
}
.header_list .search .enter-input{display:flex;flex:0 0 auto}
.header_list .search .enter-input button{
  left:0;
  height:40px;
  padding:0 20px;
  font-size:14px;
  font-weight:600;
  color:#fff;
  border:1px solid transparent;
  border-radius:0 12px 12px 0;
  background:linear-gradient(135deg,#2196f3,#6366f1);
}
.header_list .search .enter-input button:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#1d86e0,#5457e5);
}
.header_list .search .search-list{top:44px;border-radius:12px;overflow:hidden}
.header_list .branches{
  order:3;
  display:flex;
  flex:0 0 100%;
  width:100%;
  margin:0;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  overflow:visible;
}
.header_list .branch-tab{flex:0 0 auto}
.header_list .github-link{margin-left:12px}
/* sticky 顶栏已占位，内页只需保留正常的内容上边距。 */
.hotlist,.search_list,.markdown-body{padding-top:28px}
@media screen and (max-width:560px){
  .header_list .header_inner .search{flex:1 1 100%;min-width:0;margin-top:4px}
  .header_list .logo{padding-right:0}
  .hotlist,.search_list,.markdown-body{padding-top:24px}
}
/* 平板/手机宽度：分支标签不换行，改为从左侧开始横向滚动。
   flex-start 很关键：居中的溢出内容会把第一项裁到不可滚动的负偏移里。 */
@media screen and (max-width:840px){
  .header_list .branches{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    padding:0 4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .header_list .branches::-webkit-scrollbar{display:none}
}

@media screen and (max-width:760px){
  .home-page .header.home .branches{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px 8px;
    max-width:640px;
  }
  .home-page .branch-tab{
    flex:initial;
    min-height:40px;
    padding:8px 6px;
    border-radius:10px;
    background:transparent;
    font-size:13px;
    opacity:.72;
    overflow:visible;
    text-overflow:clip;
  }
  .home-page .branch-tab:hover{background:rgba(33,150,243,.06);color:#2196f3;opacity:1}
  .home-page .branch-tab.is-active{
    background:rgba(33,150,243,.09);
    color:#2196f3;
    box-shadow:none;
  }
  .home-page .branch-tab.is-active::after{display:none}
}
@media screen and (max-width:360px){
  .home-page .branch-tab{font-size:11.5px;padding:6px 4px}
}
