/* ============================================
   LASUISUI 怪谈 — Reusable Components v2.0
   撕裂边纸卡 · 厚纸堆叠 · 印章按钮 · 档案标签
   ============================================ */

/* ============================================
   撕裂边纸卡（核心组件）
   ============================================ */
.torn-card {
  position: relative;
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 32px 28px;
  margin: 24px 0;
  border: 2px solid var(--c-ink);
  box-shadow: 6px 8px 0 rgba(42, 24, 16, 0.4);
  clip-path: polygon(
    0% 3%, 2% 1%, 5% 4%, 8% 0%, 11% 3%, 14% 1%, 17% 4%, 20% 0%,
    23% 3%, 26% 1%, 29% 4%, 32% 0%, 35% 3%, 38% 1%, 41% 4%, 44% 0%,
    47% 3%, 50% 1%, 53% 4%, 56% 0%, 59% 3%, 62% 1%, 65% 4%, 68% 0%,
    71% 3%, 74% 1%, 77% 4%, 80% 0%, 83% 3%, 86% 1%, 89% 4%, 92% 0%,
    95% 3%, 97% 1%, 100% 4%, 100% 100%, 0% 100%
  );
}
.torn-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.3;
}
.torn-card::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1.5px dashed rgba(42, 24, 16, 0.2);
}

/* 不撕裂的平整纸卡（用于嵌入式） */
.paper-card {
  position: relative;
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 28px 24px;
  margin: 20px 0;
  border: 2px solid var(--c-ink);
  box-shadow: 4px 6px 0 rgba(42, 24, 16, 0.3);
}
.paper-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.28;
}

/* 厚纸堆叠卡（多张纸旋转堆叠） */
.paper-stack {
  position: relative;
  display: inline-block;
}
.paper-stack > .stack-layer {
  position: absolute; inset: 0;
  border: 2px solid var(--c-ink);
  background: var(--c-paper-aged);
  box-shadow: 4px 6px 0 rgba(42, 24, 16, 0.4);
  z-index: 0;
}
.paper-stack > .stack-layer:nth-child(1) {
  transform: rotate(-3deg) translate(-8px, 6px);
  background: var(--c-paper-dark);
  opacity: 0.8;
}
.paper-stack > .stack-layer:nth-child(2) {
  transform: rotate(2deg) translate(4px, -3px);
  background: var(--c-paper-warm);
  opacity: 0.9;
}

/* ============================================
   印章按钮（核心组件）— 民俗戳记风格
   ============================================ */
.btn-stamp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-hand);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.2em;
  border: 2.5px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: var(--shadow-stamp);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  text-align: center;
}
.btn-stamp:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 var(--c-ink); }
.btn-stamp:active { transform: translateY(3px); box-shadow: 1px 2px 0 var(--c-ink); }

/* 纸标签按钮（更轻量） */
.btn-paper {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-hand);
  font-size: 15px;
  letter-spacing: 0.15em;
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(42, 24, 16, 0.3);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, background 0.2s;
  text-align: center;
}
.btn-paper:hover { background: var(--c-paper-warm); transform: translateY(-1px); }
.btn-paper:active { transform: translateY(2px); box-shadow: 1px 2px 0 rgba(42, 24, 16, 0.3); }

/* 禁用按钮（地图占位） */
.btn-disabled {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: rgba(180, 160, 120, 0.4);
  color: var(--c-ink-faint);
  font-family: var(--font-hand);
  font-size: 15px;
  letter-spacing: 0.15em;
  border: 2px dashed var(--c-ink-faint);
  border-radius: 2px;
  cursor: not-allowed;
  text-align: center;
  opacity: 0.6;
}

/* 全宽按钮 */
.btn-full {
  display: block; width: 100%;
  padding: 18px 24px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-hand);
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.2em;
  border: 2.5px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: var(--shadow-stamp);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-full:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 var(--c-ink); }
.btn-full:active { transform: translateY(3px); box-shadow: 1px 2px 0 var(--c-ink); }
.btn-full-dark {
  display: block; width: 100%;
  padding: 18px 24px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--font-hand);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.2em;
  border: 2.5px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: var(--shadow-stamp);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-full-dark:hover { transform: translateY(-2px); box-shadow: 5px 7px 0 var(--c-ink); }
.btn-full-dark:active { transform: translateY(3px); box-shadow: 1px 2px 0 var(--c-ink); }

/* 邮戳纸标签（小标签） */
.btn-tag {
  display: inline-block; padding: 5px 14px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-hand);
  font-size: 11px; letter-spacing: 0.2em;
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 2px 0 rgba(42, 24, 16, 0.3);
  text-decoration: none; cursor: pointer;
}
.btn-tag:hover { background: var(--c-paper-warm); transform: translateY(-1px); }

/* 撕下的纸片（不规则形状） */
.paper-sliver {
  position: relative;
  display: inline-block;
  padding: 6px 18px 6px 12px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-hand);
  font-size: 12px;
  letter-spacing: 0.15em;
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 3px 0 rgba(42, 24, 16, 0.3);
  clip-path: polygon(0% 0%, 95% 0%, 100% 30%, 95% 70%, 100% 100%, 5% 100%, 0% 60%);
}
.paper-sliver::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--c-gold);
}

/* ============================================
   印章圆标（蜡封/邮戳）
   ============================================ */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border: 2.5px solid var(--c-seal-red); color: var(--c-seal-red);
  font-family: var(--font-hand); font-size: 13px; font-weight: 700;
  transform: rotate(-12deg); text-align: center; line-height: 1.15;
  letter-spacing: 0.05em;
  background: rgba(160, 48, 32, 0.05);
  position: relative; flex-shrink: 0;
}
.seal::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid var(--c-seal-red);
}
.seal-big { width: 90px; height: 90px; font-size: 14px; }

/* ============================================
   档案标签 / 章节小标
   ============================================ */
.archive-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(201, 160, 64, 0.12);
  color: var(--c-gold-light);
  font-family: var(--font-hand);
  font-size: 11px; letter-spacing: 0.25em;
  border: 1px solid var(--c-gold-dim);
  border-radius: 2px;
}

.archive-label {
  font-family: var(--font-sans);
  font-size: 10px; color: var(--c-gold);
  letter-spacing: 0.4em; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.archive-label--paper { color: var(--c-ink-faint); }
.archive-label--light { color: var(--c-paper-warm); opacity: 0.7; }

/* 章节小标（民俗手册风） */
.chapter-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px; color: var(--c-ink-faint);
  letter-spacing: 0.4em; text-transform: uppercase;
  margin-bottom: 12px;
}
.chapter-tag::before, .chapter-tag::after {
  content: ''; display: inline-block; width: 18px; height: 1px;
  background: var(--c-ink-faint); opacity: 0.5;
}

/* ============================================
   分割线
   ============================================ */
.divider {
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--c-ink) 20%, var(--c-gold) 50%, var(--c-ink) 80%, transparent 100%);
  margin: 20px 0; opacity: 0.3;
}
.divider-dash {
  width: 100%; height: 1px;
  border-top: 1.5px dashed rgba(42, 24, 16, 0.3);
  margin: 16px 0;
}
.divider-gold {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c-gold) 50%, transparent 100%);
  margin: 16px 0; opacity: 0.4;
}

/* ============================================
   印章印记 / 邮戳
   ============================================ */
.ink-stamp {
  display: inline-block;
  font-family: var(--font-hand);
  color: var(--c-seal-red);
  letter-spacing: 0.3em;
  font-size: 10px; text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--c-seal-red);
  position: relative;
  background: rgba(160, 48, 32, 0.04);
}

/* ============================================
   水书符号
   ============================================ */
.water-symbol {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201, 160, 64, 0.08);
  color: var(--c-gold);
  font-family: var(--font-hand);
  font-size: 16px;
  letter-spacing: 0.2em;
  border: 1px solid var(--c-gold-dim);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================
   装饰角花
   ============================================ */
.corner-orn {
  position: absolute; width: 60px; height: 60px;
  border: 1px solid var(--c-gold-dim);
  opacity: 0.4; pointer-events: none;
}
.corner-orn::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid var(--c-gold-dim); opacity: 0.6;
}
.corner-orn.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.corner-orn.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.corner-orn.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.corner-orn.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

/* 卡片内角花 */
.card-corner {
  position: absolute; width: 18px; height: 18px;
  border: 1.5px solid var(--c-gold);
  opacity: 0.6; pointer-events: none;
}
.card-corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.card-corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.card-corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; }

/* ============================================
   答题卡（收集式）
   ============================================ */
.option-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--c-paper);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(42, 24, 16, 0.4);
  cursor: pointer; margin-bottom: 14px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.15s;
  position: relative;
  min-height: 60px;
}
.option-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.25;
  clip-path: polygon(0% 2%, 3% 0%, 6% 2%, 9% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.option-card:active { transform: translateY(2px); box-shadow: 1px 2px 0 rgba(42, 24, 16, 0.4); }
.option-card.selected {
  background: var(--c-gold);
  color: var(--c-ink);
  box-shadow: 5px 7px 0 var(--c-ink);
  transform: translateY(-3px);
  border-color: var(--c-ink);
}
.option-card .opt-letter {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border: 2px solid var(--c-ink); border-radius: 50%;
  font-family: var(--font-hand); font-size: 17px; font-weight: 700;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  margin-top: 2px;
}
.option-card.selected .opt-letter { background: var(--c-ink); color: var(--c-gold); }
.option-card .opt-text {
  font-size: 15px; line-height: 1.7; letter-spacing: 0.05em;
  flex: 1; padding-top: 5px;
}

/* ============================================
   进度点
   ============================================ */
.progress-bar { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.progress-dot {
  width: 10px; height: 10px;
  border: 1.5px solid var(--c-gold-dim);
  transform: rotate(45deg);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.progress-dot.done { background: var(--c-gold-dim); }
.progress-dot.active {
  background: var(--c-gold);
  box-shadow: 0 0 8px var(--c-gold);
}

/* ============================================
   故事卡 / 任务卡
   ============================================ */
.mission-card {
  background: var(--c-ink);
  color: var(--c-paper-warm);
  padding: 26px 22px;
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.4);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.2;
}
.mission-card .mc-tag {
  display: inline-block;
  font-size: 9px; color: #8baa6a;
  letter-spacing: 0.4em;
  padding: 3px 12px;
  border: 1px solid rgba(139, 170, 106, 0.4);
  background: rgba(139, 170, 106, 0.1);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.mission-card .mc-title { font-size: 22px; font-weight: 700; color: var(--c-paper); letter-spacing: 0.12em; margin-bottom: 8px; position: relative; z-index: 1; }
.mission-card .mc-desc { font-size: 13px; color: rgba(241,235,217,0.85); line-height: 1.85; letter-spacing: 0.05em; position: relative; z-index: 1; }
.mission-card .mc-tip { margin-top: 12px; font-size: 11px; color: #8baa6a; line-height: 1.7; padding-top: 10px; border-top: 1px dashed rgba(139,170,106,0.3); position: relative; z-index: 1; }

/* ============================================
   故事卡（手作手帐）
   ============================================ */
.story-card {
  display: block;
  position: relative;
  background: var(--c-paper);
  padding: 24px 22px;
  border: 2px solid var(--c-ink);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  text-decoration: none; color: var(--c-ink);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.story-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.3;
  clip-path: polygon(0% 2%, 3% 0%, 6% 2%, 9% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.story-card:hover { transform: translateY(-3px) rotate(-0.3deg); box-shadow: 5px 7px 0 rgba(42, 24, 16, 0.4); }
.story-card .sc-cat { font-family: var(--font-sans); font-size: 10px; color: var(--c-gold-dim); letter-spacing: 0.3em; margin-bottom: 8px; text-transform: uppercase; }
.story-card .sc-title { font-family: var(--font-hand); font-size: 20px; color: var(--c-ink); letter-spacing: 0.1em; margin-bottom: 10px; line-height: 1.3; }
.story-card .sc-text { font-family: var(--font-serif); font-size: 13px; color: var(--c-ink-light); line-height: 1.85; letter-spacing: 0.05em; font-style: italic; }

/* ============================================
   警示红字
   ============================================ */
.alert-red {
  background: rgba(160, 48, 32, 0.08);
  border: 2px solid var(--c-seal-red);
  border-radius: 2px;
  padding: 14px 16px;
  margin: 16px 0;
  box-shadow: 3px 4px 0 rgba(160, 48, 32, 0.18);
}
.alert-red .ar-title { font-family: var(--font-hand); font-size: 13px; color: var(--c-seal-red); font-weight: 700; letter-spacing: 0.2em; margin-bottom: 4px; }
.alert-red .ar-text { font-size: 13px; color: var(--c-seal-red); letter-spacing: 0.05em; line-height: 1.8; }

/* ============================================
   二维码框
   ============================================ */
.qr-frame {
  width: 200px; height: 200px; margin: 16px auto;
  border: 3px solid var(--c-ink);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 5px 5px 0 rgba(42, 24, 16, 0.4);
  position: relative;
}
.qr-frame::before, .qr-frame::after {
  content: ''; position: absolute;
  width: 22px; height: 22px;
  background: var(--c-paper);
  border: 3px solid var(--c-ink);
}
.qr-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.qr-frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.qr-frame canvas { display: block; }

/* ============================================
   身份作品集展示（结果页）
   ============================================ */
.identity-portrait {
  position: relative;
  width: 100%; max-width: 420px; aspect-ratio: 3/4;
  margin: 0 auto;
  border: 2.5px solid var(--c-ink);
  background: var(--c-paper);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.identity-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.identity-portrait::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,10,5,0.7) 100%);
  pointer-events: none;
}
.identity-portrait .ip-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.identity-portrait .ip-card {
  background: var(--c-paper);
  padding: 16px 18px;
  border: 2px solid var(--c-ink);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
  position: relative;
}
.identity-portrait .ip-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.25; pointer-events: none;
}
.identity-portrait .ip-no { font-family: var(--font-sans); font-size: 9px; color: var(--c-ink-faint); letter-spacing: 0.4em; margin-bottom: 4px; position: relative; z-index: 1; }
.identity-portrait .ip-name { font-family: var(--font-hand); font-size: 28px; font-weight: 700; color: var(--c-ink); letter-spacing: 0.15em; position: relative; z-index: 1; }
.identity-portrait .ip-en { font-family: var(--font-sans); font-size: 9px; color: var(--c-ink-faint); letter-spacing: 0.3em; margin: 2px 0 4px; position: relative; z-index: 1; }
.identity-portrait .ip-kw { font-family: var(--font-hand); font-size: 11px; color: var(--c-gold-dim); letter-spacing: 0.2em; font-weight: 600; position: relative; z-index: 1; }

/* ============================================
   档案 · 故事卡（同 story-card 也用此）
   ============================================ */

/* ============================================
   表单控件
   ============================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.cell-select {
  background: var(--c-paper);
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  padding: 14px 8px;
  text-align: center;
  font-family: var(--font-hand); font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 3px 4px 0 rgba(42, 24, 16, 0.3);
}
.cell-select:hover { background: var(--c-paper-warm); transform: translateY(-1px); }
.cell-select.selected {
  background: var(--c-gold);
  border-color: var(--c-ink);
  box-shadow: 4px 5px 0 var(--c-ink);
  transform: translateY(-2px);
}
.cell-select .cs-main { font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.cell-select .cs-sub { font-size: 10px; letter-spacing: 0.1em; color: var(--c-ink-faint); display: block; }
.cell-select.selected .cs-sub { color: var(--c-ink); }

textarea {
  width: 100%; min-height: 160px;
  background: rgba(241, 235, 217, 0.85);
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  padding: 16px;
  font-family: var(--font-serif);
  font-size: 14px; color: var(--c-ink);
  letter-spacing: 0.05em; line-height: 1.85;
  resize: vertical;
  box-shadow: inset 0 2px 6px rgba(42, 24, 16, 0.15);
}
textarea:focus { outline: none; border-color: var(--c-gold-dim); background: var(--c-paper); }
textarea::placeholder { color: var(--c-ink-faint); opacity: 0.6; font-style: italic; }

input[type="text"] {
  width: 100%;
  background: rgba(241, 235, 217, 0.85);
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 14px; color: var(--c-ink);
  letter-spacing: 0.05em;
  box-shadow: inset 0 2px 6px rgba(42, 24, 16, 0.15);
}
input[type="text"]:focus { outline: none; border-color: var(--c-gold-dim); background: var(--c-paper); }

/* 文件上传区 */
.file-area {
  position: relative;
  border: 2.5px dashed var(--c-ink);
  background: rgba(241, 235, 217, 0.4);
  border-radius: 2px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: inset 0 0 0 4px var(--c-paper), 0 0 0 2px var(--c-ink);
}
.file-area:hover { border-color: var(--c-gold-dim); background: rgba(201, 160, 64, 0.08); }
.file-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-area .fa-icon { font-size: 36px; margin-bottom: 8px; display: block; }
.file-area .fa-text { font-family: var(--font-hand); font-size: 14px; color: var(--c-ink); letter-spacing: 0.15em; }
.file-area .fa-hint { font-family: var(--font-sans); font-size: 11px; color: var(--c-ink-faint); margin-top: 4px; letter-spacing: 0.1em; }

/* ============================================
   揭示动画
   ============================================ */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.anim-in { animation: fadeInUp 0.6s ease-out both; }
.anim-in:nth-child(1) { animation-delay: 0.1s; }
.anim-in:nth-child(2) { animation-delay: 0.2s; }
.anim-in:nth-child(3) { animation-delay: 0.3s; }
.anim-in:nth-child(4) { animation-delay: 0.4s; }
.anim-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes sealStamp {
  0% { transform: scale(1.5) rotate(-20deg); opacity: 0; }
  60% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.seal-anim { animation: sealStamp 0.6s ease-out; }

/* ============================================
   纸屑重组动画（loading 专用）
   ============================================ */
.loading-frags { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.frag {
  width: 32px; height: 44px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-ink);
  border-radius: 2px;
  box-shadow: 2px 3px 0 rgba(42, 24, 16, 0.3);
  animation: frag-assemble 1.4s ease-in-out infinite;
}
.frag:nth-child(1) { animation-delay: 0s; }
.frag:nth-child(2) { animation-delay: 0.1s; }
.frag:nth-child(3) { animation-delay: 0.2s; }
.frag:nth-child(4) { animation-delay: 0.3s; }
.frag:nth-child(5) { animation-delay: 0.4s; }
.frag:nth-child(6) { animation-delay: 0.5s; }
.frag:nth-child(7) { animation-delay: 0.6s; }
.frag:nth-child(8) { animation-delay: 0.7s; }
@keyframes frag-assemble {
  0% { transform: translateY(30px) rotate(-10deg); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translateY(-8px) rotate(3deg); }
  85% { transform: translateY(3px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

/* 底部留白 */
.bottom-pad { height: 80px; }
