@charset "utf-8";
/**
 * product-new.css - 产品页面极简风格
 * 设计理念: 与首页统一 - 极简留白 + 大字体轻量化 + 克制微交互
 */

/* ========== 0. 防溢出基础 ========== */
html {
  overflow-x: hidden;
}

/* ========== 1. Page Banner - 页面横幅 ========== */
.page-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f8f9fa;
}
.page-banner__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-align: center;
  padding: 20px;
}
.page-banner__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.page-banner__subtitle {
  font-size: 15px;
  font-weight: 300;
  opacity: 0.9;
  margin: 0;
}

/* ========== 2. Breadcrumb - 面包屑 ========== */
.breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 18px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb-nav .home-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  margin-right: 2px;
}
.breadcrumb-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-nav a:hover {
  color: var(--color-primary, #EF3B1B);
}
.breadcrumb-nav .separator {
  color: #ccc;
  font-size: 12px;
}
.breadcrumb-nav .current {
  color: #333;
}

/* ========== 3. Product Section - 产品列表区 ========== */
.product-section {
  background: #f8f9fa;
  padding: 50px 0 70px;
}

/* ========== 4. Sidebar - 极简侧边栏 ========== */
.sidebar {
  position: sticky;
  top: 20px;
}
.sidebar-block {
  background: #fff;
  margin-bottom: 20px;
}
.sidebar-block:last-child {
  margin-bottom: 0;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.sidebar-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary, #EF3B1B);
}
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.sidebar-list li {
  margin: 0;
}
.sidebar-list a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-list a:hover {
  color: var(--color-primary, #EF3B1B);
  padding-left: 25px;
  background: #fafafa;
}

/* ========== 4.1 Accordion - 手风琴 ========== */
.accordion-list {
  padding: 0;
}
.accordion-item {
  border-bottom: 1px solid #f0f0f0;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.3s ease;
  user-select: none;
}
.accordion-header:hover {
  background: #fafafa;
  color: var(--color-primary, #EF3B1B);
}
.accordion-header span,
.accordion-link {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.accordion-arrow {
  width: 16px;
  height: 16px;
  stroke: #999;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  box-sizing: content-box;
}
.accordion-arrow:hover {
  stroke: var(--color-primary, #EF3B1B);
}
.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  stroke: var(--color-primary, #EF3B1B);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fafafa;
}
.accordion-item.active .accordion-body {
  max-height: 500px;
}
.accordion-body a {
  display: block;
  padding: 11px 20px 11px 35px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  border-top: 1px solid #f0f0f0;
}
.accordion-body a:first-child {
  border-top: none;
}
.accordion-body a:hover {
  color: var(--color-primary, #EF3B1B);
  padding-left: 40px;
}
.accordion-body a.current,
.accordion-link.current {
  color: var(--color-primary, #EF3B1B);
  font-weight: 500;
}
.accordion-body a.current {
  background: #fff;
  border-left: 2px solid var(--color-primary, #EF3B1B);
}

/* ========== 5. Product Card - 产品卡片 ========== */
.product-card {
  background: #fff;
  transition: box-shadow 0.4s ease;
}
.product-card:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f8f9fa;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.03);
}
.product-info {
  padding: 18px 15px;
  text-align: left;
}
.product-title {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.product-desc {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-title {
  color: var(--color-primary, #EF3B1B);
}

/* ========== 6. Pagination - 分页 ========== */
.pagination-wrap {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.pagination a:hover {
  color: var(--color-primary, #EF3B1B);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.pagination .page-num-current,
.pagination .active {
  background: var(--color-primary, #EF3B1B);
  color: #fff;
}

/* ========== 7. Empty State - 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 30px;
  background: #fff;
}
.empty-state p {
  font-size: 15px;
  color: #999;
  margin: 0;
}

/* ========== 8. Detail Section - 详情页 ========== */
.detail-section {
  background: #fff;
  padding: 50px 0;
  overflow: hidden;
}
.detail-section > .container {
  overflow: hidden;
}

/* ========== 9. Gallery - 图片画廊 ========== */
.gallery {
  background: #f8f9fa;
  padding: 20px;
}
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  margin-bottom: 15px;
  overflow: hidden;
  background: #fff;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.gallery-thumbs-wrap {
  position: relative;
  padding: 0 35px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumb {
  flex: 0 0 80px;
  width: 80px;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  background: #fff;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--color-primary, #EF3B1B);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-primary, #EF3B1B);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}
.gallery-nav:hover {
  background: #d63418;
  transform: translateY(-50%) scale(1.1);
}
.gallery-nav--prev { left: 0; }
.gallery-nav--next { right: 0; }

/* ========== 10. Detail Info - 产品信息 ========== */
.detail-info {
  padding: 10px 0;
  overflow: hidden;
  max-width: 100%;
}
.detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin: 0 0 20px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.detail-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary, #EF3B1B);
  margin-bottom: 25px;
}
.detail-desc {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin: 0 0 25px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.detail-meta {
  display: flex;
  gap: 25px;
  font-size: 13px;
  color: #999;
  margin-bottom: 30px;
}
.detail-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 100%;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 35px;
  background: var(--color-primary, #EF3B1B);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-primary:hover {
  background: #d63418;
  box-shadow: 0 8px 25px rgba(239, 59, 27, 0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 35px;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-outline:hover {
  background: var(--color-primary, #EF3B1B);
  border-color: var(--color-primary, #EF3B1B);
  color: #fff;
}

/* ========== 11. Content Section - 内容区 ========== */
.content-section {
  background: #f8f9fa;
  padding: 50px 0 70px;
}
.content-box {
  background: #fff;
  padding: 40px;
  margin-bottom: 25px;
}
.content-title {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.content-body {
  font-size: 15px;
  line-height: 2;
  color: #555;
}
.content-body img {
  max-width: 100%;
  height: auto;
}
.content-body p {
  margin-bottom: 20px;
}

/* ========== 12. Prev-Next Navigation ========== */
.prev-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 20px 30px;
  margin-bottom: 25px;
  font-size: 14px;
}
.prev-next .prev,
.prev-next .next {
  flex: 1;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prev-next .prev a,
.prev-next .next a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.prev-next .prev a:hover,
.prev-next .next a:hover {
  color: var(--color-primary, #EF3B1B);
}
.prev-next .next {
  text-align: right;
}
.prev-next .back-list {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #EF3B1B);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.prev-next .back-list:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(239, 59, 27, 0.3);
}
.prev-next .back-list svg {
  width: 20px;
  height: 20px;
}

/* ========== 13. Contact Form - 留言表单 ========== */
.contact-form {
  background: #fff;
  padding: 40px;
}
.form-title {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary, #EF3B1B);
  background: #fff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 50px;
  background: var(--color-primary, #EF3B1B);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form button[type="submit"]:hover {
  background: #d63418;
  box-shadow: 0 8px 25px rgba(239, 59, 27, 0.25);
}

/* 验证码样式 */
.captcha-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-group input {
  flex: 1;
}
.captcha-group img {
  height: 42px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ========== 14. Sidebar Responsive ========== */
.sidebar-mobile {
  display: none;
  margin-top: 30px;
}
.sidebar-mobile .sidebar-block {
  background: #fff;
  margin-bottom: 20px;
}
.sidebar-mobile .sidebar-block:last-child {
  margin-bottom: 0;
}

/* ========== 15. Responsive ========== */
@media (max-width: 1199.98px) {
  .page-banner {
    height: 280px;
  }
  .product-section,
  .detail-section,
  .content-section {
    padding: 45px 0 60px;
  }
  .gallery-thumb {
    flex: 0 0 70px;
    width: 70px;
  }
}

@media (max-width: 991.98px) {
  .page-banner {
    height: 240px;
  }
  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .sidebar-block {
    margin-bottom: 0;
  }
  .sidebar-desktop {
    display: none;
  }
  .sidebar-mobile {
    display: block;
  }
  .content-box,
  .contact-form {
    padding: 30px;
  }
  .prev-next {
    flex-wrap: wrap;
    text-align: center;
  }
  .prev-next .prev,
  .prev-next .next {
    width: 100%;
    text-align: center !important;
  }
  .prev-next .back-list {
    order: -1;
    margin-bottom: 15px;
  }
}

@media (max-width: 767.98px) {
  .page-banner {
    height: 200px;
  }
  .page-banner__title {
    font-size: 1.5rem;
  }
  .breadcrumb-nav {
    padding: 12px 0;
    font-size: 12px;
  }
  .product-section,
  .detail-section,
  .content-section {
    padding: 35px 0 50px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-title {
    padding: 15px 18px;
    font-size: 15px;
  }
  .sidebar-list a {
    padding: 9px 18px;
    font-size: 13px;
  }
  .gallery {
    padding: 15px;
  }
  .gallery-thumbs-wrap {
    padding: 0 30px;
  }
  .gallery-thumb {
    flex: 0 0 60px;
    width: 60px;
  }
  .gallery-nav {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .detail-title {
    font-size: 1.3rem;
  }
  .detail-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 25px;
  }
  .content-box,
  .contact-form {
    padding: 25px 20px;
  }
  .content-title,
  .form-title {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .prev-next {
    padding: 18px 20px;
    font-size: 13px;
  }
  .pagination-wrap {
    margin-top: 35px;
  }
  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .page-banner {
    height: 160px;
  }
  .page-banner__title {
    font-size: 1.25rem;
  }
  .page-banner__subtitle {
    font-size: 13px;
  }
  .gallery-thumbs-wrap {
    padding: 0 25px;
  }
  .gallery-thumb {
    flex: 0 0 55px;
    width: 55px;
  }
  .gallery-nav {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .detail-meta {
    flex-direction: column;
    gap: 8px;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 12px 15px;
  }
}
