/* 首页 02 一盒学院 v1.1（精简版）：九格 → 七格，大图、少字、一个数字、一个按钮。
   只作用于 body.ho #academy；在 home-oioiv1.0.css 之后加载，旧样式保留。 */
.ho .hb-box{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--hp-gap);
  grid-template-areas:"play play gal gal" "med watch watch fr" "med game game cur";
  grid-auto-rows:minmax(clamp(270px,21vw,320px),auto)}
.ho .hb-play{grid-area:play}.ho .hb-gal{grid-area:gal}.ho .hb-med{grid-area:med}.ho .hb-watch{grid-area:watch}
.ho .hb-fr{grid-area:fr}.ho .hb-game{grid-area:game}.ho .hb-cur{grid-area:cur}

/* 卡片外壳 */
.ho .hb-t{position:relative;display:flex;gap:clamp(16px,1.6vw,22px);padding:clamp(18px,1.7vw,24px);border-radius:var(--hp-r);background:var(--hp-card);color:var(--hp-ink);box-shadow:var(--hp-shadow);overflow:hidden;isolation:isolate;transition:transform .42s var(--hp-ease),box-shadow .42s var(--hp-ease)}
.ho .hb-t::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:6;
  background:linear-gradient(145deg,rgba(140,197,160,.9),rgba(140,197,160,0) 55%),linear-gradient(0deg,var(--hp-line),var(--hp-line));
  -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,linear-gradient(#000 0 0);mask-composite:exclude}
.ho .hb-t:hover{transform:translateY(-4px);box-shadow:var(--hp-shadow2)}
.ho .hb-t:has(.hb-main:focus-visible){outline:3px solid var(--hp-gold);outline-offset:3px}

/* 整卡可点：主链接铺满卡片；副链接浮在上面 */
.ho .hb-main{color:inherit;text-decoration:none;outline:none}
.ho .hb-main::after{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit}

/* 文字列 */
.ho .hb-tx{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.ho .hb-k{margin:0;font:500 11px/1.4 var(--hp-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--hp-ink2)}
.ho .hb-t h3{margin:10px 0 0;font:700 clamp(21px,2.1vw,27px)/1.25 var(--hp-serif);letter-spacing:-.01em}
.ho .hb-l{margin:8px 0 0;font-size:14.5px;line-height:1.6;color:var(--hp-ink2)}
.ho .hb-l b{font-family:var(--hp-mono);color:var(--hp-ink)}
.ho .hb-sp{flex:1;min-height:12px}
.ho .hb-n{margin:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ho .hb-n b{font:500 clamp(40px,4.4vw,60px)/1 var(--hp-mono);letter-spacing:-.04em;color:var(--hp-ink)}
.ho .hb-n small{font:400 12px/1.4 var(--hp-mono);letter-spacing:.1em;color:var(--hp-ink2)}
.ho .hb-n small b{font:inherit;letter-spacing:inherit;color:var(--hp-ink)}
.ho .hb-foot{margin-top:14px;display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.ho .hb-go{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border-radius:999px;background:var(--hp-turf);color:#fff;font:600 13px/1 var(--hp-mono);letter-spacing:.04em;transition:background .3s,letter-spacing .3s}
.ho .hb-t:hover .hb-go{background:var(--hp-turf2);letter-spacing:.08em}
.ho .hb-sub{position:relative;z-index:5;display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(31,43,36,.16);background:rgba(255,255,255,.7);color:var(--hp-ink);font-size:13px;text-decoration:none;transition:background .3s,border-color .3s}
.ho .hb-sub b{font-family:var(--hp-mono);font-weight:600}
.ho .hb-sub:hover{background:rgba(140,197,160,.22);border-color:rgba(29,90,58,.35)}
.ho .hb-sub:focus-visible{outline:3px solid var(--hp-gold);outline-offset:2px}

/* 图 */
.ho .hb-pic{margin:0;flex:0 0 50%;align-self:stretch;border-radius:calc(var(--hp-r) - 8px);overflow:hidden;background:#efe6d6;position:relative}
.ho .hb-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s var(--hp-ease)}
.ho .hb-t:hover .hb-pic img{transform:scale(1.045)}
.ho .hb-play .ho-yard{flex:0 0 44%}
.ho .hb-play{background:linear-gradient(135deg,#fffdf9 0 55%,#f3f8f2)}

/* 竖卡（医学教学馆）与小方卡（前沿、探索）：图在上/下 */
.ho .hb-med,.ho .hb-fr,.ho .hb-cur{flex-direction:column}
.ho .hb-med .hb-tx,.ho .hb-fr .hb-tx,.ho .hb-cur .hb-tx{flex:none}
.ho .hb-med .hb-pic{order:2;flex:1 1 auto;min-height:220px;margin:0 calc(clamp(18px,1.7vw,24px)*-1) calc(clamp(18px,1.7vw,24px)*-1);border-radius:0}
.ho .hb-med .hb-sp{display:none}
.ho .hb-med .hb-n{margin-top:16px}
.ho .hb-fr .hb-pic{flex:1 1 auto;min-height:130px}
.ho .hb-fr .hb-sp,.ho .hb-cur .hb-sp{display:none}
.ho .hb-fr .hb-row,.ho .hb-cur .hb-row{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;width:100%;margin-top:12px;flex-wrap:wrap}
.ho .hb-fr .hb-row .hb-foot,.ho .hb-cur .hb-row .hb-foot{margin-top:0}
.ho .hb-fr .hb-n b{font-size:clamp(34px,3.4vw,46px)}
.ho .hb-cur{background:#fdf8ee}
.ho .hb-cur .hb-pic{flex:1 1 auto;min-height:130px;background:transparent}
.ho .hb-cur .hb-pic img{object-fit:contain}
.ho .hb-cur .hb-go{background:transparent;color:var(--hp-turf);padding:0;min-height:28px}
.ho .hb-cur:hover .hb-go{background:transparent}

/* 平板：两列 */
@media (max-width:1040px){
  .ho .hb-box{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"play play" "gal gal" "med watch" "med fr" "game game" "cur cur";grid-auto-rows:auto}
  .ho .hb-box > .hb-t{min-height:250px}
  .ho .hb-watch{flex-direction:column}
  .ho .hb-watch .hb-pic{order:-1;flex:1 1 auto;min-height:150px}
  .ho .hb-watch .hb-tx{flex:none}
  .ho .hb-watch .hb-sp{display:none}
  .ho .hb-watch .hb-n{margin-top:12px}
  .ho .hb-cur{flex-direction:row;align-items:center}
  .ho .hb-cur .hb-pic{order:2;flex:0 0 24%;min-height:0;aspect-ratio:1;align-self:center}
  .ho .hb-cur .hb-tx{flex:1 1 0}
  .ho .hb-box > .hb-cur{min-height:0}
  .ho .hb-med .hb-pic{min-height:300px}
}

/* 手机：单列、紧凑横卡（字左图右） */
@media (max-width:700px){
  .ho #academy .ho-head{margin-bottom:22px}
  .ho .hb-box{grid-template-columns:minmax(0,1fr);grid-template-areas:none;grid-auto-rows:auto}
  .ho .hb-box > *{grid-area:auto}
  .ho .hb-box > .hb-t{min-height:0}
  .ho .hb-t,.ho .hb-med,.ho .hb-fr,.ho .hb-watch,.ho .hb-cur{flex-direction:row;align-items:stretch;gap:14px;padding:16px;min-height:0}
  .ho .hb-t .hb-tx{flex:1 1 0}
  .ho .hb-t .hb-pic,.ho .hb-med .hb-pic,.ho .hb-fr .hb-pic,.ho .hb-watch .hb-pic,.ho .hb-cur .hb-pic{order:2;flex:0 0 40%;min-height:0;margin:0;border-radius:16px;aspect-ratio:auto;align-self:stretch}
  .ho .hb-cur .hb-pic{aspect-ratio:1;align-self:center}
  .ho .hb-play .ho-yard{flex:0 0 40%;height:auto;border-radius:16px}
  .ho .hb-play .ho-yard li{padding:0 10px;gap:6px;font-size:12px}
  .ho .hb-play .ho-yard li::after{display:none}
  .ho .hb-play .ho-ball{display:none}
  .ho .hb-k{font-size:10px;letter-spacing:.12em}
  .ho .hb-t h3{margin-top:6px;font-size:20px}
  .ho .hb-l{margin-top:4px;font-size:13px;line-height:1.5}
  .ho .hb-sp{display:block;min-height:8px}
  .ho .hb-med .hb-sp,.ho .hb-fr .hb-sp,.ho .hb-cur .hb-sp,.ho .hb-watch .hb-sp{display:block}
  .ho .hb-med .hb-n,.ho .hb-watch .hb-n{margin-top:0}
  .ho .hb-n b,.ho .hb-fr .hb-n b{font-size:34px}
  .ho .hb-n small{font-size:11px;letter-spacing:.06em}
  .ho .hb-foot{margin-top:10px;gap:8px}
  .ho .hb-go,.ho .hb-sub{min-height:32px;font-size:12px}
  .ho .hb-go{padding:0 12px}
  .ho .hb-sub{padding:0 10px}
  .ho .hb-fr .hb-row,.ho .hb-cur .hb-row{display:block;margin-top:0}
  .ho .hb-fr .hb-row .hb-foot,.ho .hb-cur .hb-row .hb-foot{margin-top:10px}
}

@media (prefers-reduced-motion:reduce){
  .ho .hb-t,.ho .hb-pic img,.ho .hb-go{transition:none!important}
  .ho .hb-t:hover{transform:none}
  .ho .hb-t:hover .hb-pic img{transform:none}
}
