/* ==========================================================================
   giftledger v3 · 礼簿封面 CoverKit（v3.7 重建）
   · 29 套「款式 × 配色」组合，分属八个事由专属族
   · 任何款式、任何配色都只在**一个**事由里出现 —— 跨事由零复用
   · 纹样用内联 SVG 蒙版，题字用书法体，尺寸全部走 cqw 容器单位
     —— 缩略图与全尺寸同一套标记都成立
   ========================================================================== */
/* 本文件不出现可见色值：「颜色只有一个来源」的规矩对封面同样生效，
   全部色值（含光扫 / 纸织 / 印章 / 书脊 / 签条等工艺色）住在
   styles/tokens.css 的「封面配色表」（§11）。
   文件里仍能搜到的 #000 只出现在 mask / 内联 SVG 蒙版数据里 ——
   那是蒙版的不透明载体，不是渲染出来的颜色。 */

:root {
  /* 自托管的「GL Kai」**排在最后当兜底**：桌面走本机楷体（有真粗体、零下载），
     iOS 上那几个 macOS 名字全落空时才落到它 —— iOS 不预装任何中文衬线，
     少了这一档，封面题字会跟正文一起变成苹方（styles/paper-fonts.css）。
     反过来说，排第一的话桌面也会用它，而它只有 400 一个字重，题字会变瘦。
     行楷没有自托管那副，退到楷体：宁可字形偏一档，也不要掉进黑体。 */
  --f-kai: "Kaiti SC", "Kaiti SC Regular", "STKaiti", "KaiTi", "楷体-简", "楷体", "GL Kai", serif;
  --f-xing: "Xingkai SC", "STXingkai", "华文行楷", "行楷-简", "Kaiti SC", "STKaiti", "GL Kai", serif;
  --tex-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.42'/></svg>");
  --tex-huiwen-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'><path d='M4 36V4h32v32H12V12h20v20H20V20'/></g></svg>");

  /* —— 纹样蒙版（婚宴）—— */
  --tex-medallion: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 200 200'><defs><g id='p'><path d='M100 100 C110 84 126 73 141 77 C145 92 136 107 120 113 C110 116 103 110 100 100Z'/></g></defs><g fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'><use href='%23p'/><use href='%23p' transform='rotate(30 100 100)'/><use href='%23p' transform='rotate(60 100 100)'/><use href='%23p' transform='rotate(90 100 100)'/><use href='%23p' transform='rotate(120 100 100)'/><use href='%23p' transform='rotate(150 100 100)'/><use href='%23p' transform='rotate(180 100 100)'/><use href='%23p' transform='rotate(210 100 100)'/><use href='%23p' transform='rotate(240 100 100)'/><use href='%23p' transform='rotate(270 100 100)'/><use href='%23p' transform='rotate(300 100 100)'/><use href='%23p' transform='rotate(330 100 100)'/><circle cx='100' cy='100' r='13'/><circle cx='100' cy='100' r='27' stroke-dasharray='3 4'/><circle cx='100' cy='100' r='57' stroke-dasharray='6 6'/><circle cx='100' cy='100' r='77'/></g></svg>");
  --tex-lianzhi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><g fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'><path d='M-5 45 C15 25 30 65 45 45 C60 25 75 65 95 45'/><path d='M15 38 C10 30 14 22 22 22 C24 30 20 36 15 38Z'/><path d='M60 52 C66 60 62 68 54 68 C52 60 56 54 60 52Z'/><circle cx='45' cy='45' r='3.4'/><circle cx='0' cy='45' r='3.4'/><circle cx='90' cy='45' r='3.4'/></g></svg>");
  --tex-jie: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23000' stroke-width='7' stroke-linejoin='round'><rect x='55' y='55' width='90' height='90' rx='10' transform='rotate(45 100 100)'/><rect x='70' y='70' width='60' height='60' rx='8' transform='rotate(45 100 100)'/><path d='M100 22 C86 36 86 46 100 54 C114 46 114 36 100 22Z'/><path d='M88 152 L88 186 M112 152 L112 186 M100 158 L100 190'/></g></svg>");

  /* —— 纹样蒙版（寿宴）—— */
  --tex-peng: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%23000' stroke-width='1.6'><circle cx='0' cy='0' r='24'/><circle cx='64' cy='0' r='24'/><circle cx='0' cy='64' r='24'/><circle cx='64' cy='64' r='24'/><circle cx='32' cy='32' r='24'/></g></svg>");
  --tex-song: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'><path d='M30 205 C70 165 90 130 118 96 C142 66 172 48 205 40'/><path d='M118 96 C112 74 100 60 82 52'/><path d='M150 62 C158 44 172 34 190 32'/></g><g stroke='%23000' stroke-width='2' stroke-linecap='round'><path d='M118 96 l-24 -12 M118 96 l-8 -24 M118 96 l14 -20 M118 96 l24 -4'/><path d='M82 52 l-20 -4 M82 52 l-6 -18 M82 52 l12 -14'/><path d='M190 32 l-18 -6 M190 32 l-2 -18 M190 32 l12 -12'/></g></svg>");

  /* —— 纹样蒙版（满月）—— */
  --tex-suo: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='round'><path d='M100 34 C92 24 78 24 74 34 C70 44 80 50 100 50 C120 50 130 44 126 34 C122 24 108 24 100 34Z'/><path d='M100 50 C74 62 58 84 58 108 C58 138 78 156 100 162 C122 156 142 138 142 108 C142 84 126 62 100 50Z'/><path d='M100 78 l10 12 -10 12 -10 -12 Z'/><path d='M84 162 L84 186 M116 162 L116 186 M100 166 L100 190'/></g></svg>");
  --tex-lianhua: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><defs><path id='pt' d='M0 0 C-14 -22 -12 -48 0 -64 C12 -48 14 -22 0 0 Z'/></defs><g fill='none' stroke='%23000' stroke-width='3'><use href='%23pt' transform='translate(110 150)'/><use href='%23pt' transform='translate(110 150) rotate(-36)'/><use href='%23pt' transform='translate(110 150) rotate(36)'/><use href='%23pt' transform='translate(110 150) rotate(-72)'/><use href='%23pt' transform='translate(110 150) rotate(72)'/><path d='M62 168 C90 182 130 182 158 168' stroke-width='4'/><path d='M74 182 C96 192 124 192 146 182' stroke-width='3'/></g></svg>");
  --tex-yu: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round'><path d='M40 110 C64 74 118 66 152 92 C160 98 166 106 170 110 C166 114 160 122 152 128 C118 154 64 146 40 110 Z'/><path d='M40 110 L18 84 M40 110 L18 136 M170 110 L186 98 M170 110 L186 122'/><circle cx='70' cy='102' r='5'/><path d='M100 92 C112 102 112 118 100 128 M128 88 C144 100 144 120 128 132'/></g></svg>");
  --tex-ruyi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='64' viewBox='0 0 132 64'><g fill='none' stroke='%23000' stroke-width='3'><path d='M66 34 C58 22 62 10 74 8 C80 2 92 2 98 10 C110 8 116 20 108 30 C102 38 92 40 84 38 C76 40 70 38 66 34Z'/><path d='M10 44 C4 36 6 26 14 24 C18 18 28 18 32 24 C40 22 44 30 38 38 C32 44 20 46 14 44Z'/><path d='M122 44 C116 36 118 26 126 24 C130 18 140 18 144 24 C152 22 156 30 150 38 C144 44 132 46 126 44Z'/><path d='M0 56 H132' stroke-width='2' stroke-dasharray='6 5'/></g></svg>");

  /* —— 纹样蒙版（升学）—— */
  --tex-gui: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'><path d='M24 196 C64 160 96 128 128 100 C156 76 184 62 204 56'/><path d='M128 100 C124 80 132 62 148 52'/><path d='M96 128 C80 124 68 112 64 96'/></g><g fill='%23000'><circle cx='152' cy='46' r='4.4'/><circle cx='162' cy='54' r='4.4'/><circle cx='156' cy='60' r='4.4'/><circle cx='146' cy='54' r='4.4'/><circle cx='58' cy='88' r='4.4'/><circle cx='66' cy='80' r='4.4'/><circle cx='70' cy='92' r='4.4'/><circle cx='60' cy='98' r='4.4'/><circle cx='176' cy='70' r='4.4'/><circle cx='184' cy='78' r='4.4'/><circle cx='174' cy='82' r='4.4'/></g></svg>");
  --tex-yunti: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'><path d='M30 190 C18 190 10 178 16 166 C22 156 36 154 42 162 C48 170 42 180 34 178'/><path d='M86 148 C74 148 66 136 72 124 C78 114 92 112 98 120 C104 128 98 138 90 136'/><path d='M142 106 C130 106 122 94 128 82 C134 72 148 70 154 78 C160 86 154 96 146 94'/><path d='M198 64 C186 64 178 52 184 40 C190 30 204 28 210 36 C216 44 210 54 202 52'/><path d='M42 178 L192 50' stroke-width='2' stroke-dasharray='2 8'/></g></svg>");
  --tex-juan: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'><rect x='58' y='46' width='104' height='128' rx='6'/><path d='M58 60 H162 M58 160 H162' stroke-width='2.6'/><path d='M74 88 H146 M74 108 H146 M74 128 H126' stroke-width='2.6'/><circle cx='58' cy='110' r='7'/><circle cx='162' cy='110' r='7'/></g></svg>");
  --tex-zhu: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'><path d='M84 210 L84 150 M84 138 L84 78 M84 66 L84 14'/><path d='M138 210 L138 166 M138 154 L138 110 M138 98 L138 54'/><path d='M84 118 C104 108 122 92 132 72 M138 128 C158 122 176 108 186 90'/><path d='M132 72 C140 66 152 62 162 62 C156 72 146 78 134 78 Z M186 90 C192 84 202 80 212 80 C206 90 196 96 184 96 Z' stroke-width='3'/></g></svg>");

  /* —— 纹样蒙版（乔迁 / 开业 / 白事）—— */
  --tex-chuang: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23000' stroke-width='2'><rect x='8' y='8' width='64' height='64'/><rect x='20' y='20' width='40' height='40'/><path d='M8 8 L72 72 M72 8 L8 72'/><path d='M40 8 V72 M8 40 H72'/></g></svg>");
  --tex-guibei: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'><g fill='none' stroke='%23000' stroke-width='1.8'><path d='M14 2 H42 L54 24 L42 46 H14 L2 24 Z'/><path d='M-14 2 H14 L26 24 L14 46 H-14 L-26 24 Z'/><path d='M42 2 H70 L82 24 L70 46 H42 L30 24 Z'/><path d='M14 -46 H42 L54 -24 L42 -2 H14 L2 -24 Z'/><path d='M14 50 H42 L54 72 L42 94 H14 L2 72 Z'/></g></svg>");
  --tex-shan: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'><g fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'><path d='M6 128 C34 92 58 60 86 60 C114 60 130 96 152 112'/><path d='M96 128 C124 100 146 74 172 74 C198 74 216 102 236 120'/><path d='M28 128 C50 108 66 96 84 96' stroke-width='2.4'/><path d='M150 128 C170 112 186 104 202 104' stroke-width='2.4'/><circle cx='196' cy='34' r='14'/></g></svg>");
  --tex-qian: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'><g fill='none' stroke='%23000' stroke-width='2.2'><circle cx='38' cy='38' r='26'/><rect x='30' y='30' width='16' height='16'/><path d='M38 4 V14 M38 62 V72 M4 38 H14 M62 38 H72' stroke-width='1.6'/></g></svg>");
}

/* 烫金光扫**已整体撤掉**（用户 2026-10-19：「彻底去掉首页封面光扫动画」）。
   它原来是封面上一枚 .foil，进场扫两遍（7.5s×2，慢档 11s×2）即停 ——
   首页每次重画都会让它从头再扫一遍，看着就是「封面隔几秒闪一下」。
   现在 cover.js 的 layers() 不再输出这一层，CSS 也一并删干净（连同
   下面两套苏绢封面的 display:none 特例）—— 留着一段没人用的动画，
   下次谁看到还不知道它是不是还生效。 */

/* ============================================================
   封面主题系统（v3.7）：29 款式 × 29 配色，逐套专属
   · 款式（data-cover）：决定纹样与构图 —— 只属于一个事由
   · 配色（data-palette）：只改颜色令牌 —— 也只属于一个事由
   ============================================================ */

.cv {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  border-radius: 2cqw;
  overflow: hidden;
  isolation: isolate;
  /* 默认配色（绯红 · 婚宴主推）在 styles/tokens.css 的「封面配色表」里，
     与 .cv[data-palette="feihong"] 共用同一份 —— 这里不再重复。 */
  --cv-ring: 1px;
  box-shadow: inset 0 0 0 1px var(--cv-edge);
}

/* ———————————— 配色（29 套）————————————
   色值全部住在 styles/tokens.css 的「封面配色表」里（§11）——
   本项目「颜色只有一个来源」这条规矩，对封面同样成立。
   本文件只负责款式：纹样蒙版、构图、几何与材质。
   —————————————————————————————————————————— */


/* ———————————— 层次 ———————————— */
.cv__skin {
  position: absolute;
  inset: 0;
  background: radial-gradient(122% 92% at 50% 16%, var(--cv-bg1), var(--cv-bg2) 48%, var(--cv-bg3) 100%);
}
.cv__skin::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--cv-weave-lo) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, var(--cv-weave-hi) 0 1px, transparent 1px 4px),
    var(--tex-noise);
  background-size: auto, auto, 160px 160px;
  mix-blend-mode: overlay;
  opacity: .78;
}

.cv__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--cv-line);
  opacity: var(--cv-art-op);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.cv__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-xing);
  color: var(--cv-line);
  line-height: 1;
  opacity: var(--cv-art-op);
  text-shadow: 0 0 6cqw var(--cv-glyph-glow);
}
/* 大字款：art 层关闭，glyph 撑场面 */
.cv[data-cover="w-shuangxi"] .cv__art,
.cv[data-cover="b-tuanshou"] .cv__art,
.cv[data-cover="bz-dazhai"] .cv__art,
.cv[data-cover="o-dali"] .cv__art { background-color: transparent; }
.cv[data-cover="w-shuangxi"] .cv__glyph::before { content: "囍"; font-size: 46cqw; transform: translateY(-4cqw); }
.cv[data-cover="b-tuanshou"] .cv__glyph::before  { content: "壽"; font-size: 40cqw; transform: translateY(-3cqw); }
.cv[data-cover="bz-dazhai"] .cv__glyph::before   { content: "慶"; font-size: 44cqw; transform: translateY(-3cqw); }
.cv[data-cover="o-dali"] .cv__glyph::before      { content: "禮"; font-size: 42cqw; transform: translateY(-3cqw); }
/* 团寿款外圈 */
.cv[data-cover="b-tuanshou"] .cv__ring {
  position: absolute;
  left: 50%; top: 24%;
  width: 52cqw; height: 52cqw;
  margin: -26cqw 0 0 -26cqw;
  border: var(--cv-ring) solid var(--cv-line);
  border-radius: 50%;
  opacity: calc(var(--cv-art-op) * .9);
  pointer-events: none;
}

/* ———————————— 婚宴四式 ———————————— */
/* 龙凤团：团花居上 */
.cv[data-cover="w-tuanlong"] .cv__art {
  -webkit-mask-image: var(--tex-medallion);  mask-image: var(--tex-medallion);
  -webkit-mask-size: 50cqw 50cqw;            mask-size: 50cqw 50cqw;
  -webkit-mask-position: 50% 14%;            mask-position: 50% 14%;
  opacity: calc(var(--cv-art-op) * .86);
}
/* 缠枝并蒂：满铺缠枝 */
.cv[data-cover="w-lianzhi"] .cv__art {
  -webkit-mask-image: var(--tex-lianzhi);    mask-image: var(--tex-lianzhi);
  -webkit-mask-size: 11cqw 11cqw;            mask-size: 11cqw 11cqw;
  -webkit-mask-repeat: repeat;               mask-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .5);
}
/* 同心结：居中一枚大结 */
.cv[data-cover="w-tongxin"] .cv__art {
  -webkit-mask-image: var(--tex-jie);        mask-image: var(--tex-jie);
  -webkit-mask-size: 52cqw 52cqw;            mask-size: 52cqw 52cqw;
  -webkit-mask-position: 50% 40%;            mask-position: 50% 40%;
  opacity: calc(var(--cv-art-op) * .8);
}

/* ———————————— 寿宴四式 ———————————— */
/* 球路锦地：满铺扣环 */
.cv[data-cover="b-pengjin"] .cv__art {
  -webkit-mask-image: var(--tex-peng);       mask-image: var(--tex-peng);
  -webkit-mask-size: 12cqw 12cqw;            mask-size: 12cqw 12cqw;
  -webkit-mask-repeat: repeat;               mask-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .45);
}
/* 松鹤延年：斜枝入画 */
.cv[data-cover="b-songhe"] .cv__art {
  -webkit-mask-image: var(--tex-song);       mask-image: var(--tex-song);
  -webkit-mask-size: 84cqw 84cqw;            mask-size: 84cqw 84cqw;
  -webkit-mask-position: 56% 34%;            mask-position: 56% 34%;
  opacity: calc(var(--cv-art-op) * .8);
}
/* ———————————— 满月四式 ———————————— */
/* 长命锁 */
.cv[data-cover="by-suodie"] .cv__art {
  -webkit-mask-image: var(--tex-suo);        mask-image: var(--tex-suo);
  -webkit-mask-size: 50cqw 50cqw;            mask-size: 50cqw 50cqw;
  -webkit-mask-position: 50% 32%;            mask-position: 50% 32%;
  opacity: calc(var(--cv-art-op) * .8);
}
/* 莲座 */
.cv[data-cover="by-lianhua"] .cv__art {
  -webkit-mask-image: var(--tex-lianhua);    mask-image: var(--tex-lianhua);
  -webkit-mask-size: 52cqw 52cqw;            mask-size: 52cqw 52cqw;
  -webkit-mask-position: 50% 30%;            mask-position: 50% 30%;
  opacity: calc(var(--cv-art-op) * .8);
}
/* 鱼跃 */
.cv[data-cover="by-yuyue"] .cv__art {
  -webkit-mask-image: var(--tex-yu);         mask-image: var(--tex-yu);
  -webkit-mask-size: 62cqw 62cqw;            mask-size: 62cqw 62cqw;
  -webkit-mask-position: 50% 34%;            mask-position: 50% 34%;
  opacity: calc(var(--cv-art-op) * .8);
}
/* 如意头：顶部一排云头 */
.cv[data-cover="by-ruyi"] .cv__art {
  -webkit-mask-image: var(--tex-ruyi);       mask-image: var(--tex-ruyi);
  -webkit-mask-size: 26cqw 12.6cqw;          mask-size: 26cqw 12.6cqw;
  -webkit-mask-repeat: repeat-x;             mask-repeat: repeat-x;
  -webkit-mask-position: 50% 12%;            mask-position: 50% 12%;
  opacity: calc(var(--cv-art-op) * .75);
}

/* ———————————— 升学四式 ———————————— */
/* 蟾宫折桂 */
.cv[data-cover="s-zhegui"] .cv__art {
  -webkit-mask-image: var(--tex-gui);        mask-image: var(--tex-gui);
  -webkit-mask-size: 84cqw 84cqw;            mask-size: 84cqw 84cqw;
  -webkit-mask-position: 56% 36%;            mask-position: 56% 36%;
  opacity: calc(var(--cv-art-op) * .82);
}
/* 青云梯 */
.cv[data-cover="s-qingyun"] .cv__art {
  -webkit-mask-image: var(--tex-yunti);      mask-image: var(--tex-yunti);
  -webkit-mask-size: 74cqw 74cqw;            mask-size: 74cqw 74cqw;
  -webkit-mask-position: 50% 34%;            mask-position: 50% 34%;
  opacity: calc(var(--cv-art-op) * .78);
}
/* 书卷 */
.cv[data-cover="s-shujuan"] .cv__art {
  -webkit-mask-image: var(--tex-juan);       mask-image: var(--tex-juan);
  -webkit-mask-size: 46cqw 46cqw;            mask-size: 46cqw 46cqw;
  -webkit-mask-position: 50% 30%;            mask-position: 50% 30%;
  opacity: calc(var(--cv-art-op) * .75);
}
/* 修竹 */
.cv[data-cover="s-zhu"] .cv__art {
  -webkit-mask-image: var(--tex-zhu);        mask-image: var(--tex-zhu);
  -webkit-mask-size: 66cqw 66cqw;            mask-size: 66cqw 66cqw;
  -webkit-mask-position: 72% 40%;            mask-position: 72% 40%;
  opacity: calc(var(--cv-art-op) * .75);
}

/* ———————————— 乔迁四式 ———————————— */
/* 窗棂 */
.cv[data-cover="h-chuangling"] .cv__art {
  -webkit-mask-image: var(--tex-chuang);     mask-image: var(--tex-chuang);
  -webkit-mask-size: 16cqw 16cqw;            mask-size: 16cqw 16cqw;
  -webkit-mask-repeat: repeat;               mask-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .5);
}
/* 龟背纹 */
.cv[data-cover="h-guibei"] .cv__art {
  -webkit-mask-image: var(--tex-guibei);     mask-image: var(--tex-guibei);
  -webkit-mask-size: 11cqw 9.5cqw;           mask-size: 11cqw 9.5cqw;
  -webkit-mask-repeat: repeat;               mask-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .5);
}
/* 远山（带一轮月日） */
.cv[data-cover="h-shanshui"] .cv__art {
  -webkit-mask-image: var(--tex-shan);       mask-image: var(--tex-shan);
  -webkit-mask-size: 74cqw 44cqw;            mask-size: 74cqw 44cqw;
  -webkit-mask-position: 50% 76%;            mask-position: 50% 76%;
  opacity: calc(var(--cv-art-op) * .75);
}
/* 梁枋彩画：三道横枋 + 如意头节点（纯渐变，不占蒙版） */
.cv[data-cover="h-liangfang"] .cv__art {
  background-color: transparent;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 7cqw, var(--cv-line) 7cqw 7.6cqw, transparent 7.6cqw 13.6cqw, var(--cv-line) 13.6cqw 13.9cqw, transparent 13.9cqw 18cqw);
  opacity: calc(var(--cv-art-op) * .7);
}
.cv[data-cover="h-liangfang"] .cv__art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 26cqw;
  height: 10cqw;
  background:
    radial-gradient(6cqw 6cqw at 24% 100%, var(--cv-line) 98%, transparent),
    radial-gradient(6cqw 6cqw at 50% 100%, var(--cv-line) 98%, transparent),
    radial-gradient(6cqw 6cqw at 76% 100%, var(--cv-line) 98%, transparent);
  -webkit-mask: radial-gradient(6cqw 6cqw at 50% 100%, transparent 62%, #000 64%);
  mask: radial-gradient(6cqw 6cqw at 50% 100%, transparent 62%, #000 64%);
}

/* ———————————— 开业三式 ———————————— */
/* 铜钱纹 */
.cv[data-cover="bz-tongqian"] .cv__art {
  -webkit-mask-image: var(--tex-qian);       mask-image: var(--tex-qian);
  -webkit-mask-size: 15cqw 15cqw;            mask-size: 15cqw 15cqw;
  -webkit-mask-repeat: repeat;               mask-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .5);
}
/* 三叠金：底部三层拱弧 */
.cv[data-cover="bz-jinshan"] .cv__art {
  background-color: transparent;
  background-image:
    radial-gradient(58cqw 30cqw at 50% 118%, transparent 62%, var(--cv-line) 65%, transparent 68%),
    radial-gradient(76cqw 40cqw at 50% 122%, transparent 58%, var(--cv-line) 61%, transparent 64%),
    radial-gradient(94cqw 50cqw at 50% 126%, transparent 55%, var(--cv-line) 58%, transparent 61%);
  opacity: calc(var(--cv-art-op) * .85);
}

/* ———————————— 白事三式 ———————————— */
/* 素笺：只留双线框 */
.cv[data-cover="f-sujian"] .cv__art { display: none; }
.cv[data-cover="f-sujian"] .cv__frame {
  inset: 7cqw;
  box-shadow: inset 0 0 0 1px var(--cv-line-soft), 0 0 0 3cqw var(--cv-ring-glow), 0 0 0 calc(3cqw + 1px) var(--cv-line-soft);
}
.cv[data-cover="f-sujian"] .cv__band { display: none; }
/* 挽联：左右垂幡 */
.cv[data-cover="f-wanlian"] .cv__art { display: none; }
.cv[data-cover="f-wanlian"] .cv__band { display: none; }
.cv[data-cover="f-wanlian"] .cv__frame { inset: 5cqw; }
.cv[data-cover="f-wanlian"]::before,
.cv[data-cover="f-wanlian"]::after {
  content: "";
  position: absolute;
  top: 9cqw; bottom: 9cqw;
  width: 8cqw;
  background: linear-gradient(180deg, var(--cv-line-soft), transparent 14%, transparent 86%, var(--cv-line-soft));
  box-shadow: inset 0 0 0 1px var(--cv-line-soft);
  opacity: .8;
}
.cv[data-cover="f-wanlian"]::before { left: 6.5cqw; }
.cv[data-cover="f-wanlian"]::after  { right: 6.5cqw; }
/* 莲台：底部三层莲弧 */
.cv[data-cover="f-liantai"] .cv__art {
  background-color: transparent;
  background-image:
    radial-gradient(40cqw 22cqw at 50% 122%, transparent 60%, var(--cv-line) 63%, transparent 66%),
    radial-gradient(58cqw 30cqw at 50% 126%, transparent 60%, var(--cv-line) 63%, transparent 66%);
  opacity: calc(var(--cv-art-op) * .8);
}
.cv[data-cover="f-liantai"] .cv__band--b { display: none; }

/* ———————————— 日常三式 ———————————— */
/* 曲水：一行行浪头 */
.cv[data-cover="o-qushui"] .cv__art {
  background-color: transparent;
  background-image:
    radial-gradient(9cqw 4.5cqw at 50% 100%, transparent 55%, var(--cv-line) 57%, transparent 60%);
  background-size: 12cqw 6cqw;
  background-repeat: repeat;
  opacity: calc(var(--cv-art-op) * .55);
}
/* 素纹：细密斜织 */
.cv[data-cover="o-suwen"] .cv__art {
  background-color: transparent;
  background-image:
    repeating-linear-gradient(45deg, var(--cv-line) 0 0.6cqw, transparent 0.6cqw 2.6cqw),
    repeating-linear-gradient(-45deg, var(--cv-line) 0 0.6cqw, transparent 0.6cqw 2.6cqw);
  opacity: calc(var(--cv-art-op) * .34);
}

/* ———————————— 金框 / 回纹带 ———————————— */
.cv__frame {
  position: absolute;
  inset: 3.4cqw;
  border: var(--cv-ring) solid var(--cv-line-soft);
  box-shadow:
    inset 0 0 0 1px var(--cv-plate-ink),
    0 0 0 1.6cqw var(--cv-plate-glow),
    0 0 0 calc(1.6cqw + 1px) var(--cv-line-soft);
  pointer-events: none;
}
.cv__band {
  position: absolute;
  background-color: var(--cv-line);
  opacity: calc(var(--cv-art-op) * .62);
  pointer-events: none;
  -webkit-mask-image: var(--tex-huiwen-mask);
  mask-image: var(--tex-huiwen-mask);
  -webkit-mask-size: 4.4cqw 4.4cqw;
  mask-size: 4.4cqw 4.4cqw;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}
.cv__band--t { top: 4.6cqw; left: 5.4cqw; right: 5.4cqw; height: 4.4cqw; }
.cv__band--b { bottom: 4.6cqw; left: 5.4cqw; right: 5.4cqw; height: 4.4cqw; }
.cv__band--l { left: 4.6cqw; top: 5.4cqw; bottom: 5.4cqw; width: 4.4cqw; }
.cv__band--r { right: 4.6cqw; top: 5.4cqw; bottom: 5.4cqw; width: 4.4cqw; }

/* ———————————— 题字 / 副题 / 落款 ———————————— */
.cv__title {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row-reverse;
  gap: .06em;
  font-family: var(--f-xing);
  font-size: 17cqw;
  line-height: 1;
  letter-spacing: .04em;
  background: linear-gradient(178deg, var(--cv-title1) 0%, var(--cv-title2) 34%, var(--cv-title3) 74%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 1px var(--cv-title-sh1)) drop-shadow(0 0 3cqw var(--cv-title-sh2));
}
.cv__title span { writing-mode: vertical-rl; text-orientation: upright; }
.cv[data-len="3"] .cv__title { font-size: 14cqw; }
.cv[data-len="4"] .cv__title { font-size: 11.5cqw; }
.cv[data-len="5"] .cv__title { font-size: 9.6cqw; }
.cv[data-len="6"] .cv__title { font-size: 8.2cqw; }
/* 浅底封面的题字阴影、以及玄墨 / 白事的素银印章，都不在这里列举选择器 ——
   它们已改写成 --cv-title-sh1/2 与 --cv-seal-* 的**变量覆盖**，
   写在 styles/tokens.css 的对应配色块里（§11）。 */

.cv__sub {
  position: absolute;
  left: 13%;
  top: 26%;
  display: flex;
  flex-direction: row-reverse;
  gap: .9em;
  font-family: var(--f-kai);
  font-size: 3.6cqw;
  letter-spacing: .24em;
  color: var(--cv-text);
  text-shadow: 0 1px 2px var(--cv-sub-sh);
}
.cv__sub span { writing-mode: vertical-rl; text-orientation: upright; }

.cv__sign {
  position: absolute;
  left: 17%;
  bottom: 9%;
  display: flex;
  align-items: flex-end;
  gap: 2.4cqw;
}
.cv__sign-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-kai);
  font-size: 2.9cqw;
  letter-spacing: .22em;
  color: var(--cv-text);
  opacity: .9;
}
.cv__sign .seal {
  width: 11cqw;
  height: 11cqw;
  font-size: 4.6cqw;
  color: var(--cv-seal-ink);
  border-color: var(--cv-seal-edge);
  box-shadow: inset 0 0 0 1px var(--cv-seal-ring), 0 0 4cqw var(--cv-seal-glow);
  background: var(--cv-seal-bg);
  border-style: solid;
  border-width: max(1px, .55cqw);
}
/* ———————————— 书脊 / 书签 / 暗角 ———————————— */
.cv__spine {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6.2cqw;
  background: linear-gradient(270deg, var(--cv-spine-lo), var(--cv-spine-hi) 54%, transparent);
  border-left: var(--cv-ring) solid var(--cv-line-soft);
  pointer-events: none;
}
.cv__spine i {
  position: absolute;
  left: 50%;
  width: 1.7cqw;
  height: 1.7cqw;
  margin-left: -.85cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--cv-stud-a), var(--cv-stud-b));
  box-shadow: 0 0 0 1px var(--cv-line-soft), inset 0 1px 1px var(--cv-stud-glow);
}
.cv__spine i:nth-child(1) { top: 16%; }
.cv__spine i:nth-child(2) { top: 39%; }
.cv__spine i:nth-child(3) { top: 61%; }
.cv__spine i:nth-child(4) { top: 84%; }

.cv__thread {
  position: absolute;
  right: 2.1cqw;
  top: 16%;
  bottom: 16%;
  width: .5cqw;
  background: linear-gradient(180deg, transparent, var(--cv-line) 12%, var(--cv-line-soft) 50%, var(--cv-line) 88%, transparent);
  opacity: .8;
  pointer-events: none;
}

.cv__tag {
  position: absolute;
  right: 13%;
  bottom: 7%;
  padding: 3cqw 1.2cqw 4cqw;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-kai);
  font-size: 2.7cqw;
  letter-spacing: .18em;
  color: var(--cv-tag-ink);
  background: linear-gradient(180deg, var(--cv-tag-a), var(--cv-tag-b));
  box-shadow: 0 2cqw 4cqw -2cqw var(--cv-tag-sh), inset 0 0 0 1px var(--cv-tag-edge);
  opacity: .94;
}

.cv__vig {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(74% 64% at 46% 42%, transparent 36%, var(--cv-vig) 100%);
}

/* （原「极简款不加光扫」那条特例随 .foil 一起撤了 —— 光扫这一层已经不存在） */
