
  :root {
    --bg: #fff; --bg-soft: #f8f9fb; --bg-card: #fff; --bg-hover: #eef1f5;
    --text: #1a1a1a; --text-soft: #57606a; --text-muted: #8b949e;
    --border: #e1e4e8; --border-strong: #d8dce0;
    --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  }
  [data-theme="dark"] {
    --bg: #0d1117; --bg-soft: #161b22; --bg-card: #161b22; --bg-hover: #21262d;
    --text: #e6edf3; --text-soft: #c9d1d9; --text-muted: #8b949e;
    --border: #30363d; --border-strong: #444c56;
    --shadow: 0 1px 4px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0d1117; --bg-soft: #161b22; --bg-card: #161b22; --bg-hover: #21262d;
      --text: #e6edf3; --text-soft: #c9d1d9; --text-muted: #8b949e;
      --border: #30363d; --border-strong: #444c56;
      --shadow: 0 1px 4px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
    }
  }
  .ts-wrap { position: relative; margin-left: auto; align-self: center; z-index: 100; margin-top: -6px; }
  .ts-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background 0.15s, transform 0.15s; -webkit-tap-highlight-color: transparent; }
  .ts-btn:hover { background: var(--bg-hover); }
  .ts-btn:active { transform: scale(0.96); }
  .ts-btn svg { width: 14px; height: 14px; stroke: currentColor; }
  .ts-menu { position: absolute; top: 44px; right: 0; min-width: 148px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; display: none; }
  .ts-menu.open { display: block; }
  .ts-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: transparent; border: none; color: var(--text); font: inherit; font-size: 14px; border-radius: 6px; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
  .ts-item:hover { background: var(--bg-hover); }
  .ts-item svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
  .ts-item[aria-current="true"] { background: var(--bg-hover); font-weight: 500; }
  @media (max-width: 480px) {
    .ts-btn { width: 26px; height: 26px; }
    .ts-btn svg { width: 13px; height: 13px; }
  }
  
  /* 表头渐变：明亮保留，暗夜 override */
  [data-theme="dark"] .main-table th { background: var(--bg-soft) !important; }
  [data-theme="dark"] .dns-table th { background: var(--bg-soft) !important; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .main-table th { background: var(--bg-soft) !important; }
    :root:not([data-theme="light"]) .dns-table th { background: var(--bg-soft) !important; }
  }
  body { background: var(--bg) !important; color: var(--text) !important; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { overflow-y: scroll; }
  body { font-family: system-ui, sans-serif; background: var(--bg-card); color: var(--text); min-height: 100vh; line-height: 1.6; }
  .container { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }

  .nav { display: flex; gap: 20px; margin-bottom: 20px; font-size: 0.9em; align-items: center; }
  .nav a { color: var(--text-soft); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; -webkit-tap-highlight-color: transparent; outline: none; display: inline-block; line-height: 1.5; white-space: nowrap; flex-shrink: 0; }
  .nav a:hover { color: var(--text); }
  .nav a:focus, .nav a:active { outline: none; }
  .nav a.active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--text); }
  .nav .short { display: none; }
  .nav .shortest { display: none; }
  /* nav-ipcard-new-css */
  .nav .pc-only-new { display: inline-flex; align-items: center; gap: 4px; }
  .nav .nav-new {
    font-size: 0.3em; font-weight: 700; padding: 1px 3px; border-radius: 3px;
    background: linear-gradient(90deg,#ef4444,#f59e0b); color: #fff;
    letter-spacing: 0.4px; text-transform: uppercase; line-height: 1.4;
  }
  @media (max-width: 580px) { .nav .pc-only-new { display: none; } }
  @media (max-width: 580px) { .nav .full { display: none; } .nav .short { display: inline; } .nav { gap: 14px; } }
  @media (max-width: 399px) {
    .nav a[href="/claude/"] .short { display: none; }
    .nav a[href="/claude/"] .shortest { display: inline; }
    .nav { gap: 12px; }
    .ts-btn { width: 24px; height: 24px; }
    .ts-btn svg { width: 12px; height: 12px; }
  }
  @media (max-width: 339px) {
    .nav { gap: 8px; font-size: 0.88em; }
    .ts-btn { width: 22px; height: 22px; }
    .ts-btn svg { width: 11px; height: 11px; }
  }

  h1 { font-size: 1.75em; font-weight: 700; margin-bottom: 8px; }
  .desc { color: var(--text-soft); font-size: 0.9em; margin-bottom: 24px; line-height: 1.6; }
  @media (max-width: 480px) { .desc { font-size: 0.82em; } }

  .test-area { text-align: center; margin-bottom: 30px; }
  .test-area button {
    padding: 12px 36px; border: none; border-radius: 8px;
    background: var(--text); color: var(--bg); font-size: 1em; font-weight: 600;
    cursor: pointer; margin: 0 8px;
  }
  .test-area button:hover { background: var(--text-soft); }
  .test-area button:disabled { background: var(--text-muted); cursor: not-allowed; }

  .status-bar {
    text-align: center; margin-bottom: 24px; font-size: 0.88em; min-height: 28px; color: var(--text-muted);
  }

  .result-card {
    border: 1px solid var(--border-strong); border-radius: 12px; padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
  }
  .result-card .card-title {
    font-size: 0.82em; color: var(--text-muted); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 14px;
  }

  .verdict {
    text-align: center; padding: 20px; margin-bottom: 24px;
    border-radius: 12px; font-size: 1.1em; font-weight: 600;
  }
  .verdict-safe { background: #d1fae5; color: #065f46; }
  .verdict-warn { background: #fef3c7; color: #92400e; }
  .verdict-danger { background: #fce4ec; color: #c62828; }

  .dns-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
    font-size: 0.9em;
    box-shadow: var(--shadow);
  }
  .dns-table th {
    text-align: left; padding: 10px 16px;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef0f3 100%);
    border-bottom: 1px solid var(--border-strong); font-weight: 600; font-size: 0.85em; color: var(--text-soft);
  }
  .dns-table td {
    padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
  }
  .dns-table tbody tr:nth-child(even) { background: var(--bg-soft); }
  .dns-table tr:last-child td { border-bottom: none; }

  .tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.82em; font-weight: 600; }
  .tag-safe { background: #d1fae5; color: #065f46; }
  .tag-warn { background: #fef3c7; color: #92400e; }
  .tag-danger { background: #fce4ec; color: #c62828; }
  .tag-info { background: #dbeafe; color: #1d4ed8; }
  .tag-neutral { background: #e5e7eb; color: var(--text-soft); }

  .loading-bar {
    display: inline-block; height: 14px; border-radius: 4px;
    background-color: #e5e7eb; overflow: hidden; position: relative;
  }
  .loading-bar::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    animation: shimmer 1.5s linear infinite; will-change: transform;
  }
  @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

  .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: var(--text); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 6px; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  @media (max-width: 700px) { .article-grid { grid-template-columns: 1fr; } }
  .article-fold {
    border: 1px solid var(--border-strong); border-radius: 10px; margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .article-fold summary {
    padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 0.95em;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
  }
  .article-fold summary::-webkit-details-marker { display: none; }
  .article-fold summary::after { content: '▸'; color: var(--text-muted); transition: transform 0.2s; }
  .article-fold[open] summary::after { transform: rotate(90deg); }
  .article-fold[open] summary { border-bottom: 1px solid var(--border); }
  .article-body {
    padding: 16px 18px; font-size: 0.9em; line-height: 1.8; color: var(--text);
  }
  .article-body p { margin-bottom: 12px; }
  .article-body strong { color: var(--text); }
  .article-body code { background: #f1f3f5; padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
  .article-body ul { padding-left: 20px; margin-bottom: 12px; }
  .article-body li { margin-bottom: 6px; }

  footer { text-align: center; padding: 30px 0 20px; color: var(--text-muted); font-size: 0.82em; }
  footer a { color: var(--text-muted); text-decoration: none; }

  @media (max-width: 480px) {
    .container { padding: 14px 12px; }
    h1 { font-size: 1.4em; }
    .dns-table { font-size: 0.78em; }
    .dns-table th, .dns-table td { padding: 7px 8px; }
    .test-area button { padding: 10px 24px; font-size: 0.9em; }
  }

  /* nav-more 下拉(原内联,移入head防FOUC) */
  .nav-more{position:relative;display:inline-flex;align-items:center}.nav-more-trigger{cursor:pointer;display:inline-flex;align-items:center;gap:3px;color:var(--text-soft,#666);line-height:1.5;border-bottom:2px solid transparent;padding-bottom:4px;white-space:nowrap}.nav-more:hover .nav-more-trigger{color:var(--text,#1a1a1a)}.nav-more-arrow{transition:transform .15s}.nav-more:hover .nav-more-arrow{transform:rotate(180deg)}.nav-more-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:2px;background:var(--bg-card,#fff);border:1px solid var(--border,#e1e4e8);border-radius:9px;box-shadow:0 4px 16px rgba(0,0,0,0.12);padding:5px;min-width:120px;opacity:0;visibility:hidden;transition:opacity .15s;z-index:300}.nav-more:hover .nav-more-menu{opacity:1;visibility:visible}.nav-more-menu a{display:block;padding:8px 12px;border-radius:6px;border-bottom:none !important;white-space:nowrap;color:var(--text,#1a1a1a);font-size:0.95em}.nav-more-menu a:hover{background:var(--bg-hover,#eef1f5)}.nav-more-menu::before{content:"";position:absolute;left:-12px;right:-12px;top:-18px;height:18px}.nav-more-menu{transition:opacity .15s ease,visibility 0s linear .35s}.nav-more:hover .nav-more-menu{transition:opacity .15s ease,visibility 0s}
  

  .w-search { display: flex; gap: 10px; margin-bottom: 14px; }
  .w-search input { flex: 1; min-width: 0; padding: 12px 16px; font-size: 1em; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-card); color: var(--text); outline: none; }
  .w-search input:focus { border-color: var(--text-muted); }
  .w-search button { padding: 12px 32px; border: none; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 1em; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .w-search button:hover { background: var(--text-soft); }
  .w-search button:disabled { background: var(--text-muted); cursor: not-allowed; }
  .w-examples { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; font-size: 0.82em; color: var(--text-muted); align-items: center; }
  .w-chip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; color: var(--text-soft); background: var(--bg-soft); -webkit-tap-highlight-color: transparent; }
  .w-chip:hover { background: var(--bg-hover); color: var(--text); }
  /* 小屏:隐藏"示例："文字并压缩间距,让 4 个示例挤进一行不换行 */
  @media (max-width: 480px) {
    .w-ex-label { display: none; }
    .w-examples { gap: 6px; }
    .w-examples .w-chip { padding: 3px 8px; }
  }
  @media (max-width: 360px) {
    .w-examples { gap: 5px; }
    .w-examples .w-chip { padding: 3px 7px; font-size: 0.95em; }
  }
  .w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  @media (max-width: 700px) { .w-grid { grid-template-columns: 1fr; } }
  .w-card { border: 1px solid var(--border-strong); border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); background: var(--bg-card); }
  .w-card h3 { font-size: 0.95em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
  .w-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.88em; border-bottom: 1px dashed var(--border); }
  .w-row:last-child { border-bottom: none; }
  .w-row .k { color: var(--text-muted); white-space: nowrap; }
  .w-row .v { text-align: right; word-break: break-all; }
  .w-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.85em; margin: 2px 0 2px 4px; background: var(--bg-soft); border: 1px solid var(--border); }
  .w-badge.warn { background: #fff1f0; border-color: #f5c2c7; color: #c0392b; }
  [data-theme="dark"] .w-badge.warn { background: #3a1d1d; border-color: #6e2c2c; color: #ff8f8f; }
  .w-badge.good { background: #eafaf0; border-color: #bfe8cd; color: #1a7f3c; }
  [data-theme="dark"] .w-badge.good { background: #16301f; border-color: #2c5e3d; color: #6fd394; }
  .w-free { text-align: center; padding: 40px 20px; border: 1px solid #bfe8cd; background: #eafaf0; border-radius: 12px; margin-bottom: 16px; }
  [data-theme="dark"] .w-free { background: #16301f; border-color: #2c5e3d; }
  .w-error { text-align: center; padding: 24px; border: 1px solid #f5c2c7; background: #fff1f0; border-radius: 12px; color: #c0392b; margin-bottom: 16px; font-size: 0.92em; }
  [data-theme="dark"] .w-error { background: #3a1d1d; border-color: #6e2c2c; color: #ff8f8f; }
  .w-loading { text-align: center; padding: 46px 20px; color: var(--text-muted); }
  .w-spin { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--text-soft); border-radius: 50%; animation: wspin 0.8s linear infinite; vertical-align: middle; margin-right: 10px; }
  @keyframes wspin { to { transform: rotate(360deg); } }
  .w-meta { font-size: 0.78em; color: var(--text-muted); margin: 4px 0 18px; text-align: right; }
  .w-raw { margin-bottom: 26px; }
  .w-raw summary { cursor: pointer; font-size: 0.88em; color: var(--text-soft); padding: 8px 0; }
  .w-rawact { float: right; display: inline-flex; gap: 8px; }
  .w-rawbtn { font-size: 0.85em; padding: 2px 12px; }
  .w-raw pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 0.78em; overflow-x: auto; white-space: pre-wrap; word-break: break-all; max-height: 480px; overflow-y: auto; }
  .w-faq { margin-top: 34px; }
  .w-faq h2 { font-size: 1.15em; margin-bottom: 12px; }
  .w-faq h3 { font-size: 0.95em; margin: 14px 0 4px; }
  .w-faq p { font-size: 0.86em; color: var(--text-soft); }
  .w-hero { border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); background: var(--bg-card); margin-bottom: 14px; }
  .w-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .w-hero-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .w-hero-ic svg { width: 22px; height: 22px; stroke: var(--text-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .w-hero-name { font-size: 1.3em; font-weight: 700; word-break: break-all; line-height: 1.3; }
  a.w-hero-name { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; }
  a.w-hero-name:hover { text-decoration: underline; text-underline-offset: 3px; }
  a.w-hero-name svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.45; align-self: center; }
  a.w-hero-name:hover svg { opacity: 0.9; }
  .w-hero-sub { font-size: 0.82em; color: var(--text-muted); margin-top: 2px; word-break: break-all; }
  .w-pill { font-size: 0.78em; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
  .w-pill.ok { background: #eafaf0; border: 1px solid #bfe8cd; color: #1a7f3c; }
  .w-pill.bad { background: #fff1f0; border: 1px solid #f5c2c7; color: #c0392b; }
  .w-pill.mut { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-soft); }
  [data-theme="dark"] .w-pill.ok { background: #16301f; border-color: #2c5e3d; color: #6fd394; }
  [data-theme="dark"] .w-pill.bad { background: #3a1d1d; border-color: #6e2c2c; color: #ff8f8f; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .w-pill.ok { background: #16301f; border-color: #2c5e3d; color: #6fd394; }
    :root:not([data-theme="light"]) .w-pill.bad { background: #3a1d1d; border-color: #6e2c2c; color: #ff8f8f; }
  }
  .w-tl { margin-top: 16px; }
  .w-tl-lab { display: flex; justify-content: space-between; font-size: 0.75em; color: var(--text-muted); margin-bottom: 5px; }
  .w-tl-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
  .w-tl-fill { height: 100%; }
  .w-tl-cap { font-size: 0.78em; color: var(--text-soft); margin-top: 6px; }
  .w-ns { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.84em; line-height: 2.1; word-break: break-all; }
  .w-copy { cursor: pointer; opacity: 0.5; margin-left: 6px; -webkit-tap-highlight-color: transparent; }
  .w-copy:hover { opacity: 1; }
  .w-cat { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
  .w-cat:hover { background: var(--bg-hover); }
  .w-skel { border-radius: 8px; background: var(--bg-hover); animation: wpulse 1.2s ease-in-out infinite; }
  @keyframes wpulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
