/* 导航：去掉没用的汉堡按钮；手机端改为顶部细条 + 底部标签栏 */
.header .menu-btn,.content-sidebar,.content-sidebar-overlay{display:none!important}

@media (max-width:680px){
  /* 顶部：只留头像 + 名字，细一点 */
  .header{height:auto!important;min-height:0!important;padding:0!important;background:#fff!important;box-shadow:0 1px 0 #ece6f3!important;transform:none!important;filter:none!important}
  .header .profile{display:flex!important;align-items:center;gap:10px;height:56px;margin:0!important;padding:0 16px!important;border:0!important}
  .header .profile .image{position:static!important;flex:none;width:36px!important;height:36px!important;margin:0!important;float:none!important}
  .header .profile .image img{width:36px!important;height:36px!important;border-radius:50%!important}
  .header .profile .title{position:static!important;margin:0!important;padding:0!important;font-size:16px!important;line-height:1.2!important;float:none!important}
  .header .profile .subtitle{position:static!important;display:flex!important;align-items:center;height:20px;margin:0 0 0 4px!important;padding:0 0 0 10px!important;border-left:1px solid #e6dff0;font-size:12px!important;line-height:20px!important;float:none!important;top:auto!important}
  .header .profile .subtitle .typing-title{display:none!important}
  .header .profile .subtitle .r-typed,.header .profile .subtitle .typed-cursor{line-height:20px!important;font-size:12px!important}

  /* 底部标签栏：六个入口平均分，全部看得到 */
  .header .top-menu{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;z-index:1000;width:100%!important;height:auto!important;margin:0!important;padding:0 0 env(safe-area-inset-bottom)!important;background:rgba(255,255,255,.96)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 -1px 0 #ece6f3,0 -6px 18px rgba(77,49,109,.06)!important;border:0!important;overflow:visible!important}
  .header .top-menu ul{display:grid!important;grid-template-columns:repeat(6,1fr);width:100%!important;margin:0!important;padding:0!important;white-space:normal!important;transform:none!important}
  .header .top-menu ul li{width:auto!important;margin:0!important;padding:0!important;border:0!important;float:none!important}
  .header .top-menu ul li:before,.header .top-menu ul li:after,.header .top-menu ul li a:before,.header .top-menu ul li a:after{display:none!important}
  .header .top-menu ul li a{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;color:#6f6878!important;-webkit-tap-highlight-color:transparent}
  .header .top-menu ul li a .icon{position:static!important;display:block!important;margin:0!important;font-size:18px!important;line-height:1!important;height:auto!important;color:#8a8392!important;transition:transform .25s cubic-bezier(.22,.61,.36,1),color .2s}
  .header .top-menu ul li a .name{position:static!important;display:block!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap;color:inherit!important;opacity:1!important;transform:none!important}
  /* “小可爱们的寄语”在底栏放不下，手机上显示“寄语” */
  .header .top-menu ul li:nth-child(5) .name{font-size:0!important}
  .header .top-menu ul li:nth-child(5) .name:after{content:"寄语";font-size:11px}
  /* 当前所在板块：紫色 + 顶部小横条（由 jessica-nav.js 控制） */
  .header .top-menu ul li a .name,.header .top-menu ul li a .icon{color:#8a8392!important}
  .header .top-menu ul li.jn-active a .icon,.header .top-menu ul li.jn-active a .name{color:#8b5fbf!important}
  .header .top-menu ul li.jn-active a .icon{transform:translateY(-1px)}
  .header .top-menu ul li.jn-active a:before{display:block!important;content:"";position:absolute;top:0;left:50%;width:22px;height:3px;margin-left:-11px;background:#8b5fbf;border-radius:0 0 2px 2px}
  .header .top-menu ul li a:active .icon{transform:scale(.9)}

  /* 内容避开上下两条 */
  .container{padding-top:64px!important;padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}
  .jessica-toast{bottom:calc(76px + env(safe-area-inset-bottom))!important}
}
@media (max-width:680px) and (prefers-reduced-motion:reduce){
  .header .top-menu ul li a .icon{transition:none}
}
