/* ============================================================
   CDN 产品线（加速 / 高防 · 大陆 / 海外）
   仅在本目录页面引用，不改公共 products.css
   ============================================================ */

.cdn-lead-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-softer);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.cdn-lead-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.cdn-lead-note b { color: var(--ink-2); font-weight: 600; }

.cdn-price-pending {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}
.cdn-price-pending b { font-size: 30px; letter-spacing: -.6px; }
.cdn-price-pending span { color: var(--muted); font-size: 12.5px; }

.cdn-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cdn-quad {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 17px 18px 15px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.cdn-quad__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.cdn-quad__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cdn-quad__title svg { width: 17px; height: 17px; color: var(--accent); }
.cdn-quad__sub { color: var(--muted-2); font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
.cdn-quad ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.cdn-quad li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.cdn-quad li:last-child { border-bottom: 0; padding-bottom: 0; }
.cdn-quad__foot { margin-top: auto; padding-top: 11px; color: var(--muted-2); font-size: 11.5px; }

.cdn-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cdn-status--api { background: color-mix(in srgb, var(--brand-600) 10%, transparent); color: var(--accent); border-color: var(--accent-line); }
.cdn-status--semi { background: rgba(178, 106, 0, .1); color: #9a5b00; border-color: rgba(178, 106, 0, .22); }
.cdn-status--manual { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
html[data-theme="dark"] .cdn-status--semi { color: #f2b45e; }

.cdn-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: var(--bg);
}
table.cdn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 12.5px;
}
table.cdn-table th,
table.cdn-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
table.cdn-table th {
  background: var(--bg-softer);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
}
table.cdn-table td { color: var(--ink-2); }
table.cdn-table tr:last-child td { border-bottom: 0; }
table.cdn-table tbody tr:hover td { background: var(--bg-softer); }
table.cdn-table .cdn-cell-name { color: var(--ink); font-weight: 600; white-space: nowrap; }
table.cdn-table .cdn-cell-sub { display: block; color: var(--muted-2); font-size: 11px; font-weight: 400; margin-top: 2px; }
table.cdn-table .cdn-mark { color: var(--muted-2); }
table.cdn-table .cdn-mark--yes { color: var(--accent); font-weight: 600; }

.cdn-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  counter-reset: cdnstep;
}
.cdn-flow__item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 14px 13px 13px;
}
.cdn-flow__item::before {
  counter-increment: cdnstep;
  content: counter(cdnstep, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cdn-flow__item b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.cdn-flow__item span { display: block; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }

.cdn-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cdn-fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 14px;
}
.cdn-fact b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 6px; }
.cdn-fact p { margin: 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.65; }
.cdn-fact__pending { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 11px; border-top: 1px dashed var(--line); padding-top: 6px; width: 100%; }

/* ---------------------------- 选购 / 询价 ---------------------------- */
.cdn-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding: 26px 0 66px;
}
.cdn-buy__main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cdn-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 17px 18px;
}
.cdn-step__head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.cdn-step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}
.cdn-step__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.cdn-step__hint { margin-left: auto; color: var(--muted-2); font-size: 11.5px; }
.cdn-field { display: flex; flex-direction: column; gap: 6px; }
.cdn-field label { font-size: 12px; color: var(--muted); }
.cdn-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 11px;
  font-size: 13px;
  outline: none;
}
.cdn-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.cdn-input::placeholder { color: var(--muted-2); }
.cdn-select {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 9px;
  font-size: 12.5px;
}
.cdn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.cdn-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cdn-choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cdn-choice {
  position: relative;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg);
  padding: 12px 13px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cdn-choice:hover { border-color: var(--accent-line); }
.cdn-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-weak);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cdn-choice b { display: block; font-size: 13px; margin-bottom: 3px; }
.cdn-choice span { display: block; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }
.cdn-choice__badge { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.cdn-choice[disabled] { opacity: .45; cursor: not-allowed; }

.cdn-summary { position: sticky; top: 86px; }
.cdn-summary__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.cdn-summary__head { padding: 15px 16px 12px; border-bottom: 1px solid var(--line); }
.cdn-summary__head b { font-size: 14px; color: var(--ink); }
.cdn-summary__head span { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 3px; }
.cdn-summary__body { padding: 13px 16px; display: flex; flex-direction: column; gap: 9px; }
.cdn-summary__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cdn-summary__line span { color: var(--muted-2); white-space: nowrap; }
.cdn-summary__line b { color: var(--ink-2); font-weight: 600; text-align: right; word-break: break-all; }
.cdn-summary__price {
  margin: 4px 16px 0;
  padding: 12px 0 13px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.cdn-summary__price span { color: var(--muted); font-size: 12px; }
.cdn-summary__price b { font-size: 22px; color: var(--ink); letter-spacing: -.4px; }
.cdn-summary__foot { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.cdn-summary__note { color: var(--muted-2); font-size: 11px; line-height: 1.6; }

.cdn-alert {
  display: none;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(178, 106, 0, .28);
  background: rgba(178, 106, 0, .08);
  color: #8a5200;
  font-size: 11.5px;
  line-height: 1.6;
}
.cdn-alert.is-on { display: flex; }
html[data-theme="dark"] .cdn-alert { color: #f2b45e; }
.cdn-alert svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }

.cdn-success {
  display: none;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-weak);
  padding: 22px 20px;
}
.cdn-success.is-on { display: block; }
.cdn-success h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.cdn-success p { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.cdn-success code { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; color: var(--accent); }

@media (max-width: 980px) {
  .cdn-buy { grid-template-columns: minmax(0, 1fr); }
  .cdn-summary { position: static; }
  .cdn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdn-facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cdn-matrix { grid-template-columns: 1fr; }
  .cdn-choices, .cdn-choices--three { grid-template-columns: 1fr; }
  .cdn-row { grid-template-columns: 1fr; }
  .cdn-flow { grid-template-columns: 1fr; }
}

/* ---------- Cloudflare 免费版代管（独立卡片，不与付费套餐比价） ---------- */
.mf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.mf-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.mf-card__head b { font-size: 17px; color: var(--ink); }
.mf-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: color-mix(in srgb, var(--brand-600) 8%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.mf-badge--warn { background: rgba(178, 106, 0, .1); border-color: rgba(178, 106, 0, .22); color: #9a5b00; }
.mf-badge--line { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .mf-badge--warn { color: #f2b45e; }
.mf-card__desc { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.mf-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.mf-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.mf-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mf-list li b { color: var(--ink-2); font-weight: 600; text-align: right; }
.mf-card__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px dashed var(--line);
}
.mf-card__price { display: flex; align-items: baseline; gap: 8px; }
.mf-card__price b { font-size: 30px; letter-spacing: -.6px; color: var(--ink); }
.mf-card__price span { color: var(--muted); font-size: 12px; }
.mf-card__side p { margin: 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }

.mf-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.mf-modal[hidden] { display: none; }
.mf-modal__mask { position: absolute; inset: 0; background: rgba(8, 14, 24, .52); backdrop-filter: blur(2px); }
.mf-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.mf-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mf-modal__head h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.mf-modal__head p { margin: 0; color: var(--muted); font-size: 12px; }
.mf-modal__close {
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-soft); color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.mf-form { display: flex; flex-direction: column; gap: 12px; }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-field { display: flex; flex-direction: column; gap: 5px; }
.mf-field label { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mf-field input, .mf-field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.mf-field input:focus, .mf-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 14%, transparent); }
.mf-hint { color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.mf-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.mf-check input { margin-top: 2px; flex: 0 0 auto; }
.mf-check b { color: var(--ink-2); }
.mf-form__msg { padding: 8px 10px; border-radius: 8px; background: var(--danger-soft, rgba(200, 50, 50, .1)); color: var(--danger-deep, #a32a2a); font-size: 12px; line-height: 1.6; }
.mf-form__msg[hidden] { display: none; }
.mf-form__foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.mf-privacy { margin: 0; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.mf-ok { display: flex; flex-direction: column; gap: 8px; }
.mf-ok[hidden] { display: none; }
.mf-ok b { color: var(--ink); font-size: 15px; }
.mf-ok p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.mf-ok code { padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); color: var(--ink-2); font-size: 11.5px; }
.mf-ok__warn { color: #9a5b00 !important; }
.mf-ok .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 860px) {
  .mf-card { grid-template-columns: 1fr; }
  .mf-card__side { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px dashed var(--line); }
  .mf-grid { grid-template-columns: 1fr; }
}

/* 我的代管申请（接口数据，非本地缓存） */
.mf-mine { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mf-mine[hidden] { display: none; }
.mf-mine__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mf-mine__head b { color: var(--ink); font-size: 13.5px; }
.mf-mine__quota { margin-bottom: 8px; color: var(--muted); font-size: 12.5px; }
.mf-mine__bad { color: var(--danger-deep, #a32a2a); }
.mf-mine__muted { margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.7; }
.mf-mine__muted a { color: var(--accent); text-decoration: none; }
.mf-mine__error { margin: 0 0 6px; color: var(--danger-deep, #a32a2a); font-size: 12.5px; line-height: 1.7; }
.mf-mine__item { padding: 10px 0; border-top: 1px dashed var(--line); }
.mf-mine__item:first-of-type { border-top: 0; }
.mf-mine__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-mine__top b { color: var(--ink); font-size: 13px; }
.mf-mine__meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mf-mine__reason { margin-top: 4px; color: var(--danger-deep, #a32a2a); font-size: 12px; }
.mf-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 11px; line-height: 1.7; border: 1px solid var(--line); }
.mf-pill--ok { background: rgba(24, 128, 56, .1); border-color: rgba(24, 128, 56, .25); color: #146c2e; }
.mf-pill--warn { background: rgba(154, 91, 0, .1); border-color: rgba(154, 91, 0, .25); color: #8a5200; }
.mf-pill--bad { background: rgba(200, 50, 50, .1); border-color: rgba(200, 50, 50, .25); color: #a32a2a; }
.mf-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 8px 0 2px; }
.mf-step { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.mf-step i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted-2); font-style: normal; font-size: 10px; }
.mf-step.is-done { color: var(--ink); }
.mf-step.is-done i { border-color: rgba(24, 128, 56, .45); background: rgba(24, 128, 56, .12); color: #146c2e; }
.mf-step.is-now { color: var(--ink); font-weight: 600; }
.mf-step.is-now i { border-color: var(--accent); background: var(--accent); color: #fff; }
.mf-step__line { flex: 0 1 16px; height: 1px; background: var(--line); }
.mf-ns { margin-top: 8px; padding: 9px 11px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; }
.mf-ns__title { color: var(--ink); font-size: 12px; font-weight: 600; }
.mf-ns__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mf-ns__list code { padding: 2px 7px; border-radius: 5px; background: var(--bg); color: var(--ink); font-size: 12px; }
.mf-ns__hint { margin-top: 6px; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
