/* ============================================================
   杂志画册改版 v50 —— 暖黑/米白/绯红/烫金 · 深浅纸面交替
   封面(米白) → 关于(暖黑) → 作品(绒面桌垫+魔法阵) → 优势(米白) → 经历(暖黑) → 联系(米白)
   ============================================================ */

:root {
  --paper: #f2ede4;
  --paper-hi: #faf6ee;
  --paper-line: rgba(28, 24, 18, 0.14);
  --ink: #1c1812;
  --ink-2: rgba(28, 24, 18, 0.64);
  --ink-3: rgba(28, 24, 18, 0.38);
  --foil: #d3a24a;
  --foil-hi: #f0d9a0;
  --foil-dim: rgba(211, 162, 74, 0.5);
  --red-mag: #e8402a;
  --night: #161310;
}

/* ---------- 纸张颗粒 ---------- */
.paper-noise { position: relative; }
.paper-noise::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: multiply;
}
.paper-night.paper-noise::before { opacity: 0.09; mix-blend-mode: soft-light; }

/* 纸面区块通用 */
.page-paper {
  background: var(--paper);
  color: var(--ink);
}
.page-night {
  background: var(--night);
  color: var(--paper);
}
.page-paper .section-index, .page-paper .section-head p { color: var(--ink-3); }
.page-paper .section-index, .page-paper .section-head { border-top-color: var(--paper-line); }
.page-paper .section-head { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--paper-line); padding-top: 16px; margin-bottom: 70px; }
.page-paper .section-head .section-index { border: 0; padding: 0; margin: 0; }

/* ============================================================
   P0 封面 —— 杂志叠放 + 烫金刊名 + 抽象几何
   ============================================================ */
.mag-cover {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--paper); color: var(--ink);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mag-cover-inner { position: relative; z-index: 3; width: min(92vw, 560px); perspective: 1400px; }

/* 底下的两本杂志（错位叠放，视差漂移） */
.mag-under {
  position: absolute; inset: 0; border-radius: 6px;
  background: var(--paper-hi);
  border: 1px solid rgba(28,24,18,0.10);
  box-shadow: 0 22px 60px rgba(28, 24, 18, 0.14);
  transform: rotate(-4deg) translate(-3.5%, 3%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.mag-under.m2 {
  background: #e7dfd2;
  transform: rotate(3deg) translate(4%, -2.5%);
}
.mag-cover-inner:hover .mag-under.m1 { transform: rotate(-6deg) translate(-5.5%, 4%); }
.mag-cover-inner:hover .mag-under.m2 { transform: rotate(5deg) translate(6%, -4%); }

/* 主刊 */
.mag-main {
  position: relative; aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 1px solid rgba(28,24,18,0.16);
  border-radius: 4px;
  box-shadow: 0 34px 90px rgba(28, 24, 18, 0.22);
  padding: clamp(22px, 4.5vw, 40px);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.mag-cover-inner:hover .mag-main { transform: rotate(-1.1deg) translateY(-6px); }

/* 刊头 */
.mag-masthead { display: flex; justify-content: space-between; align-items: baseline; }
.mag-issue { font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em; color: var(--ink-3); }
.mag-vol { font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em; color: var(--red-mag); }

.mag-title {
  margin-top: clamp(30px, 6vh, 64px);
  font-size: clamp(64px, 15vw, 118px); line-height: 1.02;
  font-weight: 900; letter-spacing: 0.06em;
  background: linear-gradient(115deg, #8a6420 0%, var(--foil) 28%, var(--foil-hi) 46%, var(--foil) 62%, #96702a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: foil-sheen 5.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 235, 0.55)) drop-shadow(0 10px 24px rgba(160, 116, 40, 0.20));
}
@keyframes foil-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.mag-sub {
  margin-top: 14px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.5em; color: var(--ink-2);
}
.mag-sub b { color: var(--red-mag); font-weight: 500; margin: 0 0.4em; }

/* 抽象几何图形（作品封面衍生 · 缓慢漂浮） */
.mag-geo { position: absolute; inset: 0; pointer-events: none; }
.mag-geo i {
  position: absolute; display: block;
  animation: geo-drift var(--dur, 14s) ease-in-out var(--dl, 0s) infinite alternate;
  will-change: transform;
}
@keyframes geo-drift {
  from { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
  to   { transform: translate(var(--dx, 8px), var(--dy, -12px)) rotate(var(--r1, 4deg)); }
}
.mag-geo .g-ring {
  right: 9%; top: 24%; width: 21%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(232, 64, 42, 0.55);
  --dx: 10px; --dy: -16px; --r1: 0deg; --dur: 13s;
}
.mag-geo .g-ring::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(232, 64, 42, 0.35);
}
.mag-geo .g-tri {
  left: 7%; bottom: 21%; width: 0; height: 0;
  border-left: clamp(20px, 6vw, 40px) solid transparent;
  border-right: clamp(20px, 6vw, 40px) solid transparent;
  border-bottom: clamp(34px, 10vw, 68px) solid rgba(211, 162, 74, 0.5);
  --dx: -12px; --dy: 10px; --r1: -9deg; --dur: 16s;
}
.mag-geo .g-bar {
  right: 16%; bottom: 30%; width: 26%; height: 8px;
  background: var(--ink);
  --dx: -14px; --dy: -8px; --r1: 6deg; --r0: -8deg; --dur: 11s;
}
.mag-geo .g-dot {
  left: 14%; top: 33%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red-mag);
  --dx: 14px; --dy: 12px; --dur: 9s;
}
.mag-geo .g-semi {
  left: 4%; top: 12%; width: 15%; aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(115deg, #96702a, var(--foil), var(--foil-hi));
  opacity: 0.6;
  --dx: 8px; --dy: 12px; --r1: 8deg; --dur: 18s;
}
.mag-geo .g-cross {
  right: 34%; top: 55%; width: 18px; height: 18px; opacity: 0.7;
  --dx: -10px; --dy: 14px; --r1: 45deg; --dur: 10s;
}
.mag-geo .g-cross::before, .mag-geo .g-cross::after {
  content: ""; position: absolute; background: var(--ink-2);
}
.mag-geo .g-cross::before { left: 8px; top: 0; width: 2px; height: 18px; }
.mag-geo .g-cross::after { left: 0; top: 8px; width: 18px; height: 2px; }

/* 刊底信息条 */
.mag-foot {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--paper-line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.26em; color: var(--ink-2);
}
.mag-foot .mag-cta {
  font-weight: 700; color: var(--red-mag); display: inline-flex; align-items: center; gap: 8px;
}
.mag-foot .mag-cta i { font-style: normal; animation: cta-nudge 1.8s ease-in-out infinite; }
@keyframes cta-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* 封面外的提示文案 */
.mag-cover-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-family: var(--mono); font-size: 9px; letter-spacing: 0.34em;
  color: var(--ink-3); white-space: nowrap;
}

/* ============================================================
   浅色页面上的既有组件重配色（关于→暖黑；优势/联系→米白）
   ============================================================ */
/* 关于页改暖黑后无需大改；优势页改米白： */
.page-paper .skill span { color: var(--ink); }
.page-paper .skill b { color: var(--red-mag); }
.page-paper .skill i { background: var(--paper-line); }
.page-paper .skill i::after { background: linear-gradient(90deg, #8a6420, var(--foil) 55%, var(--red-mag)); box-shadow: 0 0 12px rgba(211,162,74,0.3); }
.page-paper .soft-label { color: var(--ink-3); }
.page-paper .soft-list b { color: var(--red-mag); }
.page-paper .soft-list.dim { color: var(--ink-2); }
.page-paper .soft-note { color: var(--ink-2); border-top-color: var(--paper-line); }
.page-paper .temperament span { color: var(--ink-2); border-color: var(--paper-line); }
.page-paper .temperament span:hover { color: #96702a; border-color: rgba(211,162,74,0.55); }

/* 经历页改暖黑（继承现有深色样式，仅对齐纸面变量） */
#experience.page-night { background: var(--night); }

/* 联系页改米白 */
#contact.page-paper {
  background: var(--paper);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--ink);
}
#contact.page-paper .kicker { color: var(--red-mag); }
#contact.page-paper .contact-title em.pixel-line {
  background: linear-gradient(100deg, #96702a, var(--foil) 45%, var(--red-mag));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
#contact.page-paper .pixel-cursor { color: #96702a; }
#contact.page-paper .contact-grid { background: var(--paper-line); border-color: var(--paper-line); }
#contact.page-paper .contact-grid a { background: rgba(250, 246, 238, 0.85); }
#contact.page-paper .contact-grid a:hover { background: #fffdf8; }
#contact.page-paper .contact-grid span { color: var(--red-mag); }
#contact.page-paper .contact-grid b { color: var(--ink); }
#contact.page-paper .contact-grid i { color: var(--ink-3); }
#contact.page-paper .contact-grid a:hover i { color: var(--red-mag); }
#contact.page-paper .int-label { color: var(--ink-3); }
#contact.page-paper .int-list span { color: var(--ink-2); }
#contact.page-paper .int-list span:hover { color: var(--ink); }
#contact.page-paper .int-list svg { color: var(--red-mag); }
#contact.page-paper footer { border-top-color: var(--paper-line); color: var(--ink-3); }
#contact.page-paper footer a:hover { color: var(--red-mag); }
#contact.page-paper .contact-line span { background: linear-gradient(90deg, transparent, var(--red-mag), transparent); }

/* ============================================================
   P2 作品 —— 绒面桌垫 + 静态魔法阵（替换森林夜景）
   ============================================================ */
.works-tarot {
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(10, 8, 6, 0.18), rgba(10, 8, 6, 0.55) 100%),
    url("assets/tarot-mat.jpg") center 40% / cover no-repeat,
    #141110;
}
/* 魔法阵：静态 SVG 金线，盖在绒面上、垫在卡牌下 */
.tarot-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(88vmin, 620px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("assets/magic-circle.svg") center / contain no-repeat;
  opacity: 0.6; pointer-events: none;
}
/* 卡牌保持在阵之上 */
.tarot-stage .tarot-card { z-index: 2; }
.tarot-stage .tarot-hint { z-index: 2; }

/* ============================================================
   P3 个人优势 —— Canvas 几何装置（浅色纸面）
   ============================================================ */
.geo-stage-wrap {
  position: relative; margin: 0 auto; max-width: 1200px;
  border: 1px solid var(--paper-line);
  background: var(--paper-hi);
  overflow: hidden;
  clip-path: polygon(0 2%, 4% 0, 11% 1.2%, 18% 0, 27% 1.5%, 36% 0, 46% 1%, 55% 0, 66% 1.4%, 76% 0, 87% 1.2%, 96% 0, 100% 2%, 99% 14%, 100% 28%, 98.8% 41%, 100% 57%, 99% 70%, 100% 84%, 98.8% 98%, 91% 100%, 82% 98.8%, 72% 100%, 61% 98.8%, 50% 100%, 39% 98.8%, 28% 100%, 17% 98.8%, 6% 100%, 0 98%, 1.2% 84%, 0 70%, 1% 56%, 0 42%, 1% 28%);
}
#geoStage { display: block; width: 100%; height: 560px; cursor: grab; touch-action: none; }
#geoStage.grabbing { cursor: grabbing; }
.geo-legend {
  position: absolute; left: 18px; bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--ink-3);
  pointer-events: none;
}
.geo-legend b { font-weight: 500; color: var(--ink-2); }
.geo-hint {
  position: absolute; right: 18px; bottom: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--ink-3);
  pointer-events: none;
}

/* ============================================================
   P4 工作经历 —— Canvas 节点连线网（深色纸面）
   ============================================================ */
.net-stage-wrap {
  position: relative; margin: 0 auto; max-width: 1200px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #1c1814, var(--night) 70%);
  clip-path: polygon(0 2%, 5% 0, 14% 1.2%, 23% 0, 34% 1.4%, 45% 0, 56% 1%, 67% 0, 78% 1.4%, 89% 0, 97% 1%, 100% 2%, 99% 17%, 100% 31%, 98.8% 46%, 100% 60%, 99% 75%, 100% 98%, 91% 100%, 81% 98.8%, 70% 100%, 59% 98.8%, 48% 100%, 37% 98.8%, 26% 100%, 15% 98.8%, 4% 100%, 0 98%, 1% 82%, 0 68%, 1.2% 53%, 0 38%, 1% 23%);
}
#netStage { display: block; width: 100%; height: 600px; cursor: grab; touch-action: none; }
#netStage.grabbing { cursor: grabbing; }
/* 工作经历详情对话框 */
.exp-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.exp-modal.is-open { display: block; }
body.exp-modal-open { overflow: hidden; }
.exp-modal-mask {
  position: absolute; inset: 0;
  background: rgba(14, 11, 8, 0.66); backdrop-filter: blur(5px);
  animation: exp-fade 0.25s ease;
}
.exp-modal-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px));
  max-height: min(78vh, 640px); overflow-y: auto;
  background: linear-gradient(170deg, #1f1a15, #17130f 70%);
  color: var(--paper);
  border: 1px solid rgba(211, 162, 74, 0.55);
  padding: 32px 34px 26px;
  clip-path: polygon(0 1%, 8% 0, 17% 1.4%, 27% 0, 38% 1%, 51% 0, 64% 1.2%, 76% 0, 88% 1.4%, 100% 0, 99% 14%, 100% 29%, 98.8% 45%, 100% 61%, 99% 77%, 100% 99%, 90% 100%, 79% 98.8%, 67% 100%, 55% 98.8%, 43% 100%, 31% 98.8%, 19% 100%, 7% 98.8%, 0 100%, 1% 83%, 0 66%, 1.2% 49%, 0 32%, 1% 16%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: exp-pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes exp-fade { from { opacity: 0; } }
@keyframes exp-pop { from { opacity: 0; transform: translate(-50%, -47%) scale(0.96); } }
.exp-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--faint);
  font-size: 22px; line-height: 1; cursor: pointer; transition: color 0.25s;
}
.exp-modal-close:hover { color: var(--foil); }
.exp-modal-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--foil);
}
.exp-modal-company {
  margin: 10px 0 4px; font-size: 21px; font-weight: 800;
  color: var(--paper); letter-spacing: 0.02em;
}
.exp-modal-role {
  margin: 0 0 18px; font-size: 12.5px; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px dashed rgba(211, 162, 74, 0.3);
}
.exp-modal-list { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: exp; }
.exp-modal-list li {
  counter-increment: exp; position: relative;
  padding: 7px 0 7px 34px; font-size: 13px; line-height: 1.85; color: rgba(242, 237, 228, 0.85);
}
.exp-modal-list li::before {
  content: counter(exp, decimal-leading-zero);
  position: absolute; left: 0; top: 9px;
  font-family: var(--mono); font-size: 10px; color: var(--foil); letter-spacing: 0.05em;
}
.exp-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-modal-tags span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  color: var(--foil); border: 1px solid rgba(211, 162, 74, 0.4);
  border-radius: 999px; padding: 5px 12px;
}

/* ============================================================
   P1 关于 —— 撕拉条（封住宣言第一句）
   ============================================================ */
.tear-strip {
  position: relative; display: block;
  margin: 0 0 26px; padding: 0;
  background: var(--foil); color: var(--night);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  line-height: 1; padding: 12px 18px;
  border: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  width: min(100%, 460px); text-align: left;
  transition: background 0.3s;
  /* 锯齿下缘 */
  clip-path: polygon(0 0, 100% 0, 100% 72%, 97% 100%, 93% 74%, 89% 100%, 85% 74%, 81% 100%, 77% 74%, 73% 100%, 69% 74%, 65% 100%, 61% 74%, 57% 100%, 53% 74%, 49% 100%, 45% 74%, 41% 100%, 37% 74%, 33% 100%, 29% 74%, 25% 100%, 21% 74%, 17% 100%, 13% 74%, 9% 100%, 5% 74%, 0 100%);
  clip-path: none; /* 默认不裁切，JS 开启后加 .is-armed 再裁切 */
}
.tear-strip.is-armed {
  clip-path: polygon(0 0, 100% 0, 100% 72%, 97% 100%, 93% 74%, 89% 100%, 85% 74%, 81% 100%, 77% 74%, 73% 100%, 69% 74%, 65% 100%, 61% 74%, 57% 100%, 53% 74%, 49% 100%, 45% 74%, 41% 100%, 37% 74%, 33% 100%, 29% 74%, 25% 100%, 21% 74%, 17% 100%, 13% 74%, 9% 100%, 5% 74%, 0 100%);
}
.tear-strip:hover { background: var(--foil-hi); }
.tear-strip .ts-label { position: relative; z-index: 2; }
.tear-strip .ts-arrow { float: right; animation: cta-nudge 1.6s ease-in-out infinite; }
.tear-strip.is-torn {
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.5, 0, 0.84, 0.4), opacity 0.5s;
  transform: translateY(-14px) rotate(-2.5deg) translateX(-6%);
  opacity: 0;
}
/* 被遮住的宣言：撕掉前先压暗模糊 */
.tear-veiled {
  filter: blur(6px) brightness(0.55);
  transition: filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.tear-veiled.is-revealed { filter: none; }

/* ============================================================
   页角折页提示（每个纸面区块右下）
   ============================================================ */
.page-fold {
  position: absolute; right: 0; bottom: 0; z-index: 4;
  width: 0; height: 0; pointer-events: none;
  border-style: solid;
  border-width: 0 0 34px 34px;
  border-color: transparent transparent rgba(28, 24, 18, 0.08) transparent;
  transition: border-width 0.35s ease;
}
.page-night .page-fold { border-color: transparent transparent rgba(242, 237, 228, 0.06) transparent; }
section:hover .page-fold { border-width: 0 0 52px 52px; }

/* ============================================================
   P0 封面 —— 复古拼贴少年半身像（静态人物）
   ============================================================ */
.mag-cover-inner {
  position: relative; z-index: 3;
  display: block;
  width: min(92vw, 1100px);
  height: 100vh; height: 100svh;
}
.boy-collage-stage {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.boy-head-spin {
  position: absolute;
  bottom: 0; left: 50%;
  height: min(86vh, 780px);
  aspect-ratio: 961 / 1058;
  translate: -50% 0;
  filter: drop-shadow(0 24px 50px rgba(28, 24, 18, 0.3));
}
.boy-under, .boy-full {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
.boy-under { z-index: 0; }
.boy-full { z-index: 1; }

/* 拼贴元素层：铺满首屏，扇形环绕头部，元素在人物前方遮挡 */
.cover-collage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.col-item {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  height: auto;
  object-fit: contain;
  transform: rotate(var(--r));
  filter: drop-shadow(3px 6px 8px rgba(28, 24, 18, 0.35));
  will-change: transform;
  pointer-events: none;
}



.boy-info {
  position: absolute; right: 0; bottom: 12%;
  max-width: 300px;
  z-index: 4;
}
.boy-info, .boy-info * { overflow: visible; }
.boy-info .mag-masthead { margin-bottom: 12px; }
.boy-info .mag-title { margin-top: 8px; font-size: clamp(52px, 10vw, 96px); }
.boy-info .mag-sub { margin-top: 10px; letter-spacing: 0.24em; line-height: 1.8; white-space: normal; }
.boy-info .mag-foot { margin-top: 28px; }
.mag-cover-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }

/* 拼贴撕纸边框：所有内容板块 */
.torn-border {
  position: relative;
  clip-path: polygon(
    0% 2%, 3% 0%, 8% 1%, 15% 0%, 22% 2%, 30% 0%, 38% 1%, 45% 0%, 52% 2%, 60% 0%, 68% 1%, 75% 0%, 82% 2%, 90% 0%, 97% 1%, 100% 0%,
    100% 98%, 97% 100%, 92% 99%, 85% 100%, 78% 98%, 70% 100%, 62% 99%, 55% 100%, 48% 98%, 40% 100%, 32% 99%, 25% 100%, 18% 98%, 10% 100%, 3% 99%, 0% 100%
  );
}
.torn-border::before {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  background: inherit;
  clip-path: polygon(
    0% 2%, 3% 0%, 8% 1%, 15% 0%, 22% 2%, 30% 0%, 38% 1%, 45% 0%, 52% 2%, 60% 0%, 68% 1%, 75% 0%, 82% 2%, 90% 0%, 97% 1%, 100% 0%,
    100% 98%, 97% 100%, 92% 99%, 85% 100%, 78% 98%, 70% 100%, 62% 99%, 55% 100%, 48% 98%, 40% 100%, 32% 99%, 25% 100%, 18% 98%, 10% 100%, 3% 99%, 0% 100%
  );
  filter: brightness(0.85) saturate(1.1);
}

/* 各板块应用撕纸边框 */
.geo-stage-wrap, .net-stage-wrap, .tarot-stage, .works-grid, .contact-content, .manifesto-copy {
  clip-path: polygon(
    0% 2%, 3% 0%, 8% 1%, 15% 0%, 22% 2%, 30% 0%, 38% 1%, 45% 0%, 52% 2%, 60% 0%, 68% 1%, 75% 0%, 82% 2%, 90% 0%, 97% 1%, 100% 0%,
    100% 98%, 97% 100%, 92% 99%, 85% 100%, 78% 98%, 70% 100%, 62% 99%, 55% 100%, 48% 98%, 40% 100%, 32% 99%, 25% 100%, 18% 98%, 10% 100%, 3% 99%, 0% 100%
  );
}

@media (max-width: 900px) {
  .boy-info {
    top: 12%; right: 0; left: 0;
    transform: none;
    margin: 0 auto;
    text-align: center;
  }
  .boy-info .mag-foot { justify-content: center; }
  .boy-head-spin {
    height: min(56vh, 520px);
  }
  .cover-stamp { display: none; }
}
body.magazine-v2 { background: #461510; }
body.magazine-v2::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 130% 90% at 50% -10%, rgba(172, 54, 31, 0.52), transparent 62%),
    radial-gradient(ellipse 120% 100% at 50% 115%, rgba(20, 6, 4, 0.55), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.055) 0 2px, transparent 2px 7px),
    radial-gradient(circle, rgba(242, 237, 228, 0.055) 1.2px, transparent 1.7px);
  background-size: auto, auto, auto, 15px 15px;
}
body.magazine-v2::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07; mix-blend-mode: overlay;
}
body.magazine-v2 main { position: relative; z-index: 1; }

/* ---------- 撕纸接缝：上一页撕边垂下 + 下一页撕边掀起，中间露出桌面 ---------- */
.torn-seam {
  position: relative; height: 46px; z-index: 6; pointer-events: none;
  margin: -1px 0; /* 吸住相邻纸片，防止背景色从直边漏出 */
}
.torn-seam::before { /* 上一页纸的撕边（直上边贴合上页，锯齿垂下） */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background: var(--up, #161310);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 95.5% 56%, 90.9% 22%, 86.4% 38%, 81.8% 33%, 77.3% 15%, 72.7% 22%, 68.2% 67%, 63.6% 83%, 59.1% 40%, 54.5% 82%, 50.0% 23%, 45.5% 45%, 40.9% 17%, 36.4% 77%, 31.8% 57%, 27.3% 62%, 22.7% 90%, 18.2% 95%, 13.6% 33%, 9.1% 69%, 4.5% 17%, 0 52%);
}
.torn-seam::after { /* 下一页纸的撕边（锯齿掀起，直下边贴合下页） */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: var(--down, #f2ede4);
  clip-path: polygon(0 48%, 4.5% 24%, 9.1% 21%, 13.6% 31%, 18.2% 29%, 22.7% 84%, 27.3% 18%, 31.8% 31%, 36.4% 57%, 40.9% 22%, 45.5% 16%, 50.0% 86%, 54.5% 38%, 59.1% 18%, 63.6% 90%, 68.2% 82%, 72.7% 21%, 77.3% 26%, 81.8% 34%, 86.4% 65%, 90.9% 59%, 95.5% 84%, 100% 57%, 100% 100%, 0 100%);
}

/* ---------- 格纹条（封面底 + 联系页底，漫画格纹框） ---------- */
.checker-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 4;
  background: repeating-conic-gradient(var(--red-mag) 0% 25%, var(--paper) 0% 50%, var(--night) 0% 75%, var(--paper) 0% 100%);
  background-size: 28px 28px;
  border-top: 1px solid rgba(28, 24, 18, 0.25);
}
#contact { padding-bottom: 40px; }



/* ---------- 圆形邮戳印章 ---------- */
.stamp {
  position: absolute; z-index: 7; pointer-events: none;
  width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid rgba(232, 64, 42, 0.72);
  color: rgba(232, 64, 42, 0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transform: rotate(-13deg);
  mix-blend-mode: multiply;
}
.stamp::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px dashed rgba(232, 64, 42, 0.55);
}
.stamp b { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
.stamp i { font-style: normal; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.18em; }
.cover-stamp { right: 3%; top: 14%; }
.contact-stamp {
  right: 7%; bottom: 15%;
  border-color: rgba(28, 24, 18, 0.5); color: rgba(28, 24, 18, 0.62);
}
.contact-stamp::before { border-color: rgba(28, 24, 18, 0.4); }

/* Small UI frames share the page's irregular paper edge. */
.contact-grid, .tear-strip, .skill, .software, .work-card, .exp-modal-tags span {
  clip-path: polygon(0 3%, 12% 0, 24% 2%, 36% 0, 50% 2%, 64% 0, 78% 2%, 90% 0, 100% 3%, 98% 20%, 100% 38%, 98% 58%, 100% 78%, 98% 100%, 83% 98%, 68% 100%, 52% 98%, 36% 100%, 20% 98%, 0 100%, 2% 79%, 0 59%, 2% 39%, 0 20%);
}

/* 折页角让位于撕纸接缝 */
.magazine-v2 .page-fold { display: none; }

@media (max-width: 720px) {
  .torn-seam { height: 26px; }
  .torn-seam::before, .torn-seam::after { height: 15px; }
  .cover-stamp { display: none; }
  .contact-stamp { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 40px; }
  .section-head p { max-width: 100%; line-height: 1.6; letter-spacing: 0.14em; white-space: normal; }
}
@media (max-width: 720px) {
  .mag-cover-inner { width: min(90vw, 460px); }
  .boy-head-spin { height: min(55vh, 480px); }
  .col-item { width: calc(var(--w) * 0.48); }
  .col-item:nth-of-type(1) { left: -1%; top: 40%; }
  .col-item:nth-of-type(2) { left: 0%; top: 25%; }
  .col-item:nth-of-type(3) { left: 30%; top: 15%; }
  .col-item:nth-of-type(4) { left: -4%; top: 60%; }
  .col-item:nth-of-type(5) { left: 15%; top: 39%; }
  .col-item:nth-of-type(6) { left: 31%; top: 56%; }
  .col-item:nth-of-type(7) { left: 51%; top: 43%; }
  .col-item:nth-of-type(8) { left: 6%; top: 72%; }
  .col-item:nth-of-type(9) { left: 43%; top: 18%; }
  .col-item:nth-of-type(10) { left: 69%; top: 59%; }
  .col-item:nth-of-type(11) { left: 61%; top: 25%; }
  #geoStage { height: 440px; }
  #netStage { height: 460px; }
  .exp-modal-card { padding: 26px 22px 22px; }
  .exp-modal-company { font-size: 18px; }
  .mag-foot { flex-wrap: wrap; gap: 6px; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .mag-title { animation: none; }
  .mag-geo i, .mag-foot .mag-cta i, .tear-strip .ts-arrow { animation: none; }
}

