.advisors-wrapper {
  padding-bottom: 3rem;
}

.advisors-search-wrapper {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.advisors-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.advisors-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card, #1e293b);
  border: 2px solid var(--border-color, #334155);
  border-radius: var(--radius-xl, 1rem);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.16));
  transition: all var(--transition-normal, 200ms ease);
}

.advisors-search-box:focus-within {
  border-color: var(--primary-color, #6366f1);
  box-shadow: var(--shadow-xl, 0 12px 36px rgba(0,0,0,0.2)), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.advisors-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary, #f8fafc);
  outline: none;
}

.advisors-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
}

.advisors-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-1, linear-gradient(135deg,#6366f1,#8b5cf6));
  border: none;
  border-radius: var(--radius-lg, 0.75rem);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast, 120ms ease), box-shadow var(--transition-fast, 120ms ease);
}

.advisors-search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow, 0 6px 20px rgba(99,102,241,0.35));
}

.advisors-search-btn svg {
  width: 20px;
  height: 20px;
}

.advisors-help-text {
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}

.advisors-help-text a {
  color: var(--primary-color, #6366f1);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color var(--transition-fast, 120ms ease);
}

.advisors-help-text a:hover {
  color: var(--primary-hover, #7c3aed);
  text-decoration: underline;
}

.advisors-wrapper .row-tight {
  gap: 1rem;
}

.advisors-wrapper .text-center.px-3,
.advisors-wrapper .text-center.pl-3,
.advisors-wrapper .text-center {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: var(--radius-xl, 1rem);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.08));
  padding: 1rem;
  height: 100%;
}

.advisors-wrapper .text-center a {
  text-decoration: none;
  color: inherit;
}

.advisors-wrapper .text-center b,
.advisors-wrapper .text-lg {
  color: var(--text-primary, #f8fafc);
}

.advisors-wrapper .text-muted,
.advisors-wrapper .small,
.advisors-wrapper .text-overflow {
  color: var(--text-secondary, #cbd5e1);
}

.advisors-wrapper .btn,
.advisors-wrapper .btn-xs {
  border-radius: var(--radius-md, 0.5rem);
}

.advisors-wrapper .rfj-load-more-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.advisors-wrapper .rfj-loading-spinner .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #334155);
  border-top-color: var(--primary-color, #6366f1);
  border-radius: 50%;
  animation: advisors-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes advisors-spin {
  to { transform: rotate(360deg); }
}

.advisors-wrapper form.form-inline,
.advisors-wrapper #fr {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.advisors-wrapper input[type="search"] {
  background: var(--bg-secondary, #0f172a);
  color: var(--text-primary, #f8fafc);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.6rem 0.85rem;
}

.advisors-wrapper .btn-primary,
.advisors-wrapper input[type="submit"].btn,
.advisors-wrapper input[type="submit"] {
  background: var(--gradient-1, linear-gradient(135deg,#6366f1,#8b5cf6));
  border: none;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.2));
}

.advisors-wrapper .rfj-loading-spinner div {
  color: var(--text-secondary, #cbd5e1);
}

.advisors-wrapper .p2 {
  margin: 0.25rem 0;
}

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.advisor-grid-item {
  height: 100%;
}

.advisor-grid-item > .text-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advisor-grid-item .pb-4 {
  margin-top: auto;
}

/* New advisor card (rfj_display_guwen_card_new) */
.advisor-card {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.advisor-card__avatar {
  align-self: center;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-secondary, #0f172a);
  padding: 4px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.08));
  display: inline-flex;
}

.advisor-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
}

.advisor-card__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.advisor-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary, #f8fafc);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.advisor-card__name:hover {
  color: var(--primary-color, #6366f1);
}

.advisor-card__role {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-card__company {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-card__company-link {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
}

.advisor-card__company-link:hover {
  color: var(--primary-color, #6366f1);
}

.advisor-card__actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.advisor-card__actions .btn,
.advisor-card__actions .btn-xs {
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.08));
}

/* ===== 精选顾问横滚板块 ===== */
.advisors-featured {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.advisors-featured__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.advisors-featured__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  margin: 0 0 0.375rem;
}

.advisors-featured__title svg {
  color: #f59e0b;
}

.advisors-featured__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.advisors-featured__scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advisors-featured__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.advisors-featured__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.advisors-featured__item {
  flex: 0 0 calc(25% - 0.94rem);
  min-width: 0;
  height: 100%;
}

.advisors-featured__item .advisor-card {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: var(--radius-xl, 1rem);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.08));
}

.advisors-featured__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: 50%;
  color: var(--text-secondary, #cbd5e1);
  cursor: pointer;
  transition: all var(--transition-fast, 120ms ease);
  z-index: 2;
}

.advisors-featured__arrow:hover {
  background: var(--primary-color, #6366f1);
  border-color: var(--primary-color, #6366f1);
  color: #fff;
  box-shadow: var(--shadow-glow, 0 4px 16px rgba(99,102,241,0.35));
}

.advisors-featured__arrow:active {
  transform: scale(0.95);
}

.advisors-featured__arrow--left {
  order: -1;
}

.advisors-featured__arrow--right {
  order: 1;
}

/* 左右渐隐遮罩 */
.advisors-featured__viewport::before,
.advisors-featured__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 1;
  pointer-events: none;
}

.advisors-featured__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-body, #020617), transparent);
}

.advisors-featured__viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-body, #020617), transparent);
}

@media (max-width: 1024px) {
  .advisors-featured__item {
    flex: 0 0 calc(33.333% - 0.83rem);
  }
}

@media (max-width: 768px) {
  .advisors-featured {
    padding: 1.5rem 1rem;
  }

  .advisors-featured__title {
    font-size: 1.2rem;
  }

  .advisors-featured__item {
    flex: 0 0 calc(50% - 0.625rem);
  }

  .advisors-featured__arrow {
    width: 34px;
    height: 34px;
  }

  .advisors-featured__arrow--left {
    order: 1;
    position: absolute;
    left: 4px;
    top: calc(50% - 17px);
  }

  .advisors-featured__arrow--right {
    order: 2;
    position: absolute;
    right: 4px;
    top: calc(50% - 17px);
  }

  .advisors-featured__viewport::before,
  .advisors-featured__viewport::after {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .advisors-featured {
    padding: 1rem 0.5rem;
  }

  .advisors-featured__header {
    margin-bottom: 1rem;
  }

  .advisors-featured__title {
    font-size: 1.1rem;
  }

  .advisors-featured__subtitle {
    font-size: 0.8rem;
  }

  .advisors-featured__item {
    flex: 0 0 calc(100% - 0.5rem);
    min-width: 0;
  }

  .advisors-featured__arrow {
    width: 28px;
    height: 28px;
  }

  .advisors-featured__arrow svg {
    width: 16px;
    height: 16px;
  }

  .advisors-featured__arrow--left {
    left: 2px;
    top: calc(50% - 14px);
  }

  .advisors-featured__arrow--right {
    right: 2px;
    top: calc(50% - 14px);
  }

  .advisors-featured__viewport::before,
  .advisors-featured__viewport::after {
    width: 16px;
  }
}
