/* ═══ 首页 — home.css ═══ */

/* ── Hero ── */
.hero { padding: 60px 0 72px; text-align: center;
  background:
    radial-gradient(900px 400px at 20% -10%, #eef2ff 0%, transparent 60%),
    radial-gradient(700px 380px at 85% 0%, #f5f3ff 0%, transparent 55%);
}
.fpage-hero { padding: 44px 0 56px; }
.hero-badge { display: inline-block; background: #eef2ff; color: var(--c-primary); border: 1px solid #c7d2fe;
  border-radius: 99px; padding: 5px 16px; font-size: 13.5px; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 850px; margin: 0 auto 16px; }
.hero-sub { color: var(--c-text-muted); font-size: 18px; max-width: 680px; margin: 0 auto 32px; }
.hero-free { margin-top: 14px; font-weight: 700; color: var(--c-success); font-size: 15px; }

/* ── 上传区 ── */
.uploader { max-width: 660px; margin: 0 auto; }
.drop-zone {
  border: 2.5px dashed #c7d2fe; border-radius: var(--radius-lg);
  background: #fff; padding: 48px 24px; cursor: pointer;
  transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--c-primary); background: #f5f3ff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dz-icon { color: var(--c-primary); margin: 0 auto 14px; }
.drop-zone h2 { font-size: 21px; margin-bottom: 6px; }
.dz-or { color: var(--c-text-muted); margin-bottom: 16px; font-size: 14px; }
.dz-paste { color: var(--c-text-muted); font-size: 13.5px; margin-top: 14px; }
.dz-sample { margin-top: 8px; }
.dz-formats { color: #94a3b8; font-size: 13px; margin-top: 12px; }

/* ── 进度 ── */
.progress-panel { margin-top: 28px; }
.progress-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-md); }
.progress-bar { height: 10px; background: var(--c-bg-soft); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.progress-text { font-weight: 700; }
.progress-slow { color: var(--c-text-muted); font-size: 13.5px; margin-top: 8px; }

/* ── 结果区 ── */
.result-panel { margin-top: 28px; text-align: left; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.result-head h2 { font-size: 24px; margin-bottom: 4px; }
.result-head p { color: var(--c-text-muted); font-size: 14.5px; max-width: 460px; }
.result-stage { border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare { position: relative; user-select: none; touch-action: none; min-height: 200px; }
.compare-after { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.compare-after canvas, .compare-after img { max-width: 100%; max-height: 480px; }
.compare-before { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.compare-before img { max-width: 100%; max-height: 480px; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 12px rgba(0,0,0,.25); left: 50%;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--c-primary); font-weight: 800;
}
.compare-handle span::before { content: "⇆"; }
.checkerboard {
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; background-color: #fff;
}
.result-tools { margin-top: 18px; }
.bg-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bg-label { font-size: 14px; font-weight: 700; margin-right: 4px; }
.bg-chip { border: 2px solid var(--c-border); background: #fff; border-radius: 10px; padding: 4px; cursor: pointer; transition: all .12s; }
.bg-chip:hover { border-color: var(--c-primary); }
.bg-chip.current { border-color: var(--c-primary); box-shadow: 0 0 0 3px #eef2ff; }
.swatch { display: block; width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.swatch-checker {
  background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%, transparent 75%, #cbd5e1 75%), linear-gradient(45deg, #cbd5e1 25%, transparent 25%, transparent 75%, #cbd5e1 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; background-color: #fff;
}
.swatch-img { display: flex; align-items: center; justify-content: center; font-size: 15px; }
.download-row { display: flex; gap: 12px; flex-wrap: wrap; }
.download-row .btn { flex: 1; min-width: 220px; padding: 14px 20px; }
.result-note { color: var(--c-text-muted); font-size: 13px; margin-top: 12px; }

/* ── Demo 滑块 ── */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.demo-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.demo-slider { position: relative; }
.demo-slider img { width: 100%; height: auto; }
.demo-clip { position: absolute; inset: 0; overflow: hidden; width: 50%; border-right: 3px solid #fff; }
.demo-clip img { width: 400px; max-width: none; height: auto; }
.demo-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); }

/* ── 特性 / 场景 / 步骤 ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--c-text-muted); font-size: 14.5px; }
.feature-card:first-child { background: var(--grad); color: #fff; border: none; }
.feature-card:first-child p { color: #e0e7ff; }

.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scenario-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 26px; color: var(--c-text); display: block; transition: all .15s; }
.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: #c7d2fe; }
.scenario-card h3 { font-size: 17.5px; margin-bottom: 8px; color: var(--c-primary); }
.scenario-card p { color: var(--c-text-muted); font-size: 14.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps-grid-sm { grid-template-columns: 1fr; }
.step-card { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 26px 26px 22px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { color: var(--c-text-muted); font-size: 14.5px; }

/* ── 颜色胶囊 ── */
.color-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.color-pill {
  background: #fff; border: 1px solid var(--c-border); border-radius: 99px; padding: 9px 20px;
  font-weight: 600; font-size: 14.5px; color: var(--c-text); transition: all .15s;
}
.color-pill:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; box-shadow: var(--shadow-md); }

/* ── 对比区 ── */
.compare-section { background: linear-gradient(180deg, #fff 0%, #fafaff 100%); }
.compare-cta { text-align: center; margin: 32px 0 10px; }
.compare-footnote { text-align: center; color: #94a3b8; font-size: 12.5px; }

/* ── 定价预览 ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.pricing-rules-note { text-align: center; margin-top: 26px; font-weight: 700; }

@media (max-width: 980px) {
  .features-grid, .scenarios-grid, .steps-grid, .demo-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .features-grid, .scenarios-grid, .steps-grid, .demo-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .drop-zone { padding: 34px 16px; }
}
