/* ==========================================================================
   nav-icons.css · 前台导航图标重构美化层（v1.1.90）
   覆盖三处：底部导航栏、桌面左侧功能栏、更多页宫格。
   本文件在 service-hub.css 之后加载，保证与所有主题皮肤兼容。
   ========================================================================== */

/* ── 通用：SVG 图标描边风格 ── */
.customer-body .nav-icon svg,
.customer-body .hub-more-button .nav-icon svg{
  fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}

/* ── 桌面左侧功能栏（customer-service-rail）── */
.customer-service-rail .nav-icon{display:inline-flex!important;align-items:center;justify-content:center;width:26px;height:26px;flex:none;border-radius:8px;transition:background .18s ease,color .18s ease}
.customer-service-rail .nav-icon svg{width:20px;height:20px}
.customer-service-rail .nav-item:hover .nav-icon{background:rgba(74,151,120,.10)}
.customer-service-rail .nav-item.active .nav-icon{background:rgba(74,151,120,.14)}

/* ── 底部导航栏（customer-bottom-nav）── */
/* 图标：统一 21px 描边图标；激活项轻微上浮，与滑动指示条联动 */
.customer-body .customer-bottom-nav .nav-icon{width:auto!important;height:auto!important;display:grid;place-items:center;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.customer-body .customer-bottom-nav .nav-icon svg{width:21px;height:21px;stroke-width:1.7;transition:transform .22s cubic-bezier(.2,.8,.2,1),stroke-width .22s ease}
.customer-body .customer-bottom-nav .nav-item.active .nav-icon svg{transform:translateY(-1px);stroke-width:1.95}
.customer-body .customer-bottom-nav .nav-item:active .nav-icon{transform:scale(.88)}

/* ── 更多页宫格（hub-more-menu）── */
/* 网格：手机 4 列，桌面 3 列 */
.hub-more-menu{grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:12px}
@media(min-width:1024px){.hub-more-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:540px){.hub-more-menu{gap:9px}}
/* 卡片 */
.hub-more-button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  min-height:96px;padding:14px 8px 12px;
  border:1px solid rgba(51,98,84,.13);border-radius:18px;
  background:rgba(255,255,255,.78);
  color:#244e40;font-size:14px;font-weight:600;line-height:1.35;text-align:center;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.hub-more-button:hover{transform:translateY(-2px);border-color:rgba(51,98,84,.26);background:#fff;box-shadow:0 10px 24px rgba(31,65,54,.10)}
.hub-more-button:active{transform:translateY(0) scale(.97)}
/* 图标瓷片：柔和底色 + 专属色，悬停上浮 */
.hub-more-button .nav-icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex:none;
  background:var(--chip-bg,#eef1f6);color:var(--chip-ink,#5a6b85);
  transition:transform .18s ease,box-shadow .18s ease;
}
.hub-more-button .nav-icon svg{width:23px;height:23px}
.hub-more-button:hover .nav-icon{transform:translateY(-2px) scale(1.05);box-shadow:0 6px 14px rgba(31,65,54,.12)}
/* 八组柔和配色循环 */
.hub-more-button:nth-child(8n+1) .nav-icon{--chip-bg:#e7efff;--chip-ink:#3b6fe0}
.hub-more-button:nth-child(8n+2) .nav-icon{--chip-bg:#def3ea;--chip-ink:#17916b}
.hub-more-button:nth-child(8n+3) .nav-icon{--chip-bg:#ece9ff;--chip-ink:#6a5ae0}
.hub-more-button:nth-child(8n+4) .nav-icon{--chip-bg:#fff1e3;--chip-ink:#dd7f2e}
.hub-more-button:nth-child(8n+5) .nav-icon{--chip-bg:#ffe9f1;--chip-ink:#d4518f}
.hub-more-button:nth-child(8n+6) .nav-icon{--chip-bg:#e1f5fb;--chip-ink:#1796c2}
.hub-more-button:nth-child(8n+7) .nav-icon{--chip-bg:#eaf6dd;--chip-ink:#68a232}
.hub-more-button:nth-child(8n+8) .nav-icon{--chip-bg:#eef1f6;--chip-ink:#5a6b85}
/* 小屏压缩 */
@media(max-width:540px){
  .hub-more-button{min-height:88px;font-size:13px;border-radius:16px}
  .hub-more-button .nav-icon{width:42px;height:42px;border-radius:13px}
  .hub-more-button .nav-icon svg{width:21px;height:21px}
}

/* 减少动态效果偏好 */
@media(prefers-reduced-motion:reduce){
  .customer-body .nav-icon,.customer-body .customer-bottom-nav .nav-icon svg,.hub-more-button,.hub-more-button .nav-icon{transition:none!important;transform:none!important}
}
