/* claude-nav27-1127 导航优化预览样式：只在 ?yyv=nav27（cookie yynav27=1）时由 Tokyo/Header.html 加载；关掉开关整份不加载 */

/* ---------- 客服按钮 ---------- */
.yy-kf-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.18);flex:0 0 auto}
body.yy27 .yy-kf-ico{flex:0 0 auto}
/* 电脑：放在「代理」左边，描边按钮 */
body.yy27 .tokyo-nav-tools .yy-kf-d{display:none}
@media (min-width:1200px){
  body.yy27 .tokyo-nav-tools{display:flex;align-items:center;gap:10px}
  body.yy27 .tokyo-nav-tools .yy-kf-d{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  body.yy27 .tokyo-nav-links .yy-kf-li{display:none!important}
}
/* 手机菜单：客服排第 3，和其他菜单项同样式，圆点放在文字后面 */
body.yy27 .tokyo-nav-links .yy-kf-m{gap:10px}
body.yy27 .tokyo-nav-links .yy-kf-m .yy-kf-dot{margin-left:2px}

/* ---------- 客服小框 ---------- */
.yy-kf-pop[hidden]{display:none!important}
.yy-kf-pop{position:absolute;left:0;top:0;z-index:2147483000}
.yy-kf-mask{display:none}
.yy-kf-box{position:absolute;width:320px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:16px 16px 14px;border-radius:18px;background:#fffdf9;border:1px solid rgba(17,17,17,.08);box-shadow:0 18px 48px rgba(17,17,17,.16),0 2px 8px rgba(17,17,17,.06);color:#16181d;font-size:14px;line-height:1.45;text-align:left}
.yy-kf-hd{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.yy-kf-hd b{font-size:15px;font-weight:700}
.yy-kf-x{appearance:none;border:0;background:transparent;width:30px;height:30px;margin:-6px -6px -6px 0;border-radius:50%;font-size:20px;line-height:30px;color:#8a8f98;cursor:pointer}
.yy-kf-x:hover{background:rgba(17,17,17,.06);color:#16181d}
a.yy-kf-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;margin:0 0 6px;border-radius:12px;background:#f6f2ea;color:#16181d!important;font-weight:600;text-decoration:none!important}
a.yy-kf-link:hover{background:#efe8da}
a.yy-kf-link i{font-style:normal;color:#9a8a66;font-size:18px;line-height:1}
.yy-kf-wx{display:flex;align-items:center;gap:12px;margin:10px 0 0;padding:12px 0 0;border-top:1px dashed rgba(17,17,17,.12)}
.yy-kf-wx img{width:104px;height:104px;flex:0 0 auto;border-radius:10px;border:1px solid rgba(17,17,17,.08);background:#fff}
.yy-kf-wx div{display:flex;flex-direction:column;gap:3px;min-width:0}
.yy-kf-wx b{font-size:15px}
.yy-kf-wx span{display:inline-flex;align-items:center;gap:6px;color:#15803d;font-weight:600;font-size:13px}
.yy-kf-wx small{color:#5b6170;font-size:12.5px;line-height:1.45}
a.yy-kf-go{display:none}
@media (max-width:767.98px){
  .yy-kf-pop{position:fixed;inset:0}
  .yy-kf-mask{display:block;position:absolute;inset:0;background:rgba(17,17,17,.42)}
  .yy-kf-box{left:0!important;right:0;top:auto!important;bottom:0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px))}
  .yy-kf-wx img{width:96px;height:96px}
  a.yy-kf-go{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;margin:12px 0 0;border-radius:999px;background:#07c160;color:#fff!important;font-size:15px;font-weight:700;text-decoration:none!important}
}

/* ---------- 商品页、订单查询页页脚入口 ---------- */
.yy-foot27{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 8px;padding:18px 16px 0;font-size:13px;line-height:20px;color:#9aa0aa}
.yy-foot27 a{color:#4b5563!important;text-decoration:none!important;padding:2px 2px}
.yy-foot27 a:hover{color:#111!important;text-decoration:underline!important}
body.yy27-home .yy-foot27{display:none}

/* ---------- 手机顶栏（<768）：88 → 约 60 像素 ---------- */
@media (max-width:767.98px){
  body.yy27 .tokyo-nav-shell{padding-top:6px!important}
  body.yy27 .tokyo-nav{padding:6px 8px 6px 10px!important;border-radius:24px!important}
  body.yy27 .tokyo-brand-wrap{gap:8px!important}
  body.yy27 .tokyo-brand{gap:9px!important}
  body.yy27 .tokyo-brand-mark{flex:0 0 36px!important;width:36px!important;height:36px!important}
  body.yy27 .tokyo-brand-wrap .tokyo-brand-name{overflow:visible!important;text-overflow:clip!important;white-space:nowrap}
  body.yy27 .tokyo-brand-wrap .tokyo-brand-chip{overflow:visible!important}
  body.yy27 .yy-mlogin{height:36px!important}
  body.yy27 .tokyo-nav-toggle{flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important}
  /* 首页、订单查询页往下滑时顶栏一直在顶上；商品页不吸顶（底部已有付款条） */
  body.yy27-home .tokyo-nav-shell,body.yy27-query .tokyo-nav-shell{position:sticky;top:env(safe-area-inset-top,0px);z-index:1030}
  /* 吸顶时菜单展开太高也能在菜单里滑动，不会盖住内容出不来 */
  body.yy27-home .tokyo-nav-shell .navbar-collapse,body.yy27-query .tokyo-nav-shell .navbar-collapse{max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
}
@media (max-width:340px){
  body.yy27 .tokyo-brand-wrap .tokyo-brand-name{font-size:11.5px!important}
}

/* 吸顶后（页面往下滑了）顶栏背景基本不透明 + 毛玻璃，底下的字透不出来；在页面最上面时样子不变 */
@media (max-width:767.98px){
  body.yy27-stuck.yy27-home .tokyo-nav,body.yy27-stuck.yy27-query .tokyo-nav{background:rgba(255,255,255,.97)!important;-webkit-backdrop-filter:saturate(1.8) blur(20px)!important;backdrop-filter:saturate(1.8) blur(20px)!important}
}

/* ---------- 手机首页购买条（<768，只首页） ---------- */
.yy-buybar{display:none}
@media (max-width:767.98px){
  .yy-buybar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1020;align-items:center;gap:12px;box-sizing:border-box;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(255,253,249,.97);border-top:1px solid rgba(17,17,17,.08);box-shadow:0 -8px 24px rgba(17,17,17,.08);transform:translateY(110%);transition:transform .22s ease;-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px)}
  .yy-buybar.is-on{transform:none}
  .yy-buybar-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.3}
  .yy-buybar-t b{font-size:15px;color:#16181d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .yy-buybar-t span{font-size:12.5px;color:#5b6170;white-space:nowrap}
  .yy-buybar-t em{font-style:normal;color:#e0362c;font-weight:800;font-size:15px}
  a.yy-buybar-go{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 22px;border-radius:999px;background:#111;color:#fff!important;font-size:15px;font-weight:700;text-decoration:none!important}
  .yy-buybar-sp{height:0}
}
