﻿
/* ==========================================================================
   前台动态页面补充组件（由后台数据驱动）
   ========================================================================== */

/* ---------- 筛选与分页 ---------- */
.filter { display: inline-flex; align-items: center; gap: 8px; }
.filter__count {
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}
.filter.is-active .filter__count { opacity: 0.75; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 产品详情 ---------- */
.page-hero--tight { padding-bottom: 0; border-bottom: 0; background: none; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.product-media__main {
  background: #fff;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.product-media__main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.product-thumb {
  padding: 0;
  border: 1px solid var(--line-soft);
  background: #fff;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s var(--ease);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { border-color: #cfc7b8; }
.product-thumb.is-active { border-color: var(--brand); }

.product-info__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.05em;
}
.product-info__summary {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
}
.product-info__body { margin-top: 22px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.product-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted-2);
}

.article-p {
  margin: 0 0 1.2em;
  font-size: 16px;
  line-height: 2.15;
  color: #4a4e53;
}
.article-p:last-child { margin-bottom: 0; }
.product-info__body .article-p { font-size: 14.5px; line-height: 2.05; }
.article-body h3.h3,
.article-body h4.h3 { margin: 2em 0 0.8em; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 24px;
  border-left: 2px solid var(--brand);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-2);
}
.article-body .body-list { margin: 1.2em 0; padding-left: 0; }
.article-body .body-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.6em;
  font-size: 15.5px;
  line-height: 2;
  color: #4a4e53;
}
.article-body .body-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 1px;
  background: var(--brand);
}

/* ---------- 文章 ---------- */
.article-head { max-width: 860px; margin-inline: auto; }
.article-head__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.article-head__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.article-head__title {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.article-body { max-width: 860px; margin-inline: auto; }
.article-body .article-p { font-size: 16.5px; line-height: 2.2; }
.article-cover { margin: 0 0 36px; overflow: hidden; background: var(--paper-2); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-foot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- 表单反馈 ---------- */
.form-success {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 2px solid #1f8a54;
  background: #eef7f2;
  font-size: 13.5px;
  line-height: 1.9;
  color: #1f6b43;
}
.form-error {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--danger, #c0392b);
  background: #fdecea;
  font-size: 13.5px;
  line-height: 1.9;
  color: #a02a1e;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .filter { padding: 8px 12px; font-size: 12.5px; }
  .pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; }
  .article-body .article-p { font-size: 15.5px; }
  .product-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 页脚管理员入口（仅桌面端显示） ---------- */
.footer-admin {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
}
.footer-admin:hover { color: var(--brand); }

@media (max-width: 720px) {
  .footer-admin { display: none !important; }
}
