:root {
    color-scheme: light;
    --bg: #eef4ff;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-border: rgba(94, 114, 228, 0.16);
    --text: #172033;
    --muted: #64748b;
    --primary: #3157d5;
    --primary-dark: #2445b8;
    --success: #12805c;
    --success-bg: #e7f7ef;
    --error: #b42318;
    --error-bg: #fff0ed;
    --shadow: 0 22px 70px rgba(49, 87, 213, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.18), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
}

.shell {
    width: min(920px, 100%);
}

.card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 34px;
    padding: 42px;
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card::before {
    content: "";
    position: absolute;
    inset: -120px -80px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(49, 87, 213, 0.18), rgba(56, 189, 248, 0.08));
}

.hero,
.form-panel {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.subtitle {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.steps {
    display: grid;
    gap: 12px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #475569;
    font-size: 14px;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #edf2ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 auto;
}

.form-panel {
    border-radius: 22px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e6ecf7;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.notice-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(18, 128, 92, 0.16);
}

.notice-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(180, 35, 24, 0.16);
}

.notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-links {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.download-links a {
    width: fit-content;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 700;
}

.file-box {
    border: 1.5px dashed #b7c4df;
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(180deg, #fbfdff, #f7faff);
}

input[type="file"] {
    width: 100%;
    color: var(--muted);
    font-size: 14px;
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #e8eeff;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--primary), #5b7cfa);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(49, 87, 213, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(49, 87, 213, 0.28);
    background: linear-gradient(135deg, var(--primary-dark), #5473ec);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: wait;
    opacity: 0.88;
    transform: none;
}

.progress {
    display: none;
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #f5f8ff;
    border: 1px solid #dbe6ff;
}

.progress.is-active {
    display: block;
}

.busy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 700;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #dbe6ff;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    flex: 0 0 auto;
}

.progress-track {
    overflow: hidden;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: #e8eeff;
}

.progress-bar {
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    animation: progressMove 1.2s ease-in-out infinite;
}

.progress-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressMove {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(250%);
    }
}

@media (max-width: 760px) {
    body {
        padding: 24px 14px;
    }

    .card {
        grid-template-columns: 1fr;
        padding: 28px;
        border-radius: 24px;
    }

    .steps {
        margin-top: 22px;
    }
}
