/* Shared navigation for all ecommerce tools */
body { font-family: 'Varela Round', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
button, input, select, textarea, summary { font: inherit; }
.tool-nav { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(223,228,236,.92); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.tool-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); height: 72px; margin-right: auto; margin-left: auto; }
.tool-nav .tool-brand { display: flex; flex: 0 0 auto; align-items: center; color: #303b4d; text-decoration: none; }
.tool-nav .tool-brand img { display: block; width: 100px; height: 50px; object-fit: contain; }
.tool-nav nav { display: flex; align-items: center; gap: 23px; color: #505b6c; font-size: 13px; font-weight: 650; }
.tool-nav nav > a { color: #505b6c; text-decoration: none; }
.tool-nav nav > a:hover { color: #e87336; }
.tool-nav .nav-login { padding: 10px 15px; border-radius: 9px; background: #e87336; color: #fff; }
.tool-nav .nav-login:hover { color: #fff; filter: brightness(1.04); }
.tool-menu { position: relative; }
.tool-menu summary { display: flex; align-items: center; gap: 6px; padding: 9px 0; cursor: pointer; color: #3e4a5d; list-style: none; }
.tool-menu summary::-webkit-details-marker { display: none; }
.tool-menu summary i { color: #8b94a2; font-size: 10px; transition: transform .18s; }
.tool-menu[open] summary, .tool-menu summary:hover { color: #e87336; }
.tool-menu[open] summary i { transform: rotate(180deg); }
.tool-menu-panel { position: absolute; top: calc(100% + 13px); right: -95px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 510px; padding: 12px; border: 1px solid #e1e6ed; border-radius: 14px; background: #fff; box-shadow: 0 24px 65px rgba(25,39,60,.18); }
.tool-menu-panel:before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.tool-menu-panel a { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 9px; color: #3f4b5e; text-decoration: none; }
.tool-menu-panel a:hover, .tool-menu-panel a.current { background: #f3f6fa; color: #315fa8; }
.tool-menu-panel a > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eef3fa; color: #315fa8; }
.tool-menu-panel a span, .tool-menu-panel a small { display: block; }
.tool-menu-panel a span { font-size: 11px; font-weight: 800; }
.tool-menu-panel a small { margin-top: 1px; color: #8992a0; font-size: 8px; font-weight: 500; }
.tool-menu-panel a:last-child { grid-column: 1 / -1; }

@media (hover: hover) and (min-width: 761px) {
  .tool-menu:not([open]):hover .tool-menu-panel { display: grid; }
}

@media (max-width: 760px) {
  .tool-nav .nav-inner { height: 64px; }
  .tool-nav .tool-brand img { width: 88px; height: 44px; }
  .tool-nav nav { gap: 10px; }
  .tool-nav .nav-home, .tool-nav .nav-service { display: none !important; }
  .tool-menu summary { padding: 8px; border: 1px solid #e1e5eb; border-radius: 8px; font-size: 11px; }
  .tool-menu-panel { position: fixed; top: 64px; right: 10px; left: 10px; grid-template-columns: 1fr; width: auto; max-height: calc(100vh - 78px); overflow-y: auto; }
  .tool-menu-panel a:last-child { grid-column: auto; }
  .tool-nav .nav-login { padding: 9px 11px; font-size: 11px; }
}

/* Unified public navigation used by every ecommerce tool */
.site-nav-toggle { display: none; }
.tool-nav .site-tool-nav { display: flex; align-items: center; gap: 20px; }
.tool-nav .site-tool-nav > a { color: #505b6c; font-size: 14px; font-weight: 700; text-decoration: none; }
.tool-nav .site-tool-nav > a:hover { color: #315fa8; }
.tool-nav .site-tool-nav .nav-partner { padding: 9px 12px; border: 1px solid #d9e2ef; border-radius: 9px; color: #315fa8; }
.tool-nav .site-tool-nav .nav-login { padding: 10px 14px; border-radius: 9px; background: #315fa8; color: #fff; }
.site-nav-dropdown { position: relative; }
.site-nav-dropdown summary { display: flex; align-items: center; gap: 6px; padding: 11px 0; cursor: pointer; color: #3e4a5d; font-size: 14px; font-weight: 750; list-style: none; }
.site-nav-dropdown summary::-webkit-details-marker { display: none; }
.site-nav-dropdown summary > i:first-child { display: none; }
.site-nav-dropdown summary > i:last-child { color: #8994a5; font-size: 9px; transition: transform .18s; }
.site-nav-dropdown[open] summary, .site-nav-dropdown.current-group summary { color: #315fa8; }
.site-nav-dropdown[open] summary > i:last-child { transform: rotate(180deg); }
.site-mega-panel, .site-compact-panel { position: absolute; top: calc(100% + 11px); z-index: 60; }
.site-mega-panel { left: 50%; width: 760px; transform: translateX(-42%); }
.site-compact-panel { right: -28px; display: grid; width: 306px; padding: 10px; border: 1px solid #e0e6ef; border-radius: 17px; background: rgba(255,255,255,.99); box-shadow: 0 24px 65px rgba(19,38,66,.19); }
.site-mega-panel:before, .site-compact-panel:before { content: ''; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.tool-nav .mega-menu-card { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100vh - 94px); padding: 20px; overflow-y: auto; border: 1px solid rgba(97,149,255,.14); border-radius: 24px; background: rgba(255,255,255,.99); box-shadow: 0 28px 80px rgba(19,38,66,.22), 0 8px 24px rgba(19,38,66,.08); }
.tool-nav .mega-menu-column { min-width: 0; padding: 0 17px; }
.tool-nav .mega-menu-column + .mega-menu-column { border-left: 1px solid #e8edf5; }
.tool-nav .mega-menu-column header { display: flex; align-items: baseline; justify-content: space-between; min-height: 46px; padding: 3px 10px 13px; border-bottom: 1px solid #e8edf5; }
.tool-nav .mega-menu-column header span { color: #142b52; font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.tool-nav .mega-menu-column header small { color: #9aa8bd; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.tool-nav .mega-menu-link { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 61px; margin-top: 3px; padding: 8px 10px; border-radius: 12px; color: #273a5b; text-decoration: none; transition: .18s ease; }
.tool-nav .mega-menu-link > i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dce7fa; border-radius: 11px; background: #f2f6fd; color: #4d7fd6; font-size: 17px; transition: .18s ease; }
.tool-nav .mega-menu-link span, .tool-nav .mega-menu-link strong, .tool-nav .mega-menu-link small { display: block; min-width: 0; }
.tool-nav .mega-menu-link strong { overflow: hidden; color: #1e3152; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tool-nav .mega-menu-link small { margin-top: 3px; overflow: hidden; color: #8a96a9; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tool-nav .mega-menu-badge { padding: 4px 7px; border-radius: 7px; background: #eef3fb; color: #6b89b9; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.tool-nav .mega-menu-link:hover, .tool-nav .mega-menu-link.current { background: linear-gradient(135deg,#eff5ff,#f7faff); box-shadow: inset 0 0 0 1px rgba(97,149,255,.13); }
.tool-nav .mega-menu-link:hover > i, .tool-nav .mega-menu-link.current > i { border-color: #6195ff; background: #6195ff; color: #fff; }
.site-compact-panel a { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; align-items: center; min-height: 56px; padding: 8px 10px; border-radius: 11px; color: #273a5b; text-decoration: none; }
.site-compact-panel a:hover { background: #f2f6fd; }
.site-compact-panel a > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5fc; color: #5781c9; }
.site-compact-panel a span, .site-compact-panel a small { display: block; }
.site-compact-panel a span { color: #223655; font-size: 14px; font-weight: 800; }
.site-compact-panel a small { margin-top: 2px; color: #8b96a8; font-size: 11px; font-weight: 500; }
.tool-breadcrumb { border-bottom: 1px solid #edf0f4; background: #fafbfc; }
.tool-breadcrumb .page-container { display: flex; align-items: center; gap: 9px; width: min(1180px, calc(100% - 40px)); min-height: 38px; margin-right: auto; margin-left: auto; color: #8a94a4; font-size: 11px; }
.tool-breadcrumb a:hover { color: #315fa8; }
.tool-breadcrumb strong { color: #465368; font-weight: 700; }
.tool-breadcrumb i { color: #bdc4ce; font-size: 9px; }
@media (max-width: 1199px) {
  .tool-nav .nav-inner { position: relative; height: 64px; }
  .tool-nav .tool-brand img { width: 88px; height: 44px; }
  .site-nav-toggle { display: grid; gap: 4px; place-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #dfe4eb; border-radius: 9px; background: #fff; }
  .site-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #3d4a5e; }
  .tool-nav .site-tool-nav { position: fixed; top: 64px; right: 0; left: 0; display: none; align-items: stretch; max-height: calc(100vh - 64px); padding: 10px 14px 18px; overflow-y: auto; border-top: 1px solid #e7ebf0; background: rgba(255,255,255,.99); box-shadow: 0 18px 40px rgba(23,36,56,.13); }
  .tool-nav.nav-open .site-tool-nav { display: flex; flex-direction: column; gap: 4px; }
  .tool-nav .site-tool-nav > a { display: block !important; padding: 12px; border-radius: 9px; font-size: 14px; }
  .tool-nav .site-tool-nav .nav-partner, .tool-nav .site-tool-nav .nav-login { margin-top: 5px; text-align: center; }
  .site-nav-dropdown summary { justify-content: flex-start; padding: 12px; border-radius: 9px; font-size: 14px; }
  .site-nav-dropdown summary > i:first-child { display: inline-block; width: 17px; color: #6c84a9; }
  .site-nav-dropdown summary > i:last-child { margin-left: auto; }
  .site-mega-panel, .site-compact-panel { position: static; width: auto; transform: none; }
  .tool-nav .mega-menu-card { display: block; max-height: none; padding: 8px; overflow: visible; border-radius: 14px; background: #f7f9fc; box-shadow: none; }
  .tool-nav .mega-menu-column { padding: 0; }
  .tool-nav .mega-menu-column + .mega-menu-column { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e7ef; border-left: 0; }
  .tool-nav .mega-menu-column header { min-height: 36px; padding: 4px 8px 7px; }
  .tool-nav .mega-menu-column header span { font-size: 13px; }
  .tool-nav .mega-menu-link { grid-template-columns: 34px minmax(0,1fr) auto; min-height: 53px; padding: 7px 8px; }
  .tool-nav .mega-menu-link > i { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
  .tool-nav .mega-menu-link strong { font-size: 14px; }
  .tool-nav .mega-menu-link small { font-size: 10px; }
  .site-compact-panel { padding: 7px; border-radius: 13px; background: #f7f9fc; box-shadow: none; }
  .site-compact-panel a { min-height: 52px; }
  .tool-breadcrumb .page-container { min-height: 36px; }
}
