:root {
  --bg: #f5f7fa;
  --ink: rgba(0, 0, 0, 0.85);
  --muted: rgba(0, 0, 0, 0.45);
  --line: #e8e8e8;
  --accent: #377dff;
  --accent-2: #faad14;
  --panel: #ffffff;
  --shadow: 0 12px 32px rgba(15, 34, 67, 0.08);
  --radius: 12px;
  --radius-sm: 6px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body.open-body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}

.open-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(55, 125, 255, 0.1), transparent 58%),
    radial-gradient(720px 420px at 96% 0%, rgba(22, 58, 143, 0.06), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f2f5f8 55%, #eef2f6 100%);
}
.open-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 40% 18%, #000 18%, transparent 72%);
}

.open-main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.open-main-solo {
  max-width: 720px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.open-hero {
  width: 100%;
  padding: 24px 0;
}
@keyframes open-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes open-leave {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes open-enter-back {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes open-leave-back {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(18px); }
}
.open-enter { animation: open-enter .4s ease both; }
.open-leave { animation: open-leave .28s ease both; }
.open-enter-back { animation: open-enter-back .4s ease both; }
.open-leave-back { animation: open-leave-back .28s ease both; }
.open-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--accent);
}
.open-brand {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 5.8vw, 52px);
  line-height: 1.25;
  color: var(--ink);
}
.open-lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.open-cta-row {
  margin-top: 32px;
  display: block;
}
.open-price-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 28em;
}
.open-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.open-price-was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 15px;
}
.open-price-now {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 20px;
}
.open-price-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.open-btn-primary {
  color: #fff;
  background: #377dff;
}
.open-btn-primary:hover { background: #2f6fe0; color: #fff; }
.open-btn-ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.open-btn-ghost:hover { border-color: #377dff; color: #377dff; }
.open-btn-wide { width: 100%; min-width: 180px; }
.open-btn:disabled { opacity: .85; cursor: pointer; }
.open-btn .ant-btn-loading-icon { display: inline-flex; align-items: center; margin-right: 8px; line-height: 0; }
.open-btn-primary .ant-spin-dot-item { background: #fff; }

.open-block {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.open-block-wide { max-width: 560px; }
.open-wizard { margin-top: 4px; }
.open-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
}
.open-steps i {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e8eef7;
  transition: background .3s ease, box-shadow .3s ease;
}
.open-steps i.is-current {
  background: #377dff;
  box-shadow: 0 0 0 1px rgba(55, 125, 255, 0.12);
}
.open-steps i.is-done {
  background: #52c41a;
  box-shadow: 0 0 0 1px rgba(82, 196, 26, 0.12);
}
.open-step-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.open-step-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.open-step-desc {
  margin: 10px 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.open-step-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.open-field-hero { margin-bottom: 8px; }
.open-field-hero input {
  min-height: 60px;
  font-size: 22px;
  font-weight: 600;
  padding: 0 20px;
  border-radius: 8px;
}
.open-step-actions { margin-top: 12px; }
.open-step-actions .open-btn-wide {
  min-height: 52px;
  font-size: 16px;
  border-radius: 8px;
}
.open-deal-final {
  margin-top: 4px;
  margin-bottom: 16px;
  grid-template-columns: 1fr;
  border-top: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.open-panel-head {
  text-align: center;
  margin: 0 0 22px;
}
.open-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}
.open-back-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.open-back span {
  display: block;
  line-height: 16px;
}
.open-back:hover { color: var(--accent); }
.open-panel-head h2 {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
}
.open-panel-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.open-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 40px;
}
.open-block-wide .open-panel {
  padding: 40px 36px 44px;
}

.open-form { margin-top: 0; }
.open-field {
  display: block;
  margin-bottom: 16px;
}
.open-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.open-field input,
.open-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font: inherit;
  outline: none;
}
.open-field input:focus,
.open-field select:focus {
  border-color: #377dff;
  box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.14);
}
.open-host {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(140px, 1.4fr);
  gap: 8px;
  align-items: center;
}
.open-host-dot { color: var(--muted); text-align: center; }
.open-host-preview {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
}
.open-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.open-code-row.is-plain {
  grid-template-columns: 1fr;
}
.open-code-btn {
  min-height: 46px;
  white-space: nowrap;
  padding: 0 14px;
}
.open-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.open-deal {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.open-deal strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.open-deal > div span { color: var(--muted); font-size: 14px; }
.open-deal b { color: var(--accent-2); }
.open-deal s { color: #9aa8b8; }

.open-done {
  margin-top: 8px;
  padding: 8px 0 4px;
  text-align: center;
}
.open-done-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(55, 125, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 12px;
  background: rgba(55, 125, 255, 0.06);
}
.open-done h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}
.open-done-host {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 15px;
  word-break: break-all;
}
.open-done-tip {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.open-done-info {
  margin: 18px auto 0;
  max-width: 360px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  overflow: hidden;
}
.open-done-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.open-done-row:last-child { border-bottom: 0; }
.open-done-row span { color: var(--muted); flex: none; }
.open-done-row b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}
.open-done-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.open-cap-root .ant-modal { max-width: calc(100vw - 32px); }
.open-cap-tip {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}
.open-cap-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}
.open-cap-row .ant-input {
  height: 40px;
}
.open-cap-box {
  width: 120px;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
  background: #fafafa;
  display: block;
}

@media (max-width: 720px) {
  .open-main-solo { align-items: flex-start; padding-top: 32px; }
  .open-panel,
  .open-block-wide .open-panel { padding: 28px 18px 32px; }
  .open-deal { grid-template-columns: 1fr; }
  .open-host { grid-template-columns: 1fr auto 1.2fr; }
  .open-price-wrap { max-width: none; }
  .open-step-title { font-size: 26px; }
  .open-field-hero input { font-size: 18px; min-height: 54px; }
}
