/* ============ 证书容器与工具样式（由旧证书块收拢） ============ */
.cert-wrap{max-width:940px;margin:0 auto 40px;overflow-x:clip}
.cert-actions{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.cert-tip{text-align:center;font-size:12px;color:var(--muted);margin-top:14px}

/* ===== 小禾荣誉证书 · 禾穗印章版（深绿 + 烫金） ===== */
.certificate{
  padding:20px;border-radius:18px;
  background:linear-gradient(135deg,#e6efe6 0%,#fbfaf3 32%,#f4efdd 70%,#e3ecdf 100%);
  box-shadow:0 22px 56px rgba(28,70,44,.18);
}
.certificate::before{
  background:radial-gradient(circle at 8% 8%,rgba(255,255,255,.9),transparent 38%),
             radial-gradient(circle at 92% 92%,rgba(47,93,63,.1),transparent 42%);
}
.cert-frame{
  min-height:560px;padding:14px;border:2px solid #2f5d3f;border-radius:10px;
  background:linear-gradient(160deg,#fffefa 0%,#fffdf5 55%,#fbf8ec 100%);
}
.cert-frame::before{inset:9px;border:1px solid rgba(184,146,72,.72);border-radius:5px}
.cert-corner{width:44px;height:44px;border-color:#b89248;border-width:3px}
.cert-corner.tl{left:11px;top:11px}
.cert-corner.tr{right:11px;top:11px}
.cert-corner.bl{left:11px;bottom:11px}
.cert-corner.br{right:11px;bottom:11px}
.cert-grain{
  position:absolute;right:3%;top:50%;transform:translateY(-50%);
  width:310px;height:310px;color:rgba(47,93,63,.055);pointer-events:none;z-index:1;
}
.cert-grain svg{width:100%;height:100%;display:block}
.cert-inner{padding:32px 56px 28px}
.cert-top{gap:13px}
.cert-emblem{display:none}
.cert-crest{width:56px;height:56px;flex:0 0 auto;color:#b89248;display:grid;place-items:center}
.cert-crest svg{width:100%;height:100%;display:block}
.cert-brand b{font-size:15px;letter-spacing:5px;color:#234c34}
.cert-brand span{font-size:9.5px;letter-spacing:3px;color:#a98c55}
.cert-slogan{margin:10px 0 0;font-size:11px;letter-spacing:3px;color:#7f9a86}
.cert-title{margin:14px 0 4px;font-size:44px;letter-spacing:16px;color:#234c34}
.cert-title i{
  width:220px;height:3px;margin:13px auto 0;
  background:linear-gradient(90deg,transparent,#b89248 42%,#2f5d3f 50%,#b89248 58%,transparent);
}
.cert-en{margin:9px 0 20px;font-size:10.5px;letter-spacing:5px;color:#a98c55}
.cert-body{font-size:15.5px;color:#5c6b5e;line-height:2}
.cert-to strong{color:#1f4a32;font-size:25px;border-bottom-color:#b89248}
.cert-school{color:#6b7a72}
.cert-award{
  position:relative;margin:18px 0 10px;padding:12px 40px;
  font-family:var(--serif);font-size:30px;color:#6b4d18;letter-spacing:4px;
  border-radius:8px;border:1px solid #c9a65f;
  background:linear-gradient(135deg,#fffdf4,#f6ead0);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.8),0 6px 16px rgba(120,90,35,.12);
}
.cert-award::before,.cert-award::after{
  content:"";position:absolute;top:50%;width:26px;height:1px;background:#c9a65f;
}
.cert-award::before{left:-38px}
.cert-award::after{right:-38px}
.cert-award span{font-size:16px;color:#2f5d3f}
.contest-cert .cert-award::before,.contest-cert .cert-award::after{background:var(--award-color,#c9a65f)}
.cert-note{margin:0;font-size:14px;color:#8d7a5b}
.cert-growth{margin:9px 0 0;font-size:12.5px;letter-spacing:1px;color:#7f9a86;font-family:var(--serif)}
.cert-sign{margin:16px 0 0;text-align:right;margin-right:11%;font-size:14px;color:#47654f}
.cert-foot{
  margin:32px 11% 0;padding-top:14px;border-top:1px solid #c9a65f;
  font-size:12.5px;color:#6b7a72;
}
.cert-seal{
  right:9%;bottom:52px;width:112px;height:112px;border-radius:50%;
  border:3px double #2f5d3f;color:#2f5d3f;transform:rotate(-10deg);
  background:rgba(255,255,255,.62);box-shadow:0 0 0 5px rgba(47,93,63,.09);
}
.cert-seal::before{content:"";position:absolute;inset:7px;border:1px solid rgba(47,93,63,.42);border-radius:50%}
.cert-seal span{font-size:0}
.cert-seal .seal-crest{width:30px;height:30px;display:grid;place-items:center;color:#b89248}
.cert-seal .seal-crest svg{width:100%;height:100%;display:block}
.cert-seal b{font-size:12px;letter-spacing:1px;color:#1f4a32}
.cert-seal em{font-size:9px;letter-spacing:2px;color:#7f9a86}
@media(max-width:660px){
  .certificate{padding:8px;border-radius:10px}
  .cert-frame{min-height:470px;padding:8px}
  .cert-frame::before{inset:6px}
  .cert-corner{width:28px;height:28px;border-width:2px}
  .cert-grain{width:200px;height:200px;right:-8%}
  .cert-inner{padding:24px 16px}
  .cert-crest{width:40px;height:40px}
  .cert-brand b{font-size:12px;letter-spacing:3px}
  .cert-brand span{font-size:8px;letter-spacing:2px}
  .cert-slogan{font-size:9px;letter-spacing:1px}
  .cert-title{font-size:28px;letter-spacing:8px}
  .cert-en{font-size:8.5px;letter-spacing:3px;margin-bottom:16px}
  .cert-body{font-size:13px;line-height:1.9}
  .cert-to strong{font-size:20px}
  .cert-award{font-size:20px;padding:9px 16px;letter-spacing:2px}
  .cert-award::before,.cert-award::after{display:none}
  .cert-growth{font-size:11px}
  .cert-sign{font-size:12px}
  .cert-foot{margin:26px 0 0;font-size:11px}
  .cert-seal{width:74px;height:74px;right:5%;bottom:44px}
  .cert-seal .seal-crest{width:22px;height:22px}
  .cert-seal b{font-size:9px}
  .cert-seal em{font-size:7px}
}
@media print{
  .certificate{box-shadow:none;padding:0;background:#fff;border-radius:0}
  .cert-frame{border:2px solid #2f5d3f;background:#fff;min-height:170mm}
  .cert-grain{color:rgba(47,93,63,.06)}
  .cert-seal{opacity:.9}
}

/* 证书样式切换 */
.cert-style-switch{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px;font-size:12px;color:var(--muted)}
.cert-style-switch a{
  padding:5px 12px;border:1px solid var(--line);border-radius:99px;
  color:var(--ink);background:#fff;text-decoration:none;transition:.18s;
}
.cert-style-switch a:hover{border-color:var(--green);color:var(--green-deep)}
.cert-style-switch a.active{background:var(--green-deep);border-color:var(--green-deep);color:#fff}

/* 稿纸手札：像作业本上的一张认真批注 */
.certificate.cert-style-paper{padding:16px;border-radius:8px;background:#f1ede1;box-shadow:0 18px 44px rgba(70,70,50,.16)}
.certificate.cert-style-paper::before{background:none}
.cert-style-paper .cert-frame{
  min-height:560px;padding:12px;border:1px solid #9aa89a;border-radius:2px;
  background:repeating-linear-gradient(to bottom,#fffdf6 0 31px,rgba(47,93,63,.10) 31px 32px);
}
.cert-style-paper .cert-frame::before{inset:10px;border:1px solid rgba(47,93,63,.32);border-radius:0}
.cert-style-paper .cert-corner{width:28px;height:28px;border-color:#7f9a86;border-width:2px}
.cert-style-paper .cert-grain{color:rgba(47,93,63,.045);right:6%}
.cert-style-paper .cert-crest{color:#6d8a72}
.cert-style-paper .cert-brand b{color:#2c4234;letter-spacing:4px}
.cert-style-paper .cert-brand span{color:#8d9a8b}
.cert-style-paper .cert-slogan{color:#6d8a72}
.cert-style-paper .cert-title{color:#2c4234;font-size:40px;letter-spacing:12px}
.cert-style-paper .cert-title i{background:linear-gradient(90deg,transparent,#7f9a86,transparent)}
.cert-style-paper .cert-en{color:#90a08f}
.cert-style-paper .cert-body{color:#405046}
.cert-style-paper .cert-to strong{color:#1f4a32;border-bottom:1px dashed #7f9a86}
.cert-style-paper .cert-award{
  border:0;border-bottom:2px solid #7f9a86;border-radius:0;background:none;box-shadow:none;
  color:#1f4a32;font-size:30px;padding:8px 20px;
}
.cert-style-paper .cert-award::before,.cert-style-paper .cert-award::after{display:none}
.cert-style-paper .cert-award span{color:#b04a3f}
.cert-style-paper .cert-note{color:#7d8a7d}
.cert-style-paper .cert-growth{color:#6d8a72}
.cert-style-paper .cert-sign{color:#5c705f}
.cert-style-paper .cert-foot{border-top:1px dashed #9aa89a;color:#6b7a72}
.cert-style-paper .cert-seal{border-color:#b04a3f;color:#b04a3f;background:rgba(255,255,255,.5)}
.cert-style-paper .cert-seal::before{border-color:rgba(176,74,63,.4)}
.cert-style-paper .cert-seal b{color:#b04a3f}
.cert-style-paper .cert-seal em{color:#b04a3f}
.cert-style-paper .cert-seal .seal-crest{color:#b04a3f}

/* 金穗典藏：深绿金箔，适合大赛金银奖 */
.certificate.cert-style-gold{padding:18px;border-radius:14px;background:#173826;box-shadow:0 24px 58px rgba(12,38,24,.32)}
.certificate.cert-style-gold::before{background:radial-gradient(circle at 8% 8%,rgba(240,215,155,.12),transparent 40%),radial-gradient(circle at 92% 92%,rgba(240,215,155,.08),transparent 40%)}
.cert-style-gold .cert-frame{border:2px solid #d8b46a;background:#173826;min-height:560px}
.cert-style-gold .cert-frame::before{border:1px solid rgba(216,180,106,.45)}
.cert-style-gold .cert-corner{border-color:#d8b46a}
.cert-style-gold .cert-grain{color:rgba(216,180,106,.10)}
.cert-style-gold .cert-crest{color:#d8b46a}
.cert-style-gold .cert-brand b{color:#f4e4bd}
.cert-style-gold .cert-brand span{color:#c6a96e}
.cert-style-gold .cert-slogan{color:#9fbf9f}
.cert-style-gold .cert-title{color:#f0d79b}
.cert-style-gold .cert-title i{background:linear-gradient(90deg,transparent,#d8b46a,#f0d79b,#d8b46a,transparent)}
.cert-style-gold .cert-en{color:#c6a96e}
.cert-style-gold .cert-body{color:#e5e9dc}
.cert-style-gold .cert-to strong{color:#f4e4bd;border-bottom-color:#d8b46a}
.cert-style-gold .cert-award{color:#173826;border-color:#f0d79b;background:linear-gradient(135deg,#f4e4bd,#d8b46a);box-shadow:inset 0 0 0 3px rgba(255,255,255,.35),0 8px 20px rgba(0,0,0,.2)}
.cert-style-gold .cert-award::before,.cert-style-gold .cert-award::after{background:#d8b46a}
.cert-style-gold .cert-award span{color:#7a5a20}
.cert-style-gold .cert-note,.cert-style-gold .cert-growth{color:#bcd0b8}
.cert-style-gold .cert-sign{color:#e5e9dc}
.cert-style-gold .cert-foot{border-top-color:rgba(216,180,106,.5);color:#bcd0b8}
.cert-style-gold .cert-seal{border-color:#d8b46a;color:#d8b46a;background:rgba(23,56,38,.85)}
.cert-style-gold .cert-seal::before{border-color:rgba(216,180,106,.5)}
.cert-style-gold .cert-seal b{color:#f0d79b}
.cert-style-gold .cert-seal em{color:#c6a96e}
.cert-style-gold .cert-seal .seal-crest{color:#d8b46a}

/* 青禾水墨：淡青宣纸与朱红印章 */
.certificate.cert-style-ink{padding:18px;border-radius:12px;background:linear-gradient(135deg,#e7efec,#f9faf6 45%,#e3ece8);box-shadow:0 20px 50px rgba(40,90,75,.15)}
.cert-style-ink .cert-frame{border:1px solid #7c9a92;border-radius:6px;background:linear-gradient(160deg,#fcfdfb,#f1f7f4);min-height:560px}
.cert-style-ink .cert-frame::before{border:1px solid rgba(124,154,146,.5)}
.cert-style-ink .cert-corner{width:32px;height:32px;border-color:#7c9a92;border-width:2px}
.cert-style-ink .cert-grain{color:rgba(59,105,94,.075)}
.cert-style-ink .cert-crest{color:#3b695e}
.cert-style-ink .cert-brand b{color:#254a42}
.cert-style-ink .cert-brand span{color:#88a49c}
.cert-style-ink .cert-slogan{color:#6d8f86}
.cert-style-ink .cert-title{color:#254a42;font-family:var(--serif)}
.cert-style-ink .cert-title i{background:linear-gradient(90deg,transparent,#7c9a92,transparent)}
.cert-style-ink .cert-en{color:#88a49c}
.cert-style-ink .cert-body{color:#425a54}
.cert-style-ink .cert-to strong{color:#1f4a32;border-bottom-color:#7c9a92}
.cert-style-ink .cert-award{border-color:#7c9a92;color:#254a42;background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 3px rgba(255,255,255,.7)}
.cert-style-ink .cert-award::before,.cert-style-ink .cert-award::after{background:#7c9a92}
.cert-style-ink .cert-award span{color:#b04a3f}
.cert-style-ink .cert-note{color:#7b918a}
.cert-style-ink .cert-growth{color:#6d8f86}
.cert-style-ink .cert-sign{color:#3b695e}
.cert-style-ink .cert-foot{border-top-color:#7c9a92;color:#6d8f86}
.cert-style-ink .cert-seal{border-color:#b04a3f;color:#b04a3f;background:rgba(255,255,255,.5)}
.cert-style-ink .cert-seal::before{border-color:rgba(176,74,63,.42)}
.cert-style-ink .cert-seal b{color:#b04a3f}
.cert-style-ink .cert-seal em{color:#b04a3f}
.cert-style-ink .cert-seal .seal-crest{color:#b04a3f}

@media print{
  .certificate.cert-style-gold,.cert-style-gold .cert-frame{background:#fff}
  .cert-style-gold .cert-title{color:#234c34}
  .cert-style-gold .cert-body,.cert-style-gold .cert-sign{color:#5c6b5e}
  .cert-style-gold .cert-to strong{color:#1f4a32}
  .cert-style-gold .cert-brand b{color:#234c34}
  .cert-style-gold .cert-brand span,.cert-style-gold .cert-en{color:#a98c55}
  .cert-style-gold .cert-award{color:#6b4d18;background:#f6ead0;border-color:#c9a65f}
}

/* 证书落款避开印章；赛事名跟随各套配色 */
.cert-sign{margin-right:24%}
.cert-style-gold .cert-contest{color:#f0d79b}
.cert-style-paper .cert-contest{color:#1f4a32}
.cert-style-ink .cert-contest{color:#254a42}
@media(max-width:660px){.cert-sign{margin-right:20%}}

/* 锦带荣光：取传统获奖证书的角花与中心缎带，换成小禾深绿烫金 */
.certificate.cert-style-ribbon{padding:18px;border-radius:12px;background:#f7f4ea;box-shadow:0 20px 52px rgba(48,66,48,.16)}
.certificate.cert-style-ribbon::before{background:radial-gradient(circle at 50% 0,rgba(47,93,63,.10),transparent 58%)}
.cert-style-ribbon .cert-frame{border:1px solid #b9c8b5;background:#fffdf8;min-height:560px;overflow:hidden}
.cert-style-ribbon .cert-frame::before{inset:9px;border:1px solid rgba(47,93,63,.3);border-radius:2px}
.cert-style-ribbon .cert-corner{width:30px;height:30px;border:2px solid #b89248;border-radius:0;opacity:.85}
.cert-style-ribbon .cert-corner.tl{border-right:0;border-bottom:0;border-top-left-radius:10px}
.cert-style-ribbon .cert-corner.tr{border-left:0;border-bottom:0;border-top-right-radius:10px}
.cert-style-ribbon .cert-corner.bl{border-right:0;border-top:0;border-bottom-left-radius:10px}
.cert-style-ribbon .cert-corner.br{border-left:0;border-top:0;border-bottom-right-radius:10px}
.cert-style-ribbon .cert-grain{color:rgba(47,93,63,.05)}
.cert-style-ribbon .cert-crest{color:#b89248}
.cert-style-ribbon .cert-brand b{color:#234c34}
.cert-style-ribbon .cert-brand span{color:#a98c55}
.cert-style-ribbon .cert-slogan{color:#7f9a86}
.cert-style-ribbon .cert-title{color:#234c34}
.cert-style-ribbon .cert-title i{background:linear-gradient(90deg,transparent,#b89248,#2f5d3f,#b89248,transparent)}
.cert-style-ribbon .cert-en{color:#a98c55}
.cert-style-ribbon .cert-body{color:#5c6b5e}
.cert-style-ribbon .cert-to strong{color:#1f4a32;border-bottom-color:#b89248}
/* 中心缎带：赛事名一眼可见，两端折角 */
.cert-style-ribbon .cert-contest{
  position:relative;display:inline-block;margin:10px 0;padding:8px 32px;
  color:#fff;background:linear-gradient(180deg,#2f5d3f,#1c4630);
  font-size:15px;letter-spacing:2px;box-shadow:0 6px 14px rgba(23,56,38,.2);
}
.cert-style-ribbon .cert-contest::before,.cert-style-ribbon .cert-contest::after{
  content:"";position:absolute;top:100%;border-style:solid;
}
.cert-style-ribbon .cert-contest::before{left:0;border-width:9px 14px 9px 0;border-color:transparent #173826 transparent transparent}
.cert-style-ribbon .cert-contest::after{right:0;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #173826}
/* 普通荣誉的奖匾也走缎带质感 */
.cert-style-ribbon .cert-award{
  color:#fff;border-color:#b89248;background:linear-gradient(180deg,#2f5d3f,#1c4630);
  box-shadow:0 6px 14px rgba(23,56,38,.18);
}
.cert-style-ribbon .cert-award span{color:#f0d79b}
.cert-style-ribbon .cert-note{color:#8d7a5b}
.cert-style-ribbon .cert-growth{color:#7f9a86}
.cert-style-ribbon .cert-sign{color:#47654f}
.cert-style-ribbon .cert-foot{border-top-color:#b89248;color:#6b7a72}
.cert-style-ribbon .cert-seal{border-color:#b04a3f;color:#b04a3f;background:rgba(255,255,255,.6)}
.cert-style-ribbon .cert-seal::before{border-color:rgba(176,74,63,.4)}
.cert-style-ribbon .cert-seal b,.cert-style-ribbon .cert-seal em,.cert-style-ribbon .cert-seal .seal-crest{color:#b04a3f}
/* 底部弧带：取参考图的动势，改成淡金禾浪 */
.cert-style-ribbon .cert-frame::after{
  content:"";position:absolute;left:-4%;right:-4%;bottom:-10px;height:88px;z-index:0;
  background:linear-gradient(115deg,rgba(47,93,63,.10),rgba(184,146,72,.20));
  border-radius:62% 38% 0 0 / 100% 72% 0 0;transform:rotate(-3deg);pointer-events:none;
}
@media(max-width:660px){
  .cert-style-ribbon .cert-seal{width:60px;height:60px;right:4%;bottom:88px}
  .cert-style-ribbon .cert-seal .seal-crest{width:18px;height:18px}
  .cert-style-ribbon .cert-seal b{font-size:7px}
  .cert-style-ribbon .cert-seal em{font-size:6px}
}
@media print{
  .certificate.cert-style-ribbon,.cert-style-ribbon .cert-frame{background:#fff}
  .cert-style-ribbon .cert-contest,.cert-style-ribbon .cert-award{background:#f6ead0;color:#6b4d18;box-shadow:none}
  .cert-style-ribbon .cert-contest::before,.cert-style-ribbon .cert-contest::after,
  .cert-style-ribbon .cert-frame::after{display:none}
}

/* 证书底部：左侧验真二维码，右侧编号与日期，互不遮挡 */
.cert-foot{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap}
@media(max-width:660px){.cert-foot{gap:12px;font-size:10.5px}}

/* 扫码验真：放在证书左下角，与右下角印章错开 */
.cert-verify{
  position:absolute;left:4%;bottom:12px;z-index:3;
  display:flex;align-items:center;gap:6px;text-align:left;
}
.cert-qr{
  width:54px;height:54px;flex:0 0 54px;padding:3px;
  background:#fff;border:1px solid rgba(47,93,63,.28);border-radius:5px;
  box-shadow:0 3px 10px rgba(30,60,40,.12);
}
.cert-qr img,.cert-qr canvas{display:block;width:100%;height:100%;image-rendering:pixelated}
.cert-verify-text{display:flex;flex-direction:column;gap:1px;font-size:9px;color:var(--muted)}
.cert-verify-text b{font-size:11px;color:#2f5d3f;letter-spacing:.5px}
.cert-verify-text span{font-size:8.5px;letter-spacing:.2px}
.cert-style-paper .cert-verify-text b,.cert-style-ink .cert-verify-text b{color:#1f4a32}
.cert-style-gold .cert-verify-text b{color:#f0d79b}
.cert-style-gold .cert-verify-text span{color:#bcd0b8}
.cert-style-gold .cert-qr{border-color:rgba(216,180,106,.55)}
@media(max-width:660px){
  .cert-verify{left:4%;bottom:8px;gap:6px}
  .cert-qr{width:52px;height:52px;flex-basis:52px;padding:3px}
  .cert-verify-text b{font-size:10px}
  .cert-verify-text span{font-size:8px}
  .cert-foot{margin-left:26%;margin-right:0}
}
@media print{.cert-verify{bottom:10px}}

/* ============ 证书配色系统：60-30-10 素雅底 + 10% 低饱和撞色焦点 ============ */
.certificate{
  --ch-ink:#1f4a32;       /* 主色：深绿 */
  --ch-accent:#b89248;    /* 点缀：暖金 */
  --ch-seal:#a8433a;      /* 撞色焦点：朱砂红（绿 × 红） */
  --ch-soft:#6f8778;      /* 辅助文字 */
}
.certificate.cert-style-paper {--ch-ink:#2c4234;--ch-accent:#a86a3d;--ch-seal:#3f5f8a;--ch-soft:#78867a} /* 靛蓝 × 米黄 */
.certificate.cert-style-gold  {--ch-ink:#f0d79b;--ch-accent:#d8b46a;--ch-seal:#a8433a;--ch-soft:#bcd0b8} /* 酒红 × 深绿金 */
.certificate.cert-style-ink   {--ch-ink:#254a42;--ch-accent:#b04a3f;--ch-seal:#b04a3f;--ch-soft:#6d8f86} /* 朱砂 × 黛青 */
.certificate.cert-style-ribbon{--ch-ink:#1f4031;--ch-accent:#b08a4a;--ch-seal:#8f3e35;--ch-soft:#78877c} /* 绛红 × 墨绿 */

/* 印章：颜色跟随各套主色 */
.certificate .cert-seal{border-color:var(--ch-seal);color:var(--ch-seal)}
.certificate .cert-seal::before{border-color:var(--ch-seal);opacity:.45}
.certificate .cert-seal b,
.certificate .cert-seal em,
.certificate .cert-seal .seal-crest{color:var(--ch-seal)}

/* 撞色焦点延伸到奖匾：让对比有呼应，不只靠印章孤零零一点 */
.cert-style-grain .cert-award{border-color:#a8433a}
.cert-style-grain .cert-award span{color:#a8433a}
.cert-style-paper .cert-award{border-bottom-color:#3f5f8a}
.cert-style-paper .cert-award span{color:#3f5f8a}
.cert-style-ink .cert-award{border-color:#b04a3f}
.cert-style-ribbon .cert-award{
  color:#fff;border-color:#d0a86a;
  background:linear-gradient(180deg,#9c4438,#7d352c);
  box-shadow:0 6px 14px rgba(90,35,28,.18);
}
.cert-style-ribbon .cert-award span{color:#f0d79b}

/* 角花、纹章、内框、标题线：统一点缀色 */
.certificate .cert-corner{border-color:var(--ch-accent)}
.certificate .cert-crest{color:var(--ch-accent)}
.certificate .cert-frame::before{border-color:var(--ch-accent);opacity:.72}
.certificate .cert-title i{
  background:linear-gradient(90deg,transparent,var(--ch-accent),var(--ch-ink),var(--ch-accent),transparent);
}
/* 角花加一颗小菱点，比纯线条精致 */
.certificate .cert-corner::after{
  content:"";position:absolute;width:5px;height:5px;background:var(--ch-accent);
  transform:rotate(45deg);opacity:.85;
}
.certificate .cert-corner.tl::after{right:4px;bottom:4px}
.certificate .cert-corner.tr::after{left:4px;bottom:4px}
.certificate .cert-corner.bl::after{right:4px;top:4px}
.certificate .cert-corner.br::after{left:4px;top:4px}

/* 文字层级：标题重、辅助柔，正文保持深色 */
.certificate .cert-title,
.certificate .cert-to strong,
.certificate .cert-brand b{color:var(--ch-ink)}
.certificate .cert-slogan,
.certificate .cert-brand span,
.certificate .cert-en,
.certificate .cert-note,
.certificate .cert-growth,
.certificate .cert-foot{color:var(--ch-soft)}

/* 锦带荣光的弧带收成单色淡金，去掉红绿混杂 */
.cert-style-ribbon .cert-frame::after{
  background:linear-gradient(115deg,rgba(176,138,74,.10),rgba(176,138,74,.20));
}



/* ============ 柔和版配色：同色系微差，不再红绿硬撞 ============ */
.certificate{
  --ch-ink:#254a38;
  --ch-accent:#a99570;
  --ch-seal:#b35046;
  --ch-soft:#75887a;
}
.certificate.cert-style-grain {--ch-ink:#254a38;--ch-accent:#a99570;--ch-seal:#b35046;--ch-soft:#75887a}
.certificate.cert-style-paper {--ch-ink:#33493b;--ch-accent:#9b8e74;--ch-seal:#a85a52;--ch-soft:#7f8b80}
.certificate.cert-style-gold  {--ch-ink:#e7d7ae;--ch-accent:#cbb27e;--ch-seal:#c17066;--ch-soft:#bccbb9}
.certificate.cert-style-ink   {--ch-ink:#2b4c45;--ch-accent:#9a8574;--ch-seal:#ad4f46;--ch-soft:#779087}
.certificate.cert-style-ribbon{--ch-ink:#2b4a39;--ch-accent:#a59370;--ch-seal:#a85349;--ch-soft:#7c8a7f}

/* 先前散落的硬色统一收回柔和焦点色 */
.cert-style-grain .cert-award span{color:var(--ch-seal)}
.cert-style-paper .cert-award span{color:var(--ch-seal)}
.cert-style-ink .cert-award span{color:var(--ch-seal)}
.cert-style-ribbon .cert-award span{color:#fff6e6}
.certificate .cert-seal{
  border-color:var(--ch-seal);color:var(--ch-seal);
  opacity:.92;box-shadow:0 0 0 4px rgba(120,100,80,.07)
}
.certificate .cert-seal::before{border-color:var(--ch-seal);opacity:.35}
.certificate .cert-seal b,
.certificate .cert-seal em,
.certificate .cert-seal .seal-crest{color:var(--ch-seal)}
.cert-style-paper .cert-seal,
.cert-style-ink .cert-seal,
.cert-style-ribbon .cert-seal{background:rgba(255,255,255,.58)}
.cert-style-ribbon .cert-award{
  color:#fff8ea;border-color:#c3ab84;
  background:linear-gradient(180deg,#a17e6d,#8d6a5b);
  box-shadow:0 5px 12px rgba(96,70,58,.13);
}
.cert-style-ribbon .cert-contest{
  background:linear-gradient(180deg,#3c634b,#2e4e3c);
}
.cert-style-ribbon .cert-contest::before{border-color:transparent #2e4e3c transparent transparent}
.cert-style-ribbon .cert-contest::after{border-color:transparent transparent transparent #2e4e3c}
.cert-style-paper .cert-to strong{border-bottom-color:#a9b3a4}
.cert-style-paper .cert-award{border-bottom-color:var(--ch-seal)}

/* 稿纸手札：横线由每 32px 一条降到每 88px 一条，加禾叶暗纹 */
.certificate.cert-style-paper{padding:14px;background:#f2efe5}
.cert-style-paper .cert-frame{
  border-color:#bdc6b9;
  background-color:#fffdf7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%236d8a72' stroke-opacity='.24' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M8 82 C24 62 26 36 18 12'/%3E%3Cpath d='M19 54 C7 50 4 40 6 32 C15 36 19 44 19 54Z'/%3E%3Cpath d='M22 40 C34 36 38 26 36 18 C27 22 23 30 22 40Z'/%3E%3Cpath d='M16 68 C4 66 0 58 2 50 C11 54 15 60 16 68Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%236d8a72' stroke-opacity='.24' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M8 82 C24 62 26 36 18 12'/%3E%3Cpath d='M19 54 C7 50 4 40 6 32 C15 36 19 44 19 54Z'/%3E%3Cpath d='M22 40 C34 36 38 26 36 18 C27 22 23 30 22 40Z'/%3E%3Cpath d='M16 68 C4 66 0 58 2 50 C11 54 15 60 16 68Z'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom,transparent 0 87px,rgba(88,112,94,.055) 87px 88px);
  background-position:14px 14px,calc(100% - 14px) calc(100% - 14px),0 0;
  background-size:92px 92px,92px 92px,auto;
  background-repeat:no-repeat,no-repeat,repeat;
}
.cert-style-paper .cert-frame::before{border-color:rgba(109,138,114,.35);opacity:.6}
.cert-style-paper .cert-grain{color:rgba(109,138,114,.045)}
.cert-style-paper .cert-foot{border-top-color:#c2ccc0}

