/* 斤斤计较 — landing styles (mirrors pootime.zhaohe.org layout) */

.text-gradient {
  background-image: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bento-card {
  border-radius: 1.5rem;
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.bento-card::after {
  content: "";
  opacity: 0;
  z-index: 0;
  background: radial-gradient(circle at 100% 0, rgba(99, 102, 241, 0.05), transparent 60%);
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card > * {
  z-index: 1;
  position: relative;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.glow-orb {
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite alternate;
  position: absolute;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.6; }
}

.perspective-1000 {
  perspective: 1000px;
}

/* Hero screenshot carousel — flat posters, no device chrome */
.shot-carousel {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.shot-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.28);
  background: transparent;
  aspect-ratio: 1242 / 2688;
}

.shot-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.shot-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.shot-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.shot-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.shot-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.25);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.shot-carousel__dot[aria-current="true"] {
  width: 22px;
  background: #6366f1;
}

.shot-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.shot-carousel:hover .shot-carousel__nav,
.shot-carousel:focus-within .shot-carousel__nav {
  opacity: 1;
}

.shot-carousel__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.shot-carousel__nav--prev {
  left: -0.75rem;
}

.shot-carousel__nav--next {
  right: -0.75rem;
}

.shot-carousel__nav svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .shot-carousel__nav {
    opacity: 1;
  }
}

.prose-page h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-page h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-page p,
.prose-page li {
  color: #475569;
  line-height: 1.75;
  font-size: 1.05rem;
}

.prose-page ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.prose-page li {
  margin-bottom: 0.5rem;
}
