﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --card: rgba(255,255,255,.06);
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --good: #37d67a;
    --warn: #ffb020;
    --danger: #ff5c7a;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 520px at 18% -10%, rgba(124,92,255,.35), transparent 60%), radial-gradient(900px 520px at 88% 8%, rgba(48,213,200,.22), transparent 60%), radial-gradient(900px 640px at 50% 120%, rgba(55,214,122,.12), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
    -webkit-font-smoothing: antialiased;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 520px;
    margin: 0 auto;
    min-height: calc(100vh - 36px - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.brand {
    text-align: center;
}

.logo {
    width: 62px;
    height: 62px;
    margin: 0 auto 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(124,92,255,.30), rgba(48,213,200,.18));
    box-shadow: 0 16px 34px rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(180px 120px at 20% 25%, rgba(255,255,255,.14), transparent 60%), radial-gradient(220px 140px at 88% 18%, rgba(255,255,255,.10), transparent 62%);
    pointer-events: none;
}

.logo svg {
    width: 30px;
    height: 30px;
    position: relative;
    opacity: .95;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .3px;
}

.brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card {
    border-radius: calc(var(--radius));
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-inner {
    padding: 16px 14px 14px;
}

/* 步骤条 */
.steps {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    margin-bottom: 12px;
}

.step {
    flex: 1;
    border-radius: 8px;
    padding: 10px 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(234,240,255,.68);
    font-size: 12px;
    line-height: 1.25;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.step .num {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.10);
    flex: 0 0 auto;
}

.step.active {
    color: rgba(234,240,255,.92);
    background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(48,213,200,.10));
    border-color: rgba(255,255,255,.16);
}

.step.active .num {
    background: linear-gradient(135deg, rgba(124,92,255,.90), rgba(48,213,200,.85));
    color: #0b1020;
    border-color: rgba(255,255,255,.20);
}

.step.done {
    color: rgba(220,255,235,.92);
    border-color: rgba(55,214,122,.25);
    background: rgba(55,214,122,.08);
}

.step.done .num {
    background: rgba(55,214,122,.25);
    border-color: rgba(55,214,122,.35);
    color: rgba(220,255,235,.95);
}

.field {
    margin-top: 10px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(234,240,255,.78);
    font-size: 12.5px;
}

.hint {
    color: rgba(234,240,255,.50);
    font-size: 12px;
}

.req {
    color: rgba(255,232,196,.95);
    font-weight: 900;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,204,102,.32);
    background: rgba(255,204,102,.10);
}

.input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
}

.input svg {
    width: 18px;
    height: 18px;
    opacity: .85;
    flex: 0 0 auto;
}

.input input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.input input::placeholder {
    color: rgba(234,240,255,.45);
}

.code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.send {
    flex: 0 0 auto;
    min-width: 118px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 900;
    padding: 12px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.send:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 12px;
    font-weight: 900;
    letter-spacing: .2px;
    color: #0b1020;
    background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(48,213,200,.88));
    box-shadow: 0 16px 34px rgba(0,0,0,.35);
    margin-top: 12px;
}

.btn:active {
    transform: scale(.99);
}

.row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn2 {
    flex: 1;
    border-radius: 8px;
    padding: 12px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.90);
    font-weight: 850;
    cursor: pointer;
}

.msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,92,122,.28);
    background: rgba(255,92,122,.10);
    color: rgba(255,220,228,.92);
    font-size: 12.5px;
    display: none;
    line-height: 1.5;
}

.msg.ok {
    border-color: rgba(55,214,122,.30);
    background: rgba(55,214,122,.10);
    color: rgba(220,255,235,.92);
}

.tips {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,.16);
    background: rgba(0,0,0,.10);
    color: rgba(234,240,255,.62);
    font-size: 12px;
    line-height: 1.6;
}

.footer {
    text-align: center;
    color: rgba(234,240,255,.48);
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.6;
}

/* 隐藏/显示不同步骤容器 */
.panel {
    display: none;
}

.panel.active {
    display: block;
}
.site-footer {
    margin-top: 22px;
    padding: 18px 12px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12px;
    color: rgba(234,240,255,.55);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: rgba(234,240,255,.70);
    text-decoration: none;
    padding: 2px 4px;
}

.footer-links a:hover {
    color: rgba(234,240,255,.95);
}

.footer-links .sep {
    opacity: .35;
}

.footer-meta {
    margin-top: 10px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
}
