/* 雨燕生图公开落地页 — 布局学 Picora，强调色用品牌绿 #24be48 */
.yyb-ai-landing-page {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 50% -80px, rgba(36, 190, 72, 0.12), transparent 70%),
    linear-gradient(180deg, #f7fcf8 0%, #f5f7f6 42%, #ffffff 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #1a1a1a;
}

.yyb-ai-landing {
  max-width: 960px;
  margin: 0 auto;
  /* 顶栏下方多留约 30px 呼吸空间 */
  padding: 118px 24px 64px;
  box-sizing: border-box;
}

.yyb-ai-hero {
  text-align: center;
  margin-bottom: 28px;
}

.yyb-ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.yyb-ai-brand-logo {
  width: 40px;
  height: 40px;
  display: block;
}

.yyb-ai-brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #14301a;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.yyb-ai-brand-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7a70;
  line-height: 1.6;
}

/* 缩略图行 + 白卡；缩略图在白卡外上方 */
.yyb-ai-composer-stack {
  margin-bottom: 36px;
}

/* Agent 输入壳（白卡） */
.yyb-ai-shell,
.yyb-ai-composer {
  position: relative;
  background: #fff;
  border: 1px solid rgba(36, 190, 72, 0.14);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(20, 48, 26, 0.04),
    0 18px 40px rgba(36, 190, 72, 0.08);
  padding: 16px 16px 12px;
  margin-bottom: 0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.yyb-ai-shell-beta {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: inline-block;
  padding: 1px 8px;
  height: 18px;
  line-height: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a9a3c;
  background: #e8f9ee;
  border: 1px solid #b7ebc8;
  border-radius: 999px;
  pointer-events: none;
  text-transform: lowercase;
}

.yyb-ai-mode-hint {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  user-select: none;
}

.yyb-ai-shell:focus-within,
.yyb-ai-composer:focus-within {
  border-color: rgba(36, 190, 72, 0.35);
  box-shadow:
    0 1px 2px rgba(20, 48, 26, 0.04),
    0 20px 48px rgba(36, 190, 72, 0.14);
}

.yyb-ai-landing-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  /* 在白卡外上方；padding 保证 × 删除钮完整可见 */
  padding: 8px 10px 4px 4px;
  margin: 0 0 5px;
  max-height: 120px;
  overflow: visible;
  align-content: flex-start;
}

.yyb-ai-landing-thumbs[hidden] {
  display: none !important;
}

.yyb-ai-landing-thumbs .yyb-ai-thumb-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}

.yyb-ai-landing-thumbs .yyb-ai-thumb-wrap img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e6ece8;
  background: #f5f5f5;
}

.yyb-ai-landing-thumbs .yyb-ai-thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}

.yyb-ai-landing-thumbs .yyb-ai-thumb-x:hover {
  background: #cf1322;
}

.yyb-ai-shell-main {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-height: 108px;
}

.yyb-ai-upload-slot {
  flex: 0 0 72px;
  width: 72px;
  border: 1px dashed #cfd8d2;
  border-radius: 12px;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8a968e;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.yyb-ai-upload-slot:hover {
  border-color: #24be48;
  color: #24be48;
}

.yyb-ai-upload-slot input {
  display: none;
}

.yyb-ai-upload-plus {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: #24be48;
}

.yyb-ai-upload-label {
  font-size: 11px;
}

.yyb-ai-prompt {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.55;
  color: #222;
  background: transparent;
  font-family: inherit;
  padding: 8px 4px;
  min-height: 96px;
}

.yyb-ai-prompt::placeholder {
  color: #a3aea7;
}

.yyb-ai-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2ef;
  flex-wrap: wrap;
}

.yyb-ai-shell-left,
.yyb-ai-shell-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yyb-ai-chip {
  appearance: none;
  border: 1px solid #e2e8e4;
  background: #f8faf9;
  color: #8a968e;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yyb-ai-chip.is-active {
  border-color: rgba(36, 190, 72, 0.35);
  background: #f1fff4;
  color: #1da83e;
  cursor: default;
}

.yyb-ai-chip i {
  font-size: 10px;
}

.yyb-ai-cost {
  font-size: 12px;
  color: #cf1322;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yyb-ai-gen-btn {
  appearance: none;
  border: none;
  background: #24be48;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.yyb-ai-gen-btn:hover {
  background: #1da83e;
}

.yyb-ai-gen-btn:disabled,
.yyb-ai-gen-btn.is-busy {
  background: #b7eb8f;
  cursor: not-allowed;
}

.yyb-ai-hint {
  margin: -16px 0 28px;
  text-align: center;
  font-size: 12px;
  color: #ad6800;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 8px 12px;
}

/* 工具列表 */
.yyb-ai-tools-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.yyb-ai-tools-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #1f2a22;
}

.yyb-ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.yyb-ai-tool-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.yyb-ai-tool-card:hover,
.yyb-ai-tool-card:focus-visible {
  border-color: #24be48;
  box-shadow: 0 10px 28px rgba(36, 190, 72, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.yyb-ai-tool-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eefaf1;
  color: #24be48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.yyb-ai-tool-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.yyb-ai-tool-body strong {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 650;
}

.yyb-ai-tool-body span {
  font-size: 12px;
  color: #7a8780;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .yyb-ai-landing {
    padding: 110px 16px 48px;
  }

  .yyb-ai-tools-grid {
    grid-template-columns: 1fr;
  }

  .yyb-ai-brand-title {
    font-size: 24px;
  }

  .yyb-ai-shell-main {
    flex-direction: column;
  }

  .yyb-ai-upload-slot {
    width: 100%;
    flex-basis: auto;
    min-height: 64px;
    flex-direction: row;
    gap: 8px;
  }
}
