/* 日用品商城 · jd- 设计系统 · v3.2.5 */
:root {
  --jd-red: #1AAE8A;
  --jd-red-hover: #159574;
  --jd-orange: #FF7A1A;
  --jd-bg: #F4F6F5;
  --jd-white: #FFFFFF;
  --jd-text: #333333;
  --jd-muted: #999999;
  --jd-border: #E8ECEA;
  --jd-container: 1190px;
  --jd-dark: #2A3330;
  --jd-floor-1: #1AAE8A;
  --jd-floor-2: #FF7A1A;
  --jd-floor-3: #3B82F6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--jd-text);
  background: var(--jd-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--jd-red);
}

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button,
input {
  font-family: inherit;
}

.jd-container {
  width: var(--jd-container);
  max-width: 100%;
  margin: 0 auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========== Header ========== */
.jd-header {
  background: var(--jd-white);
}

.jd-header__welcome {
  background: #F0F4F2;
  border-bottom: 1px solid var(--jd-border);
  font-size: 12px;
  color: var(--jd-muted);
  height: 32px;
  line-height: 32px;
}

.jd-header__welcome-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jd-header__welcome-links a {
  margin-left: 14px;
  color: var(--jd-muted);
}

.jd-header__welcome-links a:hover {
  color: var(--jd-red);
}

.jd-header__main {
  padding: 18px 0;
}

.jd-header__main-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.jd-header__logo img {
  display: block;
  max-height: 52px;
  width: auto;
}

.jd-header__search {
  flex: 1;
}

.jd-header__search form {
  display: flex;
  border: 2px solid var(--jd-red);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.jd-header__search input[type="text"] {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 14px;
}

.jd-header__search input[type="submit"] {
  width: 90px;
  border: 0;
  background: var(--jd-red);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.jd-header__search input[type="submit"]:hover {
  background: var(--jd-red-hover);
}

.jd-header__hot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--jd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jd-header__hot a {
  margin-right: 10px;
  color: var(--jd-muted);
}

.jd-header__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--jd-border);
  border-radius: 4px;
  background: #fff;
  color: var(--jd-red);
  font-size: 13px;
}

.jd-header__cart:hover {
  border-color: var(--jd-red);
}

.jd-header__cart-num {
  background: var(--jd-orange);
  color: #fff;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 12px;
  padding: 0 5px;
}

.jd-header__nav {
  background: var(--jd-red);
}

.jd-header__nav-inner {
  display: flex;
  align-items: stretch;
  height: 44px;
}

.jd-header__cate {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.jd-header__cate-btn {
  height: 44px;
  background: var(--jd-red-hover);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.jd-header__cate-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  width: 200px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 80;
  padding: 6px 0;
}

.page-inner .jd-header__cate:hover .jd-header__cate-panel,
.page-wares .jd-header__cate:hover .jd-header__cate-panel,
.jd-header__cate.is-open .jd-header__cate-panel {
  display: block;
}

.page-home .jd-header__cate-panel {
  display: none !important;
}

.jd-header__cate-panel > li {
  position: relative;
}

.jd-header__cate-panel > li > a {
  display: block;
  padding: 9px 14px;
  color: var(--jd-text);
  font-size: 13px;
}

.jd-header__cate-panel > li:hover > a {
  background: #F0FAF6;
  color: var(--jd-red);
}

.jd-header__cate-sons {
  display: none;
  position: absolute;
  left: 200px;
  top: 0;
  width: 280px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.jd-header__cate-panel > li:hover .jd-header__cate-sons {
  display: flex;
}

.jd-header__cate-sons a {
  padding: 4px 10px;
  background: #F4F6F5;
  border-radius: 3px;
  font-size: 12px;
  color: var(--jd-text);
}

.jd-header__menu {
  display: flex;
  flex: 1;
  align-items: center;
}

.jd-header__menu > li {
  position: relative;
  height: 44px;
}

.jd-header__menu > li > a {
  display: block;
  padding: 0 18px;
  line-height: 44px;
  color: #fff;
  font-size: 15px;
}

.jd-header__menu > li > a:hover,
.jd-header__menu > li.on > a {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

.jd-header__submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 50;
  padding: 8px 0;
}

.jd-header__menu > li:hover .jd-header__submenu {
  display: block;
}

.jd-header__submenu a {
  display: block;
  padding: 8px 16px;
  color: var(--jd-text);
  font-size: 13px;
}

.jd-header__submenu a:hover {
  background: #F0FAF6;
  color: var(--jd-red);
}

/* ========== Footer ========== */
.jd-footer {
  margin-top: 40px;
  background: var(--jd-white);
}

.jd-footer__service {
  border-top: 1px solid var(--jd-border);
  border-bottom: 1px solid var(--jd-border);
  padding: 28px 0;
}

.jd-footer__service-list {
  display: flex;
  justify-content: space-between;
}

.jd-footer__service-item {
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: var(--jd-text);
}

.jd-footer__service-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--jd-red);
}

.jd-footer__links {
  padding: 36px 0;
}

.jd-footer__links-inner {
  display: flex;
  gap: 20px;
}

.jd-footer__col {
  flex: 1;
}

.jd-footer__col h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--jd-text);
}

.jd-footer__col a,
.jd-footer__col p {
  display: block;
  font-size: 13px;
  color: var(--jd-muted);
  line-height: 2;
}

.jd-footer__brand {
  width: 240px;
  flex: none;
  padding: 16px 18px;
  background: #F0FAF6;
  border-radius: 6px;
}

.jd-footer__brand h4 {
  color: var(--jd-red);
}

.jd-footer__copy {
  background: var(--jd-dark);
  color: #A8B5B0;
  padding: 18px 0;
  font-size: 12px;
  text-align: center;
}

.jd-footer__copy a {
  color: #A8B5B0;
  margin: 0 8px;
}

.jd-footer__copy a:hover {
  color: #fff;
}

.jd-footer__copy-line {
  margin-top: 8px;
}

.jd-backtop {
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  color: var(--jd-text);
  text-align: center;
  line-height: 44px;
  cursor: pointer;
  display: none;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jd-backtop:hover {
  background: var(--jd-red);
  color: #fff;
  border-color: var(--jd-red);
}

/* ========== Breadcrumb ========== */
.jd-breadcrumb {
  padding: 14px 0;
  font-size: 12px;
  color: var(--jd-muted);
}

.jd-breadcrumb a {
  color: var(--jd-muted);
}

.jd-breadcrumb a:hover {
  color: var(--jd-red);
}

/* ========== Home ========== */
.page-home .jd-home {
  padding-bottom: 20px;
}

.jd-home-top {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  min-height: 430px;
  align-items: stretch;
}

.jd-home-cate {
  width: 200px;
  background: var(--jd-white);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
}

.jd-home-cate__title {
  background: var(--jd-red);
  color: #fff;
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
}

.jd-home-cate__list {
  max-height: 390px;
}

.jd-home-cate__list > li {
  position: relative;
  border-bottom: 1px solid var(--jd-border);
}

.jd-home-cate__list > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
}

.jd-home-cate__list > li:hover {
  background: #F0FAF6;
}

.jd-home-cate__sub {
  display: none;
  position: absolute;
  left: 199px;
  top: 0;
  width: 320px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 40;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--jd-border);
}

.jd-home-cate__list > li:hover .jd-home-cate__sub {
  display: flex;
}

.jd-home-cate__sub:empty {
  display: none !important;
}

.jd-home-cate__sub a {
  padding: 4px 10px;
  background: #F4F6F5;
  border-radius: 3px;
  font-size: 12px;
  color: var(--jd-text);
}

.jd-home-banner {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #dde8e4;
  min-height: 430px;
}

.jd-home-banner__slides {
  height: 100%;
  position: relative;
}

.jd-home-banner__slide {
  display: none;
  height: 100%;
}

.jd-home-banner__slide.on {
  display: block;
}

.jd-home-banner__slide img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.jd-home-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
}

.jd-home-banner__dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.jd-home-banner__dots span.on {
  background: var(--jd-red);
}

.jd-home-side {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jd-home-notice,
.jd-home-entry {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 14px;
  flex: 1;
}

.jd-home-notice h3,
.jd-home-entry h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--jd-border);
}

.jd-home-notice li {
  font-size: 12px;
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jd-home-entry a {
  display: block;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #F0FAF6;
  border-radius: 4px;
  color: var(--jd-red);
  font-size: 13px;
}

.jd-home-entry a:last-child {
  margin-bottom: 0;
}

.jd-home-entry a:hover {
  background: var(--jd-red);
  color: #fff;
}

/* ===== 排版① promo：渐变横条 + 首卡加宽 ===== */
.jd-promo {
  margin-top: 20px;
  background: linear-gradient(115deg, #0E8F6F 0%, #1AAE8A 42%, #5ECFBB 100%);
  border-radius: 8px;
  padding: 20px 22px 22px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 174, 138, 0.18);
}

.jd-promo__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.jd-promo__head-left h2 {
  font-size: 24px;
  letter-spacing: 1px;
}

.jd-promo__head-left p {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.88;
}

.jd-promo__more {
  color: #fff;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 14px;
  border-radius: 16px;
}

.jd-promo__more:hover {
  background: #fff;
  color: var(--jd-red);
}

.jd-promo__grid {
  display: flex;
  gap: 12px;
}

.jd-promo__card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  color: var(--jd-text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.jd-promo__card--hero,
.jd-promo__card:first-child {
  flex: 1.55;
}

.jd-promo__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.jd-promo__pic {
  height: 150px;
  overflow: hidden;
  background: #f5f5f5;
}

.jd-promo__card--hero .jd-promo__pic,
.jd-promo__card:first-child .jd-promo__pic {
  height: 190px;
}

.jd-promo__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.jd-promo__card:hover .jd-promo__pic img {
  transform: scale(1.05);
}

.jd-promo__card-body {
  padding: 12px 14px 14px;
  flex: 1;
}

.jd-promo__card-title {
  font-size: 13px;
  height: 40px;
  overflow: hidden;
  margin-bottom: 8px;
}

.jd-promo__card-price {
  color: var(--jd-red);
  font-size: 20px;
  font-weight: 700;
}

.jd-promo__card-price em {
  font-style: normal;
  font-size: 13px;
  margin-right: 1px;
}

/* ===== 排版② rank：双列横条榜单 + 前三高亮 ===== */
.jd-rank {
  margin-top: 20px;
  background: var(--jd-white);
  border-radius: 8px;
  padding: 20px 22px 12px;
  border: 1px solid var(--jd-border);
}

.jd-rank__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--jd-border);
}

.jd-rank__head-left h2 {
  font-size: 20px;
  border-left: 4px solid var(--jd-orange);
  padding-left: 10px;
  line-height: 1.2;
}

.jd-rank__head-left p {
  margin-top: 6px;
  margin-left: 14px;
  font-size: 12px;
  color: var(--jd-muted);
}

.jd-rank__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.jd-rank__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px dashed var(--jd-border);
  transition: background 0.15s;
}

.jd-rank__item:hover {
  background: #FFF8F2;
}

.jd-rank__no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8ECEA;
  color: var(--jd-muted);
  text-align: center;
  line-height: 28px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.jd-rank__item:nth-child(1) .jd-rank__no,
.jd-rank__item:nth-child(2) .jd-rank__no,
.jd-rank__item:nth-child(3) .jd-rank__no {
  background: linear-gradient(135deg, #FF9A3C, #FF7A1A);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 122, 26, 0.35);
}

.jd-rank__pic {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid var(--jd-border);
}

.jd-rank__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-rank__info {
  flex: 1;
  min-width: 0;
}

.jd-rank__title {
  font-size: 13px;
  height: 40px;
  overflow: hidden;
  margin-bottom: 8px;
}

.jd-rank__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.jd-rank__price {
  color: var(--jd-red);
  font-size: 16px;
  font-weight: 700;
}

.jd-rank__price em {
  font-style: normal;
  font-size: 12px;
}

.jd-rank__sales {
  font-size: 12px;
  color: var(--jd-muted);
}

/* ===== 排版③ floor：左彩色主推 + 右 3×2 网格 ===== */
.jd-floor {
  margin-top: 20px;
  background: var(--jd-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--jd-border);
}

.jd-floor__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--jd-border);
  background: #FAFCFA;
}

.jd-floor__head h2 {
  font-size: 18px;
}

.jd-floor__head h2 span {
  display: inline-block;
  width: 6px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 2px;
}

.jd-floor--1 .jd-floor__head h2 span { background: var(--jd-floor-1); }
.jd-floor--2 .jd-floor__head h2 span { background: var(--jd-floor-2); }
.jd-floor--3 .jd-floor__head h2 span { background: var(--jd-floor-3); }

.jd-floor__more {
  font-size: 13px;
  color: var(--jd-muted);
}

.jd-floor__more:hover {
  color: var(--jd-red);
}

.jd-floor__body {
  display: flex;
  min-height: 360px;
}

.jd-floor__feature {
  width: 230px;
  flex-shrink: 0;
  padding: 18px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.jd-floor--1 .jd-floor__feature { background: linear-gradient(165deg, #1AAE8A, #0B7A5E); }
.jd-floor--2 .jd-floor__feature { background: linear-gradient(165deg, #FF8A2B, #E55F00); }
.jd-floor--3 .jd-floor__feature { background: linear-gradient(165deg, #4B8FF7, #2563EB); }

.jd-floor__feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.jd-floor__feature p {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 14px;
}

.jd-floor__feature img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: 6px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.15);
}

.jd-floor__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.jd-floor__item {
  padding: 16px;
  border-right: 1px solid var(--jd-border);
  border-bottom: 1px solid var(--jd-border);
  transition: background 0.15s;
}

.jd-floor__item:nth-child(3n) {
  border-right: 0;
}

.jd-floor__item:nth-child(n+4) {
  border-bottom: 0;
}

.jd-floor__item:hover {
  background: #F8FBFA;
}

.jd-floor__item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.jd-floor__item-title {
  font-size: 13px;
  height: 40px;
  overflow: hidden;
  margin-bottom: 6px;
}

.jd-floor__item-price {
  color: var(--jd-red);
  font-weight: 700;
  font-size: 16px;
}

.jd-floor__item-price em {
  font-style: normal;
  font-size: 12px;
}

/* ========== Product grid ========== */
.jd-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.jd-product-card {
  background: var(--jd-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jd-product-card:hover {
  border-color: var(--jd-red);
  box-shadow: 0 4px 14px rgba(26, 174, 138, 0.12);
}

.jd-product-card__pic {
  height: 220px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jd-product-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jd-product-card__body {
  padding: 12px 14px 16px;
}

.jd-product-card__title {
  font-size: 13px;
  height: 40px;
  overflow: hidden;
  margin-bottom: 8px;
}

.jd-product-card__price {
  color: var(--jd-red);
  font-size: 18px;
  font-weight: 700;
}

.jd-product-card__sales {
  margin-top: 4px;
  font-size: 12px;
  color: var(--jd-muted);
}

/* ========== Lists product ========== */
.jd-filter {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.jd-filter__row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--jd-border);
  font-size: 13px;
}

.jd-filter__row:last-child {
  border-bottom: 0;
}

.jd-filter__label {
  width: 70px;
  flex-shrink: 0;
  color: var(--jd-muted);
  line-height: 28px;
}

.jd-filter__opts {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jd-filter__opts a {
  padding: 4px 12px;
  border-radius: 3px;
  line-height: 20px;
}

.jd-filter__opts a.on,
.jd-filter__opts a.s-pitch,
.jd-filter__opts a.active {
  background: var(--jd-red);
  color: #fff;
}

.jd-toolbar {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jd-toolbar__sort a {
  display: inline-block;
  padding: 6px 14px;
  margin-right: 4px;
  border: 1px solid var(--jd-border);
  border-radius: 3px;
  font-size: 13px;
}

.jd-toolbar__sort a.active {
  border-color: var(--jd-red);
  color: var(--jd-red);
}

.jd-toolbar__search form {
  display: flex;
  border: 1px solid var(--jd-border);
  border-radius: 3px;
  overflow: hidden;
  height: 32px;
}

.jd-toolbar__search input[type="text"] {
  border: 0;
  outline: 0;
  padding: 0 10px;
  width: 160px;
}

.jd-toolbar__search input[type="submit"] {
  border: 0;
  background: var(--jd-red);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.jd-pagination,
#pages {
  text-align: center;
  padding: 24px 0;
}

.jd-pagination a,
.jd-pagination span,
#pages a,
#pages span {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 3px;
  padding: 0 8px;
  border: 1px solid var(--jd-border);
  background: #fff;
  border-radius: 3px;
  font-size: 13px;
  color: var(--jd-text);
}

.jd-pagination .active,
#pages .active,
#pages .thisclass {
  background: var(--jd-red);
  border-color: var(--jd-red);
  color: #fff;
}

/* ========== Product detail ========== */
.jd-detail {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}

.jd-detail__top {
  display: flex;
  gap: 30px;
}

.jd-gallery {
  width: 420px;
  flex-shrink: 0;
}

.jd-gallery__main {
  width: 420px;
  height: 420px;
  border: 1px solid var(--jd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
}

.jd-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jd-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.jd-gallery__thumbs li {
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.jd-gallery__thumbs li.on,
.jd-gallery__thumbs li:hover {
  border-color: var(--jd-red);
}

.jd-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-detail__info {
  flex: 1;
  min-width: 0;
}

.jd-detail__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

.jd-detail__price-box {
  background: #F0FAF6;
  padding: 16px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.jd-detail__price-label {
  color: var(--jd-muted);
  font-size: 13px;
}

.jd-detail__price {
  color: var(--jd-red);
  font-size: 28px;
  font-weight: 700;
}

.jd-detail__spec {
  margin-bottom: 14px;
}

.jd-detail__spec-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.jd-detail__spec-label {
  width: 70px;
  flex-shrink: 0;
  color: var(--jd-muted);
  line-height: 30px;
}

.jd-detail__spec-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jd-detail__spec-vals dt {
  border: 1px solid var(--jd-border);
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
}

.jd-detail__spec-vals dt.selected,
.jd-detail__spec-vals dt.on {
  border-color: var(--jd-red);
  color: var(--jd-red);
}

.jd-detail__qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.jd-detail__qty span {
  width: 32px;
  height: 32px;
  border: 1px solid var(--jd-border);
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  background: #fafafa;
  user-select: none;
}

.jd-detail__qty input {
  width: 50px;
  height: 32px;
  border: 1px solid var(--jd-border);
  border-left: 0;
  border-right: 0;
  text-align: center;
  outline: 0;
}

.jd-detail__meta {
  font-size: 13px;
  color: var(--jd-muted);
  margin: 8px 0 18px;
  line-height: 1.8;
}

.jd-detail__actions {
  display: flex;
  gap: 12px;
}

.jd-btn {
  height: 46px;
  padding: 0 36px;
  border: 0;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.jd-btn--buy {
  background: var(--jd-red);
  color: #fff;
}

.jd-btn--buy:hover {
  background: var(--jd-red-hover);
}

.jd-btn--cart {
  background: #FFF3E8;
  color: var(--jd-orange);
  border: 1px solid var(--jd-orange);
}

.jd-btn--cart:hover {
  background: var(--jd-orange);
  color: #fff;
}

.jd-related {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 16px;
}

.jd-related h3 {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jd-border);
}

.jd-related__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.jd-related__item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fafafa;
}

.jd-related__item p {
  font-size: 12px;
  height: 36px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.jd-related__item span {
  color: var(--jd-red);
  font-weight: 700;
}

.jd-tabs {
  background: var(--jd-white);
  border-radius: 4px;
  overflow: hidden;
}

.jd-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--jd-border);
  background: #F8FBFA;
}

.jd-tabs__nav li {
  padding: 14px 28px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.jd-tabs__nav li.on,
.jd-tabs__nav li.active {
  color: var(--jd-red);
  border-bottom-color: var(--jd-red);
  background: #fff;
}

.jd-tabs__panel {
  display: none;
  padding: 24px;
  min-height: 200px;
  line-height: 1.8;
}

.jd-tabs__panel.on,
.jd-tabs__panel.active {
  display: block;
}

.jd-tabs__panel img {
  max-width: 100%;
}

.jd-attr-table {
  width: 100%;
  border-collapse: collapse;
}

.jd-attr-table th,
.jd-attr-table td {
  border: 1px solid var(--jd-border);
  padding: 10px 14px;
  text-align: left;
}

.jd-attr-table th {
  background: #F8FBFA;
}

.jd-protect {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--jd-border);
  color: var(--jd-muted);
  font-size: 13px;
}

.jd-protect h4 {
  color: var(--jd-text);
  margin: 16px 0 8px;
  font-size: 15px;
}

/* ========== Article ========== */
.jd-article-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.jd-article-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--jd-white);
  border-radius: 4px;
  padding: 16px 0;
}

.jd-article-side a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.jd-article-side a.on,
.jd-article-side li.on a {
  color: var(--jd-red);
  background: #F0FAF6;
  border-left-color: var(--jd-red);
}

.jd-article-main {
  flex: 1;
  background: var(--jd-white);
  border-radius: 4px;
  padding: 20px 24px;
  min-width: 0;
}

.jd-article-main h1,
.jd-article-main h5 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--jd-border);
}

.jd-article-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--jd-border);
  font-size: 14px;
}

.jd-article-list li span {
  color: var(--jd-muted);
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}

.jd-article-content {
  line-height: 1.9;
  font-size: 15px;
}

.jd-article-content img {
  max-width: 100%;
}

.jd-article-meta {
  color: var(--jd-muted);
  font-size: 12px;
  margin-bottom: 20px;
}

/* ========== Search ========== */
.jd-search-tip {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 14px;
}

.jd-search-tip em {
  color: var(--jd-red);
  font-style: normal;
  font-weight: 700;
}

/* ========== Wares street ========== */
.page-wares .jd-wares-list {
  margin-bottom: 20px;
}

.jd-wares-card {
  background: var(--jd-white);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 24px;
  border: 1px solid var(--jd-border);
  transition: border-color 0.15s;
}

.jd-wares-card:hover {
  border-color: var(--jd-red);
}

.jd-wares-card__banner {
  width: 260px;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}

.jd-wares-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-wares-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.jd-wares-card__name {
  font-size: 18px;
  font-weight: 600;
}

.jd-wares-card__meta {
  font-size: 13px;
  color: var(--jd-muted);
}

/* page-wares shop bridge */
.page-wares .main,
.page-wares-shop .main {
  width: var(--jd-container);
  margin: 15px auto 30px;
}

@media (max-width: 1220px) {
  .jd-container,
  .page-wares .main,
  .page-wares-shop .main {
    width: 96%;
  }

  .jd-home-top {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
  }

  .jd-home-cate {
    width: 100%;
  }

  .jd-home-cate__list {
    max-height: none;
    display: flex;
    flex-wrap: wrap;
  }

  .jd-home-cate__list > li {
    width: 50%;
  }

  .jd-home-cate__sub {
    display: none !important;
  }

  .jd-home-banner {
    width: 100%;
    min-height: 240px;
  }

  .jd-home-banner__slide img {
    height: 240px;
  }

  .jd-home-side {
    width: 100%;
    flex-direction: row;
  }

  .jd-promo__grid {
    flex-wrap: wrap;
  }

  .jd-promo__card,
  .jd-promo__card--hero,
  .jd-promo__card:first-child {
    flex: 1 1 45%;
  }

  .jd-rank__grid {
    grid-template-columns: 1fr;
  }

  .jd-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .jd-detail__top {
    flex-direction: column;
  }

  .jd-floor__body {
    flex-direction: column;
  }

  .jd-floor__feature {
    width: 100%;
  }

  .jd-floor__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jd-header__cate {
    width: 160px;
  }
}
