:root {
  color-scheme: light;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #162033;
  --muted: #6c778c;
  --subtle: #929caf;
  --line: #e3e8f1;
  --line-strong: #d4dbe8;
  --primary: #3157d5;
  --primary-deep: #2443aa;
  --primary-soft: #eef2ff;
  --accent: #6a4de6;
  --danger: #d83b4c;
  --danger-soft: #fff2f4;
  --success: #14815f;
  --success-soft: #ecfaf5;
  --shadow-lg: 0 26px 80px rgba(31, 46, 90, 0.11);
  --shadow-md: 0 14px 34px rgba(38, 51, 93, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(227, 232, 241, .32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 232, 241, .32) 1px, transparent 1px),
    var(--canvas);
  background-size: 42px 42px;
}
button, input, textarea { font: inherit; }
button, label, input, textarea { -webkit-tap-highlight-color: transparent; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.ambient-one { top: 40px; left: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(80, 102, 220, .14), rgba(80, 102, 220, 0) 70%); }
.ambient-two { top: 310px; right: -230px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(117, 80, 214, .1), rgba(117, 80, 214, 0) 70%); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #fff;
  background: linear-gradient(145deg, #385fde, #6246d5);
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(49, 87, 213, .23);
}
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: .01em; }
.brand small { color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.topbar-status { display: flex; align-items: center; gap: 8px; color: #4f5c72; font-size: 13px; font-weight: 650; }
.topbar-status span { width: 8px; height: 8px; border: 2px solid #b8eadc; border-radius: 50%; background: #25a97c; box-shadow: 0 0 0 4px rgba(37, 169, 124, .08); }

.page-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 32px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); align-items: center; gap: 72px; margin-bottom: 62px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.eyebrow span { width: 24px; height: 2px; background: var(--primary); }
.hero h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 62px); line-height: 1.16; letter-spacing: -.055em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; color: #58657b; font-size: 13px; font-weight: 650; }
.hero-points i { display: grid; place-items: center; width: 18px; height: 18px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 900; }

.process-card { padding: 22px 24px 20px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(217, 224, 236, .86); border-radius: 18px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.process-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: #263247; font-size: 13px; font-weight: 750; }
.process-head b { color: var(--subtle); font-size: 9px; letter-spacing: .14em; }
.process-card ol { margin: 0; padding: 6px 0 0; list-style: none; }
.process-card li { position: relative; display: flex; align-items: center; gap: 13px; padding: 12px 0; }
.process-card li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 43px; width: 1px; height: 18px; background: var(--line-strong); }
.process-card li > span { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; color: #7f899b; background: #f4f6fa; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; font-weight: 800; }
.process-card li.active > span { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 7px 14px rgba(49, 87, 213, .2); }
.process-card li div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.process-card li strong { color: #344056; font-size: 12px; }
.process-card li small { overflow: hidden; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.workspace { position: relative; overflow: hidden; padding: 38px 42px 0; background: var(--surface); border: 1px solid rgba(219, 225, 237, .92); border-radius: 24px; box-shadow: var(--shadow-lg); }
.workspace::before { content: ""; position: absolute; top: 0; left: 42px; right: 42px; height: 3px; background: linear-gradient(90deg, var(--primary), #7855d9 60%, transparent); border-radius: 0 0 4px 4px; opacity: .85; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 14px; }
.section-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 10px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }
.section-title h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.02em; }
.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.security-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 13px; color: var(--success); background: var(--success-soft); border: 1px solid #d6f0e7; border-radius: 999px; font-size: 11px; font-weight: 750; }
.security-badge i { width: 6px; height: 6px; background: #25a97c; border-radius: 50%; box-shadow: 0 0 0 3px rgba(37, 169, 124, .1); }

fieldset { min-width: 0; margin: 0; padding: 0 0 32px; border: 0; }
fieldset + fieldset { padding-top: 30px; border-top: 1px solid var(--line); }
legend { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 23px; padding: 0; color: #303c51; font-size: 13px; font-weight: 800; }
legend > span { display: grid; place-items: center; width: 25px; height: 25px; color: var(--primary); background: var(--primary-soft); border-radius: 7px; font-size: 9px; }
legend small { margin-left: 2px; padding: 3px 7px; color: #8893a6; background: #f2f4f8; border-radius: 5px; font-size: 9px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 20px; }
.field-wide { grid-column: 1 / -1; }
.field > label:not(.file-picker), .field-label { display: block; margin-bottom: 9px; color: #3a465a; font-size: 12px; font-weight: 750; }
.required-mark { color: var(--danger); }
.label-tip { color: var(--subtle); font-size: 10px; font-weight: 500; }

.input-shell { position: relative; }
.input-icon { position: absolute; z-index: 1; top: 50%; left: 14px; width: 18px; height: 18px; color: #909bae; transform: translateY(-50%); pointer-events: none; }
input[type="text"], input[type="url"], textarea { width: 100%; color: var(--text); background: #fbfcfe; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input[type="text"], input[type="url"] { height: 48px; padding: 0 14px 0 44px; }
textarea { min-height: 132px; padding: 13px 15px; line-height: 1.65; resize: vertical; }
input:hover, textarea:hover { border-color: #bcc6d6; background: #fff; }
input:focus, textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(49, 87, 213, .1); }
input.invalid, textarea.invalid, .file-picker.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(216, 59, 76, .07); }
input::placeholder, textarea::placeholder { color: #a2aabc; }
.field-meta { display: flex; justify-content: space-between; gap: 14px; }
.field-help, .field-error { min-height: 17px; margin: 7px 0 0; font-size: 10px; }
.field-help { color: var(--subtle); }
.field-error { color: var(--danger); text-align: right; }

.advanced-grid { align-items: start; }
.logo-field { position: relative; }
.logo-mode-switch { position: absolute; top: -4px; right: 0; display: inline-flex; padding: 3px; background: #f0f3f8; border: 1px solid var(--line); border-radius: 9px; }
.logo-mode { padding: 5px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 9px; font-weight: 750; cursor: pointer; }
.logo-mode.active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(39, 54, 96, .09); }
.logo-mode:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.logo-panel[hidden] { display: none; }
.logo-panel .input-shell { margin-top: 20px; }
.logo-url-help { min-height: 17px; margin: 7px 0 0; color: var(--subtle); font-size: 9px; line-height: 1.5; }
.file-picker { display: flex; align-items: center; min-height: 132px; padding: 19px; color: inherit; background: var(--surface-soft); border: 1px dashed #bdc7d8; border-radius: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.file-picker:hover { background: var(--primary-soft); border-color: var(--primary); transform: translateY(-1px); }
.file-icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; color: var(--primary); background: #fff; border: 1px solid #e2e7f0; border-radius: 12px; box-shadow: 0 7px 15px rgba(43, 62, 111, .07); }
.file-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; margin: 0 13px; }
.file-copy strong { overflow: hidden; color: #344056; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: var(--subtle); font-size: 9px; line-height: 1.5; }
.file-action { flex: 0 0 auto; padding: 7px 10px; color: var(--primary); background: #fff; border: 1px solid #dce3f0; border-radius: 7px; font-size: 9px; font-weight: 750; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.textarea-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--subtle); font-size: 9px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 -42px; padding: 25px 42px; background: #fafbfe; border-top: 1px solid var(--line); }
.download-info { display: flex; align-items: center; gap: 11px; }
.download-info > span { width: 32px; height: 32px; padding: 7px; color: var(--primary); background: var(--primary-soft); border-radius: 9px; }
.download-info > div { display: flex; flex-direction: column; gap: 3px; }
.download-info strong { color: #3c475b; font-size: 11px; }
.download-info small { color: var(--subtle); font-size: 9px; }
code { padding: 2px 5px; color: #5d6580; background: #eef1f6; border-radius: 4px; font-family: Consolas, monospace; }
.form-actions button { min-width: 194px; height: 48px; padding: 0 21px; color: #fff; background: linear-gradient(135deg, var(--primary), #5949ca); border: 0; border-radius: 11px; font-size: 12px; font-weight: 750; cursor: pointer; box-shadow: 0 11px 23px rgba(49, 87, 213, .24); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.form-actions button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 29px rgba(49, 87, 213, .3); filter: brightness(1.04); }
.form-actions button:active:not(:disabled) { transform: translateY(0); }
.form-actions button:disabled { opacity: .7; cursor: wait; }
.button-label { display: inline-flex; align-items: center; gap: 18px; }
.button-label i { font-style: normal; font-size: 17px; font-weight: 400; }
.button-loading { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.message { margin: -8px 0 28px; padding: 12px 15px; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.message.error { color: #a22837; background: var(--danger-soft); border: 1px solid #ffd5db; }
.message.success { color: #116f50; background: var(--success-soft); border: 1px solid #cceee2; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 25px rgba(38, 51, 93, .05); }
.trust-strip > div { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: rgba(255, 255, 255, .82); }
.trust-strip span { color: #b2bac8; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.trust-strip p { margin: 0; color: var(--subtle); font-size: 9px; line-height: 1.5; }
.trust-strip strong { display: block; margin-bottom: 2px; color: #4a566c; font-size: 10px; }
footer { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 31px 0 0; color: #98a2b4; font-size: 9px; }
footer i { width: 3px; height: 3px; background: #bbc2cf; border-radius: 50%; }

@media (max-width: 900px) {
  .page-shell { padding-top: 35px; }
  .hero { grid-template-columns: 1fr; gap: 32px; margin-bottom: 42px; }
  .process-card { max-width: 560px; }
  .hero h1 br { display: none; }
}

@media (max-width: 680px) {
  .topbar { width: min(100% - 28px, 1180px); height: 74px; }
  .topbar-status { font-size: 0; }
  .topbar-status span { margin-right: 4px; }
  .page-shell { width: min(100% - 22px, 1080px); padding-top: 28px; }
  .hero { gap: 26px; margin-bottom: 30px; }
  .hero h1 { font-size: clamp(35px, 11vw, 48px); }
  .hero-copy > p { font-size: 14px; }
  .hero-points { gap: 11px 16px; }
  .process-card { padding: 18px; }
  .workspace { padding: 28px 18px 0; border-radius: 18px; }
  .workspace::before { left: 18px; right: 18px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; padding-bottom: 23px; }
  .security-badge { margin-left: 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .advanced-grid { row-gap: 18px; }
  .logo-mode-switch { position: static; width: 100%; margin: -1px 0 10px; }
  .logo-mode { flex: 1; }
  .logo-panel .input-shell { margin-top: 0; }
  .form-actions { align-items: stretch; flex-direction: column; margin: 0 -18px; padding: 22px 18px; }
  .form-actions button { width: 100%; }
  .download-info { justify-content: center; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { padding: 14px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
