/* 祈梦Agent · 壁画修复案例（洞窟深色，不套官网浅色） */
:root {
  --bg: #0c0a08;
  --surface: #16120e;
  --surface-2: #1e1914;
  --fg: #f3ebe0;
  --muted: #9a8d7c;
  --subtle: #6f6558;
  --accent: #c4452d;
  --line: #e8dfd2;
  --border: color-mix(in srgb, var(--fg) 14%, transparent);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "Songti SC", "Noto Serif SC", "Microsoft YaHei", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.serif { font-family: "Songti SC", "Noto Serif SC", "STSong", serif; }

.site-header {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand strong { display: block; font-size: 17px; letter-spacing: .04em; line-height: 1.15; }
.brand small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--fg); color: var(--bg);
}
.header-cta:hover { opacity: .9; }

.hero { padding: 28px 0 18px; }
.kicker { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.hero h1 { margin-top: 10px; max-width: 18em; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.2; font-weight: 700; }
.hero .lead { margin-top: 14px; max-width: 38em; font-size: 16px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: var(--fg); color: var(--bg);
}
.btn:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

.slider {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  overflow: hidden; border-radius: 10px; background: var(--surface);
  cursor: ew-resize; user-select: none; touch-action: none;
  outline: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); outline-offset: -1px;
}
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slider .after-clip { position: absolute; inset: 0; }
.slider .bar { position: absolute; inset: 0 auto 0 0; width: 1px; background: var(--line); pointer-events: none; }
.slider .knob {
  position: absolute; top: 50%; width: 36px; height: 36px;
  border: 3px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--bg) 80%, transparent);
  transform: translate(-50%, -50%); pointer-events: none;
}
.slider .knob i {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%);
}
.slider .tag {
  position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 14px; pointer-events: none;
}
.slider .tag.l { left: 12px; }
.slider .tag.r { right: 12px; }
.slider-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }

.band { border-top: 1px solid var(--border); }
.band-dim { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.section { padding: 64px 0; }
.section h2 { margin-top: 8px; font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem); font-weight: 700; }
.film { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .film { grid-template-columns: 1fr 1.4fr; } }
.film ol { margin-top: 22px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.film ol li { margin: 6px 0; }
.film video { width: 100%; border-radius: 10px; outline: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); outline-offset: -1px; }

.prompt-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .prompt-grid { grid-template-columns: 3fr 2fr; } }
.card {
  padding: 22px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border);
}
.card h3 { font-size: 17px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card pre {
  max-height: 28rem; overflow: auto; white-space: pre-wrap;
  font-family: inherit; font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--fg) 90%, transparent);
}
.card.muted-pre pre { color: var(--muted); max-height: none; }

.cases { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.case header p { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.case header h3 { margin-top: 4px; font-size: 20px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; outline: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); outline-offset: -1px; }
.thumbs figcaption { padding-top: 6px; font-size: 12px; color: var(--muted); }
.case .note { font-size: 14px; color: var(--muted); line-height: 1.7; }
.case .pig { font-size: 12px; letter-spacing: .06em; color: var(--subtle); }
.case .src { font-size: 12px; color: var(--subtle); line-height: 1.6; }

.tiers { display: grid; gap: 22px; }
@media (min-width: 800px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier .lab { font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.tier h3 { margin-top: 6px; font-size: 17px; }
.tier p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.7; }

.site-footer { padding: 36px 0 48px; font-size: 13px; color: var(--subtle); line-height: 1.8; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .nav { gap: 16px; font-size: 13px; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .wrap { padding: 0 16px; }
  .site-header { gap: 12px; padding: 14px 16px; }
  .header-cta { padding: 7px 13px; }
  .hero { padding: 22px 0 12px; }
  .hero h1 { font-size: 1.65rem; }
  .hero .lead { font-size: 15px; }
  .section { padding: 44px 0; }
  .film { gap: 20px; }
  .film ol { font-size: 13px; }
  .thumbs { gap: 8px; }
  .case { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
