/* OOTD 响应式布局（bf style.css 未扫到的工具类补齐） */

/* 着陆页：比应用页更早变宽，桌面四列成片不挤 */
.ootd-landing.bf-shell {
  max-width: 36rem;
}
@media (min-width: 768px) {
  .ootd-landing.bf-shell {
    max-width: 52rem;
  }
}
@media (min-width: 1024px) {
  .ootd-landing.bf-shell {
    max-width: 72rem;
  }
}

/* 首屏：桌面居中 + 字号阶梯（style.css 缺 sm:text-[44px] / md:text-[52px]） */
.ootd-landing .ootd-hero {
  max-width: 42rem;
}
.ootd-landing .ootd-hero h1 {
  font-size: 2.25rem; /* 36 */
  line-height: 1.12;
}
.ootd-landing .ootd-sticky {
  margin-bottom: 1.5rem;
}
/* 「看例子」锚点不被粘顶挡住 */
.ootd-landing #samples,
.ootd-landing #delivery {
  scroll-margin-top: 4.75rem;
}
@media (min-width: 640px) {
  .ootd-landing .ootd-hero h1 {
    font-size: 2.75rem; /* 44 */
  }
}
@media (min-width: 768px) {
  .ootd-landing .ootd-hero h1 {
    font-size: 3.25rem; /* 52 */
  }
  .ootd-landing .ootd-sticky {
    margin-bottom: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .ootd-landing .ootd-hero {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .ootd-landing .ootd-hero .ootd-hero-cta {
    justify-content: center;
  }
  .ootd-landing .ootd-hero .ootd-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 发帖序图组：手机横滑 → 平板 2×2 → 桌面四列 */
.ootd-post-grid {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.ootd-post-grid::-webkit-scrollbar {
  height: 4px;
}
.ootd-post-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
.ootd-post-grid > * {
  flex: 0 0 min(46vw, 10.5rem);
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 640px) {
  .ootd-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .ootd-post-grid > * {
    flex: unset;
    width: auto;
  }
}
@media (min-width: 1024px) {
  .ootd-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.ootd-lookset-stack {
  display: grid;
  gap: 1rem;
}
/* 宽屏：样例两列；卡内仍用 2×2 图组，避免四列挤扁 */
@media (min-width: 1024px) {
  .ootd-lookset-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .ootd-lookset-stack .ootd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* 奇数末卡满宽 + 四列图，消除空窗 */
  .ootd-lookset-stack > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .ootd-lookset-stack > *:last-child:nth-child(odd) .ootd-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 结果页发帖舞台：手机全宽，桌面限宽居中 */
.ootd-phone-stage {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.28);
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  cursor: zoom-in;
}
button.ootd-phone-stage {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}
@media (min-width: 640px) {
  .ootd-phone-stage {
    max-width: 26rem;
  }
}
.ootd-phone-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

/* 灯箱：小屏少占边距 */
.ootd-lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 2.75rem 1.25rem;
}
@media (min-width: 640px) {
  .ootd-lightbox-stage {
    padding: 0 4rem 1.5rem;
  }
}
.ootd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .ootd-lightbox-nav {
    height: 2.75rem;
    width: 2.75rem;
  }
}
.ootd-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.ootd-lightbox-nav.prev { left: 0.35rem; }
.ootd-lightbox-nav.next { right: 0.35rem; }
@media (min-width: 640px) {
  .ootd-lightbox-nav.prev { left: 0.75rem; }
  .ootd-lightbox-nav.next { right: 0.75rem; }
}

/* 确认/创建弹层：手机底栏，≥640 居中卡片（style.css 缺 sm:inset-0 / sm:max-w-md） */
.ootd-sheet-frame {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}
.ootd-sheet-panel {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px 28px 0 0;
  padding: 1.25rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
}
.ootd-sheet-panel .ootd-sheet-grab {
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.1);
}
@media (min-width: 640px) {
  .ootd-sheet-frame {
    inset: 0;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .ootd-sheet-panel {
    max-width: 28rem;
    border-radius: 28px;
    padding: 1.5rem;
  }
  .ootd-sheet-panel .ootd-sheet-grab {
    display: none;
  }
}

/* 应用页：桌面别拉到 64rem，表单/列表保持可读宽度 */
.ootd-app {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .ootd-app {
    max-width: 40rem;
  }
}

/* 失败页：克制、产品感；输入图为主视觉，无戏剧化标题字 */
.ootd-fail {
  padding: 1.25rem 0 0.5rem;
  max-width: 22rem;
  margin: 0 auto;
}
.ootd-fail-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.ootd-fail-title {
  margin: 0.35rem 0 0;
  font-family: inherit;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #171717;
  line-height: 1.2;
}
.ootd-fail-sub {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: #737373;
  line-height: 1.4;
}
.ootd-fail-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #525252;
}
.ootd-fail-actions {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.65rem;
}
.ootd-fail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0.75rem;
  background: #171717;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ootd-fail-cta:hover { background: #262626; }
.ootd-fail-cta:active { transform: scale(0.985); }
.ootd-fail-link {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #737373;
  padding: 0.25rem;
}
.ootd-fail-link:hover { color: #171717; }

/* 等待出片：真实进度 + 上传图，避免“没动静”感 */
.ootd-wait {
  padding: 1.1rem 0 0.5rem;
  max-width: 22rem;
  margin: 0 auto;
}
.ootd-wait-head { margin-bottom: 1rem; }
.ootd-wait-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.ootd-wait-title {
  margin: 0.35rem 0 0;
  font-family: inherit;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #171717;
  line-height: 1.2;
}
.ootd-wait-title em {
  font-style: normal;
  color: #be123c;
  font-variant-numeric: tabular-nums;
}
.ootd-wait-sub {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #737373;
  line-height: 1.45;
}
.ootd-wait-progress { margin-bottom: 1.15rem; }
.ootd-wait-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.ootd-wait-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #171717;
  min-width: 4%;
  transition: width 0.6s ease;
}
.ootd-wait-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
}
/* 上传原图条（多图）：作品辨认 / 等待 / 失败 / 成片溯源 */
.ootd-input-strip {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.ootd-input-strip--done { margin-top: 1.1rem; }
.ootd-input-strip-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 0.65rem;
}
.ootd-input-strip-meta span:first-child {
  font-weight: 600;
  color: #404040;
}
.ootd-input-strip-grid {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ootd-input-strip-item {
  position: relative;
  margin: 0;
  flex: 0 0 5.25rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #e7e5e4;
}
.ootd-input-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ootd-input-strip-item figcaption {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* 作品成片库：网格 + 上传角标见 _bf_design .bf-sku-badge；日期条 .bf-day-sticky */
.ootd-wait-preview {
  border-radius: 1.35rem;
  background: #faf9f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.85rem 0.85rem 1rem;
}
.ootd-wait-preview-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding: 0 0.15rem;
  font-size: 0.6875rem;
  color: #a3a3a3;
}
.ootd-wait-preview-meta span:first-child {
  font-weight: 600;
  color: #525252;
  font-size: 0.75rem;
}
.ootd-wait-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .ootd-wait-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }
}
.ootd-wait-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #efece7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.ootd-wait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ootd-wait-breathe 4.2s ease-in-out infinite;
}
.ootd-wait-frame:nth-child(2) img { animation-delay: 0.35s; }
.ootd-wait-frame:nth-child(3) img { animation-delay: 0.7s; }
.ootd-wait-frame:nth-child(4) img { animation-delay: 1.05s; }
@keyframes ootd-wait-breathe {
  0%, 100% { transform: scale(1); filter: saturate(0.92); }
  50% { transform: scale(1.03); filter: saturate(1.05); }
}
.ootd-wait-frame figcaption {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
}
.ootd-wait-actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}
.ootd-wait-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ootd-wait-cta:hover { background: #262626; }
.ootd-wait-cta:active { transform: scale(0.98); }
.ootd-wait-link {
  font-size: 0.8125rem;
  color: #a3a3a3;
  padding: 0.25rem;
}
.ootd-wait-link:hover { color: #525252; }
@media (prefers-reduced-motion: reduce) {
  .ootd-wait-bar > span,
  .ootd-wait-frame img { animation: none; }
}

/* 粘底 CTA：平板别拉满屏宽 */
.ootd-sticky-cta {
  width: 100%;
  max-width: 28rem;
}

/* 发帖预览卡圆角（style.css 缺 md:rounded-[28px]） */
@media (min-width: 768px) {
  .ootd-delivery-card {
    border-radius: 28px;
  }
  .ootd-bottom-cta {
    margin-top: 4rem;
  }
}

/* 结果舞台：键盘焦点可见 */
.ootd-phone-stage:focus-visible {
  outline: 2px solid rgba(190, 18, 60, 0.55);
  outline-offset: 3px;
}

/* 充值页：套餐两列（style.css 缺 sm:grid-cols-2） */
.ootd-pkg-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ootd-pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* 着陆 WHY：两列（同上） */
.ootd-why-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ootd-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

/* 结果页胶片条标签 */
.ootd-slide-label {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  pointer-events: none;
}

/* 弹层入场 */
@keyframes ootd-sheet-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 640px) {
  .ootd-sheet-panel {
    animation: ootd-sheet-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ootd-sheet-panel { animation: none; }
}
