/* ==========================================================================
   花莲的分享站 — light paper theme
   ========================================================================== */

:root {
  --bg: #f6f3ec;
  --bg-deep: #f0ece3;
  --surface: #fffdf8;
  --surface-2: #faf7f0;
  --surface-3: #f3efe6;
  --ink: #1f1f1c;
  --ink-soft: #3e3d38;
  --muted: #6f6c64;
  --faint: #98948a;
  --line: #e1dbcf;
  --line-strong: #c9c1b3;
  --red: #cf4a3e;
  --red-deep: #a83a31;
  --red-soft: #f6e2dd;
  --pink: #d96283;
  --green: #4f9468;
  --blue: #4d7fc0;
  --orange: #b97632;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: min(1180px, calc(100vw - 64px));
  --header-h: 74px;
  --beian-h: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: calc(var(--beian-h) + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(207, 74, 62, 0.07), transparent 65%),
    radial-gradient(800px 500px at -5% 30%, rgba(79, 148, 104, 0.05), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

::selection {
  background: rgba(207, 74, 62, 0.18);
  color: #1a1a18;
}

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

button {
  border: 0;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus { top: 14px; }

/* --------------------------------------------------------------------------
   Ambient / chrome
   -------------------------------------------------------------------------- */

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(201, 193, 179, 0.55);
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  transition: background 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(252, 250, 245, 0.96);
  border-bottom-color: var(--line-strong);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 35px;
  height: 35px;
  color: var(--red);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }

.main-nav a:hover::after,
.main-nav a.is-active::after { width: 15px; }

.nav-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.bili-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #efd3da;
  border-radius: 999px;
  background: #fff6f8;
  color: #c95573;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.bili-chip:hover {
  border-color: #e3a8b7;
  background: #ffedf1;
  color: #b54060;
}

.bili-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.bili-icon svg { width: 100%; height: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta span { font-size: 13px; color: #f2b7ad; }
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 22px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared type / buttons / reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-rule { width: 38px; height: 1px; background: var(--red); }

.eyebrow-tag {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 21px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.button svg { width: 17px; height: 17px; }
.button:hover svg { transform: translateY(2px); }

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 9px 22px rgba(31, 31, 28, 0.12);
}

.button-primary:hover { background: var(--red); transform: translateY(-2px); }

.button-outline {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
}

.button-outline:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(50px, 6vw, 84px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.7), transparent 55%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.65;
  background-image:
    linear-gradient(to right, rgba(111, 108, 100, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 108, 100, 0.06) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(ellipse 80% 80% at 45% 35%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 45% 35%, #000 12%, transparent 76%);
}

.hero-kanji {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: 3%;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(320px, 46vw, 650px);
  line-height: 1;
  opacity: 0.5;
  -webkit-text-stroke: 1px rgba(111, 108, 100, 0.13);
  transform: rotate(5deg);
  pointer-events: none;
  user-select: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 590px;
  padding-bottom: 50px;
}

.hero-copy { position: relative; z-index: 3; max-width: 650px; }

.hero-title {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(60px, 7.2vw, 99px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title-line { display: block; }
.title-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--red);
  color: transparent;
  text-indent: -999px;
  vertical-align: 0.08em;
}

.hero-lede {
  margin-top: 30px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 1.95;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(207, 74, 62, 0.45);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.meta-stat { display: flex; align-items: baseline; gap: 7px; }

.meta-stat strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.meta-stat:first-child strong { color: var(--red); }

.meta-stat span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.meta-divider { width: 1px; height: 22px; background: var(--line); }
.meta-stat-wide { flex-direction: column; gap: 2px; }
.meta-stat-wide strong { font-size: 18px; }
.meta-stat-wide span { font-size: 9px; }

.hero-social { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

.bili-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b94c69;
  font-size: 10.5px;
  transition: color 0.2s;
}

.bili-text-link:hover { color: #9c3652; }
.bili-text-link b { font-weight: 500; border-bottom: 1px solid rgba(217, 98, 131, 0.35); }

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.hero-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* Hero visual -------------------------------------------------------------- */

.hero-visual { position: relative; display: grid; place-items: center; min-height: 570px; }

.hero-big-no {
  position: absolute;
  top: -2%;
  right: -2%;
  z-index: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: 230px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1em;
  opacity: 0.7;
  -webkit-text-stroke: 1px rgba(111, 108, 100, 0.18);
  user-select: none;
}

.orbit { position: absolute; border-radius: 50%; pointer-events: none; }

.orbit-outer {
  width: 545px;
  height: 545px;
  border: 1px solid rgba(207, 74, 62, 0.16);
  animation: orbit-spin 80s linear infinite;
}

.orbit-inner {
  width: 415px;
  height: 415px;
  border: 1px dashed rgba(111, 108, 100, 0.19);
  animation: orbit-spin 55s linear infinite reverse;
}

.orbit-outer::before,
.orbit-outer::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.orbit-outer::before { top: 13%; left: 9%; }
.orbit-outer::after { right: 4%; bottom: 24%; background: var(--green); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.card-shadow {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: 448px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(111, 108, 100, 0.08) 0 1px, transparent 1px 11px),
    #e7e1d5;
  border: 1px solid #d6cec0;
  box-shadow: 0 30px 60px rgba(42, 38, 30, 0.14);
  transform: rotate(-9deg) translate(-22px, 10px);
}

.card-shadow::after {
  content: "遊 戯 王";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(111, 108, 100, 0.28);
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  border: 1px solid rgba(111, 108, 100, 0.14);
  border-radius: 10px;
  margin: 8px;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(348px, 76%);
  padding: 8px 8px 0;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: 0 28px 58px rgba(42, 38, 30, 0.18);
  transform: rotate(2.2deg);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.hero-card:hover { transform: rotate(0.3deg) translateY(-6px); box-shadow: 0 34px 68px rgba(42, 38, 30, 0.22); }

.hero-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 4;
  border: 1px solid rgba(111, 108, 100, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-card-top .card-serial { color: var(--faint); }

.hero-card-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd5c7;
  border-radius: 3px;
}

.hero-card-art picture,
.hero-card-art img { width: 100%; height: 100%; }

.hero-card-art img {
  object-fit: cover;
  object-position: 50% 14%;
  filter: saturate(0.98);
  transition: transform 1.1s var(--ease);
}

.hero-card:hover .hero-card-art img { transform: scale(1.02); }

.art-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(42, 35, 22, 0.16), transparent 22%),
    radial-gradient(circle at 50% 40%, transparent 58%, rgba(42, 35, 22, 0.08));
  pointer-events: none;
}

.art-corner {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.art-corner-tl { top: 9px; left: 9px; border-top: 1px solid; border-left: 1px solid; }
.art-corner-br { right: 9px; bottom: 9px; border-right: 1px solid; border-bottom: 1px solid; }

.hero-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 5px;
  color: var(--ink-soft);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.hero-card-bottom i { color: var(--faint); font-style: normal; }
.card-stars { color: #b8afa0; font-size: 7.5px; letter-spacing: 0.15em; }

.floating-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(42, 38, 30, 0.1);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.02em;
  animation: float-chip 6s ease-in-out infinite;
}

.floating-chip strong { color: var(--red); font-family: var(--serif); font-size: 15px; font-weight: 600; }
.chip-tools { top: 95px; left: 4px; }
.chip-platform { right: 4px; bottom: 165px; animation-delay: -2.5s; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1ece2;
  color: var(--ink-soft);
}

.chip-icon svg { width: 14px; }
.platform-dots { display: flex; gap: 3px; }
.platform-dots i { width: 7px; height: 7px; border-radius: 50%; }
.dot-android { background: var(--green); }
.dot-windows { background: var(--blue); }
.chip-platform b { color: var(--faint); font-weight: 400; }

.floating-seal {
  position: absolute;
  top: 55px;
  right: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 5px;
  border: 1px solid rgba(207, 74, 62, 0.55);
  border-radius: 1px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--red);
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  transform: rotate(3deg);
}

/* Marquee ------------------------------------------------------------------ */

.hero-marquee {
  position: relative;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.36);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee-track span {
  color: #a09a8f;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.marquee-track i { color: var(--red); font-size: 7px; font-style: normal; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(72px, 8vw, 108px) 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.section-index span { color: var(--red); font-family: var(--serif); font-size: 20px; line-height: 1; }
.section-index i { width: 26px; height: 1px; background: var(--line-strong); }
.section-index b { font-weight: 400; }

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 36px;
  align-items: end;
  margin-top: 17px;
}

.section-heading-row h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.7vw, 50px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 360px;
  justify-self: end;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Tool list
   -------------------------------------------------------------------------- */

.tools-section { background: var(--surface); }

.tool-list { display: flex; flex-direction: column; gap: 9px; margin-top: 34px; }

.tool-row {
  --accent: var(--green);
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 102px;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffefa;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s var(--ease);
}

.tool-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(42, 38, 30, 0.08);
}

.tool-row-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

.tool-row-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  padding: 2px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 20%, #fff);
}

.tool-row-icon img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #f2eee6;
}

.tool-row-main { min-width: 0; }

.tool-row-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.tool-row h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.version-count {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.tool-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid #e7e1d6;
  border-radius: 999px;
  background: #faf8f3;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.platform-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.platform-chip.android::before { background: var(--green); }
.platform-chip.windows::before { background: var(--blue); }

.tool-row-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tool-row-download {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transition: background 0.22s, transform 0.22s;
}

.tool-row-download svg { width: 13px; height: 13px; }
.tool-row-download:hover { background: var(--red); }
.tool-row.is-unavailable .tool-row-download { pointer-events: none; opacity: 0.35; }

.tool-row-skeleton {
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.8) 48%, transparent 66%) 0 0 / 220% 100%,
    #f2eee6;
  animation: skeleton 1.6s linear infinite;
}

@keyframes skeleton { to { background-position: -220% 0, 0 0; } }

.tools-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.tools-footnote span:last-child { font-family: var(--mono); font-size: 8.5px; white-space: nowrap; }

.noscript-card {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}

.noscript-card h3 { color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 600; }
.noscript-card p { margin-top: 6px; font-size: 12px; }

.noscript-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 24px;
  margin-top: 14px;
}

.noscript-list a {
  color: var(--red-deep);
  font-size: 11px;
  line-height: 2;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Guide
   -------------------------------------------------------------------------- */

.guide-section { background: var(--bg-deep); }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 34px;
  align-items: start;
}

.steps { display: flex; flex-direction: column; gap: 8px; }

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.72);
  transition: border-color 0.25s, background 0.25s;
}

.step:hover { border-color: var(--line-strong); background: var(--surface); }

.step-no {
  color: transparent;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(207, 74, 62, 0.48);
}

.step-body h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.step-body p { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }

.warning-card {
  padding: 25px 24px 23px;
  border: 1px solid #ebd0c9;
  border-radius: 12px;
  background: #fff7f4;
}

.warning-kicker { color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }

.warning-card h3 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.warning-card ul { margin-top: 18px; border-top: 1px solid #eedbd5; }

.warning-card li {
  position: relative;
  padding: 10px 0 10px 15px;
  border-bottom: 1px solid #f1e2dd;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.7;
}

.warning-card li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Guestbook
   -------------------------------------------------------------------------- */

.board-section { background: var(--surface-2); }

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  margin-top: 34px;
  align-items: start;
}

.board-form-col {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.board-form-col > h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.comment-form { margin-top: 18px; }
.field { position: relative; display: block; margin-bottom: 13px; }

.field > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.field em { color: var(--faint); font-size: 8px; font-style: normal; }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  background: #fbf9f4;
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input { height: 41px; padding: 0 11px; }
.field textarea { min-height: 108px; padding: 10px 11px; line-height: 1.7; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #b0aba0; }

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 74, 62, 0.07);
}

.char-count {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 0 3px;
  color: var(--faint);
  background: #fbf9f4;
  font-family: var(--mono);
  font-size: 8px;
}

.char-count b { color: var(--muted); font-weight: 400; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 5px;
}

.form-foot p { color: var(--faint); font-size: 9px; }
.form-submit { min-height: 39px; padding: 0 15px; font-size: 10.5px; }
.form-submit:disabled { opacity: 0.55; cursor: wait; transform: none; }

.form-status {
  min-height: 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.form-status.is-error { color: var(--red-deep); }
.form-status.is-success { color: var(--green); }

.board-list-col { min-width: 0; }

.board-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.board-count { color: var(--faint); font-family: var(--mono); font-size: 8.5px; }

.comment-list {
  max-height: 410px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  animation: comment-in 0.4s var(--ease-out) both;
}

@keyframes comment-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--avatar-bg, #f1ece2);
  color: var(--avatar-ink, var(--red-deep));
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.comment-main { min-width: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }

.comment-name { color: var(--ink-soft); font-size: 11.5px; font-weight: 600; }

.owner-badge {
  padding: 0 5px;
  border: 1px solid #efc9c3;
  border-radius: 999px;
  background: #fff4f1;
  color: var(--red);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.6;
}

.comment-time { color: var(--faint); font-family: var(--mono); font-size: 8px; }

.comment-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-actions { margin-top: 7px; }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  transition: color 0.2s;
}

.like-btn svg { width: 11px; height: 11px; }
.like-btn:hover,
.like-btn.is-liked { color: var(--pink); }
.like-btn.is-liked svg { fill: currentColor; }

.comment-skeleton {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
}

.comment-skeleton > i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #efeae0;
  animation: pulse-block 1.5s ease-in-out infinite;
}

.comment-skeleton div { padding-top: 4px; }

.comment-skeleton span {
  display: block;
  height: 6px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: #efeae0;
  animation: pulse-block 1.5s ease-in-out infinite;
}

.comment-skeleton span:nth-child(1) { width: 28%; }
.comment-skeleton span:nth-child(2) { width: 91%; }
.comment-skeleton span:nth-child(3) { width: 65%; }

@keyframes pulse-block {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.board-list-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

#board-api-note { display: inline-flex; align-items: center; gap: 5px; }

#board-api-note::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

#board-api-note.is-offline::before { background: var(--faint); }

.comment-empty { padding: 50px 20px; text-align: center; }
.comment-empty strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.comment-empty p { margin-top: 5px; color: var(--faint); font-size: 10px; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-section { background: var(--surface); }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  margin-top: 34px;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffefa;
  overflow: hidden;
}

.profile-avatar { position: relative; z-index: 1; }

.profile-avatar img {
  width: 108px;
  height: 108px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  background: #f1ece2;
}

.avatar-online {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #fffefa;
  border-radius: 50%;
  background: var(--green);
}

.profile-main { position: relative; z-index: 1; min-width: 0; }

.profile-kicker { color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }

.profile-main h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-main h3 small {
  margin-left: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
}

.profile-main > p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; }

.profile-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #faf8f3;
  color: var(--muted);
  font-size: 9px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-link:hover { border-color: var(--line-strong); color: var(--ink); background: #fff; }

.social-link.bili {
  border-color: #efd3da;
  background: #fff6f8;
  color: #b94c69;
}

.social-link.bili:hover { border-color: #e3a8b7; background: #ffedf1; }

.qq-label {
  padding: 1px 4px;
  border-radius: 2px;
  background: #f0ece3;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}

.profile-stamp {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px;
  border: 1px solid rgba(207, 74, 62, 0.32);
  color: rgba(207, 74, 62, 0.52);
  font-family: var(--serif);
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(4deg);
}

.about-copy { display: flex; flex-direction: column; gap: 12px; }

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--line);
}

.about-principles article { min-height: 170px; padding: 20px 17px; background: #fffefa; }
.principle-no { color: var(--red); font-family: var(--mono); font-size: 7.5px; }

.about-principles h4 {
  margin-top: 23px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.about-principles p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.8; }

.disclaimer {
  display: flex;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf8f3;
}

.disclaimer-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 8px;
}

.disclaimer p { color: var(--faint); font-size: 9px; line-height: 1.8; }

/* --------------------------------------------------------------------------
   Footer / fixed ICP
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 54px 0 68px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark.small { width: 29px; height: 29px; }

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-brand p { margin-top: 2px; color: var(--faint); font-size: 8.5px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 5px; }
.footer-nav a { color: var(--muted); font-size: 9.5px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--red); }

.footer-sign {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
}

.footer-contact a { color: #b94c69; }
.footer-contact span { margin: 0 5px; color: var(--line-strong); }

.beian-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--beian-h) + env(safe-area-inset-bottom));
  padding: 0 16px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #000;
}

.beian-bar a { color: #9a968d; font-size: 11px; letter-spacing: 0.05em; transition: color 0.2s; }
.beian-bar a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Back top / toast
   -------------------------------------------------------------------------- */

.back-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--beian-h) + 18px + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 5px 16px rgba(42, 38, 30, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, color 0.2s, border-color 0.2s;
}

.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--red); border-color: var(--red); }
.back-top svg { width: 14px; }

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: calc(var(--beian-h) + 19px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 34px);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 12px 32px rgba(42, 38, 30, 0.16);
  color: var(--ink-soft);
  font-size: 10.5px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease);
}

.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.toast-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e6f2e9;
  color: var(--green);
  font-size: 8px;
}

.toast.is-error .toast-icon { background: #f8e3df; color: var(--red); }

/* --------------------------------------------------------------------------
   Platform picker dialog
   -------------------------------------------------------------------------- */

.tool-dialog {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - var(--beian-h) - 36px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  transform: translate(-50%, -50%);
}

.tool-dialog::backdrop {
  background: rgba(34, 30, 24, 0.36);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.tool-dialog[open] { animation: dialog-in 0.35s var(--ease-out); }

@keyframes dialog-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.99); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - var(--beian-h) - 36px);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 30px 80px rgba(42, 38, 30, 0.24);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fffdf9;
  transition: color 0.2s, border-color 0.2s, transform 0.25s;
}

.dialog-close:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.dialog-close svg { width: 14px; }

.picker-head { display: flex; align-items: center; gap: 14px; padding-right: 38px; }

.picker-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent, var(--red)) 20%, #fff);
}

.picker-icon img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: #f1ece2;
}

.picker-eyebrow { color: var(--red); font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; }

.picker-head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.picker-sub { margin-top: 5px; color: var(--faint); font-size: 9.5px; }
.picker-options { display: flex; flex-direction: column; gap: 8px; margin-top: 23px; }

.picker-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf8f3;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.picker-option:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }

.platform-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.platform-icon svg { width: 20px; height: 20px; }
.platform-icon.android { background: #e8f2ea; color: var(--green); }
.platform-icon.windows { background: #e9f0f9; color: var(--blue); }

.picker-option-main { min-width: 0; }

.picker-option-main strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 600; }

.picker-option-main small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.picker-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.picker-download:hover { background: var(--red); }
.picker-download svg { width: 12px; height: 12px; }

.picker-foot {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-body {
  min-height: 100vh;
  padding-bottom: calc(var(--beian-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background:
    radial-gradient(700px 500px at 82% 12%, rgba(207, 74, 62, 0.08), transparent 65%),
    var(--bg);
}

.error-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(111, 108, 100, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 108, 100, 0.05) 1px, transparent 1px);
  background-size: 108px 108px;
  mask-image: radial-gradient(ellipse 75% 75% at 45% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 45% 40%, #000 10%, transparent 75%);
}

.error-kanji {
  position: fixed;
  right: 2%;
  bottom: -9%;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(280px, 45vw, 610px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(111, 108, 100, 0.15);
  pointer-events: none;
  user-select: none;
}

.error-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  margin: 0 auto;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.error-home-link { color: var(--muted); font-size: 10.5px; letter-spacing: 0.04em; transition: color 0.2s; }
.error-home-link span { color: var(--red); }
.error-home-link:hover { color: var(--red); }

.error-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--shell);
  min-height: calc(100vh - var(--beian-h) - 104px);
  margin: 0 auto;
  padding: 55px 0 80px;
}

.error-index {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.error-index span { color: var(--red); }
.error-index i { width: 28px; height: 1px; background: var(--line-strong); }
.error-index b { font-weight: 400; }

.error-number {
  position: absolute;
  top: 30px;
  right: 1%;
  color: rgba(207, 74, 62, 0.04);
  font-family: var(--serif);
  font-size: clamp(170px, 26vw, 330px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(207, 74, 62, 0.15);
  pointer-events: none;
  user-select: none;
}

.error-main h1 {
  max-width: 700px;
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 78px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.error-main > p { margin-top: 19px; color: var(--muted); font-size: 12.5px; line-height: 1.95; }
.error-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --shell: min(1080px, calc(100vw - 52px)); }
  .main-nav { gap: 22px; }
  .bili-chip { padding: 0 9px; }
  .bili-name { display: none; }
  .hero-layout { grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr); }
  .hero-title { font-size: clamp(58px, 7.2vw, 85px); }
  .hero-big-no { font-size: 200px; }
  .chip-tools { left: -4px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; --shell: calc(100vw - 44px); }
  .main-nav { gap: 18px; }
  .nav-cta { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 34px; }
  .hero-copy { max-width: 720px; }
  .hero-title { font-size: clamp(60px, 11vw, 90px); }
  .hero-lede { max-width: 560px; }
  .hero-visual { min-height: 545px; width: min(500px, 100%); margin: 0 auto; }
  .hero-card { width: min(338px, 73%); }
  .hero-big-no { font-size: 170px; right: 2%; }
  .chip-tools { left: -10px; }
  .chip-platform { right: -10px; }
  .section-heading-row { grid-template-columns: 1fr; gap: 10px; }
  .section-desc { justify-self: start; max-width: 560px; }
  .guide-layout { grid-template-columns: 1fr; }
  .board-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-layout { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 100px minmax(0, 1fr); }
  .profile-avatar img { width: 100px; height: 100px; }
  .about-principles article { min-height: 155px; }
  .footer-top { flex-wrap: wrap; }
  .footer-nav { order: 3; width: 100%; }
  .footer-sign { margin-left: auto; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 22px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 250, 245, 0.99);
    box-shadow: 0 24px 50px rgba(42, 38, 30, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease);
  }

  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 13px 3px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--red); }

  .hero { padding-top: 36px; }
  .hero-title { font-size: clamp(55px, 13vw, 78px); }
  .hero-lede { font-size: 13.5px; }
  .hero-visual { min-height: 505px; }
  .orbit-outer { width: 480px; height: 480px; }
  .orbit-inner { width: 365px; height: 365px; }
  .hero-big-no { font-size: 150px; }
  .floating-seal { top: 34px; right: 6px; }

  .tool-row { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 13px; min-height: 86px; padding: 13px; }
  .tool-row-icon { width: 52px; height: 52px; border-radius: 12px; }
  .tool-row-icon img { border-radius: 10px; }
  .tool-row h3 { font-size: 18px; }
  .tool-row-note { display: none; }
  .tool-row-download { width: 78px; padding: 0 10px; }
  .step { grid-template-columns: 42px 1fr; gap: 14px; }
  .dialog-shell { padding: 22px; }
  .picker-head h2 { font-size: 23px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 34px); --beian-h: 34px; }
  body { font-size: 14px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 7px; }
  .bili-chip { display: none; }

  .hero { padding-top: 29px; }
  .eyebrow { flex-wrap: wrap; gap: 8px; font-size: 9px; }
  .eyebrow-rule { width: 25px; }
  .eyebrow-tag { padding-left: 8px; font-size: 7.5px; }
  .hero-title { margin-top: 19px; font-size: clamp(49px, 15.5vw, 70px); }
  .hero-lede { margin-top: 23px; font-size: 13px; line-height: 1.9; }
  .hero-actions { margin-top: 24px; }
  .button { min-height: 43px; padding: 0 17px; font-size: 11.5px; }
  .hero-meta { gap: 11px 15px; margin-top: 27px; padding-top: 17px; }
  .meta-stat strong { font-size: 21px; }
  .meta-stat span { font-size: 9px; }
  .meta-divider { display: none; }
  .meta-stat-wide { width: 100%; flex-direction: row; align-items: baseline; gap: 8px; }
  .hero-social { gap: 10px; margin-top: 12px; }
  .hero-trust { width: 100%; font-size: 9px; }

  .hero-visual { min-height: 455px; width: 100%; }
  .orbit-outer { width: 360px; height: 360px; }
  .orbit-inner { width: 275px; height: 275px; }
  .hero-big-no { font-size: 128px; right: 0; top: 0; }
  .hero-card { width: min(252px, 72%); padding: 6px 6px 0; border-radius: 11px; }
  .hero-card-top { height: 22px; font-size: 5.5px; }
  .hero-card-bottom { height: 30px; font-size: 7px; }
  .card-stars { font-size: 5.5px; }
  .card-shadow { width: 220px; height: 338px; transform: rotate(-9deg) translate(-14px, 8px); }
  .floating-chip { padding: 7px 10px; font-size: 8px; border-radius: 7px; }
  .floating-chip strong { font-size: 12px; }
  .chip-tools { top: 45px; left: -2px; }
  .chip-platform { right: -2px; bottom: 82px; }
  .chip-icon { width: 20px; height: 20px; }
  .floating-seal { font-size: 7.5px; padding: 4px; }

  .hero-marquee { padding: 10px 0; }
  .section { padding: 62px 0; }
  .section-heading-row h2 { font-size: clamp(29px, 8.5vw, 38px); }
  .section-desc { font-size: 11.5px; }

  .tool-list { margin-top: 27px; gap: 8px; }
  .tool-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 11px; }
  .tool-row-icon { width: 44px; height: 44px; border-radius: 10px; }
  .tool-row-icon img { border-radius: 8px; }
  .tool-row h3 { font-size: 16px; width: 100%; }
  .tool-row-title { display: block; }
  .version-count { display: none; }
  .tool-row-meta { gap: 4px; margin-top: 5px; }
  .platform-chip { font-size: 8.5px; padding: 1px 6px; }
  .tool-row-download { width: 62px; height: 34px; font-size: 9.5px; gap: 3px; padding: 0 7px; }
  .tool-row-download svg { width: 11px; }
  .tool-row-skeleton { height: 84px; }
  .tools-footnote { font-size: 8.5px; flex-wrap: wrap; }
  .tools-footnote span:last-child { width: 100%; }

  .guide-layout { margin-top: 26px; }
  .step { padding: 17px; grid-template-columns: 36px 1fr; gap: 11px; }
  .step-no { font-size: 27px; }
  .step-body h3 { font-size: 16px; }
  .step-body p { font-size: 10.5px; }
  .warning-card { padding: 21px 19px 18px; }
  .warning-card h3 { font-size: 27px; }

  .board-layout { margin-top: 27px; }
  .board-form-col { padding: 19px 16px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-submit { width: 100%; }

  .profile-card { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 19px 16px; }
  .profile-avatar img { width: 68px; height: 68px; }
  .profile-main h3 { font-size: 22px; }
  .profile-main > p { font-size: 10px; }
  .profile-links { margin-top: 9px; }
  .profile-stamp { right: 9px; top: 9px; }

  .about-principles { grid-template-columns: 1fr; }
  .about-principles article { min-height: 0; padding: 17px; }
  .about-principles h4 { margin-top: 12px; }

  .site-footer { padding: 40px 0 56px; }
  .footer-top { gap: 20px; }
  .footer-nav { gap: 12px 17px; }
  .footer-sign { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .footer-contact span { margin: 0 3px; }

  .back-top { right: 12px; width: 33px; height: 33px; }
  .beian-bar a { font-size: 10px; }

  .tool-dialog { width: calc(100vw - 18px); max-height: calc(100vh - var(--beian-h) - 20px); }
  .dialog-shell { max-height: calc(100vh - var(--beian-h) - 20px); padding: 19px; border-radius: 13px; }
  .dialog-close { top: 10px; right: 10px; width: 29px; height: 29px; }
  .picker-head { gap: 11px; padding-right: 27px; }
  .picker-icon { width: 54px; height: 54px; border-radius: 13px; }
  .picker-icon img { border-radius: 11px; }
  .picker-head h2 { font-size: 21px; }
  .picker-sub { font-size: 8.5px; }
  .picker-options { margin-top: 18px; }
  .picker-option { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .platform-icon { width: 34px; height: 34px; }
  .platform-icon svg { width: 17px; height: 17px; }
  .picker-option-main strong { font-size: 10.5px; }
  .picker-option-main small { font-size: 7.5px; }
  .picker-download { width: 58px; height: 31px; padding: 0; justify-content: center; font-size: 9px; }
  .picker-download svg { display: none; }

  .error-header { padding: 17px 0; }
  .error-home-link { font-size: 9.5px; }
  .error-main { min-height: calc(100vh - var(--beian-h) - 82px); padding: 40px 0 62px; }
  .error-number { top: 6px; right: -4%; font-size: 145px; }
  .error-main h1 { font-size: 42px; }
  .error-main > p { font-size: 11px; }
  .error-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 47px; }
  .hero-visual { min-height: 420px; }
  .hero-card { width: 224px; }
  .orbit-outer { width: 318px; height: 318px; }
  .orbit-inner { width: 245px; height: 245px; }
  .chip-tools { top: 28px; }
  .chip-platform { bottom: 60px; }
  .tool-row-download { width: 56px; padding: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .beian-bar, .back-top, .hero-marquee, .hero-visual, .toast, .tool-dialog {
    display: none !important;
  }

  body { padding: 0; background: #fff; color: #111; }
  .section { padding: 24px 0; break-inside: avoid; }
}
