/* ============================================================
   pages.css — 内容页：页头 / 案例五幕 / 网格 / 博客 / 审美墙 / 实验场 / 关于 / 联系 / 404
   ============================================================ */

/* ---------- 内容页覆盖层 ---------- */
.page {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}
.page.is-open { display: block; animation: pageIn .32s ease; }

.page-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141210;
  border-bottom: 2px solid #000;
  padding: 12px 18px;
}
.page-title {
  font-family: var(--pixel);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--paper);
}
.back-btn {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,.8);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.back-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(0,0,0,.8); }
.back-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(0,0,0,.8); }

.page-inner { max-width: 940px; margin: 0 auto; padding: 30px 20px 80px; }
.page-lead {
  font-size: 15px;
  color: #cfc6b4;
  margin-bottom: 30px;
  max-width: 640px;
}
.sec-title {
  font-family: var(--pixel);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--warm);
  margin: 34px 0 16px;
  border-bottom: 2px solid #2e2a26;
  padding-bottom: 8px;
}
.sec-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
}

/* ---------- 作品：深度案例（五幕） ---------- */
.case-list { display: flex; flex-direction: column; gap: 22px; }
.case-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,.8);
  overflow: hidden;
}
.case-cover {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(242,234,216,.85);
  background: linear-gradient(135deg, #4a3a2a, #8a6f4e);
  border-bottom: 3px solid #000;
}
.case-body { padding: 16px 18px 18px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.act {
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #000;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
  letter-spacing: .5px;
}
.case-title { font-size: 18px; font-weight: 800; }
.case-desc { font-size: 14px; color: #5a5248; margin-top: 6px; line-height: 1.7; }

/* ---------- 通用网格 / 占位块 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.ph {
  height: 120px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: rgba(242,234,216,.9);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,.7);
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ph figcaption {
  padding: 3px 6px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: none;
  border-radius: 0 5px 0 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph.sm { height: 96px; font-size: 12px; }

/* ---------- 博客 ---------- */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0,0,0,.75);
  padding: 16px 18px;
}
.post-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.tag {
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #000;
  background: var(--crt);
  color: var(--ink);
  padding: 1px 7px;
}
.post-date { font-size: 12px; color: #8a8278; font-family: var(--pixel); }
.post-title { font-size: 17px; font-weight: 800; }
.post-excerpt { font-size: 14px; color: #5a5248; margin-top: 6px; }

/* ---------- 审美墙 ---------- */
.thread { margin-bottom: 30px; }
.thread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.thread-note {
  margin-top: 10px;
  font-size: 14px;
  color: #b8b0a2;
  font-style: italic;
  border-left: 3px solid var(--crt);
  padding-left: 12px;
}

/* ---------- 实验场 ---------- */
.lab-list { display: flex; flex-direction: column; gap: 16px; }
.lab-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0,0,0,.75);
  padding: 16px 18px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  border: 2px solid #000;
  padding: 1px 8px;
  margin-bottom: 8px;
}
.lab-title { font-size: 17px; font-weight: 800; }
.lab-desc { font-size: 14px; color: #5a5248; margin-top: 6px; }

/* ---------- 关于我 ---------- */
.about-text { font-size: 15px; color: #e4dcc8; max-width: 640px; }
.timeline { margin-top: 4px; }
.timeline li {
  position: relative;
  padding: 12px 0 12px 22px;
  font-size: 14px;
  color: #d8d0bc;
  border-left: 3px solid var(--crt);
  margin-left: 8px;
}
.timeline li b { color: var(--warm); font-family: var(--pixel); font-size: 13px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,.7);
  padding: 6px 14px;
}

/* ---------- 联系 ---------- */
.contact-list { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.contact-item {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0,0,0,.75);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
a.contact-item:hover { background: #fff8e8; }

/* ---------- 404 雪花屏 ---------- */
.page-404 {
  display: none;
  align-items: center;
  justify-content: center;
  background: #0b0c0e;
}
.page-404.is-open { display: flex; animation: pageIn .32s ease; }
.noise {
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    repeating-linear-gradient(0deg,  rgba(150,160,150,.06) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(150,160,150,.05) 0 2px, transparent 2px 7px);
  animation: noiseShift .5s steps(2) infinite;
}
@keyframes noiseShift { 0% { transform: translate(0,0); } 100% { transform: translate(2px,1px); } }
.page-404-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.n404-title {
  font-family: var(--pixel);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #b8b0a2;
  text-shadow: 0 0 18px rgba(143,220,90,.5);
}
.n404-text { color: var(--grey); margin: 16px 0 26px; font-size: 15px; }
.back-btn.big { font-size: 15px; padding: 10px 20px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 767px) {
  .page-title { font-size: 16px; letter-spacing: 2px; }
  .gallery-grid, .thread-grid { grid-template-columns: repeat(2, 1fr); }
  .case-cover { height: 100px; }
}
