/* 首页信息顺序：首屏行动 → 四个主入口 → 公开课 → 企业定制 → 活动 → 知识 → 师资 → 关于中心 → 联系。在 institutional.css 之后加载。 */

/* 首屏：视频未播放时在海报文字下方给出两个主行动 */
.home-film-actions{position:absolute;left:12.2%;top:74%;display:flex;gap:12px;line-height:1.4;transition:opacity .4s,transform .5s var(--ease-soft,ease)}
.home-film-actions .light-button{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.6);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.home-film-actions .light-button:hover{background:#fff;color:var(--blue)}
.home-film.is-playing .home-film-actions{opacity:0;transform:translateY(8px);pointer-events:none}
@media(max-width:750px){
  .home-film-actions{position:static;padding:14px 16px 16px;background:var(--navy);flex-wrap:wrap}
  .home-film-actions a{flex:1 1 140px}
  .home-film.is-playing .home-film-actions{opacity:1;transform:none;pointer-events:auto}
}

/* 四个主入口，与主导航一致 */
.home-pathways>.container{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-pathways a{padding-inline:28px}
.home-pathways a:first-child{padding-left:0}
@media(max-width:850px){.home-pathways strong{font-size:19px}}
@media(max-width:620px){
  .home-pathways>.container{grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100% - 32px)}
  .home-pathways a,.home-pathways a:first-child{padding:18px 14px}
  .home-pathways a:nth-child(2){border-right:0}
  .home-pathways a:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .home-pathways a:not(:first-child)::before{left:14px}
}

/* 首页无真实活动时的简短提示 */
.event-preview-empty{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 32px;background:#fff;border-left:3px solid var(--red)}
.event-preview-empty strong{display:block;font:500 21px/1.5 var(--serif);color:var(--ink)}
.event-preview-empty p{margin:6px 0 0;font-size:13px;color:var(--muted)}
.event-preview-empty>div:last-child{display:flex;gap:22px;flex:none}
.event-preview-empty a{font-size:13px;font-weight:600;color:var(--red)}
@media(max-width:750px){.event-preview-empty{flex-direction:column;align-items:flex-start;padding:22px}}

/* 关于中心：中心介绍与校园照片合为一屏 */
.home-about-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:24px;align-items:stretch}
.home-about-gallery{margin:0;min-width:0}
.home-about-gallery .hero-gallery{position:relative;inset:auto;z-index:auto;height:100%;min-height:380px}
@media(max-width:850px){.home-about-layout{grid-template-columns:1fr}.home-about-gallery .hero-gallery{min-height:300px}}

/* 结尾行动区 */
body[data-page="home"] .join-section{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px 40px}
.join-actions{display:flex;align-items:center;gap:14px;flex:none}
.join-actions .join-phone{display:flex;flex-direction:column;margin-right:14px;font:600 20px/1.3 Arial,sans-serif;color:var(--blue)}
.join-actions .join-phone small{font:12px/1.5 var(--sans);color:var(--muted)}
.join-section .join-actions button{margin-top:0;width:auto}
@media(max-width:750px){
  body[data-page="home"] .join-section{flex-direction:column;align-items:flex-start;padding:24px}
  .join-actions{flex-wrap:wrap;width:100%}
  .join-actions .join-phone{width:100%;margin:0 0 4px}
  .join-actions a.red-button,.join-section .join-actions button{flex:1 1 140px}
}
