/* DNS Lookup - Baiming Service
   Visual system aligned with Image to Text Converter.
*/

/* Shared product header */

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.header-inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.top-nav a,
.site-footer a {
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: #111827;
}

/* Page */

.dns-page {
  --dns-primary: #2563eb;
  --dns-primary-dark: #1d4ed8;
  --dns-ink: #111827;
  --dns-muted: #6b7280;
  --dns-border: #e5e7eb;
  --dns-soft: #f9fafb;
  --dns-success: #15803d;
  --dns-error: #b91c1c;
  color: var(--dns-ink);
}

.dns-page [hidden] {
  display: none !important;
}

.dns-page .container {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

/* Product introduction */

.dns-hero {
  padding: 56px 0 30px;
}

.dns-eyebrow,
.dns-section-eyebrow {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dns-page .dns-hero h1 {
  margin: 0;
  color: var(--dns-ink);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.dns-intro {
  max-width: 760px;
  margin: 16px 0 18px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
}

.dns-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #4b5563;
  font-size: 13px;
}

.dns-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dns-benefits i {
  color: var(--dns-success);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

/* Main tool */

.dns-tool-section {
  padding-bottom: 18px;
}

.dns-tool-card,
.dns-results-card {
  border: 1px solid var(--dns-border);
  border-radius: 14px;
  background: #ffffff;
}

.dns-tool-card {
  padding: 24px;
}

.dns-card-heading {
  margin-bottom: 22px;
}

.dns-card-heading h2,
.dns-results-heading h2,
.dns-info-card h2 {
  margin: 0;
  color: var(--dns-ink);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dns-card-heading > p:last-child {
  margin: 5px 0 0;
  color: var(--dns-muted);
  font-size: 13px;
  line-height: 1.65;
}

.dns-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 18px;
}

.dns-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.dns-field label {
  color: var(--dns-ink);
  font-size: 13px;
  font-weight: 650;
}

.dns-field input,
.dns-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  color: var(--dns-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dns-field input:focus,
.dns-field select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dns-field input::placeholder {
  color: #9ca3af;
}

.dns-field small {
  color: var(--dns-muted);
  font-size: 11px;
  line-height: 1.5;
}

.dns-actions,
.dns-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dns-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.dns-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.dns-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.dns-button-primary {
  background: #111827;
  color: #ffffff;
}

.dns-button-primary:hover:not(:disabled) {
  background: #293548;
}

.dns-button-secondary {
  border-color: #d1d5db;
  background: #ffffff;
  color: #111827;
}

.dns-button-secondary:hover:not(:disabled) {
  background: #f3f4f6;
}

.dns-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.6;
}

.dns-status.is-loading {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.dns-status.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.dns-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* Privacy notice - aligned with the main container */

.dns-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 30px;
  padding: 14px 16px;
  border: 1px solid #dcfce7;
  border-radius: 11px;
  background: #f0fdf4;
}

.dns-privacy-icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.dns-privacy-note strong {
  display: block;
  margin-bottom: 3px;
  color: #14532d;
  font-size: 13px;
}

.dns-privacy-note p {
  margin: 0;
  color: #365744;
  font-size: 12px;
  line-height: 1.7;
}

.dns-privacy-note a {
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Results */

.dns-results-section {
  padding-bottom: 30px;
  scroll-margin-top: 24px;
}

.dns-results-card {
  padding: 22px;
}

.dns-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dns-results-heading h2 {
  font-size: 19px;
}

.dns-result-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}

.dns-result-badge.is-negative {
  background: #fef3c7;
  color: #92400e;
}

.dns-result-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dns-meta-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--dns-border);
  border-radius: 9px;
  background: #f9fafb;
}

.dns-meta-item span,
.dns-resolver-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--dns-muted);
  font-size: 11px;
}

.dns-meta-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--dns-ink);
  font-size: 13px;
}

.dns-answer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.dns-answer-heading h3 {
  margin: 0;
  font-size: 15px;
}

.dns-answer-heading span {
  color: var(--dns-muted);
  font-size: 12px;
}

.dns-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--dns-border);
  border-radius: 9px;
}

.dns-answer-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dns-answer-table th,
.dns-answer-table td {
  padding: 12px;
  border-bottom: 1px solid var(--dns-border);
  font-size: 12px;
  line-height: 1.6;
  vertical-align: top;
}

.dns-answer-table th {
  background: #f9fafb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.dns-answer-table td {
  color: #374151;
  overflow-wrap: anywhere;
}

.dns-answer-table tr:last-child td {
  border-bottom: 0;
}

.dns-answer-table td:last-child {
  max-width: 560px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
}

.dns-no-answer {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.dns-resolver-info {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dns-border);
}

.dns-resolver-info span {
  margin-bottom: 5px;
}

.dns-resolver-info strong {
  color: #4b5563;
  font-size: 12px;
}

.dns-result-actions {
  margin-top: 16px;
}

/* Instructions and reference sections
   Content starts at the same left edge as the page logo.
*/

.dns-info-section,
.dns-faq-section {
  padding: 0;
}

.dns-info-card {
  padding: 28px 0 32px;
  border-top: 1px solid var(--dns-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dns-info-card > h2 {
  margin-bottom: 16px;
}

.dns-info-lead {
  margin: -6px 0 18px;
  color: var(--dns-muted);
  font-size: 13px;
  line-height: 1.7;
}

.dns-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
  margin-top: 22px;
}

.dns-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.dns-step-number {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef2f7;
  color: #374151;
  font-size: 11px;
  font-weight: 750;
}

.dns-step h3 {
  margin: 2px 0 5px;
  font-size: 14px;
}

.dns-step p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.dns-record-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}

.dns-record-guide > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.dns-record-guide strong {
  min-width: 54px;
  color: var(--dns-primary);
  font-size: 13px;
}

.dns-record-guide span {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

/* FAQ */

.dns-faq-list {
  width: 100%;
  margin-top: 12px;
}

.dns-faq-list details {
  border-bottom: 1px solid var(--dns-border);
}

.dns-faq-list details:last-child {
  border-bottom: 0;
}

.dns-faq-list summary {
  position: relative;
  padding: 14px 30px 14px 0;
  cursor: pointer;
  color: var(--dns-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}

.dns-faq-list summary::-webkit-details-marker {
  display: none;
}

.dns-faq-list summary::after {
  position: absolute;
  top: 12px;
  right: 5px;
  content: "+";
  color: #2563eb;
  font-size: 21px;
  font-weight: 400;
}

.dns-faq-list details[open] summary::after {
  content: "−";
}

.dns-faq-list details p {
  max-width: 850px;
  margin: 0;
  padding: 0 25px 16px 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.75;
}

/* Shared product footer */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9ca3af;
  font-size: 12px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  font-size: 12px;
}

/* Responsive */

@media (max-width: 800px) {
  .header-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    margin: 0;
  }

  .dns-hero {
    padding: 40px 0 24px;
  }

  .dns-intro {
    font-size: 15px;
  }

  .dns-benefits {
    gap: 8px 16px;
  }

  .dns-tool-card,
  .dns-results-card {
    padding: 18px;
  }

  .dns-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dns-result-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dns-steps,
  .dns-record-guide {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .dns-page .container {
    width: calc(100% - 28px);
  }

  .brand-logo {
    width: 155px;
  }

  .top-nav a {
    font-size: 12px;
  }

  .dns-page .dns-hero h1 {
    font-size: 34px;
  }

  .dns-tool-card,
  .dns-results-card {
    padding: 16px;
    border-radius: 12px;
  }

  .dns-actions,
  .dns-result-actions {
    flex-direction: column;
  }

  .dns-actions .dns-button,
  .dns-result-actions .dns-button {
    width: 100%;
  }

  .dns-result-meta {
    grid-template-columns: 1fr;
  }

  .dns-results-heading {
    align-items: flex-start;
  }

  .dns-answer-table th,
  .dns-answer-table td {
    padding: 10px 8px;
    font-size: 11px;
  }

  .dns-privacy-note {
    gap: 9px;
    padding: 12px;
  }

  .dns-info-card {
    padding: 24px 0 27px;
  }

  .dns-faq-list summary {
    font-size: 13px;
  }

  .footer-inner nav {
    gap: 14px;
  }
}
