/* =========================================================
 * 本地证书页样式（还原自原站 certificate.css，样式哈希 data-v-ea8ed08d 已去除）
 * 原站资源路径 /assets/codes-a48b162a.png → 本地 ../assets/codes-bg.png
 * ========================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 证书展示区 ---------- */
.certificate { overflow: hidden; position: relative; }

.certificate .image {
  width: 1000px;
  height: 666px;
  margin: 20px auto;
  display: block;
}
@media (max-width: 800px) {
  .certificate .image { width: 100%; height: auto; }
}

/* ---------- 下载按钮（原站 el-button type=primary，站点主题为红色） ---------- */
.btn {
  position: fixed;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 9px 22px;
  font-size: 14px;
  color: #fff;
  background: #dd352e;
  border: 1px solid #dd352e;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}
.btn:hover { background: #c72e28; }

/* ---------- 离屏渲染的证书原始 DOM（html2canvas 截图对象） ---------- */
#codeMy {
  position: absolute;
  left: -999999px;
  width: 1000px;
  height: 666px;
  background: url(../assets/codes-bg.png);
  background-size: 100% 100%;
  padding: 100px 125px 0;
  margin: auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

#codeMy .hrefCode { position: absolute; bottom: 30px; left: 106px; }
#codeMy .img { position: absolute; bottom: -14px; right: 116px; }

#codeMy .h1 {
  color: #68719e;
  font-size: 35px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 65px;
}

#codeMy .box { position: relative; padding: 0 106px; }

#codeMy .box p,
#codeMy .box span {
  display: block;
  color: #000;
  font-size: 17px;
  font-weight: 500;
}
#codeMy .box p { margin-bottom: 20px; }

#codeMy .dt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 15px;
  grid-row-gap: 0px;
  margin-bottom: 20px;
}

#codeMy .dt.bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-right: -20px;
  margin-top: 102px;
}

#codeMy .dt .dl { display: flex; align-items: center; }
#codeMy .dt .dl .dtl { color: #000; font-size: 17px; font-weight: 500; }
#codeMy .dt .dl .dtr { color: #000; font-size: 15px; font-weight: 500; }

#codeMy .dt .right { display: flex; flex-direction: column; }
#codeMy .dt .right .fw { color: #000; font-size: 16px; }
#codeMy .dt .right .fw.time { display: flex; align-items: center; margin-top: 6px; }
#codeMy .dt .right .fw.time div { padding: 0 8px; }

/* ---------- 本地新增：证书信息编辑面板（原站没有） ---------- */
.editor {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 340px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  z-index: 999;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.editor-head button {
  border: none;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
}
.editor-body {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.editor-body label { display: flex; flex-direction: column; gap: 3px; color: #606266; }
.editor-body label.full { grid-column: 1 / -1; }
.editor-body input {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.editor-body input:focus { border-color: #dd352e; }
.editor-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; }
.editor-actions button {
  flex: 1;
  padding: 7px 0;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  background: #fff;
  cursor: pointer;
}
.editor-actions #applyBtn { background: #dd352e; border-color: #dd352e; color: #fff; }
.editor-actions #applyBtn:hover { background: #c72e28; }

.editor.collapsed .editor-body { display: none; }

/* ---------- 生成状态提示 ---------- */
#loadingTip {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
  z-index: 1000;
}

#codeMy{background-image:url(/assets/codes-bg.png);}
