/* OmniAI Compare — 对齐 Findly UI 变量 */

.pk-page .pk-breadcrumb,
.pk-plaza .pk-breadcrumb {
  margin-bottom: 14px;
}

/* —— 顶部居中 SEO 文案 —— */
.pk-seo-hero {
  text-align: center;
  margin: 0 0 22px;
  padding: 8px 8px 4px;
}
.pk-seo-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f-text-3, #a3a3a3);
}
.pk-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--f-text, #0a0a0a);
}
.pk-seo-vs {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--f-text, #0a0a0a);
}
.pk-summary {
  color: var(--f-text-2, #525252);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 auto 16px;
  max-width: 40em;
}
.pk-seo-bridge {
  text-align: left;
  color: var(--f-text-2, #525252);
  font-size: 13px;
  line-height: 1.65;
  margin: 14px 0 10px;
  max-width: none;
}
.pk-cat-lead {
  color: var(--f-text-2, #525252);
  font-size: 14px;
  line-height: 1.65;
  margin: -4px 0 14px;
}

/* —— 详情页大对决头图 —— */
.pk-duel-hero {
  margin: 8px 0 4px;
}
.pk-duel-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 16px !important;
}
.pk-duel-hero-inner--triple {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
}
.pk-duel-hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
  min-width: 0;
  padding: 6px;
}
.pk-duel-hero-side strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--f-text, #0a0a0a);
}
.pk-duel-hero-side span:not(.pk-duel-icon):not(.pk-duel-icon-lg) {
  font-size: 12px;
  color: var(--f-text-3, #a3a3a3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pk-duel-vs-lg {
  flex-direction: column;
  gap: 6px;
}
.pk-duel-vs-lg em {
  font-style: normal;
  font-size: 11px;
  color: var(--f-text-3, #a3a3a3);
  font-weight: 600;
}
.pk-duel-icon-lg {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 12px;
}

/* —— 正文区块 —— */
.pk-section {
  margin: 28px 0 0;
  padding-top: 4px;
}
.pk-section .findly-section-title,
.pk-section-title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--f-text, #0a0a0a);
}
.pk-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 3px;
  border-radius: 999px;
  background: #ff7a1a;
}
.pk-prose {
  line-height: 1.8;
  color: var(--f-text-2, #525252);
  font-size: 14.5px;
}
.pk-prose p {
  margin: 0 0 0.85em;
}
.pk-prose p:last-child {
  margin-bottom: 0;
}
.pk-table-intro {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  text-align: left;
  max-width: none;
}

/* 双层留白壳（分析 / 适合人群） */
.pk-analysis-panel,
.pk-audience-panel,
.pk-pros,
.pk-cons {
  padding: 4px;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  background: var(--f-surface, #fff);
  box-sizing: border-box;
}
.pk-analysis-panel-inner,
.pk-audience-panel-inner,
.pk-pros-inner,
.pk-cons-inner {
  padding: 16px 16px 18px;
  border-radius: 8px;
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  box-sizing: border-box;
}
.pk-analysis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--f-border, #e8e8e8);
}
.pk-analysis-ico,
.pk-analysis-letter {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
}
.pk-analysis-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--f-text-2, #525252);
}
.pk-analysis-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--f-text, #0a0a0a);
  line-height: 1.3;
}

/* —— 结构化对比矩阵 —— */
.pk-matrix {
  margin: 0 0 4px;
}
.pk-matrix-shell {
  padding: 4px;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  background: var(--f-surface, #fff);
  box-sizing: border-box;
}
.pk-matrix-shell-inner {
  border-radius: 8px;
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  overflow: hidden;
  box-sizing: border-box;
}
.pk-matrix-desktop {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.pk-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
  min-width: 0;
}
.pk-matrix[data-cols="2"] .pk-matrix-table { min-width: 420px; }
.pk-matrix[data-cols="3"] .pk-matrix-table { min-width: 560px; }
.pk-matrix-table th,
.pk-matrix-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--f-border, #e8e8e8);
  vertical-align: middle;
  color: var(--f-text, #0a0a0a);
  word-break: break-word;
}
.pk-matrix-table thead th {
  background: var(--f-surface, #fff);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.pk-matrix-table thead th.pk-matrix-tool {
  color: var(--f-text, #0a0a0a);
}
.pk-matrix-tool-name {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.pk-matrix-table thead th.pk-matrix-dim,
.pk-matrix-table tbody th.pk-matrix-dim {
  text-align: left;
  width: 22%;
  font-weight: 600;
  color: var(--f-text-2, #525252);
  background: var(--f-surface, #fff);
  position: sticky;
  left: 0;
  z-index: 2;
}
.pk-matrix-dim-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--f-text, #0a0a0a);
  line-height: 1.4;
}
.pk-matrix-table tbody td {
  text-align: center;
  background: transparent;
}
.pk-matrix-table tbody tr:nth-child(even) td,
.pk-matrix-table tbody tr:nth-child(even) th.pk-matrix-dim {
  background: rgba(255, 255, 255, 0.45);
}
.io-black-mode .pk-matrix-table tbody tr:nth-child(even) td,
.io-black-mode .pk-matrix-table tbody tr:nth-child(even) th.pk-matrix-dim {
  background: rgba(255, 255, 255, 0.03);
}
.pk-matrix-table tbody tr:hover td,
.pk-matrix-table tbody tr:hover th.pk-matrix-dim {
  background: rgba(255, 122, 26, 0.06);
}
.pk-matrix-table tbody tr:last-child th,
.pk-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}
.pk-matrix-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--f-text-3, #a3a3a3);
  line-height: 1.4;
}
.pk-matrix-foot {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--f-text-3, #a3a3a3);
  line-height: 1.55;
}

.pk-cell-text {
  display: inline-block;
  max-width: 100%;
  line-height: 1.5;
  font-size: 13px;
  color: var(--f-text, #0a0a0a);
}
.pk-cell-price {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--f-text, #0a0a0a);
}
.pk-cell-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f5a524;
  font-size: 13px;
  line-height: 1;
}
.pk-cell-stars .is-off {
  color: var(--f-border-strong, #e0e0e0);
}
.pk-cell-stars em {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--f-text-3, #a3a3a3);
}
.pk-cell-bool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 700;
}
.pk-cell-bool i {
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}
.pk-cell-bool-text {
  display: none;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.pk-cell-bool.is-yes {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}
.pk-cell-bool.is-no {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

/* 手机：维度卡片列表 */
.pk-matrix-mobile {
  display: none;
}
@media (max-width: 767px) {
  .pk-matrix-desktop {
    display: none;
  }
  .pk-matrix-shell-inner {
    background: transparent;
    padding: 0;
  }
  .pk-matrix-mobile {
    display: grid;
    gap: 8px;
    padding: 2px;
  }
  .pk-matrix-card {
    border: 1px solid var(--f-border, #e8e8e8);
    border-radius: 8px;
    background: var(--f-surface, #fff);
    overflow: hidden;
  }
  .pk-matrix-card-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--f-text, #0a0a0a);
    background: var(--f-panel, rgba(245, 245, 245, 0.85));
    border-bottom: 1px solid var(--f-border, #e8e8e8);
  }
  .pk-matrix-card-label-text {
    line-height: 1.35;
  }
  .pk-matrix-card-label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--f-text-3, #a3a3a3);
  }
  .pk-matrix-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pk-matrix-card-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--f-border, #e8e8e8);
  }
  .pk-matrix-card-list li:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
  }
  .io-black-mode .pk-matrix-card-list li:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
  }
  .pk-matrix-card-list li:last-child {
    border-bottom: 0;
  }
  .pk-matrix-card-tool {
    flex: 0 1 40%;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--f-text-2, #525252);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pk-matrix-card-val {
    flex: 1 1 auto;
    text-align: right;
    min-width: 0;
  }
  .pk-matrix-card-val .pk-cell-text {
    text-align: right;
  }
  .pk-cell-bool-text {
    display: inline;
  }
  .pk-cell-bool {
    min-width: 0;
    height: auto;
    padding: 4px 8px;
  }
}

/* 旧 Markdown 表兼容 */
.pk-table-wrap {
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  background: var(--f-surface, #fff);
  box-sizing: border-box;
}
.pk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14px;
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  border-radius: 8px;
  overflow: hidden;
}
.pk-table th,
.pk-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--f-border, #e8e8e8);
  text-align: left;
  vertical-align: top;
  color: var(--f-text, #0a0a0a);
}
.pk-table thead th {
  background: var(--f-surface, #fff);
  font-weight: 700;
}
.pk-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 优缺点 */
.pk-pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pk-pros h3,
.pk-cons h3 {
  margin: 0 0 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  line-height: 1.3;
}
.pk-pros h3 {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}
.pk-cons h3 {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

/* FAQ */
.pk-faq-list {
  display: grid;
  gap: 8px;
}
.pk-faq-item {
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  padding: 0;
  margin: 0;
  background: var(--f-surface, #fff);
  overflow: hidden;
}
.pk-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--f-text, #0a0a0a);
  background: var(--f-panel, rgba(245, 245, 245, 0.55));
}
.pk-faq-item summary::-webkit-details-marker {
  display: none;
}
.pk-faq-item summary span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}
.pk-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--f-text-3, #a3a3a3);
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
}
.pk-faq-item[open] summary {
  border-bottom: 1px solid var(--f-border, #e8e8e8);
}
.pk-faq-item[open] summary::after {
  content: "–";
  color: #ff7a1a;
  border-color: rgba(255, 122, 26, 0.35);
}
.pk-faq-answer {
  padding: 12px 14px 14px;
  color: var(--f-text-2, #525252);
}
.pk-faq-answer.pk-prose {
  margin-top: 0;
}

/* —— VS 对决卡片（详情相关 / 广场 / 工具页共用） —— */
.pk-related-block {
  margin-top: 8px;
}
.findly-ui .pk-duel-grid,
.pk-duel-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
@media (min-width: 640px) {
  .findly-ui .pk-duel-grid,
  .pk-duel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (min-width: 992px) {
  .findly-ui .pk-plaza .pk-duel-grid,
  .findly-ui .pk-duel-grid--plaza,
  .pk-plaza .pk-duel-grid,
  .pk-duel-grid--plaza {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* 广场五列：图标/文字更紧凑，两侧纵向排布更稳 */
.pk-plaza .pk-duel-card .pk-duel-inner {
  padding: 10px 8px 9px;
  gap: 4px;
  min-height: 0;
}
.pk-plaza .pk-duel-card .pk-duel-inner--triple {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2px;
}
.pk-plaza .pk-duel-inner--triple .pk-duel-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}
.pk-plaza .pk-duel-inner--triple .pk-duel-name {
  font-size: 11px;
}
.pk-plaza .pk-duel-side {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
}
.pk-plaza .pk-duel-side:last-child {
  flex-direction: column;
  text-align: center;
}
.pk-plaza .pk-duel-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.pk-plaza .pk-duel-letter {
  font-size: 13px;
}
.pk-plaza .pk-duel-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.pk-plaza .pk-duel-vs-badge {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.findly-ui a.pk-duel-card,
a.pk-duel-card,
.pk-duel-card {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  padding: 2px;
  overflow: visible;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: transparent;
  box-sizing: border-box;
}
.pk-duel-card:hover {
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.pk-duel-card .pk-duel-inner {
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  pointer-events: none; /* 点击落在外层 <a>，避免主题卡片脚本干扰 */
}
.pk-duel-card .pk-duel-inner--triple {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
}
.pk-duel-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pk-duel-inner:not(.pk-duel-inner--triple) .pk-duel-side:last-child {
  flex-direction: row-reverse;
  text-align: right;
}
.pk-duel-inner--triple .pk-duel-side {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.pk-duel-inner--triple .pk-duel-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
}
.pk-duel-inner--triple .pk-duel-vs-badge {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
}
.pk-duel-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--f-elevated, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-duel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pk-duel-letter {
  font-size: 16px;
  font-weight: 700;
  color: var(--f-text-2, #525252);
}
.pk-duel-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--f-text, #0a0a0a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-duel-vs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-duel-vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--f-black, #0a0a0a);
  line-height: 1;
}
.pk-duel-card:hover .pk-duel-vs-badge,
.pk-duel-hero:hover .pk-duel-vs-badge {
  background: var(--f-purple, #7c3aed);
}
.io-black-mode .pk-duel-vs-badge {
  background: #e5e7eb;
  color: #0a0a0a;
}
.io-black-mode .pk-duel-card:hover .pk-duel-vs-badge,
.io-black-mode .pk-duel-hero:hover .pk-duel-vs-badge {
  background: #a78bfa;
  color: #0a0a0a;
}
.io-black-mode .pk-duel-name,
.io-black-mode .pk-title,
.io-black-mode .pk-seo-vs,
.io-black-mode .pk-duel-hero-side strong {
  color: var(--f-text, #f5f5f5);
}

/* —— 广场（对齐热门页 container-lg 全宽；盖过 ai-pro 1200px） —— */
.findly-ui #content.pk-plaza.container,
.findly-ui #content.pk-plaza.container-lg,
#content.pk-plaza.container,
#content.pk-plaza.container-lg,
#content.pk-plaza {
  width: 100% !important;
  max-width: var(--f-content-width, 1800px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--f-content-pad, 16px) !important;
  padding-right: var(--f-content-pad, 16px) !important;
  padding-top: 16px !important;
  padding-bottom: 56px !important;
  box-sizing: border-box !important;
  float: none !important;
}
.findly-ui .pk-plaza .content-wrap,
.findly-ui .pk-plaza .content-layout,
.pk-plaza .content-wrap,
.pk-plaza .content-layout,
.pk-plaza-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* 广场 hero：双层留白边框（对齐网址卡片）；PK 橙色点缀 */
.pk-plaza .findly-tools-page-hero.pk-plaza-hero {
  position: relative;
  margin: 8px 0 24px;
  padding: 4px;
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}
.pk-plaza .findly-tools-page-hero.pk-plaza-hero::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.16), rgba(255, 180, 100, 0.06));
  pointer-events: none;
  z-index: 0;
}
.pk-plaza .findly-tools-page-hero.pk-plaza-hero::after {
  content: "";
  position: absolute;
  right: 48px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.04));
  pointer-events: none;
  z-index: 0;
}
.pk-plaza .findly-tools-page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 28px 26px 24px;
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  border-radius: 8px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .pk-plaza .findly-tools-page-hero.pk-plaza-hero {
    padding: 3px;
    margin-bottom: 16px;
  }
  .pk-plaza .findly-tools-page-hero-inner {
    padding: 20px 14px 18px;
  }
}
.pk-plaza .findly-tools-page-badge {
  color: #047857;
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.28);
}
.pk-plaza .findly-tools-page-link:hover {
  color: #fff !important;
  background: #ff7a1a !important;
  border-color: #ff7a1a !important;
}
.pk-plaza-section {
  margin: 8px 0 28px;
}
.pk-plaza-section .findly-section-head {
  margin-bottom: 12px;
}
.pk-plaza-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--f-border, #e8e8e8);
  text-align: left;
  color: var(--f-text-3, #a3a3a3);
  font-size: 13px;
  line-height: 1.7;
}
.pk-empty {
  color: var(--f-text-3, #a3a3a3);
  padding: 20px 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 640px) {
  .pk-duel-hero-inner {
    gap: 8px;
    padding: 14px 10px !important;
  }
  .pk-duel-hero-inner--triple {
    gap: 6px;
  }
  .pk-duel-hero-inner--triple .pk-duel-hero-side span:not(.pk-duel-icon):not(.pk-duel-icon-lg) {
    display: none;
  }
  .pk-duel-hero-side strong {
    font-size: 14px;
  }
  .pk-duel-hero-inner--triple .pk-duel-hero-side strong {
    font-size: 12px;
  }
  .pk-duel-icon-lg {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .pk-duel-hero-inner--triple .pk-duel-icon-lg {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }
}

/* —— 工具详情：AI 智能对比 —— */
.findly-ui .pk-ondemand,
.pk-ondemand {
  position: relative;
  z-index: 6;
  margin: 6px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 12px;
  background: var(--f-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: auto !important;
  box-sizing: border-box;
}
.findly-ui .pk-ondemand-bar,
.pk-ondemand-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px;
  width: 100%;
}
.findly-ui .pk-ondemand-main,
.pk-ondemand-main {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.pk-ondemand-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--f-text-2, #525252);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.pk-ondemand-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28%;
  font-size: 14px;
  font-weight: 700;
  color: var(--f-text, #0a0a0a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-ondemand-vs {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  border-radius: 999px;
  padding: 4px 9px;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 122, 26, 0.3);
}

/* 自定义下拉：双层留白边框，对齐网址卡片 */
.findly-ui .pk-select-wrap,
.pk-select-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 148px;
  max-width: 300px;
  z-index: 30;
}
.findly-ui .pk-ondemand-select,
.pk-ondemand-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.findly-ui .pk-select-trigger,
.pk-select-trigger {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 3px;
  margin: 0;
  border: 1px solid var(--f-border, #e8e8e8) !important;
  border-radius: 10px !important;
  background: var(--f-surface, #fff) !important;
  color: var(--f-text, #0a0a0a) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.findly-ui .pk-select-trigger:hover,
.pk-select-trigger:hover,
.pk-select-wrap.is-open .pk-select-trigger {
  border-color: rgba(255, 122, 26, 0.45) !important;
}
.pk-select-wrap.is-open .pk-select-trigger {
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.1) !important;
}
.pk-select-trigger-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 8px;
  background: var(--f-panel, rgba(245, 245, 245, 0.85));
  border-radius: 8px;
}
.pk-select-trigger-ico,
.pk-select-option-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
}
.pk-select-trigger-letter,
.pk-select-option-letter {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--f-text-2, #525252);
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
}
.pk-select-trigger-text,
.pk-select-option-text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-select-caret {
  flex: 0 0 auto;
  margin-left: 2px;
  color: var(--f-text-3, #a3a3a3);
  transition: transform 0.15s ease;
}
.pk-select-wrap.is-open .pk-select-caret {
  transform: rotate(180deg);
  color: #ff7a1a;
}
.pk-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  background: var(--f-surface, #fff);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  z-index: 40;
  display: none;
}
.pk-select-wrap.is-open .pk-select-menu {
  display: block;
}
.pk-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--f-text, #0a0a0a);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.pk-select-option:hover,
.pk-select-option:focus {
  background: var(--f-panel, rgba(245, 245, 245, 0.9));
  outline: none;
}
.pk-select-option.is-active {
  background: rgba(255, 122, 26, 0.1);
  color: #e35f00;
}
.findly-ui .pk-ondemand-btn,
.pk-ondemand-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 36px !important;
  min-width: 72px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(255, 122, 26, 0.25) !important;
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.findly-ui .pk-ondemand-btn:hover,
.pk-ondemand-btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.35) !important;
  transform: translateY(-1px);
}
/* display:!important 会压过原生 [hidden]，需显式盖回 */
.findly-ui .pk-ondemand-btn[hidden],
.pk-ondemand-btn[hidden],
.pk-ondemand [data-pk-cta][hidden] {
  display: none !important;
}

/* ==========================================================================
   生成浮层 v2：AI 对比实验室
   设计原则：90% 白/浅灰 + 8% 黑 + 2% 橙；橙色只给 AI 光核 / 当前状态 / 数据流。
   去掉百分比、大圆环、假进度条；两个工具卡是主角，中间 AI 光核汇聚数据。
   ========================================================================== */
.pk-gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(248, 249, 251, 0.86);
  background-image: linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  animation: pkLabFadeIn 0.28s ease both;
}
.pk-gen-overlay.is-leaving {
  animation: pkLabFadeOut 0.42s ease both;
}
body.pk-gen-open {
  overflow: hidden;
}
@keyframes pkLabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pk-gen-overlay[hidden] {
  display: none !important;
}
@keyframes pkLabFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.pk-lab-dialog {
  width: 100%;
  max-width: 470px;
  padding: 30px 30px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.04);
  animation: pkLabPopIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pk-gen-overlay.is-leaving .pk-lab-dialog {
  animation: pkLabPopOut 0.4s ease both;
}
@keyframes pkLabPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes pkLabPopOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

.pk-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e35f00;
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 999px;
}
.pk-lab-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7a1a;
  animation: pkLabPulseDot 1.4s ease-in-out infinite;
}
@keyframes pkLabPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}
.pk-lab-title {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
}

/* --- 双工具主角区 ------------------------------------------ */
.pk-lab-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin: 22px 0 8px;
}
.pk-lab-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 10px 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  animation: pkLabBreathe 3.2s ease-in-out infinite;
}
.pk-lab-tool[data-side="b"] {
  animation-delay: 1.6s;
}
@keyframes pkLabBreathe {
  0%, 100% { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); border-color: rgba(15, 23, 42, 0.08); }
  50% { box-shadow: 0 6px 22px -8px rgba(255, 122, 26, 0.3); border-color: rgba(255, 122, 26, 0.24); }
}
.pk-lab-tool-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.pk-lab-tool-ico img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.pk-lab-tool-letter {
  font-size: 17px;
  font-weight: 700;
  color: #64748b;
}
.pk-lab-tool-name {
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 中间 AI 光核 + 双向数据流 -------------------------------- */
.pk-lab-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
}
.pk-lab-flow {
  position: relative;
  width: 44px;
  height: 10px;
}
.pk-lab-flow i {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #fdba74;
}
.pk-lab-flow-l i {
  left: 0;
  animation: pkLabFlowL 1.5s linear infinite;
}
.pk-lab-flow-r i {
  right: 0;
  animation: pkLabFlowR 1.5s linear infinite;
}
.pk-lab-flow i:nth-child(2) { animation-delay: 0.5s; background: #fb923c; }
.pk-lab-flow i:nth-child(3) { animation-delay: 1s; background: #f97316; }
@keyframes pkLabFlowL {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateX(40px); opacity: 0; }
}
@keyframes pkLabFlowR {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateX(-40px); opacity: 0; }
}
.pk-lab-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.pk-lab-core::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 26, 0.3);
  animation: pkLabCoreRing 2.2s ease-out infinite;
}
@keyframes pkLabCoreRing {
  from { transform: scale(0.75); opacity: 0.9; }
  to { transform: scale(1.5); opacity: 0; }
}
.pk-lab-core-star {
  font-size: 22px;
  line-height: 1;
  color: #ff7a1a;
  text-shadow: 0 0 14px rgba(255, 122, 26, 0.55);
  animation: pkLabStarTwinkle 1.8s ease-in-out infinite;
}
@keyframes pkLabStarTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.18) rotate(20deg); opacity: 0.85; }
}
.pk-lab-core-label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9ca3af;
}
.pk-lab-stage-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #6b7280;
}

/* --- 五项深度分析清单 ------------------------------------------ */
.pk-lab-list {
  margin: 18px 0 0;
  padding: 6px;
  list-style: none;
  text-align: left;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 14px;
}
.pk-lab-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.pk-lab-item.is-active {
  background: rgba(255, 122, 26, 0.06);
}
/* 当前项轻扫描线 */
.pk-lab-item.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.5), transparent);
  background-size: 200% 100%;
  animation: pkLabScanline 2.4s linear infinite;
}
@keyframes pkLabScanline {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.pk-lab-dot {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
}
.pk-lab-item.is-active .pk-lab-dot {
  border-color: #ff7a1a;
}
.pk-lab-item.is-active .pk-lab-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ff7a1a;
  animation: pkLabPulseDot 1.2s ease-in-out infinite;
}
.pk-lab-item.is-done .pk-lab-dot {
  border-color: #111827;
  background: #111827;
}
.pk-lab-item.is-done .pk-lab-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 3.5px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.pk-lab-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pk-lab-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}
.pk-lab-item.is-pending .pk-lab-item-name {
  color: #9ca3af;
}
.pk-lab-item.is-active .pk-lab-item-name {
  color: #111827;
}
.pk-lab-item.is-done .pk-lab-item-name {
  color: #111827;
}
.pk-lab-item-sub {
  min-height: 0;
  font-size: 12px;
  color: #e35f00;
  opacity: 0.9;
}
.pk-lab-item-sub:empty {
  display: none;
}
.pk-lab-item-state {
  flex: none;
  font-size: 12px;
  color: #9ca3af;
}
.pk-lab-item.is-done .pk-lab-item-state {
  color: #374151;
}
.pk-lab-item.is-active .pk-lab-item-state {
  color: #e35f00;
  font-weight: 600;
}

/* --- 底部：计数 / 发现 / 洞察 / ETA ----------------------------- */
.pk-lab-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 12.5px;
}
.pk-lab-count {
  color: #6b7280;
  font-weight: 600;
}
.pk-lab-findings {
  color: #e35f00;
  font-weight: 600;
}
.pk-lab-insight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #6b7280;
}
.pk-lab-insight[hidden] {
  display: none !important;
}
.pk-lab-insight.is-flash {
  animation: pkLabInsightIn 0.35s ease both;
}
@keyframes pkLabInsightIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.pk-lab-insight-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fb923c;
  animation: pkLabPulseDot 1.4s ease-in-out infinite;
}
.pk-lab-eta {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

/* --- 完成态：干净离场 ------------------------------------------ */
.pk-lab-done {
  padding: 12px 0 6px;
}
.pk-lab-done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(255, 106, 0, 0.55);
  animation: pkLabCheckIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pkLabCheckIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.pk-lab-done-title {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
}
.pk-lab-done-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
.pk-lab-done-note {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

/* --- 错误态 ------------------------------------------ */
.pk-lab-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #dc2626;
}
.pk-lab-close {
  margin-top: 14px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pk-lab-close:hover {
  border-color: rgba(15, 23, 42, 0.25);
}

/* --- 手机端 ------------------------------------------ */
@media (max-width: 520px) {
  .pk-lab-dialog {
    padding: 22px 16px 18px;
    border-radius: 16px;
  }
  .pk-lab-stage {
    gap: 2px;
  }
  .pk-lab-tool {
    padding: 10px 6px 9px;
  }
  .pk-lab-flow {
    width: 26px;
  }
  @keyframes pkLabFlowL {
    from { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    to { transform: translateX(22px); opacity: 0; }
  }
  @keyframes pkLabFlowR {
    from { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    to { transform: translateX(-22px); opacity: 0; }
  }
  .pk-lab-core {
    width: 44px;
    height: 44px;
  }
  .pk-lab-tool-name {
    font-size: 12px;
  }
  .pk-lab-item {
    padding: 8px;
  }
}

/* --- 黑模式 ------------------------------------------ */
.io-black-mode .pk-gen-overlay {
  background: rgba(10, 12, 16, 0.88);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
.io-black-mode .pk-lab-dialog {
  background: rgba(24, 27, 33, 0.96);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.io-black-mode .pk-lab-title,
.io-black-mode .pk-lab-done-title {
  color: #f3f4f6;
}
.io-black-mode .pk-lab-tool {
  background: #1c2027;
  border-color: rgba(255, 255, 255, 0.08);
}
@keyframes pkLabBreatheDark {
  0%, 100% { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.08); }
  50% { box-shadow: 0 6px 22px -8px rgba(255, 122, 26, 0.35); border-color: rgba(255, 122, 26, 0.3); }
}
.io-black-mode .pk-lab-tool {
  animation-name: pkLabBreatheDark;
}
.io-black-mode .pk-lab-tool-ico {
  background: #262b33;
  border-color: rgba(255, 255, 255, 0.06);
}
.io-black-mode .pk-lab-tool-letter {
  color: #9ca3af;
}
.io-black-mode .pk-lab-tool-name {
  color: #e5e7eb;
}
.io-black-mode .pk-lab-list {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}
.io-black-mode .pk-lab-item.is-active {
  background: rgba(255, 122, 26, 0.09);
}
.io-black-mode .pk-lab-dot {
  border-color: #4b5563;
  background: transparent;
}
.io-black-mode .pk-lab-item.is-done .pk-lab-dot {
  border-color: #e5e7eb;
  background: #e5e7eb;
}
.io-black-mode .pk-lab-item.is-done .pk-lab-dot::after {
  border-color: #1c2027;
}
.io-black-mode .pk-lab-item-name {
  color: #d1d5db;
}
.io-black-mode .pk-lab-item.is-pending .pk-lab-item-name {
  color: #6b7280;
}
.io-black-mode .pk-lab-item.is-active .pk-lab-item-name,
.io-black-mode .pk-lab-item.is-done .pk-lab-item-name {
  color: #f3f4f6;
}
.io-black-mode .pk-lab-item-state {
  color: #6b7280;
}
.io-black-mode .pk-lab-item.is-done .pk-lab-item-state {
  color: #d1d5db;
}
.io-black-mode .pk-lab-count,
.io-black-mode .pk-lab-stage-note,
.io-black-mode .pk-lab-insight,
.io-black-mode .pk-lab-done-sub {
  color: #9ca3af;
}
.io-black-mode .pk-lab-eta,
.io-black-mode .pk-lab-done-note {
  color: #6b7280;
}
.io-black-mode .pk-lab-close {
  background: #1c2027;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

@media (max-width: 720px) {
  .findly-ui .pk-ondemand,
  .pk-ondemand {
    padding: 10px 12px;
  }
  .findly-ui .pk-ondemand-bar,
  .pk-ondemand-bar {
    flex-wrap: nowrap !important;
    gap: 8px;
  }
  .findly-ui .pk-ondemand-main,
  .pk-ondemand-main {
    flex-wrap: nowrap !important;
    gap: 6px;
  }
  /* 手机端隐藏前缀文案，保证对比按钮不换行、始终在右侧 */
  .pk-ondemand-label {
    display: none;
  }
  .pk-ondemand-name {
    max-width: 34%;
    font-size: 13px;
  }
  .findly-ui .pk-select-wrap,
  .pk-select-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  .pk-select-menu {
    max-height: 220px;
  }
  .findly-ui .pk-ondemand-btn,
  .pk-ondemand-btn {
    min-width: 0;
    padding: 0 14px !important;
  }
}

/* 详情页「相关对比」：同广场样式——图标在上标题在下，桌面3列、手机1列 */
.findly-ui .pk-duel-grid--related,
.pk-duel-grid--related {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
@media (min-width: 768px) {
  .findly-ui .pk-duel-grid--related,
  .pk-duel-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
.pk-duel-grid--related .pk-duel-card .pk-duel-inner {
  padding: 12px 8px 10px;
  gap: 4px;
  min-height: 0;
}
.pk-duel-grid--related .pk-duel-inner--triple {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2px;
}
.pk-duel-grid--related .pk-duel-inner--triple .pk-duel-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.pk-duel-grid--related .pk-duel-inner--triple .pk-duel-name {
  font-size: 12px;
}
.pk-duel-grid--related .pk-duel-side,
.pk-duel-grid--related .pk-duel-inner:not(.pk-duel-inner--triple) .pk-duel-side:last-child {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
}
.pk-duel-grid--related .pk-duel-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.pk-duel-grid--related .pk-duel-letter {
  font-size: 15px;
}
.pk-duel-grid--related .pk-duel-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.pk-duel-grid--related .pk-duel-vs-badge {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* 工具聚合卡（广场热门区）：一个工具一张卡 + 对手图标链接 */
.findly-ui .pk-hub-grid,
.pk-hub-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
@media (min-width: 640px) {
  .findly-ui .pk-hub-grid,
  .pk-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (min-width: 992px) {
  .findly-ui .pk-hub-grid,
  .pk-hub-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
.pk-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 16px 10px 10px;
  background: var(--f-surface, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pk-hub-card:hover {
  border-color: var(--f-border-strong, #d4d4d4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pk-hub-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  color: inherit !important;
}
.pk-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--f-elevated, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-hub-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pk-hub-letter {
  font-size: 18px;
  font-weight: 700;
  color: var(--f-text-2, #525252);
}
.pk-hub-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--f-text, #0a0a0a);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-hub-count {
  font-size: 12px;
  color: var(--f-text-3, #a3a3a3);
}
.pk-hub-ops {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 10px;
  flex-wrap: nowrap;
}
.pk-hub-op {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--f-elevated, #fff);
  border: 1px solid var(--f-border, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}
.pk-hub-op:hover {
  transform: translateY(-1px);
}
.pk-hub-op img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pk-hub-op-letter {
  font-size: 11px;
  font-weight: 600;
  color: var(--f-text-2, #525252);
}
.pk-hub-more {
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--f-text-2, #525252);
  background: var(--f-panel, rgba(245, 245, 245, 0.65));
  border: 1px solid var(--f-border, #e8e8e8);
  text-decoration: none !important;
  box-sizing: border-box;
}
.pk-hub-all {
  margin-top: auto;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--f-border, #e8e8e8);
  font-size: 12px;
  color: var(--f-text-2, #525252);
  text-decoration: none !important;
}
.pk-hub-all:hover {
  color: var(--f-text, #0a0a0a);
}
.io-black-mode .pk-hub-card,
.io-black-mode .pk-hub-op,
.io-black-mode .pk-hub-icon {
  background: var(--f-surface, #171717);
}
