/* Leaderboards, collections, relay directory and detail pages. Generated by scripts/build_frontend_bundles.py. */

/* ========== /leaderboard 红黑榜 ========== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.leaderboard-banner-ads {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.leaderboard-banner-ads::-webkit-scrollbar {
  display: none;
}
.leaderboard-banner-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 6px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  scroll-snap-type: x mandatory;
}
.leaderboard-banner-ad-card {
  position: relative;
  display: block;
  width: 300px;
  height: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: none;
  color: var(--text);
  scroll-snap-align: start;
}
.leaderboard-banner-ad-card:hover {
  border-color: var(--green);
  box-shadow: none;
  text-decoration: none;
}
.leaderboard-banner-ad-card:focus-visible {
  outline: 3px solid rgb(16 185 129 / 35%);
  outline-offset: 2px;
}
.leaderboard-banner-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.leaderboard-banner-ad-vacant {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 3px;
  padding: 12px 44px 12px 12px;
  background: var(--bg-soft);
  text-align: center;
}
.leaderboard-banner-ad-vacant strong {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}
.leaderboard-banner-ad-vacant span {
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.leaderboard-banner-ad-vacant small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.leaderboard-banner-ad-label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  background: rgb(15 23 42 / 72%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}
.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  align-items: flex-start;
}
.official-baseline-row {
  border-left: 4px solid #3b82f6;
  background: #f8fbff;
}
.lb-rank {
  font-size: 24px;
  text-align: center;
  padding-top: 4px;
}
.lb-rank-baseline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.lb-rank-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.lb-main { min-width: 0; }
.lb-domain {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  word-break: break-all;  /* 长域名能换行 */
}
.lb-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
.lb-badge-info {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}
.lb-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-proto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
}
.lb-proto-chip:hover { text-decoration: none; transform: translateY(-1px); transition: transform 0.1s; }
.lb-proto-name { font-weight: 600; }
.lb-proto-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-proto-verdict { font-size: 11.5px; opacity: 0.85; }
.lb-proto-count { font-size: 11px; opacity: 0.7; }
.lb-proto-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.lb-proto-good  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lb-proto-warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lb-proto-fail  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lb-issues {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.lb-issues code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  border: 1px solid var(--line);
}
.lb-score {
  text-align: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
}
.lb-score-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-score-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.lb-score-ok    { background: var(--green-soft); color: var(--green-dark); }
.lb-score-good  { background: #f0fdf4; color: #166534; }
.lb-score-warn  { background: #fffbeb; color: #92400e; }
.lb-score-fail  { background: #fef2f2; color: #991b1b; }
.lb-score-crit {
  display: block; margin-top: 4px; font-size: 9.5px; font-weight: 700;
  color: #991b1b; letter-spacing: .02em; white-space: nowrap;
}
.lb-score-crit-some { color: #92400e; }

.lb-answer-panel {
  margin: 18px 0 18px;
  padding: 18px 20px;
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f0fdf4;
}
.lb-answer-kicker {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.lb-answer-intro h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.lb-answer-intro p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}
.lb-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.lb-answer-grid article {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.72);
}
.lb-answer-grid h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.lb-answer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.lb-ranking-rules {
  margin: 18px 0 24px;
}
.lb-ranking-rules details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.lb-ranking-rules summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.lb-ranking-rules summary::-webkit-details-marker { display: none; }
.lb-ranking-rules summary::after {
  content: '+';
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}
.lb-ranking-rules details[open] summary::after { content: '−'; }
.lb-rules-title {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.lb-rules-brief {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.lb-rules-body {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.lb-rules-body p {
  margin: 0 0 8px;
}
.lb-rules-body ul {
  margin: 0;
  padding-left: 20px;
}
.lb-rules-body li + li {
  margin-top: 4px;
}

/* leaderboard list — domain link + detail entry */
.lb-domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.lb-domain a:hover {
  border-bottom-color: var(--muted);
  text-decoration: none;
}
.lb-detail-link {
  font-size: 12.5px;
  color: var(--green-dark, #0E756B);
  text-decoration: none;
  font-weight: 500;
}
.lb-detail-link:hover { text-decoration: underline; }

/* leaderboard detail page — per-domain SEO surface */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--muted); opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 500; word-break: break-all; }

.lb-detail-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-score {
  text-align: center;
  min-width: 110px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.lb-detail-score-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-detail-score-label {
  display: block;
  font-size: 11px;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.lb-detail-protocols h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lb-detail-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.lb-detail-issues {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.lb-detail-issues h2 {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lb-issues-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-issues-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
}
.lb-issues-list code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 12px;
  color: var(--text);
}
.lb-issues-count {
  color: var(--muted);
  font-size: 11.5px;
}

.lb-detail-history {
  margin: 28px 0;
}
.lb-detail-history h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lb-history-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lb-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lb-history-table thead {
  background: var(--bg-soft);
}
.lb-history-table th,
.lb-history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lb-history-table th.num,
.lb-history-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-history-table tbody tr:last-child td { border-bottom: none; }
.lb-history-table tbody tr:hover { background: var(--bg-soft); }
.lb-history-table code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.lb-history-table thead tr code,
.lb-history-table tbody tr:hover code {
  background: var(--bg);
}
.lb-history-score {
  display: inline-block;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.lb-history-score-ok    { background: #ecfdf5; color: #065f46; }
.lb-history-score-good  { background: #f0fdf4; color: #166534; }
.lb-history-score-warn  { background: #fffbeb; color: #92400e; }
.lb-history-score-fail  { background: #fef2f2; color: #991b1b; }
/* 检测无效:中性灰,不渲染成红色"未达标" */
.lb-history-score-invalid { background: var(--bg-soft); color: var(--muted); }
.lb-invalid-label { color: var(--muted); font-weight: 500; cursor: help; }
.lb-history-invalid { color: var(--muted); }

/* Leaderboard section headers — separate Top 10 from全部列表. */
.lb-section-heading {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lb-section-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lb-section-heading p {
  margin: 0;
}

.leaderboard-apply-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 10px;
  padding: 18px 20px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  box-shadow: none;
}
.leaderboard-apply-copy { min-width: 0; }
.leaderboard-apply-kicker {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}
.leaderboard-apply-cta h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}
.leaderboard-apply-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.leaderboard-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .leaderboard-apply-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .leaderboard-apply-actions {
    flex-direction: column;
  }
  .leaderboard-apply-actions .btn {
    width: 100%;
  }
}

/* Pagination — server-rendered links so each page is a distinct URL
 * for SEO long-tail (?page=2 etc.). Designed mobile-first: chips
 * wrap onto multiple lines if needed instead of overflowing. */
.lb-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
  font-size: 14px;
}
.lb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lb-page-btn:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.lb-page-current {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 600;
}
.lb-page-current:hover {
  background: var(--green);  /* lock — current page isn't a link */
  color: white;
}
.lb-page-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lb-page-ellipsis {
  align-self: flex-end;
  padding: 7px 4px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .lb-answer-panel {
    padding: 16px;
  }
  .lb-answer-grid {
    grid-template-columns: 1fr;
  }
  .lb-ranking-rules summary {
    align-items: flex-start;
  }
  .lb-rules-brief {
    display: none;
  }
  .lb-detail-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lb-detail-score { min-width: 0; }
  .lb-detail-score-num { font-size: 40px; }
}
/* Commercial/admin surfaces introduced by relay listing v2.
   Keep them on the same white, quiet SaaS visual system as the detector UI. */
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.page-actions a {
  font-size: 13px;
  font-weight: 600;
}
.notice {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.notice h2,
.notice h3,
.notice p {
  margin: 0;
}
.notice h2,
.notice h3 {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}
.notice p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.notice-success {
  border-left-color: var(--green);
  background: #f0fdf4;
}
.notice-warning {
  border-left-color: var(--amber);
  background: #fffbeb;
}
.notice-danger {
  border-left-color: var(--red);
  background: #fef2f2;
}
.notice-muted {
  border-left-color: #9ca3af;
  background: var(--bg-soft);
}
.notice-code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  word-break: break-all;
}
.inline-emphasis {
  color: var(--green-dark);
  font-weight: 700;
}
.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.subtle-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
}
.info-list dt {
  color: var(--muted);
}
.info-list dd {
  margin: 0;
  min-width: 0;
}
.info-list a,
.info-list code {
  overflow-wrap: anywhere;
}
.steps-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}
.steps-list li + li {
  margin-top: 6px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: 14px;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea,
.inline-form input,
.inline-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.form-row textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.inline-form input:focus,
.inline-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
.hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}
.form-success {
  color: var(--green-dark);
  font-weight: 600;
}
.partner-login-submit:disabled {
  background: #DDE6E3;
  border-color: #d1d5db;
  color: #5C6B72;
  cursor: not-allowed;
}
.partner-login-submit:disabled:hover {
  background: #DDE6E3;
  border-color: #d1d5db;
}
.partner-auth-page .hub-hero {
  margin-bottom: 28px;
}
.partner-auth-page .partner-auth-card {
  max-width: 920px;
  margin-left: 0;
  margin-right: auto;
  padding: 36px;
}
.partner-register-page .partner-auth-card {
  max-width: 1040px;
}
.partner-auth-page .section-title {
  margin-bottom: 24px;
  font-size: 20px;
}
.partner-auth-form {
  display: grid;
  gap: 18px;
}
.partner-auth-page .partner-form-grid {
  gap: 18px;
}
.partner-auth-page .form-row {
  gap: 9px;
  margin-bottom: 0;
}
.partner-auth-page .form-row label {
  font-size: 15px;
}
.partner-auth-page .form-row input,
.partner-auth-page .readonly-box {
  min-height: 50px;
  padding: 13px 16px;
  font-size: 16px;
}
.partner-auth-page .hint {
  font-size: 13.5px;
}
.partner-auth-status {
  margin-top: -2px;
}
.partner-auth-actions {
  gap: 12px;
  margin-top: 2px;
}
.partner-auth-actions .btn {
  min-height: 48px;
  padding: 12px 22px;
}
.partner-auth-actions .btn-primary {
  min-width: 180px;
}
.partner-auth-note {
  max-width: 760px;
  margin-top: -2px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.06);
  color: #4b5563;
}
/* 提示文案做成链接:保持小字,但用主色 + hover 下划线,明确可点 */
a.hint-link { color: var(--green-dark); text-decoration: none; font-weight: 500; }
a.hint-link:hover { text-decoration: underline; }

/* 404 页 */
.notfound-code {
  font-size: 64px; font-weight: 800; line-height: 1;
  color: var(--green); margin: 0 0 6px; letter-spacing: .04em;
}

/* 判定被 verdict/critical 封顶时的说明小字(分数虚高但下调判定) */
.lb-cap-note {
  display: inline; color: #b45309; font-size: 13px; font-weight: 500;
}

/* /apply 运营方联系方式:类型下拉 + 值输入框并排 */
.contact-method-row { display: flex; gap: 8px; align-items: stretch; }
.contact-method-row select { flex: 0 0 auto; width: auto; min-width: 96px; }
.contact-method-row input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .contact-method-row { flex-direction: column; }
  .contact-method-row select { width: 100%; }
}
.required {
  color: var(--red);
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.button-row .btn-primary {
  width: auto;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.admin-nav a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.admin-nav a:hover {
  border-color: var(--green);
  text-decoration: none;
}
.status-chip,
.tier-badge,
.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending,
.status-warn {
  color: #92400e;
  background: #fef3c7;
}
.status-approved,
.status-paid,
.status-active,
.status-success,
.tier-pro,
.slot-pick {
  color: #0E756B;
  background: var(--green-soft);
}
.tier-pro {
  color: #065f46;
  background: var(--bg-soft);
  border: 1px solid rgba(16, 185, 129, .45);
  box-shadow: none;
}
.tier-pro::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 999px;
  color: #fff; background: #0E756B;
  font-size: 10px; line-height: 1; font-weight: 900;
  box-shadow: none;
}
.status-rejected,
.status-danger,
.status-failed,
.status-suspended {
  color: #991b1b;
  background: #fee2e2;
}
.status-muted,
.status-inactive {
  color: #4b5563;
  background: #f3f4f6;
}
.tier-basic {
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}
.tier-featured,
.slot-featured {
  color: #92400e;
  background: #fef3c7;
}
.admin-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead {
  background: var(--bg-soft);
}

.apply-benefits {
  background: var(--bg);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: none;
}
.apply-benefits-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}
.apply-benefits-head h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}
.apply-benefits-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.apply-benefits-cta {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.apply-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.apply-benefit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-soft);
}
.apply-benefit-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 15px;
}
.apply-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.apply-pricing-strip,
.operator-cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #f0fdf4;
}
.apply-pricing-strip strong,
.operator-cta-strip strong {
  display: block;
  color: var(--green-dark);
  font-size: 16px;
}
.apply-pricing-strip span,
.operator-cta-strip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.apply-pricing-strip a {
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.apply-pricing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.owner-contact-inline {
  font-weight: 700;
  color: var(--green-dark) !important;
}
.owner-contact-inline strong,
.operator-contact-line strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", Consolas, monospace;
}
.owner-contact-inline span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 600;
}
.owner-qq-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.operator-contact-line {
  margin-top: 6px !important;
  color: var(--green-dark) !important;
  font-weight: 700;
}
.operator-cta-strip {
  margin: 18px 0 0;
  box-shadow: none;
}
.operator-cta-btn {
  width: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover {
  background: var(--bg-soft);
}
.admin-table .wrap {
  white-space: normal;
  min-width: 220px;
}
.admin-table .muted {
  color: var(--muted);
  font-size: 12px;
}
.admin-table .actions {
  min-width: 260px;
}
.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.inline-form input {
  width: 140px;
  padding: 6px 8px;
  font-size: 12px;
}
.btn-small {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
}
.btn-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}
.btn-danger:hover {
  background: #fee2e2;
}
.btn-warning {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}
.btn-warning:hover {
  background: #fef3c7;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.admin-partner-access-page .hub-hero {
  margin-bottom: 28px;
}
.admin-partner-access-page .hub-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: .95;
  margin-bottom: 18px;
}
.admin-partner-access-page .answer-capsule {
  max-width: none;
  font-size: 18px;
}
.admin-partner-access-page .admin-nav {
  gap: 12px;
  margin-top: 24px;
}
.admin-partner-access-page .admin-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
  box-shadow: none;
}
.admin-partner-access-page .admin-panel-card {
  padding: 30px 34px;
  border-radius: 14px;
  box-shadow: none;
}
.admin-partner-access-page .admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-partner-access-page .admin-panel-head .section-title {
  margin-bottom: 8px;
}
.admin-partner-access-page .admin-panel-head .muted {
  max-width: 880px;
  margin: 0;
  line-height: 1.65;
}
.admin-partner-access-page .admin-partner-form {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(320px, 1.35fr) minmax(150px, .55fr);
  gap: 18px 22px;
  align-items: end;
}
.admin-partner-access-page .admin-plan-form {
  grid-template-columns: minmax(360px, 1.35fr) minmax(240px, .8fr) minmax(120px, .35fr);
}
.admin-partner-access-page .admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.admin-partner-access-page .admin-field span {
  color: #475569;
}
.admin-partner-access-page .admin-field input,
.admin-partner-access-page .admin-field select,
.admin-partner-access-page .admin-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}
.admin-partner-access-page .admin-field textarea {
  min-height: 112px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.admin-partner-access-page .admin-field select[multiple] {
  min-height: 156px;
  padding: 8px;
}
.admin-partner-access-page .admin-field optgroup {
  color: #475569;
  font-style: normal;
  font-weight: 800;
}
.admin-partner-access-page .admin-field option {
  padding: 7px 8px;
  color: var(--text);
  font-weight: 700;
}
.admin-partner-access-page .admin-field em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}
.admin-partner-access-page .admin-field input:focus,
.admin-partner-access-page .admin-field select:focus,
.admin-partner-access-page .admin-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
.admin-partner-access-page .admin-field-days input {
  max-width: 150px;
}
.admin-partner-access-page .admin-field-binding {
  grid-column: 1 / 2;
}
.admin-partner-access-page .admin-partner-form .field-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
}
.admin-partner-access-page .admin-partner-form .field-actions .btn {
  width: min(100%, 280px);
  min-height: 52px;
  border-radius: 8px;
  font-size: 16px;
}
.admin-partner-access-page .admin-plan-form .field-actions {
  grid-column: 2 / 3;
}
.admin-partner-access-page .admin-empty-hint {
  margin: 14px 0 0;
}
.admin-partner-access-page .admin-table-wrap {
  margin-top: 0;
}
.admin-partner-access-page .admin-table th,
.admin-partner-access-page .admin-table td {
  padding: 12px 14px;
}
.readonly-box {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.affiliate-panel {
  padding: 16px;
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f0fdf4;
}
.readonly-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.compact-panel {
  margin: 12px 0 18px;
}
.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.simple-list li + li {
  margin-top: 4px;
}
.content-card {
  margin-top: 20px;
}
.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.75;
}
.content-card p {
  margin: 0 0 12px;
}
.content-card p:last-child {
  margin-bottom: 0;
}
.content-card ul,
.content-card ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.content-card li + li {
  margin-top: 6px;
}
.commitment-card {
  border-left: 4px solid var(--green);
  background: #f0fdf4;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  background: #f0fdf4;
  color: #0E756B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.partner-pill:hover {
  text-decoration: none;
  border-color: var(--green);
}
.faq-list details {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.faq-list details:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  padding: 6px 0;
}
.faq-list details p,
.faq-list details ul {
  margin-top: 8px;
}
.faq-list details p {
  padding-left: 12px;
}
.empty-state {
  margin: 24px 0;
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
}
.empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.empty-state p + p {
  margin-top: 10px;
}
.recommended-section {
  margin-top: 28px;
}
.section-hint {
  margin-bottom: 14px;
}
.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-card,
.recommend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.featured-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-left: 4px solid var(--amber);
}
.featured-card-content {
  flex: 1 1 260px;
  min-width: 0;
}
.recommend-card {
  padding: 18px;
  border-left: 4px solid var(--green);
}
.commercial-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.commercial-card-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.recommend-card .commercial-card-head h3 {
  font-size: 16px;
}
.commercial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.commercial-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.commercial-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.title-badge {
  margin-left: 10px;
  vertical-align: middle;
}
.title-pro-badge {
  margin-left: 8px;
  padding: 4px 9px 4px 5px;
  gap: 5px;
  font-size: 12px;
  line-height: 1;
  vertical-align: super;
  transform: translateY(-0.24em);
}
.title-pro-badge::before {
  content: none;
}
.pro-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #fff;
  background: #0E756B;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  box-shadow: none;
}
.status-info {
  color: #1d4ed8;
  background: #dbeafe;
}
.official-zone {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.official-zone-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.official-zone-main {
  flex: 1 1 240px;
  min-width: 0;
}
.official-zone-label {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.official-zone h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.official-desc {
  color: var(--muted);
  max-width: 820px;
}
.official-desc p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.official-desc p + p {
  margin-top: 16px;
}
.official-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.official-actions .btn {
  text-align: center;
}
.unlisted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.actions-col {
  width: 300px;
}
.table-empty {
  text-align: center;
  padding: 30px;
}

@media (max-width: 640px) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .featured-card,
  .commercial-actions,
  .official-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .featured-card .btn,
  .commercial-actions .btn,
  .official-actions .btn {
    width: 100%;
    text-align: center;
  }
}
/* ============ /relays 中转站导航频道 ============ */
/* 严格复用 :root 现有变量(--green/--amber/--red/--bg-soft/--green-soft/--line/--muted),不引入新色卡 */

.page-relays { max-width: 920px; margin: 0 auto; }
.relays-header h1 { margin: 0 0 6px; font-size: 24px; }
.relays-header h2 { margin: 0 0 6px; font-size: 20px; }
.relays-header p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }

.relays-controls {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.sort-tabs { display: inline-flex; gap: 4px; }
.sort-tab {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--muted);
}
.sort-tab.active { background: var(--green-soft); color: var(--green-dark); }
.window-picker, .filter-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.relays-controls .chip {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted);
}
.relays-controls .chip.active { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }

/* 行 */
.relay-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px;
  align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line);
  color: var(--text);
}
.relay-row:hover { background: var(--bg-soft); text-decoration: none; }
.relay-avatar {
  width: 32px; height: 32px; border-radius: 8px; background: var(--green-soft);
  color: var(--green-dark); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.relay-main { min-width: 0; }
.relay-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.relay-domain { font-weight: 600; font-size: 15px; word-break: break-all; }
.relay-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1.35; padding: 3px 9px;
  border-radius: 999px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap;
}
.badge-pro {
  color: #065f46;
  background: var(--bg-soft);
  border: 1px solid rgba(16, 185, 129, .45);
  box-shadow: none;
}
.badge-pro::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 999px;
  color: #fff; background: #0E756B;
  font-size: 10px; line-height: 1; font-weight: 900;
  box-shadow: none;
}
.badge-basic {
  color: #374151;
  background: var(--bg-soft);
  border: 1px solid #d1d5db;
}
.badge-featured {
  color: #92400e;
  background: var(--bg-soft);
  border: 1px solid #fcd34d;
  box-shadow: none;
}
.badge-high-fail { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge-high-risk { background: #fef3c7; color: #b45309; }

/* 认证收录置顶区 — 明确标注的付费区块,与下方有机列表物理隔离 */
.certified-section {
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 14px 16px 8px;
  margin: 16px 0 22px;
  background: var(--green-soft);
}
.certified-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-bottom: 6px;
}
.certified-title { font-size: 15px; font-weight: 700; color: var(--green-dark); margin: 0; }
.certified-note { line-height: 1.4; }

/* 紧凑卡片网格:2 列(桌面)/ 1 列(移动),限量 + 轮播,高度恒定 */
.certified-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.certified-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.certified-card:hover { border-color: var(--green); box-shadow: none; }
.cc-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px;
  background: var(--green-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.cc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-domain { font-weight: 600; font-size: 14px; word-break: break-all; }
.cc-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cc-activity-bar {
  flex: 0 0 auto;
  width: 70px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--green-soft);
}
.cc-activity-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.cc-go { flex: 0 0 auto; color: var(--green); font-size: 13px; font-weight: 600; white-space: nowrap; }
.certified-more {
  display: inline-block; margin: 10px 2px 4px;
  color: var(--green-dark); font-size: 13px; font-weight: 600; text-decoration: none;
}
.certified-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .certified-grid { grid-template-columns: 1fr; }
}
.relays-list-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 4px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.relay-line2 { margin: 3px 0; display: flex; flex-wrap: wrap; gap: 5px; }
.relay-proto {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.relay-line3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.small { font-size: 12px; }
.sparkline { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.spark-bar { width: 5px; background: var(--green); border-radius: 1px; opacity: 0.7; }
.relay-line4 { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.verdict-bar {
  display: inline-flex; height: 6px; width: 120px; border-radius: 3px;
  overflow: hidden; background: var(--line);
}
.verdict-bar .v-pass { background: var(--green); }
.verdict-bar .v-marg { background: var(--amber); }
.verdict-bar .v-fail { background: var(--red); }
.relay-go { font-size: 13px; color: var(--green-dark); white-space: nowrap; font-weight: 600; }

/* 顶部 banner 赞助位 */
.directory-top-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  margin: 14px 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); color: var(--text); position: relative;
}
.directory-top-banner:hover { box-shadow: none; text-decoration: none; }
.sponsor-chip {
  position: absolute; top: 8px; right: 10px; font-size: 11px;
  padding: 2px 8px; border-radius: 4px; background: var(--green-soft);
  color: var(--green-dark); font-weight: 600;
}
.dtb-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dtb-title { font-weight: 700; font-size: 16px; }
.dtb-tagline { font-size: 13px; color: var(--muted); }
.dtb-cta { font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* 翻页 */
.relays-pagination { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 22px 0; }
.relays-page-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.relays-page-btn.disabled { color: var(--line); border-color: var(--bg-soft); }
.relays-page-cur { font-size: 13px; color: var(--muted); }
.relays-empty { padding: 40px 0; text-align: center; }

/* 移动端:折叠 verdict 三色 bar + 缩小 avatar */
@media (max-width: 640px) {
  .relay-row { grid-template-columns: 28px 1fr; }
  .relay-avatar { width: 26px; height: 26px; font-size: 13px; }
  .relay-line4 .verdict-bar { display: none; }
  .relay-go { display: none; }
}

/* leaderboard 底部「逛全部」CTA */
.relays-cta {
  margin: 20px 0; padding: 16px 18px; border: 1px solid var(--green-soft);
  border-radius: 12px; background: var(--bg-soft);
}
.relays-cta p { margin: 0; font-size: 14px; line-height: 1.6; }
/* Leaderboards and collections */
body.v1-shell .lb-tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 20px;
  border-bottom: 1px solid var(--v1-line);
  overflow-x: auto;
  scrollbar-width: none;
}

body.v1-shell .lb-tabs::-webkit-scrollbar { display: none; }

body.v1-shell .lb-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  color: var(--v1-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

body.v1-shell .lb-tabs a:hover,
body.v1-shell .lb-tabs a.is-active {
  border-bottom-color: var(--v1-brand);
  color: var(--v1-brand);
}

body.v1-shell .lb-chooser { margin: 8px 0 24px; }
body.v1-shell .lb-chooser-q { margin: 0 0 10px; color: var(--v1-muted); font-size: 14px; }
body.v1-shell .lb-chooser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

body.v1-shell .lb-choice {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius);
  background: var(--v1-surface);
  text-decoration: none;
}

body.v1-shell .lb-choice:hover { border-color: #8ebdb4; background: #f8fbfa; }
body.v1-shell .lb-choice-name { color: var(--v1-text); font-size: 16px; font-weight: 700; }
body.v1-shell .lb-choice-tag { display: block; margin-top: 5px; color: var(--v1-muted); font-size: 13px; line-height: 1.5; }
body.v1-shell .lb-choice-count { display: block; margin-top: 8px; color: #718086; font-size: 12px; }
body.v1-shell .lb-choice-claude { border-color: #9bcfc5; background: var(--v1-brand-soft); }
body.v1-shell .lb-choice-claude .lb-choice-name { color: var(--v1-brand); }
body.v1-shell .lb-choice-claude .lb-choice-tag { color: #376b64; }

body.v1-shell .leaderboard-list { display: grid; gap: 14px; }
body.v1-shell .leaderboard-list > article { border-color: var(--v1-line); border-radius: var(--v1-radius); background: var(--v1-surface); }
body.v1-shell .lb-proto-chip.is-dimmed { opacity: .45; }

body.v1-shell .lb-proto-sig {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

body.v1-shell .lb-sig-ok { border: 1px solid #9bcfc5; background: var(--v1-brand-soft); color: var(--v1-brand); }
body.v1-shell .lb-sig-warn { border: 1px solid #e8c785; background: #fff7e5; color: #8a5700; }
body.v1-shell .lb-sig-fail { border: 1px solid #e8b2af; background: #fff0ef; color: #9b3632; }

body.v1-shell .lb-use-case-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.v1-shell .lb-use-case-row--compact { margin-top: 6px; }
body.v1-shell .lb-use-case-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12px; }
body.v1-shell .lb-use-case-chip.is-suitable { border: 1px solid #9bcfc5; background: var(--v1-brand-soft); color: var(--v1-brand); }
body.v1-shell .lb-use-case-chip.is-risk { border: 1px solid #e8c785; background: #fff7e5; color: #8a5700; }

body.v1-shell .table-scroll,
body.v1-shell .lb-history-table-wrap,
body.v1-shell .context-table-wrap {
  max-width: 100%;
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius);
  background: var(--v1-surface);
  overflow-x: auto;
}

body.v1-shell table { color: var(--v1-text); }
body.v1-shell th { background: #edf4f2; color: #35514e; }
body.v1-shell th,
body.v1-shell td { border-color: var(--v1-line); }

/* Relay detail and automatic review */
body.v1-shell .endpoint-note { color: var(--v1-muted); font-size: 12px; }

body.v1-shell .official-zone,
body.v1-shell .unlisted-actions,
body.v1-shell .auto-review,
body.v1-shell .lb-detail-summary,
body.v1-shell .lb-detail-issues,
body.v1-shell .lb-detail-history {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--v1-line);
  border-radius: var(--v1-radius);
  background: var(--v1-surface);
}

body.v1-shell .unlisted-actions-head,
body.v1-shell .auto-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.v1-shell .unlisted-actions-copy { margin: 10px 0 2px; color: var(--v1-muted); font-size: 14px; line-height: 1.7; }
body.v1-shell .unlisted-actions-emphasis,
body.v1-shell .unlisted-actions-link { color: var(--v1-brand); }
body.v1-shell .unlisted-actions-warning { color: #9b3632; }
body.v1-shell .unlisted-actions-hint { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e8c785; border-radius: var(--v1-radius-sm); background: #fff7e5; color: #7b510b; font-size: 13px; line-height: 1.6; }
body.v1-shell .unlisted-actions-cta { margin-top: 12px; }

body.v1-shell .auto-review-head { margin-bottom: 16px; }
body.v1-shell .auto-review-head h2 { margin: 0; color: var(--v1-brand); font-size: 20px; }
body.v1-shell .auto-review-meta { color: var(--v1-muted); font-size: 12px; }
body.v1-shell .auto-review-meta strong { color: var(--v1-text); }
body.v1-shell .auto-review-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }

body.v1-shell .auto-review-metric {
  min-width: 0;
  padding: 14px;
  border-left: 4px solid transparent;
  border-radius: var(--v1-radius-sm);
  background: var(--v1-canvas);
}

body.v1-shell .auto-review-metric.is-positive,
body.v1-shell .auto-review-grade.is-positive,
body.v1-shell .auto-review-critical.is-positive { border-left-color: var(--v1-brand); }
body.v1-shell .auto-review-metric.is-caution,
body.v1-shell .auto-review-grade.is-caution,
body.v1-shell .auto-review-critical.is-caution { border-left-color: #b87500; }
body.v1-shell .auto-review-metric.is-danger,
body.v1-shell .auto-review-grade.is-danger,
body.v1-shell .auto-review-critical.is-danger { border-left-color: #b8443f; }
body.v1-shell .auto-review-grade.is-info { border-left-color: #3978b7; }

body.v1-shell .auto-review-value { color: var(--v1-text); font-size: 22px; font-weight: 700; line-height: 1.1; }
body.v1-shell .auto-review-value span { color: var(--v1-muted); font-size: 13px; font-weight: 450; }
body.v1-shell .auto-review-value--grade { font-size: 28px; }
body.v1-shell .auto-review-value--trend { font-size: 18px; }
body.v1-shell .is-positive { color: var(--v1-brand); }
body.v1-shell .is-info { color: #2b6cae; }
body.v1-shell .is-caution { color: #986000; }
body.v1-shell .is-danger { color: #a83e39; }
body.v1-shell .is-neutral { color: var(--v1-muted); }
body.v1-shell .auto-review-label { margin-top: 7px; color: var(--v1-muted); font-size: 11px; letter-spacing: .04em; }
body.v1-shell .auto-review-risk-note { margin-top: 6px; color: #986000; font-size: 11px; line-height: 1.35; }

body.v1-shell .auto-review-callout { margin-bottom: 16px; padding: 12px 16px; border-left: 3px solid; border-radius: 0 var(--v1-radius-sm) var(--v1-radius-sm) 0; }
body.v1-shell .auto-review-callout--positive { border-left-color: var(--v1-brand); background: var(--v1-brand-soft); }
body.v1-shell .auto-review-callout--warning { border-left-color: #b87500; background: #fff7e5; }
body.v1-shell .auto-review-callout-title { margin-bottom: 4px; color: var(--v1-brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
body.v1-shell .auto-review-callout--warning .auto-review-callout-title,
body.v1-shell .auto-review-blocker { color: #8a5700; }
body.v1-shell .auto-review-callout-copy { color: var(--v1-text); font-size: 14px; }
body.v1-shell .auto-review-inline-warning { margin-left: 8px; color: #a83e39; font-size: 12px; }

body.v1-shell .auto-review-section { margin-bottom: 16px; }
body.v1-shell .auto-review-section-title { display: block; margin: 0 8px 8px 0; color: var(--v1-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
body.v1-shell .auto-review-recommendations .auto-review-section-title { display: inline-block; }
body.v1-shell .auto-review-tag { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; background: #eef3f2; font-size: 12px; font-weight: 650; }
body.v1-shell .auto-review-tag.is-positive { background: var(--v1-brand-soft); }
body.v1-shell .auto-review-tag.is-caution { background: #fff7e5; }
body.v1-shell .auto-review-tag.is-danger { background: #fff0ef; }

body.v1-shell .auto-review-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.v1-shell .auto-review-case { padding: 11px 14px; border: 1px solid; border-left-width: 3px; border-radius: 0 var(--v1-radius-sm) var(--v1-radius-sm) 0; }
body.v1-shell .auto-review-case.is-suitable { border-color: #9bcfc5; background: var(--v1-brand-soft); }
body.v1-shell .auto-review-case.is-risk { border-color: #e8b2af; background: #fff0ef; }
body.v1-shell .auto-review-case-title { font-size: 14px; font-weight: 650; }
body.v1-shell .auto-review-case-icon { margin-right: 6px; }
body.v1-shell .auto-review-case-reason { margin-top: 4px; color: var(--v1-muted); font-size: 12px; line-height: 1.5; }

body.v1-shell .auto-review-detectors { margin-top: 10px; }
body.v1-shell .auto-review-detectors summary { min-height: 44px; padding: 12px 0; color: var(--v1-brand); font-size: 13px; font-weight: 650; cursor: pointer; }
body.v1-shell .auto-review-detector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 6px; font-size: 13px; }
body.v1-shell .auto-review-detector { min-width: 0; color: var(--v1-text); }
body.v1-shell .auto-review-detector code { color: var(--v1-muted); font-size: 11px; overflow-wrap: anywhere; }
body.v1-shell .auto-review-rate { font-weight: 700; }
body.v1-shell .auto-review-footnote { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--v1-line); color: var(--v1-muted); font-size: 11px; }
body.v1-shell .auto-review-separator { color: #9aa9ad; }

/* Content, FAQ, search and directory */
body.v1-shell .article-shell { margin: 32px auto 48px; }
body.v1-shell .page-head { max-width: var(--v1-content); margin: 36px 0 24px; }
body.v1-shell .page-head > p:not(.section-kicker):not(.page-head-meta) { max-width: 760px; color: var(--v1-muted); font-size: 16px; line-height: 1.7; }
body.v1-shell .guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
body.v1-shell .guide-card { margin: 0; }
body.v1-shell .guide-card h2 { margin: 0 0 10px; font-size: 22px; }
body.v1-shell .collection-table-wrap { margin-bottom: 24px; }
body.v1-shell .collection-table { min-width: 720px; }
body.v1-shell .collection-table td p { margin: 8px 0 0; color: var(--v1-muted); }
body.v1-shell .collection-empty,
body.v1-shell .collection-accumulating { max-width: var(--v1-content); }
body.v1-shell .article-sources,
body.v1-shell .article-followup { border-color: var(--v1-line); }

body.v1-shell .faq-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
body.v1-shell .faq-toc { position: sticky; top: 92px; padding: 18px; border: 1px solid var(--v1-line); border-radius: var(--v1-radius); background: var(--v1-surface); }
body.v1-shell .faq-entry { border-color: var(--v1-line); border-radius: var(--v1-radius-sm); background: var(--v1-surface); }
body.v1-shell .faq-q { min-height: 48px; color: var(--v1-text); }
body.v1-shell .faq-a { color: var(--v1-muted); font-size: 16px; line-height: 1.75; }

body.v1-shell .domain-search-form { display: flex; flex-wrap: wrap; gap: 10px; }
body.v1-shell .domain-search-field { flex: 1 1 320px; min-width: 0; }
body.v1-shell .domain-search-list { display: grid; gap: 10px; padding: 0; list-style: none; }
body.v1-shell .domain-search-row { border-color: var(--v1-line); border-radius: var(--v1-radius-sm); background: #f8fbfa; }

body.v1-shell .relays-controls { margin: 20px 0; padding: 16px; }
body.v1-shell .sparkline { width: 47px; height: 16px; overflow: visible; }
body.v1-shell .sparkline .spark-bar { fill: var(--v1-brand); opacity: .72; }
body.v1-shell .verdict-bar { display: block; width: 120px; height: 6px; border-radius: 999px; background: var(--v1-line); overflow: hidden; }
body.v1-shell .verdict-bar .v-pass { fill: var(--v1-brand); }
body.v1-shell .verdict-bar .v-marg { fill: #c98613; }
body.v1-shell .verdict-bar .v-fail { fill: #b8443f; }
body.v1-shell .sort-tabs,
body.v1-shell .window-picker,
body.v1-shell .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.v1-shell .sort-tab,
body.v1-shell .chip { min-height: 40px; border-color: var(--v1-line); background: var(--v1-surface); color: var(--v1-muted); }
body.v1-shell .sort-tab.active,
body.v1-shell .chip.active { border-color: var(--v1-brand); background: var(--v1-brand-soft); color: var(--v1-brand); }

body.v1-shell .notfound-code { color: var(--v1-brand); font-size: clamp(56px, 10vw, 96px); font-weight: 800; line-height: 1; }
body.v1-shell .gone-page { display: grid; min-height: 48vh; place-items: center; text-align: center; }

@media (max-width: 800px) {
  body.v1-shell .lb-chooser-grid,
  body.v1-shell .auto-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v1-shell .faq-layout { grid-template-columns: 1fr; }
  body.v1-shell .faq-toc { position: static; }
  body.v1-shell .guide-list { grid-template-columns: 1fr; }
  body.v1-shell .collection-table-wrap { border: 0; background: transparent; overflow: visible; }
  body.v1-shell .collection-table { display: block; min-width: 0; }
  body.v1-shell .collection-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  body.v1-shell .collection-table tbody,
  body.v1-shell .collection-table tr,
  body.v1-shell .collection-table td { display: block; width: 100%; }
  body.v1-shell .collection-table tbody { display: grid; gap: 12px; }
  body.v1-shell .collection-table tr { padding: 14px 16px; border: 1px solid var(--v1-line); border-radius: var(--v1-radius); background: var(--v1-surface); }
  body.v1-shell .collection-table td { display: grid; grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid #e8efed; overflow-wrap: anywhere; }
  body.v1-shell .collection-table td:last-child { border-bottom: 0; }
  body.v1-shell .collection-table td::before { content: attr(data-label); color: var(--v1-muted); font-size: 12px; font-weight: 700; }
}

@media (max-width: 600px) {
  body.v1-shell .hero,
  body.v1-shell .hub-hero,
  body.v1-shell .faq-hero,
  body.v1-shell .relays-header,
  body.v1-shell .domain-search-panel { margin-top: 24px; }
  body.v1-shell .card,
  body.v1-shell .notice,
  body.v1-shell .editorial-section,
  body.v1-shell .domain-search-results,
  body.v1-shell .relays-list,
  body.v1-shell .official-zone,
  body.v1-shell .unlisted-actions,
  body.v1-shell .auto-review,
  body.v1-shell .lb-detail-summary,
  body.v1-shell .lb-detail-issues,
  body.v1-shell .lb-detail-history { padding: 18px; }
  body.v1-shell .form-card { padding: 20px; }
  body.v1-shell .lb-tabs a { padding: 10px 12px; font-size: 13px; }
  body.v1-shell .lb-chooser-grid,
  body.v1-shell .auto-review-metrics,
  body.v1-shell .auto-review-case-grid,
  body.v1-shell .auto-review-detector-grid { grid-template-columns: 1fr; }
  body.v1-shell .cta-row > .btn,
  body.v1-shell .button-row > .btn { width: 100%; }
  body.v1-shell .lookup-path { display: block; margin: 4px 0 0; }
  body.v1-shell .auto-review-inline-warning { display: block; margin: 6px 0 0; }

  body.v1-shell .detect-page { max-width: none; }
  body.v1-shell .detect-hero { margin-top: 24px; margin-bottom: 24px; }
  body.v1-shell .detect-hero h1 { font-size: 30px; }
  body.v1-shell .detect-hero .hero-sub { font-size: 15px; line-height: 1.72; }
  body.v1-shell .detect-quick-facts { gap: 8px 14px; margin-top: 16px; font-size: 12px; }
  body.v1-shell .detect-form-card { padding: 20px 18px; }
  body.v1-shell .detect-form-head { margin-bottom: 22px; padding-bottom: 18px; }
  body.v1-shell .detect-form-head h2,
  body.v1-shell .detect-section-head h2 { font-size: 23px; }
  body.v1-shell .detect-form-card .field-row { grid-template-columns: 1fr; gap: 0; }
  body.v1-shell .detect-form-card input,
  body.v1-shell .detect-form-card select { min-height: 50px; }
  body.v1-shell .detect-update .product-update-notice { gap: 14px; padding: 16px; }
  body.v1-shell .detect-update .product-update-side { gap: 10px; }
  body.v1-shell .detect-update .product-update-actions { flex-direction: row; align-items: center; }
  body.v1-shell .detect-update .product-update-actions .btn-primary { width: auto; flex: 1 1 auto; }
  body.v1-shell .detect-update .product-update-link { flex: 0 0 auto; }
  body.v1-shell .detect-scope-note { padding: 16px; font-size: 13.5px; }
  body.v1-shell .detect-before { margin-top: 40px; }
  body.v1-shell .detect-before .features { grid-template-columns: 1fr; }
  body.v1-shell .detect-faq-link { text-align: left; }
  body.v1-shell .detect-faq { margin-top: 40px; }
  body.v1-shell .detect-faq .faq-item summary { min-height: 56px; padding: 16px; font-size: 15px; }
  body.v1-shell .detect-faq .faq-body { padding: 0 16px 18px; font-size: 14px; }
}
