/* ==========================================================================
   Ray 的造物铺 · coderray.com
   暖色工坊风 × 程序员手作感
   零依赖、无外链、移动优先
   ========================================================================== */

/* ---------- 设计 tokens ---------- */
:root {
  --bg: #17120e;
  --bg-deep: #120e0a;
  --bg-alt: #1d1712;
  --card: #231b13;
  --card-2: #1d1712;
  --ink: #efe6d4;
  --ink-dim: #bfae93;
  --ink-faint: #8d7c64;
  --amber: #e8a04c;
  --amber-hi: #ffc069;
  --ember: #ff8a3d;
  --seal: #c9412f;
  --line: #3b2f22;
  --line-soft: #2c2318;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --wrap: 1100px;
  --radius: 14px;
  --glow: 0 0 24px rgba(232, 160, 76, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 纸纹噪点:盖在最上层的胶片颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: #241a10; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hi); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.mono { font-family: var(--mono); }

/* 读屏专用隐藏文案 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 0.6rem 1rem;
  background: var(--amber);
  color: #241a10;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #241a10; }

/* 余烬粒子画布:只在 Hero 透出(其余板块实底覆盖) */
#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- 滚动 reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(19, 14, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.nav-brand:hover { color: var(--ink); }
.nav-seal { border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.nav-name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-name em { font-style: normal; color: var(--ink-faint); font-size: 0.86em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--ember));
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-hi); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 1.05rem !important;
  color: var(--ink) !important;
}
.nav-cta:hover { border-color: var(--amber); box-shadow: var(--glow); }
.nav-cta::after { display: none; }

/* 汉堡 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 1.4rem 0;
  background:
    radial-gradient(58% 42% at 50% 26%, rgba(232, 138, 61, 0.13), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(232, 160, 76, 0.07), transparent 70%);
}
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero-eyebrow {
  margin: 0 0 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "——";
  margin: 0 0.8em;
  color: var(--line);
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.1rem, 9.5vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-shadow: 0 0 60px rgba(232, 160, 76, 0.25);
}
.hero-name em { font-style: normal; font-size: 0.55em; color: var(--ink-dim); letter-spacing: 0.12em; }
.hero-name, .hero-shop { display: inline-block; }
.hero-shop { position: relative; }
.hero-seal {
  position: absolute;
  right: -1.05em;
  top: -0.42em;
  width: 0.5em;
  height: 0.5em;
  transform: rotate(8deg);
  filter: drop-shadow(0 4px 14px rgba(201, 65, 47, 0.5));
  animation: seal-float 5.5s ease-in-out infinite;
}
@keyframes seal-float {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}

.hero-type {
  margin: 1.9rem auto 0;
  min-height: 2.2em;
  font-size: clamp(1.02rem, 2.6vw, 1.35rem);
  color: var(--amber-hi);
  letter-spacing: 0.05em;
}
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: -0.2em;
  background: linear-gradient(180deg, var(--amber-hi), var(--ember));
  border-radius: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 38em;
  margin: 0.4rem auto 0;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.9rem 0 0;
  padding: 0;
}
.hero-chips li {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 1rem;
  background: rgba(35, 27, 19, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.82rem 1.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-hi), var(--amber) 55%, #d9873a);
  color: #241a10;
  box-shadow: 0 4px 22px rgba(232, 160, 76, 0.3);
}
.btn-primary:hover {
  color: #241a10;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 160, 76, 0.45);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(35, 27, 19, 0.45);
}
.btn-ghost:hover { color: var(--amber-hi); border-color: var(--amber); transform: translateY(-2px); }

/* 数字带 */
.hero-stats {
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  margin-top: 5rem;
  padding: 1.7rem 1.4rem 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: var(--amber);
  text-shadow: 0 0 26px rgba(232, 160, 76, 0.35);
  line-height: 1.2;
}
.stat-num i { font-style: normal; }
.stat-num em { font-style: normal; font-size: 0.42em; color: var(--ink-faint); margin-left: 2px; }
.stat-label { color: #a2917a; font-size: 0.85rem; letter-spacing: 0.1em; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--amber); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- 通用板块 ---------- */
.section {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(4.6rem, 9vw, 7.5rem) 1.4rem;
  /* 首屏以下板块跳过屏外渲染,加快首屏 */
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section-alt {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(232, 160, 76, 0.05), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* 侧边竖排水印 */
.section::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(0.6rem, 3vw, 2.6rem);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: 0.4em;
  color: rgba(232, 160, 76, 0.05);
  pointer-events: none;
  user-select: none;
}
#maker::after { content: "造物者"; }
#works::after { content: "造物架"; }
#toolbox::after { content: "工具箱"; }
#challenge::after { content: "铺子里"; }
#services::after { content: "接活儿"; }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.8rem, 6vw, 4.2rem);
  text-align: center;
}
.section-index {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--amber);
}
.section-index::before { content: "— "; color: var(--line); }
.section-index::after { content: " —"; color: var(--line); }
.section-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.section-lead {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 2.2vw, 1.1rem);
}
.section-lead b { color: var(--amber-hi); font-weight: 600; }

/* ---------- 02 造物者 ---------- */
.maker-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
}
.maker-copy p { color: var(--ink-dim); margin: 0 0 1.15rem; }
.maker-copy b { color: var(--ink); font-weight: 600; }

.maker-traits {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.maker-traits li {
  font-size: 0.78rem;
  color: var(--amber);
  border: 1px dashed rgba(232, 160, 76, 0.4);
  border-radius: 8px;
  padding: 0.32rem 0.85rem;
  background: rgba(232, 160, 76, 0.05);
}

/* 时间线 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--ember) 45%, rgba(232, 138, 61, 0.08));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 1.9rem 1.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 7px;
  width: 12px;
  height: 12px;
  margin-left: -0.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 160, 76, 0.14);
  transition: box-shadow 0.5s, background 0.5s;
}
.tl-item.in::before {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(232, 160, 76, 0.75);
}
.tl-year {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.tl-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}
.tl-body p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- 03 造物架 ---------- */
.works-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.8rem;
}
/* 5 件作品:最后一件横向铺满整层货架 */
.works-grid .work-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
.work-card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.4rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* 木架搁板 */
.work-card::after {
  content: "";
  position: absolute;
  left: -9px;
  right: -9px;
  bottom: -12px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #52381d, #2a1c0e);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  opacity: 0.85;
  transition: box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 160, 76, 0.55);
  box-shadow: var(--glow);
}
.work-card:hover::after { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65); }

.work-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}
.work-tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(232, 160, 76, 0.35);
  border-radius: 6px;
  padding: 0.18rem 0.6rem;
  background: rgba(232, 160, 76, 0.06);
}
.work-status { font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.work-status.status-live {
  color: var(--amber);
  border: 1px solid rgba(232, 160, 76, 0.4);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  background: rgba(232, 160, 76, 0.07);
  transition: all 0.25s;
}
.work-status.status-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #8fbc6a;
  animation: pulse 1.8s ease-in-out infinite;
}
.work-status.status-live:hover {
  color: var(--amber-hi);
  border-color: var(--amber);
  box-shadow: var(--glow);
}
@keyframes pulse { 50% { opacity: 0.35; } }

.work-title {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.work-desc { margin: 0 0 1.1rem; color: var(--ink-dim); font-size: 0.95rem; }
.work-meta {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.work-meta::before { content: "◈ "; color: var(--amber); }

/* ---------- 04 验证阶梯 ---------- */
.ladder {
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
  padding-bottom: 1rem;
}
.ladder-floor {
  position: absolute;
  left: -1rem;
  right: -1rem;
  bottom: 3.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 160, 76, 0.55) 12%, rgba(232, 160, 76, 0.55) 88%, transparent);
  box-shadow: 0 0 18px rgba(232, 160, 76, 0.35);
}
.ladder-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  align-items: end;
}
.step {
  position: relative;
  margin-bottom: calc(var(--i) * 3.35rem);
  opacity: 0.38;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step.lit { opacity: 1; transform: none; }
/* 台阶踏面与立板 */
.step::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(var(--i) * 3.35rem + 3.4rem);
  background:
    linear-gradient(180deg, rgba(232, 160, 76, 0.28), rgba(232, 160, 76, 0.1) 12%, transparent 40%),
    linear-gradient(180deg, rgba(64, 48, 30, 0.55), rgba(30, 23, 15, 0.92));
  border: 1px solid rgba(232, 160, 76, 0.28);
  border-top: 2px solid rgba(232, 160, 76, 0.5);
  border-bottom: none;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}
.step-card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 4px 4px;
  padding: 1.15rem 1.05rem 1rem;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.step.lit .step-card {
  border-color: rgba(232, 160, 76, 0.5);
  box-shadow: 0 0 22px rgba(232, 160, 76, 0.16);
}
.step.lit:last-child .step-card { box-shadow: 0 0 30px rgba(255, 138, 61, 0.3); }

.step-level { margin: 0 0 0.45rem; font-size: 0.72rem; color: var(--amber); letter-spacing: 0.14em; }
.step-name { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 800; }
.step-desc { margin: 0 0 0.8rem; color: var(--ink-dim); font-size: 0.82rem; line-height: 1.65; }
.step-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}
.step-meta::before { content: "⏱ "; }

.ladder-rule {
  margin: 4.2rem auto 0;
  max-width: 44rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--ink-dim);
  padding: 1.3rem 1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ladder-rule b { color: var(--amber-hi); font-weight: 800; }

/* ---------- 05 铺子里 ---------- */
.challenge-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(2rem, 4.5vw, 3.6rem);
  align-items: start;
}
.rules { list-style: none; margin: 0; padding: 0; }
.rule {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px dashed var(--line);
}
.rule:last-child { border-bottom: none; }
.rule-no {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fdf3df;
  background: linear-gradient(135deg, var(--seal), #a33325);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(201, 65, 47, 0.35);
  transform: rotate(-4deg);
}
.rule p { margin: 0.1rem 0 0; color: var(--ink-dim); }
.rule b { color: var(--ink); font-weight: 700; }

.challenge-cta { margin-top: 1.9rem; }
.cta-note { margin: 0 0 0.9rem; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--seal); }
.cta-note::before { content: "● "; font-size: 0.6em; vertical-align: 0.2em; }

.slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0 0 1.5rem;
}
.slot {
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-family: var(--sans);
}
.slot small { font-size: 0.58rem; letter-spacing: 0.1em; }
.slot-open {
  border: 1px solid rgba(232, 160, 76, 0.65);
  background: rgba(232, 160, 76, 0.1);
  color: var(--amber-hi);
  flex-direction: column;
  animation: slot-glow 2.4s ease-in-out infinite;
}
@keyframes slot-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 160, 76, 0); }
  50% { box-shadow: 0 0 18px rgba(232, 160, 76, 0.4); }
}

/* 账号矩阵 */
.accounts {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  position: sticky;
  top: 100px;
}
.accounts-title { margin: 0 0 1.4rem; font-size: 0.88rem; letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 400; }
.accounts-name {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--amber-hi);
  letter-spacing: 0.04em;
}
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}
.account-list li:last-child { border-bottom: none; }
.platform { color: var(--ink-faint); letter-spacing: 0.08em; }
.handle { color: var(--ink); }

/* 可点击的平台行 */
.account-link {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
}
.account-link:hover .handle { color: var(--amber-hi); }
.account-link .ext { font-style: normal; color: var(--ink-faint); transition: color 0.25s, transform 0.25s; display: inline-block; }
.account-link:hover .ext { color: var(--amber); transform: translate(2px, -2px); }
.accounts-note { margin: 1.3rem 0 0; font-size: 0.82rem; color: var(--ink-dim); line-height: 1.7; }
.accounts-note::before { content: "「"; color: var(--amber); }
.accounts-note::after { content: "」"; color: var(--amber); }

/* 关注二维码:公众号 + 视频号 */
.follow-qrs {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: inherit;
}
.qr-item img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.qr-item:hover img {
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.qr-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.qr-label b { color: var(--amber); font-weight: 600; }
.qr-caption { margin: 1.1rem 0 0; font-size: 0.76rem; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ---------- 06 服务 ---------- */
.services-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 160, 76, 0.55);
  box-shadow: var(--glow);
}
.service-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.service-icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(232, 160, 76, 0.45));
}
.service-card p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

/* 寄宿验证钩子卡 */
.hook-card {
  max-width: var(--wrap);
  margin: 2.4rem auto 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 160, 76, 0.5);
  background:
    linear-gradient(120deg, rgba(232, 160, 76, 0.14), rgba(255, 138, 61, 0.05) 45%, transparent),
    linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--glow);
}
.hook-body { padding: 2rem 1.9rem; }
.hook-body h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--amber-hi);
}
.hook-body h3::after { content: " ✦"; font-size: 0.7em; }
.hook-body p { margin: 0; color: var(--ink-dim); }
.hook-side {
  padding: 2rem 1.9rem;
  border-left: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}
.hook-side p { margin: 0; font-size: 0.76rem; color: var(--ink-faint); letter-spacing: 0.03em; }
.hook-side p::before { content: "› "; color: var(--amber); }

/* 微信联系卡 */
.wechat-card {
  margin-top: 1.1rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border: 1px dashed rgba(232, 160, 76, 0.5);
  border-radius: 12px;
  background: rgba(232, 160, 76, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.wechat-card:hover {
  border-color: var(--amber);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.wechat-card img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  display: block;
}
.wechat-text { display: flex; flex-direction: column; gap: 0.25rem; }
.wechat-text b {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--amber-hi);
}
.wechat-text small {
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}
.wechat-text small::after {
  content: " ↗";
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: 3.4rem 1.4rem 1.6rem;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-seal { border-radius: 10px; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5); }
.footer-name { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 900; letter-spacing: 0.05em; }
.footer-name em { font-style: normal; color: var(--ink-faint); font-size: 0.85em; }
.footer-slogan { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--amber); letter-spacing: 0.06em; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--ink-dim); font-size: 0.88rem; }
.footer-links a:hover { color: var(--amber-hi); }

.footer-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.74rem;
  color: var(--ink-faint);
}
.footer-bar a { color: var(--ink-faint); }
.footer-bar a:hover { color: var(--amber); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .maker-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .challenge-grid { grid-template-columns: 1fr; }
  .accounts { position: static; }
  .hook-card { grid-template-columns: 1fr; }
  .hook-side { border-left: none; border-top: 1px dashed var(--line); }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(19, 14, 10, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.4rem 1.4rem 1.1rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-links.open { clip-path: inset(0); }
  .nav-links a { padding: 0.85rem 0.2rem; border-bottom: 1px dashed var(--line-soft); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-cta { border-radius: 10px; padding: 0.85rem 0.2rem !important; text-align: left; }

  .section::after { display: none; }
  .br-desktop { display: none; }

  /* 阶梯:竖排 */
  .ladder-steps { grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
  .step { margin-bottom: 0; }
  .step::before {
    top: auto;
    left: -1.35rem;
    right: auto;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, rgba(232, 160, 76, 0.5), rgba(232, 160, 76, 0.06));
    border: none;
    border-radius: 2px;
  }
  .ladder-floor { display: none; }
  .step-card { border-radius: var(--radius); }
  .ladder-rule { margin-top: 2.6rem; }

  .works-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 3.4rem; gap: 1.6rem 1rem; }
  .hero { padding-top: 6.4rem; }
  .hero-seal { right: -1.1em; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .hero-chips li { font-size: 0.72rem; padding: 0.3rem 0.8rem; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .btn { padding: 0.78rem 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- 降级:减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .step { opacity: 1; transform: none; }
  .caret { animation: none; }
}
