/* ==========================================================================
   Fuzhou Pinjiang Trading — Foreign-trade homepage
   Design → code  |  Breakpoints: 1440 base · 1200 · 1024 · 768 · 560
   Content width at 1440 canvas = 1200 (1440 - 120*2)
   Fonts are self-hosted (variable latin subset) — no external requests.
   ========================================================================== */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('/static/index/default/fonts/archivo.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url('/static/index/default/fonts/dm-sans.woff2') format('woff2');
}

:root {
  /* Brand */
  --pj-navy:        #0B2545;
  --pj-navy-deep:   #071A2F;
  --pj-navy-card:   #14304F;
  --pj-amber:       #F5A623;
  --pj-amber-dark:  #C97F00;

  /* Neutrals */
  --pj-white:       #FFFFFF;
  --pj-bg-soft:     #F4F6FA;
  --pj-panel:       #F7F9FC;
  --pj-line:        #E6EBF2;

  /* Text */
  --pj-ink:         #0B2545;
  --pj-ink-2:       #5B6B7F;
  --pj-ink-3:       #7C8AA0;
  --pj-on-dark:     #B9C9DE;
  --pj-on-dark-2:   #A9BCD6;
  --pj-on-dark-3:   #94A9C4;

  /* Shape */
  --pj-radius-card: 16px;
  --pj-radius-sm:   12px;
  --pj-radius-btn:  9px;
  --pj-shadow:      0 6px 24px rgba(11, 37, 69, .06);

  /* Type */
  --pj-font-display: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --pj-font-body:    "DM Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
/* ShopXO's own theme sets a font-family on every descendant (e.g.
   ".body-content-formal-container *"), which beats inheritance. Force our
   stack back down the tree; headings re-declare the display face below. */
.pj-home, .pj-home * { font-family: inherit; }
.pj-home { font-family: var(--pj-font-body); }
.pj-home *, .pj-home *::before, .pj-home *::after { box-sizing: border-box; }
.pj-home { margin: 0; background: var(--pj-white); color: var(--pj-ink);
           font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.pj-home h1, .pj-home h2, .pj-home h3, .pj-home p, .pj-home ul { margin: 0; }
.pj-home ul { padding: 0; list-style: none; }
.pj-home a { text-decoration: none; color: inherit; }
.pj-home img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.pj-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 120px; }
.pj-section { padding: 84px 0; }
.pj-eyebrow { font-family: var(--pj-font-body); font-size: 13px; font-weight: 700;
              letter-spacing: .04em; color: var(--pj-amber-dark); }
.pj-h2 { font-family: var(--pj-font-display); font-weight: 700; font-size: 38px;
         line-height: 1.21; color: var(--pj-ink); }
.pj-sub { font-size: 16px; line-height: 1.63; color: var(--pj-ink-2); }

/* section head: title block left, link right */
.pj-head { display: flex; align-items: flex-end; justify-content: space-between;
           gap: 40px; margin-bottom: 44px; }
.pj-head__left { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; }
.pj-head__link { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
                 font-size: 15px; font-weight: 700; color: var(--pj-ink); white-space: nowrap; }
.pj-head__link svg { width: 18px; height: 18px; }
.pj-home .pj-head__link { color: var(--pj-ink); }
.pj-home .pj-head__link:hover { color: var(--pj-amber-dark); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.pj-topbar { background: var(--pj-navy); color: #9FB3CE; font-size: 13px; }
.pj-topbar .pj-wrap { display: flex; align-items: center; justify-content: space-between;
                      min-height: 44px; gap: 20px; }
.pj-topbar__left, .pj-topbar__right { display: flex; align-items: center; gap: 22px; }
.pj-topbar__note { color: var(--pj-amber); font-weight: 700; }

/* language picker */
.pj-lang { display: inline-flex; align-items: center; gap: 7px; position: relative;
           color: #9FB3CE; cursor: pointer; }
.pj-lang:hover { color: var(--pj-white); }
.pj-lang__icon { width: 15px; height: 15px; flex: 0 0 auto; }
.pj-lang__select { appearance: none; -webkit-appearance: none; -moz-appearance: none;
                   border: 0; background: none; font-family: var(--pj-font-body);
                   font-size: 13px; font-weight: 600; line-height: 1.2; color: inherit;
                   padding: 4px 17px 4px 2px; cursor: pointer; }
.pj-lang__select:focus { outline: none; }
.pj-lang__select option { color: var(--pj-ink); background: var(--pj-white); }
.pj-lang__caret { width: 9px; height: 6px; position: absolute; right: 1px;
                  pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.pj-header { background: var(--pj-white); border-bottom: 1px solid var(--pj-line); }
.pj-header .pj-wrap { display: flex; align-items: center; justify-content: space-between;
                      min-height: 86px; gap: 32px; }
.pj-logo { display: flex; align-items: center; gap: 12px; }
.pj-logo__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.pj-logo__name { font-family: var(--pj-font-display); font-weight: 800; font-size: 23px;
                 line-height: 1; color: var(--pj-navy); }
.pj-logo__sub { font-size: 9px; font-weight: 700; color: #8695A8; letter-spacing: .06em; }

.pj-nav { display: flex; align-items: center; gap: 34px; }
.pj-nav a { font-size: 15px; font-weight: 500; color: #46566B; }
.pj-nav a.is-active, .pj-nav a:hover { color: var(--pj-navy); font-weight: 700; }

.pj-header__right { display: flex; align-items: center; gap: 18px; }
.pj-icon-btn { width: 20px; height: 20px; background: none; border: 0; padding: 0; cursor: pointer;
               display: block; color: #22344A; }
.pj-icon-btn svg { width: 20px; height: 20px; display: block; }
/* .pj-home is a strong link-colour reset, so link-like controls bump
   specificity by one class to keep their own colour. */
.pj-home .pj-account { font-size: 14px; font-weight: 500; color: #46566B; white-space: nowrap; }
.pj-home .pj-account:hover { color: var(--pj-navy); font-weight: 700; }
.pj-btn { display: inline-flex; align-items: center; justify-content: center;
          height: 46px; padding: 0 24px; border: 0; border-radius: var(--pj-radius-btn);
          font-family: var(--pj-font-body); font-size: 15px; font-weight: 700;
          color: #14213A; background: var(--pj-amber); cursor: pointer;
          white-space: nowrap; }
.pj-btn:hover { background: #E89A15; }
.pj-home .pj-btn { color: #14213A; }
.pj-btn--primary { height: 56px; padding: 0 30px; font-size: 16px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.pj-hero { background: linear-gradient(90deg, #0A2140 0%, #173B6B 100%); }
.pj-hero__inner { display: flex; align-items: center; gap: 64px; padding: 78px 0; }
.pj-hero__left { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pj-hero h1 { font-family: var(--pj-font-display); font-weight: 800; font-size: 54px;
              line-height: 1.15; color: var(--pj-white); }
.pj-hero__sub { font-size: 17px; line-height: 1.65; color: var(--pj-on-dark); }
.pj-hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pj-hero__trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
                  font-size: 13px; color: #8FA7C7; }
.pj-hero__trust b { color: var(--pj-amber); }
.pj-hero__visual { flex: 0 0 auto; width: 496px; height: 396px; border-radius: 18px;
                   overflow: hidden; background: #12283F; }
.pj-hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Category & product grids
   ========================================================================== */
.pj-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pj-grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.pj-card { display: flex; flex-direction: column; background: var(--pj-white);
           border: 1px solid var(--pj-line); border-radius: var(--pj-radius-card);
           overflow: hidden; }
.pj-card__media { width: 100%; height: 188px; background: var(--pj-bg-soft); flex: 0 0 auto; }
.pj-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pj-card__body { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px 22px; }
.pj-card__title { font-family: var(--pj-font-display); font-weight: 700; font-size: 19px;
                  color: var(--pj-ink); }
.pj-card__desc { font-size: 14px; line-height: 1.57; color: #6B7C93; }
.pj-card__sku { font-size: 13px; font-weight: 700; color: var(--pj-amber-dark); }

/* product card */
.pj-product .pj-card__media { height: 224px; background: #F2F5F9; }
.pj-product .pj-card__body { gap: 8px; padding: 18px 20px 20px; }
.pj-product .pj-card__title { font-weight: 600; font-size: 16px; line-height: 1.44; }
.pj-product__price { font-size: 15px; font-weight: 700; color: var(--pj-ink); }
.pj-product__meta { font-size: 13px; color: var(--pj-ink-3); }

/* ==========================================================================
   Why us (dark band)
   ========================================================================== */
.pj-why { background: var(--pj-navy); }
.pj-why__head { display: flex; flex-direction: column; align-items: center; gap: 14px;
                text-align: center; margin-bottom: 48px; }
.pj-why__head .pj-h2 { color: var(--pj-white); max-width: 860px; }
.pj-why__head .pj-sub { color: var(--pj-on-dark-2); max-width: 780px; }
/* Same head layout on a light background — must flip the text colours,
   otherwise a white heading disappears on white. */
.pj-why__head--light { align-items: flex-start; text-align: left; margin-bottom: 32px; }
.pj-why__head--light .pj-h2 { color: var(--pj-ink); max-width: none; }
.pj-why__head--light .pj-sub { color: var(--pj-ink-2); max-width: 720px; }
.pj-cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pj-cap { display: flex; flex-direction: column; gap: 14px; background: var(--pj-navy-card);
          border-radius: 14px; padding: 26px 24px 28px; }
.pj-cap svg { width: 44px; height: 44px; }
.pj-cap__title { font-family: var(--pj-font-display); font-weight: 600; font-size: 17px;
                 color: var(--pj-white); }
.pj-cap__desc { font-size: 14px; line-height: 1.57; color: var(--pj-on-dark-2); }

/* ==========================================================================
   Key numbers
   ========================================================================== */
.pj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
            margin: 44px 0; padding: 30px 40px; background: var(--pj-navy); border-radius: 16px; }
.pj-stat__num { font-family: var(--pj-font-display); font-weight: 800; font-size: 34px;
                line-height: 1.1; color: var(--pj-white); }
.pj-stat--accent .pj-stat__num { color: var(--pj-amber); }
.pj-stat__label { font-size: 13px; color: var(--pj-on-dark-3); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.pj-faq { background: var(--pj-bg-soft); }
.pj-faq__row { display: flex; gap: 60px; align-items: flex-start; }
.pj-faq__head { flex: 0 0 400px; display: flex; flex-direction: column; gap: 14px; }
.pj-faq__head .pj-h2 { font-size: 32px; line-height: 1.25; }
.pj-faq__head .pj-sub { font-size: 15px; line-height: 1.67; }
.pj-faq__head a { font-size: 15px; font-weight: 700; color: var(--pj-amber-dark); }
.pj-faq__list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pj-faq__item { background: var(--pj-white); border: 1px solid var(--pj-line);
                border-radius: var(--pj-radius-sm); overflow: hidden; }
.pj-faq__item summary { display: flex; align-items: center; justify-content: space-between;
                        gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.pj-faq__item summary::-webkit-details-marker { display: none; }
.pj-faq__q { font-family: var(--pj-font-display); font-weight: 600; font-size: 16px;
             color: var(--pj-ink); }
.pj-faq__chev { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s ease; }
.pj-faq__item[open] .pj-faq__chev { transform: rotate(180deg); }
.pj-faq__a { padding: 0 20px 20px; font-size: 15px; line-height: 1.67; color: var(--pj-ink-2); }

/* ==========================================================================
   Contact / live chat
   ========================================================================== */
.pj-contact { background: linear-gradient(90deg, #0A2140 0%, #173B6B 100%); }
.pj-contact__inner { display: flex; flex-direction: column; align-items: center;
                     text-align: center; gap: 20px; padding: 84px 0; }
.pj-contact .pj-h2 { color: var(--pj-white); font-size: 40px; line-height: 1.23; }
.pj-contact .pj-sub { color: var(--pj-on-dark); max-width: 640px; }

/* online-chat button — clicks through to the site's own floating CS widget */
.pj-chat { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
           height: 56px; padding: 0 32px; border: 0; border-radius: var(--pj-radius-btn);
           background: var(--pj-amber); color: #14213A;
           font-family: var(--pj-font-body); font-size: 16px; font-weight: 700;
           cursor: pointer; }
.pj-home .pj-chat { color: #14213A; }
.pj-chat:hover { background: #E89A15; }
.pj-chat svg { width: 19px; height: 19px; flex: 0 0 auto; }

/* 悬浮客服入口统一由平台自带的 #WS-SHOW-CHAT 承担（见文件下方说明），
   首页不再自建 .pj-float-chat，避免与内页样式分裂。 */

/* ==========================================================================
   Footer
   ========================================================================== */
.pj-footer { background: var(--pj-navy-deep); color: var(--pj-on-dark-3); }
.pj-footer__inner { display: flex; flex-direction: column; gap: 38px; padding: 64px 0 28px; }
.pj-footer__top { display: flex; justify-content: space-between; gap: 60px; }
.pj-footer__brand { flex: 0 0 360px; display: flex; flex-direction: column; gap: 16px; }
.pj-footer__logo { display: flex; align-items: center; gap: 10px; }
.pj-footer__logo svg { width: 34px; height: 34px; }
.pj-footer__name { font-family: var(--pj-font-display); font-weight: 800; font-size: 20px;
                   color: var(--pj-white); }
.pj-footer__desc { font-size: 14px; line-height: 1.64; color: var(--pj-on-dark-3); }
.pj-footer__contact { font-size: 14px; font-weight: 500; color: var(--pj-amber); }
.pj-footer__cols { display: flex; gap: 72px; }
.pj-footer__col { display: flex; flex-direction: column; gap: 12px; }
.pj-footer__col h4 { margin: 0; font-family: var(--pj-font-display); font-weight: 600;
                     font-size: 14px; color: var(--pj-white); }
.pj-footer__col a { font-size: 14px; color: var(--pj-on-dark-3); }
.pj-footer__col a:hover { color: var(--pj-white); }
.pj-footer__bottom { display: flex; align-items: center; justify-content: space-between;
                     gap: 20px; font-size: 13px; color: #6E86A4; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  .pj-wrap { padding: 0 64px; }
}
@media (max-width: 1200px) {
  .pj-wrap { padding: 0 40px; }
  .pj-hero h1 { font-size: 46px; }
  .pj-hero__visual { width: 400px; height: 320px; }
  .pj-hero__inner { gap: 44px; }
  .pj-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-contact .pj-h2 { font-size: 36px; }
  .pj-footer__cols { gap: 48px; }
  .pj-faq__head { flex: 0 0 320px; }
}
@media (max-width: 1024px) {
  .pj-section { padding: 64px 0; }
  .pj-contact__inner { padding: 64px 0; }
  .pj-hero__inner { flex-direction: column; align-items: flex-start; padding: 64px 0; }
  .pj-hero__visual { width: 100%; height: 300px; }
  .pj-h2 { font-size: 32px; }
  .pj-grid-3, .pj-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 28px; }
  .pj-faq__row { flex-direction: column; gap: 32px; }
  .pj-faq__head { flex: 1 1 auto; }
  .pj-footer__top { flex-direction: column; gap: 40px; }
  .pj-footer__brand { flex: 1 1 auto; }
  .pj-nav { display: none; }
}
@media (max-width: 768px) {
  .pj-wrap { padding: 0 24px; }
  .pj-topbar .pj-wrap { flex-direction: column; align-items: flex-start; padding-top: 8px;
                        padding-bottom: 8px; gap: 4px; }
  .pj-topbar__left, .pj-topbar__right { gap: 14px; flex-wrap: wrap; }
  /* header: shrink hard so the action row never overflows the viewport */
  .pj-header .pj-wrap { gap: 12px; min-height: 70px; }
  .pj-logo { gap: 9px; }
  .pj-logo__mark { width: 34px; height: 34px; }
  .pj-logo__name { font-size: 20px; }
  .pj-header__right { gap: 12px; flex: 0 1 auto; }
  .pj-account { font-size: 13px; }
  .pj-header .pj-btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .pj-hero h1 { font-size: 34px; }
  .pj-hero__sub { font-size: 16px; }
  .pj-contact .pj-h2 { font-size: 28px; }
  .pj-cap-grid { grid-template-columns: 1fr; }
  .pj-footer__cols { flex-direction: column; gap: 28px; }
  .pj-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
  .pj-account--user { display: none; }
  .pj-logo__sub { display: none; }
  .pj-grid-3, .pj-grid-products { grid-template-columns: 1fr; }
  .pj-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pj-stats { grid-template-columns: 1fr; }
  .pj-hero__cta { flex-direction: column; align-items: stretch; }
  .pj-btn--primary { width: 100%; }
  .pj-chat { width: 100%; }
  .pj-card__media, .pj-product .pj-card__media { height: 200px; }
}

/* ==========================================================================
   Platform floating chat launcher (#WS-SHOW-CHAT)
   The homepage used to paint its own amber rail here.  It is gone: the
   homepage now shows the platform launcher itself, exactly like the goods /
   search / cart pages, so the button cannot drift out of sync again.
   Colours for it live in pinjiang-site.css (site-wide palette override);
   this stylesheet deliberately adds nothing so the two stay identical.
   ========================================================================== */

/* ==========================================================================
   ShopXO site footer (legal + customer-service QR strip)
   Rendered by {{:ModuleInclude('public/footer')}} right after our brand
   footer. Kept (ICP filing + WeChat/WhatsApp QR codes are required), but
   re-styled into a tidy light utility strip aligned to our grid.
   These rules live in a homepage-only stylesheet, so no other page is hit.
   ========================================================================== */
.body-content-footer-container { background: var(--pj-bg-soft);
                                 border-top: 1px solid var(--pj-line); }
.body-content-footer-container .am-footer { margin: 0; padding: 0; background: transparent; }
.body-content-footer-container .footer-nav-content { max-width: 1440px; margin: 0 auto;
  padding: 44px 120px 0; display: flex; justify-content: center; }
.body-content-footer-container .footer-about { width: 100%; max-width: 100%; float: none;
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.body-content-footer-container .footer-about > li { width: 100%; float: none; padding: 0;
  text-align: center !important; }
.body-content-footer-container .footer-about > li > i { color: var(--pj-ink-3); }
.body-content-footer-container .footer-about a,
.body-content-footer-container .footer-about span { font-size: 14px; color: var(--pj-ink-2); }
.body-content-footer-container .footer-about a:hover { color: var(--pj-navy); }
.body-content-footer-container .footer-about ul.am-avg-sm-3 { justify-content: center;
  gap: 40px; margin: 10px 0 0; }
.body-content-footer-container .footer-about ul.am-avg-sm-3 > li { width: auto; padding: 0; }
.body-content-footer-container .footer-about ul.am-avg-sm-3 img { width: 92px; height: 92px;
  padding: 6px; object-fit: contain; background: var(--pj-white);
  border: 1px solid var(--pj-line); border-radius: 8px; }
.body-content-footer-container .footer-about ul.am-avg-sm-3 p { margin: 6px 0 0;
  font-size: 12px; color: var(--pj-ink-3); }
.body-content-footer-container .am-footer-miscs { margin-top: 34px; padding: 18px 0 22px;
  background: transparent; border-top: 1px solid var(--pj-line); }
.body-content-footer-container .am-footer-miscs .am-container { max-width: 1440px;
  padding: 0 120px; text-align: center; }
.body-content-footer-container .am-footer-miscs p,
.body-content-footer-container .am-footer-miscs a,
.body-content-footer-container .am-footer-miscs span,
.body-content-footer-container .am-footer-miscs b { font-size: 13px;
  color: var(--pj-ink-3) !important; }
.body-content-footer-container .am-footer-miscs b { margin: 0 4px; color: var(--pj-line) !important; }
.body-content-footer-container .footer-filing-content { display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap; gap: 2px; }
.body-content-footer-container .footer-filing-content p { margin: 0; }

@media (max-width: 1200px) {
  .body-content-footer-container .footer-nav-content { padding: 40px 40px 0; }
  .body-content-footer-container .am-footer-miscs .am-container { padding: 0 40px; }
}
@media (max-width: 768px) {
  .body-content-footer-container .footer-nav-content { padding: 32px 24px 0; }
  .body-content-footer-container .am-footer-miscs .am-container { padding: 0 24px; }
  .body-content-footer-container .footer-about ul.am-avg-sm-3 { gap: 24px; }
}
