/*
 * [INPUT]: base.css 的主题变量、compare.html 的语义结构与 compare.js 的运行状态。
 * [OUTPUT]: 双路径演示、能力对照表、任务建议与对应响应式布局。
 * [POS]: 独立对比页的增量样式，不覆盖首页演示；复用全站主题和导航。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
.comparison-page {
  --llm: #b3beff;
}
.compare-shell {
  max-width: 1280px;
  width: 88.9%;
  margin: auto;
}
.compare-intro {
  padding: 38px 0 45px;
}
.back-link {
  display: inline-block;
  color: #94a28a;
  font-size: 0.875rem;
  margin-bottom: 34px;
}
.back-link:hover {
  color: var(--accent);
}
.compare-intro-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.compare-intro .eyebrow {
  margin-bottom: 18px;
}
.compare-intro h1 {
  font-size: clamp(40px, 4.3vw, 62px);
  line-height: 1.25;
  letter-spacing: -2.5px;
}
.compare-lead {
  color: #d5dccf;
  margin: 0 0 3px;
  font-size: 1.125rem;
  line-height: 1.8;
}
.compare-lead span {
  color: #8e9d82;
  font-size: 0.875rem;
}
.path-demo {
  border: 1px solid #35412d;
  border-radius: 10px;
  background: #0c110c;
  overflow: hidden;
}
.paths-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 30px;
}
.paths-toolbar h2 {
  font-size: 1.125rem;
  letter-spacing: -0.4px;
  line-height: 1.6;
}
.paths-toolbar p {
  font-size: 0.875rem;
  color: #92a086;
  margin: 4px 0 0;
}
.example-badge {
  font: 12px var(--mono);
  color: #9eac90;
  white-space: nowrap;
}
.shared-input {
  margin: 0 30px 27px;
  padding: 15px 19px;
  background: #151c12;
  border: 1px solid #2c3924;
  border-radius: 5px;
  display: flex;
  align-items: baseline;
  gap: 22px;
}
.shared-input > span {
  color: #94a67f;
  font: 11px var(--mono);
  letter-spacing: 1px;
}
.shared-input p {
  margin: 0;
  color: #d0d8c8;
  font-size: 1rem;
  line-height: 1.8;
}
.model-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
.model-path {
  padding: 26px 30px;
  min-width: 0;
  --path-color: var(--llm);
}
.llm-path {
  background: linear-gradient(135deg, #b3beff05, transparent);
  border-right: 1px solid var(--line);
}
.jev-path {
  --path-color: var(--accent);
  background: linear-gradient(135deg, #c1ff7208, transparent);
}
.path-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.model-index {
  color: var(--path-color);
  font: 11px var(--mono);
  letter-spacing: 1px;
}
.path-heading h3 {
  font: 500 35px/1.5 var(--display);
  letter-spacing: -1.5px;
  margin: 8px 0 0;
}
.path-heading h3 span {
  font: 14px var(--font);
  color: #9aab8c;
  letter-spacing: 0;
  margin-left: 14px;
}
.model-symbol {
  color: var(--path-color);
  font-size: 47px;
  line-height: 1;
}
.jev-symbol {
  font: 55px Georgia;
}
.output-switch,
.typed-fields {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 21px 0 22px;
  gap: 8px;
}
.output-switch button {
  font-size: 0.875rem;
  padding: 7px 14px;
  cursor: pointer;
  border: 1px solid #333a43;
  color: #adb6c7;
  background: transparent;
  border-radius: 4px;
}
.output-switch button[aria-pressed="true"] {
  background: #b3beff12;
  border-color: #7783b4;
  color: #d0d7ff;
}
.output-switch button:hover {
  border-color: var(--llm);
}
.typed-fields {
  flex-wrap: wrap;
  gap: 6px;
}
.typed-fields > span {
  border: 1px solid #3b4c2d;
  padding: 5px 8px;
  border-radius: 4px;
  font: 11px/1.7 var(--mono);
  color: #c3d4b1;
}
.typed-fields b {
  font-size: 10px;
  font-weight: 400;
  color: #8fa976;
  margin-left: 3px;
}
.path-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  counter-reset: stage;
  padding: 0;
  margin: 0 0 23px;
}
.path-stages li {
  counter-increment: stage;
  position: relative;
  color: #91a084;
  border-top: 2px solid #303b2a;
  padding-top: 13px;
  font-size: 12px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.path-stages li:before {
  content: "0" counter(stage);
  display: block;
  margin-bottom: 6px;
  font: 10px var(--mono);
  color: #6f8062;
}
.path-stages .stage-active {
  color: var(--path-color);
  border-color: var(--path-color);
}
.path-stages .stage-done {
  color: #c1cdb5;
  border-color: #6a8258;
}
.path-stages .stage-active:before {
  color: var(--path-color);
}
.path-result {
  border: 1px solid #2c3526;
  background: #080d08;
  border-radius: 6px;
  padding: 16px 17px;
}
.output-label {
  font-size: 12px;
  color: #94a386;
}
.path-result pre {
  color: var(--path-color);
  font: 13px/1.9 var(--mono);
  margin: 15px 0 0;
  min-height: 128px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.path-explanation {
  font-size: 0.875rem;
  color: #98a68c;
  margin: 19px 0 0;
  line-height: 1.85;
}
.paths-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
}
.paths-footer p {
  color: #829475;
  font-size: 12px;
  margin: 0;
}
.paths-footer > div {
  display: flex;
  gap: 12px;
}
.paths-footer .button {
  min-width: 174px;
  padding: 12px 19px;
}
.secondary-button {
  border: 1px solid #3e4d33;
  border-radius: 5px;
  padding: 10px 20px;
  color: #bccdb0;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
}
.secondary-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.paths-running:not(.paths-paused) .stage-active {
  animation: stage-glow 1s ease-in-out infinite alternate;
}
@keyframes stage-glow {
  to {
    text-shadow: 0 0 13px var(--path-color);
  }
}
.structured-note {
  display: flex;
  gap: 17px;
  align-items: baseline;
  padding: 25px 0;
}
.structured-note > span {
  color: var(--llm);
  font-size: 22px;
}
.structured-note p {
  font-size: 0.875rem;
  color: #a2b197;
  margin: 0;
  line-height: 1.9;
}
.structured-note strong {
  color: #d4ddcb;
  font-weight: 500;
}
.structured-note a {
  color: #c1cbb6;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 9px;
}
.compare-section {
  padding: 75px 0 0;
}
.compare-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 30px;
}
.compare-section-head h2 {
  font-size: 36px;
  letter-spacing: -1px;
}
.compare-section-head .eyebrow {
  margin-bottom: 19px;
}
.compare-section-head > p {
  font-size: 0.875rem;
  color: #8fa280;
  margin: 0;
}
.matrix-scroll {
  overflow-x: auto;
  border: 1px solid #303d27;
  border-radius: 7px;
}
.matrix-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 650px;
  font-size: 0.875rem;
}
.matrix-table th,
.matrix-table td {
  padding: 23px 25px;
  border-bottom: 1px solid #2c3924;
  vertical-align: top;
  line-height: 1.9;
}
.matrix-table th {
  font-weight: 500;
}
.matrix-table thead {
  background: #11190e;
}
.matrix-table thead th:first-child {
  width: 18%;
  color: #a0b18f;
  vertical-align: middle;
}
.matrix-table thead th:not(:first-child) {
  width: 41%;
  font: 500 27px var(--display);
}
.matrix-table th small {
  display: block;
  font: 12px var(--font);
  color: #91a27f;
  margin-top: 7px;
}
.matrix-table tbody th {
  color: #c7d4ba;
}
.matrix-table td {
  color: #adbaa1;
}
.matrix-table td:last-child {
  background: #c1ff7203;
}
.matrix-table tr:last-child th,
.matrix-table tr:last-child td {
  border: 0;
}
.llm-color {
  color: var(--llm);
}
.table-footnote {
  font-size: 12px;
  color: #829573;
  margin: 15px 0 0;
}
.table-scroll-hint {
  display: none;
  color: #a6b694;
  font-size: 12px;
  margin: 13px 0 0;
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.fit-grid article {
  border: 1px solid #2d3a24;
  border-radius: 7px;
  padding: 26px;
  background: #0d120b;
}
.fit-label {
  font: 12px var(--mono);
  color: #b7c5a8;
}
.fit-label.accent {
  color: var(--accent);
}
.fit-label.llm-color {
  color: var(--llm);
}
.fit-grid h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 23px 0 14px;
  letter-spacing: -0.5px;
}
.fit-grid p {
  color: #a1b293;
  font-size: 1rem;
  margin: 0 0 24px;
}
.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.fit-tags span {
  font-size: 12px;
  color: #b3c5a1;
  background: #1b2814;
  padding: 3px 9px;
  border-radius: 4px;
}
.sources-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 65px;
}
.sources-section h2 {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.sources-section .eyebrow {
  margin-bottom: 18px;
}
.sources-section p {
  font-size: 0.875rem;
  color: #92a582;
  margin: 18px 0 0;
}
.source-links {
  align-self: center;
}
.source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #2c3c22;
}
.source-links strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}
.source-links small {
  font-size: 12px;
  color: #91a17f;
  display: block;
  margin-top: 7px;
}
.source-links a:hover {
  color: var(--accent);
}
.compare-ending {
  border-top: 1px solid #2a3a20;
  padding: 32px 0 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.compare-ending p {
  font-size: 22px;
  margin: 0;
  color: #bdcdb0;
}
@media (max-width: 1000px) {
  .compare-intro-grid {
    gap: 20px;
  }
  .compare-lead {
    font-size: 1rem;
  }
  .compare-lead span {
    font-size: 12px;
  }
  .model-path {
    padding: 24px 22px;
  }
  .path-heading h3 span {
    font-size: 12px;
    margin-left: 10px;
  }
  .typed-fields {
    min-height: 78px;
    align-content: center;
  }
  .output-switch {
    min-height: 78px;
  }
  .path-stages {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .path-result pre {
    font-size: 12px;
    min-height: 138px;
  }
  .paths-footer {
    padding-inline: 22px;
  }
  .compare-section-head h2 {
    font-size: 30px;
  }
  .fit-grid {
    gap: 16px;
  }
  .fit-grid article {
    padding: 20px;
  }
  .fit-grid h3 {
    font-size: 18px;
  }
  .sources-section {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .compare-shell {
    width: 88%;
  }
  .compare-intro {
    padding: 26px 0 31px;
  }
  .back-link {
    margin-bottom: 28px;
    font-size: 12px;
  }
  .compare-intro-grid {
    display: block;
  }
  .compare-intro h1 {
    font-size: clamp(32px, 7.8vw, 49px);
    letter-spacing: -1px;
  }
  .compare-intro .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .compare-lead {
    margin-top: 24px;
    font-size: 1rem;
  }
  .compare-lead span {
    font-size: 0.875rem;
  }
  .paths-toolbar {
    display: block;
    padding: 21px 20px 17px;
  }
  .paths-toolbar h2 {
    font-size: 1rem;
  }
  .paths-toolbar p {
    font-size: 12px;
  }
  .example-badge {
    display: inline-block;
    margin-top: 13px;
    font-size: 10px;
  }
  .shared-input {
    margin: 0 20px 23px;
    padding: 15px;
    display: block;
  }
  .shared-input > span {
    display: block;
    margin-bottom: 9px;
  }
  .shared-input p {
    font-size: 0.875rem;
  }
  .model-paths {
    grid-template-columns: 1fr;
  }
  .model-path {
    padding: 24px 20px;
  }
  .llm-path {
    border-right: 0;
    border-bottom: 1px solid #34402d;
  }
  .path-heading h3 {
    font-size: 32px;
  }
  .path-heading h3 span {
    font-size: 12px;
  }
  .typed-fields,
  .output-switch {
    min-height: 44px;
    margin-block: 19px;
  }
  .path-stages {
    grid-template-columns: repeat(2, 1fr);
  }
  .path-result pre {
    min-height: 110px;
    font-size: 12px;
  }
  .paths-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 20px;
    gap: 17px;
  }
  .paths-footer > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .paths-footer .button {
    min-width: 0;
    padding: 12px;
    gap: 10px;
    font-size: 13px;
  }
  .secondary-button {
    padding-inline: 14px;
  }
  .paths-footer p {
    font-size: 11px;
  }
  .structured-note {
    gap: 10px;
    padding-top: 23px;
  }
  .structured-note p {
    font-size: 13px;
  }
  .compare-section {
    padding-top: 48px;
  }
  .compare-section-head {
    display: block;
  }
  .compare-section-head h2 {
    font-size: 30px;
    line-height: 1.4;
  }
  .compare-section-head h2 span {
    display: block;
  }
  .compare-section-head > p {
    margin-top: 18px;
  }
  .matrix-table {
    min-width: 650px;
  }
  .table-scroll-hint {
    display: block;
  }
  .matrix-table th,
  .matrix-table td {
    padding: 19px;
  }
  .fit-grid {
    grid-template-columns: 1fr;
  }
  .fit-grid article {
    padding: 25px;
  }
  .fit-grid h3 {
    font-size: 20px;
  }
  .sources-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }
  .source-links small {
    font-size: 12px;
    line-height: 1.8;
  }
  .compare-ending {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0 45px;
    gap: 20px;
  }
  .compare-ending p {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .path-stages li {
    transition: none;
  }
}
