/* ==========================================================================
   ReachAgent · 专家 Agent 广场（10 位专家卡片 4 列网格）
   复用 style.css 的设计 token（深色 + emerald 主色）
   ========================================================================== */

html, body { height: 100%; margin: 0; }
body.ra-app-experts {
  display: flex;
  flex-direction: column;
  background: var(--color-bg, #0B1220);
  color: var(--color-text, #F9FAFB);
  font-family: var(--font-sans, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 顶栏 ---------- */
.ra-topbar {
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border, #1F2937);
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.ra-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ra-topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ra-topbar__logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-brand, #10B981), #059669);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  text-decoration: none; flex-shrink: 0;
}
.ra-topbar__brand { display: flex; flex-direction: column; min-width: 0; }
.ra-topbar__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.ra-topbar__sub { font-size: 11px; color: var(--color-text-muted, #9CA3AF); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-topbar__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ra-topbar__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-text-muted, #9CA3AF);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); white-space: nowrap;
}
.ra-topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand, #10B981); box-shadow: 0 0 8px rgba(16,185,129,0.8); }
.ra-topbar__btn {
  font-size: 13px; color: var(--color-text-muted, #9CA3AF);
  background: transparent; border: 1px solid var(--color-border, #1F2937);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.ra-topbar__btn:hover { color: var(--color-text, #F9FAFB); border-color: var(--color-brand, #10B981); background: rgba(16,185,129,0.08); }

/* ---------- 主区 ---------- */
.ra-experts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  width: 100%;
  box-sizing: border-box;
}

/* 头部介绍 */
.ra-experts__head {
  text-align: center;
  margin-bottom: 36px;
  animation: ra-fade-up 0.5s ease-out;
}
.ra-experts__title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #6EE7B7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ra-experts__desc {
  font-size: 14px;
  color: var(--color-text-muted, #9CA3AF);
  line-height: 1.8;
  margin: 0 auto 14px;
  max-width: 720px;
}
.ra-experts__desc strong { color: var(--color-brand-light, #6EE7B7); }
.ra-experts__hint {
  font-size: 12px;
  color: var(--color-text-light, #6B7280);
  margin: 0;
}

/* 卡片网格 */
.ra-experts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

/* 专家卡片 */
.ra-expert-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--color-surface-2, #1F2937);
  border: 1px solid var(--color-border, #1F2937);
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-text, #F9FAFB);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  animation: ra-fade-up 0.5s ease-out backwards;
}
.ra-expert-card:nth-child(1)  { animation-delay: 0.05s; }
.ra-expert-card:nth-child(2)  { animation-delay: 0.10s; }
.ra-expert-card:nth-child(3)  { animation-delay: 0.15s; }
.ra-expert-card:nth-child(4)  { animation-delay: 0.20s; }
.ra-expert-card:nth-child(5)  { animation-delay: 0.25s; }
.ra-expert-card:nth-child(6)  { animation-delay: 0.30s; }
.ra-expert-card:nth-child(7)  { animation-delay: 0.35s; }
.ra-expert-card:nth-child(8)  { animation-delay: 0.40s; }
.ra-expert-card:nth-child(9)  { animation-delay: 0.45s; }
.ra-expert-card:nth-child(10) { animation-delay: 0.50s; }

.ra-expert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.ra-expert-card:hover {
  border-color: var(--color-brand, #10B981);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16,185,129,0.18);
}
.ra-expert-card:hover::before { opacity: 1; }

.ra-expert-card__icon {
  font-size: 28px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 12px;
  flex-shrink: 0;
}
.ra-expert-card__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}
.ra-expert-card__short {
  font-size: 12px;
  color: var(--color-text-muted, #9CA3AF);
  line-height: 1.7;
  flex: 1;
  position: relative;
}
.ra-expert-card__cta {
  font-size: 12px;
  color: var(--color-brand-light, #6EE7B7);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid rgba(16,185,129,0.18);
  position: relative;
  transition: color 0.2s;
}
.ra-expert-card:hover .ra-expert-card__cta { color: var(--color-brand, #10B981); }

/* 底部通用入口链接 */
.ra-experts__footer {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light, #6B7280);
}
.ra-experts__footer a {
  color: var(--color-accent-light, #60A5FA);
  text-decoration: none;
  border-bottom: 1px dashed rgba(96,165,250,0.3);
}
.ra-experts__footer a:hover { color: var(--color-accent-light, #60A5FA); border-bottom-color: var(--color-accent-light, #60A5FA); }

/* ---------- 动画 ---------- */
@keyframes ra-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .ra-experts__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .ra-experts__grid { grid-template-columns: repeat(2, 1fr); }
  .ra-experts__title { font-size: 26px; }
}
@media (max-width: 520px) {
  .ra-experts__grid { grid-template-columns: 1fr; gap: 14px; }
  .ra-experts { padding: 24px 16px 40px; }
  .ra-topbar__sub { display: none; }
  .ra-topbar__btn { padding: 5px 9px; font-size: 12px; }
}