/* ========== Showcase Page Styles ========== */
/* 产品展示页：参考图片布局还原 */

/* ========== Hero Banner (首焦横幅) ========== */
.showcase-hero {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
  display: flex;
  align-items: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.showcase-hero-inner {
  max-width: 85%;
  margin: 0 auto;
  padding: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.showcase-hero-left {
  flex: 1;
  max-width: 480px;
}
.showcase-hero-left .hero-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.showcase-hero-left h1, .showcase-hero-left h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 42px;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 16px;
}
.showcase-hero-left p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 36px;
}
.showcase-hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.showcase-hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.showcase-hero-right img {
  max-width: 420px;
  width: 100%;
  object-fit: contain;
}

/* ========== Section Common ========== */
.showcase-section {
  max-width: 85%;
  margin: 0 auto;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.showcase-section-header .section-label {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid);
  font-weight: 400;
  margin-bottom: 8px;
}
.showcase-section-header h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 32px;
  color: var(--color-black);
}

/* ========== Product Grid (2×3) ========== */
.showcase-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.showcase-product-card {
  background: var(--color-gray-light);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}
.showcase-product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.showcase-product-card .card-img-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.showcase-product-card .card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.showcase-product-card .card-en-label {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--color-gray-mid);
  font-weight: 400;
  margin-bottom: 6px;
}
.showcase-product-card .card-cn-title {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 18px;
  color: var(--color-black);
  margin-bottom: 8px;
}
.showcase-product-card .card-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}
.showcase-product-card .card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.showcase-product-card .btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  background: #fff;
  transition: all 0.3s;
  text-decoration: none;
}
.showcase-product-card .btn-learn-more:hover {
  background: var(--color-primary-alpha);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.showcase-product-card .btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--color-primary);
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 95, 251, 0.25);
}
.showcase-product-card .btn-buy:hover {
  background: #0E4BDB;
  box-shadow: 0 4px 12px rgba(20, 95, 251, 0.35);
}

/* ========== Featured Banner (通栏配件横幅) ========== */
.showcase-featured-banner {
  max-width: 85%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-featured-inner {
  background: linear-gradient(135deg, #1a2332 0%, #2a3a4e 100%);
  border-radius: 16px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  position: relative;
}
.showcase-featured-left {
  flex: 1;
  max-width: 400px;
  position: relative;
  z-index: 2;
}
.showcase-featured-left h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.showcase-featured-left p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.showcase-featured-right {
  flex: 1.5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 2;
}
.showcase-featured-right img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

/* ========== Brand Section (品牌展示3卡) ========== */
.showcase-brand-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 24px;
}
.showcase-brand-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: transform 0.3s;
}
.showcase-brand-card:hover { transform: translateY(-3px); }
.showcase-brand-card .brand-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-brand-card:hover .brand-bg { transform: scale(1.05); }
.showcase-brand-card .brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.showcase-brand-card .brand-content {
  position: relative;
  z-index: 2;
}
.showcase-brand-card .brand-content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.showcase-brand-card .brand-content p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.showcase-brand-card:first-child {
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.showcase-brand-card:first-child .brand-content {
  text-align: center;
}
.showcase-brand-card:first-child .brand-content h4 {
  color: var(--color-black);
  font-size: 22px;
}
.showcase-brand-card:first-child .brand-content p {
  color: #888;
}

/* ========== Industry Application (行业应用) ========== */
.showcase-industry {
  max-width: 85%;
  margin: 0 auto;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-industry-inner {
  display: flex;
  align-items: stretch;
  gap: 40px;
}
.showcase-industry-left {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-industry-left .section-label {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-gray-mid);
  font-weight: 400;
  margin-bottom: 12px;
}
.showcase-industry-left h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 28px;
  color: var(--color-black);
  margin-bottom: 16px;
  line-height: 1.3;
}
.showcase-industry-left p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 28px;
}
.showcase-industry-right { flex: 1; }
/* 行业应用循环滑动：JS（js/pages/industry-carousel.js）初始化并驱动 */
.industry-carousel { overflow: hidden; position: relative; }
.industry-track { display: flex; gap: 20px; width: max-content; }
.industry-track .showcase-industry-card { box-sizing: border-box; }
.showcase-industry-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  cursor: pointer;
}
.showcase-industry-card .ind-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-industry-card:hover .ind-card-bg { transform: scale(1.08); }
.showcase-industry-card .ind-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.showcase-industry-card .ind-card-content {
  position: relative;
  z-index: 2;
}
.showcase-industry-card .ind-card-content h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.showcase-industry-card .ind-card-content span {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ========== Service Features (服务功能3卡) ========== */
.showcase-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.showcase-service-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.showcase-service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.showcase-service-card .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--color-black);
}
.showcase-service-card .service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.showcase-service-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
  margin-bottom: 10px;
}
.showcase-service-card p {
  font-family: var(--font-body);
  font-weight: var(--fw-desc);
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}
.showcase-service-card .service-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
  text-decoration: none;
}
.showcase-service-card .service-link:hover { gap: 10px; }
.showcase-service-card .service-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .showcase-section, .showcase-industry { padding-left: 40px; padding-right: 40px; }
  .showcase-featured-banner { padding-left: 40px; padding-right: 40px; }
  .showcase-hero-inner { padding: 40px; }
  .showcase-hero-left h1, .showcase-hero-left h2 { font-size: 34px; }
  .showcase-product-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-brand-grid { grid-template-columns: 1fr 1fr; }
  .showcase-brand-card:first-child { display: none; }
  .showcase-industry-inner { flex-direction: column; }
  .showcase-industry-left { flex: none; }
}
@media (max-width: 768px) {
  .showcase-section, .showcase-industry { padding-left: 24px; padding-right: 24px; }
  .showcase-featured-banner { padding-left: 24px; padding-right: 24px; }
  .showcase-hero-inner { padding: 32px 24px; flex-direction: column; text-align: center; }
  .showcase-hero-left { max-width: 100%; }
  .showcase-hero-left h1, .showcase-hero-left h2 { font-size: 28px; }
  .showcase-hero-btns { justify-content: center; }
  .showcase-product-grid { grid-template-columns: 1fr; }
  .showcase-brand-grid { grid-template-columns: 1fr; }
  .showcase-industry-right { grid-template-columns: 1fr; }
  .showcase-service-grid { grid-template-columns: 1fr; }
  .showcase-featured-inner { flex-direction: column; padding: 40px 32px; }
}


/* ============================================================
   Hero Carousel (大类产品轮播) + Banner Page 焦点标签
   ============================================================ */
.showcase-carousel { position: relative; width: 100%; min-height: 520px; }
.showcase-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center;
}
.showcase-slide.active { opacity: 1; z-index: 1; }
.showcase-slide .showcase-hero-left h1, .showcase-slide .showcase-hero-left h2, .showcase-hero-left h2,
.showcase-slide .showcase-hero-left p,
.showcase-slide .showcase-hero-btns {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.showcase-slide.active .showcase-hero-left h1, .showcase-hero-left h2 { opacity: 1; transform: none; transition-delay: .2s; }
.showcase-slide.active .showcase-hero-left p { opacity: 1; transform: none; transition-delay: .35s; }
.showcase-slide.active .showcase-hero-btns { opacity: 1; transform: none; transition-delay: .5s; }

/* Banner Page —— 右侧竖排大类标签，焦点态复刻首页 banner（浅色背景适配） */
.showcase-hero .banner_page { position: absolute; z-index: 3; }
@media (min-width: 992px) {
  .showcase-hero .banner_page { top: 50%; transform: translateY(-50%); right: 0; text-align: right; padding-right: 16px; }
}
@media (max-width: 991px) {
  .showcase-hero .banner_page { bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; width: 100%; }
  .showcase-hero { padding-bottom: 10px; }
}
.showcase-hero .banner_page div { margin-bottom: 10px; transition: all .3s linear; }
@media (max-width: 991px) { .showcase-hero .banner_page div { margin: 0 6px; } }
.showcase-hero .banner_page span {
  font-size: 8px; opacity: .45; position: relative;
  color: var(--color-black); cursor: pointer;
  display: inline-block; padding-bottom: 5px; transition: opacity .3s linear;
}
.showcase-hero .banner_page span::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background-color: var(--color-primary); transition: width .3s linear;
}
.showcase-hero .banner_page .on span { opacity: 1; }
.showcase-hero .banner_page .on span::after { width: 100%; animation: indProgress 5s linear; }

/* ============================================================
   核心产品：大类筛选 + 细分筛选 + 搜索 + 卡片网格
   ============================================================ */
.sp-filter-bar, .sp-sub-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.sp-filter-bar { border-bottom: 1px solid var(--line, #e2e6ec); padding-bottom: 14px; margin-bottom: 18px; }
.sp-sub-bar { margin-bottom: 24px; }

/* 筛选按钮：与顶部导航一致的下划线风格 */
.sp-chip {
  display: inline-flex; align-items: center;
  padding: 4px 2px; border: none; border-radius: 0;
  background: transparent; color: #3A3F48; font-size: 15px; cursor: pointer;
  position: relative; transition: color .2s;
}
.sp-chip::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 3px;
  border-radius: 2px; background: var(--color-primary);
  transition: width .3s cubic-bezier(.16,1,.3,1), left .3s cubic-bezier(.16,1,.3,1);
}
.sp-chip:hover { color: var(--color-primary); }
.sp-chip:hover::after, .sp-chip.active::after { width: 100%; left: 0; }
.sp-chip.active { color: var(--color-primary); font-weight: 700; }
.sp-sub-bar .sp-chip { font-size: 14px; }
/* 细分类：不显示选中下划线，仅保留变色 */
.sp-sub-bar .sp-chip::after { display: none; }

/* 搜索框：参考 contact 页文本框风格（下划线式），宽度与上方筛选行一致 */
.sp-search-row { display: block; margin-bottom: 32px; }
.sp-search-box { position: relative; width: 100%; }
.sp-search-box > svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted, #999); pointer-events: none; }
.sp-search-box input {
  width: 100%; padding: 12px 0 12px 26px;
  background: transparent; border: none; border-bottom: 1px solid var(--line, #e2e6ec);
  border-radius: 0; font-size: 15px; font-family: var(--font-body);
  color: var(--ink, var(--color-black)); outline: none; transition: border-color .2s;
}
.sp-search-box input::placeholder { color: var(--muted, #999); }
.sp-search-box input:focus { border-bottom-color: var(--navy, var(--color-primary)); box-shadow: none; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.sp-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #eceef1; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit; height: 100%;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.sp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,95,251,.10); border-color: var(--color-primary); }
.sp-card-img { height: 200px; background: #f5f6f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px; transition: transform .4s ease; }
.sp-card:hover .sp-card-img img { transform: scale(1.05); }
.sp-img-ph::before { content: '暂无图片'; color: #adb5bd; font-size: 13px; }
.sp-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.sp-card-brand { font-size: 11px; font-weight: 600; color: var(--color-primary); letter-spacing: .5px; margin-bottom: 4px; }
.sp-card-name { font-size: 16px; font-weight: 700; color: var(--color-black); margin: 0 0 8px; line-height: 1.3; }
.sp-card-summary {
  font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sp-card-tag { padding: 3px 10px; background: var(--color-primary-alpha); color: var(--color-primary); border-radius: 4px; font-size: 11px; }
.sp-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f1f3f5; }
.sp-detail-btn { font-size: 14px; font-weight: 600; color: var(--color-primary); }
.sp-card-footer svg { width: 16px; height: 16px; color: var(--color-primary); transition: transform .25s ease; }
.sp-card:hover .sp-card-footer svg { transform: translateX(4px); }
.sp-empty { text-align: center; padding: 60px 20px; color: #868e96; }
.sp-empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .4; }
.sp-empty p { font-size: 16px; font-weight: 500; color: #495057; margin: 0 0 8px; }

@media (max-width: 768px) {
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
  .sp-search-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .sp-search-box { flex: 1; }
}
@media (max-width: 480px) { .sp-grid { grid-template-columns: 1fr; } }
