<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<style>
  @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Ma+Shan+Zheng&family=ZCOOL+QingKe+HuangYou&family=DM+Sans:wght@400;500;700&display=swap');

  :root {
    --bg-dark: #2B2520;
    --paper: #F4EFE6;
    --paper-edge: #ECE4D4;
    --ink: #2C2826;
    --ink-soft: #6A5F52;
    --ink-lighter: #9A8E7E;
    --shu: #C03C28;
    --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
    --brush: 'Ma Shan Zheng', 'Noto Serif SC', 'STKaiti', cursive;
    --block: 'ZCOOL QingKe HuangYou', 'Noto Serif SC', serif;
    --sans: 'DM Sans', 'PingFang SC', system-ui, sans-serif;
  }

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

  html, body {
    width: 1080px;
    height: 1440px;
    background: var(--bg-dark);
    overflow: hidden;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
  }

  /* The paper card — suspended, weathered, breathing */
  .card {
    width: 1036px;
    height: 1396px;
    background:
      radial-gradient(ellipse 420px 320px at 18% 22%, rgba(90,70,55,0.08) 0%, transparent 60%),
      radial-gradient(ellipse 520px 380px at 82% 38%, rgba(75,60,48,0.06) 0%, transparent 55%),
      radial-gradient(ellipse 380px 280px at 42% 72%, rgba(100,80,65,0.07) 0%, transparent 58%),
      radial-gradient(ellipse 460px 340px at 88% 85%, rgba(85,68,52,0.05) 0%, transparent 55%),
      radial-gradient(ellipse 300px 220px at 10% 90%, rgba(95,75,60,0.04) 0%, transparent 55%),
      linear-gradient(135deg, var(--paper) 0%, var(--paper-edge) 100%);
    border-radius: 3px;
    box-shadow:
      0 0 0 1px rgba(80,60,40,0.18),
      0 16px 48px rgba(0,0,0,0.45),
      0 4px 12px rgba(0,0,0,0.3),
      inset 0 0 140px rgba(160,135,100,0.1);
    position: relative;
    overflow: hidden;
  }

  /* Paper grain: subtle noise texture */
  .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
  }

  /* Ink cloud stains — painterly smudges, hand-placed via varied opacity */
  .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 280px 180px at 12% 8%, rgba(60,48,38,0.09) 0%, transparent 70%),
      radial-gradient(ellipse 320px 200px at 90% 18%, rgba(55,45,35,0.07) 0%, transparent 72%),
      radial-gradient(ellipse 240px 160px at 68% 92%, rgba(70,55,42,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
  }

  .stage {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 96px 88px 180px 88px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 3;
  }

  /* Main text — carved, weathered, massive */
  .main-text {
    font-family: var(--serif);
    font-weight: 900;
    color: var(--ink);
    font-size: {{FONT_SIZE}}px;
    line-height: 1.38;
    letter-spacing: 0.04em;
    text-align: left;
    filter: url(#weathered);
    /* subtle emboss for carved feel */
    text-shadow:
      0 1px 0 rgba(255,250,240,0.3),
      0 -1px 2px rgba(40,30,22,0.15);
  }

  .main-text .shu {
    color: var(--shu);
  }

  .main-text .sub {
    font-size: 0.42em;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
    display: block;
    margin-top: 0.6em;
    filter: none;
  }

  /* Signature — understated, bottom-left */
  .signature {
    position: absolute;
    left: 88px;
    bottom: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
  }

  .signature img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.9;
    filter: sepia(0.15) saturate(0.85);
  }

  .signature .name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
  }

  /* Source line — tiny, bottom-right, optional */
  .source-line {
    position: absolute;
    right: 88px;
    bottom: 74px;
    font-family: var(--sans);
    font-size: 22px;
    color: var(--ink-lighter);
    letter-spacing: 0.05em;
    z-index: 4;
  }

  {{CUSTOM_CSS}}
</style>
</head>
<body>
<svg width="0" height="0" style="position:absolute">
  <defs>
    <filter id="weathered" x="-5%" y="-5%" width="110%" height="110%">
      <feTurbulence type="fractalNoise" baseFrequency="0.82" numOctaves="2" seed="7" result="noise"/>
      <feDisplacementMap in="SourceGraphic" in2="noise" scale="1.8" xChannelSelector="R" yChannelSelector="G"/>
    </filter>
  </defs>
</svg>
<div class="card">
  <div class="stage">
    <div class="main-text">{{MAIN_TEXT}}</div>
  </div>
  <div class="signature">
    <img src="{{LOGO}}" alt="">
    <span class="name">李继刚</span>
  </div>
  {{SOURCE_LINE}}
</div>
</body>
</html>
