/* AI 编程工具对比栏目 · P0 */
body.ai-tools-hub.lc-compare-page {
  --lc-page-offset: 98px;
  padding-top: var(--lc-page-offset, 98px);
}
body.ai-tools-hub {
  background: #f8fafc;
}
body.ai-tools-hub .lc-subnav-inner {
  flex-wrap: wrap;
  row-gap: 4px;
}
body.ai-tools-hub .lc-subnav-link.lc-subnav-extra {
  margin-left: auto;
}
body.ai-tools-hub .lc-subnav-link.lc-subnav-ai {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
/* Tailwind 未就绪前的顶栏兜底（与 cont.html 一致） */
@media (min-width: 768px) {
  body.ai-tools-hub #navbar nav.hidden.md\:flex {
    display: flex !important;
  }
  body.ai-tools-hub #navbar .hidden.md\:flex {
    display: flex !important;
  }
  body.ai-tools-hub #navbar .md\:hidden {
    display: none !important;
  }
}
@media (max-width: 767px) {
  body.ai-tools-hub.lc-compare-page {
    --lc-page-offset: 102px;
  }
  body.ai-tools-hub #navbar nav.hidden.md\:flex {
    display: none !important;
  }
}
.ai-tools-hero {
  background: linear-gradient(165deg, #f0fdf4 0%, #f8fafc 55%, #fff 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}
.ai-tools-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.ai-tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.ai-tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.ai-tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ai-tool-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.ai-tool-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0f172a;
}
.ai-tool-card__vendor {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.ai-tool-card__tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #047857;
}
.ai-tool-card__rating {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #f59e0b;
}
.ai-tools-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-top: 1rem;
}
.ai-tools-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.ai-tools-table th,
.ai-tools-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.ai-tools-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ai-tools-table tbody tr:hover {
  background: #f0fdf4;
}
.ai-tools-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.ai-tools-filter button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.ai-tools-filter button.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.ai-tools-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin-top: 1.25rem;
}
.ai-tools-review {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}
.ai-tools-review h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.ai-tools-review ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: #475569;
}
.ai-tools-cross {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}
.ai-tools-cross a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #a7f3d0;
  background: #f0fdf4;
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.ai-tools-cross a span {
  display: block;
  font-weight: 400;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 4px;
}
.ai-tools-stub {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.875rem;
}
@media (max-width: 640px) {
  body.ai-tools-hub {
    padding-top: 55px;
  }
}

/* 费用计算器 · v20260723p16 */
.ai-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .ai-calc-layout {
    grid-template-columns: 1fr;
  }
}
.ai-calc-panel,
.ai-calc-result-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.ai-calc-result-panel {
  position: sticky;
  top: calc(var(--lc-page-offset, 98px) + 8px);
}
@media (max-width: 900px) {
  .ai-calc-result-panel {
    position: relative;
    top: auto;
  }
}
.ai-calc-panel__title {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}
.ai-calc-panel__title i {
  color: #10b981;
  margin-right: 6px;
}
.ai-calc-field {
  margin-bottom: 1rem;
}
.ai-calc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.ai-calc-field__val {
  color: #059669;
  font-size: 1rem;
}
.ai-calc-range {
  width: 100%;
  accent-color: #10b981;
}
.ai-calc-select,
.ai-calc-tier-select {
  width: 100%;
  max-width: 100%;
  font-size: 0.8125rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
}
.ai-calc-tier-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 55%);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ai-calc-tier-row__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}
.ai-calc-section-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0.02em;
}
.ai-calc-muted {
  font-weight: 600;
  color: #94a3b8;
}
.ai-calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-calc-presets button {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
  cursor: pointer;
}
.ai-calc-presets button:hover {
  background: #d1fae5;
}
.ai-calc-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}
.ai-calc-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fafafa;
}
.ai-calc-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-calc-tool-card:hover {
  border-color: #86efac;
}
.ai-calc-tool-card.is-selected {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #10b981;
}
.ai-calc-tool-card--hot::after {
  content: "热";
  position: absolute;
}
.ai-calc-tool-card {
  position: relative;
}
.ai-calc-tool-card--hot .ai-calc-tool-card__name::before {
  content: "★ ";
  color: #f59e0b;
  font-size: 0.65rem;
}
.ai-calc-tool-card__name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.ai-calc-tool-card__meta {
  font-size: 0.625rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.3;
}
.ai-calc-run {
  width: 100%;
  margin-top: 1rem;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
}
.ai-calc-run:hover {
  filter: brightness(1.05);
}
.ai-calc-result-body {
  min-height: 120px;
}
.ai-calc-empty {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}
.ai-calc-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: #065f46;
}
.ai-calc-summary p {
  margin: 0;
}
.ai-calc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}
.ai-calc-result-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.ai-calc-result-card.is-best {
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
.ai-calc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #10b981;
  color: #fff;
}
.ai-calc-result-card h3 {
  margin: 0 0 4px;
  font-size: 0.875rem;
  padding-right: 2rem;
}
.ai-calc-tier-tag {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  color: #64748b;
}
.ai-calc-big {
  font-size: 1.35rem;
  font-weight: 800;
  color: #059669;
  margin: 0;
}
.ai-calc-big span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.ai-calc-result-meta {
  margin: 8px 0 0;
  padding-left: 1rem;
  font-size: 0.6875rem;
  color: #475569;
  line-height: 1.45;
}
.ai-calc-chart-wrap {
  margin-top: 1rem;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafafa, #fff);
  padding: 8px;
  box-sizing: border-box;
}
.ai-calc-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 220px;
}
.ai-calc-tip {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin: 10px 0 0;
}
.ai-calc-foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.ai-calc-foot-cta a {
  flex: 1;
  min-width: min(100%, 140px);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}
.ai-calc-foot-cta a:first-child {
  background: #0f172a;
  color: #fff !important;
}
.ai-calc-foot-cta a:last-child {
  background: #ecfdf5;
  color: #047857 !important;
  border: 1px solid #a7f3d0;
}
.ai-calc-disclaimer {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: 1rem 0 0;
  line-height: 1.5;
}
.ai-calc-disclaimer a {
  color: #047857;
}

/* legacy picks removed below */
.ai-calc-tool-pick {
  display: none;
}

/* 智能选型 */
.ai-sel-q {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  background: #fff;
}
.ai-sel-q legend {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0 4px;
}
.ai-sel-opt {
  display: block;
  font-size: 0.8125rem;
  margin: 6px 0;
  cursor: pointer;
}
.ai-sel-submit {
  width: 100%;
  max-width: 320px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.ai-sel-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.ai-sel-card {
  position: relative;
  background: #fff;
  border: 2px solid #a7f3d0;
  border-radius: 14px;
  padding: 16px;
}
.ai-sel-rank {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
}
.ai-sel-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.ai-sel-pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: #059669;
  margin: 0 0 8px;
}
.ai-sel-cta {
  display: inline-block;
  margin-top: 10px;
  margin-right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: #10b981;
  color: #fff !important;
  text-decoration: none;
}
.ai-sel-cta--ghost {
  background: #f1f5f9;
  color: #475569 !important;
}

.ai-deploy-table th:first-child,
.ai-deploy-table td:first-child {
  width: 22%;
  font-weight: 600;
  background: #f8fafc;
}
.ai-tools-intl-notes a {
  color: #047857;
  font-weight: 600;
}

/* 国产页 · 纵深对比 */
.ai-depth-jump {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.ai-depth-jump a {
  color: #047857;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  background: #fff;
}
.ai-depth-jump a:hover {
  background: #ecfdf5;
}
.ai-depth-method {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb, #fff);
}
.ai-depth-method__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #92400e;
}
.ai-depth-method__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.55;
}
.ai-depth-method__foot {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  color: #94a3b8;
}
.ai-depth-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ai-depth-block__desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.55;
  max-width: 52rem;
}
.ai-depth-table th:first-child {
  min-width: 118px;
  vertical-align: top;
}
.ai-depth-hint {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}
.ai-depth-cell {
  display: block;
  line-height: 1.45;
}
.ai-depth-score {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  margin-right: 4px;
  vertical-align: top;
}
.ai-depth-score--high {
  background: #d1fae5;
  color: #047857;
}
.ai-depth-score--mid {
  background: #fef3c7;
  color: #b45309;
}
.ai-depth-score--low {
  background: #f1f5f9;
  color: #64748b;
}
.ai-depth-text {
  font-size: 0.6875rem;
  color: #334155;
}
.ai-depth-empty {
  color: #cbd5e1;
}
.ai-tool-card__depth {
  font-size: 0.6875rem;
  color: #059669;
  font-weight: 600;
  margin: 6px 0 0;
  line-height: 1.4;
}
.ai-tools-review__deep {
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 3px solid #10b981;
}
.ai-scenario-table th:first-child {
  width: 22%;
}
.ai-scenario-table td strong {
  color: #047857;
}

.ai-tools-stub {
  display: none;
}
