@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-700-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F1E7;
  --surface: #FCF8F0;
  --text: #453527;
  --muted: rgba(69, 53, 39, 0.66);
  --faint: rgba(69, 53, 39, 0.42);
  --border: rgba(69, 53, 39, 0.14);
  --border-strong: rgba(69, 53, 39, 0.26);
  --accent: #FF5A2E;
  --accent-deep: #D93A14;
  --display: "LXGW WenKai", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: #FFF8F0;
}

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

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow::before,
.glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.glow::before {
  width: 56vw;
  height: 56vw;
  left: -14vw;
  bottom: -30vw;
  background: radial-gradient(circle, rgba(255, 90, 46, 0.06) 0%, transparent 70%);
  animation: drift-a 30s ease-in-out infinite alternate;
}

.glow::after {
  width: 42vw;
  height: 42vw;
  right: -16vw;
  top: -22vw;
  background: radial-gradient(circle, rgba(217, 58, 20, 0.045) 0%, transparent 70%);
  animation: drift-b 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(6vw, -4vw); }
}

@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-5vw, 5vw); }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: block;
  width: 21px;
  height: 21px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--accent-deep);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 96px;
}

.hero-video {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
}

.hv-glow {
  position: absolute;
  inset: -24%;
  background: radial-gradient(circle, rgba(255, 90, 46, 0.16), transparent 65%);
  animation: hv-glow 5.2s ease-in-out infinite;
}

.hv-tile {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(69, 53, 39, 0.16), 0 4px 12px rgba(69, 53, 39, 0.08);
  animation: hv-float 5.2s ease-in-out infinite;
}

.hv-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes hv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hv-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.flame-char {
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.15s var(--ease);
}

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

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-disabled {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--faint);
  cursor: not-allowed;
  font-size: 14px;
  height: 40px;
  padding: 0 22px;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 56px);
}

.section-head {
  margin-bottom: 40px;
}

h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.h2-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  display: inline-block;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- app card ---------- */

.app-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.app-card:hover {
  border-color: rgba(255, 90, 46, 0.45);
  box-shadow: 0 18px 40px rgba(69, 53, 39, 0.1);
}

.app-icon-tile {
  width: 96px;
  height: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon {
  width: 44px;
  height: 44px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  border: 1px solid rgba(255, 90, 46, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}

.app-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  list-style: none;
}

.feature-chips li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.app-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- feedback ---------- */

.feedback-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.feedback-privacy {
  margin-top: 24px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.feedback-privacy span::before {
  content: '■ ';
  color: var(--accent);
  font-size: 8px;
  vertical-align: 2px;
}

.feedback-privacy-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- about ---------- */

.about-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.about-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.about-statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text);
  max-width: 640px;
}

.about-statement em {
  font-style: normal;
  color: var(--accent);
}

.about-principles {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-principles span::before {
  content: '■ ';
  color: var(--accent);
  font-size: 8px;
  vertical-align: 2px;
}
/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 52px clamp(20px, 5vw, 56px) 46px;
  font-size: 13px;
  color: var(--faint);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-mark {
  width: 17px;
  height: 17px;
  opacity: 0.92;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  transition: color 0.25s var(--ease);
}

.footer-meta:hover {
  color: var(--muted);
}

.footer-divider {
  width: 100%;
  max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px auto 8px;
}

.footer-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* footer hover sparks */
@media (prefers-reduced-motion: no-preference) {
  .footer:hover .footer-spark {
    opacity: 1;
    animation: footer-spark-rise 1.8s ease-out both;
    animation-delay: var(--delay, 0s);
  }
}
@keyframes footer-spark-rise {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), -48px) scale(0.4); opacity: 0; }
}

/* ---------- flame sparks ---------- */

.spark {
  opacity: 0;
  animation: spark-blink 2.6s steps(1) infinite;
}

.spark.s2 { animation-delay: 0.7s; }
.spark.s3 { animation-delay: 1.3s; }
.spark.s4 { animation-delay: 1.9s; }

@keyframes spark-blink {
  0%, 100% { opacity: 0; }
  12%, 30% { opacity: 1; }
  42% { opacity: 0; }
}

/* ---------- reveal（滚动浮现增强） ---------- */

@media (prefers-reduced-motion: no-preference) {

  .js .reveal {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js .reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(14px);
  }

  .js .reveal[data-i="1"] { transition-delay: 0.12s; }
  .js .reveal[data-i="2"] { transition-delay: 0.24s; }
  .js .reveal[data-i="3"] { transition-delay: 0.36s; }
  .js .reveal[data-i="4"] { transition-delay: 0.48s; }

  /* 卡片与面板：轻轻拉伸展开 */
  .js .app-card.reveal:not(.revealed),
  .js .feedback-panel.reveal:not(.revealed) {
    transform: translateY(30px) scale(0.98);
  }

  .js .app-card.reveal,
  .js .feedback-panel.reveal {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  /* 徽章视频：缩放拉伸进场 */
  .js .hero-video.reveal:not(.revealed) {
    transform: scale(0.86) translateY(10px);
  }

  /* 标题前的橙色方块：横向拉伸出现 */
  .js .reveal .h2-mark {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  }

  .js .reveal.revealed .h2-mark {
    transform: scaleX(1);
  }
}

/* ---------- reduced motion ---------- */

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

  .glow::before,
  .glow::after,
  .spark {
    animation: none;
  }

  .spark {
    opacity: 0;
  }

  .hv-tile,
  .hv-glow {
    animation: none;
  }

  .app-card,
  .btn {
    transition: none;
  }
}

/* ---------- mobile ---------- */

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

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 88px 20px 72px;
  }

  .hero-video {
    width: 118px;
    height: 118px;
    margin-bottom: 24px;
  }

  .section {
    padding: 64px 20px;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }

  .app-icon-tile {
    width: 64px;
    height: 64px;
  }

  .app-icon {
    width: 32px;
    height: 32px;
  }

  .feedback-panel {
    padding: 26px;
  }

  .footer {
    padding: 24px 20px 32px;
  }
}

/* ===== 进站验证门（Cloudflare Turnstile）===== */
body.gate-lock {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(246, 241, 231, 0.88);
  background-image: radial-gradient(640px 460px at 50% 32%, rgba(255, 90, 46, 0.06), transparent 70%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.55s var(--ease);
}

.gate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}

.gate[hidden] {
  display: none;
}

body.gate-open .gate {
  opacity: 0;
  pointer-events: none;
}

.gate-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(69, 53, 39, 0.14);
}

.gate-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.gate-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.ts-box {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.gate-status {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.gate-status.is-error {
  color: var(--accent-deep);
}

.gate-status.is-done {
  color: var(--accent);
}

.gate-foot {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.gate-noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 12px 16px;
  background: var(--accent-deep);
  color: #fff;
  border-radius: 6px;
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 860px) {
  .gate-logo {
    width: 76px;
    height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate {
    transition: none;
  }
}

/* ---------- 细节打磨（方案A） ---------- */

::selection {
  background: rgba(255, 90, 46, 0.22);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 53, 39, 0.32) transparent;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(69, 53, 39, 0.26);
  border-radius: 999px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(69, 53, 39, 0.42);
}

#apps,
#feedback,
#about {
  scroll-margin-top: 88px;
}

.nav {
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(246, 241, 231, 0.92);
  box-shadow: 0 10px 28px rgba(69, 53, 39, 0.07);
}

.hero-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---------- 回到顶部 ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(246, 241, 231, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(69, 53, 39, 0.1);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--accent);
  border-color: rgba(255, 90, 46, 0.4);
}

.to-top:active {
  transform: scale(0.96);
}

.to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- 页脚火苗微呼吸 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .footer-mark {
    animation: mark-breath 4.8s ease-in-out infinite;
  }
}

@keyframes mark-breath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 90, 46, 0));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 7px rgba(255, 90, 46, 0.45));
  }
}

/* ---------- 氛围细节：页面淡入 / 火星粒子 / 导航下划线 / 404 ---------- */

@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in 0.45s ease both; }
  @keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
}

.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

.hero-video .spark {
  position: absolute;
  left: var(--sx);
  bottom: 14%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-video .spark {
    animation: spark-rise var(--sdur, 4s) linear infinite;
    animation-delay: var(--sd, 0s);
  }
  @keyframes spark-rise {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    12% { opacity: 0.9; }
    60% { opacity: 0.55; }
    100% { transform: translate(var(--dx, 10px), -110px) scale(0.6); opacity: 0; }
  }
}

.nf-fire { width: 132px; height: auto; margin-bottom: 26px; }
.nf-code {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 14px;
}
.nf-sub { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.nf-smoke { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .nf-smoke { animation: smoke-rise 3.2s ease-in-out infinite; }
  .nf-smoke.s2 { animation-delay: 1.1s; }
  .nf-smoke.s3 { animation-delay: 2.2s; }
  @keyframes smoke-rise {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-5px); opacity: 0.7; }
  }
}
/* ---------- 404 beautify ---------- */
.nf-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 26px;
}
.nf-stage { position: relative; }
.nf-ember {
  position: absolute;
  left: var(--sx);
  bottom: 30%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .nf-ember {
    animation: ember-rise var(--edur, 5.5s) ease-in infinite;
    animation-delay: var(--ed, 0s);
  }
  @keyframes ember-rise {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    15% { opacity: 0.5; }
    70% { opacity: 0.18; }
    100% { transform: translate(var(--edx, 8px), -92px) scale(0.5); opacity: 0; }
  }
}

/* ===== directory cards ===== */
.section-dir { padding-top: 24px; padding-bottom: 96px; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dir-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px 26px 24px; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.dir-card:hover { border-color: rgba(255, 90, 46, 0.45); box-shadow: 0 18px 40px rgba(69, 53, 39, 0.1); transform: translateY(-3px); }
.dir-icon { width: 22px; height: 22px; margin-bottom: 10px; }
.dir-title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.dir-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.dir-go { position: absolute; top: 24px; right: 22px; width: 14px; height: 14px; color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.dir-card:hover .dir-go { color: var(--accent); transform: translateX(3px); }
@media (max-width: 860px) { .dir-grid { grid-template-columns: 1fr; } }

/* ===== 内页垂直居中壳（apps/feedback/about）===== */
.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-shell main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== footer legal (minimal) ===== */
.footer-legal {
  max-width: 560px;
  margin: 2px auto 0;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.7;
  text-align: center;
}

/* ===== feedback email CTA (restored) ===== */
.feedback-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 16px 20px; border: 1px dashed var(--border); border-radius: 8px; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.feedback-cta:hover { border-color: rgba(255, 90, 46, 0.5); background-color: rgba(255, 90, 46, 0.04); }
.feedback-mail { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--text); text-decoration: none; transition: color .3s var(--ease); }
.feedback-mail:hover { color: var(--accent); }
.mail-icon { width: 14px; height: 14px; color: var(--accent); }
.feedback-note { font-size: 12.5px; color: var(--faint); }


/* ===== message wall preview ===== */
.wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.wall-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; box-shadow: 0 1px 0 rgba(69, 53, 39, 0.05); transform: rotate(var(--tilt, 0deg)); }
.wall-card:not(.wall-empty)::before { content: ''; position: absolute; top: -8px; left: 50%; width: 44px; height: 12px; margin-left: -22px; background: rgba(255, 90, 46, 0.30); border: 1px solid rgba(255, 90, 46, 0.35); border-radius: 1px; box-shadow: 0 1px 0 rgba(69, 53, 39, 0.05); transform: rotate(var(--tape-rot, -3deg)); pointer-events: none; }
.wc-1 { --tilt: -0.6deg; --tape-rot: 2.5deg; }
.wc-2 { --tilt: 0.5deg; --tape-rot: -3deg; background: #FDF6EE; }
.wc-3 { --tilt: -0.4deg; --tape-rot: 1.5deg; background: #FBF3DB; }
.wall-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wall-avatar { width: 20px; height: 20px; flex: none; }
.wall-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.wall-date { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.wall-text { font-size: 14px; color: var(--text); line-height: 1.7; }
.wall-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; background: transparent; border: 1px dashed var(--border); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.wall-empty:hover { border-color: rgba(255, 90, 46, 0.5); background-color: rgba(255, 90, 46, 0.04); }
.wall-next { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.wall-hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); }
.wall-fuel { width: 26px; height: 26px; margin-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .wall-fuel { animation: flame-flicker 1.7s ease-in-out infinite; transform-origin: 50% 82%; }
}
@keyframes flame-flicker {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  30% { transform: scaleY(0.92) scaleX(1.05) rotate(-1.5deg); }
  55% { transform: scaleY(1.07) scaleX(0.96) rotate(1deg); }
  75% { transform: scaleY(0.96) scaleX(1.03) rotate(-0.5deg); }
}
.js .wall-card.reveal.revealed { transform: rotate(var(--tilt, 0deg)); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.js .wall-card.reveal.revealed:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 8px 18px rgba(69, 53, 39, 0.14); }
.wall-card:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 8px 18px rgba(69, 53, 39, 0.14); }
@media (max-width: 860px) { .wall-grid { grid-template-columns: 1fr; } .wall-card { --tilt: 0deg; } }
