/* ============================================
   productslist.css - 产品列表 / 案例展示页深色样式
   配合 public/css/dark.css 使用（pageKey: product_list）
   对应模板：product_list.html / product_list_case.html
   ============================================ */

.pl-page a, .cs-page a { text-decoration: none; }

/* ===== 分类导航 ===== */
.pl-nav-sec { padding-bottom: 0; }
.pl-nav {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.pl-nav-col {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; transition: all .35s ease;
}
.pl-nav-col:hover { border-color: rgba(255,92,51,.45); transform: translateY(-4px); }
.pl-nav-main {
  display: inline-block; font-size: 1.02rem; font-weight: 700; color: var(--title-color);
  margin-bottom: 12px; transition: color .25s ease;
}
.pl-nav-main:hover { color: var(--accent2); }
.pl-nav-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-sub {
  display: inline-block; font-size: .8rem; color: var(--muted); background: var(--card-2);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
  transition: all .25s ease;
}
.pl-sub:hover { color: #fff; background: var(--accent); border-color: transparent; }

/* ===== 产品网格 ===== */
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pl-card { display: flex; flex-direction: column; overflow: hidden; }
.pl-media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--card-2);
}
.pl-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.pl-card:hover .pl-media img { transform: scale(1.07); }
.pl-media-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: rgba(255,184,107,.32);
  background: linear-gradient(135deg, #1c2128 0%, #10151d 100%);
}
.pl-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.pl-name { font-size: 1.06rem; font-weight: 700; line-height: 1.45; margin: 0 0 10px; }
.pl-name a { color: var(--title-color); transition: color .25s ease; }
.pl-name a:hover { color: var(--accent2); }
.pl-desc {
  font-size: .88rem; color: var(--body-color); line-height: 1.75; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pl-tag {
  font-size: .76rem; color: var(--accent2); background: rgba(255,184,107,.1);
  border: 1px solid rgba(255,184,107,.22); padding: 3px 10px; border-radius: 999px;
  transition: all .25s ease;
}
.pl-tag:hover { background: var(--accent); color: #fff; border-color: transparent; }
.pl-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: .86rem; font-weight: 600; color: var(--accent); transition: color .25s ease;
}
.pl-more svg { width: 15px; height: 15px; transition: transform .3s ease; }
.pl-more:hover { color: var(--accent2); }
.pl-more:hover svg { transform: translateX(4px); }

/* ===== 案例网格 ===== */
.cs-sec { padding-top: 70px; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cs-card { display: flex; flex-direction: column; overflow: hidden; }
.cs-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--card-2);
}
.cs-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.cs-card:hover .cs-media img { transform: scale(1.06); }
.cs-media-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800; color: rgba(255,184,107,.28);
  background: linear-gradient(135deg, #1c2128 0%, #10151d 100%);
}
.cs-ov {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,17,23,.05) 0%, rgba(13,17,23,.58) 100%);
  transition: background .4s ease;
}
.cs-card:hover .cs-ov {
  background: linear-gradient(180deg, rgba(255,92,51,.18) 0%, rgba(13,17,23,.78) 100%);
}
.cs-meta {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cs-loc {
  font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #e5471d);
  box-shadow: 0 4px 14px rgba(255,92,51,.35);
}
.cs-date {
  font-size: .76rem; color: #e6edf3; padding: 4px 10px; border-radius: 8px;
  background: rgba(13,17,23,.6); border: 1px solid rgba(230,237,243,.18);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cs-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.cs-title { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.cs-title a { color: var(--title-color); transition: color .25s ease; }
.cs-title a:hover { color: var(--accent2); }
.cs-sum {
  font-size: .88rem; color: var(--body-color); line-height: 1.75; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cs-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--accent);
  background: none; border: none; transition: all .25s ease;
}
.cs-link svg { width: 15px; height: 15px; transition: transform .3s ease; }
.cs-link:hover { color: var(--accent2); }
.cs-link:hover svg { transform: translateX(4px); }

/* 首屏首个案例：通栏大图 */
.cs-featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.cs-featured .cs-media { flex: 1.15; aspect-ratio: auto; min-height: 360px; }
.cs-featured .cs-body { flex: 1; justify-content: center; padding: 40px 42px; }
.cs-featured .cs-title { font-size: 1.4rem; }
.cs-featured .cs-sum { -webkit-line-clamp: 3; }

/* ===== 分页 ===== */
.pl-pagination { margin-top: 54px; text-align: center; }
.pl-pagi-inner {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.pl-pagi-btn, .pl-pagi-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 6px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  border: 1px solid transparent; border-radius: 10px; transition: all .25s ease;
}
.pl-pagi-btn svg { width: 16px; height: 16px; }
.pl-pagi-btn:hover, .pl-pagi-num:hover { background: var(--card-2); border-color: var(--border); color: var(--accent2); }
.pl-pagi-num.is-active {
  background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff;
  box-shadow: 0 6px 18px rgba(255,92,51,.35);
}
.pl-pagi-dots {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 40px; color: var(--muted); letter-spacing: 2px;
}
.pl-pagi-info { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ===== 空状态 ===== */
.pl-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.pl-empty svg { width: 56px; height: 56px; opacity: .4; margin-bottom: 16px; }
.pl-empty p { margin: 0; font-size: 1rem; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-featured { flex-direction: column; }
  .cs-featured .cs-media { min-height: 0; aspect-ratio: 16 / 10; }
  .cs-featured .cs-body { padding: 22px 24px 24px; }
  .cs-featured .cs-title { font-size: 1.15rem; }
  .cs-sec { padding-top: 48px; }
}
@media (max-width: 640px) {
  .pl-nav { grid-template-columns: 1fr; }
  .pl-grid { grid-template-columns: 1fr; gap: 16px; }
  .pl-body { padding: 18px 18px 20px; }
  .cs-body { padding: 18px 18px 20px; }
  .pl-pagi-inner { gap: 4px; padding: 6px 8px; }
  .pl-pagi-btn, .pl-pagi-num { min-width: 36px; height: 36px; font-size: .82rem; }
}