/* Question-bank home: quiet blue surfaces, deliberate hierarchy and shared rhythm. */
.qb-home {
  --home-blue-50:#f2f6fb;
  --home-blue-100:#e8eff8;
  --home-blue-200:#d6e2ef;
  --home-blue-600:#38628f;
  --home-blue-900:#183651;
  --home-slate-500:#62758a;
  --home-slate-200:#e3e9f0;
  --home-white:#fff;
  --home-surface:var(--home-white);
  --home-ink:var(--home-blue-900);
  --home-muted:var(--home-slate-500);
  --home-border:var(--home-slate-200);
  --home-accent:var(--home-blue-600);
  --home-radius:16px;
  --home-shadow:0 3px 14px rgba(24,54,81,.025),0 1px 2px rgba(24,54,81,.02);
  --hub-padding:22px;
  --hub-divider:rgba(96,126,159,.15);
  --side-w:238px;
  --rail-w:248px;
  --muted:var(--home-muted);
  --muted-2:#7b8b9d;
  --line:var(--home-border);
  --radius:var(--home-radius);
  background:radial-gradient(ellipse at 50% 0%,#eaf0f7 0%,transparent 55%),#f5f7fa;
}
.qb-home .qb{max-width:1440px;gap:22px;padding-top:26px}
.qb-home .learning-hub{position:relative;margin-bottom:20px;padding:var(--hub-padding);border-radius:20px;border:1px solid var(--home-blue-200);background:radial-gradient(ellipse at 5% 0%,rgba(255,255,255,.78),transparent 65%),linear-gradient(125deg,#edf3fb 0%,#e6eef8 64%,#e3edf7 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 26px rgba(38,69,103,.045)}
.hub-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:22px}
.hub-heading h1{font:700 18px/1.4 'Noto Sans SC',sans-serif;letter-spacing:-.4px;color:var(--home-ink)}
.hub-heading p{font-size:11px;color:var(--home-muted);letter-spacing:.2px}
.qb-home .learning-hub .study-dashboard{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);column-gap:24px;row-gap:0}
.qb-home .learning-hub .continue-card,.qb-home .learning-hub .review-card{min-height:158px;padding:0 0 12px}
.qb-home .learning-hub .review-card{padding-left:24px;border-left-color:var(--hub-divider)}
.qb-home .dashboard-heading{gap:8px;font-size:12px;font-weight:600;color:#4c6783}
.qb-home .learning-hub .dashboard-icon{height:28px;width:28px;border-radius:9px;background:rgba(89,127,170,.1);color:var(--home-accent)}
.qb-home .dashboard-icon svg{height:16px;width:16px}
.qb-home .continue-card h2{font-family:inherit;font-size:19px;line-height:1.5;font-weight:700;letter-spacing:-.35px;margin:12px 0 8px;color:var(--home-ink)}
.qb-home .continue-tags{gap:5px;min-height:21px}
.qb-home .continue-tags span{font-size:10px;background:rgba(255,255,255,.65);color:#5f7892;padding:2px 7px;border-radius:5px}
.qb-home .continue-bottom{gap:20px;padding-top:18px;align-items:end}
.qb-home .continue-progress{font-size:11px;color:var(--home-muted)}
.qb-home .continue-meter{background:rgba(96,126,159,.13);height:5px;margin-top:8px}
.qb-home .continue-meter i{background:linear-gradient(90deg,#42688d,#7096bb)}
.qb-home .study-dashboard .btn{height:38px;min-height:38px;padding:0 16px;font-size:12px;font-weight:600;border-radius:9px;box-shadow:none;transition:background .18s,border-color .18s,box-shadow .18s;transform:none}
.qb-home .study-dashboard .btn-navy{background:linear-gradient(130deg,#24496d,#183651);box-shadow:0 3px 8px rgba(24,54,81,.1)}
.qb-home .study-dashboard .btn-navy:hover{background:#254f76;box-shadow:0 4px 12px rgba(24,54,81,.16)}
.qb-home .study-dashboard .btn:disabled{opacity:.55}
.qb-home .review-count{gap:7px;margin:10px 0 3px}
.qb-home .review-count strong{font:600 36px/1.1 'JetBrains Mono',monospace;letter-spacing:-1.5px;color:var(--home-ink)}
.qb-home .review-count span{font-size:12px;font-weight:500;color:var(--home-muted)}
.qb-home .review-card p{font-size:11px;line-height:1.65;color:var(--home-muted);margin:0 0 14px}
.qb-home .learning-hub .review-card .btn{background:rgba(255,255,255,.6);border:1px solid rgba(119,148,179,.24);color:#345b82}
.qb-home .learning-hub .review-card .btn:hover{background:rgba(255,255,255,.9);border-color:#afc5dc}
.qb-home .learning-hub .dashboard-rules{padding:3px 0 14px;color:#62758a;font-size:10px}
.qb-home .dashboard-rules summary{min-height:24px;display:list-item;align-content:center}
.qb-home .learning-hub .quick-nav.banners{padding:12px 0;gap:5px;border-color:var(--hub-divider)}
.qb-home .quick-nav .banner{gap:8px;padding:8px 6px;min-height:58px;border-radius:9px;transition:background .18s;transform:none;scroll-snap-align:none}
.qb-home .quick-nav .banner strong{font-size:12px;font-weight:600;letter-spacing:-.1px}
.qb-home .quick-nav .banner-sub{font-size:10px;color:var(--home-muted)}
.qb-home .quick-icon{height:30px;width:30px;flex-basis:30px;border-radius:9px;background:#dce8f7;color:#4d75a2}
.qb-home .quick-icon svg{width:18px;height:18px;stroke-width:1.7}
.qb-home .quick-nav .b-hot .quick-icon{background:#f4e5e2;color:#b27668}
.qb-home .quick-nav .b-uvm .quick-icon{background:#e8e3f3;color:#8871a6}
.qb-home .quick-more{font-size:11px;color:#526d88;padding:6px}
.qb-home .learning-hub .search-hub{padding-bottom:0}
.qb-home .learning-hub .search-tabs{gap:24px;border:0;margin-bottom:12px}
.qb-home .learning-hub .search-tabs button{font-size:12px;padding:17px 0 10px;color:var(--home-muted);font-weight:600;min-height:44px}
.qb-home .search-tabs button[aria-selected=true]{color:var(--home-ink)}
.qb-home .search-tabs button[aria-selected=true]::after{height:2px;background:var(--home-ink)}
.qb-home .learning-hub .toolbar{gap:8px}
.qb-home .learning-hub .search{height:42px;border-radius:9px;background:rgba(255,255,255,.9);border:1px solid #d6e1ed}
.qb-home .search input{font-size:12px}
.qb-home .keyword-submit{height:42px;width:42px;background:var(--home-ink)}
.qb-home .learning-hub .sort,.qb-home .learning-hub .tool-btn{height:42px;border:1px solid #d6e1ed;border-radius:9px;background:rgba(255,255,255,.65);transform:none}
.qb-home .sort select{width:105px;max-width:105px;font-size:12px}
.qb-home .learning-hub #randomBtn{font-size:12px;color:var(--home-accent)}
.qb-home .learning-hub .solved-count{font-size:10px}
.qb-home .solved-count b{font-size:12px;color:#467986}
.qb-home .learning-hub .search-hot{margin-top:12px;gap:5px;font-size:10px}
.qb-home .learning-hub .search-hot button{border:1px solid rgba(124,149,179,.1);background:rgba(255,255,255,.44);padding:3px 8px;border-radius:5px;color:#526d88}
.qb-home .learning-hub .search-hot button:hover{background:#fff;border-color:#bdccde}
.qb-home .qb-side,.qb-home .rail-card,.qb-home .qlist,.qb-home .study-roadmap{border-color:var(--home-border);box-shadow:var(--home-shadow);border-radius:var(--home-radius)}
.qb-home .side-head{padding:18px 18px 14px}
.qb-home .side-head strong{font-size:14px}
.qb-home .side-body{padding:3px 18px 14px}
.qb-home .fgroup{padding:16px 0 14px}
.qb-home .fgroup-title{font-size:11px;color:#62758a;margin-bottom:9px}
.qb-home .fopt{font-size:12px;padding-top:7px;padding-bottom:7px;border-radius:7px}
.qb-home .fopt.on{background:#eff4fa;color:var(--home-ink)}
.qb-home .fopt .n{font-size:11px;color:#7a8b9d}
.qb-home .fopt.zero{opacity:.6}
.qb-home .rail-card{padding:18px;background:var(--home-surface)}
.qb-home .rail-card::before{display:none}
.qb-home .rail-card h3{font-family:inherit;font-size:13px;font-weight:600}
.qb-home .qb-rail{gap:16px}
.qb-home .qb-rail .online-card{background:linear-gradient(140deg,#f0f5fa,#fff 80%);border-color:#dce6ef;--period-ink:#897351;--period-bg:#f3eee5}
.qb-home .online-heading h3{color:#3e5871;font-size:12px}
.qb-home .online-live{font-size:8px;letter-spacing:1px;background:#e5eef4;color:#5d788f}
.qb-home .online-value{margin:18px 0 4px}
.qb-home .online-value b{color:var(--home-ink);font-size:36px}
.qb-home .online-value span,.qb-home .online-message{color:var(--home-muted)}
.qb-home .online-message{gap:9px;padding-top:10px}
.qb-home .online-period{font-size:11px}.qb-home .online-message p>span{font-size:11px}
.qb-home .online-period-icon{width:30px;height:30px;border-radius:9px}
.qb-home .online-period-icon svg{width:21px;height:21px}
.qb-home .online-dot::after{animation:none}
.qb-home .ring-wrap{margin-top:8px;margin-bottom:18px}
.qb-home .study-roadmap{background:linear-gradient(120deg,#fff,#f8fafd)}
.qb-home .study-roadmap summary{padding:18px 22px}
.qb-home .roadmap-kicker{font-size:10px;color:#8a7858;letter-spacing:.7px}
.qb-home .roadmap-heading>strong{font-family:inherit;font-size:17px;font-weight:650;letter-spacing:-.3px}
.qb-home .roadmap-summary{font-size:11px;color:var(--home-muted)}
.qb-home .qhead{background:#f2f5f9;color:#74869a;font-size:11px;font-weight:500}
.qb-home .qrow.q{min-height:62px}
.qb-home .qrow.q:nth-child(even){background:#fcfdfe}
.qb-home .qrow.q:hover{background:#f0f5fb}
.qb-home .qrow.q:hover::before{background:#6689af}
.qb-home .q-name{font-size:14px;font-weight:550;letter-spacing:-.1px}
.qb-home .q-meta{font-size:10px;gap:7px}
.qb-home .q-meta .tp{background:#eef3f8;color:#5f7892;font-weight:500;padding:1px 7px;border-radius:5px}
.qb-home .c-diff{font-size:12px;font-weight:500}
.qb-home .c-month{font-size:11px;font-weight:500}
.qb-home .pg{border-radius:8px;box-shadow:none}
.qb-home .learning-hub :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--home-accent);outline-offset:3px}
/* 搜索框外框已有 focus 高亮，里面的输入框不再画一圈粗边框 */
.qb-home .learning-hub .search input:focus-visible,.qb-home .learning-hub .smart-search-inline .resume-text:focus-visible{outline:none}
@media(min-width:981px) and (max-width:1240px){.qb-home .qb{grid-template-columns:var(--side-w) minmax(0,1fr)}}
@media(max-width:980px){
  .qb-home .qb{grid-template-columns:minmax(0,1fr);padding:18px 16px 96px}
  .qb-home .qb-side{border-radius:20px 20px 0 0;box-shadow:0 -20px 60px rgba(7,29,51,.3)}
  .qb-home .side-head{padding:16px}
}
@media(max-width:720px){
  .qb-home{--hub-padding:16px}
  .qb-home .learning-hub{border-radius:16px;margin-bottom:16px}
  .hub-heading{align-items:start;padding-bottom:20px;gap:8px;flex-direction:column}
  .hub-heading h1{font-size:17px}.hub-heading p{font-size:11px}
  .qb-home .learning-hub .study-dashboard{grid-template-columns:1fr;gap:0}
  .qb-home .learning-hub .continue-card{min-height:170px;padding:0 0 18px}
  .qb-home .learning-hub .review-card{display:grid;grid-template-columns:1fr auto;min-height:0;gap:4px 12px;padding:16px 0 12px;border-left:0;border-top:1px solid var(--hub-divider)}
  .qb-home .review-card .dashboard-heading{grid-column:1/-1}
  .qb-home .review-card .review-count{grid-column:1;grid-row:2;margin-top:8px}
  .qb-home .review-card p{grid-column:1;grid-row:3;margin:0}
  .qb-home .learning-hub .review-card .btn{grid-column:2;grid-row:2/4;align-self:center;width:auto;margin:0}
  .qb-home .continue-card h2{font-size:17px}
  .qb-home .continue-bottom{gap:12px;padding-top:14px;align-items:center}
  .qb-home .continue-bottom .btn{padding:0 12px}
  .qb-home .learning-hub .dashboard-rules{padding:0 0 12px}
  .qb-home .learning-hub .quick-nav.banners{padding:10px 0;gap:6px}
  .qb-home .quick-nav .banner{padding:8px 4px;gap:6px;min-height:62px}
  .qb-home .quick-nav .quick-icon{height:26px;width:26px;flex-basis:26px;border-radius:8px}
  .qb-home .quick-nav .banner strong{font-size:11px}.qb-home .quick-nav .banner-sub{font-size:9px}
  .qb-home .learning-hub .search-tabs{gap:22px}
  .qb-home .learning-hub .search-hot button{min-height:30px;padding:5px 8px}
  .qb-home .learning-hub .keyword-panel{min-width:0;flex-basis:100%}
  .qb-home .learning-hub .sort select{width:100px}
  .qb-home .learning-hub .solved-count{margin-left:auto}
  .qb-home .study-roadmap summary{padding:17px}
  .qb-home .roadmap-heading>strong{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.qb-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Translucent glass workspace: static light, crisp content and restrained depth. */
.qb-home .learning-hub{
  isolation:isolate;
  border:1px solid rgba(255,255,255,.86);
  background:
    radial-gradient(ellipse at 2% 0%,rgba(226,238,252,.82) 0%,rgba(226,238,252,0) 56%),
    radial-gradient(ellipse at 100% 100%,rgba(178,205,233,.13) 0%,rgba(178,205,233,0) 66%),
    linear-gradient(125deg,rgba(239,246,254,.72),rgba(232,241,251,.56) 54%,rgba(232,242,251,.66));
  -webkit-backdrop-filter:blur(24px) saturate(125%);
  backdrop-filter:blur(24px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 1px 0 0 rgba(255,255,255,.78),
    inset 0 -1px 0 rgba(141,169,201,.14),
    0 2px 5px rgba(46,75,110,.025),
    0 14px 36px -18px rgba(42,76,116,.2);
  border-radius:22px;
}
.qb-home .learning-hub::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(150deg,rgba(255,255,255,.58),transparent 34%,transparent 64%,rgba(255,255,255,.38));
}
.qb-home .hub-heading{padding-bottom:24px}
.qb-home .hub-heading h1{font-size:19px;letter-spacing:-.5px}
.qb-home .hub-heading p{color:#647c94}
.qb-home .learning-hub .study-dashboard{column-gap:22px;padding-bottom:20px;row-gap:0}
.qb-home .learning-hub .continue-card,.qb-home .learning-hub .review-card{
  min-height:168px;padding:16px 18px;
  border:1px solid rgba(255,255,255,.88);border-radius:14px;
  background:linear-gradient(120deg,rgba(255,255,255,.51),rgba(255,255,255,.18));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 1px 0 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(255,255,255,.28),0 4px 12px rgba(51,79,111,.04);
}
.qb-home .learning-hub .review-card{border-left:1px solid rgba(255,255,255,.68);background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.12))}
.qb-home .learning-hub .dashboard-icon{
  border:1px solid rgba(255,255,255,.68);
  background:linear-gradient(140deg,rgba(255,255,255,.72),rgba(173,199,226,.28));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 4px rgba(50,85,120,.04);
}
.qb-home .continue-card h2{font-size:20px;letter-spacing:-.5px;margin-top:13px}
.qb-home .continue-tags span{background:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.4)}
.qb-home .continue-meter{background:rgba(112,143,178,.14);box-shadow:inset 0 1px 2px rgba(68,97,132,.06)}
.qb-home .continue-meter i{background:linear-gradient(90deg,#3d6e9d,#83a9cd);box-shadow:0 0 5px rgba(91,140,183,.15)}
.qb-home .study-dashboard .btn-navy{
  border:1px solid rgba(22,52,82,.1);
  background:linear-gradient(155deg,#345e85,#193b5d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 4px 9px rgba(31,63,97,.14);
}
.qb-home .study-dashboard .btn-navy:hover{background:linear-gradient(155deg,#3b6993,#234b71);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 5px 12px rgba(31,63,97,.17)}
.qb-home .learning-hub .review-card .btn{
  border:1px solid rgba(255,255,255,.85);background:linear-gradient(150deg,rgba(255,255,255,.75),rgba(255,255,255,.36));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 5px rgba(50,80,113,.035);
}
.qb-home .learning-hub .quick-nav.banners{border-color:rgba(114,145,178,.16);box-shadow:0 -1px 0 rgba(255,255,255,.45);padding:12px 0}
.qb-home .quick-nav .quick-icon{border:1px solid rgba(255,255,255,.48);box-shadow:inset 0 1px 0 rgba(255,255,255,.5);background:linear-gradient(140deg,#edf4fd,#d7e5f5)}
.qb-home .quick-nav .b-hot .quick-icon{background:linear-gradient(140deg,#faf0eb,#eedfd9);color:#a97664}
.qb-home .quick-nav .b-uvm .quick-icon{background:linear-gradient(140deg,#f1eef9,#e1daed);color:#86729e}
.qb-home .learning-hub .quick-nav .banner:hover{background:rgba(255,255,255,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.qb-home .learning-hub .search-hub .search{background:rgba(255,255,255,.78);border-color:rgba(255,255,255,.95);box-shadow:inset 0 1px 2px rgba(45,76,111,.035),0 2px 5px rgba(45,76,111,.035)}
.qb-home .learning-hub .search:focus-within{border-color:#9bb7d3;box-shadow:0 0 0 3px rgba(74,116,159,.1)}
.qb-home .keyword-submit{background:linear-gradient(150deg,#345c80,#1b3b5b)}
.qb-home .learning-hub .sort,.qb-home .learning-hub .tool-btn{background:linear-gradient(145deg,rgba(255,255,255,.75),rgba(255,255,255,.4));border-color:rgba(255,255,255,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 4px rgba(45,76,111,.025)}
.qb-home .learning-hub .search-hot button{background:rgba(255,255,255,.4);border-color:rgba(255,255,255,.45)}
@supports not (backdrop-filter:blur(1px)){.qb-home .learning-hub{background:linear-gradient(125deg,#f0f5fb,#e1ecf7)}}
@media(max-width:720px){
  .qb-home .learning-hub{border-radius:18px;-webkit-backdrop-filter:blur(16px) saturate(120%);backdrop-filter:blur(16px) saturate(120%)}
  .qb-home .hub-heading{padding-bottom:18px}
  .qb-home .learning-hub .study-dashboard{gap:12px;padding-bottom:16px}
  .qb-home .learning-hub .continue-card{min-height:170px;padding:14px}
  .qb-home .learning-hub .review-card{min-height:0;padding:14px;border:1px solid rgba(255,255,255,.68)}
  .qb-home .continue-card h2{font-size:18px}
  .qb-home .continue-bottom{gap:10px}
  .qb-home .continue-progress{font-size:10px}
}

/* A distinct course entry within the shortcut strip. */
.qb-home .learning-hub .quick-more{
  align-self:center;gap:5px;min-height:38px;padding:0 11px;margin-left:4px;
  border:1px solid rgba(255,255,255,.82);border-radius:10px;
  background:linear-gradient(140deg,rgba(255,255,255,.48),rgba(255,255,255,.14));
  color:#345b7e;font-size:12px;font-weight:600;
  -webkit-backdrop-filter:blur(12px) saturate(115%);backdrop-filter:blur(12px) saturate(115%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),inset 1px 0 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(255,255,255,.18),0 3px 8px rgba(44,77,111,.035);
  transition:background .18s,border-color .18s,box-shadow .18s;
}
.qb-home .learning-hub .quick-more span{font-size:13px;color:#66839f}
.qb-home .learning-hub .quick-more:hover{background:linear-gradient(140deg,rgba(255,255,255,.66),rgba(255,255,255,.26));border-color:rgba(255,255,255,.98);box-shadow:inset 0 1px 0 #fff,inset 1px 0 0 rgba(255,255,255,.45),0 4px 10px rgba(44,77,111,.055)}
@media(max-width:720px){.qb-home .learning-hub .quick-more{margin:0 4px;min-height:40px;font-size:12px}}

/* Identical search-row geometry for keyword, resume and AI modes. */
.qb-home .learning-hub .search-hub.resume-card{margin-top:0;overflow:visible}
.qb-home .smart-search-inline{flex:1;min-width:180px;display:flex;align-items:stretch;overflow:hidden;min-height:42px;border:1px solid rgba(255,255,255,.95);border-radius:9px;background:rgba(255,255,255,.78);box-shadow:inset 0 1px 2px rgba(45,76,111,.035),0 2px 5px rgba(45,76,111,.035)}
.qb-home .smart-search-inline:focus-within{border-color:#9bb7d3;box-shadow:0 0 0 3px rgba(74,116,159,.1)}
.qb-home .smart-search-inline [role=tabpanel]{flex:1;min-width:0;display:flex}
.qb-home .smart-search-inline .resume-drop{position:relative;flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:9px;padding:0 12px;min-height:40px;max-width:none;border:0;border-radius:0;background:transparent;cursor:pointer}
.qb-home .smart-search-inline .resume-drop:hover{background:rgba(255,255,255,.35)}
.qb-home .smart-search-inline .resume-drop svg{flex-shrink:0;width:17px;height:17px;fill:none;stroke:#7d93aa;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.qb-home .smart-search-inline .resume-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.qb-home .smart-search-inline .resume-name{flex:1;font-size:12px;font-weight:500;color:#5f7892;min-width:0}
.qb-home .smart-search-inline .resume-drop.is-on .resume-name{color:var(--home-ink)}
.qb-home .smart-search-inline .upload-label{flex-shrink:0;font-size:10px;color:#6a819a;padding-left:8px;border-left:1px solid #dce5ee;white-space:nowrap}
.qb-home .smart-search-inline .resume-text{flex:1;width:100%;min-height:40px;height:40px;max-height:100px;margin:0;padding:10px 12px;border:0;border-radius:0;background:transparent;resize:vertical;font:400 12px/20px 'Noto Sans SC',sans-serif;outline:0;box-shadow:none}
.qb-home .smart-submit{display:grid;place-items:center;flex:0 0 42px;align-self:stretch;min-height:40px;width:42px;padding:0;border:0;border-radius:0;background:linear-gradient(150deg,#345c80,#1b3b5b);color:#fff;cursor:pointer}
.qb-home .smart-submit svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.qb-home .smart-submit:hover{background:#345c80}.qb-home .smart-submit:disabled{opacity:.55;cursor:wait}
.qb-home .smart-submit.is-loading svg{opacity:.45}
.qb-home .smart-search-foot{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px;min-height:23px;font-size:10px;line-height:1.6;color:#627b94}
.qb-home .smart-search-foot .resume-clear{margin-left:auto;padding:1px 6px;font-size:11px}
.qb-home .search-hub .resume-meta{font-size:11px;margin-top:8px;color:#4c6783}
.qb-home .search-hub .resume-tags{margin-top:7px}
.qb-home .search-hub .resume-tags span{background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.5);border-radius:5px;font-size:10px;color:#526d88}
@media(max-width:720px){.qb-home .smart-search-inline{flex:1 1 100%;min-width:0}.qb-home .smart-search-foot{font-size:10px}.qb-home .smart-search-inline .upload-label{font-size:9px}}

/* Mobile controls: compact widths with a clearer gap below search. */
@media(max-width:720px){
  .qb-home .learning-hub .quick-more{justify-self:center;width:auto;min-width:68px;margin:0;min-height:38px;padding:0 12px}
  .qb-home .learning-hub .toolbar{column-gap:8px;row-gap:14px}
  .qb-home .learning-hub #filterOpen{flex:0 0 auto;padding:0 11px;gap:5px;font-size:11px}
  .qb-home .learning-hub .sort{flex:0 0 auto;padding:0 8px;gap:5px;max-width:124px}
  .qb-home .learning-hub .sort select{width:82px;max-width:82px;padding-right:0;font-size:11px}
  .qb-home .learning-hub #randomBtn{flex:0 0 40px;width:40px;justify-content:center;padding:0}
  .qb-home .learning-hub .solved-count{font-size:9px}
  .qb-home .learning-hub .solved-count b{font-size:11px}
}
/* 卡片标题放不下时换行（如「Constraint 高频」），不截断 */
.qb-home .quick-nav .banner strong{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}

/* 手机版快捷卡片：玻璃质感。整组是一块磨砂玻璃面板，每张卡是浅玻璃块，选中的卡像一块凸起的透镜（亮边 + 彩虹描边） */
@media(max-width:720px){
  .qb-home .learning-hub .quick-nav.banners{margin:4px 0 6px;padding:8px;gap:6px;border:1px solid rgba(255,255,255,.88);border-radius:24px;
    background:linear-gradient(160deg,rgba(255,255,255,.66),rgba(232,240,250,.44));
    -webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(150,178,208,.22),0 10px 28px rgba(30,60,95,.09)}
  .qb-home .learning-hub .quick-nav .banner{position:relative;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:86px;padding:10px 4px 9px;text-align:center;border-radius:17px;
    background:linear-gradient(170deg,rgba(255,255,255,.42),rgba(255,255,255,.12));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 0 0 1px rgba(255,255,255,.35);transition:transform .16s ease,background .2s ease,box-shadow .2s ease}
  .qb-home .learning-hub .quick-nav .banner:hover{background:linear-gradient(170deg,rgba(255,255,255,.42),rgba(255,255,255,.12));box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 0 0 1px rgba(255,255,255,.35)}
  .qb-home .learning-hub .quick-nav .banner:active{transform:scale(.97)}
  .qb-home .learning-hub .quick-nav .quick-copy{align-items:center;gap:2px}
  .qb-home .learning-hub .quick-nav .banner strong{font-size:12px;line-height:1.3}
  .qb-home .learning-hub .quick-nav .banner-sub{font-size:9.5px}
  .qb-home .learning-hub .quick-nav .quick-icon{width:32px;height:32px;flex:0 0 32px;border-radius:11px}
  /* 选中：凸起的玻璃透镜 */
  .qb-home .learning-hub .quick-nav .banner.is-active{z-index:1;transform:translateY(-1px);
    background:radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.98),rgba(255,255,255,0) 62%),linear-gradient(170deg,rgba(255,255,255,.9),rgba(246,249,255,.62));
    box-shadow:inset 0 1px 0 #fff,inset 0 -6px 12px rgba(214,226,244,.45),0 8px 18px rgba(36,66,104,.14),0 1px 3px rgba(36,66,104,.08)}
  .qb-home .learning-hub .quick-nav .banner.is-active:active{transform:translateY(-1px) scale(.97)}
  .qb-home .learning-hub .quick-nav .banner.is-active::before{content:"";position:absolute;inset:0;padding:1.5px;border-radius:inherit;pointer-events:none;
    background:conic-gradient(from 210deg,#ffd3e6,#d9e4ff 18%,#c6f1ea 36%,#fff1c2 54%,#f0d6ff 72%,#cfe0ff 86%,#ffd3e6);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
  .qb-home .learning-hub .quick-more{align-self:stretch;justify-self:stretch;width:auto;min-height:86px;margin:0;border-radius:17px;
    background:linear-gradient(170deg,rgba(255,255,255,.42),rgba(255,255,255,.12));border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 0 0 1px rgba(255,255,255,.35)}
  .qb-home .learning-hub .quick-more:active{transform:scale(.97)}
}
@media(max-width:720px) and (prefers-reduced-motion:reduce){.qb-home .learning-hub .quick-nav .banner{transition:none}.qb-home .learning-hub .quick-nav .banner:active,.qb-home .learning-hub .quick-nav .banner.is-active{transform:none}}

/* 课程入口：桌面保持「课程 ↗」小按钮；手机上做成和其他卡片同结构的金色玻璃卡，更突出 */
.qb-home .quick-more .quick-more-icon,.qb-home .quick-more .quick-more-sub{display:none}
.qb-home .learning-hub .quick-more .quick-more-copy{display:contents}
.qb-home .learning-hub .quick-more strong{font-weight:600;font-size:inherit;color:inherit}
@media(max-width:720px){
  .qb-home .learning-hub .quick-more{position:relative;flex-direction:column;gap:5px;padding:10px 4px 9px;text-align:center;
    background:radial-gradient(120% 70% at 50% 0%,rgba(255,252,242,.95),rgba(255,252,242,0) 60%),linear-gradient(165deg,rgba(255,246,222,.92),rgba(246,228,182,.5));
    box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(232,206,140,.55),inset 0 -6px 12px rgba(236,214,160,.28),0 6px 16px rgba(150,112,30,.12)}
  .qb-home .learning-hub .quick-more:hover{background:radial-gradient(120% 70% at 50% 0%,rgba(255,252,242,.95),rgba(255,252,242,0) 60%),linear-gradient(165deg,rgba(255,246,222,.92),rgba(246,228,182,.5))}
  .qb-home .learning-hub .quick-more .quick-more-icon{display:grid;width:32px;height:32px;flex:0 0 32px;border-radius:11px;color:#9a6f12;
    background:linear-gradient(140deg,#fff3cf,#f1d68f);border:1px solid rgba(255,255,255,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 2px 6px rgba(170,128,30,.18)}
  .qb-home .learning-hub .quick-more .quick-more-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .qb-home .learning-hub .quick-more .quick-more-copy{display:flex;flex-direction:column;align-items:center;gap:2px}
  .qb-home .learning-hub .quick-more strong{font-size:12px;font-weight:700;line-height:1.3;color:#5f430b}
  .qb-home .learning-hub .quick-more .quick-more-sub{display:block;font-size:9.5px;font-weight:400;color:#9a7a3a}
  .qb-home .learning-hub .quick-more .quick-more-arrow{display:none}
}

/* 网页版快捷卡片：布局不变（一行卡片 + 课程按钮），换成玻璃质感。
   整行是一条磨砂玻璃轨道；卡片是浅玻璃块，悬停时上浮并扫过一道高光；选中的卡是凸起的透镜（彩虹描边）；课程是金色玻璃胶囊 */
@media(min-width:721px){
  .qb-home .learning-hub .quick-nav.banners{margin:4px 0 6px;padding:8px;gap:6px;border:1px solid rgba(255,255,255,.9);border-radius:20px;
    background:linear-gradient(165deg,rgba(255,255,255,.62),rgba(232,240,250,.38));
    -webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.96),inset 0 -1px 0 rgba(150,178,208,.2),0 10px 30px rgba(30,60,95,.08)}
  .qb-home .learning-hub .quick-nav .banner{position:relative;isolation:isolate;border-radius:14px;
    background:linear-gradient(170deg,rgba(255,255,255,.4),rgba(255,255,255,.1));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 0 0 1px rgba(255,255,255,.32);
    transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
  /* 悬停：上浮 + 一道斜向高光扫过 */
  .qb-home .learning-hub .quick-nav .banner::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
    background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.75) 48%,rgba(255,255,255,0) 66%);transform:translateX(-130%);transition:transform .75s ease}
  .qb-home .learning-hub .quick-nav .banner:hover{transform:translateY(-2px);
    background:linear-gradient(170deg,rgba(255,255,255,.78),rgba(255,255,255,.36));
    box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.6),0 8px 18px rgba(36,66,104,.1)}
  .qb-home .learning-hub .quick-nav .banner:hover::after{transform:translateX(130%)}
  .qb-home .learning-hub .quick-nav .banner:active{transform:translateY(0) scale(.98)}
  .qb-home .learning-hub .quick-nav .quick-icon{box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 2px 6px rgba(44,77,111,.1);transition:transform .2s ease}
  .qb-home .learning-hub .quick-nav .banner:hover .quick-icon{transform:scale(1.06)}
  /* 选中：凸起的玻璃透镜 + 彩虹描边 */
  .qb-home .learning-hub .quick-nav .banner.is-active,.qb-home .learning-hub .quick-nav .banner.is-active:hover{z-index:1;transform:translateY(-2px);
    background:radial-gradient(120% 80% at 50% 0%,rgba(255,255,255,.98),rgba(255,255,255,0) 64%),linear-gradient(170deg,rgba(255,255,255,.92),rgba(246,249,255,.6));
    box-shadow:inset 0 1px 0 #fff,inset 0 -6px 12px rgba(214,226,244,.4),0 10px 22px rgba(36,66,104,.14),0 1px 3px rgba(36,66,104,.08)}
  .qb-home .learning-hub .quick-nav .banner.is-active::before{content:"";position:absolute;inset:0;padding:1.5px;border-radius:inherit;pointer-events:none;
    background:conic-gradient(from 210deg,#ffd3e6,#d9e4ff 18%,#c6f1ea 36%,#fff1c2 54%,#f0d6ff 72%,#cfe0ff 86%,#ffd3e6);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
  /* 课程：金色玻璃胶囊，带小图标 */
  .qb-home .learning-hub .quick-more{position:relative;overflow:hidden;isolation:isolate;gap:7px;padding:0 14px 0 8px;min-height:44px;border-radius:999px;border:0;color:#5f430b;
    background:radial-gradient(120% 90% at 50% 0%,rgba(255,252,242,.95),rgba(255,252,242,0) 62%),linear-gradient(165deg,rgba(255,246,222,.95),rgba(246,228,182,.55));
    box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(232,206,140,.6),inset 0 -5px 10px rgba(236,214,160,.25),0 6px 16px rgba(150,112,30,.12);
    transition:transform .2s ease,box-shadow .2s ease}
  .qb-home .learning-hub .quick-more::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.8) 48%,rgba(255,255,255,0) 66%);transform:translateX(-130%);transition:transform .75s ease}
  .qb-home .learning-hub .quick-more:hover{transform:translateY(-2px);
    background:radial-gradient(120% 90% at 50% 0%,rgba(255,252,242,.98),rgba(255,252,242,0) 62%),linear-gradient(165deg,rgba(255,244,214,.98),rgba(243,222,166,.66));
    box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(222,190,110,.7),0 10px 22px rgba(150,112,30,.18)}
  .qb-home .learning-hub .quick-more:hover::after{transform:translateX(130%)}
  .qb-home .learning-hub .quick-more .quick-more-icon{display:grid;width:28px;height:28px;flex:0 0 28px;border-radius:50%;color:#9a6f12;
    background:linear-gradient(140deg,#fff3cf,#f1d68f);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 5px rgba(170,128,30,.18)}
  .qb-home .learning-hub .quick-more .quick-more-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .qb-home .learning-hub .quick-more strong{font-size:13px;font-weight:700;color:#5f430b}
  .qb-home .learning-hub .quick-more .quick-more-arrow{font-size:12px;color:#9a6f12}
}
@media(min-width:721px) and (prefers-reduced-motion:reduce){
  .qb-home .learning-hub .quick-nav .banner,.qb-home .learning-hub .quick-more{transition:none}
  .qb-home .learning-hub .quick-nav .banner::after,.qb-home .learning-hub .quick-more::after{display:none}
  .qb-home .learning-hub .quick-nav .banner:hover,.qb-home .learning-hub .quick-more:hover{transform:none}
}
/* 网页版窄一些的屏幕：收紧间距，课程胶囊变小，保证卡片文字放得下；英文单词不从中间断开 */
@media(min-width:721px){.qb-home .learning-hub .quick-nav .banner strong{overflow-wrap:normal}}
@media(min-width:721px) and (max-width:1450px){
  .qb-home .learning-hub .quick-nav.banners{padding:6px;gap:4px}
  .qb-home .learning-hub .quick-nav .banner{padding:8px 5px;gap:6px}
  .qb-home .learning-hub .quick-more{gap:5px;padding:0 10px 0 5px;min-height:38px}
  .qb-home .learning-hub .quick-more .quick-more-icon{width:24px;height:24px;flex-basis:24px}
  .qb-home .learning-hub .quick-more .quick-more-icon svg{width:14px;height:14px}
  .qb-home .learning-hub .quick-more strong{font-size:12px}
}

/* 雪山背景：画在学习区顶部，向下淡出到搜索区；卡片是磨砂玻璃，透出后面的山 */
.qb-home .learning-hub::after{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;border-radius:inherit;
  background:url(/assets/qb-hub-mountains.webp) 58% 0/cover no-repeat;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 58%,rgba(0,0,0,.35) 82%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 58%,rgba(0,0,0,.35) 82%,transparent 100%);
}
.qb-home .learning-hub::before{background:
  linear-gradient(100deg,rgba(246,250,255,.62) 0%,rgba(246,250,255,.18) 34%,rgba(246,250,255,0) 58%),
  linear-gradient(150deg,rgba(255,255,255,.4),transparent 34%,transparent 64%,rgba(255,255,255,.38))}
.qb-home .learning-hub .continue-card,.qb-home .learning-hub .review-card{
  background:linear-gradient(120deg,rgba(255,255,255,.62),rgba(255,255,255,.22));
  -webkit-backdrop-filter:blur(3px) saturate(125%);backdrop-filter:blur(3px) saturate(125%)}
.qb-home .learning-hub .review-card{background:linear-gradient(135deg,rgba(255,255,255,.5),rgba(255,255,255,.2))}
.qb-home .learning-hub .quick-nav.banners{-webkit-backdrop-filter:blur(6px) saturate(140%);backdrop-filter:blur(6px) saturate(140%)}
@media(max-width:720px){
  .qb-home .learning-hub::after{background-size:auto 640px;background-position:66% 0;
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 440px,transparent 680px);mask-image:linear-gradient(180deg,#000 0,#000 440px,transparent 680px)}
}
