/* ═══ AI Agent 使用情况调查（2026.11.05）═══
   色彩：海洋蓝 #2f7df6 / 深海 #1e63d0 / 青 #1aa8b0 / 白
   视觉对齐巡检助手：亮色卡片、大数字、轻动效；禁止大面积黑色背景 */

/* ── 首页调查 Banner（置于两个二维码上方，与走马灯同宽同圆角）── */
.agent-survey-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(105deg, #2f7df6 0%, #1e63d0 62%, #1750ae 100%);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(47, 125, 246, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.agent-survey-banner:active { transform: scale(0.985); }
.agent-survey-banner::after {
  content: '';
  position: absolute;
  right: -34px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.agent-survey-banner::before {
  content: '';
  position: absolute;
  right: 64px;
  bottom: -58px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.asb-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.asb-brand { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; }
.asb-brand i { font-style: normal; color: #2f7df6; }
.asb-brand b { color: #0f2b52; }
.asb-title { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.asb-sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.asb-cta {
  flex: none;
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .asb-cta { display: none; }
  .asb-title { font-size: 16px; }
}

/* ── 页面骨架 ── */
.ais-page { max-width: 860px; margin: 0 auto; }
.ais-hero {
  position: relative;
  margin-top: 12px;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(140deg, #eaf3ff 0%, #f6fbff 70%);
  border: 1px solid #d5e6fb;
  overflow: hidden;
}
.ais-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 246, 0.14), transparent 68%);
}
.ais-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ais-brand { display: inline-flex; align-items: center; gap: 3px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e2edfb; font-size: 13px; font-weight: 800; letter-spacing: 0.4px; }
.ais-brand i { font-style: normal; color: #2f7df6; }
.ais-brand b { color: #0f2b52; }
.ais-brand-foot { border: 0; background: transparent; padding: 0; }
.ais-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #1aa8b0; font-weight: 600; }
.ais-live i { width: 8px; height: 8px; border-radius: 50%; background: #1aa8b0; animation: ais-pulse 1.6s ease infinite; }
@keyframes ais-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.ais-hero h1 { margin: 14px 0 10px; font-size: 21px; line-height: 1.42; color: #123252; }
.ais-intro { margin: 0; font-size: 13px; line-height: 1.8; color: #54708c; }
.ais-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ais-meta span { padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid #e2edfb; font-size: 12px; color: #33629a; }

/* ── 问卷 ── */
.ais-card {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6eef8;
  box-shadow: 0 4px 16px rgba(18, 60, 110, 0.05);
}
.ais-group + .ais-group { margin-top: 20px; }
.ais-group-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ais-group-h h3 { margin: 0; font-size: 15px; color: #123252; }
.ais-group-h span { font-size: 12px; color: #8ba3bd; }
.ais-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 560px) { .ais-opts { grid-template-columns: 1fr; } }
.ais-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1.5px solid #e2ecf7;
  background: #fbfdff;
  font-size: 14px;
  color: #22415f;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.ais-opt:active { transform: scale(0.98); }
.ais-opt-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid #c3d5ea;
  background: #fff;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ais-opt-check svg { opacity: 0; transform: scale(0.5); transition: all 0.15s ease; }
.ais-opt.is-on { border-color: #2f7df6; background: #eef5ff; }
.ais-opt.is-on .ais-opt-check { background: #2f7df6; border-color: #2f7df6; }
.ais-opt.is-on .ais-opt-check svg { opacity: 1; transform: scale(1); }
.ais-opt-name { flex: 1; min-width: 0; line-height: 1.4; }
.ais-opt-tag { flex: none; font-size: 11px; color: #2f7df6; background: #e8f1ff; border-radius: 999px; padding: 2px 8px; }
.ais-tag-mute { color: #8ba3bd; background: #f1f5fa; }
.ais-other { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ais-other input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #2f7df6;
  background: #fff;
  font-size: 14px;
  color: #123252;
  outline: none;
}
.ais-other span { flex: none; font-size: 12px; color: #8ba3bd; }
.ais-vote-ops { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ais-pickn { font-size: 13px; color: #54708c; }
.ais-pickn b { color: #2f7df6; font-size: 16px; }

/* ── 按钮 ── */
.ais-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.ais-btn:disabled { opacity: 0.6; cursor: default; }
.ais-btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.ais-btn-primary { background: linear-gradient(120deg, #2f7df6, #1e63d0); color: #fff; box-shadow: 0 6px 16px rgba(47, 125, 246, 0.3); }
.ais-btn-primary:active { transform: scale(0.97); }
.ais-btn-ghost { background: #fff; color: #2f7df6; border: 1.5px solid #bcd6fa; height: 44px; padding: 0 16px; }

/* ── 结果 ── */
.ais-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .ais-kpis { grid-template-columns: 1fr 1fr; } }
.ais-kpi {
  padding: 16px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eef8;
  box-shadow: 0 4px 14px rgba(18, 60, 110, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 92px;
}
.ais-kpi b { font-size: 30px; line-height: 1.1; color: #2f7df6; font-variant-numeric: tabular-nums; }
.ais-kpi span { font-size: 12px; color: #54708c; }
.ais-kpi-top em { font-style: normal; font-size: 16px; font-weight: 700; color: #ff9f43; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ais-card-h { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ais-card-h h3 { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 16px; color: #123252; }
.ais-card-h h3 svg { color: #2f7df6; }
.ais-card-sub { font-size: 12px; color: #8ba3bd; }
.ais-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ais-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #dce8f6;
  background: #fff;
  font-size: 13px;
  color: #54708c;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ais-chip.is-on { background: #2f7df6; border-color: #2f7df6; color: #fff; font-weight: 600; }

.ais-ranks { display: flex; flex-direction: column; gap: 7px; }
.ais-rank {
  display: grid;
  grid-template-columns: 26px minmax(88px, 130px) 1fr 52px 52px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #fbfdff;
  border: 1px solid #eef4fb;
}
.ais-rank.is-1 { background: #eef5ff; border-color: #bcd6fa; }
.ais-rank.is-2 { background: #fff7ec; border-color: #ffd9a8; }
.ais-rank.is-3 { background: #ecfafb; border-color: #b8e8eb; }
.ais-rank.is-none { opacity: 0.72; }
.ais-rank-no {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  background: #edf2f9; color: #54708c; font-size: 13px; font-weight: 700;
}
.ais-rank.is-1 .ais-rank-no { background: #2f7df6; color: #fff; }
.ais-rank.is-2 .ais-rank-no { background: #ff9f43; color: #fff; }
.ais-rank.is-3 .ais-rank-no { background: #1aa8b0; color: #fff; }
.ais-rank-name { font-size: 13px; font-weight: 600; color: #22415f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ais-rank-bar { height: 14px; border-radius: 7px; background: #eef3fa; overflow: hidden; }
.ais-rank-bar i {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #2f7df6, #1aa8b0);
  animation: ais-grow 0.8s cubic-bezier(0.22, 0.8, 0.32, 1);
  transition: width 0.6s ease;
}
.ais-rank.is-1 .ais-rank-bar i { background: linear-gradient(90deg, #2f7df6, #5aa4ff); }
.ais-rank.is-2 .ais-rank-bar i { background: linear-gradient(90deg, #ff9f43, #ffc37a); }
.ais-rank.is-3 .ais-rank-bar i { background: linear-gradient(90deg, #1aa8b0, #56cdd2); }
@keyframes ais-grow { from { width: 0 !important; } }
.ais-rank-n { font-size: 12px; color: #54708c; text-align: right; white-space: nowrap; }
.ais-rank-pct { font-size: 14px; font-weight: 800; color: #2f7df6; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 趋势图 */
.ais-trend svg { width: 100%; height: auto; display: block; }
.ais-grid { stroke: #e8f0fa; stroke-width: 1; }
.ais-area { fill: rgba(47, 125, 246, 0.12); }
.ais-line { fill: none; stroke: #2f7df6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ais-dot { fill: #2f7df6; }
.ais-dot.is-zero { fill: #c3d5ea; }
.ais-dot.is-last { fill: #fff; stroke: #2f7df6; stroke-width: 3; }
.ais-tl { font-size: 11px; fill: #8ba3bd; }
.ais-tv { font-size: 13px; font-weight: 700; fill: #2f7df6; }

.ais-ops { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ais-updated { margin: 12px 0 4px; text-align: center; font-size: 12px; color: #8ba3bd; }

/* 空态 / 加载 */
.ais-empty { margin-top: 14px; padding: 34px 16px; border-radius: 16px; background: #fff; border: 1px dashed #cfe0f4; text-align: center; color: #54708c; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ais-loading-bar { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #dce8f6; border-top-color: #2f7df6; animation: ais-spin 0.9s linear infinite; }
@keyframes ais-spin { to { transform: rotate(360deg); } }

.ais-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 26px 0 10px;
  padding: 18px 14px;
  border-radius: 14px;
  background: #f6faff;
  border: 1px solid #e2edfb;
  text-align: center;
  font-size: 12px;
  color: #54708c;
}

@media (max-width: 560px) {
  .ais-hero h1 { font-size: 18px; }
  .ais-kpi b { font-size: 26px; }
  .ais-rank { grid-template-columns: 24px minmax(76px, 100px) 1fr 46px 46px; gap: 7px; padding: 8px; }
  .ais-btn-lg { width: 100%; }
}
