/* 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;
  }
}

/* 費用計算器 · v20260723p17 */
body.ai-tools-calc-page .ai-calc-tool-card,
body.ai-tools-calc-page .ai-calc-presets button,
body.ai-tools-calc-page .ai-calc-toggle-all,
body.ai-tools-calc-page .ai-calc-run {
  min-width: unset !important;
  min-height: unset !important;
}
body.ai-tools-calc-page .ai-calc-tool-card {
  min-height: 52px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
  position: relative;
  z-index: 1;
}
.ai-calc-pick-hint {
  margin: 0 0 0.75rem;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}
.ai-calc-toggle-all {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  border-radius: 10px;
  cursor: pointer;
}
.ai-calc-toggle-all:hover {
  background: #e0f2fe;
}
.ai-calc-presets button.is-active {
  background: #10b981;
  color: #fff;
  border-color: #059669;
}
.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: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ai-calc-tier-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.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%, 128px), 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fafafa;
}
body.ai-tools-calc-page .ai-calc-tool-grid--collapsed {
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.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 {
  border-color: rgba(245, 158, 11, 0.45);
}
.ai-calc-tool-card__hot {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.ai-calc-tool-card__name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  padding-right: 22px;
}
.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;
}

/* ===== 國產縱深頁 · 分層 + 懸停 v20260723p21 ===== */
body.ai-tools-domestic-page {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 160px, #f8fafc 100%);
}
body.ai-tools-domestic-page .container.mx-auto {
  max-width: 1120px;
}
.ai-domestic-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 8px 0 0;
  line-height: 1.55;
}
.ai-domestic-hint strong {
  color: #334155;
}
.ai-tools-hub-grid--domestic {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.ai-tool-card--domestic {
  position: relative;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ai-tool-card--domestic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #94a3b8;
}
.ai-tool-card--seg-big::before {
  background: linear-gradient(180deg, #10b981, #059669);
}
.ai-tool-card--seg-open::before {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
}
.ai-tool-card--seg-mix::before {
  background: #cbd5e1;
}
.ai-tool-card__seg {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}
.ai-tool-card--domestic .ai-tool-card__name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}
.ai-tool-card--domestic .ai-tool-card__vendor {
  font-size: 0.6875rem;
  color: #64748b;
}
.ai-tool-card--domestic .ai-tool-card__meta {
  font-size: 0.6875rem;
  color: #475569;
  margin-bottom: 4px;
}
.ai-tool-card--domestic .ai-tool-card__teaser {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}
.ai-tool-card--domestic .ai-tool-card__hover {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}
.ai-tool-card--domestic:hover,
.ai-tool-card--domestic:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: #a7f3d0;
}
.ai-tool-card--domestic:hover .ai-tool-card__hover,
.ai-tool-card--domestic:focus-within .ai-tool-card__hover {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: #ecfdf5;
}
.ai-tool-card__hover-label {
  font-size: 0.625rem;
  font-weight: 800;
  color: #059669;
  margin: 0 0 4px;
}
.ai-tool-card__hover-text {
  font-size: 0.6875rem;
  color: #334155;
  margin: 0 0 4px;
  line-height: 1.45;
}
.ai-tool-card__hover-text--muted {
  color: #64748b;
}
.ai-tools-table--domestic th:first-child,
.ai-tools-table--domestic td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04);
}
.ai-domestic-col__vendor {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}
.ai-domestic-col--0 { border-top: 3px solid #10b981; }
.ai-domestic-col--1 { border-top: 3px solid #0ea5e9; }
.ai-domestic-col--2 { border-top: 3px solid #6366f1; }
.ai-domestic-col--3 { border-top: 3px solid #f59e0b; }
.ai-domestic-col--4 { border-top: 3px solid #ec4899; }
.ai-domestic-col--5 { border-top: 3px solid #8b5cf6; }
.ai-tools-table--domestic .is-col-hover {
  background: #ecfdf5 !important;
}
.ai-tools-table--domestic .is-row-hover {
  background: #f0fdf4;
}
.ai-tools-table--domestic .is-row-hover.is-col-hover {
  background: #d1fae5 !important;
  box-shadow: inset 0 0 0 1px #6ee7b7;
}
body.ai-tools-domestic-page .ai-depth-block--fold {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;
}
body.ai-tools-domestic-page .ai-depth-block__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  background: linear-gradient(135deg, #f8fafc, #fff);
}
body.ai-tools-domestic-page .ai-depth-block__summary::-webkit-details-marker {
  display: none;
}
.ai-depth-block__summary-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}
.ai-depth-block__summary-hint {
  font-size: 0.6875rem;
  color: #64748b;
  flex: 1 1 200px;
  line-height: 1.45;
}
body.ai-tools-domestic-page .ai-depth-block__body {
  padding: 0 0 10px;
  border-top: 1px solid #f1f5f9;
}
body.ai-tools-domestic-page .ai-depth-table .ai-depth-text {
  display: block;
  max-height: 2.8em;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
body.ai-tools-domestic-page .ai-depth-table td:hover .ai-depth-text,
body.ai-tools-domestic-page .ai-depth-table td:focus-within .ai-depth-text {
  max-height: 8em;
}
@media (max-width: 640px) {
  .ai-tool-card--domestic .ai-tool-card__hover {
    max-height: none;
    opacity: 1;
    margin-top: 8px;
    padding-top: 8px;
    border-top-color: #ecfdf5;
  }
}

/* ===== 國外對比頁 · 可讀性 + 移動端 v20260723p18 ===== */
body.ai-tools-intl-page {
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 120px, #f8fafc 100%);
}
body.ai-tools-intl-page .container.mx-auto {
  max-width: 1120px;
}
.ai-tools-hero--intl {
  background: linear-gradient(155deg, #eff6ff 0%, #f0fdf4 45%, #fff 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-bottom-color: rgba(16, 185, 129, 0.1);
}
.ai-tools-badge--intl {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}
.ai-tools-hero__lead {
  font-size: 0.875rem;
  color: #475569;
  max-width: 44rem;
  margin: 0;
  line-height: 1.65;
}
.ai-depth-jump--intl a {
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.ai-depth-jump--intl a:hover {
  background: #eff6ff;
}
.ai-intl-read-guide {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.ai-intl-read-guide__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
}
.ai-intl-read-guide__title i {
  color: #2563eb;
  margin-right: 6px;
}
.ai-intl-read-guide__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
}
.ai-tools-filter-sticky {
  position: sticky;
  top: calc(var(--lc-page-offset, 98px) - 2px);
  z-index: 30;
  margin: 0 0 0.75rem;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 70%, rgba(248, 250, 252, 0));
  backdrop-filter: blur(6px);
}
body.ai-tools-intl-page .ai-tools-filter--intl button {
  min-width: unset !important;
  min-height: 36px !important;
  padding: 8px 14px;
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .ai-tools-filter--intl {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    mask-image: linear-gradient(to right, #000 90%, transparent);
  }
  .ai-tools-filter--intl::-webkit-scrollbar {
    display: none;
  }
  .ai-tools-filter--intl button {
    flex-shrink: 0;
  }
}
.ai-tools-section {
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.ai-tools-section__title {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f172a;
}
.ai-tools-section__title i {
  color: #2563eb;
  margin-right: 6px;
  font-size: 0.95rem;
}
.ai-tools-section__desc {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}
.ai-table-scroll-hint {
  display: none;
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}
@media (max-width: 900px) {
  .ai-table-scroll-hint {
    display: block;
  }
}
.ai-tools-hub-grid--intl {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
@media (max-width: 480px) {
  .ai-tools-hub-grid--intl {
    grid-template-columns: 1fr;
  }
}
.ai-tool-card--intl {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border-width: 1px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ai-tool-card--intl:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}
.ai-tool-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ai-tool-card__head-text {
  min-width: 0;
}
.ai-tool-card--intl .ai-tool-card__name {
  font-size: 1rem;
  line-height: 1.3;
}
.ai-tool-card--intl .ai-tool-card__vendor {
  font-size: 0.8125rem;
  margin-top: 4px;
}
.ai-tool-card__score {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #f59e0b;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: right;
}
.ai-tool-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ai-tool-card__price {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}
.ai-tool-card__scenario {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}
.ai-tools-table-wrap--intl {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), inset 0 0 0 1px #e2e8f0;
}
.ai-tools-table-wrap--intl.is-scrollable:not(.is-scrolled-start) {
  box-shadow: inset 8px 0 10px -8px rgba(15, 23, 42, 0.1), 0 4px 24px rgba(15, 23, 42, 0.06), inset 0 0 0 1px #e2e8f0;
}
.ai-tools-table-wrap--intl.is-scrollable:not(.is-scrolled-end) {
  box-shadow: inset -8px 0 10px -8px rgba(15, 23, 42, 0.1), 0 4px 24px rgba(15, 23, 42, 0.06), inset 0 0 0 1px #e2e8f0;
}
.ai-intl-table-caption {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.ai-tools-table.ai-intl-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 880px;
  font-size: 0.8125rem;
}
.ai-intl-matrix thead th {
  padding: 14px 12px;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 2px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}
.ai-intl-corner {
  min-width: 108px;
  max-width: 120px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important;
}
.ai-intl-corner__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.ai-intl-corner__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}
.ai-intl-col-head__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ai-intl-col-head__vendor {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}
.ai-intl-col-head--0 { border-top: 3px solid #10b981; }
.ai-intl-col-head--1 { border-top: 3px solid #6366f1; }
.ai-intl-col-head--2 { border-top: 3px solid #0ea5e9; }
.ai-intl-col-head--3 { border-top: 3px solid #f59e0b; }
.ai-intl-col-head--4 { border-top: 3px solid #ec4899; }
.ai-intl-col-head--5 { border-top: 3px solid #8b5cf6; }
.ai-intl-row th.ai-intl-dim,
.ai-intl-row td.ai-intl-val {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.ai-intl-row th.ai-intl-dim {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 108px;
  max-width: 120px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #334155;
  background: #f8fafc;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.04);
}
.ai-intl-row--alt th.ai-intl-dim {
  background: #f1f5f9;
}
.ai-intl-row--alt td {
  background: #fafbfc;
}
.ai-intl-row:hover td {
  background: #f0fdf4;
}
.ai-intl-row:hover th.ai-intl-dim {
  background: #ecfdf5;
}
.ai-intl-cell {
  display: block;
  line-height: 1.45;
  color: #334155;
  word-break: break-word;
}
.ai-intl-stars {
  display: inline-block;
  letter-spacing: 0.06em;
  color: #f59e0b;
  font-size: 0.75rem;
}
.ai-intl-stars--cn {
  font-size: 0.8125rem;
}
.ai-intl-score {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}
.ai-intl-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
}
.ai-intl-pill--yes {
  background: #d1fae5;
  color: #047857;
}
.ai-intl-pill--no {
  background: #f1f5f9;
  color: #64748b;
}
.ai-intl-mobile-compare {
  display: none;
  margin-bottom: 1rem;
}
.ai-intl-m-card {
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.ai-intl-m-card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-bottom: 1px solid transparent;
}
.ai-intl-m-card[open] summary {
  border-bottom-color: #e2e8f0;
}
.ai-intl-m-card summary::-webkit-details-marker {
  display: none;
}
.ai-intl-m-card__name {
  display: block;
  font-weight: 800;
  font-size: 0.9375rem;
  color: #0f172a;
}
.ai-intl-m-card__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #64748b;
}
.ai-intl-m-dl {
  margin: 0;
  padding: 12px 16px 14px;
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 8px 12px;
}
.ai-intl-m-dl dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #64748b;
  text-transform: none;
}
.ai-intl-m-dl dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.ai-tools-table--intl {
  min-width: 720px;
  font-size: 0.8125rem;
}
.ai-tools-table--intl tbody th {
  min-width: 96px;
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}
.ai-tools-table--intl td {
  line-height: 1.5;
  color: #334155;
}
@media (max-width: 900px) {
  body.ai-tools-intl-page .ai-tools-table-wrap--intl {
    display: none;
  }
  body.ai-tools-intl-page .ai-intl-table-caption {
    display: none;
  }
  body.ai-tools-intl-page .ai-intl-mobile-compare {
    display: block;
  }
  .ai-tools-table--intl {
    min-width: 640px;
    font-size: 0.75rem;
  }
  .ai-tools-table--intl th:first-child,
  .ai-tools-table--intl td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.06);
  }
  .ai-tools-table--intl thead th:first-child {
    z-index: 3;
    background: #f1f5f9;
  }
  .ai-tools-table--intl tbody th:first-child {
    background: #f8fafc;
  }
}
.ai-tools-review-grid--intl {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.ai-tools-review--intl h3 a {
  color: inherit;
  text-decoration: none;
}
.ai-tools-review--intl h3 a:hover {
  color: #059669;
}
.ai-tools-review__more {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.ai-tools-review__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #059669 !important;
  text-decoration: none;
  min-width: unset !important;
  min-height: unset !important;
}
.ai-tools-review__more a:hover {
  text-decoration: underline;
}
.ai-tool-card__name-link {
  color: inherit;
  text-decoration: none;
}
.ai-tool-card__name-link:hover {
  color: #059669;
}
.ai-tools-review--intl {
  border-radius: 14px;
  padding: 16px;
  line-height: 1.55;
}
.ai-tools-review--intl h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ai-tools-review__label {
  font-size: 0.6875rem;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ai-tools-review__label--pro {
  color: #059669;
}
.ai-tools-review__label--con {
  color: #dc2626;
  margin-top: 10px;
}
.ai-tools-review--intl ul {
  font-size: 0.8125rem;
  line-height: 1.55;
}
.ai-tools-review__fit {
  font-size: 0.8125rem;
  margin: 10px 0 0;
  color: #334155;
}
.ai-tools-review__fit--muted {
  margin-top: 6px;
  color: #64748b;
}
.ai-tools-intl-notes--panel {
  margin: 0 0 1rem;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb, #fff);
  font-size: 0.8125rem;
  color: #78350f;
  line-height: 1.55;
}
.ai-tools-intl-notes--panel a {
  color: #047857;
  font-weight: 700;
}
.ai-tools-intl-notes--panel i {
  color: #d97706;
  margin-right: 4px;
}
.ai-tools-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}
.ai-tools-cta-bar__primary,
.ai-tools-cta-bar__ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  min-width: unset !important;
  min-height: unset !important;
}
.ai-tools-cta-bar__primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
}
.ai-tools-cta-bar__ghost {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a !important;
}
@media (max-width: 640px) {
  body.ai-tools-intl-page .ai-tools-section {
    padding: 0.85rem 0.75rem 1rem;
    border-radius: 12px;
  }
  body.ai-tools-intl-page .ai-tools-hero--intl {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .ai-tools-cta-bar {
    flex-direction: column;
  }
  .ai-tools-cta-bar__primary,
  .ai-tools-cta-bar__ghost {
    justify-content: center;
    width: 100%;
    min-height: 44px !important;
  }
}

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