/* $NOFUN —— 由设计稿 NOFUN.dc.html 转换而来。
   设计稿依赖 support.js 运行时的 style-hover / style-before / style-after
   伪样式属性，浏览器不认；这里全部落地成真实 CSS。视觉保持一致。 */

:root {
  --bg: #0a0510;
  --ink: #e9e2f2;
  --muted: #cfc3e0;
  --dim: #8d7fa6;
  --faint: #5e5375;
  --lime: #b8ff5c;
  --pink: #ff4dd8;
  --red: #ff4d6d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--lime); }
::selection { background: var(--lime); color: var(--bg); }

@keyframes drift { from { transform: translateY(0) } to { transform: translateY(-16px) } }
@keyframes floatImg { from { transform: rotate(1.5deg) translateY(0) } to { transform: rotate(1.5deg) translateY(-12px) } }
@keyframes marquee { to { transform: translateX(-50%) } }
@keyframes glowPulse { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }
@keyframes hueSpin { 0% { filter: hue-rotate(0deg) saturate(1.5) } 100% { filter: hue-rotate(360deg) saturate(1.5) } }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes shine { to { left: 140% } }
@keyframes throb {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 77, 216, .5) }
  50% { box-shadow: 0 0 52px rgba(255, 77, 216, .95), 0 0 90px rgba(255, 77, 216, .4) }
}
@keyframes stampIn {
  0% { opacity: 0; transform: scale(3.2) }
  65% { opacity: 1; transform: scale(.9) }
  100% { opacity: 1; transform: scale(1) }
}
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) }
  20% { transform: translate(-10px, 6px) }
  40% { transform: translate(9px, -7px) }
  60% { transform: translate(-7px, -5px) }
  80% { transform: translate(6px, 7px) }
}

/* ——— 页面骨架 ——— */
.root {
  background:
    radial-gradient(1100px 700px at 75% -5%, rgba(150, 40, 210, .28), transparent 60%),
    radial-gradient(900px 650px at 10% 45%, rgba(255, 60, 150, .12), transparent 60%),
    radial-gradient(1000px 700px at 55% 110%, rgba(80, 40, 200, .18), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow: hidden;
}
.root.party { animation: hueSpin 6s linear infinite; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ——— 导航 ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(184, 255, 92, .12);
  background: rgba(10, 5, 16, .72);
  backdrop-filter: blur(12px);
}
.nav__brand { font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: .02em; color: #fff; }
.nav__brand span { color: var(--red); }
.nav__links {
  display: flex; align-items: center; gap: 26px;
  font: 500 14px "IBM Plex Mono", monospace; letter-spacing: .04em;
}

.btn-lime {
  padding: 9px 20px; border-radius: 999px;
  background: var(--lime); color: var(--bg) !important; font-weight: 600;
  transition: box-shadow .2s;
}
.btn-lime:hover { box-shadow: 0 0 22px rgba(184, 255, 92, .55); color: var(--bg) !important; }

/* ——— Hero ——— */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding: 84px 32px 96px; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
/* min-width:0 是必须的：网格/弹性子项默认 min-width:auto，不肯缩到内容的
   固有最小宽度以下。CA 那条 42 字符的合约地址是 nowrap，会把整列撑到 482px，
   在 375px 手机上右侧被 .root 的 overflow:hidden 静默裁掉 —— 没有滚动条、
   没有报错，纯粹看不见。 */
.hero__col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__art, .hero__float { min-width: 0; }

/* 背景里飘的台子名 —— 全是这条链上的 .fun 后缀 */
.ghost {
  position: absolute; padding: 7px 15px; border-radius: 999px;
  border: 1px solid currentColor;
  font: 500 13px "IBM Plex Mono", monospace;
  white-space: nowrap; pointer-events: none;
  animation: drift 7s ease-in-out infinite alternate;
}

.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(184, 255, 92, .35);
  font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .12em;
  color: var(--lime); background: rgba(184, 255, 92, .05);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }

.hero__title {
  margin: 0; font-family: "Archivo Black", sans-serif;
  font-size: clamp(76px, 10vw, 148px); line-height: .92; letter-spacing: -.01em; color: #fff;
}
/* 设计稿里 FUN 上那道红杠是 style-after，转成真 ::after */
.strike { position: relative; display: inline-block; color: var(--lime); text-shadow: 0 0 40px rgba(184, 255, 92, .4); }
.strike::after {
  content: ""; position: absolute; left: -5%; right: -5%; top: 52%; height: 7px;
  background: var(--red); transform: rotate(-4deg); border-radius: 4px;
  box-shadow: 0 0 18px rgba(255, 77, 109, .9);
}

.lede { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.lede b { color: var(--lime); }
.lede i { color: #fff; font-style: normal; font-weight: 700; }
.sub { margin: 0; font: 400 15px "IBM Plex Mono", monospace; color: var(--dim); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary {
  padding: 15px 30px; border-radius: 999px; background: var(--lime);
  color: var(--bg) !important; font-weight: 700; font-size: 16px; transition: box-shadow .2s;
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(184, 255, 92, .6); }
.btn-primary[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-ghost {
  padding: 15px 30px; border-radius: 999px; border: 1px solid rgba(233, 226, 242, .3);
  color: var(--ink); font-weight: 600; font-size: 16px; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-fun {
  position: relative; overflow: hidden;
  padding: 17px 40px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--pink), var(--red));
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em;
  font-family: "Space Grotesk", sans-serif; cursor: pointer;
  animation: throb 2s ease-in-out infinite; transition: transform .15s;
}
.btn-fun:hover { transform: scale(1.07); }
/* 扫光是 style-before，转成真 ::before */
.btn-fun::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shine 1.8s linear infinite;
}

/* 合约地址条 */
.ca {
  display: flex; align-items: center; max-width: 560px;
  border: 1px solid rgba(184, 255, 92, .25); border-radius: 14px;
  overflow: hidden; background: rgba(255, 255, 255, .03);
}
.ca__tag {
  padding: 14px 16px; font: 600 13px "IBM Plex Mono", monospace; color: var(--lime);
  border-right: 1px solid rgba(184, 255, 92, .25); background: rgba(184, 255, 92, .06);
}
.ca__val {
  /* min-width:0 让 text-overflow:ellipsis 真正生效 —— 否则弹性子项
     会按 nowrap 文本的完整宽度撑开，省略号永远不出现 */
  flex: 1; min-width: 0;
  padding: 14px 16px; font: 500 13px "IBM Plex Mono", monospace; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca__btn {
  padding: 14px 20px; border: none; border-left: 1px solid rgba(184, 255, 92, .25);
  background: transparent; color: var(--lime); font: 600 13px "IBM Plex Mono", monospace; cursor: pointer;
}
.ca__btn:hover { background: rgba(184, 255, 92, .12); }

.hero__art { position: relative; }
.hero__glow {
  position: absolute; inset: -8%;
  background: radial-gradient(closest-side, rgba(150, 40, 210, .4), transparent);
  filter: blur(30px); animation: glowPulse 5s ease-in-out infinite;
}
.hero__float { position: relative; animation: floatImg 7s ease-in-out infinite alternate; }
/* <picture> 默认是行内元素，会给 block 主图和绝对定位的叠加图引入偏差。
   display:contents 让它在布局上彻底隐身，img 的表现和没包裹时完全一致。 */
.hero__float picture { display: contents; }
.hero__img {
  display: block; width: 100%; border-radius: 22px;
  border: 1px solid rgba(184, 255, 92, .25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(150, 40, 210, .25);
}
.hero__sign {
  position: absolute; inset: 0; width: 100%; border-radius: 22px;
  opacity: 0; z-index: 2; pointer-events: none; transform: scale(.96);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.5, .4, 1);
}

/* ——— 跑马灯 ——— */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(184, 255, 92, .18);
  border-bottom: 1px solid rgba(184, 255, 92, .18);
  background: rgba(184, 255, 92, .04);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  padding: 15px 0; white-space: nowrap;
  font: 600 14px "IBM Plex Mono", monospace; letter-spacing: .14em; color: rgba(184, 255, 92, .85);
}

/* ——— 通用标题 ——— */
.eyebrow { font: 500 13px "IBM Plex Mono", monospace; letter-spacing: .16em; margin-bottom: 18px; }
.eyebrow--lime { color: var(--lime); }
.eyebrow--pink { color: var(--pink); }
.h2 { margin: 0 0 14px; font-family: "Archivo Black", sans-serif; line-height: 1.02; color: #fff; }

/* ——— 台子墙 ——— */
.wall { text-align: center; padding: 110px 32px 90px; }
.wall__pills { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; max-width: 1020px; margin: 0 auto; }
.pill {
  display: inline-flex; padding: 9px 18px; border-radius: 999px;
  font: 500 15px "Space Grotesk", sans-serif;
  border: 1px solid var(--c); color: var(--c);
  background: rgba(255, 255, 255, .02);
  opacity: .5; transition: all .18s; cursor: default;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 77, 109, .9);
}
.pill:hover { opacity: 1; transform: scale(1.08) rotate(-1.5deg); box-shadow: 0 0 20px var(--glow); }
.pill--us {
  border: 1px solid #fff; color: var(--bg); background: #fff; font-weight: 700;
  opacity: 1; text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 255, 255, .5); animation: glowPulse 3s ease-in-out infinite;
}

/* ——— 链上事实卡片 ——— */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.fact {
  padding: 28px 26px; border-radius: 18px;
  border: 1px solid rgba(184, 255, 92, .22); background: rgba(184, 255, 92, .04);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.fact:hover { border-color: rgba(184, 255, 92, .55); box-shadow: 0 0 30px rgba(184, 255, 92, .12); }
.fact__n { font: 600 13px "IBM Plex Mono", monospace; color: var(--lime); }
.fact__h { font-size: 17px; font-weight: 700; color: #fff; }
.fact__p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
/* 实时链上校验结果 */
.fact__check {
  margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(184, 255, 92, .15);
  font: 500 12.5px "IBM Plex Mono", monospace; color: var(--dim);
  display: flex; align-items: center; gap: 8px; word-break: break-all;
}
.fact__check[data-state="ok"] { color: var(--lime); }
.fact__check[data-state="bad"] { color: var(--red); }
.fact__check[data-state="wait"] { opacity: .6; }

/* ——— 实时行情 ——— */
.live { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat {
  padding: 26px 18px; border-radius: 16px;
  border: 1px solid rgba(233, 226, 242, .14); background: rgba(255, 255, 255, .02);
}
.stat__v { font: 700 clamp(20px, 2.2vw, 28px) "IBM Plex Mono", monospace; color: var(--lime); }
.stat__v--pink { color: var(--red); }
.stat__k { margin-top: 8px; font: 500 13px "IBM Plex Mono", monospace; color: var(--dim); }

.panel {
  border: 1px solid rgba(255, 77, 216, .25); border-radius: 24px; padding: 56px 40px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 77, 216, .08), transparent);
  text-align: center;
}

/* ——— 页脚 ——— */
.foot {
  border-top: 1px solid rgba(184, 255, 92, .12); padding: 44px 32px; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
}
.foot__h { font-family: "Archivo Black", sans-serif; font-size: 18px; color: #fff; }
.foot__social { display: flex; justify-content: center; gap: 14px; margin: 6px 0 2px; }
.foot__social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(184, 255, 92, .3);
  font: 600 13px "IBM Plex Mono", monospace; color: var(--lime);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.foot__social a:hover {
  border-color: var(--lime); background: rgba(184, 255, 92, .08);
  box-shadow: 0 0 22px rgba(184, 255, 92, .3); color: var(--lime);
}
.nav__tg { white-space: nowrap; }
.foot__p { font: 400 13px "IBM Plex Mono", monospace; color: var(--dim); }
.foot__fine { font: 400 12px "IBM Plex Mono", monospace; color: var(--faint); max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ——— NO FUN 盖章遮罩 ——— */
.ov { display: none; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: rgba(10, 5, 16, .42); }
.ov__slot { position: absolute; }
.ov__stamp {
  display: inline-block; opacity: 0; font-family: "Archivo Black", sans-serif;
}

/* ——— 滚动揭示 ———
   刻意不在 CSS 里预先隐藏：JS 挂了或被拦了的话，内容必须照样可见。
   初始隐藏态由 app.js 施加，和原设计稿的行为一致。 */
[data-reveal].armed { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].armed.in { opacity: 1; transform: none; }

/* ——— 响应式：设计稿是定宽桌面版，这里补齐窄屏 ——— */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 20px 64px; }
  .ghost { display: none; }
  .nav { padding: 14px 18px; }
  .nav__links { gap: 16px; font-size: 13px; }
  .wrap { padding: 0 20px; }
  .wall { padding: 72px 20px 60px; }
  .panel { padding: 36px 20px; }
}
@media (max-width: 600px) {
  .nav__links a:not(.btn-lime) { display: none; }
  .hero__title { font-size: clamp(56px, 17vw, 96px); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row a, .cta-row button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
