/* ==========================================================================
   熊猫建设 · 内容栏目样式（案例 / 动态 / 文章详情）
   依赖 site.css 的设计变量，不覆盖原有类
   ========================================================================== */

/* 内容页没有深色 Hero，导航常驻浅底深字（不依赖滚动时的 is-solid） */
.page-content .nav {
  color: var(--ink);
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}

/* ---------- 栏目页头部 ---------- */
.page-head {
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(28px, 4vw, 48px);
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.page-sub {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 列表卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.4vw, 52px) clamp(24px, 2.6vw, 40px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-top-color: var(--ink); }

.card-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  margin-bottom: 18px;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.card:hover .card-cover img { transform: scale(1.04); }

.card-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin: 10px 0 10px;
}
.card-sum {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid rgba(47, 68, 56, 0.32);
  padding: 3px 9px;
  line-height: 1.6;
}

.empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- 文章详情 ---------- */
.post { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); }
.post-wrap { max-width: 820px; }

.post-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.post-kicker a { color: var(--pine); }

.post-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.post-sum {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  padding-left: 18px;
  border-left: 2px solid var(--line);
  margin-bottom: 26px;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }

.post-cover { margin: 0 0 40px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.post-body { font-size: 16px; line-height: 2.0; color: var(--ink-2); }
.post-body > * + * { margin-top: 22px; }
.post-body p { color: var(--ink-2); }
.post-body h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 46px;
  padding-top: 8px;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 34px;
}
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 8px 0; }
.post-body img { width: 100%; margin: 30px 0 8px; }
.post-body figure { margin: 34px 0; }
.post-body figure img { margin: 0; }
.post-body figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}
.post-body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--pine);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
}
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }
.post-body a { color: var(--pine); border-bottom: 1px solid rgba(47, 68, 56, 0.3); }
.post-body code {
  background: var(--paper-2);
  padding: 2px 6px;
  font-size: 14px;
}
.post-body pre {
  background: var(--paper-2);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.post-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 20px 24px;
  margin: 40px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info-item span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.info-item strong { font-weight: 500; font-size: 15px; line-height: 1.6; }

.post-cta {
  margin: 56px 0 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.post-cta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.post-cta p { color: var(--muted); font-size: 14px; max-width: 460px; }

.btn--primary {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  padding: 14px 30px;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn--primary:hover { background: var(--ink); transform: translateY(-1px); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 60px 0 0;
  padding: 30px 0 80px;
  border-top: 1px solid var(--line);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46%;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}
.post-nav span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.pn-next { text-align: right; margin-left: auto; }

/* ---------- 首页「最新动态」 ---------- */
#latest .section-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.6vw, 46px);
}
#latest .section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  margin-top: 10px;
}
.link-more {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--pine);
  white-space: nowrap;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.mini-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  transition: border-color 0.4s var(--ease);
}
.mini-card:hover { border-top-color: var(--ink); }
.mini-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 16px;
}
.mini-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.mini-card:hover .mini-cover img { transform: scale(1.04); }
.mini-date {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.mini-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  margin: 8px 0 8px;
}
.mini-body p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 26px; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  #latest .section-head { flex-direction: column; align-items: flex-start; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-nav { flex-direction: column; gap: 24px; }
  .pn-next { text-align: left; margin-left: 0; }
  .post-nav a { max-width: 100%; }
}
