/* 首页四处对齐 v1.1（v1.1：PLAY 06 右侧数据块填满、雅思卡四项技能条补中段空白、≥1600 码线标尺与草皮条纹收进正文宽度）· 游戏馆四分区宽屏均分整行 · v1.0：01 PLAY 06 横卡 · 07 游戏馆主卡 · 17 我的学习 · 18 做这件事的人 */

/* ---------- 01 · PLAY 06 团子游戏馆横卡：图宽 = 上排一张卡宽，16:9，文字垂直居中 ---------- */
.bento .bx.wide{align-items:stretch}
.bento .bx.wide .pic{flex:0 0 calc((100% - 36px)/3);aspect-ratio:16/9}
.bento .bx.wide .txt{justify-content:center;gap:8px;padding:24px clamp(24px,3vw,44px);border-top:0;border-left:3px dashed #e7d9c2}
.bento .bx.wide h3{font-size:1.5rem}
.bento .bx.wide p{font-size:.98rem;max-width:40em}
.bento .bx.wide .n{margin-top:14px;padding-top:0;justify-content:flex-start;gap:28px}
@media (max-width:1080px){.bento .bx.wide .pic{flex-basis:calc((100% - 18px)/2)}}
@media (max-width:760px){.bento .bx.wide .pic{flex:none;width:100%}.bento .bx.wide .txt{border-left:0;border-top:3px dashed #e7d9c2;padding:18px 22px 22px}.bento .bx.wide .n{justify-content:space-between;margin-top:10px}}

/* ---------- 07 · 游戏馆主卡：图 38%，文字块撑满并垂直居中 ---------- */
.games .gm-hero{grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:0;align-items:stretch}
.games .gm-pic{position:relative;aspect-ratio:16/10;min-height:100%;height:auto}
.games .gm-pic img{position:absolute;inset:0;width:100%;height:100%}
.games .gm-txt{justify-content:center;gap:20px;padding:clamp(26px,3vw,48px) clamp(26px,3.4vw,56px)}
.games .gm-facts{gap:0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.games .gm-facts li{flex-direction:row;align-items:baseline;gap:6px;padding:0 26px;border-left:1px solid var(--line)}
.games .gm-facts li:first-child{padding-left:0;border-left:0}
.games .gm-facts b{font-family:var(--varsity,inherit);font-size:clamp(2rem,2.4vw,2.6rem);font-weight:900;color:var(--navy)}
.games .gm-facts span{margin:0;font-size:.9rem;font-weight:700;color:var(--muted)}
.games .gm-txt p{font-size:clamp(.98rem,1vw,1.08rem);line-height:1.75;max-width:34em}
.games .gm-btns{gap:12px 20px}
@media (max-width:760px){
  .games .gm-hero{grid-template-columns:1fr}
  .games .gm-pic{aspect-ratio:16/9;min-height:0}
  .games .gm-txt{padding:18px 20px 22px;gap:16px}
  .games .gm-facts li{padding:0 16px}
}

/* ---------- 17 · 我的学习：两卡等高，课程卡 + 五步卡用满宽度 ---------- */
#mystudy .ms-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:18px;margin-top:22px;align-items:stretch}
#mystudy .ms-card{display:flex;flex-direction:column;border-radius:22px;padding:24px 28px;min-width:0}
#mystudy .ms-course{text-decoration:none;color:inherit;background:#fff;border:2px solid #17332c;box-shadow:0 6px 0 #17332c;transition:transform .2s}
#mystudy .ms-course:hover{transform:translateY(-2px)}
#mystudy .ms-steps{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}
#mystudy .ms-tag{align-self:flex-start;font-size:.75rem;font-weight:800;letter-spacing:.08em;background:#f2c14e;color:#17332c;border-radius:999px;padding:3px 11px}
#mystudy .ms-tag.dark{background:#17332c;color:#f3ead7}
#mystudy .ms-course h3{margin:14px 0 6px;font-size:1.3rem;line-height:1.35}
#mystudy .ms-src{margin:0 0 12px;font-size:.9rem;color:var(--muted)}
#mystudy .ms-desc{margin:0 0 16px;line-height:1.7}
#mystudy .ms-go{margin-top:auto;padding-top:14px;border-top:1px dashed var(--line);font-weight:800;color:#1f7a72}
#mystudy .ms-steps ol{list-style:none;counter-reset:ms;margin:14px 0 0;padding:0;display:flex;flex-direction:column;flex:1}
#mystudy .ms-steps li{counter-increment:ms;display:flex;align-items:center;gap:14px;flex:1;padding:9px 0;border-top:1px solid var(--line);line-height:1.55}
#mystudy .ms-steps li:first-child{border-top:0}
#mystudy .ms-steps li::before{content:counter(ms);flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--navy);color:#fff;font:900 .86rem/1 var(--varsity,inherit)}
#mystudy .ms-note{margin:12px 0 0;font-size:.86rem;line-height:1.6;color:var(--muted)}
@media (max-width:900px){#mystudy .ms-grid{grid-template-columns:1fr}}
@media (max-width:480px){#mystudy .ms-card{padding:20px 18px;border-radius:18px}#mystudy .ms-steps li{align-items:flex-start;gap:12px}#mystudy .ms-steps li::before{width:26px;height:26px;font-size:.8rem}}

/* ---------- 18 · 做这件事的人：配图高度 = 右栏高度 ---------- */
.about .sec-art{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);align-items:stretch}
.about .sec-art figure{position:relative;min-height:320px;height:auto}
.about .sec-art figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.about .sec-art>div{display:flex;flex-direction:column}
.about .ab-row{flex:1}
@media (max-width:1180px){.about .sec-art{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}}
@media (max-width:820px){.about .sec-art{grid-template-columns:1fr}.about .sec-art figure{max-width:none;min-height:0;aspect-ratio:16/9}}

/* ================= v1.1 ================= */
/* 01 · PLAY 06 横卡（≥761）：文字左、数据块右，填满右侧空白 */
@media (min-width:761px){
  .bento .bx.wide .txt{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(28px,4vw,72px);align-content:center;justify-content:stretch}
  .bento .bx.wide .txt>*:not(.n){grid-column:1}
  .bento .bx.wide p{max-width:46em}
  .bento .bx.wide .n{grid-column:2;grid-row:1/span 3;align-self:center;margin:0;padding:22px clamp(26px,2.6vw,44px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:18px;background:#f4ecdd;border:1px solid #e7d9c2;min-width:180px}
  .bento .bx.wide .n b{font-size:clamp(2.4rem,3vw,3.2rem);line-height:1}
  .bento .bx.wide .n span{white-space:nowrap}
}

/* 17 · 雅思卡：四项技能条放在中段（单列时不需要） */
#mystudy .ms-skills{list-style:none;margin:6px 0 18px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#mystudy .ms-skills li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 6px;border-radius:14px;background:#f7f1e4;border:1px solid #eadfca;text-align:center}
#mystudy .ms-skills b{font-size:1.5rem;font-weight:900;line-height:1;color:#17332c}
#mystudy .ms-skills small{font-family:var(--varsity,inherit);font-size:.68rem;letter-spacing:.14em;color:var(--muted)}
#mystudy .ms-course .ms-go{margin-top:auto}
@media (max-width:900px){#mystudy .ms-skills{display:none}}

/* ≥1600：章节顶部码线标尺、01 草皮条纹收进正文宽度，两侧不再露出格线 */
@media (min-width:1600px){
  .section::before{left:5vw;right:5vw}
  .academy::after{left:5vw;right:5vw}
  .academy{background:
    linear-gradient(90deg,var(--turf) 0,transparent 5vw,transparent calc(100% - 5vw),var(--turf) 100%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 8%,transparent 8% 16%),
    linear-gradient(180deg,var(--turf),var(--turf2))!important}
}

/* 07 · 游戏馆四个分区：宽屏一排放得下时（no-scroll）四卡均分整行，右侧不再空半截 */
.shelf-wrap.no-scroll .gm-zones.shelf>*{flex:1 0 var(--sw)}
