/* Page styles migrated from demo-tempalte/products.html. */

.hero {
  background: #fff;
  padding: 80px 0;
}
.hero h1 {
  font-size: 48px;
  text-align: center;
}
.hero h1 span {
  color: var(--red);
}
.hero p {
  text-align: center;
  font-size: 20px;
  color: #666;
  margin-top: 20px;
}
.product-profile {
  margin-top: -20px;
  padding: 35px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.profile-item {
  background: #fafafa;
  padding: 20px 20px 32px;
  border-radius: 12px;
}
.profile-item strong {
  color: var(--red);
}
.filter {
  padding: 50px 0 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.filter button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
}
.filter button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding-bottom: 80px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 0 0 20px;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  width: 100%;
  background: #fff;
  overflow: hidden;
  font-size: 80px;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-card h3,
.product-card > p,
.product-card__tags-fixed,
.product-card__footer-fixed {
  padding-right: 20px;
  padding-left: 20px;
}
.product-card h3 {
  margin: 16px 0 4px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}
.product-card p {
  color: #666;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 18px;
}

.jiumao-products-decision__card-title {
  margin: 0 0 12px;
}

.jiumao-products-decision__card-desc {
  margin: 0;
  color: #666;
  line-height: 1.7;
}

.jiumao-products-decision__card-action {
  margin: 14px 0 0;
}

.jiumao-products-decision__card-action a {
  color: var(--red);
  font-weight: 700;
}

.jiumao-products-faq__question {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.jiumao-products-faq__question span:last-child {
  flex: 1;
}

.jiumao-products-faq__answer {
  line-height: 1.7;
}

.jiumao-products-faq__answer a {
  color: var(--red);
  font-weight: 700;
}

.jiumao-products-faq__action {
  text-align: center;
}
.product-card .tags,
.product-card .product-card__footer {
  display: none;
}

.product-card__tags-fixed {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.product-card__tag-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #ff8f88;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  color: var(--red);
  background: #fff;
}

.product-card__footer-fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.product-card__price-fixed {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.product-card__price-fixed strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.detail-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
}

.detail-fixed:hover,
.detail-fixed:focus-visible {
  color: var(--red-700);
  outline: none;
}
.products .api-error,
.products .api-empty {
  grid-column: 1 / -1;
}
.api-error,
.api-empty {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  background: #fff5f5;
  color: #b42318;
}
.api-empty {
  background: #fafafa;
  color: #666;
}
.pager {
  margin: -26px 0 80px;
  font-size: 0;
  text-align: center;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  margin: 0 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 15px;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  vertical-align: middle;
}
.pager a:hover,
.pager .current {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(252, 16, 16, 0.24);
}
.oldcat-debug-group {
  padding-top: 36px;
}
.oldcat-debug-group h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: #333;
}
.oldcat-debug-output {
  max-height: 420px;
  margin: 0 0 24px;
  padding: 18px;
  overflow: auto;
  border: 1px solid #eee;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #222;
  background: #fafafa;
}
.detail {
  appearance: none;
  border: 0;
  display: block;
  margin-top: auto;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 25px;
  width: 100%;
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.detail:hover,
.detail:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-hover);
  background: var(--red-600);
  outline: none;
}

.product-app-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.product-app-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-app-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(8px);
}

.product-app-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 36px 28px 30px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, #151515 0%, #0b0b0b 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.28s ease;
}

.product-app-modal.is-open .product-app-modal__panel {
  transform: translateY(0) scale(1);
}

.product-app-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.product-app-modal__close:hover,
.product-app-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
  outline: none;
}

.product-app-modal__qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-app-modal__qr {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 18px;
  background: #fff;
}

.product-app-modal h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-app-modal p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

body.product-app-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 34px !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
  }

  .hero p {
    font-size: 17px !important;
  }

  .products {
    grid-template-columns: 1fr;
  }
  .product-profile {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .product-image {
    height: auto;
  }

  .pager a,
  .pager span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    margin: 0 3px 8px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 29px !important;
  }

  .hero p {
    font-size: 16px !important;
  }
}

/* Migrated inline styles from products.html. */
.jiumao-products-inline-01 {
  background: #fff;
}

.jiumao-products-inline-02 {
  background: #fafafa;
}

.jiumao-products-inline-03 {
  margin-bottom: 15px;
}

.jiumao-products-inline-04 {
  color: var(--red);
}

.jiumao-products-inline-05 {
  background: #fafafa;
}

.jiumao-products-inline-06 {
  margin-bottom: 15px;
}

.jiumao-products-inline-07 {
  color: var(--red);
}

.jiumao-products-inline-08 {
  background: #fafafa;
}

.jiumao-products-inline-09 {
  margin-bottom: 15px;
}

.jiumao-products-inline-10 {
  color: var(--red);
}

.jiumao-products-inline-11 {
  background: #fafafa;
}

.jiumao-products-inline-12 {
  color: var(--red);
}

.jiumao-products-inline-13 {
  color: var(--red);
}

.jiumao-products-inline-14 {
  text-align: center;
  margin-top: 40px;
}

/* 新版补充模块仅用于 PC，移动端继续使用既有内容结构。 */
.products-catalog-title,
.products-catalog-subtitle,
.products-faq-eyebrow,
.products-faq-intro > p,
.product-card__price {
  display: none;
}

.product-card__footer {
  margin-top: auto;
}

@media (max-width: 900px) {
  .new-jiumao-page-products .products-faq-layout {
    display: flex;
    flex-direction: column;
  }

  .new-jiumao-page-products .products-faq-sidebar {
    display: contents;
  }

  .new-jiumao-page-products .products-faq-intro {
    order: 1;
  }

  .new-jiumao-page-products .jiumao-products-faq__list {
    order: 2;
  }

  .new-jiumao-page-products .jiumao-products-faq__action {
    order: 3;
  }
}

/* 二手优品页新版 PC 布局。 */
@media (min-width: 901px) {
  .new-jiumao-page-products main {
    background: #fafafa;
  }

  .new-jiumao-page-products .inner-banner {
    height: 375px;
    min-height: 375px;
    aspect-ratio: auto;
    background: #f5f5f5;
  }


  .new-jiumao-page-products .inner-banner__text {
    width: 600px;
    max-width: 600px;
    padding: 0;
  }

  .new-jiumao-page-products .inner-banner h1 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 36px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
  }

  .new-jiumao-page-products .inner-banner p {
    width: auto;
    max-width: 600px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
    color: #555;
    text-align: left;
  }

  .new-jiumao-page-products .inner-banner__image {
    object-fit: cover;
    object-position: right center;
  }

  .new-jiumao-page-products .jiumao-products-catalog {
    padding-top: 58px;
    padding-bottom: 80px;
  }

  .new-jiumao-page-products .products-catalog-title {
    display: block;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 0;
    color: #333;
  }

  .new-jiumao-page-products .products-catalog-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 21px;
    color: #999;
    text-align: center;
  }

  .new-jiumao-page-products .filter {
    gap: 16px;
    padding: 30px 0 36px;
  }

  .new-jiumao-page-products .filter button {
    min-width: 88px;
    height: 32px;
    padding: 0 20px;
    border-radius: 32px;
    font-size: 12px;
    line-height: 1;
  }

  .new-jiumao-page-products .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 0;
  }

  .new-jiumao-page-products .product-card {
    min-height: 390px;
    padding: 0 0 24px;
    border-radius: 12px;
    box-shadow: none;
  }

  .new-jiumao-page-products .product-image {
    min-height: 208px;
    border-radius: 0;
    background: #fff;
  }

  .new-jiumao-page-products .product-image img {
    object-fit: cover;
  }

  .new-jiumao-page-products .product-card h3,
  .new-jiumao-page-products .product-card > p,
  .new-jiumao-page-products .product-card__tags-fixed,
  .new-jiumao-page-products .product-card__footer-fixed {
    padding-right: 20px;
    padding-left: 20px;
  }

  .new-jiumao-page-products .product-card h3 {
    margin: 16px 0 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .new-jiumao-page-products .product-card > p {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #777;
  }

  .new-jiumao-page-products .product-card__tags-fixed {
    gap: 6px 4px;
    margin-top: 10px;
  }

  .new-jiumao-page-products .product-card__tag-fixed {
    min-height: 20px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #ff8f88;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
    color: var(--red);
    background: #fff;
  }

  .new-jiumao-page-products .product-card__footer-fixed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
  }

  .new-jiumao-page-products .product-card__price-fixed {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
  }

  .new-jiumao-page-products .product-card__price-fixed strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
  }

  .new-jiumao-page-products .detail-fixed {
    display: inline-flex;
    width: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--red);
    background: transparent;
  }

  .new-jiumao-page-products .detail-fixed:hover,
  .new-jiumao-page-products .detail-fixed:focus-visible {
    color: var(--red-700);
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .new-jiumao-page-products .pager {
    margin: 40px 0 0;
  }

  .new-jiumao-page-products .products-report-section {
    display: block;
    min-height: 338px;
    padding: 58px 0 60px;
    background: #111;
  }

  .new-jiumao-page-products .products-report-section h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .new-jiumao-page-products .products-report-section__intro {
    max-width: 760px;
    margin: 6px auto 0;
    font-size: 14px;
    line-height: 22px;
    color: #bbb;
    text-align: center;
  }

  .new-jiumao-page-products .products-report-grid {
    gap: 20px;
    margin-top: 40px;
  }

  .new-jiumao-page-products .products-report-section .dark-card {
    min-height: 118px;
    padding: 24px 40px;
    border-radius: 12px;
    background: #242424;
  }

  .new-jiumao-page-products .products-report-section .dark-card h3 {
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
  }

  .new-jiumao-page-products .products-report-section .dark-card p {
    font-size: 12px;
    line-height: 20px;
    color: #ddd;
  }

  .new-jiumao-page-products .jiumao-products-faq {
    min-height: 720px;
    padding: 76px 0 96px;
    background: #fff;
  }

  .new-jiumao-page-products .products-faq-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-areas: "sidebar list";
    gap: 0 100px;
    align-items: start;
  }

  .new-jiumao-page-products .products-faq-sidebar {
    grid-area: sidebar;
    padding-top: 14px;
  }

  .new-jiumao-page-products .products-faq-intro {
    padding-top: 0;
  }

  .new-jiumao-page-products .products-faq-eyebrow {
    display: inline-flex;
    min-width: 42px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 11px;
    line-height: 1;
    color: var(--red);
    background: var(--red-50);
  }

  .new-jiumao-page-products .products-faq-intro .title {
    margin: 14px 0 0;
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
  }

  .new-jiumao-page-products .products-faq-intro > p {
    display: block;
    max-width: 320px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 24px;
    color: #999;
  }

  .new-jiumao-page-products .jiumao-products-faq__list {
    grid-area: list;
    max-width: none;
    margin: 0;
  }

  .new-jiumao-page-products .jiumao-products-faq__item {
    margin-bottom: 20px;
    padding: 24px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
  }

  .new-jiumao-page-products .jiumao-products-faq__question {
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .new-jiumao-page-products .jiumao-products-faq__item .faq-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    font-size: 14px;
    line-height: 24px;
  }

  .new-jiumao-page-products .jiumao-products-faq__answer {
    margin-top: 14px;
    padding-left: 34px;
    font-size: 14px;
    line-height: 24px;
    color: #777;
  }

  .new-jiumao-page-products .jiumao-products-faq__answer a {
    margin-left: 8px;
    font-size: 14px;
  }

  .new-jiumao-page-products .jiumao-products-faq__action {
    margin-top: 32px;
    text-align: left;
  }

  .new-jiumao-page-products .jiumao-products-faq__action .btn-outline {
    display: inline-flex;
    width: 120px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 32px;
    font-size: 12px;
    line-height: 1;
  }
}
