/* ===== SSL 证书申请页（/ssl/apply）美化 ===== */
.ssl-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 24px 22px;
  color: #fff;
  background: linear-gradient(120deg, #0f766e 0%, #115e59 45%, #15803d 100%);
  box-shadow: 0 14px 34px rgba(15, 118, 110, .28);
  margin-bottom: 18px;
}
.ssl-hero::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.ssl-hero .row { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.ssl-hero .big-ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.ssl-hero h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: .3px; }
.ssl-hero .bd { font-size: 12.5px; opacity: .92; line-height: 1.7; }
.ssl-hero .bd b { color: #fef08a; font-weight: 600; }
.ssl-hero .mode-line {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: #fff;
}
.ssl-hero .mode-line .dot { font-size: 12px; }
.ssl-hero .mode-line .dot.ok { color: #86efac; }
.ssl-hero .mode-line .dot.bad { color: #fca5a5; }
.ssl-hero .mode-line .refresh { margin-left: auto; }

/* 按钮体系：主按钮渐变 / 次要描边 / 玻璃(hero 内) / 危险(清空) */
.btn-primary-grad {
  border: none; cursor: pointer; padding: 11px 24px; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #0f766e, #16a34a);
  box-shadow: 0 6px 16px rgba(15, 118, 110, .3); transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary-grad:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 118, 110, .36); filter: brightness(1.05); }
.btn-primary-grad:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary-grad .ic { margin-right: 6px; }

.btn-line {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid var(--border); background: #fff; color: #334155; cursor: pointer;
  padding: 9px 16px; border-radius: 11px; font-size: 13px; font-weight: 600;
  transition: all .12s; line-height: 1;
}
.btn-line:hover:not(:disabled) { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }
.btn-line:disabled { opacity: .55; cursor: not-allowed; }
.btn-line.danger:hover:not(:disabled) { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.btn-line.go { border-color: #86efac; color: #15803d; background: #f0fdf4; }
.btn-line.go:hover:not(:disabled) { border-color: #22c55e; background: #dcfce7; color: #166534; }
.btn-line.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }

.btn-glass {
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.16); color: #fff; cursor: pointer;
  padding: 6px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px); transition: all .12s; line-height: 1.4;
}
.btn-glass:hover { background: rgba(255,255,255,.28); }

.btn-ic { border: none; background: transparent; color: #94a3b8; font-size: 15px; line-height: 1; cursor: pointer; padding: 7px; border-radius: 9px; flex-shrink: 0; transition: all .12s; }
.btn-ic:hover { color: #dc2626; background: #fee2e2; }

/* 步骤卡 */
.step-card { position: relative; background: var(--card); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow); margin-bottom: 14px; transition: transform .15s, box-shadow .15s; }
.step-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15, 23, 42, .10); }
.step-card + .step-card::before {
  content: ""; position: absolute; top: -14px; left: 33px;
  width: 2px; height: 14px; background: linear-gradient(#0f766e, #16a34a);
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #16a34a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(22, 163, 74, .3);
}
.step-title { font-size: 15px; font-weight: 700; }
.step-sub { font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.6; }

/* 表单 */
.fld label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.fld input[type=text], .fld input[type=email] {
  width: 100%; box-sizing: border-box; padding: 10px 13px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fld input:focus { outline: none; border-color: #0f766e; background: #fff; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.fld input::placeholder { color: #a5adbb; }
.btn-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* TXT 记录 */
.txt-card { border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; margin-top: 10px; overflow: hidden; }
.txt-card-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #eef2f7; font-size: 12px; color: var(--muted); }
.txt-row { display: grid; grid-template-columns: 58px 1fr; gap: 0; border-top: 1px dashed var(--border); }
.txt-row:first-of-type { border-top: none; }
.txt-row .c { padding: 10px 12px; }
.txt-row .c.type { display: flex; align-items: center; }
.txt-chip { font-size: 11px; font-weight: 700; color: #0f766e; background: #ccfbf1; border: 1px solid #99f6e4; padding: 2px 8px; border-radius: 6px; }
.txt-row .c.name { border-right: 1px dashed var(--border); }
.txt-lbl { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.txt-val { font-family: ui-monospace, Consolas, "SF Mono", monospace; font-size: 12.5px; word-break: break-all; color: #0f172a; line-height: 1.5; }
.txt-row .c.act { display: flex; align-items: center; justify-content: center; grid-column: 1 / -1; border-top: 1px dashed var(--border); padding: 8px; }
.txt-row .c.act button { width: 100%; }
@media (min-width: 680px) {
  .txt-row { grid-template-columns: 64px 1.1fr 1fr 100px; }
  .txt-row .c.act { grid-column: auto; border-top: none; border-left: 1px dashed var(--border); }
  .txt-row .c.act button { width: auto; }
}

/* 结果 */
.ok-banner {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4); border: 1px solid #86efac; color: #166534;
  border-radius: 14px; padding: 16px; margin-top: 14px;
}
.ok-banner .ok-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.expire-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #86efac; font-size: 12.5px; font-weight: 600; color: #166534; margin: 8px 0 10px; }
.expire-pill .days { color: #16a34a; }
.expire-pill .days.warn { color: #d97706; }
.dl-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dl-pill { text-decoration: none; }
.sni-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #166534; margin-top: 10px; }
.sni-note .gdot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.err-banner { background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.hidden { display: none; }

/* 历史（本机申请记录） */
.hist-sec-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #0f172a; margin: 4px 0 10px; }
.hist-sec-title .right { margin-left: auto; font-weight: 400; }
.hist-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: #fbfdff;
  transition: border-color .12s;
}
.hist-item:hover { border-color: #99f6e4; }
.hist-item .hmain { flex: 1; min-width: 0; }
.hist-item .hnames { font-size: 13px; font-weight: 600; word-break: break-all; }
.hist-item .hmeta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.status-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.chip-wait { background: #fef3c7; color: #b45309; }
.chip-done { background: #dcfce7; color: #166534; }
.empty-hint { color: var(--muted); font-size: 12.5px; padding: 6px 0; }