/* 文章详情推荐咨询师：对齐 /zj/ 列表卡片，限定在 .article-advisor-block 避免污染正文 */
.article-advisor-block {
  --brand: #ff526f;
  --coral: #ef7474;
  --green: #35c529;
  --muted: #767982;
  --panel: #ffffff;
}
.article-advisor-block .advisor-list { display: grid; gap: 12px; margin: 12px 0; }
.article-advisor-block .advisor-card {
  overflow: hidden;
  border: 1px solid #e1e1f2;
  border-radius: 19px;
  background: var(--panel);
  box-shadow: 0 6px 20px rgba(30, 36, 58, .055);
  cursor: pointer;
}
.article-advisor-block .advisor-main {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 14px 16px 12px;
}
.article-advisor-block .avatar {
  position: relative;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff7f6;
  box-shadow: 0 0 0 1px #dfe1f2, 0 5px 12px rgba(47, 54, 86, .15);
}
.article-advisor-block .avatar.has-photo {
  border: 0;
  background: #fff;
  box-shadow: none;
}
.article-advisor-block .avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.article-advisor-block .advisor-copy { position: relative; min-width: 0; padding-left: 10px; }
.article-advisor-block .advisor-copy::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: #ee6e73;
}
.article-advisor-block .advisor-name-row { display: flex; align-items: center; gap: 7px; }
.article-advisor-block .advisor-name { margin: 0; font-size: 17px; }
.article-advisor-block .certified {
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #7784e9;
  font-size: 10px;
}
.article-advisor-block .advisor-role { margin: 5px 0 8px; color: #555963; font-size: 12px; }
.article-advisor-block .advisor-field {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.article-advisor-block .field-chip {
  display: inline-block;
  max-width: calc(100% - 58px);
  margin: 0;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: #ef666c;
  background: #fff0f0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-advisor-block .advisor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.article-advisor-block .card-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.article-advisor-block .card-button.certificate { background: var(--coral); }
.article-advisor-block .card-button.case { background: var(--green); }
.article-advisor-block .card-button:active { filter: brightness(.94); }
.article-advisor-block .card-button[disabled] { opacity: .45; cursor: default; }

.article-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 22, 28, .42);
}
.article-bottom-sheet {
  position: fixed;
  right: 0;
  bottom: 40px;
  left: 0;
  z-index: 31;
  width: min(100%, 430px);
  max-height: min(85vh, calc(100vh - 24px));
  margin: 0 auto;
  padding: 14px 20px max(22px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 46px rgba(26, 30, 42, .2);
}
.article-bottom-sheet .sheet-cert-img { margin: 12px 0; text-align: center; }
.article-bottom-sheet .sheet-cert-img img {
  display: block;
  max-width: 100%;
  max-height: 42vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  cursor: zoom-in;
}
.article-bottom-sheet .sheet-cert-tip {
  margin: 6px 0 0;
  color: #92949b;
  font-size: 11px;
  text-align: center;
}
.article-bottom-sheet .sheet-handle { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: #d9dadd; }
.article-bottom-sheet .sheet-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #777;
  background: #f2f2f4;
  font-size: 22px;
}
.article-bottom-sheet .sheet-kicker { color: #ff526f; font-size: 12px; font-weight: 700; }
.article-bottom-sheet h2 { margin: 6px 0 10px; font-size: 21px; }
.article-bottom-sheet .sheet-primary {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #ff526f;
  font-weight: 700;
}

.cert-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(12, 14, 20, .94);
}
.cert-viewer[hidden] { display: none !important; }
.cert-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
}
.cert-viewer-actions { display: flex; gap: 8px; }
.cert-viewer-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 600;
}
.cert-viewer-stage {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
.cert-viewer-canvas {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: max-content;
  min-width: 100%;
  min-height: 100%;
  padding: 8px 12px 16px;
}
.cert-viewer-rotator { position: relative; display: block; flex: 0 0 auto; }
.cert-viewer-stage img {
  display: block;
  max-width: min(100%, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  cursor: zoom-in;
}
.cert-viewer-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px max(14px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  text-align: center;
}
.article-advisor-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  z-index: 50;
  max-width: min(330px, calc(100% - 40px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 34, 42, .88);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
}
.article-advisor-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
