/* ==========================================================================
   Binding & Stitch · 玻璃增强版（师长187 个人主页）
   保留装订/订书针世界与全部内容，恢复玻璃拟态与鼠标交互的丰富质感。
   性能：色块用 radial-gradient（无 filter: blur），动画只动 transform；
         backdrop-filter 只用于静态面板；全部尊重 prefers-reduced-motion。
   ========================================================================== */

:root {
  --paper: #FDF4F9;        /* 冷粉纸底（渐变起点） */
  --ink: #3B0764;          /* 深紫墨 */
  --ink-2: #5B21B6;
  --ink-soft: #7C5FA8;
  --pink: #EC4899;
  --violet: #A855F7;
  --cyan: #06B6D4;
  --grad: linear-gradient(100deg, #EC4899, #A855F7 55%, #06B6D4);
  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 10px 34px rgba(124, 58, 237, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.6);
  --accent: #D7261D;       /* 订书针红（印章/缝线/订书钉） */
  --r-glass: 20px;
  --r-btn: 999px;
  --r-sm: 10px;

  --font-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17102B;
    --ink: #F3ECFF;
    --ink-2: #CFC2F0;
    --ink-soft: #9D8FC4;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.14);
    --accent: #FF6B5E;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: linear-gradient(155deg, #FDF2F7 0%, #F6EFFC 30%, #EDF6FD 68%, #F0FAF8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(155deg, #17102B 0%, #131E33 45%, #0F2A33 100%);
  }
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }
p { max-width: 65ch; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--violet));
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: var(--r-sm); }
a { text-underline-offset: 4px; }

/* ==========================================================================
   背景：彩色渐变 + 悬浮色块（radial-gradient，无 blur，transform 动画）
   ========================================================================== */
/* 背景：彩色渐变 + 悬浮色块（radial-gradient，无 blur，transform 动画）
   两层：.bg-scroll 跟随滚轮做纵向视差（更高一截，移动不留缝），
        .bg-blobs 内部色块 + 鼠标指针视差。 */
.bg-scroll {
  position: fixed;
  inset: -15% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.bg-blobs {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-1 {
  width: 42vmax; height: 42vmax;
  left: -13vmax; top: -15vmax;
  background: radial-gradient(circle at 35% 35%, rgba(236, 72, 153, 0.5), rgba(236, 72, 153, 0) 62%);
  animation: drift1 34s ease-in-out infinite alternate;
}
.blob-2 {
  width: 36vmax; height: 36vmax;
  right: -12vmax; top: 16vh;
  background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.45), rgba(168, 85, 247, 0) 60%);
  animation: drift2 40s ease-in-out infinite alternate;
}
.blob-3 {
  width: 34vmax; height: 34vmax;
  left: 16vw; bottom: -17vmax;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0) 60%);
  animation: drift3 46s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  .blob-1 { background: radial-gradient(circle at 35% 35%, rgba(236, 72, 153, 0.34), rgba(236, 72, 153, 0) 62%); }
  .blob-2 { background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0) 60%); }
  .blob-3 { background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.26), rgba(6, 182, 212, 0) 60%); }
}
@keyframes drift1 { to { transform: translate(6vw, 5vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-5vw, 7vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(5vw, -6vh) scale(1.12); } }

/* ---------- 缝线进度条（滚动进度 = 一段红缝线） ---------- */
.stitch-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 60;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 装订线（书脊缝线，桌面端左侧） ---------- */
.spine {
  position: fixed;
  top: 0; bottom: 0; left: 22px;
  width: 12px;
  z-index: 40;
  pointer-events: none;
  border-left: 2px dashed var(--line);
  display: none;
}
@media (min-width: 1280px) { .spine { display: block; } }
.spine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 26px);
  opacity: 0.55;
}

/* ==========================================================================
   玻璃系统
   ========================================================================== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
/* 减少透明偏好：玻璃退化为实底 */
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav.scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  min-height: 44px;
}
.nav-brand .staple-mark { width: 20px; height: 20px; color: var(--pink); transition: transform 0.2s ease; }
.nav-brand:hover .staple-mark { transform: rotate(-8deg) scale(1.1); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ---------- 按钮（胶囊形 + 渐变主按钮 + 磁吸由 JS 驱动） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--pink), var(--violet));
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.38);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(236, 72, 153, 0.5); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }

.btn-ghost {
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.32); }

/* ---------- 图标按钮（玻璃圆钮） ---------- */
.icon-btn {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: transform 0.2s ease, color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.icon-btn:hover {
  color: #fff;
  background: var(--grad);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(168, 85, 247, 0.4);
}
.icon-btn:active { transform: translateY(1px) scale(0.95); }
.icon-btn .ph { font-size: 1.5rem; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- 通用区块 ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 108px clamp(16px, 4vw, 32px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 44px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero（非对称分栏） ---------- */
.hero {
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) clamp(16px, 4vw, 32px) 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.t-line { display: block; }
.t-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 装订标签铭牌（玻璃 + 3D 倾斜 + 聚光） ---------- */
.tilt-wrap {
  perspective: 900px;
  justify-self: end;
  width: min(360px, 100%);
}
.label-plate {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: var(--r-glass);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.plate-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.4), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.label-plate:hover .plate-glare { opacity: 1; }
/* 顶部两枚订书钉（玻璃质感） */
.plate-staple {
  position: absolute;
  top: -8px;
  width: 26px; height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}
.plate-staple::after {
  content: "";
  position: absolute;
  top: 9px; bottom: -5px;
  width: 2.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
}
.plate-staple-l { left: 34px; }
.plate-staple-l::after { left: 4px; }
.plate-staple-r { right: 34px; }
.plate-staple-r::after { right: 4px; }

.plate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.plate-stamp {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--glass-border);
}
.plate-stamp .staple-mark { width: 30px; height: 30px; transition: transform 0.2s ease; }
.label-plate:hover .plate-stamp .staple-mark { transform: scale(1.1) rotate(-6deg); }
.plate-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.plate-no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }

.spec { display: block; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec dt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.spec dd { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.spec-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.spec-row.is-copy .spec-value { cursor: copy; }
.spec-row.is-copy .spec-value:hover { color: var(--pink); background: rgba(236, 72, 153, 0.12); }
.spec-row.is-link .spec-value:hover { color: var(--pink); }
.plate-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- 跑马灯（玻璃带，倾斜放置；内容在动故用较实背景避免重采样） ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 14px 0;
  margin: 18px 0;
  transform: rotate(-1.4deg) scale(1.04);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
@media (prefers-color-scheme: dark) {
  .marquee { background: rgba(255, 255, 255, 0.06); }
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}
.marquee-group i { font-style: normal; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-story p {
  font-size: 1.06rem;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 60ch;
}
.about-story p:first-child { color: var(--ink); font-size: 1.14rem; }

.spec-sheet {
  border-radius: var(--r-glass);
  padding: 26px 24px;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}
.sheet-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-row:last-child { border-bottom: none; }
.sheet-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 88px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sheet-label { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 技能（不对称玻璃格 + 光标聚光） ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.skill-cell {
  grid-column: span 6;
  border-radius: var(--r-glass);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.skill-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.skill-cell:hover::after { opacity: 1; }
.skill-cell:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(124, 58, 237, 0.22); }
.skill-cell.cell-wide { grid-column: span 7; }
.skill-cell.cell-steel { background: rgba(255, 255, 255, 0.26); }
.skill-cell.cell-red {
  background: rgba(215, 38, 29, 0.1);
  border-color: rgba(215, 38, 29, 0.4);
}
@media (prefers-color-scheme: dark) {
  .skill-cell.cell-steel { background: rgba(255, 255, 255, 0.09); }
  .skill-cell::after { background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 65%); }
}
.skill-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.skill-cell:hover .skill-idx { color: var(--pink); }
.skill-ico { font-size: 1.7rem; color: var(--ink-soft); transition: transform 0.25s ease, color 0.25s ease; }
.skill-cell:hover .skill-ico { color: var(--pink); transform: scale(1.12) rotate(-4deg); }
.skill-cell.cell-red .skill-ico, .skill-cell.cell-red .skill-idx { color: var(--accent); }
.cell-red .staple-mark.skill-ico { width: 28px; height: 28px; }
.skill-cell h3 { font-size: 1.22rem; font-weight: 700; margin-top: 2px; }
.skill-cell p { font-size: 0.95rem; color: var(--ink-soft); max-width: 42ch; }

/* ---------- 联系（玻璃面板） ---------- */
.contact { padding-bottom: 120px; }
.contact-panel {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  text-align: left;
}
.contact-text {
  font-size: 1.06rem;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 52ch;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.contact-strip { display: flex; flex-wrap: wrap; gap: 14px; }

.rubber-stamp {
  display: inline-block;
  margin-top: 52px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 3px double var(--accent);
  border-radius: var(--r-sm);
  transform: rotate(-1.6deg);
  opacity: 0.85;
  transition: transform 0.25s ease;
}
.rubber-stamp:hover { transform: rotate(0deg) scale(1.04); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 16px 44px;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.footer p { font-size: 0.88rem; color: var(--ink-soft); max-width: none; }
.footer p:first-child { color: var(--ink-2); font-weight: 600; }

/* ---------- Toast（复制反馈，玻璃） ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 16px);
  z-index: 100;
  max-width: min(90vw, 420px);
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--pink);
}

/* ---------- 鼠标粒子画布（覆盖全屏，不挡交互） ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* ==========================================================================
   订书针专栏（3D 圆盘画廊，编号占位版）
   ========================================================================== */
.staplers-intro {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 32px;
}
.stapler-stage {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  padding: 80px 24px 70px;
  perspective: 1600px;
  overflow: hidden;
  cursor: grab;
  background: linear-gradient(150deg, #F1EBFC 0%, #E9F4FB 55%, #EAF8F4 100%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.stapler-stage.dragging { cursor: grabbing; }
@media (prefers-color-scheme: dark) {
  .stapler-stage {
    background: linear-gradient(150deg, #251B46 0%, #152C4A 55%, #133E45 100%);
  }
}
.stapler-scroll,
.stapler-disc {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.stapler-disc { will-change: transform; }

.staple-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  /* 背景板：纸面质感（抠图后的透明底图片铺在板上展示） */
  background: linear-gradient(155deg, #FBFBF6 0%, #F0F0E9 60%, #E7E7DF 100%);
  border: 1px solid #D6D6CF;
  box-shadow: 0 10px 22px rgba(24, 14, 66, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  .staple-item {
    background: linear-gradient(155deg, #262238 0%, #1C1828 60%, #17131F 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}
.staple-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 抠图主体完整放入背景板，不裁切 */
  padding: 8px;
  filter: drop-shadow(0 3px 6px rgba(24, 14, 66, 0.25)); /* 主体投影，与背景板分离 */
}
.staple-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.staple-item.has-image .staple-num { display: none; } /* 图片就位后隐藏数字 */
.stapler-hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  pointer-events: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 32px); }
  .tilt-wrap { justify-self: stretch; width: 100%; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .skill-cell, .skill-cell.cell-wide { grid-column: span 6; }
}

@media (max-width: 640px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding-bottom: 64px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-cell, .skill-cell.cell-wide { grid-column: span 1; }
  .btn { width: 100%; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .contact-strip { justify-content: center; }
  .hero-sub { max-width: none; }
  .stapler-stage { min-height: 420px; padding: 60px 12px 56px; }
  .staple-item { width: 76px; height: 76px; margin-left: -38px; margin-top: -38px; }
}

/* ==========================================================================
   无障碍：减少动态效果（关闭所有持续动效与鼠标效果）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee-track { animation: none !important; }
  #particles { display: none !important; }
  .stapler-stage { cursor: default; }
  * { transition-duration: 0.01ms !important; }
  .btn:active, .icon-btn:active { transform: none; }
  .skill-cell:hover, .label-plate:hover { transform: none; }
  .plate-glare, .skill-cell::after { opacity: 0 !important; }
}
