/* ===== Pioneer Thought Page ===== */

.pt-page .page-wrap {
  position: relative;
  z-index: 1;
}

.pt-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(22rem, 46vh, 30rem);
  padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(4rem, 8vw, 5.5rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.pt-banner__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -15%, rgba(99, 102, 241, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 12% 85%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 35% at 88% 75%, rgba(139, 92, 246, 0.07), transparent 50%);
}

.pt-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.045) 1px, transparent 0);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
}

.pt-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.pt-banner__title {
  margin: 0 0 1.25rem;
  color: var(--text-strong);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.pt-banner__lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 2.1vw, 1.1875rem);
  line-height: 1.8;
}

/* Papers — 一行一篇，与 container 同宽（长英文标题更易读） */
.pt-papers {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.pt-papers__hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  text-align: left;
  white-space: nowrap;
}

.pt-papers__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.pt-paper {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.5rem;
  padding: 1.375rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.pt-paper:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pt-paper__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 1.75rem;
}

.pt-paper__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pt-paper__title {
  margin: 0 0 0.5rem;
  color: var(--text-strong);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

.pt-paper:hover .pt-paper__title {
  color: var(--accent);
}

.pt-paper__desc {
  margin: 0 0 auto;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.pt-paper__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.pt-paper__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.pt-paper__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.625rem;
}

.pt-paper__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.pt-paper__date i {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Community */
.pt-community {
  padding-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: var(--surface-muted);
  border-top: 1px solid var(--border-subtle);
}

.pt-community__head {
  text-align: center;
  margin-bottom: 2rem;
}

.pt-community__title {
  margin: 0 0 0.75rem;
  color: var(--text-strong);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pt-community__desc {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.pt-community__cta {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.pt-tweets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.pt-tweet {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.pt-tweet:hover {
  box-shadow: var(--shadow-card-hover, 0 8px 24px -8px rgba(15, 23, 42, 0.12));
  transform: translateY(-2px);
}

.pt-tweet__head {
  margin-bottom: 0.875rem;
}

.pt-tweet__profile {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: opacity 0.2s var(--ease);
}

.pt-tweet__profile:hover {
  opacity: 0.82;
}

.pt-tweet__profile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring);
}

.pt-tweet__meta {
  min-width: 0;
}

.pt-tweet__avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pt-tweet__avatar--indigo {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

.pt-tweet__avatar--rose {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.pt-tweet__avatar--amber {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.pt-tweet__avatar--sky {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.pt-tweet__avatar--violet {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.pt-tweet__avatar--teal {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.pt-tweet__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.pt-tweet__handle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pt-tweet__text {
  margin: 0;
  min-height: calc(0.8125rem * 1.65 * 3);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.pt-tweet__text--muted {
  color: var(--text-muted);
  font-style: italic;
}

.pt-tweet__footer {
  margin-top: auto;
  padding-top: 0.875rem;
}

.pt-tweet__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.pt-tweet__date i {
  font-size: 0.6875rem;
  opacity: 0.75;
}

@media (max-width: 960px) {
  .pt-tweets {
    grid-template-columns: repeat(2, 1fr);
  }

  .pt-papers__hint {
    white-space: normal;
  }

  .pt-paper {
    grid-template-columns: 100px 1fr;
    gap: 1.125rem;
    padding: 1.125rem 1.25rem;
  }
}

@media (max-width: 540px) {
  .pt-tweets {
    grid-template-columns: 1fr;
  }

  .pt-paper {
    grid-template-columns: 1fr;
  }

  .pt-paper__thumb {
    aspect-ratio: 16 / 6;
    max-height: 80px;
  }

  .pt-paper__meta {
    gap: 0.5rem 1rem;
  }
}
