/* ==========================================================================
   Scite 中文介绍站 · 站点专属组件
   依赖 style.css 的设计令牌（Carbon 灰阶 + IBM Blue 单一强调色）
   规则：直角、无渐变、无发光阴影；动效只动 transform / opacity
   ========================================================================== */

/* 组件里用了 display:grid / flex，hidden 属性的 UA 样式会被压过，
   这里统一兜底，保证 hidden 一定生效（订阅表单的成功态切换依赖它）。 */
[hidden] { display: none !important; }

/* ---------- 非官网声明：独立强调块 ---------- */
.nonofficial {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  padding: 20px 24px;
  border: 1px solid var(--gray-30);
  border-left: 3px solid var(--blue-50);
  background: var(--gray-10);
}
.nonofficial-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--gray-90);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nonofficial-flag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue-40);
  flex: none;
}
.nonofficial-body { color: var(--gray-70); font-size: 14.5px; line-height: 1.7; }
.nonofficial-body strong { color: var(--gray-90); font-weight: 500; }
.nonofficial-body a { color: var(--blue-60); border-bottom: 1px solid var(--blue-30); }
.nonofficial-body a:hover { color: var(--blue-70); border-color: var(--blue-60); }

/* Hero：标题在此页文案较长，收一档字号避免在栅格列里断字 */
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); }

/* 声明条：整句必须包在 .bar-text 里。
   否则句中的 <b> 会成为独立 flex 子项，被排成竖列。 */
.distributor-inner .bar-text { flex: 1 1 auto; }

/* 品牌副标题不折行，「非官网」标识必须完整可见 */
.brand-sub { white-space: nowrap; }

/* ==========================================================================
   外边距补正
   基础样式用 p:not(.manual-body p) { margin: 0 } 归零段落外边距，
   该选择器特异性为 (0,1,1)，会压过后面 (0,1,0) 的单类名外边距规则，
   导致主文案与按钮贴得太近、列表与分隔线之间没有留白。
   这里用同等级选择器按需补回，不改动基础样式的全局语义。
   ========================================================================== */
p.hero-lead { margin-bottom: 32px; }
p.support-lead p { margin-bottom: 30px; }
p.contact-org { margin-bottom: 24px; }
p.contact-hint { margin-top: 14px; }
ul.price-list { margin: 22px 0 26px; }
ul.license-notes { margin-top: 32px; }
ul.cell-points { margin-top: 16px; }
ul.verdict-legend { margin-top: 16px; }
ul.coverage-card ul { margin-top: 16px; }
ul.platform-card ul { margin-top: 18px; }

/* ---------- 引文语境判定 ---------- */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}
.verdict::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: currentColor;
}
.verdict--support { color: var(--blue-60); background: var(--blue-10); }
.verdict--contrast { color: #8a6d3b; background: #fdf6e7; }
.verdict--mention { color: var(--gray-60); background: var(--white); }

/* 引文条目列表 */
.cite-panel { padding: 4px 18px; }
.cite-list { display: grid; }
.cite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-20);
}
.cite-item:first-child { border-top: 1px solid var(--gray-20); }
.cite-item p {
  grid-column: 1;
  grid-row: 1;
  color: var(--gray-70);
  font-size: 14px;
  line-height: 1.72;
  border-left: 2px solid var(--gray-20);
  padding-left: 14px;
}
.cite-item .cite-src {
  grid-column: 1;
  grid-row: 2;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-50);
  letter-spacing: .02em;
}
.cite-item .cite-src em {
  font-style: normal;
  color: var(--gray-70);
}
.cite-item .cite-verdict-slot {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* 判定分布条 */
.verdict-bar {
  display: flex;
  height: 10px;
  width: 100%;
  background: var(--gray-20);
  overflow: hidden;
}
.verdict-bar span { display: block; height: 100%; }
.verdict-bar .v-support { background: var(--blue-50); }
.verdict-bar .v-contrast { background: #c19a55; }
.verdict-bar .v-mention { background: var(--gray-40); }

.verdict-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}
.verdict-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--gray-60);
}
.verdict-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .12);
}
.verdict-legend i.l-support { background: var(--blue-50); }
.verdict-legend i.l-contrast { background: #c19a55; }
.verdict-legend i.l-mention { background: var(--gray-40); }
.verdict-legend b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gray-90);
}

/* ---------- 引文语境对照表 ---------- */
.verdict-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.verdict-table caption {
  text-align: left;
  padding-bottom: 16px;
  color: var(--gray-50);
  font-size: 13px;
}
.verdict-table th,
.verdict-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--gray-20);
  text-align: left;
  vertical-align: top;
}
.verdict-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-50);
  border-bottom: 1px solid var(--gray-30);
  white-space: nowrap;
}
.verdict-table tbody th {
  font-weight: 500;
  color: var(--gray-90);
  white-space: nowrap;
}
.verdict-table td { color: var(--gray-60); line-height: 1.7; }
.verdict-table td p { margin-bottom: 8px; }
.verdict-table td p:last-child { margin-bottom: 0; }

/* ---------- 数据覆盖矩阵 ---------- */
.coverage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.coverage-card {
  grid-column: span 4;
  padding: 26px 24px 24px;
  border: 1px solid var(--gray-20);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.coverage-card:hover { border-color: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-50); }
.coverage-card--wide { grid-column: span 8; }
.coverage-card--half { grid-column: span 4; }
.coverage-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gray-40);
}
.coverage-card h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.coverage-card p { color: var(--gray-60); font-size: 14px; }
.coverage-card ul { margin-top: 16px; display: grid; gap: 8px; }
.coverage-card li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--gray-60);
}
.coverage-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .76em;
  width: 7px;
  height: 1px;
  background: var(--blue-50);
}
.coverage-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-20);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-50);
}

/* ---------- 机构 / 出版商 文字墙 ---------- */
/* 固定 5 列：10 个名称刚好排成两整行，auto-fill 会留下 7+3 的残行 */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--gray-20);
  border: 1px solid var(--gray-20);
}
.logo-wall span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 14px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--gray-60);
  text-align: center;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.logo-wall span:hover { color: var(--blue-60); background: var(--blue-10); }

/* ---------- 证言 ---------- */
.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gray-20);
  border: 1px solid var(--gray-20);
}
.voice {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  background: var(--white);
}
.voice blockquote {
  margin: 0;
  color: var(--gray-70);
  font-size: 15px;
  line-height: 1.78;
}
.voice blockquote::before { content: "\201C"; }
.voice blockquote::after { content: "\201D"; }
.voice-by {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-20);
}
.voice-name { font-size: 14px; color: var(--gray-90); font-weight: 500; }
.voice-org {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-50);
  margin-top: 4px;
}
.voice-source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gray-40);
  margin-top: 8px;
}

/* ---------- 工作方式 / 工具接入 ---------- */
.tool-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-30) transparent;
}
.tool-row::-webkit-scrollbar { height: 6px; }
.tool-row::-webkit-scrollbar-thumb { background: var(--gray-30); }
.tool-card {
  flex: 0 0 clamp(220px, 26vw, 320px);
  scroll-snap-align: start;
  padding: 24px 22px;
  border: 1px solid var(--gray-20);
  border-top: 2px solid var(--blue-50);
  background: var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tool-card:hover { border-color: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-50); }
.tool-kind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-40);
}
.tool-card h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.tool-card p { color: var(--gray-60); font-size: 13.5px; line-height: 1.7; }

/* ---------- 常见问题 ---------- */
.faq { border-top: 1px solid var(--gray-20); }
.faq-item { border-bottom: 1px solid var(--gray-20); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--gray-90);
  font-size: 15.5px;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-60); }
.faq-q {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-60);
  padding-top: 4px;
}
.faq-sign {
  margin-left: auto;
  flex: none;
  width: 13px;
  height: 13px;
  position: relative;
  margin-top: 6px;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: var(--gray-50);
  transition: transform .2s var(--ease), background .15s var(--ease);
}
.faq-sign::before { left: 0; top: 6px; width: 13px; height: 1px; }
.faq-sign::after { left: 6px; top: 0; width: 1px; height: 13px; }
.faq-item[open] .faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::before { background: var(--blue-50); }
.faq-a {
  padding: 0 0 22px 34px;
  color: var(--gray-60);
  font-size: 14.5px;
  line-height: 1.78;
  max-width: 74ch;
}
.faq-a p + p { margin-top: 10px; }
.faq-a code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 6px;
  background: var(--gray-10);
  border: 1px solid var(--gray-20);
}

/* ---------- 邮件订阅 ---------- */
.subscribe-card {
  padding: 32px 30px;
  border: 1px solid var(--gray-20);
  border-top: 3px solid var(--blue-50);
  background: var(--white);
}
.subscribe-form { display: grid; gap: 20px; position: relative; }

.field { display: grid; gap: 8px; }
.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-70);
}
.field input[type="email"] {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-30);
  background: var(--white);
  color: var(--gray-90);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input[type="email"]::placeholder { color: var(--gray-40); }
.field input[type="email"]:focus {
  border-color: var(--blue-50);
  box-shadow: 0 0 0 1px var(--blue-50);
}
.field input[type="email"][aria-invalid="true"] {
  border-color: #a1544f;
  box-shadow: 0 0 0 1px #a1544f;
}
.field-hint { font-size: 12.5px; color: var(--gray-50); line-height: 1.7; }
.field-error { font-size: 12.5px; color: #a1544f; line-height: 1.7; }

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-60);
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue-50);
  flex: none;
}
.consent strong { color: var(--gray-90); font-weight: 500; }

/* 蜜罐：真实用户看不到也填不到，机器人会填。
   定位在表单容器内并裁剪到 1×1 px，避免 left:-9999px 把元素甩出视口边界。 */
.hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.subscribe-status {
  padding: 12px 14px;
  border: 1px solid var(--gray-30);
  background: var(--gray-10);
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-70);
}
.subscribe-status[data-state="success"] {
  border-color: var(--blue-40);
  background: var(--blue-10);
  color: var(--blue-70);
}
.subscribe-status[data-state="error"] {
  border-color: #d98a8a;
  background: #fdf0f0;
  color: #a1544f;
}
.subscribe-status[data-state="info"] {
  border-color: #d0b079;
  background: #fdf6e7;
  color: #8a6d3b;
}

.subscribe-form .btn { justify-self: start; }
.btn[data-loading="true"] { opacity: .65; pointer-events: none; }
.btn[data-loading="true"] .btn-arrow { animation: spinArrow .8s linear infinite; }
@keyframes spinArrow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.subscribe-done {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 24px 22px;
  border: 1px solid var(--blue-30);
  background: var(--blue-10);
}
.subscribe-done h4 { font-size: 1.05rem; color: var(--blue-80); }
.subscribe-done p { font-size: 14px; line-height: 1.8; color: var(--gray-70); }

.subscribe-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-20);
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-50);
}

/* ---------- 官方入口 ---------- */
.official-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--gray-20);
  border-top: 3px solid var(--blue-50);
  background: var(--white);
}
.official-cta h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-bottom: 10px; }
.official-cta p { color: var(--gray-60); font-size: 14.5px; max-width: 56ch; }
.official-cta .btn { white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .coverage-card, .coverage-card--wide, .coverage-card--half { grid-column: span 6; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .voices { grid-template-columns: minmax(0, 1fr); }
  .official-cta { grid-template-columns: minmax(0, 1fr); }
  .official-cta .btn { justify-self: start; }
  .verdict-table thead { display: none; }
  .verdict-table tbody th,
  .verdict-table td { display: block; padding: 12px 0; border-bottom: 0; }
  .verdict-table tbody tr {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-20);
  }
  .verdict-table tbody th { padding: 0 0 10px; }
}

@media (max-width: 680px) {
  .nonofficial { grid-template-columns: minmax(0, 1fr); }
  .coverage-card, .coverage-card--wide, .coverage-card--half { grid-column: 1 / -1; }
  .cite-item { grid-template-columns: minmax(0, 1fr); }
  .cite-item p { grid-row: 2; }
  .cite-item .cite-src { grid-row: 3; }
  .cite-item .cite-verdict-slot { grid-column: 1; grid-row: 1; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-a { padding-left: 0; }
}
