.module-page [hidden] { display: none !important; }
.module-page { font-size: 13px; line-height: 1.65; }
.module-main { width: min(calc(100% - 40px), var(--max)); min-height: calc(100vh - 210px); margin: 0 auto; padding: 32px 0 30px; overflow: visible; }
.module-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.module-intro > div { min-width: 0; }
.module-intro h1 { line-height: 1.2; }
.module-intro p:not(.module-kicker) { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.module-kicker { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.module-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.module-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 10px; background: #dceecb; color: #20462f; font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.module-button:hover { background: #cce4b5; }
.module-button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.module-button.secondary:hover { background: var(--surface-soft); }
.module-button.danger { background: #fce1e8; border-color: #e9b4c1; color: #9b3550; }
.module-page button:disabled { opacity: .55; cursor: not-allowed; }
.module-page :is(button, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.module-status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 3px 9px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.module-status.positive { background: var(--accent-soft); color: var(--accent); }
.module-status.warning { background: var(--warning-soft); color: var(--warning); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; margin: 14px 0; }
.module-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.module-card.wide { grid-column: span 2; }
.module-card.full { grid-column: 1 / -1; }
.module-card > :last-child { margin-bottom: 0; }
.module-card h2, .module-card h3 { margin: 0; font-size: 15px; font-weight: 750; line-height: 1.4; letter-spacing: -.015em; }
.module-card-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.module-card-heading p { margin: 5px 0 0; }
.module-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.module-note a, .module-text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.module-notice { padding: 14px 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.7; }
.module-notice p { margin: 0; }
.module-notice strong { color: var(--ink); }
.module-dl { margin: 0; }
.module-dl > div { display: grid; grid-template-columns: minmax(80px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.module-dl dt { color: var(--muted); }
.module-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.module-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.module-stat { min-width: 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--muted); font-size: 12px; }
.module-stat strong { display: block; margin-top: 5px; color: var(--ink); font-size: 21px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.module-stat p { margin: 5px 0 0; font-size: 11px; }
.module-table-wrap { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.module-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.module-table caption { text-align: left; color: var(--muted); margin-bottom: 12px; }
.module-table th, .module-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.module-table th { background: var(--surface-soft); color: var(--muted); font-weight: 650; white-space: nowrap; }
.module-table td { overflow-wrap: anywhere; }
.module-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.module-empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; }
.module-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.module-form .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.module-page input:not([type=checkbox]), .module-page select, .module-page textarea { width: 100%; min-width: 0; height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; outline: none; }
.module-page textarea { min-height: 100px; resize: vertical; }
.module-page :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,107,80,.1); }
.module-page input[type=checkbox] { width: 16px; height: 16px; margin: 0 7px 0 0; padding: 0; accent-color: var(--accent); }
.module-page :is(input, select)[aria-invalid=true] { border-color: #b64c63; }
.module-segments { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; width: fit-content; max-width: 100%; margin-bottom: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.module-segments button { min-height: 34px; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.module-segments button:is(.active, [aria-selected=true], [aria-pressed=true]) { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(20,35,29,.06); }
.module-error { margin: 10px 0 0; color: #a33f50; font-size: 12px; overflow-wrap: anywhere; }
.module-error:empty { display: none; }
.module-page code, .module-page pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.module-code { margin: 0; min-height: 255px; max-height: 440px; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink); font-size: 12px; line-height: 1.7; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.module-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.module-list li + li { margin-top: 9px; }
.module-faq details { padding: 14px 0; border-top: 1px solid var(--line); }
.module-faq summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.module-faq details p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.module-card .module-actions:last-child { margin-top: 16px; }
.monitor-task { padding: 16px 0; overflow-wrap: anywhere; }
.monitor-task + .monitor-task { border-top: 1px solid var(--line); }
.monitor-task:first-child { padding-top: 0; }
.module-page footer { padding-top: 22px; padding-bottom: 28px; }
.module-page.dark .module-error { color: #f5aabc; }

/* Scope result typography to output values, never navigation, field labels or explanatory copy. */
.module-page { --result-font: "Microsoft YaHei", "PingFang SC", "SimHei", sans-serif; }
.module-page .module-stat strong,
.module-page #environment-results dd,
.module-page #platform-results dd,
.module-page #cidr-details dd,
.module-page #ip-format-details dd,
.module-page #dns-answers td,
.module-page #monitor-history td,
.module-page .monitor-task .module-card-heading h3,
.module-page .monitor-task .module-card-heading .module-note,
.module-page .monitor-task .module-status,
.module-page #environment-status,
.module-page #platform-status,
.module-page #dns-status,
.module-page #dns-meta,
.module-page #ip-format-status,
.module-page #monitor-storage-mode,
.module-page #docs-count {
  font-family: var(--result-font);
  font-weight: 700;
}
.module-page #api-example { font-weight: 700; }

@media (max-width: 960px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card.wide { grid-column: 1 / -1; }
  .module-main { padding-top: 24px; }
}
@media (max-width: 620px) {
  .module-main { width: calc(100% - 28px); padding-top: 22px; }
  .module-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .module-grid, .module-summary { grid-template-columns: minmax(0, 1fr); }
  .module-card { padding: 18px; }
  .module-stat { padding: 13px 18px; }
  .module-stat strong { margin-top: 4px; font-size: 18px; }
  .module-form { align-items: stretch; }
  .module-form .field { flex-basis: 100%; }
  .module-table { min-width: 560px; }
  .module-code { min-height: 210px; }
}
