/* VPS 单配置详情页 */

.vd-page {
  padding: 24px 0 48px;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    #f5f7fb;
}

.vd-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vd-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.vd-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  align-items: start;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.vd-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
  color: #1d4ed8;
  font-size: 22px;
}

.vd-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vd-hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vd-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
}

.vd-lead {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  max-width: 52rem;
}

.vd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 12.5px;
}

.vd-tags li svg {
  color: #2563eb;
  flex-shrink: 0;
}

.vd-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  scrollbar-width: thin;
}

.vd-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  white-space:nowrap;
  cursor: pointer;
  text-decoration: none;
}

.vd-tab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.vd-tab.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.vd-tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.vd-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.vd-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.vd-card-h {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vd-card-h::before {
  content: "";
  width: 4px;
  height: 1em;
  border-radius: 99px;
  background: #2563eb;
}

.vd-meta-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.vd-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.vd-pill.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.vd-pill.is-partial {
  background: #fff7ed;
  color: #c2410c;
}

.vd-pill.is-empty {
  background: #f1f5f9;
  color: #64748b;
}

.vd-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vd-spec-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.vd-spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
}

.vd-spec-item strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.vd-spec-item span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.vd-net-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: 16px;
  align-items: center;
}

.vd-kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

.vd-kv > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 14px;
}

.vd-kv dt {
  margin: 0;
  color: #64748b;
}

.vd-kv dd {
  margin: 0;
  color: #0f172a;
  font-weight: 550;
}

.vd-map {
  position: relative;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(239, 246, 255, 0.95)),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(148, 163, 184, 0.12) 18px, rgba(148, 163, 184, 0.12) 19px),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(148, 163, 184, 0.12) 18px, rgba(148, 163, 184, 0.12) 19px);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.vd-map-pin {
  position: absolute;
  left: 28%;
  top: 42%;
  transform: translate(-50%, -100%);
  color: #dc2626;
  filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.25));
}

.vd-map-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  padding: 4px 8px;
  border-radius: 8px;
}

.vd-bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vd-bench-col {
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.vd-bench-col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  font-weight: 650;
}

.vd-bench-metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
}

.vd-bench-metric:last-child {
  border-bottom: 0;
}

.vd-bench-metric strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.vd-summary-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.vd-summary-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}

.vd-summary-list span {
  color: #64748b;
  font-weight: 650;
}

.vd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vd-empty {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.vd-empty strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.vd-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.vd-price-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.vd-price-head {
  padding: 18px 18px 14px;
  background: linear-gradient(160deg, #2563eb, #1d4ed8 55%, #1e40af);
  color: #fff;
}

.vd-price-head .vd-price-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.vd-price-head .vd-price-value {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.15;
}

.vd-price-head .vd-price-sub {
  margin-top: 6px;
  font-size: 12.5px;
  opacity: 0.9;
}

.vd-price-body {
  padding: 14px 18px 18px;
}

.vd-price-rows {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
}

.vd-price-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
}

.vd-price-rows strong {
  color: #0f172a;
  font-weight: 600;
}

.vd-price-card .btn {
  width: 100%;
  justify-content: center;
}

.vd-score-card .vd-score-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vd-score-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#2563eb var(--vd-score, 0%), #e2e8f0 0);
  font-weight: 750;
  color: #1d4ed8;
  font-size: 18px;
}

.vd-score-ring small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.1;
}

.vd-score-bars {
  display: grid;
  gap: 10px;
}

.vd-score-row {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}

.vd-score-row > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.vd-score-track {
  height: 7px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}

.vd-score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.vd-info-rows {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 13px;
}

.vd-info-rows > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.vd-info-rows dt {
  margin: 0;
  color: #64748b;
}

.vd-info-rows dd {
  margin: 0;
  color: #0f172a;
}

.vd-related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-related-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.vd-related-list a:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: #eff6ff;
}

.vd-related-list strong {
  display: block;
  font-size: 13.5px;
}

.vd-related-list span {
  font-size: 12px;
  color: #64748b;
}

.vd-tip {
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .vd-layout {
    grid-template-columns: 1fr;
  }

  .vd-side {
    position: static;
  }

  .vd-spec-grid,
  .vd-bench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vd-hero {
    grid-template-columns: 1fr;
  }

  .vd-spec-grid,
  .vd-bench-grid,
  .vd-net-grid {
    grid-template-columns: 1fr;
  }

  .vd-meta-chip {
    margin-left: 0;
    width: 100%;
  }
}
