  :root {
    --paper: #e8dcc4;
    --paper-dark: #d4c09b;
    --paper-light: #f5ecd9;
    --ink: #2c241b;
    --ink-soft: #5a4f40;
    --accent: #b9282a;
    --accent-deep: #7d1718;
    --blue: #2a4b7c;
    --green: #3c6b4a;
    --gray-line: #b0a38b;
    --gold: #c48b36;
    --kraft: #cca97e;
    --kraft-dark: #b89266;
    --shadow-ink: 4px 4px 0 var(--ink);
    --shadow-soft: 6px 6px 0 rgba(0,0,0,0.12);
    --main-font: "STKaiti", "Kaiti SC", "Kaiti", "Songti SC", "STSongti-SC-Regular", "SimSun", serif;
    --song-font: "STSongti-SC-Regular", "Songti SC", "SimSun", serif;
    --mono-font: "Courier New", "Consolas", monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    min-height: 100%;
    color: var(--ink);
    background-color: #261f18;
    background-image: radial-gradient(circle at 78% 16%, #4a3826 0%, #1a140f 62%);
    font-family: var(--main-font);
    -webkit-font-smoothing: antialiased;
  }
  body { min-height: 100vh; padding: 28px 12px 48px; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
  button, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  strong { font-weight: 900; color: var(--accent); }

  .stage {
    width: min(100%, 760px);
    margin: 0 auto;
    background-color: var(--paper);
    background-image:
      linear-gradient(135deg, rgba(255,210,120,0.15) 0%, transparent 42%, rgba(30,20,10,0.08) 100%),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"),
      repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(44,36,27,0.05) 31px, rgba(44,36,27,0.05) 32px);
    border: 2px solid var(--ink);
    box-shadow: 14px 14px 0 rgba(0,0,0,0.52);
    padding: 24px 44px 54px;
    position: relative;
    overflow: clip;
  }

  /* ============ 档案袋 ============ */
  .cover {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
  }
  .folder-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 700px;
    margin: 0 auto;
    perspective: 1200px;
    filter: drop-shadow(10px 10px 0 rgba(0,0,0,0.34));
  }
  .folder-back {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background: var(--kraft-dark);
    border: 3px solid var(--ink);
    border-radius: 4px;
    box-shadow: inset 0 20px 42px rgba(0,0,0,0.34);
  }
  .paper-content {
    position: absolute;
    top: 14px;
    bottom: 12px;
    left: 16px;
    right: 16px;
    z-index: 2;
    background: var(--paper-light);
    border: 2px solid var(--ink);
    padding: 32px 22px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    transition: transform 0.8s ease-in;
  }
  .paper-content.pull-out { transform: translateY(-740px); }
  .paper-header {
    text-align: center;
    border-bottom: 3px double var(--ink);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .paper-header .top-tag {
    color: var(--accent);
    font-family: var(--song-font);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.28em;
    margin-bottom: 14px;
  }
  .paper-header h1 {
    font-family: var(--song-font);
    font-size: 25px;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
  .paper-preview {
    font-family: var(--song-font);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.65;
  }
  .paper-preview .mini-title {
    text-align: center;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .score-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 12px;
    text-align: center;
    font-size: 12px;
  }
  .score-mini-table td {
    border: 1px solid var(--ink);
    padding: 3px 2px;
    height: 22px;
  }
  .folder-front {
    position: absolute;
    top: 102px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: var(--kraft);
    border: 3px solid var(--ink);
    border-top-width: 2px;
    padding: 16px;
    box-shadow: inset 0 -12px 30px rgba(0,0,0,0.05);
  }
  .folder-front.draft { top: 88px; }
  .front-border {
    height: 100%;
    border: 4px double rgba(44,36,27,0.34);
    padding: 76px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: rgba(255,255,255,0.04);
  }
  .front-border.compact { padding-top: 66px; }
  .folder-front:not(.draft) .front-border {
    padding: 88px 28px 30px;
  }
  .front-border h1 {
    font-size: 46px;
    line-height: 1;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.28), -1px -1px 0 rgba(0,0,0,0.32);
    margin-bottom: 12px;
  }
  .front-sub {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.32em;
    margin-bottom: 34px;
  }
  .folder-front:not(.draft) .front-sub {
    margin-bottom: 42px;
  }
  .archive-form {
    width: 100%;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
  .archive-field label {
    display: block;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    margin-bottom: 7px;
  }
  .archive-field .field-wrap {
    position: relative;
    border: 2px solid var(--ink);
    background: rgba(245,236,217,0.72);
    box-shadow: 3px 3px 0 rgba(44,36,27,0.22);
  }
  .archive-field .field-wrap::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    pointer-events: none;
    font-size: 14px;
  }
  select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 38px 13px 14px;
    font-size: 17px;
    font-weight: 900;
  }
  .track-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .track-toggle button {
    background: rgba(245,236,217,0.72);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 rgba(44,36,27,0.22);
    padding: 12px 6px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.18em;
  }
  .track-toggle button.active {
    background: var(--accent);
    color: var(--paper-light);
  }
  .cover-info {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    text-align: left;
    font-size: 16px;
    margin-bottom: 34px;
  }
  .folder-front:not(.draft) .cover-info {
    max-width: 330px;
    gap: 16px 20px;
    font-size: 17px;
    margin-bottom: 0;
  }
  .cover-info dt {
    color: var(--ink-soft);
    font-weight: 900;
    white-space: nowrap;
  }
  .cover-info dd {
    font-weight: 900;
    border-bottom: 2px dotted var(--gray-line);
    padding-bottom: 4px;
  }
  .folder-front:not(.draft) #start-btn {
    width: min(100%, 370px);
    margin-top: auto;
    margin-bottom: 2px;
  }
  .folder-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    z-index: 4;
    background: var(--kraft);
    border: 3px solid var(--ink);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s 0.2s;
    box-shadow: 0 8px 14px rgba(0,0,0,0.16);
  }
  .folder-flap.open {
    transform: rotateX(160deg);
    z-index: 1;
  }
  .folder-flap::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #a87e55;
    border: 2px solid var(--ink);
  }
  .folder-seal {
    position: absolute;
    top: 111px;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 96%);
    height: 50px;
    z-index: 5;
    background: var(--accent);
    color: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.28em;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.4s ease-out, opacity 0.3s 0.1s ease-out;
  }
  .folder-seal.peeled {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
  .vintage-stamp {
    position: absolute;
    right: -18px;
    bottom: 148px;
    width: 176px;
    height: 176px;
    border: 10px double var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 27px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.08em;
    transform: rotate(-15deg);
    opacity: 0.56;
    pointer-events: none;
  }

  .btn-primary, .btn-secondary {
    border: 2px solid var(--ink);
    font-weight: 900;
    letter-spacing: 0.16em;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--paper-light);
    padding: 16px 36px;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
  .btn-primary:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
  .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
  .btn-secondary {
    background: var(--paper-light);
    color: var(--ink);
    padding: 12px 20px;
    box-shadow: 4px 4px 0 rgba(44,36,27,0.45);
  }

  /* ============ 答题 ============ */
  .page-header {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double var(--ink);
    padding-bottom: 14px;
    margin-bottom: 24px;
    gap: 14px;
    font-size: 14px;
    font-weight: 900;
  }
  .badge {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    padding: 4px 12px;
    font-size: 13px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }
  .progress-bar {
    height: 10px;
    background: var(--paper-dark);
    border: 2px solid var(--ink);
    margin-bottom: 30px;
    overflow: hidden;
  }
  .progress-bar > span {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--ink), var(--ink) 2px, transparent 2px, transparent 6px);
    transition: width 0.35s ease;
  }
  .q-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .q-meta .tag {
    padding: 3px 10px;
    background: var(--paper-dark);
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 900;
  }
  .question-num {
    font-size: 16px;
    font-weight: 900;
    border-left: 4px solid var(--accent);
    padding-left: 8px;
    margin-bottom: 8px;
  }
  .question-body {
    font-size: 20px;
    line-height: 1.85;
    margin-bottom: 30px;
    font-weight: 900;
  }
  .question-parts {
    display: inline;
  }
  .paper-preview sub,
  .paper-preview sup,
  .question-body sub,
  .question-body sup,
  .option-content sub,
  .option-content sup,
  .feedback sub,
  .feedback sup {
    font-size: 0.68em;
    line-height: 0;
    position: relative;
  }
  .question-formula-inline {
    display: inline;
    margin: 0 0.12em;
    font-family: "Times New Roman", Georgia, "Songti SC", serif;
    font-weight: 900;
    white-space: nowrap;
  }
  .question-parts .katex,
  .option-content .katex {
    font-size: 1.02em;
    line-height: 1.1;
    white-space: nowrap;
  }
  .question-parts .katex-display,
  .option-content .katex-display {
    margin: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .question-nuclide {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin: 0 0.12em;
    font-family: "Times New Roman", Georgia, "Songti SC", serif;
    font-weight: 900;
    line-height: 1;
    vertical-align: -0.18em;
    white-space: nowrap;
  }
  .nuclide-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 0.55em;
    line-height: 0.9;
  }
  .question-part-image.inline {
    display: inline-block;
    vertical-align: -0.25em;
    max-width: 78vw;
    height: auto;
    margin: 0 3px;
    border: 0;
    background: transparent;
  }
  .question-part-image.block {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border: 2px solid rgba(43,37,29,0.8);
    background: #fffdf2;
  }
  .question-assets,
  .option-assets {
    margin: 16px 0 0;
  }
  .question-assets img,
  .option-assets img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid rgba(43,37,29,0.8);
    background: #fffdf2;
  }
  .question-assets.formula,
  .option-assets.formula {
    padding: 10px 12px;
    border: 1px dashed rgba(43,37,29,0.35);
    font-family: "Times New Roman", serif;
    white-space: pre-wrap;
  }
  .options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .options li {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-ink);
    cursor: pointer;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 900;
    transition: all 0.1s ease-out;
    align-items: flex-start;
  }
  .options li:hover { background: #fff8e8; transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
  .options li .letter {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono-font);
    background: var(--paper);
  }
  .option-content {
    min-width: 0;
    flex: 1 1 auto;
    display: block;
  }
  .options li.locked { cursor: default; }
  .options li.locked:hover { background: var(--paper-light); transform: none; box-shadow: var(--shadow-ink); }
  .options li.user-pick { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); border-color: var(--blue); background: rgba(42,75,124,0.08); }
  .options li.user-pick .letter { background: var(--blue); color: #fff; border-color: var(--blue); }
  .options li.correct { border-color: var(--green); background: rgba(60,107,74,0.1); }
  .options li.correct .letter { background: var(--green); color: #fff; border-color: var(--green); }
  .options li.wrong { border-color: var(--accent); background: rgba(185,40,42,0.08); }
  .options li.wrong .letter { background: var(--accent); color: #fff; border-color: var(--accent); }
  .feedback {
    display: none;
    margin-top: 28px;
    padding: 20px 24px;
    background: var(--paper-light);
    border: 2px dashed var(--ink);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 900;
  }
  .feedback.show { display: block; animation: stamp-in 0.24s ease-out; }
  .feedback.right { border-color: var(--green); }
  .feedback.miss { border-color: var(--accent); }
  .question-body u, .option-content u, .feedback u {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    font-weight: 900;
  }
  .feedback .verdict { font-size: 18px; margin-bottom: 12px; }
  .feedback.right .verdict { color: var(--green); }
  .feedback.miss .verdict { color: var(--accent); }
  .feedback .explanation-block {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(245, 236, 217, 0.55);
    border-left: 3px solid var(--ink);
    border-radius: 2px;
    font-weight: 500;
  }
  .feedback.right .explanation-block { border-left-color: var(--green); }
  .feedback.miss .explanation-block { border-left-color: var(--accent); }
  .feedback .explanation-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
    margin-bottom: 6px;
    padding: 2px 6px;
    border: 1px solid var(--ink-soft);
    border-radius: 2px;
    line-height: 1.2;
  }
  .feedback .explanation-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    font-weight: 500;
  }
  .feedback .note {
    color: var(--ink-soft);
    font-size: 12px;
    margin-top: 14px;
    border-top: 1px dotted var(--gray-line);
    padding-top: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  @keyframes stamp-in {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
  .nav-row {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(232,220,196,0), var(--paper) 26%, var(--paper) 100%);
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .nav-inner {
    width: min(100%, 680px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    pointer-events: auto;
  }
  .btn-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .quiz-bottom-space { height: 118px; }

  .empty-state {
    margin: 60px auto 20px;
    max-width: 520px;
    border: 2px dashed var(--ink);
    background: var(--paper-light);
    box-shadow: var(--shadow-soft);
    padding: 28px 24px;
    text-align: center;
  }
  .empty-state .stamp {
    display: inline-block;
    color: var(--accent);
    border: 4px double var(--accent);
    transform: rotate(-8deg);
    padding: 8px 14px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
    opacity: 0.75;
  }
  .empty-state h2 {
    font-size: 26px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
  }
  .empty-state p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 900;
  }

  .submit-stage {
    text-align: center;
    padding: 150px 20px 96px;
  }
  .pencil-down {
    font-size: 60px;
    margin-bottom: 24px;
    animation: drop-pencil 1.2s ease-out;
  }
  @keyframes drop-pencil {
    0% { transform: rotate(-20deg) translateY(-20px); opacity: 0; }
    55% { transform: rotate(0) translateY(0); opacity: 1; }
    72% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
  }
  .submit-stage h2 {
    font-size: 36px;
    letter-spacing: 0.38em;
    margin-bottom: 22px;
  }
  .submit-stage p {
    color: var(--ink-soft);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.8;
  }

  /* ============ 结果页 ============ */
  .result-header {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 28px;
    border-bottom: 3px double var(--ink);
    margin-bottom: 38px;
  }
  .result-header .sub {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.26em;
    margin-bottom: 12px;
  }
  .result-header h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }
  .score-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    color: var(--accent);
  }
  .score-line .num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    font-weight: 900;
    text-shadow: 3px 3px 0 rgba(185,40,42,0.18);
  }
  .score-line .denom {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
  }
  .identity-card {
    background:
      radial-gradient(circle at 73% 32%, rgba(230,182,108,0.12), transparent 34%),
      var(--paper-light);
    border: 2px solid var(--ink);
    border-top-width: 14px;
    box-shadow: var(--shadow-soft);
    padding: 40px 40px 28px;
    margin-bottom: 46px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 22px;
    align-items: center;
    overflow: hidden;
  }
  .identity-copy h3,
  .identity-main h3 {
    color: var(--accent);
    font-size: 40px;
    line-height: 1.16;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
  }
  .identity-band {
    display: inline-block;
    background: var(--ink);
    color: var(--paper-light);
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 14px;
  }
  .identity-main p,
  .persona-lead {
    font-family: var(--song-font);
    font-size: 18px;
    line-height: 1.88;
    font-weight: 600;
  }
  .persona-lead {
    max-width: 560px;
    margin-bottom: 0;
  }
  .identity-evidence {
    grid-column: 1 / -1;
    border-top: 1px dashed rgba(44,36,27,0.26);
    padding-top: 18px;
    color: var(--ink-soft);
  }
  .evidence-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    margin: 8px 0;
    font-family: var(--song-font);
    font-size: 14px;
    line-height: 1.75;
  }
  .evidence-row span {
    color: var(--ink-soft);
    font-size: 12px;
    font-family: var(--main-font);
    font-weight: 900;
    letter-spacing: 0.14em;
  }
  .evidence-row strong {
    color: var(--ink);
    font-weight: 700;
  }
  .evidence-note {
    margin-top: 10px;
    font-family: var(--song-font);
    font-size: 14px;
    line-height: 1.72;
    font-weight: 500;
  }
  .memory-strip {
    margin-top: 16px;
  }
  .memory-label {
    display: block;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }
  .memory-chip {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(44,36,27,0.28);
    background: rgba(255,255,255,0.36);
    padding: 5px 9px;
    margin: 0 7px 8px 0;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
  }
  .memory-chip.hit {
    color: var(--green);
    border-color: rgba(60,107,74,0.58);
    background: rgba(60,107,74,0.08);
  }
  .memory-chip.miss {
    color: var(--accent);
    border-color: rgba(185,40,42,0.52);
    background: rgba(185,40,42,0.06);
  }
  .persona-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    min-height: 270px;
    margin: -4px -8px -2px 0;
  }
  .persona-portrait img {
    display: block;
    width: min(100%, 390px);
    max-height: 318px;
    object-fit: contain;
    filter: drop-shadow(7px 10px 0 rgba(44,36,27,0.12));
  }
  .avatar-placeholder, .peer-avatar {
    border: 2px solid var(--ink);
    background:
      linear-gradient(135deg, rgba(185,40,42,0.12), transparent 46%),
      repeating-linear-gradient(0deg, rgba(44,36,27,0.06) 0, rgba(44,36,27,0.06) 1px, transparent 1px, transparent 8px),
      var(--paper);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.1em;
  }
  .avatar-placeholder {
    width: 118px;
    aspect-ratio: 1 / 1;
    box-shadow: 4px 4px 0 rgba(44,36,27,0.22);
    transform: rotate(2deg);
  }
  .section { margin-bottom: 48px; }
  .section h3 {
    font-size: 21px;
    line-height: 1.35;
    font-weight: 900;
    border-bottom: 2px solid var(--ink);
    padding: 0 0 11px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section h3::before {
    content: "■";
    color: var(--accent);
    font-size: 14px;
  }
  .section-sub {
    color: var(--ink-soft);
    font-family: var(--song-font);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
    margin: -8px 0 18px;
  }
  .data-panel, .composition-block, .plain-panel {
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-soft);
    padding: 20px;
  }
  .cutoff-table {
    display: grid;
    /* cols 由 JS 计算并通过 --cutoff-count 设置:1-3 个一行;4 个 2×2;5-6 个 3 列换行 */
    grid-template-columns: repeat(var(--cutoff-count, 3), minmax(0, 1fr));
    border: 2px solid var(--ink);
    margin: 12px 0 24px;
    background: rgba(245,236,217,0.62);
  }
  .cutoff-cell {
    min-width: 0;
    text-align: center;
    border-right: 1px solid var(--ink);
  }
  .cutoff-cell:last-child { border-right: 0; }
  .cutoff-label {
    padding: 14px 6px;
    border-bottom: 1px solid var(--ink);
    font-weight: 900;
    font-size: 16px;
  }
  .cutoff-score {
    padding: 15px 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    color: var(--ink);
    font-weight: 900;
  }
  .rate-block {
    margin-bottom: 22px;
  }
  .rate-title {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 900;
    margin-bottom: 10px;
  }
  .rate-row {
    position: relative;
    height: 34px;
    border: 1px solid var(--ink);
    background: var(--paper-dark);
    margin: 9px 0;
    overflow: hidden;
  }
  .rate-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: auto;
    background: linear-gradient(90deg, var(--accent), #d9534f);
  }
  .rate-fill.national {
    background: linear-gradient(90deg, #3c342a, #726756);
  }
  .rate-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    color: var(--paper-light);
    font-size: 15px;
    font-weight: 900;
  }
  .data-lines {
    display: grid;
    gap: 12px;
    margin-top: 18px;
  }
  .data-line {
    font-family: var(--song-font);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
  }
  .data-line .k {
    color: var(--accent);
    margin-right: 6px;
  }
  .champion-card {
    margin-top: 18px;
    border: 2px solid var(--accent);
    background: rgba(185,40,42,0.06);
    padding: 16px;
    font-family: var(--song-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
  }
  .dest-list, .decay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }
  .dest-chip, .decay-chip {
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 rgba(44,36,27,0.2);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
  }
  .decay-chip.hit { color: var(--green); border-color: var(--green); background: rgba(60,107,74,0.08); }
  .decay-chip.miss { color: var(--accent); border-color: var(--accent); background: rgba(185,40,42,0.08); }
  .composition-block {
    font-size: 16px;
    line-height: 1.9;
    font-weight: 500;
    font-family: var(--song-font);
  }
  .composition-label {
    display: inline-block;
    background: var(--gold);
    color: var(--paper-light);
    border: 2px solid var(--ink);
    padding: 3px 9px;
    margin-bottom: 12px;
    font-size: 13px;
  }
  .composition-note {
    border-top: 2px dashed rgba(44,36,27,0.4);
    margin-top: 18px;
    padding-top: 14px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
  }
  .era-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .era-card {
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    padding: 16px;
    font-family: var(--song-font);
    font-size: 15px;
    line-height: 1.78;
    font-weight: 500;
  }
  .era-card .head {
    background: var(--ink);
    color: var(--paper);
    border-bottom: 2px solid var(--ink);
    margin: -15px -15px 12px;
    padding: 6px 9px;
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }
  .era-card .body {
    color: var(--ink);
  }
  .era-card .body strong {
    color: var(--accent);
    font-weight: 900;
  }
  .bittersweet {
    margin-bottom: 46px;
    background: #2c241b;
    color: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.22);
    padding: 22px;
  }
  .bittersweet .label {
    color: #e6b66c;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }
  .bittersweet .body {
    font-family: var(--song-font);
    font-size: 15px;
    line-height: 1.78;
    font-weight: 500;
  }
  .bittersweet strong { color: #f1c46e; }
  .peers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .peer {
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    padding: 12px;
    text-align: center;
    font-weight: 900;
  }
  .peer-avatar {
    width: 100%;
    height: 136px;
    margin-bottom: 10px;
    filter: sepia(0.22) saturate(0.85) contrast(1.02);
  }
  .peer .name {
    color: var(--ink);
    font-size: 18px;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
  }
  .real-tag {
    color: var(--accent);
    font-size: 12px;
  }
  .peer .detail {
    color: var(--ink-soft);
    font-family: var(--song-font);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
  }
  .zh-voices {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .zh-voice {
    display: block;
    position: relative;
    background: var(--paper-light);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  }
  .zh-voice:hover,
  .zh-voice:focus-visible {
    border-color: var(--blue);
    box-shadow: 7px 7px 0 rgba(42,75,124,0.16);
    transform: translate(-1px, -1px);
    outline: none;
  }
  .zh-voice.no-link {
    cursor: default;
  }
  .zh-voice.no-link:hover,
  .zh-voice.no-link:focus-visible {
    border-color: var(--ink);
    box-shadow: var(--shadow-soft);
    transform: none;
  }
  .zh-voice::before {
    content: "”";
    position: absolute;
    right: 18px;
    top: 8px;
    color: rgba(42,75,124,0.1);
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 1;
  }
  .zh-voice .quote {
    font-family: var(--song-font);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 900;
    margin-bottom: 8px;
    padding-right: 22px;
  }
  .zh-voice .ctx {
    color: var(--ink-soft);
    font-family: var(--song-font);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 9px;
  }
  .zh-voice .src {
    font-family: var(--song-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--blue);
    font-weight: 900;
  }
  .closing-hero {
    margin: 52px 0 42px;
    border: 4px double var(--accent);
    background: rgba(185,40,42,0.06);
    padding: 40px 24px 32px;
    text-align: center;
  }
  .closing-quote {
    color: var(--accent);
    font-size: 23px;
    line-height: 1.95;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    text-shadow: 0 1px 0 rgba(185,40,42,0.1);
  }
  .closing-stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.42em;
    padding-left: 0.42em;
  }
  .result-disclaimer {
    margin: -16px auto 32px;
    max-width: 92%;
    padding: 16px 4px 0;
    border-top: 1px dotted rgba(90, 79, 64, 0.38);
    display: flex;
    gap: 6px;
    align-items: flex-start;
    justify-content: center;
    color: var(--ink-soft);
    opacity: 0.85;
    font-family: var(--song-font, inherit);
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: center;
    font-weight: 500;
  }
  .result-disclaimer .disclaimer-mark {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1.85;
    opacity: 0.85;
  }
  .result-disclaimer .disclaimer-body {
    flex: 1 1 auto;
    text-align: left;
  }
  .closing-stamp .stamp-line {
    flex: 0 1 60px;
    height: 1px;
    background: var(--ink-soft);
    opacity: 0.55;
  }
  /* 保留旧 class 兼容历史模板,但实际渲染走 closing-quote / closing-stamp */
  .closing-big, .closing-sub { display: none; }
  .closing-cite {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
  }
  .footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .share-capture-host {
    position: absolute;
    left: -10000px;
    top: 0;
    pointer-events: none;
    opacity: 0;
  }
  /* CTA 默认隐藏(在 result 页 DOM 里),仅在长图截图 clone (.share-capture-stage) 内可见 */
  .share-only { display: none !important; }
  .share-capture-stage .share-only { display: block !important; }
  /* B: 横排布局(左文字 / 右 QR),用 position:absolute —— html2canvas 1.4.1 100% 兼容 */
  /* min-height 172 = QR top 18 + QR 132 + padding-bottom 18 + 4 buffer,确保 QR 完整包在卡内 */
  .share-footer-cta {
    position: relative;
    margin-top: 18px;
    padding: 18px 162px 18px 22px;
    min-height: 172px;
    background: #f5ecd9;
    border-top: 1px dashed #5a4f40;
    text-align: left;
    box-sizing: border-box;
  }
  .share-footer-cta .cta-headline {
    font-size: 22px;
    font-weight: 900;
    color: #2c241b;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }
  .share-footer-cta .cta-sub {
    font-size: 13px;
    color: #5a4f40;
    letter-spacing: 0.04em;
    margin-top: 6px;
  }
  .share-footer-cta .cta-hint {
    font-size: 11px;
    color: #5a4f40;
    letter-spacing: 0.06em;
    margin-top: 10px;
  }
  .share-footer-cta .cta-qr {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 132px;
    height: 132px;
    border: 1px solid #2c241b;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
    image-rendering: pixelated;
  }
  .share-capture-stage {
    margin: 0;
  }
  .share-modal {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1000;
    background: rgba(24, 19, 13, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overscroll-behavior: contain;
  }
  .share-dialog {
    width: min(100%, 430px);
    max-height: 92vh;
    background: var(--paper-light);
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.38);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
  }
  /* iOS modal scroll-lock: 锁住 body 滚动 + 保留位置 */
  html.share-locked {
    overflow: hidden !important;
  }
  html.share-locked body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
  .share-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--accent);
    color: var(--paper-light);
    border-bottom: 2px solid var(--ink);
    padding: 12px 14px;
    font-size: 17px;
    font-weight: 900;
  }
  .share-dialog-head strong {
    color: var(--paper-light);
  }
  .share-close {
    width: 32px;
    height: 32px;
    border: 2px solid var(--paper-light);
    background: transparent;
    color: var(--paper-light);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
  }
  .share-hint {
    padding: 14px 16px 10px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 900;
  }
  .share-preview {
    margin: 0 16px;
    max-height: 62vh;
    overflow: auto;
    border: 2px solid var(--ink);
    background: var(--paper);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .share-preview img {
    display: block;
    width: 100%;
    height: auto;
  }
  .share-modal-actions {
    display: flex;
    padding: 14px 16px 16px;
    flex-wrap: wrap;
  }
  .share-modal-actions > * + * {
    margin-left: 10px;
  }
  .share-modal-actions .btn-primary,
  .share-modal-actions .btn-secondary,
  .share-modal-actions .share-save-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: block;
  }

  @media (max-width: 640px) {
    body { padding: 0; background: var(--paper); }
    .stage {
      min-height: 100vh;
      width: 100%;
      max-width: none;
      border: 0;
      box-shadow: none;
      padding: 18px 16px 54px;
    }
    .cover { min-height: calc(100vh - 70px); }
    .folder-wrapper { width: calc(100vw - 32px); max-width: 370px; height: 650px; }
    .front-border { padding: 70px 18px 18px; }
    .folder-front:not(.draft) .front-border { padding: 80px 20px 24px; }
    .front-border.compact { padding-top: 60px; }
    .front-border h1 { font-size: 38px; }
    .front-sub { font-size: 13px; margin-bottom: 24px; }
    .folder-front:not(.draft) .front-sub { margin-bottom: 34px; }
    .folder-front:not(.draft) .cover-info { max-width: 280px; font-size: 16px; gap: 14px 16px; }
    .vintage-stamp { width: 136px; height: 136px; font-size: 21px; right: -14px; bottom: 118px; border-width: 8px; }
    .folder-seal { font-size: 15px; letter-spacing: 0.18em; }
    .page-header { margin-top: 24px; font-size: 13px; align-items: flex-start; }
    .question-body { font-size: 18px; line-height: 1.75; }
    .options li { font-size: 16px; padding: 15px; }
    .btn-primary, .btn-secondary { width: 100%; }
    .nav-row .btn-primary, .nav-row .btn-secondary { width: auto; padding-left: 8px; padding-right: 8px; }
    .identity-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .identity-card { padding: 34px 18px 24px; }
    .identity-copy h3, .identity-main h3 { font-size: 36px; }
    .persona-lead { font-size: 17px; }
    .persona-portrait { width: 100%; min-height: 0; margin: 6px 0 4px; }
    .persona-portrait img { width: min(100%, 330px); max-height: 280px; }
    .identity-evidence { text-align: left; width: 100%; }
    .evidence-row { grid-template-columns: 1fr; gap: 2px; }
    .era-grid { grid-template-columns: 1fr; }
    /* cutoff-table mobile 行为同 desktop:JS 计算 --cutoff-count(1-3 列 / 4 个 2×2 / 5-6 个 3 列) */
    .submit-stage { padding-top: 120px; }
  }
