/* Undress AI - 主站样式（贴近 undresspo69rn.com：主色 #F4812B） */
:root {
  --primary: #F4812B;
  --primary-light: #ff9d4d;
  --hero-gradient-start: #2a1f3d;
  --hero-gradient-end: #3d1f2b;
  --cta-bg: linear-gradient(135deg, #F4812B 0%, #ffb347 50%, #ffff00 100%);
  --zinc-900: #18181b;
  --gray-800: #1f2937;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.landing-dark {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main, .landing > section {
  flex: 1 0 auto;
}

.landing main {
  flex: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 50%, #1a0a2e 100%);
  color: #fff;
}

.btn-primary, .btn-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover { filter: brightness(1.1); }

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero a.text-white:hover {
  text-decoration: underline;
}

/* Sections */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Step cards */
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.step-card .card-body {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover .card-body {
  transform: translateY(-2px);
}

/* Feature cards */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

/* Upload CTA box */
.upload-cta-box {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA section */
.cta-section {
  background: var(--cta-bg);
  color: #fff;
}

/* Navbar：仿照站纯黑顶栏 */
.landing .navbar {
  background: #000 !important;
}
.landing .navbar-brand span { color: #fff; }
.nav-logo { flex-shrink: 0; }

/* ========== 首页仿照站区块 ========== */
.landing-hero {
  background: linear-gradient(180deg, #0c0c0e 0%, var(--zinc-900) 50%, #111 100%);
  color: #fff;
  padding: 3rem 1rem 4rem;
}
.landing-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.landing-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}
.landing-hero-disclaimer { color: rgba(255, 255, 255, 0.6); }
.landing-hero-disclaimer a { color: var(--primary-light); text-decoration: none; }
.landing-hero-disclaimer a:hover { text-decoration: underline; }
.btn-hero-cta {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(244, 129, 43, 0.4);
}
.btn-hero-cta:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* Tab 栏：Image | Video | Face Swap（仿照站 rounded-xl bg-zinc-900） */
.landing-tabs {
  background: #0c0c0e;
}
.landing-tab-bar {
  background: var(--zinc-900);
  max-width: fit-content;
}
.landing-tab {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.landing-tab:hover {
  background: rgba(244, 129, 43, 0.2);
  color: #fff !important;
}
.landing-tab-active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(244, 129, 43, 0.35);
}

/* 上传区占位框（仿照站虚线框风格） */
.landing-upload-cta {
  background: #0c0c0e;
}
.landing-upload-box {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: rgba(24, 24, 27, 0.6);
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s, background 0.2s;
}
.landing-upload-box:hover {
  border-color: var(--primary);
  background: rgba(244, 129, 43, 0.08);
  color: #fff;
}
.landing-upload-box .text-muted { color: rgba(255, 255, 255, 0.5) !important; }
.landing-upload-box .text-dark { color: rgba(255, 255, 255, 0.85) !important; }

/* 步骤数字圆圈（仿照站 primary 圆） */
.landing-step-num {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: var(--primary) !important;
  color: #fff !important;
}
.landing-step .card-body { transition: transform 0.2s ease; }
.landing-step:hover .card-body { transform: translateY(-2px); }

/* 特性卡片 hover */
.landing-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* CTA 区块渐变 */
.landing-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Disclaimer 仿照站深色框 + 渐变分隔线 */
.landing-disclaimer {
  background: #0c0c0e;
}
.landing-disclaimer-box {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, #000 100%);
  border: 1px solid rgba(75, 85, 99, 0.5);
  max-width: 720px;
}
.landing-disclaimer-icon {
  font-size: 1.25rem;
  color: #eab308;
}
.landing-disclaimer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 114, 128, 0.6), transparent);
}

/* Footer */
footer.bg-light {
  background: #f8f9fa !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

footer a {
  color: #6c757d;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Utility */
.rounded {
  border-radius: 0.375rem;
}

/* Cards global */
.card {
  border-radius: 0.5rem;
}

.btn-rounded-pill { border-radius: 50rem; }

/* ========== Undress Her 页（仿照站一致） ========== */
.undress-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0c0c0e;
  color: #e5e5e5;
  min-height: 100vh;
}
.undress-page .navbar { background: #000 !important; }
.undress-main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.undress-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
}
.undress-subtitle {
  font-size: 0.95rem;
  color: #a1a1aa;
}
.undress-tabs { margin-bottom: 1rem; }
.undress-tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--zinc-900);
  padding: 0.25rem;
  margin: 0 auto;
}
.undress-tab {
  transition: background 0.2s, color 0.2s;
  color: rgba(255, 255, 255, 0.9);
}
.undress-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.undress-tab-active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(244, 129, 43, 0.35);
}
.undress-alert { max-width: 560px; }
.undress-content .form-control, .undress-content .form-select {
  background: var(--zinc-900);
  border-color: rgba(255,255,255,0.15);
  color: #e5e5e5;
}
.undress-content .form-control::placeholder { color: #71717a; }
.undress-preview-wrap {
  background: rgba(24, 24, 27, 0.8);
  min-height: 200px;
}
.undress-preview-inner { min-height: 180px; }
.undress-preview-placeholder { color: #71717a; }
.undress-upload-icon { width: 4rem; height: 4rem; opacity: 0.6; }
.undress-upload-box {
  background: rgba(24, 24, 27, 0.6);
  border-color: rgba(255, 255, 255, 0.2) !important;
  transition: border-color 0.2s, background 0.2s;
}
.undress-upload-box:hover { border-color: var(--primary) !important; background: rgba(244, 129, 43, 0.06); }
.undress-upload-label { cursor: pointer; }
.undress-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.undress-style-bar {
  background: var(--zinc-900);
}
.undress-style-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.undress-style-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.undress-style-btn.undress-style-active {
  background: var(--primary);
  color: #fff;
}
.undress-tip { color: #a1a1aa; }
.undress-status, .undress-result {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
}
.undress-result img { max-height: 400px; }
.undress-howto {
  background: rgba(24, 24, 27, 0.5);
  border-radius: 0.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
}
.undress-howto .undress-step-num {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
}
.undress-page .form-check-input { border-color: rgba(255,255,255,0.3); }
.undress-page .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.undress-page .form-check-label, .undress-page .form-check-label a { color: #a1a1aa; }
.undress-page .form-check-label a:hover { color: var(--primary); }

/* Undress page: mode selector (legacy) */
.mode-option { cursor: pointer; transition: border-color .2s, background .2s; }
.mode-option:hover { border-color: var(--primary) !important; background: rgba(244,129,43,.08); }
.mode-option.active { border-color: var(--primary) !important; background: rgba(244,129,43,.15); }

/* ========== 首页各屏背景（仿 index.png 渐变色） ========== */
/* 纯色：主背景 #0c0c0e */
.index-bg-solid { background: #0c0c0e; }
/* 紫红→酒红→橙褐 左右渐变（Upload 区、One-Click、Extraordinary、Picture to paint、Face swap） */
.index-bg-gradient { background: linear-gradient(to right, #2b0a2d, #4e171b, #6e200c); }
/* CTA 横幅：深橙褐→亮橙→深橙红 */
.index-bg-cta { background: linear-gradient(to right, #4a1804, #ad3606, #7c2605); }
/* Warning 区块：略亮深灰 */
.index-bg-warning { background: #1a1a1c; }
