/*
 * 职业技术认证项目页的补充版式。
 *
 * 只加 geo-page.css 里没有的几种块，其余（顶栏、标题区、正文分节、右侧栏、
 * 深色页脚、表格、FAQ）全部沿用 gp-* ——这批页面和软考事实源页是同一套骨架，
 * 不另起一套。类名统一 ct- 前缀，必须与 geo-page.css 一起引入。
 *
 * 新增的块：
 *   .ct-grid      六大方向的入口网格（首页用）
 *   .ct-price     初/中/高三档价格卡
 *   .ct-cert      证书样本图 + 说明的左右版
 *   .ct-track     基础理论 / 技术基础 / 案例应用 三层课程结构
 *   .ct-works     案例作品清单
 *   .ct-form      留资表单
 *   .ct-service   客服联系方式
 */

/* ---- 六大方向网格 ---- */

.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ct-grid > a {
  display: block;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ct-grid > a:hover {
  border-color: #c7d6f5;
  background: #fafcff;
  box-shadow: 0 6px 16px rgba(31, 45, 61, 0.07);
}

.ct-grid-no {
  display: inline-block;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f0f7ff;
  color: #2f6aff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.ct-grid b {
  display: block;
  margin: 10px 0 0;
  color: #1c2e4a;
  font-size: 17px;
}

.ct-grid em {
  display: block;
  margin-top: 4px;
  color: #2f5fd0;
  font-size: 13px;
  font-style: normal;
}

.ct-grid p {
  margin: 10px 0 0;
  color: #56647a;
  font-size: 14px;
  line-height: 1.75;
}

.ct-grid small {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f2f4f8;
  color: #7a8aa2;
  font-size: 12px;
}

/* ---- 三档价格 ---- */

.ct-price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ct-price-item {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #ffffff;
}

/* 中级是三档里报考最多的一档，给个描边区分，不做「推荐」这类促销标签 */
.ct-price-item.on {
  border-color: #c7d6f5;
  background: #fafcff;
}

.ct-price-level {
  color: #1c2e4a;
  font-size: 16px;
  font-weight: 700;
}

.ct-price-num {
  margin-top: 12px;
  color: #1c2e4a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ct-price-num i {
  margin-right: 2px;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
}

.ct-price-item ul {
  flex: 1 1 auto;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ct-price-item li {
  position: relative;
  padding-left: 16px;
  color: #56647a;
  font-size: 13px;
  line-height: 1.85;
}

.ct-price-item li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7d6f5;
}

.ct-price-cta {
  display: block;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2f6aff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease;
}

.ct-price-cta:hover {
  background: #1f4fd8;
}

.ct-price-note {
  margin-top: 12px;
  color: #7a8aa2;
  font-size: 13px;
}

/* ---- 证书样本 ---- */

.ct-cert {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #fafbfc;
}

.ct-cert img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  background: #ffffff;
}

.ct-cert-body p {
  margin: 0 0 0;
  color: #56647a;
  font-size: 14px;
  line-height: 1.9;
}

.ct-cert-body p + p {
  margin-top: 10px;
}

.ct-cert-body dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0 0 14px;
}

.ct-cert-body dt {
  color: #7a8aa2;
  font-size: 13px;
}

.ct-cert-body dd {
  margin: 0;
  color: #1c2e4a;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 三层课程结构 ---- */

.ct-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ct-track-item {
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #ffffff;
}

.ct-track-item > span {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f0f7ff;
  color: #2f5fd0;
  font-size: 12px;
}

.ct-track-item > b {
  display: block;
  margin-top: 10px;
  color: #1c2e4a;
  font-size: 16px;
}

.ct-track-item ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.ct-track-item li {
  margin-bottom: 6px;
  color: #56647a;
  font-size: 14px;
  line-height: 1.7;
}

.ct-track-item li:last-child {
  margin-bottom: 0;
}

/* ---- 案例作品 ---- */

.ct-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ct-works span {
  padding: 12px 14px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  background: #fafbfc;
  color: #1c2e4a;
  font-size: 14px;
  line-height: 1.6;
}

/* ---- 留资表单 ---- */

.ct-form {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #fafcff;
}

.ct-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ct-form-row + .ct-form-row {
  margin-top: 14px;
}

.ct-field label {
  display: block;
  margin-bottom: 6px;
  color: #56647a;
  font-size: 13px;
}

.ct-field label i {
  color: #d4380d;
  font-style: normal;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #1c2e4a;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.18s ease;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: #2f6aff;
  outline: none;
}

.ct-field textarea {
  min-height: 76px;
  resize: vertical;
}

.ct-field.wide {
  grid-column: 1 / -1;
}

/*
 * 蜜罐字段：真人看不见也 tab 不到，脚本填表机器人会填。后端见到非空直接当成功返回、
 * 不入库。用 position:absolute + 视觉隐藏而不是 display:none——部分机器人会跳过
 * display:none 的字段。
 */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.ct-submit {
  padding: 11px 28px;
  border: 0;
  border-radius: 8px;
  background: #2f6aff;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ct-submit:hover:not(:disabled) {
  background: #1f4fd8;
}

.ct-submit:disabled {
  background: #b9c6dd;
  cursor: not-allowed;
}

.ct-form-hint {
  color: #7a8aa2;
  font-size: 13px;
}

.ct-form-msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.ct-form-msg.ok {
  background: #f6ffed;
  border: 1px solid #d9f7be;
  color: #389e0d;
}

.ct-form-msg.err {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
}

/* ---- 客服 ---- */

.ct-service {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #ffffff;
}

.ct-service img {
  display: block;
  width: 152px;
  height: 152px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  object-fit: contain;
}

.ct-service p {
  margin: 0;
  color: #56647a;
  font-size: 14px;
  line-height: 1.9;
}

.ct-service p + p {
  margin-top: 8px;
}

/* ---- 窄屏 ---- */

@media (max-width: 900px) {
  .ct-grid,
  .ct-price,
  .ct-track,
  .ct-works {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-cert {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 手机上证书图占满一行会顶掉一屏，压到能看清印章和抬头就够了 */
  .ct-cert img {
    max-width: 240px;
    margin: 0 auto;
  }

  .ct-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-service {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

/* ================================================================
 * 下单与支付（P1）
 *
 * 价格卡从「只能咨询」变成「可自助下单」：主按钮直接下单出二维码，
 * 次按钮仍回留资表单——千元客单价，愿意先问人的那部分转化不该被砍掉。
 * ================================================================ */

.ct-price-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ct-price-buy {
  display: block;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #2f6aff;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ct-price-buy:hover:not(:disabled) {
  background: #1f4fd8;
}

.ct-price-buy:disabled {
  background: #b9c6dd;
  cursor: not-allowed;
}

/* 次按钮压成文字链，不与主按钮抢 */
.ct-price-ask {
  color: #7a8aa2;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.ct-price-ask:hover {
  color: #2f6aff;
}

/* ---- 支付弹窗 ---- */

.ct-modal[hidden] {
  display: none;
}

.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 36, 61, 0.55);
}

.ct-modal-box {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(20, 36, 61, 0.22);
  text-align: center;
}

.ct-modal-box h3 {
  margin: 0;
  color: #1c2e4a;
  font-size: 18px;
  font-weight: 700;
}

.ct-modal-sub {
  margin: 8px 0 0;
  color: #7a8aa2;
  font-size: 13px;
}

.ct-modal-amount {
  margin-top: 10px;
  color: #1c2e4a;
  font-size: 28px;
  font-weight: 700;
}

.ct-modal-amount i {
  margin-right: 2px;
  font-size: 17px;
  font-style: normal;
}

.ct-modal-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 16px auto 0;
  border: 1px solid #eef1f6;
  border-radius: 10px;
}

.ct-modal-tip {
  margin: 12px 0 0;
  color: #56647a;
  font-size: 13px;
  line-height: 1.7;
}

.ct-modal-close {
  margin-top: 16px;
  padding: 9px 22px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #56647a;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ct-modal-close:hover {
  background: #f7f9fc;
}

/* 支付成功后整块换掉二维码 */
.ct-modal-done {
  padding: 18px 0 4px;
}

.ct-modal-done b {
  display: block;
  color: #389e0d;
  font-size: 17px;
}

.ct-modal-done p {
  margin: 10px 0 0;
  color: #56647a;
  font-size: 14px;
  line-height: 1.8;
}

.ct-modal-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 8px;
  background: #2f6aff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ct-modal-cta:hover {
  background: #1f4fd8;
}

/* ================================================================
 * 「我的报名」页（/cert/my.html）
 * ================================================================ */

.ct-my-empty {
  margin-top: 18px;
  padding: 40px 20px;
  border: 1px dashed #dfe5ee;
  border-radius: 12px;
  color: #7a8aa2;
  font-size: 14px;
  text-align: center;
}

.ct-my-empty a {
  color: #2f6aff;
  text-decoration: none;
}

.ct-my-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #ffffff;
}

.ct-my-item b {
  display: block;
  color: #1c2e4a;
  font-size: 16px;
}

.ct-my-item small {
  display: block;
  margin-top: 6px;
  color: #7a8aa2;
  font-size: 12px;
}

/* 状态标签：只有「待补资料」需要催一下，用暖色；其余一律中性 */
.ct-my-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #56647a;
  font-size: 12px;
  white-space: nowrap;
}

.ct-my-status.todo {
  background: #fff7e6;
  color: #d46b08;
}

.ct-my-status.done {
  background: #f6ffed;
  color: #389e0d;
}

.ct-my-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ct-my-btn {
  padding: 8px 16px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #56647a;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.ct-my-btn:hover {
  background: #f7f9fc;
}

.ct-my-btn.primary {
  border-color: #2f6aff;
  background: #2f6aff;
  color: #ffffff;
}

.ct-my-btn.primary:hover {
  background: #1f4fd8;
}

/* ---- 进度时间线 ---- */

.ct-timeline {
  margin: 16px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.ct-timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 1px solid #eef1f6;
}

.ct-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.ct-timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #c7d6f5;
}

/* 最新一条是当前进度，点亮 */
.ct-timeline li:first-child::before {
  background: #2f6aff;
}

.ct-timeline b {
  display: block;
  color: #1c2e4a;
  font-size: 14px;
}

.ct-timeline small {
  display: block;
  margin-top: 3px;
  color: #7a8aa2;
  font-size: 12px;
}

/* ---- 资料表单里的照片上传 ---- */

.ct-photo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ct-photo img {
  width: 84px;
  height: 112px;
  border: 1px solid #eef1f6;
  border-radius: 6px;
  object-fit: cover;
  background: #fafbfc;
}

.ct-photo-pick {
  padding: 9px 18px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #56647a;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ct-photo-pick:hover {
  background: #f7f9fc;
}

.ct-photo small {
  display: block;
  margin-top: 6px;
  color: #7a8aa2;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .ct-my-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-my-actions {
    justify-content: flex-start;
  }
}

/* 详情页里的小节标题（由 cert-my.js 生成），比 gp-sec h2 轻一档 */
.ct-my-sub {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eef1f6;
  color: #1c2e4a;
  font-size: 16px;
  font-weight: 700;
}

/* 证件照未上传时的占位。与预览图同尺寸，避免上传后布局跳一下 */
.ct-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 112px;
  border: 1px dashed #dfe5ee;
  border-radius: 6px;
  background: #fafbfc;
  color: #a8b3c4;
  font-size: 12px;
}

/*
 * 「我的报名」空态里的登录按钮。
 *
 * .ct-my-empty a 是 class+元素（0,0,1,1），比 .ct-price-buy 的单 class（0,0,1,0）更具体，
 * 会把按钮文字染成 #2f6aff —— 正好和按钮底色同一个蓝，于是按钮上什么都看不见。
 * 这里按同样的具体度压回白字。
 */
.ct-my-empty a.ct-price-buy {
  color: #ffffff;
}

.ct-my-empty a.ct-price-buy:hover {
  color: #ffffff;
}
