/* ==========================================================================
   SSLGood — 组件层
   ========================================================================== */

/* ---------- Hero ---------- */
.sg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(251, 191, 36, .28), transparent 62%),
    radial-gradient(760px 380px at 8% 4%, rgba(249, 115, 22, .22), transparent 60%),
    linear-gradient(180deg, var(--sg-surface-2), var(--sg-bg));
  padding-block: 68px 60px;
  border-bottom: 1px solid var(--sg-line);
}
.sg-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 940px) { .sg-hero__grid { grid-template-columns: 1fr; gap: 36px; } }

.sg-hero__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: .5em;
}
.sg-hero__title em {
  font-style: normal;
  color: var(--sg-primary-dark);
  position: relative;
  white-space: nowrap;
}
.sg-hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .32em;
  background: rgba(251, 191, 36, .5);
  z-index: -1;
  border-radius: 3px;
}
.sg-hero__sub { font-size: 1.08rem; color: var(--sg-ink-2); max-width: 34em; }
.sg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sg-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--sg-line);
}
.sg-hero__stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--sg-primary-dark);
  line-height: 1.2;
}
.sg-hero__stat span { font-size: .86rem; color: var(--sg-ink-3); }

/* ---------- 证书选型器 ---------- */
.sg-selector {
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  box-shadow: var(--sg-shadow-lg);
  padding: 26px;
}
.sg-selector__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 16px;
}
.sg-selector__title svg { width: 20px; height: 20px; color: var(--sg-primary); }
.sg-selector__row { margin-bottom: 16px; }
.sg-selector__label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--sg-ink-3);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.sg-selector__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-opt {
  position: relative;
  border: 1px solid var(--sg-line-strong);
  background: var(--sg-surface);
  border-radius: var(--sg-radius-pill);
  padding: .5em 1em;
  font-size: .88rem;
  font-weight: 600;
  color: var(--sg-ink-2);
  cursor: pointer;
  transition: all .16s ease;
}
.sg-opt:hover { border-color: var(--sg-primary); color: var(--sg-primary-darker); }
.sg-opt.is-active {
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  border-color: var(--sg-primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .26);
}
.sg-selector__result {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--sg-radius);
  background: linear-gradient(160deg, var(--sg-primary-soft), var(--sg-amber-soft));
  border: 1px solid #f9d9b4;
}
.sg-selector__result h4 { margin-bottom: .3em; font-size: 1.05rem; }
.sg-selector__result p { margin-bottom: .9em; font-size: .92rem; color: var(--sg-ink-2); }
.sg-selector__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------- 信任条 / 特性卡 ---------- */
.sg-feature {
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 24px;
  box-shadow: var(--sg-shadow-sm);
  height: 100%;
}
.sg-feature__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sg-primary-soft), var(--sg-amber-soft));
  color: var(--sg-primary-dark);
  margin-bottom: 14px;
}
.sg-feature__icon svg { width: 24px; height: 24px; }
.sg-feature h3 { font-size: 1.05rem; margin-bottom: .4em; }
.sg-feature p { font-size: .92rem; color: var(--sg-ink-2); margin-bottom: 0; }

/* ---------- 证书产品卡 ---------- */
.sg-product {
  position: relative;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--sg-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sg-product:hover { transform: translateY(-3px); box-shadow: var(--sg-shadow); }
.sg-product--featured { border-color: var(--sg-primary); box-shadow: 0 8px 26px rgba(234, 88, 12, .16); }
.sg-product__ribbon {
  position: absolute;
  top: -1px; right: 18px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3em .8em;
  border-radius: 0 0 8px 8px;
}
.sg-product__brand {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sg-ink-4);
  margin-bottom: 6px;
}
.sg-product__name { font-size: 1.12rem; margin-bottom: .3em; }
.sg-product__desc { font-size: .9rem; color: var(--sg-ink-2); margin-bottom: 14px; }
.sg-product__specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: .87rem;
  color: var(--sg-ink-2);
}
.sg-product__specs li {
  display: flex;
  gap: 8px;
  padding: .3em 0;
  margin: 0;
  border-bottom: 1px dashed var(--sg-line);
}
.sg-product__specs li:last-child { border-bottom: 0; }
.sg-product__specs svg { width: 15px; height: 15px; color: var(--sg-trust); flex-shrink: 0; margin-top: .25em; }
.sg-product__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sg-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sg-product__price strong { font-size: 1.5rem; color: var(--sg-primary-dark); }
.sg-product__price s { font-size: .9rem; color: var(--sg-ink-4); }
.sg-product__year { font-size: .82rem; color: var(--sg-ink-3); }

/* ---------- 对比表 ---------- */
.sg-compare-wrap { overflow-x: auto; border-radius: var(--sg-radius); border: 1px solid var(--sg-line); background: var(--sg-surface); }
.sg-compare { margin: 0; font-size: .92rem; border: 0; }
.sg-compare th, .sg-compare td { border: 0; border-bottom: 1px solid var(--sg-line); white-space: nowrap; }
.sg-compare thead th { background: var(--sg-surface-2); position: sticky; top: 0; }
.sg-compare tbody tr:hover { background: var(--sg-primary-soft); }
.sg-compare th:first-child, .sg-compare td:first-child {
  position: sticky; left: 0;
  background: var(--sg-surface);
  font-weight: 700;
  white-space: normal;
  min-width: 170px;
}
.sg-compare .sg-yes { color: var(--sg-trust); font-weight: 700; }
.sg-compare .sg-no { color: var(--sg-ink-4); }

/* ---------- 错误码 ---------- */
.sg-error-card {
  display: flex;
  gap: 16px;
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-left: 4px solid var(--sg-danger);
  border-radius: var(--sg-radius-sm);
  padding: 18px 20px;
  box-shadow: var(--sg-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sg-error-card:hover { transform: translateX(3px); box-shadow: var(--sg-shadow); }
.sg-error-card__code {
  font-family: var(--sg-font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--sg-danger);
  background: var(--sg-danger-soft);
  border-radius: 6px;
  padding: .3em .6em;
  height: fit-content;
  word-break: break-all;
}
.sg-error-card__title { font-size: 1rem; margin-bottom: .25em; }
.sg-error-card__title a { color: var(--sg-ink); }
.sg-error-card__title a:hover { color: var(--sg-primary-dark); }
.sg-error-card p { font-size: .9rem; color: var(--sg-ink-2); margin: 0; }

/* ---------- 文章：TL;DR / TOC / FAQ ---------- */
.sg-tldr {
  background: linear-gradient(160deg, var(--sg-amber-soft), var(--sg-primary-soft));
  border: 1px solid #f7dcb0;
  border-radius: var(--sg-radius);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.sg-tldr__title {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sg-primary-darker); margin-bottom: .7em;
}
.sg-tldr__title svg { width: 17px; height: 17px; }
.sg-tldr ul { margin-bottom: 0; }
.sg-tldr li { margin-bottom: .3em; }

.sg-toc {
  background: var(--sg-surface-2);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.sg-toc__title { font-size: .95rem; margin-bottom: .6em; }
.sg-toc ol, .sg-toc ul { margin-bottom: 0; font-size: .92rem; }
.sg-toc li { margin-bottom: .25em; }
.sg-toc a { color: var(--sg-ink-2); }
.sg-toc a:hover { color: var(--sg-primary-dark); }

.sg-faq { margin-top: 44px; border-top: 2px solid var(--sg-primary-soft); padding-top: 28px; }
.sg-faq__item { border-bottom: 1px solid var(--sg-line); padding: 14px 0; }
.sg-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.sg-faq__q:hover { color: var(--sg-primary-dark); }
.sg-faq__q::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--sg-primary);
  border-bottom: 2px solid var(--sg-primary);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.sg-faq__q[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 2px; }
.sg-faq__a { display: none; padding-top: .7em; font-size: .95rem; color: var(--sg-ink-2); }
.sg-faq__item.is-open .sg-faq__a { display: block; }
.sg-faq__a p:last-child { margin-bottom: 0; }

/* ---------- 提示框 ---------- */
.sg-note {
  border-radius: var(--sg-radius-sm);
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: .93rem;
  border: 1px solid;
}
.sg-note p:last-child { margin-bottom: 0; }
.sg-note__title { font-weight: 800; margin-bottom: .3em; display: block; }
.sg-note--tip { background: var(--sg-trust-soft); border-color: #bbf7d0; color: #14532d; }
.sg-note--warn { background: var(--sg-warn-soft); border-color: #fed7aa; color: #7c2d12; }
.sg-note--danger { background: var(--sg-danger-soft); border-color: #fecaca; color: #7f1d1d; }
.sg-note--info { background: var(--sg-info-soft); border-color: #bfdbfe; color: #1e3a8a; }

/* ---------- 步骤 ---------- */
.sg-steps { list-style: none; counter-reset: sg-step; margin: 0 0 1.4em; padding: 0; }
.sg-steps > li {
  counter-increment: sg-step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 1.2em;
}
.sg-steps > li::before {
  content: counter(sg-step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.sg-steps > li strong { display: block; margin-bottom: .2em; }

/* ---------- 文章头 / 元信息 ---------- */
.sg-article__head { margin-bottom: 28px; }
.sg-article__title { margin-bottom: .4em; }
.sg-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: .86rem;
  color: var(--sg-ink-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sg-line);
}
.sg-article__meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.sg-article__thumb { border-radius: var(--sg-radius); overflow: hidden; margin-bottom: 26px; }

.sg-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--sg-surface-2);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 20px;
  margin-top: 40px;
}
.sg-author__avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.sg-author__name { font-weight: 700; margin-bottom: .2em; }
.sg-author__bio { font-size: .9rem; color: var(--sg-ink-2); margin: 0; }

/* ---------- 文章标签 ---------- */
.sg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sg-tags a {
  display: inline-block;
  padding: .3em .85em;
  background: var(--sg-surface-3);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--sg-ink-2);
}
.sg-tags a:hover { background: var(--sg-primary-soft); border-color: var(--sg-primary); color: var(--sg-primary-darker); }

/* ---------- 博客列表（home.php） ---------- */
.sg-postlist { display: flex; flex-direction: column; }
.sg-postitem { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--sg-line); }
.sg-postitem__thumb { flex: 0 0 200px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--sg-surface-3); }
.sg-postitem__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-postitem__body { flex: 1 1 auto; min-width: 0; }
.sg-postitem:first-child { padding-top: 4px; }
.sg-postitem:last-child { border-bottom: 0; }
.sg-postitem__title { font-size: 1.3rem; line-height: 1.35; margin: .4em 0 .35em; }
.sg-postitem__title a { color: var(--sg-ink); }
.sg-postitem__title a:hover { color: var(--sg-primary-darker); }
.sg-postitem__meta { font-size: .82rem; color: var(--sg-ink-3); display: flex; gap: 8px; align-items: center; margin-bottom: .5em; }
.sg-postitem__excerpt { color: var(--sg-ink-2); margin: 0 0 .55em; }
.sg-postitem .sg-tags { margin-top: 0; }

@media (max-width: 600px) {
	.sg-postitem { flex-direction: column; }
	.sg-postitem__thumb { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; }
}

/* ---------- 正文排版 ---------- */
.sg-content { font-size: 1.02rem; }
.sg-content > h2 {
  margin-top: 1.6em;
  padding-left: .7em;
  border-left: 4px solid var(--sg-primary);
}
.sg-content > h3 { margin-top: 1.3em; color: var(--sg-ink); }
.sg-content > p { color: var(--sg-ink-2); }
.sg-content img { border-radius: var(--sg-radius-sm); }
.sg-content figcaption { font-size: .84rem; color: var(--sg-ink-3); text-align: center; margin-top: .5em; }

/* ---------- 工具页：一排两卡片网格 ---------- */
.sg-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch; /* 同一行卡片等高，避免参差不齐 */
  margin-top: 6px;
}
.sg-tools-grid .sg-tool {
  height: 100%;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .sg-tools-grid { grid-template-columns: 1fr; }
}
/* 监控区块含账号面板与域名表格，独占一整行。 */
.sg-tools-grid #monitor { grid-column: 1 / -1; }
/* 高个子工具卡（表单+结果区较长）独占一整行，避免与矮卡配对参差。 */
.sg-tools-grid #csr,
.sg-tools-grid #tls-config,
.sg-tools-grid #convert { grid-column: 1 / -1; }

.sg-tool {
  background: var(--sg-surface);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 0;
}
.sg-tool__head { margin-bottom: 20px; }
.sg-tool__head h2 { font-size: 1.3rem; margin-bottom: .25em; }
.sg-tool__head p { color: var(--sg-ink-2); font-size: .94rem; margin: 0; }
.sg-tool__input {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sg-input, .sg-select, .sg-textarea {
  flex: 1 1 260px;
  border: 1px solid var(--sg-line-strong);
  border-radius: var(--sg-radius-sm);
  padding: .7em .9em;
  font-family: inherit;
  font-size: .95rem;
  color: var(--sg-ink);
  background: var(--sg-surface);
}
.sg-input:focus, .sg-select:focus, .sg-textarea:focus {
  outline: none;
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px var(--sg-primary-ring);
}
.sg-textarea { min-height: 130px; font-family: var(--sg-font-mono); font-size: .86rem; resize: vertical; }
.sg-tool__output { margin-top: 18px; }
.sg-tool__status {
  display: none;
  padding: 10px 14px;
  border-radius: var(--sg-radius-sm);
  font-size: .9rem;
  margin-bottom: 12px;
}
.sg-tool__status.is-error { display: block; background: var(--sg-danger-soft); color: var(--sg-danger); }
.sg-tool__status.is-loading { display: block; background: var(--sg-info-soft); color: var(--sg-info); }

/* 证书检测结果 */
.sg-cert-result { margin-top: 20px; }
.sg-cert-card {
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 20px;
  background: var(--sg-surface);
  margin-bottom: 16px;
}
.sg-cert-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sg-line);
}
.sg-cert-card__host { font-size: 1.15rem; font-weight: 700; margin: 0; }
.sg-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.sg-cert-field { font-size: .9rem; }
.sg-cert-field dt { font-size: .78rem; font-weight: 700; color: var(--sg-ink-4); text-transform: uppercase; letter-spacing: .05em; }
.sg-cert-field dd { margin: 2px 0 0; color: var(--sg-ink); word-break: break-all; }
.sg-expiry { margin-top: 14px; }
.sg-expiry__bar {
  height: 8px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-surface-3);
  overflow: hidden;
}
.sg-expiry__fill { height: 100%; border-radius: inherit; transition: width .6s ease; }
.sg-expiry--ok .sg-expiry__fill { background: linear-gradient(90deg, var(--sg-trust), #4ade80); }
.sg-expiry--warn .sg-expiry__fill { background: linear-gradient(90deg, var(--sg-warn), var(--sg-amber)); }
.sg-expiry--bad .sg-expiry__fill { background: linear-gradient(90deg, var(--sg-danger), #f87171); }
.sg-expiry__text { font-size: .84rem; color: var(--sg-ink-3); margin-top: 6px; }

/* ---------- 搜索 ---------- */
.sg-search {
  display: flex;
  border: 1px solid var(--sg-line-strong);
  border-radius: var(--sg-radius-pill);
  overflow: hidden;
  background: var(--sg-surface);
}
.sg-search input {
  flex: 1;
  border: 0;
  padding: .7em 1.1em;
  font-family: inherit;
  font-size: .95rem;
  background: transparent;
  color: var(--sg-ink);
}
.sg-search input:focus { outline: none; }
.sg-search button {
  border: 0;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark));
  color: #fff;
  padding: 0 1.4em;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- CTA ---------- */
.sg-cta {
  background: linear-gradient(135deg, #3f2a1d, #5b3a24);
  border-radius: var(--sg-radius-lg);
  padding: 44px 40px;
  text-align: center;
  color: #fbe9d7;
  position: relative;
  overflow: hidden;
}
.sg-cta::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(249, 115, 22, .34), transparent 65%);
}
.sg-cta h2 { color: #fff; }
.sg-cta p { opacity: .88; max-width: 40em; margin-inline: auto; }
.sg-cta .sg-btn { margin-top: 8px; }

/* ---------- 列表页头部（统一为渐变 Hero 卡，与首页一致） ---------- */
.sg-archive__head {
  background: linear-gradient(135deg, var(--sg-primary-soft), var(--sg-amber-soft));
  border: 1px solid #f7dcb0;
  border-radius: var(--sg-radius-lg);
  padding: 40px 36px;
  margin-bottom: 40px;
}
.sg-archive__head .sg-eyebrow { display: inline-block; margin-bottom: .7em; }
.sg-archive__head h1 { margin-bottom: .3em; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
.sg-archive__desc { color: var(--sg-ink-2); max-width: 64ch; margin-bottom: 0; }

/* ---------- 相关阅读 ---------- */
.sg-related { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--sg-primary-soft); }
.sg-related h3 { margin-bottom: 1em; }

/* ---------- 知识库迷你卡片 ---------- */
.sg-card--mini { display: block; color: inherit; text-decoration: none; background: var(--sg-surface); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sg-card--mini:hover { transform: translateY(-3px); box-shadow: var(--sg-shadow); border-color: var(--sg-primary-soft); }
.sg-card--mini .sg-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.sg-card--mini .sg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sg-card--mini .sg-card__title { font-size: 1rem; padding: 12px 14px 14px; margin: 0; }

/* ---------- 服务页 ---------- */
.sg-services { display: grid; gap: 22px; margin: 8px 0 10px; }
.sg-service { background: var(--sg-surface); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); padding: 28px; }
.sg-service__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.sg-service__icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--sg-primary-soft); color: var(--sg-primary-dark); }
.sg-service__icon svg { width: 26px; height: 26px; }
.sg-service__title { margin: 2px 0 6px; font-size: 1.3rem; }
.sg-service__desc { margin: 0; color: var(--sg-ink-2); }
.sg-service__steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.sg-service__steps li { display: flex; align-items: center; gap: 12px; }
.sg-service__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sg-primary); color: #fff; font-weight: 700; font-size: .85rem; }
@media (max-width: 600px) { .sg-service { padding: 20px; } .sg-service__head { flex-direction: column; gap: 10px; } }

/* ---------- 工具：TLS 配置生成器 / 到期监控 ---------- */
.sg-tool__hint { color: var(--sg-ink-3); font-size: .9rem; margin: 4px 0 0; }
.sg-config-out { margin-top: 14px; }
.sg-monitor-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sg-monitor-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-sm); background: var(--sg-surface); }
.sg-monitor-list .sg-badge { margin-left: auto; }
.sg-tool__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sg-check { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--sg-ink-2); cursor: pointer; }
.sg-check input { width: 16px; height: 16px; accent-color: var(--sg-primary); }

/* ---------- 全站内容居中对齐 ---------- */
.sg-main {
  text-align: center;
}

/* 可读性例外：代码块、表格、FAQ 问题、表单控件保持左对齐 */
.sg-main pre,
.sg-main code,
.sg-main table,
.sg-main .sg-faq__q,
.sg-main .sg-tool__output,
.sg-main .sg-input,
.sg-main .sg-select,
.sg-main .sg-textarea {
  text-align: left;
}

/* ---------- 云市场商品展示 ---------- */
.sg-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .sg-cloud-grid { grid-template-columns: 1fr; }
}
.sg-cloud-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.sg-cloud-col__head {
  font-weight: 700;
  font-size: .95rem;
  color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}
.sg-cloud-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  margin-bottom: 10px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.sg-cloud-card:hover { border-color: #f97316; background: #fff7ed; }
.sg-cloud-card__name {
  font-size: .88rem;
  color: #1e293b;
  line-height: 1.5;
  text-align: left;
}
.sg-cloud-card__cta {
  flex: none;
  font-size: .78rem;
  color: #f97316;
  white-space: nowrap;
}

/* 文章内列表 */
.sg-cloud-list {
  margin: 28px auto;
  padding: 20px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}
.sg-cloud-list__title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.sg-cloud-list__market {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: .8rem;
  font-weight: 700;
}
.sg-cloud-list__items {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-width: 640px;
  margin-inline: auto;
}
.sg-cloud-list__items li {
  text-align: left;
  padding: 7px 12px;
  border-bottom: 1px dashed #e2e8f0;
}
.sg-cloud-list__items li:last-child { border-bottom: 0; }
.sg-cloud-list__items a {
  color: #1e293b;
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.6;
}
.sg-cloud-list__items a:hover { color: #f97316; }

/* ---------- 云市场产品卡（ssl_product 归档页） ---------- */
.sg-cproduct {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 20px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  height: 100%;
}
.sg-cproduct:hover {
  border-color: #f97316;
  box-shadow: 0 6px 18px rgba(249,115,22,.12);
  transform: translateY(-2px);
}
.sg-cproduct__market {
  align-self: center;
  padding: 2px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: .74rem;
  font-weight: 700;
}
.sg-cproduct__name {
  color: #1e293b;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.6;
}
.sg-cproduct__cta {
  color: #f97316;
  font-size: .82rem;
  font-weight: 600;
  margin-top: auto;
}

/* ---------- 云市场主推位（featured） ---------- */
.sg-cloud-featured {
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 60%);
  padding: 18px 20px 20px;
  margin: 26px 0;
}
.sg-cloud-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sg-cloud-featured__badge {
  padding: 2px 12px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.sg-cloud-featured__head strong {
  color: #1e293b;
  font-size: 1.02rem;
}
.sg-cloud-featured__desc {
  color: #64748b;
  font-size: .82rem;
}
.sg-cproduct--featured {
  border-color: #fed7aa;
}
.sg-cproduct--featured:hover {
  border-color: #f97316;
}
.sg-cproduct__tagline {
  color: #64748b;
  font-size: .8rem;
  line-height: 1.55;
}

/* 工具页行间分割线（跨整行） */
.sg-row-divider {
  grid-column: 1 / -1;
  height: 2px;
  margin: 6px 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
}

/* ---------- 全站缩放 85% ---------- */
html {
  zoom: 0.85;
}
/* 不支持 zoom 的浏览器回退 */
@supports not (zoom: 0.85) {
  body {
    transform: scale(0.85);
    transform-origin: top center;
    width: 117.65%;
  }
}

/* 宽屏：容器对称收窄，给右侧浮动联系方式让位（参考 yunwei123 做法） */
@media (min-width: 1100px) {
  .sg-container {
    max-width: min(1200px, calc(100% - 232px));
  }
}

/* ---------- 右侧浮动联系方式 ---------- */
.sg-cside {
  position: fixed;
  z-index: 900;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.sg-cside__card {
  width: 92px;
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,.13), 0 2px 6px rgba(15,23,42,.06);
}
.sg-cside__title {
  width: 100%;
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: #9a3412;
}
.sg-cside__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.sg-cside__ico {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #ffedd5;
  color: #9a3412;
  border-radius: 50%;
  transition: background .18s, transform .18s;
}
.sg-cside__item:hover .sg-cside__ico { background: #fed7aa; transform: translateY(-1px); }
.sg-cside__info { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.sg-cside__label { font-size: 10.5px; color: #64748b; }
.sg-cside__value { font-size: 10px; font-weight: 600; color: #334155; max-width: 76px; word-break: break-all; }

/* 微信二维码弹层 */
.sg-cside-qr {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,23,42,.58);
  animation: sg-fade .18s ease;
}
.sg-cside-qr[hidden] { display: none; }
.sg-cside-qr__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 30px 26px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(15,23,42,.34);
  animation: sg-pop .2s ease;
}
.sg-cside-qr__close {
  position: absolute;
  right: 8px;
  top: 4px;
  padding: 6px 10px;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
}
.sg-cside-qr__close:hover { color: #0f172a; background: #f1f5f9; }
.sg-cside-qr__title { display: block; font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 18px; }
.sg-cside-qr__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: min(56vh, 340px);
  margin: 0 auto 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.sg-cside-qr__id { display: block; font-size: 1.05rem; font-weight: 700; color: #f97316; }
@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sg-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* 宽屏显示右侧卡片 */
@media (min-width: 1100px) {
  .sg-cside { display: block; }
}
/* 窄屏降级为底部整条咨询栏 */
@media (max-width: 1099px) {
  .sg-cside {
    display: block;
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(15,23,42,.10);
  }
  .sg-cside__card {
    width: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 7px 12px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .sg-cside__title { display: none; }
  .sg-cside__item {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 9px 8px;
    border-radius: 10px;
  }
  .sg-cside__ico { width: 26px; height: 26px; font-size: 12px; background: none; }
  .sg-cside__info { display: none; }
  body { padding-bottom: 54px; }
}

/* 首页行式市场区块间距（无 section 包裹时） */
.sg-cloud-row { margin-bottom: 46px; }

/* ---------- 工具页按钮统一规整 ---------- */
.sg-tool .sg-btn {
  margin-top: 0;
  min-width: 148px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--sg-radius-sm);
  box-shadow: none;
}
.sg-tool .sg-tool__input,
.sg-tool .sg-tool__row {
  align-items: flex-end;
  margin-bottom: 14px;
}
.sg-tool .sg-tool__input .sg-btn,
.sg-tool .sg-tool__row .sg-btn {
  flex: 0 0 auto;
}
/* 主按钮统一橙色实底，次按钮统一浅底 */
.sg-tool .sg-btn--primary { background: var(--sg-primary); border: 1px solid var(--sg-primary); color: #fff; }
.sg-tool .sg-btn--primary:hover { background: #ea6a0a; }
.sg-tool .sg-btn--ghost,
.sg-tool .sg-btn:not(.sg-btn--primary) {
  background: #f1f5f9;
  border: 1px solid var(--sg-line-strong);
  color: var(--sg-ink);
}
.sg-tool .sg-btn--ghost:hover,
.sg-tool .sg-btn:not(.sg-btn--primary):hover { background: #e2e8f0; }

/* ---------- 工具卡：按钮吸底居中、卡片等高 ---------- */
.sg-tool {
  display: flex;
  flex-direction: column;
}
.sg-tool > .sg-tool__input,
.sg-tool > .sg-tool__status,
.sg-tool > .sg-tool__output {
  flex: 0 0 auto;
}
.sg-tool__actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
