* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #9ca3af;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --green: #16a34a;
  --amber: #d97706;
  --dark: #111827;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand.small {
  font-size: 16px;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand.small img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.btn-login,
.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.btn-login {
  padding: 7px 18px;
  font-size: 14px;
}

.btn-login:hover,
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.home-main {
  min-height: calc(100vh - 138px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 9vh;
}

.hero {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 750;
}

.hero .sub {
  margin: 16px auto 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero .sub b {
  color: var(--text);
  font-weight: 650;
}

.search-box {
  margin-top: 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 34px rgba(37, 99, 235, 0.14);
}

.search-inner {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.search-inner textarea {
  flex: 1;
  min-height: 52px;
  max-height: 160px;
  padding: 14px 14px 10px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.search-inner textarea::placeholder,
.mini-search input::placeholder {
  color: var(--soft);
}

.btn-primary {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
}

.search-inner .btn-primary {
  flex-shrink: 0;
  margin: 4px;
  padding: 13px 26px;
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.models-line,
.examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.models-line {
  margin-top: 16px;
  gap: 6px;
  align-items: center;
  color: var(--soft);
  font-size: 12.5px;
}

.chip,
.models-line span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.models-line span,
.chip {
  padding: 2px 9px;
}

.examples {
  margin-top: 28px;
  gap: 10px;
}

.examples button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  font-size: 13.5px;
}

.examples button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer {
  padding: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  text-align: center;
  font-size: 12.5px;
}

.mini-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.mini-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.mini-search button {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.quota {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: var(--amber);
  font-size: 12px;
  white-space: nowrap;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.question-card {
  padding: 22px 26px;
  margin-bottom: 22px;
}

.question-card .q {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.6;
}

.question-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
}

.badge.green {
  background: #dcfce7;
  color: var(--green);
}

.badge.blue {
  background: #dbeafe;
  color: var(--primary);
}

.best-answer {
  padding: 26px 28px;
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08);
}

.src {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.content {
  color: #374151;
  font-size: 15px;
  line-height: 1.95;
}

.content p {
  margin: 0 0 12px;
}

.answer-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.btn-ghost {
  padding: 7px 16px;
  color: var(--muted);
  font-size: 13px;
}

.review-card {
  padding: 24px 26px;
}

.verdict {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg);
  color: #1f2937;
  font-size: 14.5px;
  line-height: 1.9;
}

.verdict b {
  color: var(--primary);
}

.score-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

th {
  background: #fbfbfc;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

td:first-child,
th:first-child {
  text-align: left;
  font-weight: 650;
}

tr.winner td {
  background: #f0f7ff;
}

.bar {
  display: inline-block;
  width: 48px;
  height: 5px;
  margin-left: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef0f3;
  vertical-align: middle;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
}

.bar.good i {
  background: var(--green);
}

.winner-mark {
  color: var(--amber);
  font-size: 12px;
  white-space: nowrap;
}

.dims {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
}

.dims span {
  display: inline-block;
  margin-right: 16px;
}

.answers-card {
  overflow: hidden;
}

.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}

.tab {
  flex: 1;
  min-width: 112px;
  padding: 14px 12px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.tab small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.tab.active {
  border-bottom-color: var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 650;
}

.pane {
  display: none;
  padding: 26px 28px;
}

.pane.active {
  display: block;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.model-name {
  font-size: 15px;
  font-weight: 700;
}

.model-meta {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  padding: 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
}

.upsell h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.upsell p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.upsell .btns {
  display: flex;
  gap: 10px;
}

.btn-white,
.btn-outline {
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
}

.btn-white {
  border: 0;
  background: #fff;
  color: var(--dark);
  font-weight: 650;
}

.btn-outline {
  border: 1px solid #4b5563;
  background: transparent;
  color: #fff;
}

.pricing-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
}

.pricing-wrap h1 {
  margin: 0;
  font-size: 30px;
}

.pricing-wrap .sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.plan.pro {
  position: relative;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}

.plan .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.plan h2 {
  margin: 0;
  font-size: 19px;
}

.price {
  margin: 14px 0 6px;
}

.price .num {
  font-size: 38px;
  font-weight: 800;
}

.price .unit,
.price .alt {
  color: var(--muted);
}

.price .unit {
  font-size: 14px;
}

.price .alt {
  margin-top: 4px;
  font-size: 12.5px;
}

.plan ul {
  flex: 1;
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
}

.plan li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plan li.no {
  color: var(--soft);
}

.plan li.no::before {
  content: "-";
  color: #d1d5db;
}

.plan .btn-primary,
.plan .btn-ghost {
  width: 100%;
  padding: 13px;
  font-size: 15px;
}

.faq {
  max-width: 660px;
  margin: 56px auto 0;
  text-align: left;
}

.faq h3 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 16px;
}

.faq details {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 650;
}

.faq summary::before {
  content: "Q · ";
  color: var(--primary);
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.45);
}

.mask.show {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding: 32px 30px;
  border-radius: 16px;
  background: #fff;
}

.modal h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.modal p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.modal input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font-size: 14px;
}

.modal input:focus {
  border-color: var(--primary);
}

.modal .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.modal .close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 22px;
}

.modal .tip {
  margin-top: 14px;
  color: var(--soft);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav {
    gap: 14px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero .sub br {
    display: none;
  }

  .search-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-inner .btn-primary {
    margin: 0 4px 6px;
  }

  .hide-mobile {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .mini-search {
    padding-left: 12px;
  }

  .container {
    padding: 18px 14px 48px;
  }

  .question-card {
    padding: 18px;
  }

  .question-card .q {
    font-size: 16.5px;
  }

  .best-answer,
  .review-card,
  .pane {
    padding: 20px 18px;
  }

  .answer-actions,
  .upsell,
  .upsell .btns {
    flex-direction: column;
    align-items: stretch;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .pricing-wrap h1 {
    font-size: 26px;
  }
}
