/* 移动端帮助中心 */
.m-help-page{background:#FFF;min-height:100vh;padding-bottom:30px}

/* banner */
.m-help-banner{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:220px;padding:0 45px;overflow:hidden}
.m-help-banner-video{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%;z-index:0}
.m-help-banner::after{content:'';position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.35);z-index:0}
.m-help-banner-title{position:relative;z-index:1;font-size:24px;font-weight:500;color:#FFF;letter-spacing:2px}

/* 搜索框 */
.m-search-box{position:relative;z-index:1;display:flex;align-items:center;width:100%;height:44px;margin-top:20px;background:#FFF;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.m-search-icon{position:absolute;left:14px;width:18px;height:18px;opacity:.6}
.m-search-input{flex:1;width:100%;height:100%;padding:0 8px 0 40px;border:none;border-radius:4px;font-size:14px;color:#333;outline:none;background:transparent}
.m-search-input::placeholder{color:#999}
.m-clean{display:none;width:18px;height:18px;padding:4px;cursor:pointer;flex-shrink:0}
.m-search-btn{display:none;margin-left: 8px; width:48px;height:calc(100% - 16px);background:#1A1B1F;color:#FFF;border:none;border-radius:2px;margin-right:8px;font-size:12px;cursor:pointer;flex-shrink:0}

/* 工具条 */
.m-help-toolbar{display:flex;align-items:center;justify-content:space-between;padding:30px 20px;padding-bottom:10px;}
.m-result-count{font-size:12px;color:#969799}
.m-category-btn{display:flex;align-items:center;font-size:12px;color:#000;cursor:pointer;font-weight: 400;}
.m-category-icon{display:block;width:14px;height:14px;margin-right:6px;background:url('https://hsimage.fotile.com/202608041750599053595.png') center center;background-size: cover;}

/* 列表 */
.m-help-card{position:relative;padding:20px;background:#FFF;border-radius:6px}
.m-card-title{font-size:18px;font-weight:600;color:#121212;line-height:1.5}
.m-card-summary{margin-top:10px;font-size:12px;color:#555;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-card-products{position:relative;margin-top:16px;font-size:12px;color:#999;line-height:1.5}
.m-card-products .product-inner{height:1.5em;line-height:1.5em;overflow:hidden;padding-right:90px;white-space:nowrap;text-overflow:ellipsis}
.m-card-products.expanded .product-inner{height:auto;max-height:none;overflow:visible;white-space:normal}
.m-card-products .product-label{color:#969799}
.m-card-products .product-toggle{position:absolute;right:0;top:0;display:none;align-items:center;color:#999;white-space:nowrap;cursor:pointer}
.m-card-products.has-overflow .product-toggle{display:inline-flex}
.m-card-products .product-toggle .toggle-text{font-size:12px}
.m-card-products .product-arrow{display:inline-block;width:0;height:0;margin-left:4px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #999;transition:transform .3s}
.m-card-products.expanded .product-arrow{transform:rotate(180deg)}
.m-card-products .product-link{color:inherit;text-decoration:none}
.m-card-products .product-link:hover{text-decoration:underline;color:#1A1B1F}
.m-card-products .product-sep{pointer-events:none}

/* 关键字标红 */
.hl{color:#C3242A;font-style:normal}

/* 加载更多：始终占文档流（display:flex），用 visibility 显隐，避免 display 切换导致的 (0,0) 闪现 */
.m-load-more{display:flex;visibility:hidden;margin:16px auto 0;background:#1A1B1F;color:#EEE;font-size:14px;text-align:center;cursor:pointer;width:fit-content;min-width:114px;height:45px;line-height:45px;border-radius:2px;align-items:center;justify-content:center;gap:8px}
.m-load-more.show{visibility:visible}
.m-load-more-text{flex-shrink:0}
.m-plus-icon{width:16px;height:16px;flex-shrink:0}

/* 空状态/错误 */
.m-empty-tip{padding:40px 0;text-align:center;font-size:13px;color:#999}

/* 目录抽屉（底部） */
.m-drawer{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999;pointer-events:none}
.m-drawer.open{pointer-events:auto}
.m-drawer-mask{position:absolute;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity .3s ease}
.m-drawer.open .m-drawer-mask{opacity:1}
.m-drawer-panel{position:absolute;left:0;right:0;bottom:0;width:100%;max-height:85vh;background:#FFF;border-radius:12px 12px 0 0;transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column}
.m-drawer.open .m-drawer-panel{transform:translateY(0)}
.m-drawer-header{position:relative;display:flex;align-items:center;height:52px;padding:0 20px;border-bottom:1px solid #F5F5F5;flex-shrink:0}
.m-drawer-title{font-size:16px;font-weight:500;color:#333;text-align:center}
.m-drawer-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;color:#999;line-height:1;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.m-drawer-body{overflow-y:auto;padding:8px 18px 24px;-webkit-overflow-scrolling:touch}
.m-nav-list{list-style:none;margin:0;padding:0}
.m-nav-item{border-bottom:1px solid #E5E5E5}
.m-nav-link{display:flex;align-items:center;min-height:60px;padding:0;font-size:14px;color:#555;text-decoration:none}
.m-nav-link.active{color:#121212;font-weight: 600;font-size: 14px;}
.m-nav-title,.m-nav-sub-title{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:0;font-size:14px;color:#555}
.m-nav-title{font-weight:500}
.m-nav-title-text{flex:1}
.m-nav-arrow{display:block;width:18px;height:18px;flex-shrink:0;margin-left:8px;position:relative;cursor:pointer;background:url(https://hsimage.fotile.com/202608041750599055744.png) no-repeat center/100% 100%;transition:transform .25s}
.m-nav-arrow::before{display:none}
.m-nav-group.expanded>.m-nav-title .m-nav-arrow,.m-nav-sub-item.expanded>.m-nav-sub-title .m-nav-arrow{transform:rotate(180deg)}
.m-nav-sub{display:none;list-style:none;margin:0;padding:0 0 0 12px}
.m-nav-group.expanded>.m-nav-sub,.m-nav-sub-item.expanded>.m-nav-sub2{display:block}
.m-nav-sub-item{margin-bottom:2px}
.m-nav-sub2{display:none;list-style:none;margin:0;padding:0 0 0 12px}
/* 展开时直接子项淡入 + 下滑 */
.m-nav-group.expanded>.m-nav-sub>li,.m-nav-sub-item.expanded>.m-nav-sub2>li{animation:m-nav-in .22s ease both}
@keyframes m-nav-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.m-nav-loading{padding:8px 12px;color:#999;font-size:12px}
.m-nav-title-text.active{color:#121212;font-weight:600}
.m-nav-empty{padding:8px 12px;color:#999;font-size:12px}
