/* ============================================================
   edidw.com PC 商城 · 京东风设计系统 v3.0
   class 前缀: jd-
   ============================================================ */

:root {
  --jd-red: #E1251B;
  --jd-red-hover: #C8161D;
  --jd-orange: #FF6600;
  --jd-bg: #F5F5F5;
  --jd-white: #FFFFFF;
  --jd-text: #333333;
  --jd-muted: #999999;
  --jd-light: #666666;
  --jd-border: #EEEEEE;
  --jd-border-dark: #E0E0E0;
  --jd-bar: #E3E4E5;
  --jd-container: 1190px;
  --jd-radius: 4px;
  --jd-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --jd-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --jd-transition: 0.2s ease;
}

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

html {
  font-size: 12px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--jd-text);
  background: var(--jd-bg);
  line-height: 1.5;
  min-width: 1190px;
}

a {
  color: var(--jd-text);
  text-decoration: none;
  transition: color var(--jd-transition);
}

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

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

ul, ol, li {
  list-style: none;
}

button, input {
  font-family: inherit;
  outline: none;
}

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

.jd-clearfix::after {
  content: "";
  display: block;
  clear: both;
}

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

.jd-header__bar {
  height: 30px;
  line-height: 30px;
  background: var(--jd-bar);
  color: var(--jd-light);
  font-size: 12px;
}

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

.jd-header__bar-left a {
  color: var(--jd-light);
  margin-right: 8px;
}

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

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

.jd-header__bar-right li {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-left: 1px solid #ccc;
  height: 14px;
  line-height: 14px;
}

.jd-header__bar-right li:first-child {
  border-left: none;
}

.jd-header__bar-right a {
  color: var(--jd-light);
}

.jd-header__bar-right a:hover,
.jd-header__bar-right .jd-link-red {
  color: var(--jd-red);
}

.jd-header__main {
  padding: 20px 0 16px;
}

.jd-header__main-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.jd-header__logo {
  flex-shrink: 0;
  width: 190px;
  padding-top: 4px;
}

.jd-header__logo img {
  max-height: 60px;
  max-width: 180px;
}

.jd-header__search {
  flex: 1;
  max-width: 550px;
  padding-top: 8px;
}

.jd-header__search-form {
  display: flex;
  height: 36px;
  border: 2px solid var(--jd-red);
  background: var(--jd-white);
}

.jd-header__search-form input[type="text"] {
  flex: 1;
  border: 0;
  padding: 0 12px;
  font-size: 14px;
  height: 32px;
  color: var(--jd-text);
}

.jd-header__search-form button {
  width: 82px;
  border: 0;
  background: var(--jd-red);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.jd-header__search-form button:hover {
  background: var(--jd-red-hover);
}

.jd-header__hot {
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
}

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

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

.jd-header__cart {
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 8px;
}

.jd-header__cart a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 130px;
  height: 36px;
  border: 1px solid var(--jd-border-dark);
  background: #F9F9F9;
  color: var(--jd-red);
  font-size: 13px;
}

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

.jd-header__cart-icon {
  display: inline-block;
  width: 18px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E1251B'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

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

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

.jd-header__cate {
  position: relative;
  width: 190px;
  flex-shrink: 0;
  z-index: 100;
}

.jd-header__cate-title {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #C8161D;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}

.jd-header__cate-list {
  display: none;
  position: absolute;
  left: 0;
  top: 40px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--jd-border);
  box-shadow: var(--jd-shadow-lg);
  padding: 6px 0;
}

.jd-header__cate:hover .jd-header__cate-list {
  display: block;
}

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

.jd-header__cate-list a:hover,
.jd-header__cate-list a.active {
  color: var(--jd-red);
  background: #FFF5F5;
}

.jd-header__menu {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 10px;
}

.jd-header__menu a {
  display: block;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

.jd-header__menu a:hover,
.jd-header__menu a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- Footer ---------- */
.jd-footer {
  margin-top: 48px;
  background: #fff;
  border-top: none;
}

.jd-footer__service {
  background: #fff;
  border-top: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
  padding: 28px 0;
}

.jd-footer__service-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.jd-footer__service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.jd-footer__service-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--jd-red);
  border-radius: 50%;
  color: var(--jd-red);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.jd-footer__service-item p {
  font-size: 12px;
  color: var(--jd-muted);
  margin: 0;
}

.jd-footer__links {
  background: #F5F5F5;
  padding: 40px 0 32px;
}

.jd-footer__links-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 24px;
}

.jd-footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--jd-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--jd-red);
  display: inline-block;
  min-width: 64px;
}

.jd-footer__col a {
  display: block;
  color: var(--jd-light);
  font-size: 13px;
  line-height: 2.1;
}

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

.jd-footer__text {
  color: var(--jd-light);
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

.jd-footer__col--brand {
  display: flex;
  justify-content: flex-end;
}

.jd-footer__brand {
  width: 220px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.jd-footer__brand img {
  max-height: 48px;
  max-width: 160px;
  margin-bottom: 12px;
}

.jd-footer__brand strong {
  display: block;
  font-size: 16px;
  color: var(--jd-text);
  margin-bottom: 6px;
}

.jd-footer__brand p {
  font-size: 12px;
  color: var(--jd-muted);
  margin: 0;
}

.jd-footer__copy {
  background: #2D2D2D;
  color: #999;
  text-align: center;
  padding: 22px 0 28px;
  font-size: 12px;
  line-height: 1.9;
}

.jd-footer__nav {
  margin-bottom: 8px;
  color: #777;
}

.jd-footer__nav a {
  color: #BBB;
  margin: 0 6px;
}

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

.jd-footer__nav span {
  color: #555;
  margin: 0 2px;
}

.jd-footer__copy p {
  margin: 0;
}

.jd-footer__icp,
.jd-footer__copy a {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

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

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

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

.jd-product {
  background: var(--jd-white);
  border: 1px solid transparent;
  padding: 12px;
  transition: border-color var(--jd-transition), box-shadow var(--jd-transition);
  display: block;
}

.jd-product:hover {
  border-color: var(--jd-red);
  box-shadow: var(--jd-shadow);
  color: inherit;
}

.jd-product__img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 10px;
}

.jd-product__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jd-product__price {
  color: var(--jd-red);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.jd-product__price em {
  font-style: normal;
  font-size: 12px;
  margin-right: 1px;
}

.jd-product__price span {
  font-size: 20px;
}

.jd-product__title {
  font-size: 12px;
  color: var(--jd-text);
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.jd-product__meta {
  margin-top: 6px;
  color: var(--jd-muted);
  font-size: 12px;
}

.jd-product__tag {
  display: inline-block;
  background: var(--jd-red);
  color: #fff;
  font-size: 12px;
  padding: 0 4px;
  border-radius: 2px;
  margin-right: 4px;
  line-height: 16px;
  vertical-align: middle;
}

/* ---------- Section / Floor ---------- */
.jd-section {
  margin-top: 20px;
}

.jd-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--jd-red);
}

.jd-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--jd-text);
}

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

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

.jd-section__body {
  background: var(--jd-white);
  padding: 10px;
}

/* ---------- Home top ---------- */
.jd-home-top {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  gap: 10px;
  margin-top: 10px;
  height: 470px;
}

.jd-home-cate {
  background: #fff;
  border: 1px solid var(--jd-border);
  overflow: hidden;
}

.jd-home-cate a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}

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

.jd-banner {
  position: relative;
  overflow: hidden;
  background: #ddd;
  height: 470px;
}

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

.jd-banner__slide {
  display: none;
  position: absolute;
  inset: 0;
}

.jd-banner__slide.is-active {
  display: block;
}

.jd-banner__slide a,
.jd-banner__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-banner__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.jd-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.jd-banner__dot.is-active {
  background: var(--jd-red);
}

.jd-banner__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: none;
}

.jd-banner:hover .jd-banner__btn {
  display: block;
}

.jd-banner__btn--prev { left: 0; }
.jd-banner__btn--next { right: 0; }

.jd-home-side {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.jd-home-side__welcome {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--jd-border);
  margin-bottom: 12px;
}

.jd-home-side__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--jd-text);
}

.jd-home-side__title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--jd-red);
  margin-right: 6px;
  vertical-align: -1px;
}

.jd-home-side__list a {
  display: block;
  padding: 6px 0;
  color: var(--jd-light);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ========== 风格1：本月推荐 · 秒杀横卡 ========== */
.jd-promo {
  margin-top: 20px;
  background: linear-gradient(135deg, #E1251B 0%, #FF4E4E 55%, #FF8A65 100%);
  border-radius: 4px;
  overflow: hidden;
  padding-bottom: 12px;
}

.jd-promo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  color: #fff;
}

.jd-promo__bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jd-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  color: var(--jd-red);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.jd-promo__bar-title strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.jd-promo__bar-title em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.85;
  margin-left: 4px;
}

.jd-promo__track {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 10px;
  padding: 0 12px 4px;
}

.jd-promo__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  min-height: 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jd-promo__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  color: inherit;
}

.jd-promo__card:first-child {
  flex-direction: row;
  align-items: stretch;
}

.jd-promo__card:first-child .jd-promo__img {
  width: 55%;
  padding-top: 0;
  height: 100%;
  min-height: 260px;
}

.jd-promo__card:first-child .jd-promo__info {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px;
}

.jd-promo__img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #fafafa;
  overflow: hidden;
}

.jd-promo__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jd-promo__info {
  padding: 10px 12px 14px;
}

.jd-promo__name {
  font-size: 13px;
  line-height: 1.45;
  height: 38px;
  overflow: hidden;
  color: var(--jd-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jd-promo__name i {
  display: inline-block;
  font-style: normal;
  background: var(--jd-red);
  color: #fff;
  font-size: 12px;
  padding: 0 4px;
  border-radius: 2px;
  margin-right: 4px;
  line-height: 16px;
  vertical-align: middle;
}

.jd-promo__cate {
  margin-top: 6px;
  color: var(--jd-muted);
  font-size: 12px;
}

.jd-promo__price {
  margin-top: 8px;
  color: var(--jd-red);
  font-weight: 800;
}

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

.jd-promo__price span {
  font-size: 22px;
}

.jd-promo__card:first-child .jd-promo__name {
  font-size: 16px;
  height: auto;
  max-height: 52px;
  font-weight: 700;
}

.jd-promo__card:first-child .jd-promo__price span {
  font-size: 28px;
}

/* ========== 风格2：热销排行 · 双列横条 ========== */
.jd-rank {
  margin-top: 20px;
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  padding: 0 0 8px;
}

.jd-rank__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 2px solid var(--jd-orange);
}

.jd-rank__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--jd-orange);
  position: relative;
  padding-left: 28px;
}

.jd-rank__title::before {
  content: "热";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--jd-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  border-radius: 3px;
}

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

.jd-rank__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  counter-reset: jd-rank;
}

.jd-rank__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--jd-border);
  border-right: 1px solid var(--jd-border);
  counter-increment: jd-rank;
  transition: background 0.15s ease;
}

.jd-rank__item:nth-child(2n) {
  border-right: none;
}

.jd-rank__item:hover {
  background: #FFF8F0;
  color: inherit;
}

.jd-rank__no {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #F0F0F0;
  color: var(--jd-muted);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.jd-rank__no::before {
  content: counter(jd-rank, decimal-leading-zero);
}

.jd-rank__item:nth-child(1) .jd-rank__no {
  background: #E1251B;
  color: #fff;
}

.jd-rank__item:nth-child(2) .jd-rank__no {
  background: #FF6600;
  color: #fff;
}

.jd-rank__item:nth-child(3) .jd-rank__no {
  background: #FFA000;
  color: #fff;
}

.jd-rank__img {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  background: #fafafa;
  overflow: hidden;
}

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

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

.jd-rank__name {
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--jd-text);
}

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

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

.jd-rank__price {
  margin-top: 8px;
  color: var(--jd-red);
  font-weight: 800;
}

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

.jd-rank__price span {
  font-size: 20px;
}

/* ========== 风格3：频道楼层 · 左主推右网格 ========== */
.jd-floor {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 230px 1fr;
  background: var(--jd-white);
  overflow: hidden;
  border: 1px solid var(--jd-border);
  min-height: 420px;
}

.jd-floor__side {
  padding: 0 0 16px;
  color: #fff;
}

.jd-floor--red .jd-floor__side {
  background: linear-gradient(180deg, #E1251B 0%, #C8161D 100%);
}

.jd-floor--orange .jd-floor__side {
  background: linear-gradient(180deg, #FF7A1A 0%, #E85D04 100%);
}

.jd-floor--blue .jd-floor__side {
  background: linear-gradient(180deg, #1A6DFF 0%, #0B4FCC 100%);
}

.jd-floor__side-hd {
  padding: 18px 16px 12px;
}

.jd-floor__side-hd h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.jd-floor__side-hd a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

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

.jd-floor__hero {
  display: block;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 14px;
  color: var(--jd-text);
}

.jd-floor__hero:hover {
  color: var(--jd-text);
}

.jd-floor__hero-img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;
}

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

.jd-floor__hero-name {
  font-size: 13px;
  font-weight: 600;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.jd-floor__hero-price {
  margin-top: 8px;
  color: var(--jd-red);
  font-size: 20px;
  font-weight: 800;
}

.jd-floor__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jd-floor__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--jd-border);
  font-size: 14px;
  font-weight: 600;
}

.jd-floor__hd a {
  color: var(--jd-muted);
  font-size: 12px;
  font-weight: 400;
}

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

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

.jd-floor__cell {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-right: 1px solid var(--jd-border);
  border-bottom: 1px solid var(--jd-border);
  transition: background 0.15s ease;
}

.jd-floor__cell:nth-child(3n) {
  border-right: none;
}

.jd-floor__cell:hover {
  background: #FAFAFA;
  color: inherit;
}

.jd-floor__cell-img {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  overflow: hidden;
}

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

.jd-floor__cell-name {
  font-size: 12px;
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--jd-text);
}

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

.jd-floor__cell-price {
  margin-top: 8px;
  color: var(--jd-red);
  font-size: 16px;
  font-weight: 700;
}

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

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

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

.jd-filter {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  margin-bottom: 16px;
}

.jd-filter__row {
  display: flex;
  padding: 14px 18px;
  border-bottom: 1px solid var(--jd-border);
  align-items: flex-start;
}

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

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

.jd-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1;
}

.jd-filter__list a {
  display: inline-block;
  line-height: 28px;
  font-size: 13px;
  color: var(--jd-text);
  padding: 0 6px;
}

.jd-filter__list a:hover,
.jd-filter__list a.active,
.jd-filter__list li.active a {
  color: var(--jd-red);
  font-weight: 600;
}

.jd-list-wrap {
  margin-bottom: 24px;
}

.jd-toolbar {
  background: #F7F7F7;
  border: 1px solid var(--jd-border);
  padding: 10px 16px;
  margin-bottom: 10px;
  color: var(--jd-muted);
  font-size: 12px;
}

/* Pagination */
.jd-pagination,
#pages {
  text-align: center;
  padding: 24px 0 10px;
  font-size: 14px;
}

.jd-pagination a,
.jd-pagination span,
#pages a,
#pages span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  padding: 0 10px;
  margin: 0 4px;
  border: 1px solid var(--jd-border-dark);
  background: var(--jd-white);
  color: var(--jd-text);
  vertical-align: middle;
}

.jd-pagination a:hover,
#pages a:hover {
  color: var(--jd-red);
  border-color: var(--jd-red);
}

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

/* ---------- Detail page ---------- */
.jd-detail {
  background: var(--jd-white);
  padding: 20px;
  margin-bottom: 16px;
}

.jd-detail__top {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
}

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

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

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

.jd-gallery__thumbs li {
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: #fafafa;
}

.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: contain;
}

.jd-detail__info h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--jd-text);
}

.jd-detail__price-box {
  background: #FFF5F5;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.jd-detail__price-box .label {
  color: var(--jd-muted);
  margin-right: 12px;
}

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

.jd-detail__price .num,
.jd-detail__price .guijiage,
.total-price {
  font-size: 24px;
  font-style: normal;
}

.jd-spec {
  margin-bottom: 16px;
}

.jd-spec > p {
  color: var(--jd-muted);
  margin-bottom: 10px;
}

.jd-spec li {
  display: flex;
  margin-bottom: 14px;
  align-items: flex-start;
}

.jd-spec li em {
  width: 70px;
  flex-shrink: 0;
  color: var(--jd-muted);
  font-style: normal;
  line-height: 32px;
}

.jd-spec dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.jd-spec dt {
  min-width: 48px;
  padding: 6px 14px;
  border: 1px solid var(--jd-border-dark);
  cursor: pointer;
  text-align: center;
  position: relative;
  background: #fff;
  font-style: normal;
}

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

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

.jd-spec dt .ey-tb-triangle {
  display: none;
}

.jd-qty {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.jd-qty em {
  width: 70px;
  color: var(--jd-muted);
  font-style: normal;
}

.jd-qty .amount_wrap {
  display: inline-flex;
  border: 1px solid var(--jd-border-dark);
  height: 36px;
}

.jd-qty .amount_min,
.jd-qty .amount_max {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f7f7f7;
  user-select: none;
  font-size: 16px;
}

.jd-qty .inputnumber {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--jd-border-dark);
  border-right: 1px solid var(--jd-border-dark);
  text-align: center;
  height: 34px;
}

.jd-shop-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px dashed var(--jd-border);
  border-bottom: 1px dashed var(--jd-border);
  color: var(--jd-light);
  font-size: 12px;
}

.jd-shop-meta img {
  height: 16px;
  vertical-align: middle;
}

.jd-shop-meta a {
  color: var(--jd-red);
}

.jd-selected-list {
  background: #FAFAFA;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.jd-selected-list .guijiage,
.jd-selected-list .total-price {
  color: var(--jd-red);
  font-weight: 700;
}

.jd-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.jd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 46px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
}

.jd-btn--buy,
.btn-red,
.goumai {
  background: var(--jd-red);
  color: #fff !important;
  border-color: var(--jd-red);
}

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

.jd-btn--cart,
.btn-car,
.jiaru {
  background: #FFE4D0;
  color: var(--jd-orange) !important;
  border-color: var(--jd-orange);
}

.jd-btn--cart:hover,
.btn-car:hover,
.jiaru:hover {
  background: #FFD4B3;
}

/* Recommend */
.jd-recommend {
  background: var(--jd-white);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}

.jd-recommend__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 8px;
  border-left: 3px solid var(--jd-red);
}

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

/* Tabs / content */
.jd-tabs {
  background: var(--jd-white);
  margin-bottom: 20px;
}

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

.jd-tabs__nav li {
  padding: 14px 28px;
  font-size: 14px;
  cursor: pointer;
  border-top: 2px solid transparent;
  color: var(--jd-light);
}

.jd-tabs__nav li.active,
.jd-tabs__nav li:hover {
  background: #fff;
  color: var(--jd-red);
  border-top-color: var(--jd-red);
  font-weight: 600;
}

.jd-tabs__nav li a {
  color: inherit;
}

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

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

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

.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: #FAFAFA;
}

/* Back top */
.jd-backtop {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 40px;
  height: 40px;
  background: var(--jd-white);
  border: 1px solid var(--jd-border-dark);
  color: var(--jd-text);
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  display: none;
  z-index: 999;
  font-size: 18px;
  box-shadow: var(--jd-shadow);
}

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

/* Empty */
.jd-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--jd-muted);
  background: var(--jd-white);
}

/* ---------- Article list / detail ---------- */
.jd-article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.jd-article-side {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
}

.jd-article-side__title {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  background: #F7F7F7;
  border-bottom: 1px solid var(--jd-border);
  border-left: 3px solid var(--jd-red);
}

.jd-article-side__list li a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: var(--jd-text);
  font-size: 13px;
}

.jd-article-side__list li a:hover,
.jd-article-side__list li.on a {
  color: var(--jd-red);
  background: #FFF5F5;
}

.jd-article-main {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  min-height: 420px;
}

.jd-article-main__hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--jd-border);
}

.jd-article-main__hd h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.jd-article-list {
  padding: 4px 0;
}

.jd-article-list li {
  border-bottom: 1px dashed var(--jd-border);
}

.jd-article-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: var(--jd-text);
}

.jd-article-list li a:hover {
  background: #FAFAFA;
  color: var(--jd-red);
}

.jd-article-list__title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-article-list__date {
  flex-shrink: 0;
  color: var(--jd-muted);
  font-size: 12px;
}

.jd-article-detail {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  padding: 32px 40px 48px;
  margin-bottom: 24px;
}

.jd-article-detail__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--jd-text);
}

.jd-article-detail__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--jd-border);
  color: var(--jd-muted);
  font-size: 13px;
}

.jd-article-detail__content {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.jd-article-detail__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
}

.jd-article-detail__content p {
  margin-bottom: 14px;
}

.jd-article-detail__content h1,
.jd-article-detail__content h2,
.jd-article-detail__content h3 {
  margin: 20px 0 12px;
  font-weight: 700;
  color: var(--jd-text);
}

@media (max-width: 1200px) {
  .jd-article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jd-article-detail {
    padding: 20px 16px 32px;
  }

  .jd-article-detail__title {
    font-size: 20px;
  }
}

/* Compat: old sppurchase markup inside new layout */
.webspec,
.webevent {
  margin-bottom: 12px;
}

.webspec > p {
  color: var(--jd-muted);
  margin-bottom: 8px;
}

.webspec li {
  display: flex;
  margin-bottom: 12px;
}

.webspec li em {
  width: 70px;
  font-style: normal;
  color: var(--jd-muted);
  line-height: 32px;
}

.webspec dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webspec dt {
  min-width: 48px;
  padding: 6px 14px;
  border: 1px solid var(--jd-border-dark);
  cursor: pointer;
  text-align: center;
}

.webspec dt.selected {
  border-color: var(--jd-red);
  color: var(--jd-red);
}

.amount_wrap {
  display: inline-flex;
  border: 1px solid var(--jd-border-dark);
  height: 36px;
}

.amount_min,
.amount_max {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f7f7f7;
}

.inputnumber {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--jd-border-dark);
  border-right: 1px solid var(--jd-border-dark);
  text-align: center;
}

.selected-list {
  background: #FAFAFA;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.selected-list .guijiage,
.total-price {
  color: var(--jd-red);
  font-weight: 700;
}

.action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 46px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  margin-right: 12px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1200px) {
  body {
    min-width: 0;
  }

  .jd-container {
    width: auto;
    padding: 0 16px;
  }

  .jd-home-top {
    grid-template-columns: 1fr;
    height: auto;
  }

  .jd-home-cate {
    display: none;
  }

  .jd-banner {
    height: 320px;
  }

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

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

  .jd-promo__card:first-child {
    grid-column: 1 / -1;
  }

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

  .jd-rank__item {
    border-right: none;
  }

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

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

  .jd-header__main-inner {
    flex-wrap: wrap;
  }

  .jd-footer__service-inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

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

  .jd-footer__col--brand {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .jd-product-grid,
  .jd-product-grid--5,
  .jd-recommend__list,
  .jd-floor__grid,
  .jd-promo__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .jd-promo__card:first-child {
    flex-direction: column;
    grid-column: auto;
  }

  .jd-promo__card:first-child .jd-promo__img {
    width: 100%;
    padding-top: 100%;
    min-height: 0;
    height: auto;
  }

  .jd-promo__card:first-child .jd-promo__info {
    width: 100%;
  }

  .jd-header__nav {
    overflow-x: auto;
  }

  .jd-header__cate {
    width: 140px;
  }

  .jd-home-side {
    display: none;
  }

  .jd-footer__service-inner,
  .jd-footer__links-inner {
    grid-template-columns: 1fr;
  }

  .jd-footer__service-item {
    justify-content: flex-start;
  }
}

/* ===== Wares 店铺街 / 店铺首页 ===== */
.page-wares {
  background: var(--jd-bg);
}

.page-wares .jd-header,
.page-wares .jd-footer {
  position: relative;
  z-index: 10;
}



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

.page-wares .shop-wrap.s-ey-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-wares .shop-item.s-shop-item {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-radius);
  overflow: hidden;
  transition: box-shadow .2s;
  box-sizing: border-box;
}

.page-wares .shop-item.s-shop-item:hover {
  box-shadow: var(--jd-shadow-lg);
}

.page-wares .shop-item.s-shop-item a {
  color: var(--jd-text);
  display: block;
}

.page-wares .shop-item.s-shop-item .name.s-name-sj b,
.page-wares .shop-item.s-shop-item .shop-bottom b {
  color: var(--jd-muted);
  font-weight: normal;
}

.page-wares-lists .merc_list-scope,
.page-wares-lists .ey-container {
  background: transparent;
}

.page-wares-shop.main {
  overflow: hidden;
}

.page-wares-shop .g_side {
  float: left;
}

.page-wares-shop .g_main {
  float: right;
}

