body {
      font-family: 'Arial', sans-serif;
      background-color: #f4f6f9;
      margin: 0;
      padding: 0;
      color: #333;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      padding: 5px;
      width: 30px;
    }

    @media (max-width: 768px) {
      header .logo {
        display: none !important;
      }

      .menu-toggle {
        display: block;
        margin-right: auto;
        margin-left: 10px;
        order: -1;
      }

      header nav:not(.mobile-nav) {
        display: none;
      }

      .mobile-nav {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 50px);
        background: #007bff;
        padding: 10px 15px;
        transition: left 0.3s;
        z-index: 999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
      }

      .mobile-nav.active {
        left: 0;
      }

      .mobile-nav a {
        display: block;
        color: white;
        padding: 12px 20px;
        margin: 4px 0;
        border-radius: 5px;
        transition: background-color 0.3s;
      }

      .mobile-nav a:hover {
        background-color: rgba(255, 255, 255, 0.15);
      }

      .right-menu {
        gap: 8px;
        margin-left: auto;
        margin-right: 10px;
      }

      .right-menu a span {
        display: none;
      }

      .right-menu a i {
        margin-right: 0;
        font-size: 18px;
      }

      .right-menu a {
        padding: 8px;
        min-width: 36px;
      }

      header .container {
        padding: 5px 0;
        gap: 5px;
        justify-content: flex-start;
      }

      textarea {
        width: 80% !important;
        max-width: none;
        margin: 0 auto 15px;
      }

      .result {
        width: 80% !important;
        max-width: none;
      }
    }

    @media (min-width: 769px) {
      .mobile-nav {
        display: none !important;
      }

      .menu-toggle {
        display: none;
      }

      header nav {
        display: flex;
      }
    }

    header {
      background-color: #007bff;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 100;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      height: 50px;
    }

    header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 100%;
    }

    .logo-img {
      height: 36px;
      width: auto;
      object-fit: contain;
    }

    header nav {
      display: flex;
      gap: 20px;
    }

    header nav a {
      color: #fff;
      text-decoration: none;
      font-size: 15px;
      padding: 8px 12px;
      border-radius: 5px;
      transition: background-color 0.3s;
    }

    .right-menu {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    .right-menu a {
      background-color: #0056b3;
      color: #fff;
      padding: 8px 15px;
      border-radius: 5px;
      font-size: 14px;
      display: flex;
      align-items: center;
      text-decoration: none;
      transition: background-color 0.3s;
    }

    h1 {
      text-align: center;
      color: #007bff;
      font-size: 32px;
      margin: 20px 0;
      margin-top: 120px;
    }

    p {
      font-size: 16px;
      color: #3878fe;
      text-align: center;
      margin-bottom: 20px;
    }

    .domain-prompt {
      color: #000;
    }

    textarea {
      width: 50%;
      max-width: 600px;
      height: 150px;
      margin: 0 auto;
      display: block;
      padding: 15px;
      font-size: 16px;
      border: 1px solid #007bff;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      resize: vertical;
      background-color: #fff;
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
      line-height: 1.6;
      color: #666;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      letter-spacing: 0.02em;
      font-weight: 600;
    }

    button {
      display: block;
      width: 150px;
      padding: 10px;
      margin: 20px auto;
      background-color: #007bff;
      color: white;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease;
    }

    /* 结果盒子 */
    #results {
      text-align: left;
    }

    .result {
      display: none;
      margin: 30px auto;
      padding: 20px;
      background-color: #fff;
      border-radius: 10px;
      border: 1px solid #007bff !important;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 50%;
      max-width: 600px;
      text-align: left;
    }

    /* 更美观：表格 + 徽章 */
    .result-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }

    .summary {
      font-size: 13px;
      color: #666;
    }

    table.res-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;

      /* ✅ 方案1：固定表格布局，避免内容把容器“撑宽/显得变宽” */
      table-layout: fixed;
    }

    table.res-table th,
    table.res-table td {
      padding: 10px 8px;
      border-bottom: 1px solid #eef2f7;
      vertical-align: top;
    }

    table.res-table th {
      color: #333;
      font-weight: 700;
      background: #f7fbff;
      border-radius: 6px;
    }

    /* ✅ 方案1：域名列允许断行（长域名不会撑宽） */
    table.res-table td:first-child {
      word-break: break-all;
    }

    .badge {
      /* ✅ 方案1：改为 inline-flex，让图标+文字紧凑，且不影响容器宽度 */
      display: inline-flex;
      align-items: center;
      gap: 6px;

      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      line-height: 18px;
      user-select: none;

      /* ✅ 方案1：避免状态文本换行导致布局抖动（可选） */
      white-space: nowrap;
      max-width: 100%;
    }

    /* ✅ 方案1：badge 内的微信图标 */
    .badge .wx-badge-icon {
      width: 14px;
      height: 14px;
      flex: 0 0 14px;
      vertical-align: -2px;
    }

    .badge-ok {
      background: #e8f8ee;
      color: #198754;
      border: 1px solid rgba(25, 135, 84, 0.2);
    }

    .badge-bad {
      background: #fdecec;
      color: #dc3545;
      border: 1px solid rgba(220, 53, 69, 0.2);
    }

    .badge-warn {
      background: #fff6df;
      color: #b7791f;
      border: 1px solid rgba(183, 121, 31, 0.25);
    }

    .small-muted {
      display: block;
      margin-top: 6px;
      font-size: 12px;
      color: #888;
      line-height: 1.4;
      word-break: break-all;
    }

    /* 微信弹窗 */
    .weixin-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background: white;
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      position: relative;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 24px;
      cursor: pointer;
      color: #666;
    }

    .qrcode-img {
      width: 200px;
      height: 200px;
      margin: 15px 0;
    }

    footer {
      background-color: #f8f9fa;
      padding: 15px;
      text-align: center;
      position: fixed;
      bottom: 0;
      width: 100%;
      border-top: 1px solid #dee2e6;
    }

    footer p {
      margin: 0;
      color: #555;
    }

    footer a {
      color: #007bff;
      text-decoration: none;
    }
    
/* 迷你提示条（检测结果下方） */
.result-mini-tip {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px dashed rgba(0, 123, 255, 0.25);
  font-size: 12px;
  color: #355;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tip-text {
  flex: 1;
}

.tip-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px dashed #007bff;
  transition: all 0.2s ease;
}

.tip-link:hover {
  color: #0056b3;
  border-bottom: 1px solid #0056b3;
}