/* 贴图号 手机端增量层 —— 只在 ≤760px 生效；不删任何节点，仅折叠/移动/美化 */
/* 内容底部留白要同时避开 CTA dock(≈118px) 与全站底栏(62px)，否则最后的字段被盖住滚不到 */
/* 元素带内联 padding-bottom(26px)，需 !important 才能压过，保证滚到底时末字段不被 dock 盖住 */
#tie-tu.ttm-on { padding-bottom: calc(196px + env(safe-area-inset-bottom)) !important; }

/* ── 快捷行业 chips ── */
#tie-tu .ttm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
#tie-tu .ttm-quick button {
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .65);
  font-size: 11.5px; color: #4A5D53; cursor: pointer;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}
#tie-tu .ttm-quick button.on {
  background: rgba(20, 104, 74, .14); border-color: rgba(20, 104, 74, .4);
  color: #0E4A35; font-weight: 600;
}

/* ── 数量 stepper ── */
#tie-tu .ttm-count-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#tie-tu .ttm-count-row > label { flex: 1; }
#tie-tu .ttm-count-row .ttm-step {
  width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(20, 104, 74, .1); color: #0E4A35; font-size: 17px; cursor: pointer;
}
#tie-tu .ttm-count-row input[type="number"]::-webkit-inner-spin-button,
#tie-tu .ttm-count-row input[type="number"]::-webkit-outer-spin-button { display: none; }

/* ── 更多设置 折叠层 ── */
#tie-tu .ttm-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .7);
  font-size: 12.5px; font-weight: 600; color: #4A5D53; text-align: left;
}
#tie-tu .ttm-toggle .ttm-hint { font-size: 10.5px; font-weight: 400; color: #7C8C82; }
#tie-tu .ttm-toggle .ttm-caret { color: #7C8C82; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
#tie-tu .ttm-toggle.open .ttm-caret { transform: rotate(180deg); }
#tie-tu .ttm-fold { overflow: hidden; max-height: 0; transition: max-height .35s cubic-bezier(.16, 1, .3, 1); }
#tie-tu .ttm-fold.open { max-height: 1400px; }
#tie-tu .ttm-fold-inner > * { margin-top: 10px; }
#tie-tu .ttm-fold-inner .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── 底部 dock：真正的 #tie-plan 按钮住进来 ──
   全站底栏 .v3-topbar 是 fixed/bottom:0/z-index:60/高 62px；dock 若也贴 bottom:0 且同为 60，
   会被 DOM 更靠后的全站底栏盖住，按钮点不到。这里把 dock 抬到底栏上方并压过它的层级。 */
#tie-tu .ttm-dock {
  position: fixed; left: 0; right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 61;
  padding: 20px 14px 10px;
  background: linear-gradient(180deg, rgba(240, 243, 236, 0) 0%, rgba(240, 243, 236, .94) 38%, #F0F3EC 100%);
  pointer-events: none;
}
#tie-tu .ttm-dock > * { pointer-events: auto; }
#tie-tu .ttm-dock #tie-plan {
  width: 100%; min-height: 48px; border-radius: 14px; letter-spacing: 2px;
  box-shadow: 0 14px 26px -12px rgba(14, 74, 53, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
#tie-tu .ttm-dock::after {
  content: '计划免费 · 生成图片 1 积分/张 · 失败自动退';
  display: block; text-align: center; font-size: 10px; color: #7C8C82; margin-top: 7px;
}

/* ── 计划结果紧凑化（只调间距字号，不隐藏内容） ── */
#tie-tu.ttm-on .creator-card-grid { gap: 8px; }
#tie-tu.ttm-on .creator-output-card { padding: 10px; gap: 10px; }
#tie-tu.ttm-on .creator-output-card .card-image-slot { min-width: 0; }
#tie-tu.ttm-on .creator-output-card .creator-card-copy strong { font-size: 13px; }
#tie-tu.ttm-on .creator-output-card .creator-card-copy p { font-size: 11.5px; line-height: 1.6; }
#tie-tu.ttm-on .creator-output-card .creator-card-copy small { font-size: 10px; line-height: 1.5; }
#tie-tu.ttm-on .plan-summary { grid-template-columns: 1fr 1fr; gap: 6px; }
#tie-tu.ttm-on .output-head { flex-wrap: wrap; gap: 8px; }
#tie-tu.ttm-on .output-head .primary-action { width: 100%; }
