/* ============================================
   productslist.css - 产品列表页专用样式
   对应页面：product_list（pageKey: product_list）
   ============================================ */

/* ===== 页面顶部横幅（page-hero） ===== */
.page-hero {
  position:relative; padding:180px 0 120px;
  background:linear-gradient(135deg,#151E2D 0%,#1e3a5f 50%,#1a4a7a 100%);
  color:#fff; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:url('/images/hero-banner.svg') center/cover no-repeat;
  opacity:.08; z-index:0; pointer-events:none;
}
.page-hero::after {
  content:''; position:absolute; top:-40%; right:-10%;
  width:600px; height:600px;
  background:radial-gradient(circle,rgba(37,99,235,.12) 0%,transparent 70%);
  border-radius:50%; z-index:0; pointer-events:none;
}
.page-hero .hero-inner { position:relative; z-index:2; text-align:center; }
.page-hero.hero-has-bg::after {
  content:''; position:absolute; inset:0;
  width:auto; height:auto; top:0; right:0;
  border-radius:0;
  background:linear-gradient(135deg,rgba(15,23,42,.85) 0%,rgba(15,23,42,.7) 50%,rgba(15,23,42,.5) 100%);
  z-index:1;
}
.page-hero .hero-breadcrumb { font-size:13px; color:rgba(255,255,255,.55); margin-bottom:12px; }
.page-hero .hero-breadcrumb a { color:rgba(255,255,255,.7); }
.page-hero .hero-breadcrumb a:hover { color:#fff; }
.page-hero h1 {
  font-size:clamp(1.8rem,3vw,2.6rem); font-weight:800;
  margin-bottom:12px; line-height:1.2;
}
.page-hero p {
  font-size:clamp(.95rem,1.3vw,1.05rem);
  color:rgba(255,255,255,.7); max-width:800px; margin:0 auto;
  line-height:1.7;
}

/* ===== 通用 Section ===== */
.section { padding:80px 0; position:relative; }
.section + .section::before {
  content:''; position:absolute; top:0; left:15%; right:15%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(37,99,235,.1),transparent);
  z-index:5; pointer-events:none;
}
.section-alt { background:var(--bg-gray); }
.section-dark { background:#151E2D; color:#fff; }
.section-blue { background:linear-gradient(135deg,#1e3a5f,#2563eb); color:#fff; }

.section-header { text-align:center; margin-bottom:50px; }
.section-tag {
  display:inline-block; padding:7px 22px; margin-bottom:16px;
  font-size:1.3rem; font-weight:800; letter-spacing:1.5px;
  color:var(--primary); background:rgba(37,99,235,.08);
  border-radius:50px;
}
.section-dark .section-tag { color:rgba(255,255,255,.8); background:rgba(255,255,255,.1); }
.section-title {
  font-size:clamp(1.6rem,2.5vw,2rem);
  font-weight:800; color:var(--text);
  margin-bottom:14px; line-height:1.25; position:relative;
}
.section-dark .section-title { color:#fff; }
.section-blue .section-title { color:#fff; }
.section-title::after {
  content:''; display:block;
  width:60px; height:4px;
  background:linear-gradient(90deg,var(--primary),var(--primary) 70%,#f59e0b 85%,#f59e0b);
  border-radius:2px; margin:16px auto 0; position:relative;
}
.section-title::before {
  content:''; position:absolute;
  width:8px; height:8px;
  background:#f59e0b;
  transform:rotate(45deg);
  border-radius:1.5px;
  left:calc(50% + 34px); top:calc(100% + 12px);
  z-index:1;
}
.section-blue .section-title::after { background:linear-gradient(90deg,rgba(255,255,255,.6),rgba(255,255,255,.6) 70%,rgba(255,255,255,.3),rgba(255,255,255,.3)); }
.section-blue .section-title::before { background:rgba(255,255,255,.4); }
.section-desc {
  color:var(--text-muted); font-size:1.05rem; line-height:1.8;
}
.section-dark .section-desc { color:rgba(255,255,255,.65); }
.section-blue .section-desc { color:rgba(255,255,255,.75); }

/* ===== Hub CTA 区段 ===== */
.hub-cta {
  margin: 60px 0 0; padding: 0;
  background: linear-gradient(135deg,#1e3a5f,#2563eb);
}
.hub-cta-inner {
  max-width: 1200px; margin: 0 auto; padding: 60px 40px;
  text-align:center; color:#fff;
}
.hub-cta-inner h2 { font-size:1.6rem; font-weight:800; margin-bottom:10px; }
.hub-cta-inner p { color:rgba(255,255,255,.75); margin-bottom:28px; }
.hub-cta-inner .btn-white {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px; font-size:1rem; font-weight:600;
  color:#151E2D; background:#fff; border-radius:8px;
  transition:all var(--transition);
}
.hub-cta-inner .btn-white:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(0,0,0,.2); }

/* ===== 列表空状态 ===== */
.list-empty {
  text-align:center; padding:80px 20px; color:var(--text-light);
}
.list-empty .empty-icon { font-size:3rem; margin-bottom:16px; opacity:.4; }
.list-empty p { font-size:1rem; }

/* ===== 淡入动画 ===== */
.fade-in { opacity:0; transform:translateY(20px); transition:all .6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ===== 栏目页交替图文布局（从 product.css 迁移） ===== */
.alt-row { padding: 80px 0; }
.alt-row-white { background: #fff; }
.alt-row-gray { background: #f8fafc; }
.alt-row-inner {
  display: flex; align-items: center; gap: 60px;
}
.alt-row-reverse { flex-direction: row-reverse; }
.alt-col-img { flex: 0 0 480px; max-width: 480px; }
.alt-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alt-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.alt-img-wrap:hover img { transform:scale(1.06); }
.alt-img-placeholder {
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; background:var(--bg-alt);
}
.alt-col-text { flex:1; min-width:0; }
.alt-title {
  font-size:1.6rem; font-weight:800; color:var(--text);
  margin:0 0 16px; line-height:1.3;
}
.alt-desc {
  font-size:1.1rem; line-height:1.8; color:#000000;
  margin:0 0 20px;
}
.alt-tags { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.alt-tag {
  display:inline-block; padding:6px 16px;
  font-size:.82rem; font-weight:500;
  color:var(--primary); background:rgba(37,99,235,.08);
  border-radius:50px; text-decoration:none; transition:all .2s;
}
.alt-tag:hover { background:var(--primary); color:#fff; }
.alt-actions { display:flex; gap:12px; flex-wrap:wrap; }
.alt-actions .btn-detail,
.alt-actions .btn-consult { padding:12px 24px; font-size:.9rem; }

/* 全局按钮基础样式 */
.btn-detail {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 18px; font-size:.85rem; font-weight:600;
  border-radius:6px; text-decoration:none; cursor:pointer;
  transition:all .25s; white-space:nowrap;
  color:#fff; background:var(--primary); border:none;
}
.btn-detail:hover {
  color:#fff; background:var(--primary-dark);
  transform:translateY(-1px); box-shadow:0 4px 12px rgba(37,99,235,.3);
}
.btn-consult {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 18px; font-size:.85rem; font-weight:600;
  border-radius:6px; text-decoration:none; cursor:pointer;
  transition:all .25s; white-space:nowrap;
  color:#fff; background:#07c160; border:none;
}
.btn-consult:hover { background:#06ad56; transform:translateY(-1px); box-shadow:0 4px 12px rgba(7,193,96,.35); }

/* ===== 产品系列网格（从 product.css 迁移） ===== */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-card { background:#fff; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; transition:box-shadow .2s,transform .2s; display:block; color:inherit; text-decoration:none; }
.product-card:hover { box-shadow:0 8px 30px rgba(0,0,0,.08); transform:translateY(-3px); }
.product-card-img { width:100%; aspect-ratio:1/1; overflow:hidden; background:#f8fafc; display:flex; align-items:center; justify-content:center; position:relative; }
.product-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease, filter .4s ease; }
.product-card:hover .product-card-img img { transform:scale(1.1); filter:brightness(1.08); }
.product-card-img::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(37,99,235,0) 40%, rgba(37,99,235,0.08) 100%); opacity:0; transition:opacity .4s ease; }
.product-card:hover .product-card-img::after { opacity:1; }
.product-card-img-placeholder { font-size:1.1rem; font-weight:700; color:#94a3b8; text-align:center; padding:20px; }
.product-card-body { padding:16px 16px 20px; }
.product-card-body h3 { font-size:1rem; font-weight:700; color:#1e293b; margin:0 0 8px; }
.product-card-body p { font-size:.82rem; color:#64748b; line-height:1.6; margin:0 0 14px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-body .btn-sm { display:inline-block; font-size:.8rem; font-weight:600; color:#2563eb; transition:all .2s; }
.product-card-body .btn-sm:hover { color:#1d4ed8; }
.product-footnote { grid-column:1/-1; text-align:center; color:#94a3b8; font-size:.85rem; margin:0; padding:12px 0 0; }
@media(max-width:900px) { .products-grid { grid-template-columns:repeat(2,1fr); gap:16px; } }
@media(max-width:480px) { .products-grid { grid-template-columns:1fr; gap:14px; } }

/* ===== 响应式 - 产品列表页 ===== */
@media(max-width:1024px) {
  .regions-grid { grid-template-columns:1fr 1fr; }
  .scenes-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:768px) {
  .section { padding:50px 0; }
  .regions-grid { grid-template-columns:1fr; }
  .scenes-grid { grid-template-columns:1fr; }
  .case-grid { grid-template-columns:1fr; }
  .case-row.reverse .case-img { order:1; }
  .case-row.reverse .case-text { order:2; }
  .case-img img { height:220px; }
}
@media(max-width:480px) {
  .section-tag { font-size:1.1rem; padding:5px 16px; }
}

/* ===== Hero 响应式 ===== */
@media(max-width:768px) {
  .page-hero { padding:110px 0 50px; }
  .hub-cta-inner { padding:40px 24px; }
}
@media(max-width:480px) {
  .hub-cta-inner h2 { font-size:1.2rem; }
}

/* ===== 交替布局响应式 ===== */
@media(max-width:992px) {
  .alt-row-inner { flex-direction:column !important; gap:32px; }
  .alt-col-img { flex:0 0 100%; max-width:100%; }
  .alt-row { padding:50px 0; }
  .alt-title { font-size:1.3rem; }
}
@media(max-width:480px) {
  .alt-row { padding:36px 0; }
  .alt-actions { flex-direction:column; align-items:stretch; }
  .alt-actions .btn-detail,
  .alt-actions .btn-consult { justify-content:center; }
}

/* ============================================
   案例展示区（product_list_case 模板）
   高端大气上档次案例画廊
   ============================================ */
.case-gallery {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}
.case-gallery::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.case-gallery::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 头部 */
.case-gallery-header {
  text-align: center;
  margin-bottom: 55px;
  position: relative;
  z-index: 1;
}
.case-gallery-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.case-gallery-title::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px;
  margin: 18px auto 0;
}
.case-gallery-desc {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* 案例网格 */
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* 卡片 */
.case-gallery-card {
  perspective: 1000px;
}
.case-gallery-card-inner {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: all .45s cubic-bezier(.22,.61,.36,1);
  position: relative;
  border: 1px solid #eef2f6;
}
.case-gallery-card-inner:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.18);
}

/* 角落装饰 */
.case-gallery-corner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent #fff transparent transparent;
  transition: border-color .4s ease;
  z-index: 2;
  opacity: 0;
}
.case-gallery-card-inner:hover .case-gallery-corner {
  border-color: transparent rgba(37,99,235,.06) transparent transparent;
  opacity: 1;
}

/* 图片区域 */
.case-gallery-img-link { display: block; text-decoration: none; }
.case-gallery-img {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #f1f5f9;
}
.case-gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.case-gallery-card-inner:hover .case-gallery-img img {
  transform: scale(1.08);
}
.case-gallery-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9;
}

/* 悬停遮罩 */
.case-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.6) 0%, rgba(37,99,235,.4) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .4s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.case-gallery-card-inner:hover .case-gallery-overlay { opacity: 1; }
.case-gallery-view {
  padding: 10px 28px;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  font-size: .88rem; font-weight: 600;
  border-radius: 50px;
  transform: translateY(12px) scale(.92);
  transition: all .35s cubic-bezier(.22,.61,.36,1);
  letter-spacing: .5px;
}
.case-gallery-card-inner:hover .case-gallery-view {
  transform: translateY(0) scale(1);
}

/* 内容区 */
.case-gallery-body {
  padding: 22px 24px 20px;
  position: relative;
}

/* 图片内元信息（项目属地 + 日期） */
.case-gallery-img-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.case-gallery-img-meta > * { pointer-events: auto; }
.case-gallery-location {
  display: inline-block;
  padding: 4px 12px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 6px;
  letter-spacing: .5px;
  box-shadow: 0 2px 10px rgba(37,99,235,.35);
}
.case-gallery-date {
  display: inline-block;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,.5);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.case-gallery-title-sm {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.case-gallery-title-sm a {
  color: #0f172a;
  text-decoration: none;
  transition: color .3s;
}
.case-gallery-title-sm a:hover { color: #2563eb; }
.case-gallery-summary {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-gallery-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.case-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: all .3s;
}
.case-gallery-link svg { transition: transform .3s; }
.case-gallery-link:hover {
  gap: 10px;
  color: #1d4ed8;
}
.case-gallery-link:hover svg { transform: translateX(4px); }

/* ===== 分页 ===== */
.case-gallery-pagination {
  margin-top: 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.case-gallery-pagi-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #eef2f6;
}
.case-gallery-pagi-btn,
.case-gallery-pagi-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 4px;
  font-size: .88rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-radius: 10px;
  transition: all .25s;
  border: 1px solid transparent;
}
.case-gallery-pagi-btn:hover,
.case-gallery-pagi-num:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #2563eb;
}
.case-gallery-pagi-num.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(37,99,235,.3);
}
.case-gallery-pagi-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  font-size: .82rem;
  color: #94a3b8;
  letter-spacing: 2px;
}
.case-gallery-pagi-info {
  margin-top: 16px;
  font-size: .85rem;
  color: #94a3b8;
}

/* ===== 空状态 ===== */
.case-gallery-empty {
  text-align: center;
  padding: 80px 20px;
}
.case-gallery-empty-icon {
  margin-bottom: 20px;
  opacity: .4;
}
.case-gallery-empty p {
  font-size: 1rem;
  color: #94a3b8;
}

/* ===== CTA 区 ===== */
.case-gallery-cta {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a4a7a 50%, #2563eb 100%);
  overflow: hidden;
}
.case-gallery-cta-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-banner.svg') center/cover no-repeat;
  opacity: .06;
  pointer-events: none;
}
.case-gallery-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
}
.case-gallery-cta-inner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.3;
}
.case-gallery-cta-inner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 32px;
}
.case-gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all .35s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.case-gallery-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  gap: 12px;
}
.case-gallery-cta-btn svg { transition: transform .3s; }
.case-gallery-cta-btn:hover svg { transform: translateX(4px); }

/* ===== 淡入动画 ===== */
@keyframes galleryFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.case-gallery-card:nth-child(1) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; }
.case-gallery-card:nth-child(2) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .08s; }
.case-gallery-card:nth-child(3) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .16s; }
.case-gallery-card:nth-child(4) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .24s; }
.case-gallery-card:nth-child(5) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .32s; }
.case-gallery-card:nth-child(6) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .40s; }
.case-gallery-card:nth-child(7) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .48s; }
.case-gallery-card:nth-child(8) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .56s; }
.case-gallery-card:nth-child(9) .case-gallery-card-inner { animation: galleryFadeUp .5s ease-out both; animation-delay: .64s; }

/* ===== 响应式 ===== */
@media(max-width: 992px) {
  .case-gallery { padding: 60px 0 70px; }
  .case-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media(max-width: 640px) {
  .case-gallery { padding: 40px 0 50px; }
  .case-gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .case-gallery-body { padding: 18px 18px 16px; }
  .case-gallery-pagi-inner { gap: 4px; padding: 6px 8px; }
  .case-gallery-pagi-btn,
  .case-gallery-pagi-num { min-width: 36px; height: 36px; font-size: .82rem; }
  .case-gallery-cta { padding: 50px 0; }
  .case-gallery-cta-btn { padding: 14px 28px; font-size: .92rem; }
}
