@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  .row { gap: 10px; }
  th:first-child, td:first-child { width: auto; }
}

@media (max-width: 640px) {
  .page-nav {
    gap: 10px;
    margin-bottom: 36px;
    padding-top: 4px;
  }
  .nav-header {
    display: grid;
    grid-template-columns: 36px auto;
    column-gap: 12px;
    align-items: center;
    justify-content: start;
  }
  .brand-block {
    min-width: 0;
    align-items: flex-start;
  }
  .nav-header-spacer {
    display: none;
  }
  .page-shell {
    min-height: 100vh;
    padding: 18px 0 40px;
  }
  .language-picker {
    top: 22px;
    right: 16px;
  }
  .language-trigger {
    height: 36px;
    padding: 0 7px;
    font-size: 12px;
  }
  .language-menu {
    min-width: 104px;
  }
  .site-footer {
    padding-top: 28px;
  }
  .footer-links {
    gap: 6px 12px;
  }
  .container {
    padding: 0 16px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-button {
    display: inline-flex;
    position: static;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: #fff;
    color: var(--accent);
    border-color: var(--border);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu-button:hover {
    background: var(--surface-2);
    border-color: #d8dce3;
  }
  .hamburger-line {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1500;
  }
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 300px);
    padding: 18px;
    background: #fff;
    border-right: 1px solid var(--border);
    box-shadow: 18px 0 36px rgba(15, 23, 42, 0.12);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 1600;
    flex-direction: column;
    gap: 14px;
    text-align: left;
  }
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
  }
  .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    line-height: 1;
  }
  .mobile-nav-close .icon {
    width: 22px;
    height: 22px;
  }
  .mobile-nav-close:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .mobile-nav-list {
    display: grid;
    gap: 8px;
  }
  .mobile-nav-list .mode-input {
    display: none;
  }
  .mobile-nav-list .mode-option {
    width: 100%;
    height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    border-color: var(--border);
    background: #fff;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  body.mobile-nav-open .mobile-nav-drawer {
    transform: translateX(0);
  }
  .brand {
    color: #6b7280;
    font-size: 15px;
  }
  .site-subtitle {
    display: none;
  }
  .tool-title {
    display: block;
    margin: 20px 0 36px;
    font-size: 18px;
  }
  .query-card {
    padding: 16px;
  }
  .result-card {
    padding: 16px;
  }
  .mode-form-row {
    flex-wrap: wrap;
  }
  #specificTldRow {
    gap: 10px;
    align-items: start;
  }
  #specificTldRow #prefixInput {
    flex: 1 1 100%;
    width: 100%;
  }
  #specificTldRow .op-plus {
    flex: 0 0 20px;
    height: 40px;
  }
  #specificTldRow .form-break,
  #specificTldRow .query-preview,
  #specificTldRow #runBtn {
    flex: 1 1 100%;
    width: 100%;
  }
  #specificTldRow #wordCategory,
  #specificTldRow #suffixInput,
  #specificTldRow .tld-block {
    flex: 1 1 calc(100% - 30px);
    width: 100%;
    min-width: 0;
  }
  #allTldRow {
    gap: 10px;
    align-items: start;
  }
  #allTldRow #allTldWord {
    flex: 1 1 100%;
    width: 100%;
  }
  #allTldRow .op-plus {
    flex: 0 0 20px;
    width: 20px;
    height: 40px;
  }
  #allTldRow #allTldBlock {
    flex: 1 1 calc(100% - 30px);
    width: auto;
    min-width: 0;
  }
  #allTldRow .form-break,
  #allTldRow .query-preview,
  #allTldRow #runBtnAll {
    flex: 1 1 100%;
    width: 100%;
  }
  #allTldRow .tld-presets {
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
  }
  #allTldRow #allTldChips {
    gap: 4px;
    align-items: center;
  }
  #allTldRow .tld-chip-muted {
    height: 26px;
    padding: 0 7px;
    font-size: 11px;
  }
  input, select, textarea, button {
    width: 100%;
  }
  #allTldRow .tld-preset {
    height: 26px;
    padding: 0 7px;
    font-size: 11px;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }
  #tldInput, #wordCategory, #runBtn, #runBtnAll, #runBtnBulk, #runBtnHack { width: 100%; min-width: 0; }
  .tld-block {
    flex: 1 1 100%;
    min-width: 0;
  }
  #runBtn,
  #runBtnAll,
  #runBtnBulk,
  #runBtnHack {
    margin-left: 0;
  }
  .query-preview {
    display: none;
  }
  .row { align-items: stretch; }
  #pagerRow { flex-direction: column; gap: 8px; align-items: stretch; }
  .pager-link { width: 100%; }
  #pageInfo { width: 100%; }
  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .faq-panel {
  }
  .export-row,
  .export-row button {
    width: 100%;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  table {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  thead {
    display: none;
  }
  tbody {
    display: grid;
    gap: 10px;
  }
  tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }
  tr:last-child td {
    border-bottom: 1px solid #f1f1f1;
  }
  tr:last-child td:last-child,
  td:last-child {
    border-bottom: none;
  }
  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    height: auto;
    padding: 10px 12px;
    line-height: 1.35;
    border-bottom: 1px solid #f1f1f1;
    white-space: normal;
  }
  td::before {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 12px;
    line-height: 1;
  }
  td:nth-child(1) {
    display: flex;
    align-items: center;
    max-width: none;
    color: var(--text);
    font-size: 14px;
    min-height: 48px;
    line-height: 1.45;
    word-break: break-all;
  }
  td:nth-child(2)::before {
    content: "状态";
  }
  td:nth-child(3)::before {
    content: "WHOIS";
  }
  td:nth-child(4)::before {
    content: none;
  }
  td:nth-child(2),
  td:nth-child(3),
  td:nth-child(4) {
    max-width: none;
  }
  td:nth-child(3) {
    align-items: center;
  }
  td:nth-child(3) .whois-group {
    margin-left: 8px;
  }
  td:nth-child(4) {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    white-space: normal;
  }
  .register-btn {
    margin-left: 0;
    width: auto;
    flex: 0 0 auto;
  }
}
