/* Homepage presentation only. Shared footer, floating tools and listing cards keep their styles. */
.home-page .home-navigation { position: relative; display: flex; align-items: center; gap: 18px; max-width: 1360px; margin: auto; padding: 0 24px 10px; }
.home-page .home-navigation .mall-nav { flex: 1; min-width: 0; padding: 0; margin: 0; }
.home-page .home-category-toggle { flex: 0 0 196px; padding: 12px 16px; border: 0; border-radius: 6px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.home-page .home-category-toggle span { margin-left: 12px; }
.home-page .home-navigation .mall-nav > a.is-active { color: var(--green); background: transparent; border-radius: 0; box-shadow: inset 0 -3px var(--green); }
.home-page .home-category-menu { position: fixed; left: 24px; right: 24px; top: 100%; z-index: 80; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 18px 35px #16211f29; overflow: hidden; }
.home-page .home-category-menu[hidden] { display: none; }
.home-page .home-category-heading { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.home-page .home-category-heading button { background: transparent; color: var(--muted); border: 0; padding: 8px; cursor: pointer; }
.home-page #home-category-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.home-page .home-category-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-page .home-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-decoration: none; overflow-wrap: anywhere; }
.home-page .home-category-list a:hover { color: var(--green); border-color: var(--green); background: #fff5f6; }
.home-page .home-category-count { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.home-page .home-category-status { grid-column: 1 / -1; padding: 24px; margin: 0; color: var(--muted); }
.home-page .home-category-status button { margin-left: 12px; padding: 8px 12px; border: 1px solid var(--green); color: var(--green); background: #fff; border-radius: 4px; cursor: pointer; }
.home-page .home-category-menu :focus-visible, .home-page .home-navigation :focus-visible, .home-page .home-category-cards a:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.home-page .home-procurement-hero { position: relative; isolation: isolate; min-height: 440px; overflow: hidden; border-radius: 10px; background: #f5f6f5; }
.home-page .home-hero-image { position: absolute; inset: 0 0 0 auto; width: 80%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.home-page .home-procurement-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f7f8f7 0%, #f7f8f7f5 30%, #f7f8f766 49%, transparent 65%); z-index: -1; }
.home-page .home-hero-copy { padding: 55px 42px 40px; }
.home-page .home-eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.home-page .home-hero-copy h1 { font-size: clamp(28px, 3.4vw, 47px); line-height: 1.32; margin: 0; font-weight: 800; letter-spacing: -.035em; }
.home-page .home-hero-copy h1 em { font-style: normal; color: var(--green); }
.home-page .home-hero-categories { font-size: 17px; margin: 20px 0 25px; }
.home-page .home-hero-actions { display: flex; gap: 14px; align-items: stretch; }
.home-page .home-hero-actions a, .home-page .home-hero-actions button { display: grid; align-content: center; gap: 4px; min-width: 168px; padding: 12px 22px; border-radius: 6px; border: 1px solid var(--green); background: #fff; color: var(--green); text-decoration: none; text-align: center; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.home-page .home-hero-actions .home-upload { background: var(--green); color: #fff; }
.home-page #quick-quote-button { background: #fff; color: var(--green); }
.home-page .home-upload small { font-size: 12px; font-weight: 400; }
.home-page .home-hero-hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.home-page .home-hero-hint button { border: 0; background: transparent; color: var(--green); font: inherit; padding: 8px; cursor: pointer; }
.home-page .home-member { position: absolute; right: 20px; top: 18px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 6px; background: #ffffffed; font-size: 12px; }
.home-page .home-member button { border: 0; background: transparent; padding: 5px 0; color: var(--green); cursor: pointer; }
.home-page #member-card.home-member { display: flex; }
.home-page #member-card.home-member button { background: transparent; color: var(--green); padding: 5px 0; }
.home-page .home-category-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.home-page .home-category-cards > a { position: relative; overflow: hidden; display: block; padding: 20px 20px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.home-page .home-category-cards > a:hover { border-color: var(--green); }
.home-page .home-category-cards h2 { font-size: 23px; margin: 0 0 8px; }
.home-page .home-category-cards p { font-size: 14px; line-height: 1.7; margin: 0 0 12px; color: var(--muted); }
.home-page .home-category-cards span { font-size: 13px; color: var(--green); font-weight: 700; }
.home-page .home-category-photo { margin: 14px -20px 0; aspect-ratio: 1.78; background-image: url('/mall/assets/nanjing-procurement/procurement-categories.webp'); background-size: 200% 200%; background-repeat: no-repeat; }
.home-page .home-category-office { background-position: left top; }
.home-page .home-category-ppe { background-position: left bottom; }
.home-page .home-category-electric { background-position: right bottom; }
.home-page .home-category-tools { background-position: right top; }
.home-page:not(.listing-mode) .catalog-head { margin-top: 24px; }
.home-page:not(.listing-mode) .catalog-head h2 { font-size: 23px; }
.home-page .home-service-summary { margin: 24px 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-page .home-service-summary h2 { margin: 0 0 8px; font-size: 22px; }
.home-page .home-service-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.home-page .home-service-summary nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.home-page .home-service-summary a { color: var(--green); text-decoration: none; font-size: 14px; }
.home-page.listing-mode .home-only { display: none; }
.home-page #brand-strip { display: block; padding: 20px 64px 20px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.home-page.listing-mode #brand-strip { display: none; }
.home-page .home-brand-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-page .home-brand-heading .brand-strip-title { font-size: 20px; }
.home-page .home-brand-carousel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-page #brand-strip-viewport { flex: 1; min-width: 0; scrollbar-width: thin; padding: 3px 2px 10px; }
.home-page #brand-strip-viewport::-webkit-scrollbar { display: block; height: 5px; }
.home-page #brand-strip-viewport::-webkit-scrollbar-thumb { background: #d7dfdc; border-radius: 5px; }
.home-page #brand-strip-track { display: flex; gap: 12px; animation: none; transform: none; will-change: auto; }
.home-page #brand-strip :is(.brand-directory-card, .home-brand-copy) { width: 158px; flex: 0 0 158px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.home-page #brand-strip :is(.brand-directory-card, .home-brand-copy):hover { border-color: var(--green); background: #fff7f8; }
.home-page #brand-strip .home-brand-copy[hidden] { display: none; }
.home-page #brand-strip .brand-directory-logo { display: flex; align-items: center; height: 48px; width: 100%; }
.home-page #brand-strip img { width: 100%; height: 48px; object-fit: contain; }
.home-page #brand-strip .brand-directory-action { font-size: 12px; color: var(--green); }
.home-page #brand-strip button { cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; padding: 6px 10px; font: inherit; }
.home-page #brand-strip button[hidden] { display: none; }
.home-page #brand-strip :focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
@media (max-width: 1080px) {
  .home-page .home-category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page .home-navigation { gap: 8px; }
  .home-page .home-navigation .mall-nav > a { padding-inline: 10px; }
  .home-page .home-hero-copy { padding: 56px 28px 32px; }
  .home-page .home-hero-categories { font-size: 14px; }
  .home-page .home-category-cards { gap: 10px; }
  .home-page .home-category-cards > a { padding: 16px 14px 0; }
  .home-page .home-category-photo { margin-inline: -14px; }
  .home-page .home-category-cards h2 { font-size: 20px; }
}
@media (max-width: 760px) {
  .home-page #brand-strip { padding: 14px 10px; }
  .home-page #brand-strip :is(.brand-directory-card, .home-brand-copy) { width: 136px; flex-basis: 136px; }
  .home-page .home-brand-carousel { gap: 4px; }
  .home-page .home-navigation { display: block; padding: 0 14px 10px; }
  .home-page .home-category-toggle { width: 100%; text-align: left; }
  .home-page .home-category-toggle span { float: right; }
  .home-page .home-navigation .mall-nav { margin-top: 8px; }
  .home-page .home-category-menu { left: 14px; right: 14px; }
  .home-page #home-category-content { padding: 12px; font-size: 13px; }
  .home-page .home-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-page .home-category-list a { min-height: 52px; padding: 10px; }
  .home-page .home-procurement-hero { min-height: 530px; }
  .home-page .home-hero-copy { padding: 24px 20px 230px; }
  .home-page .home-hero-copy h1 { font-size: clamp(25px, 6.6vw, 36px); }
  .home-page .home-hero-image { width: 100%; height: 280px; top: auto; object-fit: cover; object-position: right 70%; }
  .home-page .home-procurement-hero::before { background: linear-gradient(180deg, #f7f8f7 0%, #f7f8f7 49%, #f7f8f700 68%); }
  .home-page .home-hero-categories { font-size: 12px; margin: 14px 0 20px; }
  .home-page .home-hero-actions { gap: 10px; }
  .home-page .home-hero-actions a, .home-page .home-hero-actions button { min-width: 0; flex: 1; padding: 12px 10px; font-size: 16px; }
  .home-page .home-hero-hint { font-size: 12px; }
  .home-page .home-member { top: auto; bottom: 12px; right: 12px; left: 12px; justify-content: space-between; }
  .home-page .home-category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .home-page .home-category-cards h2 { font-size: 19px; }
  .home-page .home-category-cards p { font-size: 12px; }
  .home-page:not(.listing-mode) #product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-page:not(.listing-mode) #product-grid .product-info { padding: 10px; gap: 6px; }
  .home-page:not(.listing-mode) #product-grid .product-title { font-size: 13px; }
  .home-page:not(.listing-mode) #product-grid .price-row { flex-wrap: wrap; gap: 2px 8px; }
  .home-page:not(.listing-mode) #product-grid .price { font-size: 18px; }
  .home-page:not(.listing-mode) #product-grid .card-actions { grid-template-columns: 1fr; gap: 5px; }
  .home-page:not(.listing-mode) #product-grid .card-actions > * { font-size: 12px; min-height: 34px; }
  .home-page .home-service-summary { display: block; padding: 20px; }
  .home-page .home-service-summary nav { margin-top: 18px; }
}
