/* 在线试用：输入态嵌文档壳（docs.css 的 .docs-main 内），运行态全宽。 */

.try-main { gap: 16px; }
/* 输入态各区块显式垂直节奏（面包屑/标题/端点条/面板/底部提示） */
#view-input { display: flex; flex-direction: column; gap: 16px; }
.try .crumb a, .try-main .crumb a { color: #71809A; }
.try-main .crumb a:hover { color: var(--p-link); }

/* ── 输入态 ── */
.try-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.try-title-copy { display: flex; flex-direction: column; gap: 5px; }
.try-title-copy h1 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--p-ink); }
.try-title-copy p { font-size: 14px; color: #66758C; }
.endpoint-hint { font-size: 14px; color: #7A8AA0; font-family: var(--font-body); }

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #DCE5F0;
  border-radius: 12px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.panel-head h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #17233A; }
.panel-hint { font-size: 13px; color: #8A98AA; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #F1F5FA;
  border-radius: 10px;
  align-self: flex-start;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 180px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  color: #71809A;
  transition: background var(--dur), color var(--dur);
}
.tab.is-active { background: #fff; color: var(--p-link); font-weight: 600; box-shadow: 0 2px 5px rgba(23, 35, 58, 0.08); }
.tab:disabled { cursor: not-allowed; opacity: 0.75; }
.tab-soon { font-size: 11px; color: #9AA7BA; }

.input-grid { display: grid; grid-template-columns: 1fr 298px; gap: 20px; }
.source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 234px;
  padding: 24px;
  background: #F7FAFF;
  border: 1px solid #AFCBF2;
  border-radius: 12px;
  text-align: center;
}
.source-ic {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #E6F0FF;
  border-radius: 14px;
  color: var(--p-link);
}
.source-title { font-size: 15px; font-weight: 600; color: #1D416F; }
.source-sub { font-size: 12px; color: #71839B; }
.stream-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #AFCBF2;
  border-radius: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  color: #203454;
  text-align: left;
}
.stream-input::placeholder { color: #9AA7BA; }
.stream-input:focus { outline: 2px solid var(--p-link); outline-offset: 1px; border-color: var(--p-link); }

/* 参数列直接落在面板白底上（设计稿形态），字段自身是白底描边盒 */
.params { display: flex; flex-direction: column; gap: 12px; }
.params .field { min-height: 38px; }
.field select {
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--font-data);
  font-size: 14px;
  color: #203454;
  text-align: right;
  max-width: 180px;
}
.field .v a { font-weight: 500; }
/* API Key 掩码：固定形态 op_test_•••×15_XXXX，一行完整放下，不换行不截断 */
.field .v.v-key { white-space: nowrap; word-break: normal; font-size: 12px; }
.start-btn { height: 40px; font-size: 14px; font-weight: 700; margin-top: auto; }

.hint-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #71809A; }
.hint-row .ic { color: #19A463; }

.banner {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  background: #FEF2F2;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--danger);
}
.banner-warn { background: #FFF8E8; border-color: #F0C36A; color: #8A5200; }
.banner-info { background: #EEF6FF; border-color: #C7DDF8; color: #4A6588; }

/* ── 运行态容器（全宽） ── */
.try-run {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1320px) {
  .try-run { padding: 20px 20px 56px; }
  .input-grid { grid-template-columns: 1fr 280px; }
}

/* ── 图片上传面板（画板 yPidc / PYfET） ── */
.dropzone {
  min-height: 234px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #F7FAFF;
  border: 1px dashed #AFCBF2;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--p-link); background: #EFF5FF; }
.dropzone:focus-visible { outline: 2px solid var(--p-link); outline-offset: 2px; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dz-ic {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #E6F0FF;
  border-radius: 14px;
  color: var(--p-link);
}
.dz-title { font-size: 15px; font-weight: 600; color: #1D416F; }
.dz-hint { font-size: 12px; color: #71839B; }
.dz-btn { height: 34px; padding: 0 18px; font-size: 13px; margin-top: 4px; pointer-events: none; }

.dz-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-height: 300px; overflow: auto; }
.dz-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #DCE5F0;
  border-radius: 10px;
}
.dz-file img { flex: none; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #EEF2F8; }
.dz-file-ic { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #EEF2F8; color: #71809A; }
.dz-file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-file-name { font-size: 13px; font-weight: 500; color: #24344D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-file-size { font-size: 11px; color: #8A98AA; font-family: var(--font-data); }
.dz-file-x { flex: none; display: flex; padding: 4px; border-radius: 6px; color: #8A98AA; }
.dz-file-x:hover { background: #F1F5FA; color: var(--danger); }
.dz-more { font-size: 12px; color: #71809A; text-align: center; }

.pane-note { font-size: 12px; color: #8A98AA; }

/* ── 图片结果态（画板 zpbsw）：页面级壳；元信息/叠框/列表样式在 /shared/imgresult.css ── */
.img-result {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#imgResultHost { display: flex; flex-direction: column; gap: 16px; }

.ir-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: #71809A; }

@media (max-width: 1320px) {
  .img-result { padding: 20px 20px 56px; }
}
