/* 子页面布局 — 赛博霓虹主题 */

.subpage-body {
  padding-bottom: 48px;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 8vw;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 8, 15, 0.78);
  border-bottom: 1px solid var(--border-dim);
}

.back-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: text-shadow 0.3s ease;
}

.back-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.subpage-main {
  width: min(980px, 90vw);
  margin: 0 auto;
  padding-top: 18px;
}

.sub-hero {
  padding: 22px 0 14px;
}

.sub-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-hero .lede {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 68ch;
  font-size: 0.95rem;
}

.sub-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.meta-card {
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.meta-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.06);
}

.meta-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.sub-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.overview-card {
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  transition: border-color 0.35s ease;
}

.overview-card:hover {
  border-color: rgba(255, 45, 149, 0.3);
}

.overview-card h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.overview-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.sub-section {
  margin-bottom: 18px;
}

.sub-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--text-primary);
  display: inline-block;
}

.sub-section h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.sub-section p,
.sub-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

.sub-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.placeholder-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px dashed var(--border-dim);
  color: var(--text-muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
}

.sub-footer {
  width: min(980px, 90vw);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.sub-footer a {
  font-family: var(--font-display);
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.sub-footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ── scroll reveal for subpages ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .sub-meta,
  .sub-overview {
    grid-template-columns: 1fr;
  }
}
