/* ============================================
   Design System — Mindloop-inspired dark monochrome
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* 暖色暗黑：底色不是纯黑，而是带一丝暖灰，配琥珀色点缀 */
  --background: hsl(28 8% 6%);
  --foreground: hsl(35 15% 96%);
  --card: hsl(28 10% 9%);
  --card-foreground: hsl(35 15% 96%);
  --primary: hsl(35 15% 96%);
  --primary-foreground: hsl(28 8% 6%);
  --secondary: hsl(28 8% 14%);
  --secondary-foreground: hsl(30 12% 85%);
  --muted: hsl(28 8% 17%);
  --muted-foreground: hsl(30 10% 65%);

  /* 主点缀色：暖琥珀 */
  --accent: hsl(28 55% 62%);
  --accent-soft: hsl(28 40% 50%);
  --accent-deep: hsl(24 35% 28%);
  --accent-foreground: hsl(28 8% 6%);

  --border: hsl(28 8% 22%);
  --input: hsl(28 8% 18%);
  --ring: hsl(28 35% 50%);
  --hero-subtitle: hsl(30 18% 92%);

  --max-width: 1280px;
  --gutter-x: clamp(1.5rem, 5vw, 7rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* 全站细密颗粒纹理：让暗色不死板，像胶片质感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: hsla(28, 55%, 62%, 0.28);
  color: var(--foreground);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img,
video {
  max-width: 100%;
  display: block;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ============================================
   Liquid Glass Effect
   ============================================ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 9rem 0;
  }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.4rem var(--gutter-x);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.logo-mark {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 3.5px;
  color: var(--accent);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  line-height: 1;
}

.logo-mark::after {
  content: none;
}

.navbar-logo > span:last-child {
  font-weight: 600;
  letter-spacing: 1px;
}

.navbar-links {
  display: none;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.navbar-links a:hover {
  color: var(--foreground);
}

.navbar-links .dot {
  opacity: 0.4;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8rem var(--gutter-x) 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 75% 25%, hsla(28, 60%, 45%, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, hsla(20, 50%, 35%, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, hsl(28 10% 8%) 0%, hsl(28 8% 5%) 100%);
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 1;
  z-index: 0;
  image-orientation: from-image;
  /* 关键：径向羽化，照片铺满但四角柔和地融进暗色背景 */
  -webkit-mask-image: radial-gradient(
    ellipse 140% 120% at 50% 42%,
    rgba(0, 0, 0, 1) 55%,
    rgba(0, 0, 0, 0.92) 75%,
    rgba(0, 0, 0, 0.55) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 140% 120% at 50% 42%,
    rgba(0, 0, 0, 1) 55%,
    rgba(0, 0, 0, 0.92) 75%,
    rgba(0, 0, 0, 0.55) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  /* 缓慢 ken-burns，画面活起来 */
  animation: heroKenBurns 38s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.13) translate3d(-1.2%, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .hero-bg video {
    animation: none;
  }
}

/* 暖色暗角 + 底部渐隐 overlay：让中央人物保持清晰，标题区域足够沉静可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* 边角暖色暗调，强化视觉聚焦 */
    radial-gradient(ellipse 85% 75% at 50% 45%,
      transparent 55%,
      hsla(24, 25%, 6%, 0.35) 85%,
      hsla(24, 25%, 4%, 0.55) 100%),
    /* 底部黑场为标题铺底 */
    linear-gradient(180deg,
      transparent 0%,
      transparent 50%,
      hsla(28, 8%, 4%, 0.6) 82%,
      hsla(28, 8%, 4%, 0.95) 100%);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18rem;
  background: linear-gradient(to top, var(--background) 5%, transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin: 0 auto;
}

/* 左文 + 右图 双栏 hero */
.hero-split {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-text {
    text-align: left;
  }
  .hero-text .hero-title { margin-left: 0; }
  .hero-text .hero-subtitle { margin-left: 0; margin-right: auto; }
  .hero-text .hero-cta { justify-content: flex-start; }
}

.hero-photo {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid hsla(28, 30%, 35%, 0.4);
  box-shadow:
    0 35px 90px hsla(28, 60%, 25%, 0.35),
    0 0 0 1px hsla(28, 40%, 50%, 0.12),
    inset 0 1px 1px hsla(28, 50%, 80%, 0.08);
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}

.hero-photo:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 70%,
    hsla(28, 8%, 5%, 0.35) 100%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.avatar-stack {
  display: inline-flex;
}

.avatar-stack > * {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid hsla(28, 8%, 4%, 0.85);
  background: var(--secondary);
  margin-left: -0.6rem;
  box-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.4);
}

.avatar-stack > *:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, hsl(28 55% 55%) 0%, hsl(24 40% 30%) 100%);
}

.avatar-stack > *:nth-child(2) {
  background: linear-gradient(135deg, hsl(20 45% 50%) 0%, hsl(15 35% 25%) 100%);
}

.hero-title {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--hero-subtitle);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--foreground);
  color: var(--primary-foreground);
  box-shadow: 0 8px 22px hsla(28, 30%, 4%, 0.45),
              0 0 0 1px hsla(28, 50%, 70%, 0.12) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px hsla(28, 30%, 4%, 0.55),
              0 0 0 1px hsla(28, 50%, 70%, 0.18) inset;
}

.btn-glass {
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.95rem 2.1rem;
  transition: transform 0.18s ease, background 0.25s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-square {
  border-radius: 0.625rem;
}

/* ============================================
   Section Header
   ============================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.75rem;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* ============================================
   Trip Cards (Homepage list)
   ============================================ */
.trip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.trip-card {
  position: relative;
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

/* 纯文字卡片：不要长方形空黑，改成更扁的内容卡 */
.trip-card-text {
  aspect-ratio: auto;
  min-height: 19rem;
  background:
    radial-gradient(ellipse at top right, hsla(28, 50%, 35%, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, hsla(20, 35%, 25%, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, hsl(28 10% 11%) 0%, hsl(28 8% 6%) 100%);
}

.trip-card-text:hover {
  box-shadow: 0 30px 60px hsla(28, 30%, 3%, 0.5),
              0 0 0 1px hsla(28, 40%, 50%, 0.18);
}

.trip-card-text .trip-card-content {
  position: relative;
  inset: auto;
  padding: 2.5rem 2rem 2rem;
}

.trip-card-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%);
  opacity: 0.7;
  transition: opacity 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.trip-card-text:hover::before {
  opacity: 1;
  left: 1rem;
  right: 1rem;
}

.trip-card-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.trip-card-text:hover .trip-card-footer {
  color: var(--foreground);
}

.trip-card-placeholder-text {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: hsla(28, 30%, 70%, 0.5);
}

.trip-card:hover {
  transform: translateY(-4px);
  border-color: hsla(0, 0%, 100%, 0.4);
}

.trip-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, hsla(28, 50%, 50%, 0.20) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, hsla(20, 40%, 30%, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, hsl(28 10% 10%) 0%, hsl(28 8% 4%) 100%);
}

.trip-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.65;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.trip-card:hover .trip-card-bg img {
  opacity: 0.85;
  transform: scale(1.04);
}

.trip-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    hsla(0, 0%, 0%, 0.85) 100%);
}

.trip-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.trip-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.trip-card-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.trip-card-summary {
  color: var(--secondary-foreground);
  font-size: 0.95rem;
  line-height: 1.5;
}

.trip-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(28, 30%, 70%, 0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  border: 1px dashed hsla(28, 30%, 50%, 0.2);
  border-radius: 1.25rem;
  pointer-events: none;
}

/* ============================================
   Trip Detail Page
   ============================================ */
.trip-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--gutter-x) 6rem;
  overflow: hidden;
}

.trip-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, hsla(28, 55%, 45%, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, hsla(20, 40%, 30%, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, hsl(28 10% 8%) 0%, hsl(28 8% 4%) 100%);
}

.trip-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  image-orientation: from-image;
  /* 同样的羽化处理：照片铺满，四角融入暗背景 */
  -webkit-mask-image: radial-gradient(
    ellipse 140% 120% at 50% 40%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.85) 75%,
    rgba(0, 0, 0, 0.4) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 140% 120% at 50% 40%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.85) 75%,
    rgba(0, 0, 0, 0.4) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.trip-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16rem;
  background: linear-gradient(to top, var(--background), transparent);
}

.trip-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.trip-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.trip-hero-meta .dot {
  opacity: 0.4;
}

.trip-hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 60rem;
  text-wrap: balance;
}

.trip-hero-tagline {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--hero-subtitle);
  max-width: 50rem;
  line-height: 1.5;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--background);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 0 14px hsla(28, 60%, 50%, 0.5);
  animation: pulseDot 3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 14px hsla(28, 60%, 50%, 0.5); }
  50%      { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 22px hsla(28, 70%, 55%, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-marker { animation: none; }
}

.timeline-time {
  color: var(--accent);
}

.timeline-time {
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.timeline-body {
  color: var(--secondary-foreground);
  font-size: 0.95rem;
  line-height: 1.65;
}

.timeline-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag.warn {
  background: hsla(15, 45%, 16%, 1);
  color: hsla(20, 60%, 78%, 1);
  border-color: hsla(15, 45%, 30%, 1);
}

.tag.good {
  background: hsla(28, 35%, 18%, 1);
  color: hsla(30, 55%, 78%, 1);
  border-color: hsla(28, 40%, 35%, 1);
}

/* ============================================
   Cards Grid (food / hotels / tips)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.75rem;
  background:
    radial-gradient(ellipse at top right, hsla(28, 35%, 25%, 0.12) 0%, transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(28, 50%, 60%, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: hsla(28, 40%, 55%, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px hsla(28, 30%, 3%, 0.45);
}

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

.card-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.card-body {
  color: var(--secondary-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.card-link {
  color: var(--foreground);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.3);
  padding-bottom: 1px;
  font-size: 0.85rem;
}

.card-link:hover {
  border-color: var(--foreground);
}

/* ============================================
   Pull quote
   ============================================ */
.pull-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.4;
  color: var(--hero-subtitle);
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 2.5rem 1.5rem;
  letter-spacing: 0.5px;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: hsla(28, 50%, 55%, 0.18);
  line-height: 1;
  font-family: 'Instrument Serif', Georgia, serif;
}

.pull-quote::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0.6;
}

/* ============================================
   Highlight reel (photo strip)
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-tile {
  aspect-ratio: 4 / 5;
  border-radius: 0.85rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, hsla(28, 35%, 25%, 0.18) 0%, transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.photo-tile:hover {
  transform: translateY(-3px);
  border-color: hsla(28, 40%, 55%, 0.35);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  image-orientation: from-image;
}

.photo-tile:hover img {
  transform: scale(1.06);
}

.photo-tile.placeholder::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border-radius: 0.5rem;
  border: 1px dashed hsla(28, 30%, 50%, 0.18);
  pointer-events: none;
}

.photo-tile.placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: hsla(28, 35%, 72%, 0.55);
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}

/* ============================================
   Verdict / Rating
   ============================================ */
.verdict {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

@media (min-width: 768px) {
  .verdict {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
}

.verdict-score {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1;
}

.verdict-score small {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-weight: 400;
  margin-left: 0.5rem;
  letter-spacing: 0;
}

.verdict-label {
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-top: 0.75rem;
}

.verdict-body {
  color: var(--secondary-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--gutter-x);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* ============================================
   Back link
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--foreground);
}

/* ============================================
   Reveal-on-scroll animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.75s; }

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Misc
   ============================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.muted {
  color: var(--muted-foreground);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.kbd {
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: var(--secondary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--secondary-foreground);
}

/* 防止标点单字成行：把最后几个字+标点绑死 */
.nowrap {
  white-space: nowrap;
}
