:root {
  --ons-bg: #ffffff;
  --ons-alt: #f6f7f9;
  --ons-card: #ffffff;
  --ons-text: #14161a;
  --ons-muted: #5f6672;
  --ons-border: #e6e8ec;
  --ons-accent: #2563eb;
  --ons-radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ons-bg: #0f1115;
    --ons-alt: #14181f;
    --ons-card: #171b22;
    --ons-text: #f2f4f7;
    --ons-muted: #98a1ae;
    --ons-border: #242a33;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.ons-body {
  margin: 0;
  background: var(--ons-bg);
  color: var(--ons-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.ons-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* top */
.ons-top {
  border-bottom: 1px solid var(--ons-border);
  background: var(--ons-bg);
}

.ons-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.ons-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.ons-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.ons-back {
  font-size: 14px;
  color: var(--ons-muted);
  transition: color .15s ease;
}

.ons-back:hover { color: var(--ons-accent); }

/* hero */
.ons-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--ons-border);
}

.ons-hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.ons-hero-in.is-solo {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.ons-hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ons-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--ons-border);
  background: var(--ons-alt);
  flex: 0 0 auto;
}

.ons-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
}

.ons-hero-sub {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--ons-muted);
  max-width: 62ch;
}

.ons-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ons-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.ons-btn.is-primary {
  background: var(--ons-accent);
  color: #fff;
}

.ons-btn.is-primary:hover { filter: brightness(.94); }

.ons-btn.is-ghost {
  border-color: var(--ons-border);
  color: var(--ons-text);
  background: transparent;
}

.ons-btn.is-ghost:hover { border-color: var(--ons-accent); color: var(--ons-accent); }

.ons-hero-shot img {
  width: 100%;
  border-radius: var(--ons-radius);
  border: 1px solid var(--ons-border);
}

/* sections */
.ons-sec {
  padding: 64px 0;
  border-bottom: 1px solid var(--ons-border);
}

.ons-sec:nth-of-type(even) { background: var(--ons-alt); }

.ons-h2 {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 700;
}

.ons-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ons-card {
  background: var(--ons-card);
  border: 1px solid var(--ons-border);
  border-radius: var(--ons-radius);
  padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
}

.ons-card:hover { border-color: var(--ons-accent); }

.ons-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ons-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ons-muted);
  line-height: 1.75;
}

.ons-ico {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
  height: 24px;
  display: flex;
  align-items: center;
}

.ons-ico img { width: 24px; height: 24px; object-fit: contain; }

/* table */
.ons-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--ons-border);
  border-radius: var(--ons-radius);
  background: var(--ons-card);
}

.ons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.ons-table th,
.ons-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ons-border);
  vertical-align: top;
}

.ons-table th {
  font-weight: 600;
  font-size: 13px;
  color: var(--ons-muted);
  background: var(--ons-alt);
  white-space: nowrap;
}

.ons-table tr:last-child td { border-bottom: 0; }

.ons-table tr.is-self td { background: rgba(37, 99, 235, .06); font-weight: 500; }

/* 对比表：名称 + 评分 + 标记 */
.ons-cmp-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ons-cmp-name a { color: var(--ons-accent); }
.ons-cmp-name a:hover { text-decoration: underline; }

.ons-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  background: var(--ons-accent);
  color: #fff;
  white-space: nowrap;
}

.ons-stars {
  color: #e08c00;
  font-size: 13px;
  white-space: nowrap;
}

.ons-stars b {
  color: var(--ons-text);
  font-weight: 600;
  margin-left: 3px;
  font-size: 13px;
}

.ons-dim { color: var(--ons-muted); opacity: .75; }

.ons-cmp-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

/* 表格下方结论：整页最容易被引用的一段，排版要像正文而不是注释 */
.ons-cmp-sum {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--ons-accent);
  background: var(--ons-alt);
  border-radius: 0 var(--ons-radius) var(--ons-radius) 0;
}

.ons-cmp-sum p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.ons-cmp-sum p + p { margin-top: 10px; }

/* 只给读屏用的文本（表格 caption） */
.ons-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 列宽由 <colgroup> 控制，这里只保证名称列不会被压太窄 */
.ons-cmp th:first-child { min-width: 120px; }

/* faq */
.ons-faq {
  border: 1px solid var(--ons-border);
  border-radius: var(--ons-radius);
  background: var(--ons-card);
  overflow: hidden;
}

.ons-qa { border-bottom: 1px solid var(--ons-border); }

.ons-qa:last-child { border-bottom: 0; }

.ons-qa summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.ons-qa summary::-webkit-details-marker { display: none; }

.ons-qa summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ons-muted);
  font-size: 20px;
  font-weight: 400;
}

.ons-qa[open] summary::after { content: "−"; }

.ons-qa-body {
  padding: 0 22px 20px;
  color: var(--ons-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* timeline */
.ons-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--ons-border);
}

.ons-timeline li {
  position: relative;
  padding: 0 0 24px 24px;
}

.ons-timeline li:last-child { padding-bottom: 0; }

.ons-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ons-accent);
}

.ons-date {
  display: block;
  font-size: 13px;
  color: var(--ons-muted);
  margin-bottom: 2px;
}

.ons-tl-text { font-size: 15px; }

/* related */
.ons-rel { display: block; }

.ons-rel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ons-rel-head img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.ons-rel-head h3 { margin: 0; }

/* cta band */
.ons-cta-band {
  padding: 64px 0;
  background: var(--ons-alt);
}

.ons-cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ons-cta-in h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.ons-cta-in p {
  margin: 0;
  color: var(--ons-muted);
  font-size: 14px;
}

/* footer */
.ons-foot {
  padding: 36px 0 48px;
  border-top: 1px solid var(--ons-border);
  color: var(--ons-muted);
  font-size: 13px;
}

.ons-foot p { margin: 0 0 4px; }

.ons-foot-dim { color: var(--ons-muted); opacity: .8; }

@media (max-width: 900px) {
  .ons-hero { padding: 48px 0 40px; }
  .ons-hero-in { grid-template-columns: 1fr; gap: 32px; }
  .ons-cards { grid-template-columns: repeat(2, 1fr); }
  .ons-sec { padding: 48px 0; }
}

@media (max-width: 640px) {
  .ons-wrap { padding: 0 20px; }
  .ons-cards { grid-template-columns: 1fr; }
  .ons-hero-title { gap: 12px; }
  .ons-logo { width: 44px; height: 44px; border-radius: 11px; }
  .ons-tablewrap { border: 0; background: transparent; overflow: visible; }
  .ons-table, .ons-table tbody, .ons-table tr, .ons-table td { display: block; min-width: 0; }
  .ons-table thead { display: none; }
  .ons-table tr {
    border: 1px solid var(--ons-border);
    border-radius: var(--ons-radius);
    margin-bottom: 12px;
    background: var(--ons-card);
    overflow: hidden;
  }
  .ons-table td {
    border-bottom: 1px solid var(--ons-border);
    padding: 10px 16px 10px 92px;
    position: relative;
  }
  .ons-table td:last-child { border-bottom: 0; }
  .ons-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 10px;
    width: 68px;
    font-size: 12px;
    color: var(--ons-muted);
  }
}
