/* 系统对接 · 软件选型 / 扫码 / API */
.int-page .content { max-width: 1200px; }

.int-arch {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.int-arch h2 { font-size: 18px; margin-bottom: 8px; }
.int-arch p { font-size: 13px; color: #94a3b8; line-height: 1.7; margin-bottom: 12px; }
.int-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.int-flow span {
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}
.int-flow .arrow { background: none; border: none; color: #64748b; padding: 0; }

.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.soft-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.soft-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.soft-card.recommend { border-color: #4f6ef7; }
.soft-card.recommend::after {
  content: '推荐';
  position: absolute;
  top: 12px; right: 12px;
  background: #4f6ef7;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}
.soft-card.active { border-color: #52c41a; background: #f6ffed; }
.soft-card .vendor { font-size: 11px; color: #94a3b8; }
.soft-card h3 { font-size: 16px; margin: 4px 0 8px; color: #0f172a; }
.soft-card .price { font-size: 20px; font-weight: 700; color: #4f6ef7; margin-bottom: 4px; }
.soft-card .price-note { font-size: 11px; color: #64748b; margin-bottom: 10px; }
.soft-card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.soft-card .tag { font-size: 10px; padding: 2px 8px; background: #f1f5f9; border-radius: 4px; color: #475569; }
.soft-card .fit { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 12px; }
.soft-card .actions { display: flex; gap: 8px; }
.soft-card .actions a, .soft-card .actions button { flex: 1; text-align: center; font-size: 12px; padding: 8px; border-radius: 6px; text-decoration: none; cursor: pointer; border: none; }
.soft-card .btn-doc { background: #f1f5f9; color: #475569; }
.soft-card .btn-connect { background: #4f6ef7; color: #fff; }
.supplier-theme .soft-card .btn-connect { background: var(--supplier-primary); }
.supplier-theme .soft-card .price { color: var(--supplier-primary); }

.conn-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.conn-item {
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.conn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.conn-dot.on { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.conn-dot.off { background: #94a3b8; }
.conn-item strong { display: block; font-size: 13px; }
.conn-item span { font-size: 11px; color: #64748b; }

.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hw-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.hw-card .model { font-weight: 600; font-size: 14px; }
.hw-card .meta { font-size: 12px; color: #64748b; margin: 6px 0; }
.hw-card .price-tag { color: #4f6ef7; font-weight: 700; }

/* 扫码模拟界面 */
.scan-page {
  max-width: 480px;
  margin: 0 auto;
}
.scan-viewfinder {
  background: #0f172a;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.scan-viewfinder::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(0,229,255,0.5);
  border-radius: 8px;
  pointer-events: none;
}
.scan-line-anim {
  position: absolute;
  left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  animation: scanMove 2s linear infinite;
}
@keyframes scanMove {
  0% { top: 24px; }
  100% { top: calc(100% - 24px); }
}
.scan-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.scan-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #4f6ef7;
  border-radius: 8px;
  font-size: 16px;
  font-family: monospace;
}
.scan-input-wrap button {
  padding: 12px 20px;
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.scan-result {
  padding: 16px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.scan-result.show { display: block; animation: pageIn 0.3s ease; }
.scan-log { max-height: 200px; overflow-y: auto; font-size: 12px; }
.scan-log .log-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.api-table code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #4f6ef7;
}
