/* 首页货架（Web 首页内容管理） */

/* 产品线列表：Stickers 主线行对齐与强调 */
.entry-drag-spacer {
  width: 28px;
}

.entry-lead {
  font-size: 14.5px;
  font-weight: 700;
}

.entry-create-wrap {
  display: flex;
  padding: 6px 0 0;
}

/* 入口缩略图编辑弹窗 */
.entry-thumb-dialog {
  width: min(360px, 92vw);
}

.entry-thumb-wrap {
  position: relative;
  width: min(220px, 100%);
  margin: 0 auto;
}

.entry-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.entry-thumb-remove:hover {
  background: var(--danger);
}

/* 表情包入口固定第一（样式由 entries 模块控制，无需置顶标记） */
.web-home-dialog {
  width: min(640px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.web-home-dialog-body {
  overflow-y: auto;
  padding: 0 18px 16px;
}

.web-home-tabs {
  display: flex;
  gap: 8px;
  padding: 0 18px 10px;
}

.web-home-tab-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.web-home-tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #06231c;
}

.web-home-hint {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* hero slots */
.web-home-hero-slots {
  display: flex;
  gap: 14px;
}

.web-home-hero-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  cursor: pointer;
}

.web-home-slot-label {
  color: var(--muted);
  font-size: 12px;
}

.web-home-hero-slot img,
.web-home-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}

.web-home-slot-empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 28px;
}

/* line tiles */
.web-home-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.web-home-line-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.web-home-thumb {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  cursor: pointer;
}

.web-home-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.web-home-thumb .web-home-slot-empty {
  width: 56px;
  height: 56px;
  aspect-ratio: auto;
  font-size: 18px;
  border-radius: 10px;
}

.web-home-title-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-size: 13px;
}

.web-home-line-select {
  padding: 8px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-size: 12.5px;
}

.web-home-enabled {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.web-home-row-actions {
  display: inline-flex;
  gap: 4px;
}

.web-home-row-actions button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.web-home-row-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--fg);
}

.web-home-row-actions button:disabled {
  opacity: 0.35;
}

.web-home-row-actions button[data-web-home-line-remove]:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.web-home-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* add row */
.web-home-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.web-home-add {
  padding: 8px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
}

.web-home-add:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.web-home-add-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #06231c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.web-home-add-btn:hover {
  filter: brightness(1.08);
}

/* AI 创作首页三卡片编辑（一行并排小卡片） */
.ai-tile-list {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-tile-editor {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.ai-tile-thumb {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.ai-tile-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.ai-tile-remove:hover {
  background: var(--danger);
}

.ai-tile-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.ai-tile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-tile-preview .web-home-slot-empty {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 22px;
}

.ai-tile-title-input {
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--fg);
  font-size: 12.5px;
  width: 100%;
}

.web-home-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


