/* 向阳学院 · home 模块样式（由 code18.txt 第285-332行拆分） */
/* v3.5：纯白背景 + 无阴影；轮播改通栏卡片（图上文下：名称/左分类右板块，自动轮播）；
   优选/人气榜改灰底图卡；Hello 行无框；刷新按钮无圆框 */
/* ===== 首页（轮播 + 优选 + 人气榜）===== */
#homePage {
  position: absolute; left:0; right:0; top:0; bottom:0;
  background:#fff; display:none; flex-direction:column;
  padding-bottom: 68px;
}
.hp-wrap { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:14px 14px 24px; }

/* ===== v3.5 Hello 行（无卡片框，纯文字 + 右侧裸图标刷新） ===== */
.hp-hello { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 2px; margin-bottom:12px; }
.hp-hello-t { font-size:21px; font-weight:800; color:#241E18; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hp-refresh { width:34px; height:34px; border:none; background:transparent; color:#8A9691; font-size:21px; cursor:pointer; -webkit-tap-highlight-color:transparent; display:flex; align-items:center; justify-content:center; flex-shrink:0; padding:0; line-height:1; }
.hp-refresh:active { transform:scale(.9); }
.hp-refresh.spin { animation:hpSpin .6s linear; }
@keyframes hpSpin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

/* ===== v4.6 轮播卡片：通栏（铺满左右）圆角，上图下文，自动轮播；标题简介叠在图上 ===== */
.hp-banner { position:relative; margin:0 -14px; border-radius:18px; overflow:hidden; background:#EEF0F0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.hp-banner-img { position:relative; height:200px; overflow:hidden; background:#EEF0F0; }
#hpBannerBg { position:absolute; left:0; top:0; right:0; bottom:0; background-size:cover; background-position:center; opacity:0; transition:opacity .45s ease; }
#hpBannerBg.show { opacity:1; }
.hp-banner-info { position:absolute; left:0; right:0; bottom:0; padding:46px 14px 14px; background:linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%); }
.hp-banner-name { font-size:16.5px; font-weight:800; color:#fff; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.hp-banner-sum { font-size:12px; color:rgba(255,255,255,0.82); line-height:1.5; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 1px rgba(0,0,0,.25); }
.hp-banner-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.hp-banner-cat { font-size:11.5px; color:#fff; background:rgba(255,255,255,0.22); border-radius:10px; padding:4px 10px; line-height:1.2; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; backdrop-filter:blur(4px); }
.hp-banner-board { font-size:12.5px; font-weight:700; color:#FFC9A8; flex-shrink:0; }
#hpBannerDots { display:flex; justify-content:center; gap:6px; margin-top:10px; }
.hp-dot { width:6px; height:6px; border-radius:3px; background:#E3E6E4; transition:all .3s; cursor:pointer; }
.hp-dot.on { width:16px; background:#FC6C3C; }
.hp-sec-title { font-size:17px; font-weight:800; color:#D9541F; margin:20px 2px 12px; }
.hp-sec-sub { font-size:11px; font-weight:400; color:#A89C90; margin-left:6px; }

/* ===== v4.9 预约精选课程：一行三个（数量不限），图+简介叠在封面图上 ===== */
#hpPicks { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding-bottom:4px; }
.hp-pick { border-radius:14px; overflow:hidden; cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
.hp-pick:active { transform:scale(.97); }
.hp-pick-img { height:110px; background-size:cover; background-position:center; display:flex; align-items:flex-end; justify-content:center; color:#fff; font-size:22px; font-weight:800; }
.hp-pick-info { position:absolute; left:0; right:0; bottom:0; padding:30px 10px 10px; background:linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%); pointer-events:none; }
.hp-pick-t { font-size:12.5px; font-weight:700; color:#fff; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.hp-pick-sum { font-size:11px; color:rgba(255,255,255,0.75); line-height:1.5; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== v3.5 统一文章行（获客导航/向阳之家/人气榜通用）：左图 右上名称 下概要 右侧分类 ===== */
/* v4.3 横条布局：左侧 4:3 封面（96x72，比例固定）+ 右侧标题/简介 + 最右侧分类；列高与旧版一致 */
.art-item { display:flex; align-items:center; gap:11px; background:#F5F6F7; border-radius:14px; padding:10px; margin-bottom:10px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.art-item:active { background:#EFEFEE; }
.art-img { position:relative; width:96px; height:72px; border-radius:8px; flex-shrink:0; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; font-weight:800; overflow:hidden; }
.art-img span { position:absolute; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; font-weight:800; }
.art-img img { position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; }
.play-overlay { position:absolute; left:0; top:0; right:0; bottom:0; background:rgba(0,0,0,0.28); display:flex; align-items:center; justify-content:center; z-index:2; }
.play-btn { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.92); color:#FC6C3C; font-size:16px; display:flex; align-items:center; justify-content:center; padding-left:2px; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.video-mini-tag { display:inline-block; font-size:10px; font-weight:500; color:#fff; background:#FC6C3C; border-radius:3px; padding:1px 4px; margin-left:5px; vertical-align:middle; line-height:1.2; }
.art-info { flex:1; min-width:0; }
.art-t { font-size:14px; font-weight:600; color:#241E18; line-height:1.4; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.art-d { font-size:11.5px; color:#8A9691; margin-top:4px; line-height:1.5; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.art-tag { flex-shrink:0; font-size:11px; color:#FC6C3C; background:#FFF1E6; border-radius:6px; padding:4px 8px; line-height:1.2; max-width:76px; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.art-rank { width:22px; text-align:center; font-size:15px; font-weight:800; color:#C4B8AC; flex-shrink:0; }
.art-rank.r1 { color:#FF9D2E; }
.art-rank.r2 { color:#9aa3b2; }
.art-rank.r3 { color:#D9925F; }
.hp-loading { text-align:center; color:#A89C90; font-size:12px; padding:26px 0; }

/* ===== 底栏按钮（主页/课程预约 = 橙渐变胶囊，v4.93 由白底绿字改为橙色主题；无阴影） ===== */
#bottomBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #ECECEC; }
#bottomBar button { flex: 1; border: none; border-radius: 22px; padding: 11px 4px; font-size: 13px; font-size: clamp(12px, 3.4vw, 14px); cursor: pointer; color: #fff; background: linear-gradient(135deg, #F8A83C, #FC6C3C); -webkit-tap-highlight-color: transparent; }
#bottomBar button:active { transform: scale(.95); }
#bottomBar .b-home { background: linear-gradient(135deg, #F8A83C, #FC6C3C); color: #fff; border: none; }
