/* ============================================================
   C50 认证视觉系统 v1 —— 一套视觉系统，三处共用
   （认证证书 / 榜上有名金小人企业卡 / C50认证体系标识 L1·L2·L3）

   规格依据：
   - C004--C50证书 PC端施工图（A4横版，2026.08.4）
   - C004-《榜上有名》定位（2026.07.29）—— 红(认可)+金(品质)主调
   配色：深蓝 + 金 + 红
   ============================================================ */

/* ============================================================
   证书模板版（v1.3）：以馆长交付《C50认证证书》模板图打底，
   动态字段（企业名称/证书编号/认证日期/L徽章）按百分比覆盖。
   坐标依据模板 1492×1054 实测，随证书整体等比缩放。
   ============================================================ */
.cert-a4.tpl {
  aspect-ratio: 1492 / 1054;          /* 模板真实比例 */
  background: #081426;                /* 深蓝底（模板四边） */
  container-type: inline-size;        /* 支持 cqw 单位，字段随证书缩放 */
}
.cert-a4.tpl .c4-tpl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}
.c4-ov {
  position: absolute;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 企业名称（覆盖模板样例名"某某科技有限公司"，深蓝字；文字居中于 54%，贴合模板） */
.c4-ov-name {
  left: 34%;
  right: 26%;
  top: 39.5%;
  height: 6.5%;
  color: #1e2d3f;
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  white-space: nowrap;
  background: #fefdf8;                /* 同模板纸色，遮盖样例名 */
}

/* 证书编号（覆盖样例 C50-00X，金色字；字号贴合模板：7字符≈1.6cqw/字）
   v17：位置下移至模板样例值实际所在（y≈71.8%-74.6%），消除“真值在上、样例在下”的重复 */
.c4-ov-code {
  left: 13.5%;
  width: 17%;
  top: 70.8%;
  height: 6.2%;
  color: #b98b49;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.6cqw;
  background: #fefdf8;
}

/* 认证日期（覆盖样例日期，金色字；字号贴合模板：11字符≈1.05cqw/字）
   v17：位置下移至模板样例日期实际所在（y≈80.9%-82.8%） */
.c4-ov-date {
  left: 13.5%;
  width: 17%;
  top: 80.2%;
  height: 6%;
  color: #b98b49;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.05cqw;
  background: #fefdf8;
}

/* L等级徽章（覆盖样例徽章，含外层金环；奶油椭圆打底后置入真实徽章）
   v17：由 24cqw 圆改为贴合模板外环的椭圆（22×17cqw，约 24% 高），
   不再遮挡徽章上下的副标题与底部 ENTERPRISE 字样 */
.c4-ov-badge {
  left: 53.85%;
  top: 68.4%;
  transform: translate(-50%, -50%);
  width: 22cqw;
  height: 17cqw;
  border-radius: 50%;
  background: #fefdf8;
  z-index: 2;
}
.c4-ov-badge .c50-badge-img,
.c4-ov-badge svg {
  width: 85% !important;
  height: auto !important;
}

/* 移动端：证书整体等比缩放即可，无需改布局；仅保证图片不溢出圆角 */
@media (max-width: 520px) {
  .cert-a4.tpl { aspect-ratio: 1492 / 1054; }
}

/* ---------- 徽章：三枚统一成形（圆形 + 金属浮雕，C50认证体系标识 V1.0） ---------- */
.c50-badge {
  display: inline-block;
  vertical-align: middle;
}
.c50-badge.is-L1 { filter: drop-shadow(0 4px 8px rgba(59, 109, 184, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.c50-badge.is-L2 { filter: drop-shadow(0 4px 8px rgba(224, 185, 86, 0.50)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.c50-badge.is-L3 { filter: drop-shadow(0 4px 10px rgba(212, 163, 44, 0.60)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }

/* ---------- 金小人 ---------- */
.gold-figure {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.35));
}

/* ============================================================
   A4横版 认证证书（企业价值资产证明）
   版式：深蓝 + 金色，商业权威，科技数据库感
   ============================================================ */
.cert-a4 {
  --ca4-bg: #081426;
  --ca4-bg2: #040b18;
  --ca4-frame: #c9a84c;
  --ca4-frame-soft: rgba(201, 168, 76, 0.35);
  --ca4-gold: #d4b45c;
  --ca4-gold-light: #e8cf8a;
  --ca4-ink: #f3ead2;
  --ca4-ink-dim: #9fa8ba;
  --ca4-red: #c0392b;

  position: relative;
  margin: 0 auto;
  max-width: 720px;
  aspect-ratio: 297 / 210;              /* A4横版比例 */
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(70, 100, 190, 0.16) 0%, transparent 55%),
    radial-gradient(80% 70% at 100% 110%, rgba(201, 168, 76, 0.14) 0%, transparent 60%),
    linear-gradient(150deg, #0d1d38 0%, var(--ca4-bg) 55%, var(--ca4-bg2) 100%);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(201, 168, 76, 0.14);
  overflow: hidden;
  color: var(--ca4-ink);
  font-family: var(--font-sans, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif);
}

/* 数据网格底纹（科技数据库感，极淡） */
.cert-a4::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* 双线金框 */
.cert-a4 .c4-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--ca4-frame-soft);
  border-radius: 8px;
  padding: 4px;
  z-index: 1;
}
.cert-a4 .c4-frame-inner {
  position: relative;
  height: 100%;
  border: 1.5px solid rgba(212, 180, 92, 0.7);
  border-radius: 5px;
  padding: 18px 26px 16px;
  box-sizing: border-box;
  background: rgba(4, 10, 22, 0.22);
}

/* 四角菱形点缀 */
.cert-a4 .c4-frame::after,
.cert-a4 .c4-frame-inner::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--ca4-gold-light), var(--ca4-frame));
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(212, 180, 92, 0.8);
}
.cert-a4 .c4-frame::after { top: -5px; right: -5px; }
.cert-a4 .c4-frame-inner::after { bottom: -5px; left: -5px; }

/* ① LOGO（左上，小，不抢主标题） */
.c4-logo {
  position: absolute;
  top: 14px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ca4-gold-light);
  font-weight: 800;
}
.c4-logo .c4-logo-seal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ca4-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ca4-gold-light);
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.c4-logo .c4-logo-sub {
  display: block;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: var(--ca4-ink-dim);
  font-weight: 500;
  margin-top: 2px;
}

/* ② 主标题（居中） */
.c4-title {
  text-align: center;
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--ca4-gold-light);
  margin: 0;
  padding-top: 4px;
  text-shadow: 0 0 22px rgba(201, 168, 76, 0.4);
}
.c4-title-en {
  text-align: center;
  font-size: clamp(7px, 1.2vw, 11px);
  letter-spacing: 5px;
  color: var(--ca4-ink-dim);
  margin: 3px 0 0;
  text-indent: 5px;
  text-transform: uppercase;
}

/* ③ 副标语 */
.c4-slogan {
  text-align: center;
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: 3px;
  color: var(--ca4-ink);
  margin: 14px 0 0;
}
.c4-slogan b { color: var(--ca4-gold-light); font-weight: 700; }

/* 主体区：左（企业信息）+ 右（徽章） */
.c4-body {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 84px;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ④ 企业名称（视觉中心） */
.c4-ent {
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-size: clamp(17px, 3.2vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ca4-ink);
  text-align: center;
  padding: 0 10px;
  word-break: break-all;
  position: relative;
}
.c4-ent::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--ca4-gold), transparent);
}

/* ⑤ L 等级徽章（右，60×60mm 比例） */
.c4-badge {
  flex-shrink: 0;
  text-align: center;
  margin-left: 6px;
}
.c4-badge .c4-badge-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ca4-gold-light);
  margin-top: 4px;
  font-weight: 700;
}

/* ⑥⑦ 数据区：企业编号（=证书编号）+ 认证日期 */
.c4-data {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: center;
  margin-top: 18px;
  text-align: center;
}
.c4-data .cd-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ca4-ink-dim);
  margin-bottom: 3px;
}
.c4-data .cd-val {
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ca4-gold-light);
  font-family: Georgia, "Noto Serif SC", serif;
}

/* ⑧ 底部档案字样 */
.c4-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: clamp(9px, 1.4vw, 12px);
  letter-spacing: 4px;
  color: var(--ca4-ink-dim);
}
.c4-foot b { color: var(--ca4-gold-light); font-weight: 700; letter-spacing: 2px; }

/* 移动端：A4横版证书在窄屏改为流式竖排，避免文字与徽章重叠 */
@media (max-width: 520px) {
  .cert-a4 { aspect-ratio: auto; }                          /* 取消固定A4比例，高度随内容自适应 */
  .cert-a4 .c4-frame { position: static; margin: 10px; }    /* 双线框改流式 */
  .cert-a4 .c4-frame-inner {
    height: auto;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .c4-logo { position: static; margin-bottom: 6px; }        /* LOGO 流式置顶 */
  .c4-title { font-size: 20px; letter-spacing: 3px; }
  .c4-slogan { margin-top: 10px; }
  .c4-body {                                                 /* 主体改竖排：企业名→徽章→编号 */
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 12px 0 6px;
  }
  .c4-ent { font-size: 17px; padding: 0 4px; }
  .c4-badge { margin-left: 0; }
  .c4-badge svg { width: 52px !important; height: auto !important; }
  .c4-data { flex-direction: column; gap: 8px; margin-top: 4px; }
  .c4-foot { position: static; margin-top: 8px; }
  .c4-logo .c4-logo-sub { display: none; }
}

/* ============================================================
   榜上有名 · 金小人企业卡
   规格：企业名称 / 行业分类 / 认证等级 / CT指数 / 认证时间
   配色：红（认可·传播）主调 + 金（品质·稀缺）辅助
   ============================================================ */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

/* 榜单企业卡 = 『上榜了』新款展示卡模板（横版 3:2）· 点击查看认证证书 */
.rank-card.rank-showcase {
  background: none;
  border: none;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rank-card.rank-showcase::before { display: none; }
.rank-card.rank-showcase:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.rank-card.rank-showcase .gf-card.tpl { border-radius: 14px; }
.rank-card-cta {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #141c2c;
  white-space: nowrap;
  background: linear-gradient(180deg, #f2d67a 0%, #d9b654 48%, #b5943c 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(122, 92, 28, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  z-index: 3;
}
.rank-card.rank-showcase:hover .rank-card-cta { opacity: 1; }
@media (max-width: 520px) {
  .rank-grid { grid-template-columns: 1fr; }
}
/* 移动端无 hover：提示条常显 */
@media (max-width: 768px) {
  .rank-card-cta { opacity: 0.92; }
}

.rank-card {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, #331014 0%, #1a0a0d 78%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
/* 顶部红色光带 */
.rank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c0392b 30%, #e8cf8a 70%, transparent);
}

.rank-card-figure {
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4px;
}
.rank-card-figure .gold-figure { width: 58px; height: auto; }

.rank-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e8cf8a;
}
.rank-card-tag .c50-badge { width: 22px !important; height: auto !important; }

.rank-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 3px;
}
.rank-card-industry {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.rank-card-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  padding-top: 8px;
  font-size: 10px;
  color: rgba(232, 207, 138, 0.85);
}
.rank-card-meta .rcm span { color: rgba(255, 255, 255, 0.5); }
.rank-card-channel {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ============================================================
   《"上榜了"小金人展示卡》—— 9:16 竖版 企业价值身份传播卡
   规格：C004-一《"上榜了"小金人展示卡开发文档》V1.0（2026.08.04）
   视觉：深蓝(商业权威) + 金(认证价值) + 紫红(品牌点缀)
   ============================================================ */
.gf-card {
  --gf-bg: #081426;
  --gf-bg2: #040b18;
  --gf-frame: #c9a84c;
  --gf-frame-soft: rgba(201, 168, 76, 0.35);
  --gf-gold: #d4b45c;
  --gf-gold-light: #e8cf8a;
  --gf-ink: #f3ead2;
  --gf-ink-dim: #9fa8ba;
  --gf-violet: #9c3a5c;   /* 紫红 · 品牌点缀 */

  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 9 / 16;             /* 9:16 竖版 */
  margin: 0 auto;
  background:
    radial-gradient(120% 90% at 50% -8%, rgba(120, 90, 190, 0.18) 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 112%, rgba(201, 168, 76, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #0d1d38 0%, var(--gf-bg) 52%, var(--gf-bg2) 100%);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(201, 168, 76, 0.16);
  overflow: hidden;
  color: var(--gf-ink);
  font-family: var(--font-sans, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif);
  box-sizing: border-box;
}
.gf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.gf-inner {
  position: relative;
  height: 100%;
  margin: 8px;
  border: 1px solid var(--gf-frame-soft);
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(4, 10, 22, 0.22);
  z-index: 1;
}
/* 四角菱形 */
.gf-inner::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--gf-gold-light), var(--gf-frame));
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(212, 180, 92, 0.8);
}

/* 顶部品牌区（小，不抢企业主体） */
.gf-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.gf-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gf-ink-dim);
}
.gf-brand-seal {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gf-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gf-gold-light);
  font-style: normal;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.gf-chip {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gf-gold-light);
  border: 1px solid rgba(212, 180, 92, 0.5);
  border-radius: 20px;
  padding: 2px 9px;
}

/* ① 金小人（中央偏上） */
.gf-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 118px;
  margin-top: 4px;
}
.gf-figure .gold-figure { width: 96px; height: auto; }

/* ② 榜单标题 */
.gf-title {
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--gf-gold-light);
  margin: 2px 0 0;
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.5);
}
.gf-subtitle {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gf-ink-dim);
  margin: 3px 0 0;
  text-indent: 3px;
}

/* ③ 企业名称（整张卡视觉第一信息，最大字号） */
.gf-name {
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  color: var(--gf-ink);
  margin: 14px 0 10px;
  padding: 0 6px;
  word-break: break-all;
  position: relative;
}
.gf-name::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--gf-gold), transparent);
}

/* 六、企业信息区域 */
.gf-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.gf-code,
.gf-industry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--gf-gold-light);
  letter-spacing: 1px;
}
.gf-code span,
.gf-industry span {
  font-size: 10px;
  font-weight: 500;
  color: var(--gf-ink-dim);
  letter-spacing: 2px;
}
.gf-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gf-gold-light);
  letter-spacing: 1px;
}
.gf-level-badge { display: inline-flex; }
.gf-level-badge .c50-badge { width: 26px !important; height: auto !important; }

/* 企业价值标签（≤3个） */
.gf-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gf-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gf-gold-light);
  border: 1px solid rgba(212, 180, 92, 0.4);
  border-radius: 20px;
  padding: 3px 11px;
  background: rgba(201, 168, 76, 0.08);
}

/* 底部档案字样 */
.gf-foot {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gf-ink-dim);
  text-align: center;
}
.gf-foot b { color: var(--gf-gold-light); letter-spacing: 1.5px; font-weight: 700; }

/* ============================================================
   『上榜了』小金人展示卡 · 模板版（v1.4 · 2026.08.05）
   以馆长交付《榜上有名》小金人展示卡模板图（1536×1024 横版）打底，
   动态字段（企业名称/认证等级/行业领域/企业编号/认证日期）按模板坐标以百分比覆盖。
   深色底 + 金色（与模板一致），支持 cqw 随卡缩放。
   ============================================================ */
.gf-card.tpl {
  width: 100%;                        /* 撑满容器（覆盖 .gf-card 固定 300px） */
  max-width: 100%;
  aspect-ratio: 1536 / 1024;          /* 模板真实比例（横版） */
  background: #0b0b08;                /* 模板深底 */
  container-type: inline-size;        /* 支持 cqw 单位，字段随卡缩放 */
}
.gf-card.tpl .gf-tpl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}
.gf-ov {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

/* 企业名称（覆盖样例"某某科技有限公司"，金色字；居中于 62.5%，贴合模板） */
.gf-ov-name {
  left: 40%;
  width: 45%;
  top: 22.3%;
  height: 8.6%;
  color: #c2a76a;
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  font-weight: 800;
  letter-spacing: 1px;
  background: #0b0b08;
}

/* 右侧信息值（覆盖样例"L2 优质企业/科技服务/C50-X002/2026·05·20"，白色字；左对齐于 71.4%） */
.gf-ov-val {
  left: 65%;
  width: 25%;
  height: 8.5%;
  color: #e6e6e6;
  font-weight: 700;
  justify-content: flex-start;
  padding-left: 4.4cqw;
  background: #0b0b08;
}
.gf-ov-level { top: 36.7%; }
.gf-ov-industry { top: 44.7%; }
.gf-ov-code,
.gf-ov-date { font-family: Georgia, "Noto Serif SC", serif; }
.gf-ov-code { top: 52.7%; }
.gf-ov-date { top: 60.7%; }

/* ---------- 『上榜了』展示卡 弹窗（榜上有名 · 点击金小人企业卡弹出） ---------- */
.gf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: gfFade .2s ease;
}
.gf-modal-box {
  position: relative;
  max-width: 660px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(120, 90, 190, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, #0d1d38 0%, #081426 60%, #040b18 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  animation: gfUp .22s ease;
}
.gf-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #c9a84c;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.gf-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}
/* 展示卡容器：PC 放大到 600px，移动端占满弹窗 */
.gf-modal-box .gf-card-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
/* 认证证书弹窗容器：证书模板 720px */
.gf-modal-box.gf-cert-box {
  max-width: 780px;
}
.gf-modal-box .gf-cert-wrap {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.gf-modal-hint {
  margin: 12px 0 2px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(232, 207, 138, 0.7);
}
@keyframes gfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   认证企业详情页（/certified/:code · 展示卡 + 证书 + 报告）
   ============================================================ */
.cert-page {
  padding-bottom: 64px;
}
.cert-back-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px 0;
}
.cert-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all .18s ease;
}
.cert-back-link:hover {
  color: var(--clr-gold);
  border-color: rgba(201, 168, 76, 0.4);
}

.cert-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 20px 6px;
  text-align: center;
}
.cert-hero-badge { display: inline-block; margin-bottom: 8px; }
.cert-hero-badge img,
.cert-hero-badge svg { border-radius: 50%; }
.cert-hero-name {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
  font-family: var(--font-serif, Georgia, "Noto Serif SC", serif);
  letter-spacing: 2px;
}
.cert-hero-code {
  font-size: 14px;
  color: var(--clr-gold);
  letter-spacing: 3px;
  font-family: Georgia, "Noto Serif SC", serif;
}
.cert-hero-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.05);
}
.cert-hero-meta span { font-size: 13px; color: var(--clr-text-muted); }
.cert-hero-meta b { color: var(--clr-gold); font-weight: 800; }

.cert-showcase-wrap { max-width: 640px; margin: 26px auto 0; padding: 0 16px; }
.cert-cert-wrap   { max-width: 800px; margin: 26px auto 0; padding: 0 16px; }
.cert-report      { max-width: 920px; margin: 0 auto; padding: 0 16px; }

.cert-showcase-wrap .gf-card-wrap { max-width: 620px; }
.cert-cert-wrap .gf-cert-wrap { max-width: 760px; }
.cert-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(232, 207, 138, 0.7);
}

.cert-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 920px;
  margin: 34px auto 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.cert-section-label::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f2d67a, #b5943c);
}
.cert-report .diag-report-chapter {
  background: rgba(255, 255, 255, 0.02);
}

/* 力哥拆解块 + 对比AI */
.cert-chapter-human {
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(201, 168, 76, 0.05);
}
.cert-chapter-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #c9a84c;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.cert-chapter-text {
  font-size: 13px;
  color: var(--clr-text-secondary);
  line-height: 1.8;
  margin: 0;
}
.cert-chapter-human .cert-chapter-text { color: #fff; }
.cert-toggle-ai {
  font-size: 11px;
  color: var(--clr-text-muted);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}
.cert-toggle-ai:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cert-ai-draft {
  font-size: 12px;
  color: var(--clr-text-dim);
  line-height: 1.8;
  margin: 8px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0 16px;
}
@media (max-width: 520px) {
  .cert-hero-name { font-size: 24px; }
  .cert-hero-meta { gap: 10px 16px; padding: 10px 14px; }
}
