/* 飞书 Aily Web SDK · 梦工场定位智体 */
.strategy-agent-launch-button {
  gap: 8px;
  border-color: rgba(212, 175, 55, .58) !important;
}

.strategy-agent-launch-button span { transition: transform .2s ease; }
.strategy-agent-launch-button:hover span { transform: translateX(4px); }

.strategy-agent-websdk-view {
  min-height: calc(100svh - 56px);
  color: #e7eef6;
  background:
    radial-gradient(960px 560px at 12% 12%, rgba(26, 134, 239, .13), transparent 65%),
    radial-gradient(820px 520px at 92% 9%, rgba(212, 175, 55, .12), transparent 62%),
    linear-gradient(180deg, #071b30, #0d2945 62%, #071a2d);
}

.strategy-agent-websdk-stage {
  min-height: calc(100svh - 56px);
  padding: 30px 0 54px;
}

.strategy-agent-websdk-shell {
  width: min(1760px, calc(100% - 80px));
  margin: 0 auto;
}

.strategy-agent-websdk-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #8298ae;
  font-size: .82rem;
}

.strategy-agent-websdk-breadcrumb button {
  padding: 0;
  border: 0;
  color: #d4af37;
  background: none;
  cursor: pointer;
  font: inherit;
}

.strategy-agent-websdk-breadcrumb button:hover { color: #f0ca4c; }
.strategy-agent-websdk-breadcrumb strong { color: #b6c5d3; font-weight: 600; }

.strategy-agent-websdk-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.strategy-agent-websdk-heading > div:first-child { max-width: 980px; }
.strategy-agent-websdk-heading p { margin: 0; color: #a9bac9; line-height: 1.7; }
.strategy-agent-websdk-heading > div:first-child > p:first-child {
  margin-bottom: 10px;
  color: #d4af37;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.strategy-agent-websdk-heading h1 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2rem, 3vw, 3.75rem);
  line-height: 1.2;
}

.strategy-agent-websdk-heading h1 span { color: #d4af37; }

.strategy-agent-websdk-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
}

.strategy-agent-websdk-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #b8c8d6;
  background: rgba(255, 255, 255, .05);
  font-size: .74rem;
}

.strategy-agent-websdk-meta b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39c48d;
  box-shadow: 0 0 0 4px rgba(57, 196, 141, .12);
}

.strategy-agent-websdk-layout {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .28);
}

.strategy-agent-websdk-guide {
  display: flex;
  padding: 34px;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(circle at 22% 5%, rgba(212, 175, 55, .18), transparent 34%),
    rgba(4, 21, 38, .72);
}

.strategy-agent-websdk-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 15px;
  color: #0a2036;
  background: #d4af37;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(212, 175, 55, .18);
}

.strategy-agent-websdk-guide h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.5;
}

.strategy-agent-websdk-guide > p {
  margin: 0;
  color: #9fb1c1;
  font-size: .88rem;
  line-height: 1.8;
}

.strategy-agent-websdk-prompts {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.strategy-agent-websdk-prompts span {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  color: #d4dfe9;
  background: rgba(255, 255, 255, .045);
  font-size: .8rem;
  line-height: 1.6;
}

.strategy-agent-websdk-access-note {
  margin-top: auto;
  margin-bottom: 22px;
  padding: 16px;
  border-left: 3px solid #d4af37;
  border-radius: 0 10px 10px 0;
  background: rgba(212, 175, 55, .08);
}

.strategy-agent-websdk-access-note strong { color: #d4af37; font-size: .82rem; }
.strategy-agent-websdk-access-note p {
  margin: 7px 0 0;
  color: #9fb1c1;
  font-size: .76rem;
  line-height: 1.65;
}

.strategy-agent-websdk-guide > .btn { justify-content: center; }

.strategy-agent-websdk-panel {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: 52px minmax(560px, 1fr) auto;
  background: #f7f9fb;
}

.strategy-agent-websdk-panel > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #e3e9ef;
  color: #24384b;
  background: #fff;
}

.strategy-agent-websdk-panel > header > div { display: flex; gap: 6px; }
.strategy-agent-websdk-panel > header > div span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9e1e8;
}

.strategy-agent-websdk-panel > header > div span:first-child { background: #d4af37; }
.strategy-agent-websdk-panel > header strong { font-size: .86rem; }
.strategy-agent-websdk-panel > header em {
  color: #6f8396;
  font-size: .75rem;
  font-style: normal;
}

.strategy-agent-websdk-panel > header em.is-ready { color: #19875d; }
.strategy-agent-websdk-panel > header em.is-error { color: #b34141; }

.strategy-agent-websdk-container {
  position: relative;
  min-width: 0;
  min-height: 620px;
  background: #fff;
}

.strategy-agent-websdk-container > iframe {
  display: block;
  min-height: 620px;
  background: #fff;
}

.strategy-agent-websdk-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #49647b;
  background: linear-gradient(180deg, #fff, #f6f9fc);
  text-align: center;
}

.strategy-agent-websdk-loading[hidden] { display: none; }
.strategy-agent-websdk-loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 3px solid #dce6ee;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: strategy-agent-spin .9s linear infinite;
}

.strategy-agent-websdk-loading strong { font-size: .95rem; }
.strategy-agent-websdk-loading small { margin-top: 7px; color: #8496a6; }

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

.strategy-agent-websdk-error {
  position: absolute;
  z-index: 4;
  inset: 52px 0 0;
  padding: 38px;
  color: #46302d;
  background: rgba(255, 249, 247, .97);
  text-align: center;
}

.strategy-agent-websdk-error[hidden] { display: none; }
.strategy-agent-websdk-error strong { display: block; margin-top: 120px; font-size: 1.15rem; }
.strategy-agent-websdk-error p { max-width: 560px; margin: 12px auto 22px; color: #7b5b57; line-height: 1.7; }

.strategy-agent-websdk-diagnostics {
  position: relative;
  z-index: 5;
  border-top: 1px solid #e4eaf0;
  color: #66798a;
  background: #f8fafc;
  font-size: .75rem;
}

.strategy-agent-websdk-diagnostics summary {
  padding: 11px 18px;
  cursor: pointer;
  user-select: none;
}

.strategy-agent-websdk-diagnostics summary code { color: #2e5e86; }
.strategy-agent-websdk-diagnostics > div { padding: 0 18px 16px; }
.strategy-agent-websdk-diagnostics ol { margin: 0 0 10px; padding-left: 22px; line-height: 1.75; }
.strategy-agent-websdk-diagnostics p { margin: 0 0 10px; }
.strategy-agent-websdk-download {
  padding: 7px 10px;
  border: 1px solid #cdd8e1;
  border-radius: 7px;
  color: #2e5e86;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .strategy-agent-websdk-shell { width: min(100% - 40px, 1760px); }
  .strategy-agent-websdk-heading { grid-template-columns: 1fr; }
  .strategy-agent-websdk-meta { justify-content: flex-start; max-width: none; }
  .strategy-agent-websdk-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .strategy-agent-websdk-guide { padding: 28px 24px; }
}

@media (max-width: 820px) {
  .strategy-agent-websdk-stage { padding-top: 22px; }
  .strategy-agent-websdk-shell { width: calc(100% - 24px); }
  .strategy-agent-websdk-heading { gap: 18px; }
  .strategy-agent-websdk-heading h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .strategy-agent-websdk-layout { display: block; border-radius: 17px; }
  .strategy-agent-websdk-guide { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .strategy-agent-websdk-guide > .btn { width: 100%; }
  .strategy-agent-websdk-panel { min-height: 720px; }
  .strategy-agent-websdk-container,
  .strategy-agent-websdk-container > iframe { min-height: 650px; }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-agent-websdk-loading span { animation-duration: 1.8s; }
  .strategy-agent-launch-button span { transition: none; }
}
