:root {
  --bg: #dfe8d3;
  --dot: rgba(57, 83, 40, 0.24);
  --paper: #f8f2e8;
  --paper-2: #fffaf1;
  --ink: #292922;
  --muted: rgba(41, 41, 34, 0.68);
  --red: #f06452;
  --blue: #2f62b6;
  --yellow: #f1d66b;
  --pink: #ecc4d2;
  --mint: #aed9cb;
  --orange: #f4a44f;
  --line: rgba(56, 56, 45, 0.2);
  --shadow: 0 10px 0 rgba(51, 55, 40, 0.17), 0 15px 30px rgba(51, 55, 40, 0.12);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 20px 20px;
}
body.modal-open { overflow: hidden; }

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 34px;
  background: rgba(248, 242, 232, 0.92);
  border-bottom: 1px solid rgba(50, 50, 42, 0.18);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-size: 15px;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 18px 0 0 var(--yellow), 36px 0 0 var(--blue);
  margin-right: 36px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topnav a {
  position: relative;
  padding: 20px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.topnav a:hover::after,
.topnav a:focus-visible::after { transform: scaleX(1); }

.about-button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.about-button:hover { background: var(--ink); color: #fff; }

main { overflow: hidden; }
section[id] { scroll-margin-top: 78px; }

.home-section {
  position: relative;
  min-height: 100vh;
  padding: 80px clamp(22px, 5vw, 78px) 110px;
}

.shadow-card { box-shadow: var(--shadow); }
.eyebrow {
  margin: 0;
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-paper {
  position: relative;
  z-index: 2;
  width: min(670px, 62vw);
  min-height: 420px;
  padding: 38px 42px 34px;
  background: var(--paper);
  border: 2px solid rgba(63, 60, 48, 0.23);
  transform: rotate(-1deg);
}

.tape {
  position: absolute;
  width: 110px;
  height: 24px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  opacity: 0.78;
}
.tape-pink { background: #edbfc5; }

.hero-paper h1 {
  margin: 18px 0 0;
  font-size: clamp(70px, 8.3vw, 126px);
  line-height: 0.84;
  letter-spacing: -0.065em;
  color: var(--red);
  text-shadow: 5px 5px 0 var(--yellow);
}
.hero-paper h1 span { display: inline-block; }
.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero-tags span {
  border: 1px solid rgba(45, 45, 37, 0.25);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  font: 700 11px/1 var(--font-mono);
}
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-weight: 900;
  text-underline-offset: 5px;
}
.primary-link span { font-size: 22px; }

.hello-stamp {
  position: absolute;
  z-index: 3;
  top: 95px;
  right: clamp(70px, 10vw, 180px);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid var(--blue);
  background: transparent;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-8deg);
  cursor: pointer;
}
.hello-stamp:hover { background: rgba(47, 98, 182, 0.08); }

.home-note {
  position: absolute;
  z-index: 4;
  top: 390px;
  right: clamp(45px, 7vw, 120px);
  width: 245px;
  padding: 19px 20px 18px;
  background: var(--yellow);
  transform: rotate(3deg);
}
.home-note strong { display: block; margin-bottom: 7px; font-size: 17px; }
.home-note p { margin: 0; line-height: 1.65; font-size: 13px; }

.route-board {
  position: relative;
  z-index: 5;
  max-width: 1320px;
  margin: 115px auto 0;
  padding: 34px;
  background: rgba(248, 242, 232, 0.76);
  border: 2px solid rgba(62, 59, 47, 0.18);
  box-shadow: 0 12px 0 rgba(67, 73, 50, 0.1);
}
.board-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.board-title h2,
.featured-heading h2,
.zone-header h2 {
  margin: 7px 0 0;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.route-card {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 22px;
  border: 2px solid var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.route-card:hover {
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}
.route-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  bottom: -42px;
  border-radius: 50%;
  border: 20px solid rgba(255, 255, 255, 0.28);
}
.route-lora { background: #f4d05f; }
.route-workflow { background: #79c9bc; }
.route-node { background: #f36e60; }
.route-tool { background: #f7f2e9; }
.route-number {
  font: 900 44px/1 var(--font-mono);
}
.route-card h3 {
  align-self: end;
  margin: 22px 0 7px;
  font-size: 25px;
  line-height: 1.08;
}
.route-card p { margin: 0; max-width: 220px; line-height: 1.55; font-size: 13px; }
.route-card small {
  position: absolute;
  top: 20px;
  right: 18px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}
.route-card .route-arrow {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 28px;
  font-weight: 900;
}

.featured-board {
  max-width: 1320px;
  margin: 72px auto 0;
}
.featured-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 40px;
  margin-bottom: 24px;
}
.featured-heading p:last-child { margin: 0; line-height: 1.75; color: var(--muted); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px 14px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 0 rgba(51, 55, 40, 0.16), 0 13px 24px rgba(51, 55, 40, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.featured-card:nth-child(1) { transform: rotate(-1.5deg); }
.featured-card:nth-child(2) { transform: rotate(1.2deg); }
.featured-card:nth-child(3) { transform: rotate(-0.5deg); }
.featured-card:hover { transform: translateY(-7px) rotate(0deg); }
.featured-cover { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.featured-card h3 { margin: 17px 2px 0; font-size: clamp(23px, 2.4vw, 34px); line-height: 1.08; }
.featured-card p { margin: 10px 2px 0; line-height: 1.6; font-size: 14px; }
.featured-card small { margin: 12px 2px 0; font: 700 11px/1.2 var(--font-mono); opacity: 0.6; }
.featured-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  font: 800 10px/1 var(--font-mono);
}

.portfolio-zone {
  position: relative;
  padding: 92px clamp(22px, 5vw, 78px) 118px;
  border-top: 3px solid rgba(45, 45, 37, 0.82);
}
.portfolio-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
}
.zone-lora { background: #efe5ce; }
.zone-lora::before {
  background-image: linear-gradient(rgba(202, 84, 66, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(202, 84, 66, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
}
.zone-workflows { background: #161a18; color: #f3f2dd; }
.zone-workflows::before {
  background-image: radial-gradient(rgba(218, 230, 179, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}
.zone-nodes { background: #dce8df; }
.zone-nodes::before {
  background: repeating-linear-gradient(0deg, transparent 0 32px, rgba(42, 81, 64, 0.11) 32px 33px);
}
.zone-tools { background: #f2d889; }
.zone-tools::before {
  background-image: radial-gradient(rgba(76, 67, 32, 0.18) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.zone-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto 46px;
}
.zone-number {
  font: 900 clamp(68px, 8vw, 126px)/0.82 var(--font-mono);
  letter-spacing: -0.08em;
}
.zone-header > div:nth-child(2) { max-width: 780px; }
.zone-header > div:nth-child(2) > p:last-child {
  margin: 17px 0 0;
  max-width: 720px;
  line-height: 1.75;
  opacity: 0.76;
}
.back-home {
  margin-top: 5px;
  font-weight: 800;
  text-underline-offset: 5px;
}

/* LoRA gallery */
.lora-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}
.lora-card {
  position: relative;
  grid-column: span 5;
  padding: 14px 14px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 9px 0 rgba(60, 53, 39, 0.17), 0 14px 24px rgba(60, 53, 39, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.lora-card:nth-child(2),
.lora-card:nth-child(4) { grid-column: span 4; }
.lora-card:nth-child(3) { grid-column: 2 / span 5; }
.lora-card:nth-child(1) { transform: rotate(-1.5deg); }
.lora-card:nth-child(2) { transform: rotate(1deg); margin-top: 60px; }
.lora-card:nth-child(3) { transform: rotate(1.3deg); }
.lora-card:nth-child(4) { transform: rotate(-1deg); margin-top: -28px; }
.lora-card:hover { transform: translateY(-7px) rotate(0); }
.lora-cover { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.lora-card h3 { margin: 18px 0 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; }
.lora-card p { margin: 12px 0 0; line-height: 1.7; color: var(--muted); }
.card-meta { margin-top: 14px; font: 700 11px/1.2 var(--font-mono); opacity: 0.62; }
.card-index { position: absolute; right: 18px; bottom: 18px; font: 800 10px/1 var(--font-mono); opacity: 0.52; }

/* Workflow manual */
.workflow-manual {
  display: grid;
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
}
.workflow-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(240px, 0.8fr) 1.5fr auto;
  align-items: center;
  gap: 26px;
  min-height: 210px;
  padding: 20px 24px;
  border: 1px solid rgba(240, 240, 220, 0.28);
  background: rgba(16, 22, 19, 0.7);
  color: #f5f3de;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}
.workflow-card:hover { transform: translateX(10px); background: rgba(27, 37, 31, 0.92); }
.workflow-cover { aspect-ratio: 1; border: 1px solid rgba(240, 240, 220, 0.22); }
.workflow-card h3 { margin: 7px 0 0; font-size: clamp(27px, 3vw, 43px); line-height: 1.05; }
.workflow-card p { margin: 12px 0 0; line-height: 1.65; opacity: 0.74; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.workflow-steps span {
  position: relative;
  min-height: 92px;
  padding: 14px 12px;
  border: 1px solid rgba(242, 241, 216, 0.22);
  font-size: 12px;
  line-height: 1.45;
}
.workflow-steps span::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  opacity: 0.6;
}
.workflow-steps span:last-child::after { display: none; }
.workflow-open { font-size: 28px; }

/* Node catalog */
.node-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
}
.node-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 250px;
  border: 2px solid #26382e;
  background: #eef3ed;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.node-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 #26382e; }
.node-cover { border-right: 2px solid #26382e; }
.node-copy { padding: 22px 22px 50px; }
.node-copy .eyebrow { color: #4c6a57; }
.node-card h3 { margin: 12px 0 0; font-size: clamp(25px, 2.8vw, 39px); line-height: 1.04; }
.node-card p { margin: 13px 0 0; line-height: 1.65; color: rgba(31, 50, 39, 0.72); }
.node-status {
  position: absolute;
  left: 202px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 10px/1 var(--font-mono);
}
.node-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4e966b; }
.node-port {
  position: absolute;
  right: -8px;
  width: 14px;
  height: 14px;
  border: 2px solid #26382e;
  border-radius: 50%;
  background: #f16b5e;
}
.node-port.port-1 { top: 40px; }
.node-port.port-2 { top: 70px; background: #f2d66b; }
.node-port.port-3 { top: 100px; background: #69b9ab; }

/* Toolbox */
.toolbox {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px;
  border: 3px solid #3e3827;
  background: #d1aa55;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.16), 10px 12px 0 rgba(62, 56, 39, 0.24);
}
.tool-card {
  position: relative;
  grid-column: span 6;
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 230px;
  background: var(--paper-2);
  border: 2px solid #3e3827;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.tool-card:nth-child(2), .tool-card:nth-child(3) { transform: rotate(0.7deg); }
.tool-card:hover { transform: translateY(-6px) rotate(0); }
.tool-cover { border-right: 2px solid #3e3827; }
.tool-copy { padding: 22px; }
.tool-card h3 { margin: 12px 0 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; }
.tool-card p { margin: 13px 0 0; line-height: 1.65; color: var(--muted); }
.tool-handle {
  position: absolute;
  width: 50px;
  height: 12px;
  right: 18px;
  top: 14px;
  border: 2px solid #3e3827;
  border-radius: 999px;
  background: #f4d875;
}

/* Covers */
.cover-abstract-sunset {
  background: radial-gradient(circle at 50% 38%, #f26d59 0 18%, transparent 18.5%), linear-gradient(#77c3db 0 56%, #f4cc74 56% 66%, #27574e 66% 100%);
}
.cover-blue-target { background: repeating-radial-gradient(circle at center, #eccc6b 0 9%, #2f62b6 9% 14%); }
.cover-midnight-portrait { background: #e8b7cf; position: relative; }
.cover-midnight-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 42%;
  height: 72%;
  transform: translateX(-50%);
  border-radius: 50% 50% 18% 18%;
  background: #20293a;
}
.cover-weave-pattern {
  background:
    linear-gradient(45deg, transparent 0 34%, #f26d59 34% 44%, transparent 44% 56%, #d8ebdf 56% 66%, transparent 66%),
    linear-gradient(-45deg, transparent 0 34%, #d8ebdf 34% 44%, transparent 44% 56%, #f26d59 56% 66%, transparent 66%),
    #88b69d;
  background-size: 72px 72px;
}
.cover-workflow-portrait,
.cover-workflow-ab,
.cover-workflow-upscale,
.cover-node-seed,
.cover-node-prompt,
.cover-node-metadata,
.cover-node-curator,
.cover-tool-dataset,
.cover-tool-caption,
.cover-tool-compare,
.cover-tool-publish { position: relative; overflow: hidden; }

.cover-workflow-portrait {
  background: linear-gradient(135deg, #0e1210, #1d352a);
}
.cover-workflow-portrait::before,
.cover-workflow-ab::before,
.cover-workflow-upscale::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: repeating-linear-gradient(90deg, transparent 0 14%, #dff05b 14% 15%, transparent 15% 28%);
  border-top: 2px solid #dff05b;
  border-bottom: 2px solid #dff05b;
}
.cover-workflow-ab { background: linear-gradient(135deg, #111715, #2e4c3e); }
.cover-workflow-ab::before {
  inset: 15%;
  background: linear-gradient(90deg, #f36e60 0 23%, transparent 23% 27%, #f1d66b 27% 50%, transparent 50% 54%, #6ec6b5 54% 77%, transparent 77% 81%, #eac3d1 81% 100%);
  border: 2px solid #dff05b;
}
.cover-workflow-upscale { background: linear-gradient(145deg, #111, #21332c); }
.cover-workflow-upscale::before {
  inset: 20%;
  background: repeating-linear-gradient(45deg, rgba(223, 240, 91, 0.9) 0 6px, transparent 6px 18px);
  border: 2px solid #dff05b;
}

.cover-node-seed { background: #d7eadf; }
.cover-node-seed::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 12px solid #2d5f47;
  box-shadow: inset 0 0 0 14px #f3d56d, inset 0 0 0 28px #ef6e5d;
}
.cover-node-prompt { background: #efdf9e; }
.cover-node-prompt::before {
  content: "A + B\A + C\B + C";
  white-space: pre;
  position: absolute;
  inset: 18%;
  padding: 12px;
  border: 2px solid #26382e;
  font: 900 20px/1.8 var(--font-mono);
}
.cover-node-metadata { background: #bfdad0; }
.cover-node-metadata::before {
  content: "{ }";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 72px/1 var(--font-mono);
  color: #294937;
}
.cover-node-curator { background: #f1c0c8; }
.cover-node-curator::before {
  content: "✓  ?  ×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 30px/1 var(--font-mono);
  color: #334d3d;
}

.cover-tool-dataset {
  background: linear-gradient(135deg, #f1d66b 0 33%, #efc7d3 33% 66%, #acd9cb 66% 100%);
}
.cover-tool-dataset::before {
  content: "IMG\A TXT\A JSON";
  white-space: pre;
  position: absolute;
  inset: 20%;
  padding: 12px;
  border: 2px solid #3e3827;
  background: rgba(255,255,255,.42);
  font: 800 16px/1.7 var(--font-mono);
}
.cover-tool-caption { background: #faf6e8; }
.cover-tool-caption::before {
  content: "girl, black coat, editorial, soft light, ...";
  position: absolute;
  inset: 18%;
  font: 700 14px/1.65 var(--font-mono);
  text-decoration: underline wavy #ef6e5d;
}
.cover-tool-compare { background: linear-gradient(90deg, #1d2d27 0 25%, #5fc9b0 25% 50%, #f5d567 50% 75%, #f36e60 75% 100%); }
.cover-tool-compare::before {
  content: "V1  V2  V3  V4";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  padding: 8px;
  background: #fff8e8;
  border: 2px solid #3e3827;
  font: 800 11px/1 var(--font-mono);
}
.cover-tool-publish { background: #d8e9e0; }
.cover-tool-publish::before {
  content: "☑ 封面\A☑ 触发词\A☑ 样图\A☐ 说明";
  white-space: pre;
  position: absolute;
  inset: 18%;
  font: 800 15px/1.8 var(--font-mono);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 46px clamp(22px, 5vw, 78px);
  background: #252720;
  color: #f3f0df;
}
.site-footer strong { display: block; margin-top: 9px; font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.site-footer a { text-underline-offset: 5px; }

/* Modal */
.detail-modal {
  width: min(1080px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  border: none;
  border-radius: 22px;
  padding: 0;
  background: #faf6ee;
  color: var(--ink);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}
.detail-modal::backdrop { background: rgba(24, 26, 21, 0.58); backdrop-filter: blur(4px); }
.modal-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  padding: 38px;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #181a16;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.cover-frame { padding: 15px; background: var(--paper); border: 1px solid var(--line); }
.cover-art { width: 100%; aspect-ratio: 1 / 1.15; border: 1px solid var(--line); }
.modal-index { margin: 18px 0 0; font: 800 11px/1.2 var(--font-mono); opacity: 0.55; }
.modal-kicker { margin: 0 0 7px; font: 800 11px/1.2 var(--font-mono); letter-spacing: 0.14em; color: var(--muted); }
.modal-content h2 { margin: 0; padding-right: 45px; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -0.035em; }
.modal-subtitle { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.modal-description { margin: 20px 0 24px; font-size: 16px; line-height: 1.8; }
.modal-gallery-wrap { margin: 0 0 24px; }
.modal-gallery-wrap h3 { margin: 0 0 12px; font-size: 17px; }
.modal-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal-gallery figure { margin: 0; padding: 10px; background: #fff; border: 1px solid rgba(53,53,44,.12); border-radius: 16px; }
.modal-gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(53,53,44,.12); background: #f0ece5; }
.modal-gallery figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.modal-gallery.is-wide { grid-template-columns: 1fr; }
.modal-gallery.is-wide figure { padding: 12px; }
.modal-gallery.is-wide img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: #141514; }
.modal-gallery.is-wide figcaption { font-size: 13px; font-weight: 700; color: var(--ink); }
.meta-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.meta-block div { padding: 13px 15px; background: #fff; border: 1px solid rgba(53,53,44,.12); border-radius: 14px; }
.meta-block span { display: block; margin-bottom: 5px; font-size: 11px; color: var(--muted); }
.meta-block strong { font-size: 14px; line-height: 1.45; }
.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-columns section { padding: 17px 17px 8px; background: #fff; border: 1px solid rgba(53,53,44,.12); border-radius: 16px; }
.detail-columns h3 { margin: 0 0 10px; font-size: 17px; }
.detail-columns ul { margin: 0; padding-left: 20px; line-height: 1.7; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-list span { padding: 7px 11px; border: 1px solid rgba(47,98,182,.2); border-radius: 999px; background: rgba(47,98,182,.07); font-size: 12px; }
.modal-actions { margin-top: 22px; }
.modal-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 17px; border-radius: 999px; background: #181a16; color: #fff; text-decoration: none; font-weight: 800; }
.about-modal { width: min(760px, calc(100vw - 30px)); }
.about-inner { padding: 38px; }
.about-inner h2 { margin: 8px 0 18px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.about-inner p, .about-inner li { line-height: 1.8; }
.about-inner code { background: #eee6d9; padding: 2px 5px; border-radius: 4px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero-paper { width: min(760px, 78vw); }
  .hello-stamp { right: 40px; }
  .home-note { right: 35px; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card:last-child { grid-column: 1 / -1; max-width: 620px; }
  .lora-card, .lora-card:nth-child(2), .lora-card:nth-child(4) { grid-column: span 6; }
  .lora-card:nth-child(3) { grid-column: span 6; }
  .workflow-card { grid-template-columns: 130px 1fr; }
  .workflow-steps { grid-column: 1 / -1; }
  .workflow-open { position: absolute; right: 20px; top: 20px; }
  .node-card { grid-template-columns: 145px 1fr; }
  .node-status { left: 166px; }
  .tool-card { grid-template-columns: 145px 1fr; }
}

@media (max-width: 780px) {
  .topbar { padding: 0 18px; }
  .brand strong { font-size: 13px; }
  .home-section { padding: 54px 18px 82px; }
  .hero-paper { width: 100%; min-height: 0; padding: 30px 24px; transform: none; }
  .hero-paper h1 { font-size: clamp(62px, 18vw, 92px); }
  .hello-stamp { position: static; display: block; width: 110px; height: 110px; margin: 24px 0 0 auto; font-size: 21px; border-width: 4px; }
  .home-note { position: static; width: min(300px, 86%); margin: -60px 0 0 0; }
  .route-board { margin-top: 75px; padding: 20px; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 180px; }
  .featured-heading { grid-template-columns: 1fr; gap: 16px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card:last-child { grid-column: auto; }
  .portfolio-zone { padding: 70px 18px 85px; }
  .zone-header { grid-template-columns: auto 1fr; gap: 16px; }
  .back-home { grid-column: 1 / -1; }
  .zone-number { font-size: 56px; }
  .lora-gallery { grid-template-columns: 1fr; gap: 20px; }
  .lora-card, .lora-card:nth-child(2), .lora-card:nth-child(3), .lora-card:nth-child(4) { grid-column: auto; margin-top: 0; transform: none; }
  .workflow-card { grid-template-columns: 88px 1fr; padding: 15px; gap: 16px; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .workflow-steps span::after { display: none; }
  .node-catalog { grid-template-columns: 1fr; }
  .node-card { grid-template-columns: 110px 1fr; min-height: 220px; }
  .node-status { left: 130px; }
  .toolbox { grid-template-columns: 1fr; padding: 16px; }
  .tool-card { grid-column: auto; grid-template-columns: 105px 1fr; min-height: 210px; }
  .site-footer { flex-direction: column; }
  .modal-grid { grid-template-columns: 1fr; padding: 20px; }
  .modal-visual { max-width: 300px; }
  .detail-columns { grid-template-columns: 1fr; }
  .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .about-button { padding: 7px 12px; }
  .brand-dot { box-shadow: 14px 0 0 var(--yellow), 28px 0 0 var(--blue); margin-right: 28px; }
  .hero-paper h1 { font-size: 58px; }
  .hero-copy { font-size: 14px; }
  .route-board { margin-left: -4px; margin-right: -4px; }
  .workflow-card { grid-template-columns: 1fr; }
  .workflow-cover { width: 90px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .node-card, .tool-card { grid-template-columns: 1fr; }
  .node-cover, .tool-cover { min-height: 150px; border-right: 0; border-bottom: 2px solid currentColor; }
  .node-status { left: 22px; }
  .meta-block { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Editable portfolio controls */
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-button,
.primary-action,
.secondary-action,
.danger-action,
.import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.action-button:hover,
.secondary-action:hover,
.import-label:hover { background: rgba(41, 41, 34, 0.08); }
.action-primary,
.primary-action {
  background: var(--ink);
  color: #fff;
}
.action-primary:hover,
.primary-action:hover { background: var(--blue); border-color: var(--blue); }
.danger-action {
  border-color: #a93c32;
  color: #9e3129;
  background: #fff7f5;
}
.danger-action:hover { background: #9e3129; color: #fff; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.modal-actions .secondary-action { min-height: 46px; }

.draggable-sticker {
  cursor: grab;
  will-change: translate;
  touch-action: pan-y;
}
.draggable-sticker.is-dragging {
  z-index: 20;
  cursor: grabbing;
  transition: none !important;
  box-shadow: 0 18px 0 rgba(51, 55, 40, 0.2), 0 28px 50px rgba(51, 55, 40, 0.2);
}
.drag-grip {
  position: absolute;
  z-index: 3;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.92);
  font: 900 18px/1 var(--font-mono);
  box-shadow: 3px 3px 0 rgba(41, 41, 34, 0.25);
  opacity: 0;
  transform: rotate(-9deg) scale(.86);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.draggable-sticker:hover .drag-grip,
.draggable-sticker:focus-visible .drag-grip,
.draggable-sticker.is-dragging .drag-grip {
  opacity: 1;
  transform: rotate(-9deg) scale(1);
}
.draggable-sticker.is-dragging .drag-grip { background: var(--yellow); }

.editor-modal,
.manager-modal {
  width: min(980px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: none;
  border-radius: 22px;
  background: #faf6ee;
  color: var(--ink);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  overflow: auto;
}
.editor-modal::backdrop,
.manager-modal::backdrop {
  background: rgba(24, 26, 21, 0.62);
  backdrop-filter: blur(4px);
}
.editor-form,
.manager-inner { padding: 38px; }
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.editor-heading h2,
.manager-inner h2 {
  margin: 8px 0 10px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.editor-heading p:last-child,
.manager-intro {
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
  color: var(--muted);
}
.save-state {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid rgba(41, 41, 34, 0.24);
  font: 800 11px/1 var(--font-mono);
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editor-grid label {
  display: grid;
  gap: 8px;
  align-content: start;
}
.editor-grid label > span:first-child {
  font-size: 13px;
  font-weight: 800;
}
.editor-grid input,
.editor-grid textarea,
.editor-grid select {
  width: 100%;
  border: 1px solid rgba(41, 41, 34, 0.28);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  font: inherit;
}
.editor-grid textarea { resize: vertical; line-height: 1.6; }
.editor-grid input:focus,
.editor-grid textarea:focus,
.editor-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 98, 182, 0.12);
}
.editor-grid small { color: var(--muted); line-height: 1.5; }
.editor-wide { grid-column: 1 / -1; }
.featured-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  padding: 14px 16px;
  border: 1px dashed rgba(41, 41, 34, 0.34);
  border-radius: 14px;
  background: rgba(241, 214, 107, 0.16);
}
.featured-check input { width: 20px; height: 20px; margin: 0; }
.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(41, 41, 34, 0.14);
}
.editor-actions > div { display: flex; gap: 10px; }

.manager-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.manager-stats div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(41, 41, 34, 0.18);
  border-radius: 16px;
  background: #fffdf8;
}
.manager-stats strong { font: 900 38px/1 var(--font-mono); }
.manager-stats span { font-size: 13px; color: var(--muted); }
.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.import-label { position: relative; overflow: hidden; }
.import-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.manager-tip {
  margin-top: 26px;
  padding: 18px 20px;
  border: 2px dashed rgba(41, 41, 34, 0.38);
  background: var(--yellow);
  transform: rotate(-.5deg);
}
.manager-tip strong { display: block; margin-bottom: 6px; }
.manager-tip p { margin: 0; line-height: 1.65; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 30px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #1e211c;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 800;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #9e3129; }

@media (max-width: 1100px) {
  .top-actions { gap: 6px; }
  .action-button,
  .about-button { padding-left: 11px; padding-right: 11px; font-size: 12px; }
}

@media (max-width: 780px) {
  .topbar { grid-template-columns: 1fr auto; gap: 10px; }
  .top-actions { gap: 5px; }
  .action-button,
  .about-button { min-height: 34px; padding: 0 9px; font-size: 11px; }
  .drag-grip { display: none; }
  .draggable-sticker { cursor: pointer; translate: 0 0 !important; }
  .editor-form,
  .manager-inner { padding: 24px 18px; }
  .editor-heading { display: block; padding-right: 48px; }
  .save-state { display: inline-flex; margin-top: 14px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-wide { grid-column: auto; }
  .editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .editor-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-actions > button { width: 100%; }
  .manager-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .brand strong { display: none; }
  .brand { min-width: 54px; }
  .topbar { padding: 0 10px; }
  .top-actions { width: 100%; justify-content: flex-end; }
  .action-button.action-primary { font-size: 0; }
  .action-button.action-primary::before { content: "+"; font-size: 18px; }
  .manager-stats { grid-template-columns: 1fr 1fr; }
  .manager-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .manager-actions > * { width: 100%; }
}

/* Custom project cover images */
.featured-cover.has-custom-image,
.lora-cover.has-custom-image,
.workflow-cover.has-custom-image,
.node-cover.has-custom-image,
.tool-cover.has-custom-image,
.cover-art.has-custom-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.featured-cover.has-custom-image::before,
.featured-cover.has-custom-image::after,
.lora-cover.has-custom-image::before,
.lora-cover.has-custom-image::after,
.workflow-cover.has-custom-image::before,
.workflow-cover.has-custom-image::after,
.node-cover.has-custom-image::before,
.node-cover.has-custom-image::after,
.tool-cover.has-custom-image::before,
.tool-cover.has-custom-image::after,
.cover-art.has-custom-image::before,
.cover-art.has-custom-image::after { display: none !important; }

.image-editor-field {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px 18px;
  padding: 16px;
  border: 1px dashed rgba(41, 41, 34, 0.32);
  border-radius: 16px;
  background: rgba(174, 217, 203, 0.13);
}
.image-fields { display: grid; gap: 14px; }
.image-upload-label {
  position: relative;
  align-content: start;
}
.image-upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.image-upload-label strong {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fffdf8;
  cursor: pointer;
}
.image-upload-label strong:hover { background: var(--yellow); }
.image-preview-wrap { display: grid; gap: 8px; align-content: start; }
.image-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(41, 41, 34, 0.25);
  border-radius: 12px;
  background: #f4eee4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.image-preview span { color: var(--muted); font: 700 11px/1 var(--font-mono); }
.mini-action {
  min-height: 34px;
  border: 1px solid rgba(41, 41, 34, 0.28);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.mini-action:hover { background: rgba(41, 41, 34, 0.08); }
.image-editor-field > small { grid-column: 1 / -1; }

@media (max-width: 680px) {
  .image-editor-field { grid-template-columns: 1fr; }
  .image-preview-wrap { max-width: 240px; }
  .image-editor-field > small { grid-column: auto; }
}

/* =========================================================
   V5 · 全区域自由贴纸墙
   ========================================================= */
.portfolio-zone,
.zone-lora,
.zone-workflows,
.zone-nodes,
.zone-tools {
  position: relative;
  min-height: 920px;
  padding: 76px clamp(22px, 5vw, 78px) 90px;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 20px 20px;
  border-top: 1px solid rgba(54, 67, 44, 0.24);
  overflow: hidden;
}
.portfolio-zone::before { display: none !important; }

.zone-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  width: min(920px, 80vw);
  padding: 26px 28px;
  background: var(--paper);
  border: 2px solid rgba(63, 60, 48, 0.22);
  box-shadow: var(--shadow);
  rotate: -0.7deg;
}
.zone-header::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 42%;
  width: 104px;
  height: 23px;
  background: rgba(236, 196, 210, 0.78);
  rotate: 2deg;
}
.zone-number {
  color: var(--red);
  font: 900 46px/1 var(--font-mono);
}
.zone-header h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.zone-header > div:nth-child(2) > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.back-home {
  align-self: center;
  white-space: nowrap;
  font-weight: 800;
  text-underline-offset: 5px;
}

.featured-board {
  position: relative;
  margin-top: 88px;
  padding: 34px 0 0;
  border: 0;
  background: transparent;
}
.featured-heading {
  position: relative;
  z-index: 3;
  width: min(740px, 88vw);
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  rotate: 0.6deg;
}
.featured-heading h2 { margin: 6px 0 0; }
.featured-heading > p { max-width: 540px; }

.sticker-wall,
.featured-grid,
.lora-gallery,
.workflow-manual,
.node-catalog,
.toolbox {
  position: relative;
  display: block;
  width: 100%;
  min-height: 650px;
  margin: 20px 0 0;
  padding: 0;
  overflow: visible;
}

.wall-sticker {
  --tilt: 0deg;
  --drag-x: 0px;
  --drag-y: 0px;
  --featured-float-y: 0px;
  position: absolute;
  width: 220px;
  min-height: 330px;
  padding: 13px 13px 18px;
  background: var(--paper-2);
  border: 1px solid rgba(57, 54, 44, 0.24);
  box-shadow: 0 8px 0 rgba(51, 55, 40, 0.16), 0 13px 24px rgba(51, 55, 40, 0.12);
  translate: var(--drag-x) calc(var(--drag-y) + var(--featured-float-y));
  rotate: var(--tilt);
  scale: 1;
  cursor: grab;
  backface-visibility: hidden;
  user-select: none;
  transition: opacity .45s ease, transform .45s ease, scale .18s ease, box-shadow .18s ease, filter .18s ease;
  transform-origin: 50% 54%;
  isolation: isolate;
}
.wall-sticker:nth-child(3n + 2) { width: 230px; }
.wall-sticker:nth-child(4n) { width: 208px; }
.wall-sticker:hover,
.wall-sticker:focus-visible {
  scale: 1.035;
  box-shadow: 0 12px 0 rgba(51, 55, 40, 0.18), 0 20px 34px rgba(51, 55, 40, 0.17);
  outline: none;
  filter: saturate(1.04);
}
.wall-sticker.is-dragging {
  cursor: grabbing;
  scale: 1.055;
  transition: none;
  box-shadow: 0 16px 0 rgba(51, 55, 40, 0.18), 0 28px 46px rgba(51, 55, 40, 0.23);
}

.sticker-tape {
  position: absolute;
  z-index: 3;
  top: -12px;
  left: 50%;
  width: 76px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(236, 196, 210, 0.78);
  border-left: 1px dashed rgba(255,255,255,.55);
  border-right: 1px dashed rgba(255,255,255,.55);
  pointer-events: none;
}
.sticker-workflow .sticker-tape { background: rgba(147, 199, 226, 0.8); }
.sticker-node .sticker-tape { background: rgba(164, 214, 191, 0.84); }
.sticker-tool .sticker-tape { background: rgba(242, 214, 107, 0.88); }

.sticker-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(51, 50, 42, 0.2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sticker-cover.has-custom-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sticker-cover.has-custom-image::before,
.sticker-cover.has-custom-image::after { display: none !important; }

.sticker-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 11px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(47, 98, 182, 0.09);
  color: rgba(31, 57, 97, 0.82);
  font: 800 9px/1 var(--font-mono);
  letter-spacing: .06em;
}
.wall-sticker h3 {
  margin: 9px 0 0;
  padding-right: 7px;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.wall-sticker p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.wall-sticker .card-meta {
  margin-top: 10px;
  padding-right: 48px;
  font: 700 9px/1.35 var(--font-mono);
  opacity: .62;
}
.wall-sticker .card-index {
  right: 13px;
  bottom: 15px;
  font-size: 8px;
}

.drag-grip {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(41,41,34,.22);
  box-shadow: 0 2px 8px rgba(30,30,26,.12);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.wall-sticker:hover .drag-grip,
.wall-sticker:focus-visible .drag-grip,
.wall-sticker.is-dragging .drag-grip { opacity: 1; }

.tilt-controls {
  position: absolute;
  z-index: 6;
  right: 8px;
  bottom: -16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(41, 41, 34, 0.25);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 5px 14px rgba(45, 45, 38, 0.17);
  opacity: 0;
  translate: 0 5px;
  transition: opacity .16s ease, translate .16s ease;
}
.wall-sticker:hover .tilt-controls,
.wall-sticker:focus-within .tilt-controls {
  opacity: 1;
  translate: 0 0;
}
.tilt-controls button {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: 900 13px/1 var(--font-mono);
}
.tilt-controls button:hover { background: var(--yellow); }
.tilt-controls .tilt-value { min-width: 42px; font-size: 10px; }

.empty-wall {
  position: absolute;
  left: 50%;
  top: 120px;
  translate: -50% 0;
  width: min(420px, 80%);
  padding: 28px;
  background: var(--paper);
  border: 1px dashed rgba(41,41,34,.34);
  text-align: center;
  line-height: 1.7;
  rotate: -1deg;
}

.rotation-field output {
  float: right;
  min-width: 42px;
  color: var(--blue);
  font: 900 14px/1 var(--font-mono);
  text-align: right;
}
.rotation-field input[type="range"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  accent-color: var(--blue);
}
.rotation-field small { display: block; margin-top: 7px; }

@media (max-width: 1100px) {
  .zone-header { width: min(100%, 900px); }
  .wall-sticker { width: 205px; }
  .wall-sticker:nth-child(3n + 2) { width: 214px; }
  .wall-sticker:nth-child(4n) { width: 198px; }
}

@media (max-width: 900px) {
  .portfolio-zone,
  .zone-lora,
  .zone-workflows,
  .zone-nodes,
  .zone-tools { min-height: auto; padding-bottom: 70px; }
  .zone-header {
    grid-template-columns: auto 1fr;
    rotate: 0deg;
  }
  .back-home { grid-column: 1 / -1; justify-self: start; }
  .sticker-wall,
  .featured-grid,
  .lora-gallery,
  .workflow-manual,
  .node-catalog,
  .toolbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 18px;
    min-height: auto !important;
    margin-top: 42px;
  }
  .wall-sticker,
  .wall-sticker:nth-child(n) {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 0;
    translate: 0 0 !important;
    z-index: auto !important;
  }
  .tilt-controls { opacity: 1; translate: 0 0; }
}

@media (max-width: 580px) {
  .portfolio-zone,
  .zone-lora,
  .zone-workflows,
  .zone-nodes,
  .zone-tools { padding: 52px 16px 60px; }
  .zone-header { grid-template-columns: 1fr; padding: 24px 20px; }
  .zone-number { font-size: 34px; }
  .sticker-wall,
  .featured-grid,
  .lora-gallery,
  .workflow-manual,
  .node-catalog,
  .toolbox { grid-template-columns: 1fr; gap: 44px; }
  .wall-sticker,
  .wall-sticker:nth-child(n) { width: min(100%, 340px); justify-self: center; }
  .wall-sticker h3 { font-size: 27px; }
}

/* =========================================================
   V6 · 整屏滚动 / 首页 AI 成品贴纸 / 手机横向画廊
   ========================================================= */
:root {
  --topbar-height: 64px;
  --page-pad-x: clamp(18px, 4vw, 68px);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scroll-padding-top: var(--topbar-height);
  overscroll-behavior-y: contain;
}

body {
  overflow-x: hidden;
}

.topbar {
  min-height: var(--topbar-height);
  height: var(--topbar-height);
}

.home-section,
.portfolio-zone {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-section {
  height: calc(100svh - var(--topbar-height));
  min-height: 650px;
  padding: clamp(24px, 3.2vh, 44px) var(--page-pad-x) clamp(20px, 2.6vh, 34px);
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(470px, 1.36fr) minmax(175px, 0.46fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 2.3vw, 34px);
  overflow: hidden;
}

.hero-paper {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 100%;
  min-height: 0;
  height: min(43vh, 430px);
  padding: clamp(24px, 2.7vw, 38px);
  transform: rotate(-1deg);
  overflow: hidden;
}

.hero-paper h1 {
  margin-top: 14px;
  font-size: clamp(62px, 6.5vw, 108px);
}

.hero-copy {
  margin-top: clamp(16px, 2vh, 24px);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.68;
}

.hero-tags { margin-top: 14px; }
.hero-tags span { padding: 5px 9px; font-size: 9px; }
.primary-link { margin-top: 17px; }

.hello-stamp {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  top: auto;
  right: auto;
  width: clamp(98px, 9vw, 142px);
  height: clamp(98px, 9vw, 142px);
  font-size: clamp(20px, 1.6vw, 28px);
}

.home-note {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  top: auto;
  right: auto;
  width: min(100%, 235px);
  padding: 16px 17px;
}

.home-note strong { font-size: 14px; }
.home-note p { font-size: 11px; line-height: 1.55; }

.featured-board {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
}

.featured-heading {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  width: min(420px, 64%);
  padding: 14px 17px;
  display: block;
  border: 1px solid rgba(41, 41, 34, .18);
  rotate: -.6deg;
}

.featured-heading .eyebrow { font-size: 9px; }
.featured-heading h2 {
  margin-top: 4px;
  font-size: clamp(24px, 2.3vw, 38px);
}
.featured-heading > p {
  margin: 8px 0 0;
  max-width: 390px;
  font-size: 10px;
  line-height: 1.55;
}

.featured-wall {
  position: absolute !important;
  inset: 0;
  width: 100%;
  min-height: 0 !important;
  height: 100%;
  margin: 0 !important;
  overflow: visible;
}

.featured-wall .wall-sticker {
  width: clamp(145px, 12vw, 190px);
  min-height: 0;
  padding: 9px 9px 13px;
}
.featured-wall .wall-sticker:nth-child(n) { width: clamp(145px, 12vw, 190px); }
.featured-wall .sticker-cover { aspect-ratio: 4 / 5; }
.featured-wall .sticker-category { display: none; }
.featured-wall .wall-sticker h3 { margin-top: 9px; font-size: clamp(15px, 1.25vw, 20px); }
.featured-wall .wall-sticker p { display: none; }
.featured-wall .wall-sticker .card-meta { margin-top: 6px; padding-right: 30px; font-size: 7px; }
.featured-wall .wall-sticker .card-index { bottom: 10px; }
.featured-wall .sticker-tape { width: 58px; height: 17px; top: -9px; }

.route-board {
  grid-column: 1 / -1;
  grid-row: 2;
  width: min(1180px, 82vw);
  max-width: none;
  justify-self: center;
  margin: 0;
  padding: 16px 20px 18px;
}

.board-title {
  margin-bottom: 11px;
  align-items: center;
}
.board-title h2 { margin: 0; font-size: clamp(23px, 2.5vw, 38px); }
.route-grid { gap: 10px; }
.route-card {
  min-height: clamp(88px, 12vh, 126px);
  padding: 12px 14px;
}
.route-number { font-size: clamp(24px, 2.5vw, 36px); }
.route-card h3 { margin: 8px 0 2px; font-size: clamp(15px, 1.45vw, 21px); }
.route-card p { font-size: 9px; line-height: 1.35; }
.route-card small { top: 11px; right: 11px; font-size: 7px; }
.route-card .route-arrow { right: 11px; bottom: 7px; font-size: 19px; }

.portfolio-zone,
.zone-lora,
.zone-workflows,
.zone-nodes,
.zone-tools {
  height: calc(100svh - var(--topbar-height));
  min-height: 650px;
  padding: clamp(25px, 3.6vh, 48px) var(--page-pad-x) clamp(20px, 2.7vh, 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zone-header {
  flex: 0 0 auto;
  width: min(860px, 76vw);
  margin: 0 auto clamp(13px, 2vh, 24px);
  padding: clamp(16px, 2vh, 24px) clamp(20px, 2vw, 28px);
  gap: 17px;
}
.zone-number { font-size: clamp(34px, 3.6vw, 50px); }
.zone-header h2 { font-size: clamp(30px, 3.4vw, 52px); }
.zone-header > div:nth-child(2) > p:last-child {
  margin-top: 9px;
  font-size: clamp(11px, .9vw, 14px);
  line-height: 1.5;
}

.portfolio-zone > .sticker-wall {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0 !important;
  height: auto;
  margin: 0;
  overflow: visible;
}

.portfolio-zone .wall-sticker {
  width: clamp(220px, 15.5vw, 270px);
  min-height: 0;
  padding: 10px 10px 15px;
}
.portfolio-zone .wall-sticker:nth-child(n) { width: clamp(220px, 15.5vw, 270px); }
.portfolio-zone .sticker-cover { aspect-ratio: 1 / .92; }
.portfolio-zone .wall-sticker h3 { font-size: clamp(18px, 1.65vw, 25px); }
.portfolio-zone .wall-sticker p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.45;
}
.portfolio-zone .wall-sticker .card-meta { font-size: 8px; }
.portfolio-zone .sticker-category { margin-top: 8px; min-height: 19px; font-size: 7px; }

.site-footer {
  scroll-snap-align: start;
  min-height: 190px;
}

/* 触控板或滚轮跳屏时，聚焦的卡片不要被顶栏遮挡。 */
.home-section:target,
.portfolio-zone:target { scroll-margin-top: var(--topbar-height); }

@media (max-width: 1200px) {
  .home-section {
    grid-template-columns: minmax(320px, .9fr) minmax(400px, 1.2fr) 165px;
  }
  .hero-paper { height: min(42vh, 390px); }
  .route-board { width: min(100%, 1040px); }
  .featured-wall .wall-sticker { width: 154px; }
  .featured-wall .wall-sticker:nth-child(n) { width: 154px; }
}

@media (max-width: 900px) {
  :root { --topbar-height: 58px; }

  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--topbar-height);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }
  .brand { font-size: 12px; }
  .brand-dot { width: 9px; height: 9px; box-shadow: 14px 0 0 var(--yellow), 28px 0 0 var(--blue); margin-right: 28px; }
  .topnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    justify-content: space-around;
    gap: 0;
    height: 52px;
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(248, 242, 232, .96);
    border-top: 1px solid rgba(50, 50, 42, .18);
    backdrop-filter: blur(12px);
  }
  .topnav a { padding: 17px 8px; font-size: 11px; }
  .topnav a::after { bottom: 9px; }
  .top-actions { gap: 6px; }
  .action-button,
  .about-button { padding: 7px 10px; font-size: 11px; }
  .top-actions .about-button { display: none; }

  .home-section {
    height: calc(100svh - var(--topbar-height));
    min-height: 560px;
    padding: 12px 12px calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .hero-paper {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 520px);
    height: auto;
    min-height: 148px;
    max-height: 184px;
    padding: 16px 18px;
    transform: rotate(-.5deg);
  }
  .hero-paper .tape { width: 66px; height: 15px; top: -8px; }
  .hero-paper .eyebrow { font-size: 7px; }
  .hero-paper h1 { margin-top: 8px; font-size: clamp(42px, 13vw, 64px); text-shadow: 3px 3px 0 var(--yellow); }
  .hero-copy {
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-tags { gap: 4px; margin-top: 7px; }
  .hero-tags span { padding: 4px 6px; font-size: 7px; }
  .primary-link { position: absolute; right: 15px; bottom: 13px; margin: 0; font-size: 10px; }

  .hello-stamp,
  .home-note { display: none; }

  .featured-board {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
  }
  .featured-heading {
    position: relative;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    rotate: 0deg;
  }
  .featured-heading .eyebrow { display: none; }
  .featured-heading h2 { margin: 0; font-size: 18px; }
  .featured-heading > p {
    margin: 0;
    max-width: 56%;
    font-size: 8px;
    line-height: 1.3;
    text-align: right;
  }
  .featured-wall {
    position: relative !important;
    inset: auto;
    display: flex !important;
    gap: 24px;
    width: 100%;
    height: calc(100% - 45px);
    min-height: 0 !important;
    margin-top: 7px !important;
    padding: 12px 24px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .featured-wall .wall-sticker,
  .featured-wall .wall-sticker:nth-child(n) {
    position: relative;
    flex: 0 0 clamp(126px, 37vw, 168px);
    left: auto !important;
    top: auto !important;
    width: auto;
    height: max-content;
    min-height: 0;
    translate: 0 0 !important;
    scroll-snap-align: center;
    z-index: auto !important;
  }
  .featured-wall .sticker-cover { aspect-ratio: 4 / 5; }
  .featured-wall .wall-sticker h3 { font-size: 14px; }
  .featured-wall .tilt-controls { opacity: 1; translate: 0 0; transform: scale(.82); transform-origin: right center; }

  .route-board {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    padding: 8px;
    border-width: 1px;
    box-shadow: 0 6px 0 rgba(67, 73, 50, .1);
  }
  .board-title { margin-bottom: 6px; }
  .board-title .eyebrow { display: none; }
  .board-title h2 { font-size: 16px; }
  .route-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .route-card { min-height: 58px; padding: 7px; border-width: 1px; }
  .route-number { font-size: 17px; }
  .route-card h3 { margin: 5px 0 0; font-size: 10px; }
  .route-card p,
  .route-card small { display: none; }
  .route-card .route-arrow { right: 5px; bottom: 2px; font-size: 13px; }

  .portfolio-zone,
  .zone-lora,
  .zone-workflows,
  .zone-nodes,
  .zone-tools {
    height: calc(100svh - var(--topbar-height));
    min-height: 560px;
    padding: 13px 12px calc(64px + env(safe-area-inset-bottom));
  }

  .zone-header {
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    margin: 0 0 11px;
    padding: 12px 14px;
    gap: 9px;
    rotate: 0deg;
  }
  .zone-header::before { width: 58px; height: 15px; top: -8px; }
  .zone-number { font-size: 22px; }
  .zone-header .eyebrow { font-size: 7px; }
  .zone-header h2 { margin-top: 3px; font-size: clamp(21px, 6.2vw, 31px); }
  .zone-header > div:nth-child(2) > p:last-child {
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .back-home { grid-column: auto; align-self: center; font-size: 9px; }

  .portfolio-zone > .sticker-wall,
  .sticker-wall,
  .lora-gallery,
  .workflow-manual,
  .node-catalog,
  .toolbox {
    position: relative;
    flex: 1 1 auto;
    display: flex !important;
    grid-template-columns: none;
    gap: clamp(22px, 7vw, 34px);
    width: 100%;
    height: auto;
    min-height: 0 !important;
    margin: 0;
    padding: 18px 10vw 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10vw;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .portfolio-zone .wall-sticker,
  .portfolio-zone .wall-sticker:nth-child(n) {
    position: relative;
    flex: 0 0 min(72vw, 278px);
    align-self: center;
    left: auto !important;
    top: auto !important;
    width: auto;
    max-height: 100%;
    min-height: 0;
    translate: 0 0 !important;
    z-index: auto !important;
    scroll-snap-align: center;
  }
  .portfolio-zone .sticker-cover { aspect-ratio: 1.15 / 1; }
  .portfolio-zone .wall-sticker h3 { font-size: clamp(20px, 6vw, 27px); }
  .portfolio-zone .wall-sticker p { font-size: 10px; }
  .tilt-controls { opacity: 1; translate: 0 0; }
  .drag-grip { display: none; }

  .site-footer { display: none; }
}

@media (max-width: 520px) {
  .top-actions .action-button:not(.action-primary) { display: none; }
  .action-primary { padding-inline: 9px; }
  .home-section { min-height: 520px; }
  .hero-paper { max-height: 170px; }
  .hero-tags span:nth-child(n + 3) { display: none; }
  .featured-heading > p { max-width: 52%; }
  .featured-wall { padding-inline: 18px; gap: 21px; scroll-padding-inline: 18px; }
  .featured-wall .wall-sticker,
  .featured-wall .wall-sticker:nth-child(n) { flex-basis: clamp(118px, 39vw, 150px); }
  .route-card h3 { font-size: 9px; }
  .portfolio-zone > .sticker-wall { padding-inline: 8vw; scroll-padding-inline: 8vw; }
  .portfolio-zone .wall-sticker,
  .portfolio-zone .wall-sticker:nth-child(n) { flex-basis: min(78vw, 285px); }
}

@media (max-height: 720px) and (min-width: 901px) {
  .home-section,
  .portfolio-zone,
  .zone-lora,
  .zone-workflows,
  .zone-nodes,
  .zone-tools { min-height: 590px; }
  .hero-paper { height: 360px; }
  .hero-paper h1 { font-size: clamp(56px, 6vw, 88px); }
  .hero-copy { line-height: 1.5; }
  .route-card { min-height: 82px; }
  .zone-header { padding-block: 14px; }
  .portfolio-zone .wall-sticker { width: 215px; }
  .portfolio-zone .wall-sticker:nth-child(n) { width: 215px; }
}

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

@media (min-width: 901px) {
  /* LoRA 等卡片较多的区域也保持与工作流区相同尺寸。 */
  .portfolio-zone .sticker-wall.is-dense .wall-sticker,
  .portfolio-zone .sticker-wall.is-dense .wall-sticker:nth-child(n) {
    width: clamp(220px, 15.5vw, 270px);
    padding: 10px 10px 15px;
  }
  .portfolio-zone .sticker-wall.is-dense .sticker-cover { aspect-ratio: 1 / .92; }
  .portfolio-zone .sticker-wall.is-dense .wall-sticker h3 { font-size: clamp(18px, 1.65vw, 25px); }
  .portfolio-zone .sticker-wall.is-dense .wall-sticker p {
    -webkit-line-clamp: 2;
    font-size: 10px;
  }
  .featured-wall.is-dense .wall-sticker,
  .featured-wall.is-dense .wall-sticker:nth-child(n) { width: 156px; }
}

/* Full-page sections align directly below the sticky top bar. */
.home-section,
.portfolio-zone {
  scroll-margin-top: 0 !important;
}

@media (max-width: 900px) {
  .topnav { display: flex; }
}

@media (max-width: 900px) {
  .topbar { backdrop-filter: none; }
}

/* V7 · 首次进入分区时的逐项过场动画 */
.reveal {
  opacity: 1;
  transform: none;
}

.sequence-reveal {
  opacity: 0 !important;
  filter: blur(5px) saturate(.82);
  clip-path: inset(8% 0 0 0 round 8px);
  transition:
    opacity .88s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms),
    filter .95s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms),
    clip-path .95s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms);
  will-change: opacity, filter, clip-path;
}

.wall-sticker.sequence-reveal {
  transform: translate3d(var(--sequence-x, 0), 34px, 0) scale(.965);
  transition:
    opacity .88s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms),
    filter .95s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms),
    clip-path .95s cubic-bezier(.22, .7, .18, 1) var(--sequence-delay, 0ms),
    transform .95s cubic-bezier(.18, .78, .18, 1) var(--sequence-delay, 0ms),
    scale .18s ease,
    box-shadow .18s ease;
}

.sequence-reveal.is-visible {
  opacity: 1 !important;
  filter: blur(0) saturate(1);
  clip-path: inset(0 0 0 0 round 0);
}

.wall-sticker.sequence-reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* 已出现后恢复卡片原有的悬停和拖动反馈。 */
.wall-sticker.sequence-reveal.is-visible:hover,
.wall-sticker.sequence-reveal.is-visible:focus-visible {
  transform: translate3d(0, -2px, 0) scale(1.015);
}

.wall-sticker.sequence-reveal.is-visible.is-dragging {
  transform: translate3d(0, 0, 0) scale(1.025);
}

@media (max-width: 900px) {
  .sequence-reveal:not(.is-visible) {
    opacity: 0 !important;
    filter: blur(4px) saturate(.85) !important;
    clip-path: inset(7% 0 0 0 round 8px) !important;
  }

  .wall-sticker.sequence-reveal:not(.is-visible) {
    transform: translate3d(var(--sequence-x, 0), 24px, 0) scale(.97) !important;
  }

  .wall-sticker.sequence-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sequence-reveal,
  .wall-sticker.sequence-reveal {
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 入场结束后移除延迟，恢复即时悬停、拖动与角度控制。 */
.sequence-reveal.sequence-complete {
  transition: opacity .2s ease, filter .2s ease, clip-path .2s ease;
}
.wall-sticker.sequence-reveal.sequence-complete {
  transition: transform .18s ease, scale .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}
.wall-sticker.sequence-reveal.sequence-complete.is-dragging {
  transition: none;
}


/* V23: one real custom-node project becomes the visual center of section 03. */
.zone-nodes .wall-sticker:only-child {
  width: clamp(330px, 27vw, 440px);
  padding: 13px 13px 19px;
}
.zone-nodes .wall-sticker:only-child .sticker-cover { aspect-ratio: 1 / .96; }
.zone-nodes .wall-sticker:only-child h3 { font-size: clamp(24px, 2.1vw, 34px); }
.zone-nodes .wall-sticker:only-child p { font-size: 12px; -webkit-line-clamp: 3; }
.modal-actions .secondary-download {
  background: #f5efe4;
  color: #181a16;
  border: 1px solid rgba(24,26,22,.28);
}
@media (max-width: 900px) {
  .zone-nodes .wall-sticker:only-child {
    width: auto;
    flex-basis: min(84vw, 360px);
  }
}


/* =========================================================
   V32 · 公开只读模式 / iDvDi 首屏 / 外部下载策略
   ========================================================= */
.public-editor-control,
.public-editor-control[hidden] {
  display: none !important;
}

/* 两行标题保留手绘挤压感，但不再互相粘连。 */
.hero-paper h1 {
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.hero-paper h1 .hero-name {
  display: inline-block;
  margin-top: 0.08em;
  letter-spacing: -0.035em;
}

/* 公开页拖动仅用于浏览，不出现内容编辑控制。 */
body.public-view .tilt-controls { display: none !important; }

html.is-loading,
html.is-loading body {
  overflow: hidden !important;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.58s ease, visibility 0.58s ease;
}
.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  border: 3px solid var(--blue);
  border-radius: 50%;
  opacity: 0.16;
  animation: loader-orbit 4.8s linear infinite;
}
.site-loader::before {
  width: min(42vw, 520px);
  height: min(42vw, 520px);
}
.site-loader::after {
  width: min(60vw, 760px);
  height: min(60vw, 760px);
  border-color: var(--red);
  animation-direction: reverse;
  animation-duration: 7s;
}
.site-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-board {
  position: relative;
  z-index: 1;
  width: min(520px, 88vw);
  padding: clamp(28px, 5vw, 46px);
  border: 2px solid rgba(63, 60, 48, 0.25);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
  transform: rotate(-1deg);
  animation: loader-board-in 0.72s cubic-bezier(.2,.75,.2,1) both;
}
.loader-board::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 94px;
  height: 22px;
  background: rgba(237, 191, 197, 0.82);
  transform: translateX(-50%) rotate(2deg);
}
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.loader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.loader-dots span:nth-child(2) { background: var(--yellow); }
.loader-dots span:nth-child(3) { background: var(--blue); }
.loader-kicker {
  margin: 0 0 9px;
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
}
.loader-board > strong {
  display: block;
  font-size: clamp(25px, 6vw, 42px);
  line-height: 1.15;
}
.loader-stickers {
  position: relative;
  width: 184px;
  height: 82px;
  margin: 25px auto 18px;
}
.loader-stickers i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 72px;
  border: 5px solid var(--paper-2);
  background: var(--yellow);
  box-shadow: 0 5px 0 rgba(51,55,40,.18);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: loader-sticker-in 0.58s cubic-bezier(.2,.8,.2,1) forwards;
}
.loader-stickers i:nth-child(1) {
  margin-left: -76px;
  margin-top: -35px;
  background: var(--red);
  --sticker-rotate: -12deg;
  animation-delay: 0.16s;
}
.loader-stickers i:nth-child(2) {
  margin-left: -29px;
  margin-top: -42px;
  background: var(--mint);
  --sticker-rotate: 2deg;
  animation-delay: 0.34s;
}
.loader-stickers i:nth-child(3) {
  margin-left: 22px;
  margin-top: -34px;
  background: var(--blue);
  --sticker-rotate: 11deg;
  animation-delay: 0.52s;
}
.loader-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(41,41,34,.12);
}
.loader-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  animation: loader-progress 1.15s ease-in-out infinite;
}
.loader-board small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font: 700 9px/1.5 var(--font-mono);
  letter-spacing: .05em;
}

@keyframes loader-board-in {
  from { opacity: 0; transform: translateY(24px) rotate(-3deg) scale(.96); }
  to { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}
@keyframes loader-sticker-in {
  from { opacity: 0; transform: translateY(18px) rotate(0deg) scale(.72); }
  to { opacity: 1; transform: translateY(0) rotate(var(--sticker-rotate)) scale(1); }
}
@keyframes loader-progress {
  0% { translate: -115% 0; }
  55% { translate: 95% 0; }
  100% { translate: 245% 0; }
}
@keyframes loader-orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.035); }
  to { transform: rotate(360deg) scale(1); }
}

@media (max-width: 900px) {
  .hero-paper h1 { line-height: 0.98; }
  .hero-paper h1 .hero-name { margin-top: 0.04em; }
  .loader-board { padding: 28px 22px; }
  .loader-stickers { transform: scale(.9); margin-block: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader::before,
  .site-loader::after,
  .loader-board,
  .loader-stickers i,
  .loader-track span {
    animation: none !important;
  }
  .loader-stickers i { opacity: 1; }
}

/* V32: author display rules must never override the native hidden state. */
[hidden] {
  display: none !important;
}

/* =========================================================
   V33 · 首屏文字完整显示 / 精选贴纸轻微漂浮
   ========================================================= */
/* iDvDi 改名后标题占用更高：给首屏纸张留足垂直空间，链接不再被裁掉。 */
@media (min-width: 901px) {
  .hero-paper {
    height: clamp(350px, 47vh, 470px);
    padding-bottom: clamp(30px, 3.2vh, 42px);
  }

  .hero-paper h1 {
    font-size: clamp(58px, 6.15vw, 102px);
  }

  .hero-copy {
    margin-top: clamp(13px, 1.7vh, 21px);
    line-height: 1.6;
  }

  .hero-tags {
    margin-top: 12px;
  }

  .primary-link {
    margin-top: 14px;
  }
}

/* 精选作品只做几像素的缓慢漂浮。
   使用可动画的自定义长度变量叠加到 translate，避免 margin-top 每帧触发布局重排。 */
@property --featured-float-y {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .featured-wall .wall-sticker.sequence-complete {
    animation: featured-card-float 8.8s cubic-bezier(.45, 0, .55, 1) infinite both;
  }

  .featured-wall .wall-sticker.sequence-complete:nth-child(2n) {
    animation-duration: 10.2s;
    animation-delay: .7s;
  }

  .featured-wall .wall-sticker.sequence-complete:nth-child(3n) {
    animation-duration: 9.6s;
    animation-delay: 1.4s;
  }

  .featured-wall .wall-sticker.sequence-complete:nth-child(4n) {
    animation-duration: 11s;
    animation-delay: 2.1s;
  }

  .featured-wall .wall-sticker.sequence-complete:hover,
  .featured-wall .wall-sticker.sequence-complete:focus-visible,
  .featured-wall .wall-sticker.sequence-complete.is-dragging {
    animation-play-state: paused;
  }
}

@keyframes featured-card-float {
  0%, 100% { --featured-float-y: 0px; }
  50% { --featured-float-y: -4px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero-paper {
    height: clamp(342px, 49vh, 390px);
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .hero-paper h1 { font-size: clamp(54px, 5.8vw, 88px); }
  .hero-copy { margin-top: 12px; font-size: 12px; line-height: 1.5; }
  .hero-tags { margin-top: 9px; }
  .primary-link { margin-top: 11px; }
}

/* V33.1: ensure the full hero content remains inside the paper at desktop zoom levels. */
@media (min-width: 901px) {
  .hero-paper {
    height: clamp(410px, 52vh, 500px);
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero-paper {
    height: clamp(390px, 56vh, 430px);
  }
}

/* =========================================================
   V35 · 手机横向浏览 / 图片大图查看
   ========================================================= */
.mobile-gesture-hint {
  display: none;
}

.sticker-cover.is-zoomable,
.cover-art.is-zoomable,
.modal-gallery img.is-zoomable {
  cursor: zoom-in;
}

.sticker-cover.has-custom-image.is-zoomable::after {
  content: "↗";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: grid !important;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(24, 26, 22, .78);
  border-radius: 50%;
  background: rgba(255, 250, 241, .92);
  color: #181a16;
  box-shadow: 2px 2px 0 rgba(24, 26, 22, .18);
  font: 900 16px/1 var(--font-mono);
  pointer-events: none;
}

.cover-art.is-zoomable {
  position: relative;
  outline: 0;
}
.cover-art.is-zoomable:focus-visible,
.modal-gallery img.is-zoomable:focus-visible,
.sticker-cover.is-zoomable:focus-visible {
  outline: 3px solid rgba(47, 98, 182, .58);
  outline-offset: 3px;
}

.modal-gallery img.is-zoomable {
  transition: transform .18s ease, filter .18s ease;
}
.modal-gallery img.is-zoomable:hover {
  transform: scale(1.012);
  filter: saturate(1.04);
}

.image-lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  height: min(94vh, 1100px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: rgba(12, 13, 12, .97);
  color: #fff;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .52);
}
.image-lightbox::backdrop {
  background: rgba(10, 11, 10, .82);
  backdrop-filter: blur(8px);
}
.lightbox-stage {
  width: 100%;
  height: calc(100% - 48px);
  display: grid;
  place-items: center;
  padding: 26px 28px 10px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pinch-zoom pan-x pan-y;
}
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-caption {
  min-height: 48px;
  margin: 0;
  padding: 11px 72px 13px 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.76);
  font: 700 12px/1.5 var(--font-mono);
}
.lightbox-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  color: #111;
  outline: none;
}

@media (max-width: 900px) {
  .mobile-gesture-hint {
    display: block;
    margin-top: 6px;
    color: rgba(47, 98, 182, .78);
    font: 800 8px/1.35 var(--font-mono);
    letter-spacing: .02em;
    white-space: nowrap;
  }

  /* 触点落在贴纸上时也交给横向滚动容器处理，避免 pan-y 抢走手势。 */
  .draggable-sticker,
  .wall-sticker,
  .sticker-cover,
  .sticker-cover.is-zoomable {
    touch-action: pan-x pinch-zoom;
  }

  .portfolio-zone > .sticker-wall,
  .featured-wall {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
  }
  .portfolio-zone > .sticker-wall::-webkit-scrollbar,
  .featured-wall::-webkit-scrollbar {
    display: none;
  }

  .portfolio-zone .wall-sticker,
  .portfolio-zone .wall-sticker:nth-child(n),
  .featured-wall .wall-sticker,
  .featured-wall .wall-sticker:nth-child(n) {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .portfolio-zone .wall-sticker {
    cursor: pointer;
  }

  .sticker-cover.has-custom-image.is-zoomable::after {
    width: 34px;
    height: 34px;
    right: 9px;
    bottom: 9px;
    font-size: 17px;
  }

  .image-lightbox {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .lightbox-stage {
    height: calc(100% - 54px - env(safe-area-inset-bottom));
    padding: calc(58px + env(safe-area-inset-top)) 10px 10px;
  }
  .lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
  }
  .lightbox-caption {
    min-height: calc(54px + env(safe-area-inset-bottom));
    padding: 12px 70px calc(12px + env(safe-area-inset-bottom)) 14px;
    font-size: 11px;
  }
  .lightbox-close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
  }
}

@media (max-width: 520px) {
  .zone-header > div:nth-child(2) > p:last-of-type {
    -webkit-line-clamp: 1;
  }
  .mobile-gesture-hint {
    font-size: 7px;
  }
}
