/* ============================================================
   我有个呆猫 · ihaveademo.com
   鎏金暗夜 · 绅士呆猫
   ============================================================ */

:root {
  --bg: #0c0a07;
  --bg-2: #120e09;
  --surface: #17120c;
  --line: rgba(233, 172, 74, 0.16);
  --line-soft: rgba(233, 172, 74, 0.09);
  --gold: #e9a63b;
  --gold-bright: #f6c15b;
  --gold-deep: #8c5a1d;
  --cream: #f2e9da;
  --muted: #a5967f;
  --ink: #14100a;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(233, 166, 59, 0.10), transparent 60%),
    radial-gradient(900px 620px at -12% 38%, rgba(140, 90, 29, 0.12), transparent 55%),
    var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

.mono { font-family: var(--font-mono); }

/* 胶片噪点 */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #c97f1e);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(233, 166, 59, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(233, 166, 59, 0.4); }
.btn-ghost {
  color: var(--cream);
  border: 1px solid var(--line);
  background: rgba(233, 166, 59, 0.04);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(233, 166, 59, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 10, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--cream);
}
.eye-logo { width: 42px; height: 28px; flex: none; }
.eye-lid { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.eye-pupil circle:first-of-type { fill: url(#ir); }
.eye-pupil { transition: transform 0.18s ease-out; }
.eye-slit { fill: #171006; }
.eye-shine { fill: #fff; opacity: 0.85; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.06em; }
.brand-en { font-size: 10px; color: var(--gold); letter-spacing: 0.22em; margin-left: 2px; transform: translateY(2px); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta { margin-left: 4px; }

/* ---------- 英雄区 ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding: 130px 0 60px;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  width: 100%;
}
.kicker {
  color: var(--gold);
  font-size: 13px; letter-spacing: 0.14em;
  margin-bottom: 22px;
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(233, 166, 59, 0.05);
}
.hero h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.05rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.word-demo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-bright) 20%, #e08a12 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(233, 166, 59, 0.55);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.14em;
}
.end-dot { color: var(--gold); }
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--cream); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-facts {
  display: flex; gap: 0;
  list-style: none;
  flex-wrap: wrap;
}
.hero-facts li {
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 4px 18px;
  border-left: 1px solid var(--line);
}
.hero-facts li:first-child { border-left: none; padding-left: 0; }

/* 金眼徽章 */
.hero-eye { position: relative; display: flex; justify-content: center; }
.eye-medal {
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(233, 166, 59, 0.3);
  outline: 1px dashed rgba(233, 166, 59, 0.22);
  outline-offset: 14px;
  box-shadow:
    0 0 90px rgba(233, 166, 59, 0.22),
    0 0 24px rgba(233, 166, 59, 0.18),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
  animation: breathe 7s ease-in-out infinite;
}
.eye-medal img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.022); }
}
.float-tag {
  position: absolute;
  font-size: 12px;
  color: var(--gold-bright);
  background: rgba(23, 18, 12, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  animation: bob 5s ease-in-out infinite;
}
.float-tag.t1 { top: 8%; left: 2%; }
.float-tag.t2 { bottom: 6%; right: 0; animation-delay: -2.5s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2em;
  animation: bob 3.2s ease-in-out infinite;
}

/* ---------- 跑马灯 ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden;
  padding: 15px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-unit {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: nowrap;
}
.marquee-unit i { font-style: normal; color: var(--gold-deep); margin: 0 18px; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 通用区块 ---------- */
.sec { padding: 104px 0; position: relative; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sec-tag {
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.sec h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

/* ---------- 关于呆猫 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.polaroid {
  background: var(--cream);
  padding: 16px 16px 14px;
  border-radius: 6px;
  transform: rotate(-2.4deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 104px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 420px;
  justify-self: center;
}
.polaroid:hover { transform: rotate(0deg) scale(1.015); }
.polaroid::before, .polaroid::after {
  content: "";
  position: absolute;
  width: 86px; height: 26px;
  background: rgba(233, 166, 59, 0.35);
  border: 1px solid rgba(233, 166, 59, 0.2);
  top: -12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.polaroid::before { left: 24px; transform: rotate(-6deg); }
.polaroid::after { right: 24px; transform: rotate(7deg); }
.polaroid img {
  width: 100%;
  height: auto; /* 覆盖 HTML height 属性，保持原始比例不拉伸 */
  display: block;
  border-radius: 3px;
}
.polaroid figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  color: #6b5324;
  text-align: center;
  padding-top: 12px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy strong { color: var(--cream); }

.creed { list-style: none; margin-top: 34px; }
.creed li {
  display: flex; gap: 22px; align-items: baseline;
  padding: 17px 4px;
  border-top: 1px solid var(--line-soft);
}
.creed li:last-child { border-bottom: 1px solid var(--line-soft); }
.creed-no { color: var(--gold); font-size: 14px; letter-spacing: 0.1em; }
.creed strong { display: block; font-size: 17px; letter-spacing: 0.03em; }
.creed small { color: var(--muted); font-size: 13.5px; }

/* ---------- 玩什么 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px 34px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 166, 59, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(233, 166, 59, 0.08);
}
.card-no { color: var(--gold-deep); font-size: 12px; letter-spacing: 0.18em; margin-bottom: 20px; }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: 0.03em; }
.card-en {
  color: var(--gold);
  font-size: 11px; letter-spacing: 0.22em;
  margin: 5px 0 16px;
}
.card p:not(.card-en) { color: var(--muted); font-size: 15px; }
.card-gold {
  background: linear-gradient(160deg, rgba(233, 166, 59, 0.14), rgba(233, 166, 59, 0.04) 55%), var(--surface);
  border-color: rgba(233, 166, 59, 0.34);
}

/* ---------- 一场活动 ---------- */
.night-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.night-head p:not(.sec-tag) { color: var(--muted); }
.night-head h2 { margin-bottom: 12px; }
.timeline {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}
.timeline li {
  position: relative;
  display: flex; gap: 26px;
  padding: 15px 0 15px 34px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5.5px; top: 27px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 166, 59, 0.15);
}
.tl-time { color: var(--gold); font-size: 14px; letter-spacing: 0.06em; flex: none; width: 52px; padding-top: 2px; }
.timeline strong { display: block; font-size: 16.5px; letter-spacing: 0.03em; }
.timeline small { color: var(--muted); font-size: 13.5px; }

/* ---------- 谁该来 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }
.chips span {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--cream);
  background: rgba(233, 166, 59, 0.04);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.chips span:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.big-line {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.big-line em {
  font-style: normal;
  color: var(--gold);
  border-bottom: 3px solid rgba(233, 166, 59, 0.4);
}

/* ---------- 近期活动 ---------- */
.events {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  margin-top: 44px;
}
.event {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 34px 32px;
}
.event-stack { display: grid; gap: 22px; align-content: start; }
.event-featured {
  position: relative;
  background:
    radial-gradient(480px 300px at 88% 0%, rgba(233, 166, 59, 0.16), transparent 60%),
    var(--surface);
  border-color: rgba(233, 166, 59, 0.35);
}
.stamp {
  position: absolute;
  top: 26px; right: 26px;
  color: var(--gold-bright);
  border: 2px solid var(--gold-bright);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  transform: rotate(6deg);
  opacity: 0.9;
}
.event-no { color: var(--gold); font-size: 12.5px; letter-spacing: 0.2em; margin-bottom: 14px; }
.event h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; margin-bottom: 20px; letter-spacing: 0.02em; }
.event-meta { list-style: none; }
.event-meta li {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 7px 0;
  border-top: 1px dashed var(--line-soft);
}
.event-meta li:first-child { border-top: none; }
.event-featured .btn { margin-top: 24px; }
.event-ghost h3 { font-size: 18px; }
.event-ghost p { color: var(--muted); font-size: 14px; }

/* ---------- 加入 ---------- */
.sec-join { padding-bottom: 130px; }
.join-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.join-copy h2 { margin-bottom: 30px; }
.join-steps { list-style: none; }
.join-steps li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 15px 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
}
.join-steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.join-steps span { color: var(--gold); font-size: 13px; letter-spacing: 0.1em; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.qr-box {
  width: 236px;
  aspect-ratio: 1;
  border: 1.5px dashed rgba(233, 166, 59, 0.45);
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(233, 166, 59, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.qr-box:hover { border-color: var(--gold); background: rgba(233, 166, 59, 0.08); }
.qr-box svg { width: 84px; height: 84px; }
.qr-cat {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
}
.qr-dot { fill: var(--gold); }
.qr-nose { fill: var(--gold); }
.qr-box p { color: var(--muted); font-size: 12.5px; letter-spacing: 0.1em; }
.qr-note { color: var(--muted); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-ghost {
  text-align: center;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 166, 59, 0.22);
  padding: 60px 20px 30px;
  white-space: nowrap;
  user-select: none;
}
.footer-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-domains a { color: var(--gold); text-decoration: none; letter-spacing: 0.06em; }
.footer-domains a:hover { color: var(--gold-bright); text-decoration: underline; }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .eye-medal, .float-tag, .hero-scroll { animation: none; }
  .eye-pupil { transform: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 118px; }
  .hero-eye { order: -1; }
  .eye-medal { width: min(64vw, 380px); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .polaroid { justify-self: start; position: static; }
  .cards { grid-template-columns: 1fr; }
  .night-grid, .join-grid { grid-template-columns: 1fr; gap: 44px; }
  .events { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .sec { padding: 76px 0; }
  .hero-facts li { padding: 4px 12px; }
  .event { padding: 26px 22px; }
  .brand-en { display: none; }
  .footer-ghost { font-size: 2.6rem; white-space: normal; }
  .stamp { top: auto; bottom: 22px; right: 20px; }
}
