/* ============================================================
   三嘟游戏工作室 · Sandu Games
   像素风独立游戏工作室官网 · 纯静态样式表
   规则：无外链字体 / 无外链图片 / 无圆角 / 全部硬边像素
   ============================================================ */

:root {
  --bg-deep: #0B0E1A;      /* 背景顶 */
  --bg-night: #141B33;     /* 背景底 */
  --gold: #FFC845;         /* 星月暖金 */
  --cyan: #38E8FF;         /* 晶石青蓝 */
  --red: #FF5A4E;          /* 猫猫围巾红 */
  --cream: #F4F7FF;        /* 奶油白文字 */
  --panel: #1A2340;        /* 卡片底色（深蓝系） */
  --panel-line: #2E3A63;   /* 卡片内描线 */
  --muted: #9AA6C8;        /* 次要文字 */
  --pixel: 4px;            /* 像素网格单位 */

  /* 派生色板 */
  --panel-deep: #101733;
  --ink: #0A0E1C;
  --nav-h: 72px;

  /* 字体栈（全部系统字体，无外链） */
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-pix: "Cascadia Mono", "Consolas", "Courier New", ui-monospace, monospace;

  --hard-shadow: 2px 2px 0 rgba(0, 0, 0, .6);

  /* 四角阶梯切角（两步，共 8px），用于卡片与按钮 */
  --stair: polygon(
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 4px,
    calc(100% - 4px) 4px,
    calc(100% - 4px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 4px),
    4px calc(100% - 4px),
    4px calc(100% - 8px),
    0 calc(100% - 8px),
    0 8px,
    4px 8px,
    4px 4px,
    8px 4px
  );

  /* 单步 4px 切角，用于小尺寸元素 */
  --stair-sm: polygon(
    4px 0,
    calc(100% - 4px) 0,
    calc(100% - 4px) 4px,
    100% 4px,
    100% calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%,
    4px 100%,
    4px calc(100% - 4px),
    0 calc(100% - 4px),
    0 4px,
    4px 4px
  );
}

/* ------------------------- 基础重置 ------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-night) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--gold);
  color: #1A1206;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* 所有位图与画布必须保持像素锐利 */
img,
canvas,
svg {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 全屏星空画布：压在内容之下，不接收事件 */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: transparent;
}

.pix-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ------------------------- 顶部导航 ------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 24px;
  background-color: rgba(11, 14, 26, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--pixel) solid rgba(46, 58, 99, .9);
  box-shadow: 0 var(--pixel) 0 rgba(4, 7, 16, .55);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
}

.nav-brand .pix-svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.nav-brand-name {
  font-family: var(--font-pix);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: var(--hard-shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  padding: 4px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--cream);
  transition: color .12s steps(2), box-shadow .12s steps(2);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold);
  box-shadow: inset 0 -4px 0 var(--gold);
  outline: none;
}

.nav-brand:focus-visible {
  outline: none;
  box-shadow: inset 0 -4px 0 var(--cyan);
}

/* ------------------------- 像素卡片 ------------------------- */

/* 阶梯切角 + 8px 双层描边 + 顶部青蓝高光线 + 硬像素投影 */
.pixel-box {
  position: relative;
  background-color: var(--panel);
  -webkit-clip-path: var(--stair);
  clip-path: var(--stair);
  box-shadow:
    inset 0 var(--pixel) 0 rgba(56, 232, 255, .30),
    inset 0 0 0 var(--pixel) var(--panel-line),
    inset 0 0 0 calc(var(--pixel) * 2) var(--panel-deep);
  filter: drop-shadow(0 var(--pixel) 0 rgba(4, 7, 16, .55));
}

/* ------------------------- 像素按钮 ------------------------- */

.pix-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  background-color: var(--panel);
  color: var(--cream);
  font-family: var(--font-pix);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-clip-path: var(--stair-sm);
  clip-path: var(--stair-sm);
  /* 底部两层厚像素阴影（无模糊），跟随阶梯切角轮廓 */
  filter: drop-shadow(0 var(--pixel) 0 #0C1224) drop-shadow(0 var(--pixel) 0 #05080F);
  transition: transform .06s steps(2), filter .06s steps(2), background-color .12s steps(2), color .12s steps(2);
}

/* 常驻像素描边：深色内描线 + 顶部高光 */
.pix-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-clip-path: var(--stair-sm);
  clip-path: var(--stair-sm);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .32),
    inset 0 2px 0 rgba(255, 255, 255, .24);
}

/* 悬停时的青金硬边像素微光 */
.pix-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  -webkit-clip-path: var(--stair-sm);
  clip-path: var(--stair-sm);
  box-shadow:
    inset 0 0 0 2px rgba(56, 232, 255, .9),
    inset 0 0 0 4px rgba(255, 200, 69, .38);
  transition: opacity .06s steps(2);
}

.pix-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 var(--pixel) 0 #0C1224) drop-shadow(0 calc(var(--pixel) * 2) 0 #05080F);
}

.pix-btn:hover::after,
.pix-btn:focus-visible::after {
  opacity: 1;
}

.pix-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.pix-btn:active {
  transform: translateY(var(--pixel));
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.pix-btn:active::before {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .45),
    inset 0 -4px 0 rgba(0, 0, 0, .18);
}

.pix-btn-gold {
  background-color: var(--gold);
  color: #1A1206;
  text-shadow: 2px 2px 0 rgba(255, 248, 214, .6);
}

.pix-btn-cyan {
  background-color: var(--cyan);
  color: #041B24;
  text-shadow: 2px 2px 0 rgba(214, 252, 255, .55);
}

.pix-btn-red {
  background-color: var(--red);
  color: var(--cream);
  text-shadow: 2px 2px 0 rgba(122, 26, 20, .7);
}

.pix-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  background-color: var(--panel);
}

.pix-btn-icon::before {
  box-shadow:
    inset 0 0 0 2px var(--panel-line),
    inset 0 2px 0 rgba(56, 232, 255, .18);
}

.pix-btn-icon .pix-svg {
  width: 22px;
  height: 22px;
}

#sound-toggle[aria-pressed="true"] .icon-sound-off {
  display: none;
}

#sound-toggle[aria-pressed="false"] .icon-sound-on {
  display: none;
}

/* ------------------------- 首屏 Hero ------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: calc(100vh - var(--nav-h));
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px 64px;
  text-align: center;
  scroll-margin-top: 88px;
}

/* Logo 容器：整体混合，让纯黑底彻底融进夜空 */
.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--pixel);
  mix-blend-mode: lighten;
  animation: logoFloat 5s ease-in-out infinite;
}

/* 径向暗角光晕 */
.logo-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(56, 232, 255, .16) 0%,
    rgba(255, 200, 69, .08) 32%,
    rgba(11, 14, 26, 0) 68%
  );
}

.logo {
  display: block;
  width: min(360px, 78vw);
  height: auto;
  max-width: 100%;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 62%, transparent 96%);
  mask-image: radial-gradient(ellipse 72% 72% at center, #000 62%, transparent 96%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* CSS 像素星芒（4px 像素块拼十字） */
.sparkle {
  position: absolute;
  z-index: 3;
  width: var(--pixel);
  height: var(--pixel);
  color: var(--gold);
  background-color: currentColor;
  box-shadow:
    calc(var(--pixel) * -1) 0 0 currentColor,
    var(--pixel) 0 0 currentColor,
    0 calc(var(--pixel) * -1) 0 currentColor,
    0 var(--pixel) 0 currentColor;
  pointer-events: none;
  animation: sparkleBlink 2.6s steps(3) infinite;
}

.sparkle.s1 {
  top: 6%;
  left: 2%;
}

.sparkle.s2 {
  top: 12%;
  right: 3%;
  color: var(--cyan);
  animation-delay: .4s;
}

.sparkle.s3 {
  bottom: 10%;
  left: 6%;
  color: var(--cyan);
  animation-delay: .9s;
}

.sparkle.s4 {
  bottom: 6%;
  right: 2%;
  animation-delay: 1.3s;
}

.sparkle.s5 {
  top: -2%;
  right: 26%;
  color: var(--cyan);
  animation-delay: 1.8s;
}

/* RPG 对话框 */
.dialog {
  width: 100%;
  max-width: 680px;
  padding: 20px 24px;
  text-align: left;
}

.dialog-name {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background-color: var(--red);
  color: var(--cream);
  font-family: var(--font-pix);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  box-shadow: 0 var(--pixel) 0 #A8382F;
}

.dialog-text {
  min-height: 3.6em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cream);
  overflow-wrap: break-word;
  word-break: break-word;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 18px;
  margin-left: 2px;
  vertical-align: -3px;
  background-color: var(--cyan);
  animation: caretBlink .9s steps(1) infinite;
}

/* 打字结束后光标淡出，表示原文已完整显示 */
.dialog.is-done .caret {
  animation: none;
  opacity: 0;
}

/* 状态胶囊 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px;
  background-color: var(--panel);
  font-family: var(--font-pix);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--cream);
  -webkit-clip-path: var(--stair-sm);
  clip-path: var(--stair-sm);
  box-shadow:
    inset 0 0 0 2px var(--panel-line),
    inset 0 2px 0 rgba(56, 232, 255, .18);
}

.status-led {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background-color: #4BE38A;
  box-shadow: 0 0 0 2px rgba(75, 227, 138, .18);
  animation: ledBlink 1.2s steps(2) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

#btn-explore,
#btn-taptap {
  min-width: 200px;
}

/* 打字机文本保留空格并允许换行 */
#typewriter {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ------------------------- 通用区块 ------------------------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px;
  scroll-margin-top: 88px;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
}

.section-title-en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-pix);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.5;
  color: var(--gold);
  text-shadow: var(--hard-shadow);
}

/* ------------------------- 关于我们 ------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}

.about-intro {
  padding: 24px;
  font-size: 16px;
  line-height: 1.9;
}

.about-intro p + p {
  margin-top: 12px;
}

.badge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  max-width: 100%;
}

.badge-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.badge-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 10px;
  background-color: var(--panel-deep);
  box-shadow:
    inset 0 0 0 2px var(--panel-line),
    inset 0 2px 0 rgba(56, 232, 255, .18);
}

.badge-title {
  font-family: var(--font-pix);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--gold);
  text-shadow: var(--hard-shadow);
}

.badge-desc {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* 投喂彩蛋 */
.feed {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.feed-layer {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.fx-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  pointer-events: none;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg));
  animation: fxRise var(--dur, 1.1s) steps(8) forwards;
  will-change: transform, opacity;
}

/* 红心：3px 像素格拼 5x5 爱心 */
.fx-particle.is-heart {
  --c: var(--red);
  background-color: transparent;
  box-shadow:
    3px 0 0 var(--c), 9px 0 0 var(--c),
    0 3px 0 var(--c), 3px 3px 0 var(--c), 6px 3px 0 var(--c), 9px 3px 0 var(--c), 12px 3px 0 var(--c),
    0 6px 0 var(--c), 3px 6px 0 var(--c), 6px 6px 0 var(--c), 9px 6px 0 var(--c), 12px 6px 0 var(--c),
    3px 9px 0 var(--c), 6px 9px 0 var(--c), 9px 9px 0 var(--c),
    6px 12px 0 var(--c);
}

/* 小鱼干：金色鱼身 + 青蓝鱼尾 */
.fx-particle.is-fish {
  background-color: transparent;
  box-shadow:
    3px 0 0 var(--gold),
    0 3px 0 var(--gold), 3px 3px 0 var(--gold), 6px 3px 0 var(--gold), 9px 3px 0 var(--gold), 12px 3px 0 var(--gold),
    0 6px 0 var(--gold), 3px 6px 0 var(--gold), 6px 6px 0 var(--gold), 9px 6px 0 var(--gold), 12px 6px 0 var(--gold),
    3px 9px 0 var(--gold),
    15px 3px 0 var(--cyan), 15px 6px 0 var(--cyan);
}

.feed-count {
  font-family: var(--font-pix);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--muted);
}

.feed-msg {
  min-height: 2.6em;
  max-width: 100%;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: var(--gold);
  opacity: 0;
  background-color: rgba(26, 35, 64, .92);
  box-shadow: inset 0 0 0 2px var(--panel-line);
  transition: opacity .12s steps(2);
  overflow-wrap: break-word;
}

.feed-msg.is-show {
  opacity: 1;
}

#feed-layer {
  overflow: visible;
}

#feed-count {
  font-variant-numeric: tabular-nums;
}

#feed-msg {
  pointer-events: none;
}

.pix-btn.is-shake {
  animation: btnShake .14s steps(2) 2;
}

/* ------------------------- 新作预告 ------------------------- */

.blind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

/* 青金虚线像素框 */
.blind-card {
  padding: 28px 20px 24px;
  text-align: center;
  background-color: var(--panel);
  box-shadow: none;
  transition: transform .1s steps(2), box-shadow .1s steps(2);
}

.blind-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(90deg, var(--cyan) 0 8px, rgba(56, 232, 255, 0) 8px 16px),
    repeating-linear-gradient(90deg, var(--gold) 0 8px, rgba(255, 200, 69, 0) 8px 16px),
    repeating-linear-gradient(180deg, var(--cyan) 0 8px, rgba(56, 232, 255, 0) 8px 16px),
    repeating-linear-gradient(180deg, var(--gold) 0 8px, rgba(255, 200, 69, 0) 8px 16px);
  background-size: 100% 4px, 100% 4px, 4px 100%, 4px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
  transition: opacity .1s steps(2);
}

.blind-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 4px rgba(255, 200, 69, .08);
}

/* 悬停时虚线像素框整体提亮 */
.blind-card:hover::before {
  filter: brightness(1.45) saturate(1.15);
}

.blind-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  padding: 18px;
  background-color: var(--panel-deep);
  box-shadow:
    inset 0 0 0 2px var(--panel-line),
    inset 0 2px 0 rgba(255, 200, 69, .16);
  transform-origin: 50% 80%;
  animation: blindWobble 2.4s steps(4) infinite;
}

.blind-card:nth-child(2) .blind-icon {
  animation-delay: .5s;
}

.blind-card:nth-child(3) .blind-icon {
  animation-delay: 1s;
}

.blind-title {
  margin-bottom: 10px;
  font-family: var(--font-pix);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--gold);
  text-shadow: var(--hard-shadow);
}

.blind-tag {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cyan);
}

.blind-status {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ------------------------- 联系我们 ------------------------- */

.contact-box {
  max-width: 640px;
  margin: 36px auto 0;
  padding: 28px 24px;
  text-align: center;
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mail-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.email-text {
  max-width: 100%;
  font-family: var(--font-pix);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--cream);
  text-shadow: var(--hard-shadow);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

#email-text {
  cursor: text;
}

#copy-email {
  flex: 0 0 auto;
}

/* ------------------------- 页脚 ------------------------- */

.footer {
  padding: 32px 20px 48px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  border-top: var(--pixel) solid var(--panel-line);
  box-shadow: inset 0 var(--pixel) 0 rgba(56, 232, 255, .12);
}

.footer p {
  margin: 0;
}

/* ------------------------- 全局提示 ------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 999;
  max-width: calc(100% - 48px);
  padding: 12px 20px;
  background-color: var(--gold);
  color: #1A1206;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  -webkit-clip-path: var(--stair-sm);
  clip-path: var(--stair-sm);
  box-shadow: inset 0 0 0 2px rgba(26, 18, 6, .25);
  transition: opacity .12s steps(2), transform .12s steps(2);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------- 动画 ------------------------- */

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

@keyframes sparkleBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: .35;
    transform: scale(.7);
  }
  70% {
    opacity: .8;
    transform: scale(1.2);
  }
}

@keyframes caretBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes ledBlink {
  0%,
  100% {
    opacity: 1;
    background-color: #4BE38A;
  }
  50% {
    opacity: .45;
    background-color: #1D6B44;
  }
}

@keyframes fxRise {
  0% {
    transform: translate(var(--dx, 0px), 0) rotate(var(--rot, 0deg)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0px), var(--dy, -90px)) rotate(var(--rot, 0deg)) scale(.6);
    opacity: 0;
  }
}

@keyframes btnShake {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translate(-3px, 0);
  }
  75% {
    transform: translate(3px, 0);
  }
}

@keyframes blindWobble {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-3px);
  }
}

/* ------------------------- 响应式：≤900px ------------------------- */

@media (max-width: 900px) {
  .nav {
    padding: 0 16px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .blind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .logo {
    width: min(320px, 80vw);
  }

  .section {
    padding: 64px 20px;
  }
}

/* ------------------------- 响应式：≤560px ------------------------- */

@media (max-width: 560px) {
  :root {
    --nav-h: 60px;
  }

  body {
    font-size: 15px;
  }

  .nav {
    gap: 6px;
    padding: 0 6px;
  }

  .nav-brand {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .nav-brand .pix-svg {
    width: 18px;
    height: 18px;
  }

  .nav-brand-name {
    font-size: 12px;
    letter-spacing: 0;
  }

  .nav-links {
    gap: 8px;
    flex: 0 0 auto;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 0;
  }

  .pix-btn-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .pix-btn-icon .pix-svg {
    width: 18px;
    height: 18px;
  }

  .hero {
    gap: 16px;
    padding: 32px 16px 48px;
  }

  .logo {
    width: min(280px, 72vw);
  }

  .dialog {
    padding: 16px;
  }

  .dialog-text {
    min-height: 4.5em;
    font-size: 15px;
  }

  .dialog-name {
    font-size: 12px;
    padding: 4px 10px;
  }

  .status-pill {
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
  }

  .hero-actions .pix-btn {
    width: 100%;
  }

  .section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-title-en {
    font-size: 12px;
    letter-spacing: .16em;
  }

  .about-grid {
    margin-top: 28px;
  }

  .about-intro {
    padding: 18px;
    font-size: 15px;
    line-height: 1.85;
  }

  .badge-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .badge-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .badge-title {
    font-size: 16px;
  }

  .badge-desc {
    font-size: 14px;
  }

  #feed-btn {
    width: 100%;
    max-width: 280px;
  }

  .blind-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 28px;
  }

  .blind-card {
    padding: 24px 16px 20px;
  }

  .blind-icon {
    width: 84px;
    height: 84px;
    padding: 14px;
    margin-bottom: 14px;
  }

  .blind-title {
    font-size: 18px;
  }

  .contact-box {
    margin-top: 28px;
    padding: 22px 16px;
  }

  .mail-row {
    flex-direction: column;
    gap: 10px;
  }

  .email-text {
    font-size: 15px;
  }

  .contact-note {
    font-size: 13px;
  }

  .footer {
    padding: 24px 16px 36px;
    font-size: 13px;
  }

  .toast {
    bottom: 24px;
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ------------------------- 降低动效偏好 ------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* 关掉动画后粒子会停在终点，直接隐藏避免残影 */
  .fx-particle {
    opacity: 0 !important;
  }

  .caret {
    opacity: 1;
  }
}
