/* 智能返回导航 */
.smartnav { display: flex; align-items: center; justify-content: space-between;
            gap: 10px; position: relative; }
.smartnav-back { display: inline-flex; align-items: center; gap: 6px;
                 padding: 8px 14px; border-radius: 999px; font-size: 13px;
                 color: #475569; text-decoration: none; background: #f1f5f9;
                 border: 1px solid #e2e8f0; transition: .15s; }
.smartnav-back:hover { background: #e2e8f0; color: #1e293b; }
.smartnav-arrow { font-size: 14px; }

.smartnav-menu { position: relative; }
.smartnav-toggle { padding: 8px 14px; border-radius: 999px; font-size: 13px;
                   color: #475569; background: #fff; border: 1px solid #e2e8f0;
                   cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.smartnav-toggle:hover { background: #f8fafc; }
.smartnav-caret { font-size: 10px; color: #94a3b8; }

.smartnav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px);
                     min-width: 150px; background: #fff; border: 1px solid #e2e8f0;
                     border-radius: 10px; box-shadow: 0 8px 28px rgba(15,23,42,.12);
                     padding: 6px; z-index: 200; }
.smartnav.open .smartnav-dropdown { display: block; }
.smartnav-dropdown a { display: block; padding: 8px 12px; border-radius: 7px;
                       font-size: 13px; color: #334155; text-decoration: none; }
.smartnav-dropdown a:hover { background: #f1f5f9; color: #1d4ed8; }

@media (max-width: 640px) {
  .smartnav-back, .smartnav-toggle { padding: 7px 12px; font-size: 12.5px; }
  .smartnav-dropdown { min-width: 140px; }
}
