:root {
  --jn-primary: #dc332d;
  --jn-primary-strong: #c92b26;
  --jn-accent: #ffbe19;
  --jn-surface: #ffffff;
  --jn-canvas: #efedf2;
  --jn-text: #666666;
  --jn-muted: #999999;
  --jn-border: #e6e6e6;
  --jn-footer-height: 49px;
  --jn-z-footer: 100;
  --jn-z-modal: 1000;
}

html {
  min-height: 100%;
  background: #f3f3f3;
  font-size: 16px;
}

body {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 0 calc(var(--jn-footer-height) + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
  background: var(--jn-canvas);
  color: var(--jn-text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

a, button, input, select, textarea { touch-action: manipulation; }
a, button, [role="button"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}

.top-wx { display: none !important; }
.h5-1yyg-v1, #__nuxt, #__layout, .container, .db-main { max-width: none; }
.h5-1yyg-v1 { min-height: calc(100dvh - var(--jn-footer-height)); }
.smailnav, #top_div, #btnGotoTop3 { display: none !important; }

.skip-link {
  position: fixed;
  left: 8px;
  top: -60px;
  z-index: var(--jn-z-modal);
  padding: 10px 14px;
  border-radius: 4px;
  color: #fff;
  background: #111;
}
.skip-link:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Homepage */
.jn-home { background: #fff; }
.jn-hero { position: relative; overflow: hidden; background: #fff; }
.jn-hero img { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; aspect-ratio: 640 / 300; object-fit: cover; }
.jn-hero-dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.jn-hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); }
.jn-hero-dots i:first-child { background: var(--jn-primary); }
.jn-quick-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--jn-border); }
.jn-quick-nav a { min-width: 0; min-height: 94px; padding: 11px 4px 8px; text-align: center; color: #777; font-size: 13px; }
.jn-quick-nav img { display: block; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; object-fit: cover; }
.jn-ticker { display: flex; align-items: center; height: 30px; overflow: hidden; border-bottom: 1px solid var(--jn-border); background: #fff; color: #d55a62; font-size: 12px; white-space: nowrap; }
.jn-ticker img { flex: 0 0 18px; width: 18px; height: 18px; margin: 0 9px; object-fit: contain; }
.jn-ticker span { overflow: hidden; text-overflow: ellipsis; }

.jn-home .zxjx, .jn-home #published, .jn-home .m-tt1, .jn-home #notice_log { display: none !important; }
.jn-home .tabs-wrap { min-height: 520px !important; }
.jn-home .nav-wrapper { position: sticky; top: 0; z-index: 20; height: 40px; background: #fff; }
.jn-home .nav-inner { height: 40px; margin-right: 78px; }
.jn-home .nav-list { display: flex; height: 40px; padding: 0; }
.jn-home .nav-list li { float: none; width: 25%; height: 40px; text-align: center; line-height: 40px; }
.jn-home .nav-list li a { display: block; height: 40px; color: #999; }
.jn-home .nav-list li.current a { border-bottom: 2px solid var(--jn-primary); color: var(--jn-primary); }
.jn-home .select-btn { position: absolute; top: 0; right: 0; width: 78px; height: 40px; border-left: 1px solid #eee; line-height: 40px; }
.jn-home #btnsearch { display: none !important; }
.jn-home .goodsList .star { display: none !important; }
.jn-home .goodsList > ul > li > a > .z-Limg { display: grid !important; place-items: center; width: 100% !important; height: 112px !important; }
.jn-home .goodsList > ul > li > a > .z-Limg img { display: block !important; width: 96px !important; height: 96px !important; margin: 8px auto !important; object-fit: contain; }
.jn-home .goodsList > ul { box-sizing: border-box; height: 260px !important; padding-left: 12px; padding-right: 13px; }
.jn-home .goodsListR h2 { color: #555; font-size: 13px !important; line-height: 22px; }
.jn-home .goodsListR .price { color: #999; font-size: 12px !important; }
.jn-home .item_bottom_container { box-sizing: border-box; margin-top: 8px; padding: 0; overflow: visible; }
.jn-home .jdt_container { float: none; width: 100%; height: 6.5px; }
.jn-home .jdt_container > div, .jn-home .Pro-bar-li { display: none !important; }
.jn-home .btn-wrap { position: relative; width: 155px; height: 49px; margin-top: 0; }
.jn-home .btn-wrap .buy-btn { position: absolute; top: 11px; left: 0; box-sizing: border-box; display: block; width: 93px; height: 28px; margin: 0; border: 1px solid var(--jn-primary) !important; border-radius: 15px; color: var(--jn-primary) !important; background: #fff !important; font-size: 13px; line-height: 26px; text-align: center; }
.jn-home .btn-wrap .add { position: absolute; top: 10px; left: 110px; display: block; width: 30px; height: 30px; margin: 0; border: 0 !important; border-radius: 50%; background-color: var(--jn-primary) !important; }
.jn-home .btn-wrap .add s { display: inline-block; width: 22px; height: 22px; margin: 4px 0 0 1px; background: url(../../images/mobile/setIcon.png?v=1.3) -58px -29px / 80px auto no-repeat; }
.subMenu { display: none !important; }

/* Shared card/list treatment */
.goodsList, #divGoodsLoading, .g-Cart, .g-member, .g-pay-lst, .g-pay-ment, .weui-panel, .registerCon { background: var(--jn-surface); }
.u-progress, .Progress-bar .u-progress { height: 5px; border-radius: 3px; background: #e7e7e7; overflow: hidden; }
.u-progress .pging, .u-progress .pgbar { background: var(--jn-primary); }
.orgBtn, .orangebut, .redBtn, .useroutm a, .out, #btnPay, #btnSubmit, #btnNext, #login {
  border-color: var(--jn-primary) !important;
  border-radius: 4px !important;
  background: var(--jn-primary) !important;
  color: #fff !important;
}
.orgBtn:hover, .orangebut:hover, .redBtn:hover, #btnPay:hover, #btnSubmit:hover, #btnNext:hover, #login:hover { background: var(--jn-primary-strong) !important; }
.orgBtn, .orangebut, #btnPay, #btnSubmit, #btnNext, #login { min-height: 44px; line-height: 44px; }

/* Login/register */
.jn-auth { min-height: calc(100dvh - var(--jn-footer-height)); padding: 0; background: #f4f4f4; }
.jn-auth .registerCon { width: 100%; min-height: 190px; padding-bottom: 30px; overflow: hidden; background: transparent; text-align: center; }
.jn-auth .registerCon ul { position: relative; padding: 40px; }
.jn-auth .registerCon li { position: relative; width: 100%; margin-bottom: 10px; color: #999; text-align: left; font-size: 14px; line-height: 22px; }
.jn-auth .registerCon li.accAndPwd { height: 113px; margin-bottom: 10px; }
.jn-auth .registerCon li.accAndPwd dl { position: relative; height: 55px; }
.jn-auth .registerCon li.accAndPwd input { box-sizing: border-box; display: inline-block; position: relative; width: 100%; height: 45px; margin: 10px 0 0; padding: 9px 5px 8px 30px; border: 0; background: #fff; color: #090909; font-size: 16px; }
.jn-auth .registerCon li.accAndPwd input.lEmail { border-radius: 5px 5px 0 0; }
.jn-auth .registerCon li.accAndPwd input.lPwd { border-radius: 0 0 5px 5px; }
.jn-auth .registerCon li s { position: absolute; z-index: 1; left: 10px; top: 22px; display: block; background: url(../../images/mobile/loginSet.png) no-repeat; background-size: 20px auto; }
.jn-auth .registerCon li s.rs4 { width: 20px; height: 19px; background-position: 0 -76px; }
.jn-auth .registerCon li s.rs3 { width: 15px; height: 20px; margin-left: 2px; background-position: 0 -50px; }
#main-content .registerCon #login { box-sizing: border-box; display: block; width: 100%; height: 43px; min-height: 43px; padding: 0; border: 1px solid var(--jn-primary) !important; border-radius: 8px; background: var(--jn-primary); color: #fff; font-size: 18px; line-height: 43px; text-align: center; }
.jn-auth .forget { height: 23px; margin: 20px 0; text-align: justify; }
.jn-auth .forget a { display: block; float: right; margin-left: 5px; color: #999; font-size: 14px; line-height: 23px; }
.jn-auth .register { clear: both; width: 100%; height: 30px; text-align: center; }
.jn-auth .register a { box-sizing: border-box; display: inline-block; width: 149.5px; height: 30px; margin-left: 5px; border: 1px solid #ffb320; border-radius: 6px; background: #ffb320; color: #fff; font-size: 15px; line-height: 28px; }
.jn-register-agreement { display: flex; align-items: center; gap: 7px; min-height: 44px; color: #999; font-size: 13px; }
.jn-register-agreement input { width: 18px; height: 18px; accent-color: var(--jn-primary); }
.jn-register-agreement a { color: #2f9ed4; }
.jn-auth-code { display: grid; grid-template-columns: 1fr 112px; overflow: hidden; border-radius: 6px; background: #fff; }
.jn-auth-code input { padding-left: 14px; border-radius: 0; }
.jn-auth-code button { min-height: 45px; border: 0; background: #fff; color: var(--jn-primary); font-size: 13px; }

/* User center */
.jn-member { min-height: calc(100dvh - var(--jn-footer-height)); background: var(--jn-canvas); }
.jn-member-head { display: flex; align-items: center; position: relative; min-height: 80px; padding: 12px 50px 12px 16px; background: #fff; }
.jn-member-avatar { flex: 0 0 52px; width: 52px; height: 52px; margin-right: 14px; border-radius: 50%; object-fit: cover; }
.jn-member-name { color: #666; font-size: 20px; line-height: 26px; }
.jn-member-account { color: #999; font-size: 12px; line-height: 22px; }
.jn-member-settings { position: absolute; right: 12px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; }
.jn-member-settings::before { content: ""; width: 24px; height: 24px; background: url(../../images/user_list_ico.jpg) center / 24px 24px no-repeat; }
.jn-wallet { position: relative; box-sizing: content-box; min-height: 41px; height: 41px; padding: 10px; background: #fff; border-top: 0; }
.jn-wallet-info { width: 75%; height: 40px; }
.jn-wallet-info a { display: block; box-sizing: content-box; float: left; width: 48%; height: 40px; color: #999; text-align: center; font-size: 12px; }
.jn-wallet-info a + a { border-left: 1px solid #efefef; }
.jn-wallet strong { display: block; margin: 0; padding-top: 3px; color: var(--jn-primary); font-size: 14px; font-weight: 400; line-height: 20px; }
.jn-wallet-info span { display: block; line-height: 17px; }
.jn-wallet .jn-recharge { position: absolute; top: 16px; right: 20px; display: inline-block; box-sizing: content-box; width: 68px; height: 30px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 3px; background: #e94738; color: #fff; font-size: 12px; line-height: 30px; }
.jn-member-menu { margin-top: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.jn-member-menu a { display: block; box-sizing: content-box; height: 20px; padding: .8rem; border-top: 1px solid #efefef; border-left: 1px solid #efefef; color: #666; font-size: 15px; }
.jn-menu-icon { width: 18px; height: 18px; display: inline-block; margin-right: 5px; vertical-align: -3px; background: url(../../images/user-icon.png) 0 0 / 100% no-repeat; }
.jn-menu-icon-2 { background-position: 0 -18px; }
.jn-menu-icon-3 { background-position: 0 -73px; }
.jn-menu-icon-4 { background-position: 0 -54px; }
.jn-menu-icon-5 { background-position: 0 -35px; }
.jn-member-menu .z-arrow { float: right; width: 8px; height: 8px; margin-top: 5px; margin-right: 5px; border: solid #bbb; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.jn-user-footer { margin: 20px 0 5px; text-align: center; color: #666; }
.jn-logout { display: block; width: 85%; height: 38px; margin: 10px auto 0; border-radius: 5px; background: var(--jn-primary); color: #fff; text-align: center; font-size: 18px; line-height: 38px; }

/* Service and notices */
.jn-page { min-height: 100dvh; background: var(--jn-canvas); }
.jn-service-page { min-height: calc(100dvh - var(--jn-footer-height)); padding: 48px 14px 90px; }
.jn-member-card { padding: 28px 22px; border-radius: 6px; background: #fff; text-align: center; }
.jn-member-card h1 { margin: 0 0 12px; color: #555; font-size: 21px; font-weight: 500; }
.jn-member-card p { margin: 0 0 22px; color: #999; font-size: 14px; line-height: 1.7; }
.jn-primary-button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 5px; background: var(--jn-primary); color: #fff; font-size: 15px; }
.jn-notice-list { margin-top: 10px; background: #fff; }
.jn-notice-list a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-bottom: 1px solid var(--jn-border); color: #666; }
.jn-notice-list small { margin-left: auto; color: #aaa; }

/* Footer */
.footerdi {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: var(--jn-z-footer) !important;
  width: 100% !important;
  height: calc(var(--jn-footer-height) + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%);
  border-top: 1px solid #ddd;
  background: rgba(250,250,250,.97) !important;
}
.footerdi ul { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--jn-footer-height); }
.footerdi li { width: auto !important; height: var(--jn-footer-height) !important; padding-top: 3px !important; }
.footerdi li a { min-height: 44px; color: #888 !important; font-size: 12px; line-height: 16px; }
.footerdi li a i { background-image: url(../../images/footer_icon.png) !important; background-size: 265% !important; }
.footerdi li a.cur { color: #888 !important; }
.footerdi li.f_home a.cur i { background-position: -40px 0 !important; }
.footerdi li.f_whole a.cur i { background-position: -42px -33px !important; }
.footerdi li.f_jiexiao a.cur i { background-position: -41px -67px !important; }
.footerdi li.f_car a.cur i { background-position: -42px -101px !important; }
.footerdi li.f_personal a.cur i { background-position: -39px -121px !important; }

/* Unified customer-service modal */
.jn-service-modal[hidden] { display: none !important; }
.jn-service-modal { position: fixed; inset: 0; z-index: var(--jn-z-modal); display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.48); }
.jn-service-dialog { width: min(320px, 100%); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 16px 44px rgba(0,0,0,.25); text-align: center; }
.jn-service-dialog h2 { margin: 0; padding: 20px 18px 8px; color: #555; font-size: 18px; font-weight: 600; }
.jn-service-dialog p { margin: 0; padding: 6px 18px 20px; color: #333; font-size: 20px; }
.jn-service-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--jn-border); }
.jn-service-actions button { min-height: 48px; border: 0; background: #fff; color: #777; font-size: 15px; }
.jn-service-actions button + button { border-left: 1px solid var(--jn-border); background: var(--jn-primary); color: #fff; }

/* Forms, empty and message states */
input, select, textarea { font-family: inherit; }
input[type="text"], input[type="tel"], input[type="password"], input[type="number"], select, textarea { min-height: 44px; }
.haveNot, .jn-empty { padding: 80px 20px; color: #999; text-align: center; }
.g-pay-auto { width: min(360px, calc(100% - 32px)) !important; }
.pageDialog, .u-tipsEject { border-radius: 8px !important; }
.pageDialogBG { background: rgba(0,0,0,.48) !important; }
#btnBuyBox a, #btnBuyBox .buyBtn, #btnBuyBox .addBtn { border-color: var(--jn-primary) !important; background: var(--jn-primary) !important; color: #fff !important; }
.g-Record-lst, .g-Record-lst .z-minheight { background: #fff !important; }
.g-Record-lst .haveNot { display: none !important; }

/* Remove legacy QR/hotline layers and redundant controls. */
#scwz, .scwz:not(.jn-service-modal), .foot-service, #btnGotoTop3, #top_div1, .mobileCodeLogin, .loginType, .registerCon > .code, .login_tips { display: none !important; }

@media (max-width: 420px) {
  .jn-auth { padding-top: 0; }
  .jn-member-head { min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
