/* ============================================================
   School Portal · 学校注册 / 套餐开通 / 申请成功
   ============================================================ */

:root {
    --sp-bg: #fafbff;
    --sp-bg-alt: #f0f2fa;
    --sp-ink: #0f172a;
    --sp-ink-soft: #475569;
    --sp-muted: #64748b;
    --sp-subtle: #94a3b8;
    --sp-line: rgba(99, 102, 241, 0.12);
    --sp-line-2: rgba(99, 102, 241, 0.22);
    --sp-accent: #6366f1;
    --sp-accent-2: #a855f7;
    --sp-accent-3: #06b6d4;
    --sp-success: #10b981;
    --sp-warm: #f97316;
}

.school-register-page,
.school-plans-page {
    margin: 0;
    background: var(--sp-bg);
    color: var(--sp-ink);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.school-register-page *, .school-plans-page * { box-sizing: border-box; }
.school-register-page a, .school-plans-page a { color: inherit; text-decoration: none; }

.sp-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== 顶部导航 ===== */
.sp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px) saturate(160%);
    background: rgba(250, 251, 255, 0.85);
    border-bottom: 1px solid var(--sp-line);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.sp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.sp-brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.3);
}

.sp-brand strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sp-nav-actions { display: flex; align-items: center; gap: 14px; }

.sp-back-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sp-muted);
    transition: color 0.15s ease;
}

.sp-back-link:hover { color: var(--sp-accent); }

/* ===== 页面背景 ===== */
.sp-page {
    flex: 1;
    position: relative;
    padding: 60px 24px;
    overflow-x: hidden;
}

.sp-page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sp-page-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.sp-page-glow--a {
    width: 580px; height: 580px;
    left: -160px; top: -120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    animation: spFloat 14s ease-in-out infinite;
}

.sp-page-glow--b {
    width: 640px; height: 640px;
    right: -180px; bottom: -160px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
    animation: spFloat 18s ease-in-out infinite reverse;
}

.sp-page-glow--c {
    width: 480px; height: 480px;
    left: 30%; top: 40%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
    animation: spFloat 16s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes spFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
}

.sp-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 通用 ===== */
.sp-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sp-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border-radius: 12px;
    border: 0;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    text-decoration: none;
}

.sp-btn--lg { height: 52px; padding: 0 32px; font-size: 1rem; border-radius: 14px; }

.sp-btn--primary {
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

.sp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(168, 85, 247, 0.42);
    color: #fff;
}

.sp-btn--outline {
    background: #fff;
    color: var(--sp-accent);
    border: 1px solid var(--sp-accent);
}

.sp-btn--outline:hover {
    background: var(--sp-accent);
    color: #fff;
}

.sp-btn--ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--sp-ink);
    border: 1px solid var(--sp-line-2);
}

.sp-btn--ghost:hover {
    background: #fff;
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

/* ===== 注册页 · 双列 ===== */
.sp-register-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 50px;
    align-items: start;
}

.sp-side {
    position: sticky;
    top: 100px;
    padding: 8px 4px;
}

.sp-side-title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sp-side-gradient {
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-side-desc {
    margin: 0 0 32px;
    color: var(--sp-ink-soft);
    font-size: 0.98rem;
    line-height: 1.75;
}

.sp-step-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.sp-step-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--sp-line);
}

.sp-step-list li:last-child { border-bottom: 0; }

.sp-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sp-accent);
    font-weight: 900;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sp-step-list strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--sp-ink);
}

.sp-step-list p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--sp-muted);
}

.sp-side-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--sp-warm);
    font-size: 0.86rem;
}

.sp-side-tip a {
    color: var(--sp-warm);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}

/* ===== 表单卡 ===== */
.sp-form-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--sp-line);
    padding: 36px 38px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.sp-form-head {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sp-line);
}

.sp-form-head h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sp-ink);
}

.sp-form-head p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 0.88rem;
}

.sp-form { display: flex; flex-direction: column; gap: 24px; }

.sp-fieldset {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-fieldset-title {
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sp-ink);
}

.sp-fieldset-num {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.sp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sp-ink-soft);
}

.sp-field-label em {
    font-style: normal;
    color: #ef4444;
    margin-left: 2px;
}

.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field input[type="tel"],
.sp-field input[type="password"],
.sp-field input[type="number"],
.sp-field select,
.sp-field textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--sp-line-2);
    background: #fff;
    color: var(--sp-ink);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
    outline: none;
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.sp-field input::placeholder,
.sp-field textarea::placeholder {
    color: var(--sp-subtle);
}

.sp-field-help {
    font-size: 0.76rem;
    color: var(--sp-muted);
    line-height: 1.55;
}

.sp-field-with-action {
    display: flex;
    gap: 10px;
}

.sp-field-with-action input {
    flex: 1;
}

.sp-field-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sp-field-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.4);
    color: #fff;
}

.sp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sp-line);
    margin-top: 8px;
}

.sp-actions-hint {
    margin: 0;
    color: var(--sp-muted);
    font-size: 0.84rem;
}

.sp-actions-hint a {
    color: var(--sp-accent);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}


/* ============================================================
   套餐开通页
   ============================================================ */

.sp-plans-hero {
    text-align: center;
    margin-bottom: 50px;
}

.sp-plans-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-plans-hero p {
    margin: 0 auto;
    color: var(--sp-ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 640px;
}

/* 套餐网格 */
.sp-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-bottom: 80px;
}

.sp-plan-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--sp-line);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.18);
}

.sp-plan-card.is-featured {
    background: linear-gradient(180deg, #fff, #f5f3ff);
    border-color: var(--sp-accent);
    box-shadow: 0 18px 46px rgba(99, 102, 241, 0.24);
    transform: scale(1.04);
}

.sp-plan-card.is-featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.sp-plan-ribbon {
    position: absolute;
    top: 0;
    right: 28px;
    transform: translateY(-50%);
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sp-plan-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sp-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sp-plan-name {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
}

.sp-plan-tagline {
    margin: 0;
    color: var(--sp-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.sp-plan-price {
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
    border: 1px solid var(--sp-line);
}

.sp-plan-price strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.sp-plan-price small {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--sp-muted);
}

.sp-plan-quotas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.sp-plan-quota {
    padding: 12px 8px;
    border-radius: 10px;
    background: var(--sp-bg-alt);
    border: 1px solid var(--sp-line);
}

.sp-plan-quota span {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sp-accent);
    letter-spacing: -0.02em;
}

.sp-plan-quota small {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: var(--sp-muted);
}

.sp-plan-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-plan-feats li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--sp-ink-soft);
    line-height: 1.55;
}

.sp-plan-feats li svg {
    color: var(--sp-success);
    flex-shrink: 0;
    margin-top: 4px;
}

.sp-plan-card .sp-btn { width: 100%; }

/* 空状态 */
.sp-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed var(--sp-line-2);
    text-align: center;
    color: var(--sp-muted);
}

.sp-empty h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--sp-ink);
}

/* ============================================================
   申请弹窗
   ============================================================ */

.sp-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.sp-modal[hidden] { display: none; }

.sp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.sp-modal-card {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 24px;
    background: #fff;
    padding: 40px 36px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.3);
    animation: spModalIn 0.3s ease;
}

@keyframes spModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--sp-bg-alt);
    color: var(--sp-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sp-modal-close:hover {
    background: var(--sp-accent);
    color: #fff;
}

.sp-modal-head {
    margin-bottom: 24px;
}

.sp-modal-head h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sp-ink);
}

.sp-modal-head p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.sp-modal-form .sp-actions {
    flex-direction: row;
    justify-content: flex-end;
    border-top: 1px solid var(--sp-line);
    padding-top: 18px;
}

/* ============================================================
   提交成功页
   ============================================================ */

.sp-success-card {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 60px 50px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--sp-line);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
    text-align: center;
}

.sp-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-success), #34d399);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.4);
    animation: spSuccessIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spSuccessIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.sp-success-card h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--sp-ink);
    letter-spacing: -0.02em;
}

.sp-success-card > p {
    margin: 0 0 8px;
    color: var(--sp-muted);
}

.sp-success-card > p strong {
    color: var(--sp-accent);
    font-family: "JetBrains Mono", monospace;
}

.sp-success-note {
    color: var(--sp-ink-soft) !important;
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 540px;
    margin: 16px auto 36px !important;
}

.sp-success-flow {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.sp-success-step {
    flex: 1;
    min-width: 110px;
    padding: 16px 12px;
    border-radius: 14px;
    background: var(--sp-bg-alt);
    border: 1px solid var(--sp-line);
    text-align: center;
    opacity: 0.55;
}

.sp-success-step.is-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.06));
    border-color: var(--sp-accent);
    opacity: 1;
}

.sp-success-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sp-bg);
    color: var(--sp-muted);
    font-weight: 800;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
}

.sp-success-step.is-active .sp-success-step-num {
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
    color: #fff;
}

.sp-success-step strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--sp-ink);
    margin-bottom: 4px;
}

.sp-success-step small {
    display: block;
    font-size: 0.74rem;
    color: var(--sp-muted);
}

.sp-success-arrow {
    align-self: center;
    color: var(--sp-subtle);
    font-size: 1.4rem;
    font-weight: 800;
}

.sp-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
    .sp-register-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .sp-nav { padding: 10px 16px; gap: 12px; }
    .sp-page { padding: 36px 16px; }
    .sp-form-card { padding: 28px 22px; }
    .sp-grid-2 { grid-template-columns: 1fr; }

    .sp-field-with-action {
        flex-direction: column;
    }

    .sp-field-action {
        height: 38px;
        justify-content: center;
    }

    .sp-plan-card.is-featured {
        transform: none;
    }

    .sp-plan-card.is-featured:hover {
        transform: translateY(-4px);
    }

    .sp-modal-card { padding: 28px 22px; }
    .sp-modal-form .sp-actions {
        flex-direction: column-reverse;
    }
    .sp-modal-form .sp-actions .sp-btn { width: 100%; }

    .sp-success-card { padding: 40px 28px; }
    .sp-success-flow {
        flex-direction: column;
    }
    .sp-success-arrow {
        transform: rotate(90deg);
    }
}


/* ===== 全宽：覆盖 main 布局的 site-shell 容器约束 ===== */
.school-register-page .site-shell,
.school-plans-page .site-shell {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.school-register-page .page-content,
.school-plans-page .page-content {
    padding: 0 !important;
    gap: 0 !important;
    display: block !important;
}

.school-register-page .alert,
.school-plans-page .alert {
    margin: 16px auto;
    max-width: 1200px;
}


/* ============================================================
   /school/register · 全新视觉（白色主题）
   命名空间: .sr-*
   ============================================================ */

.school-register-page {
    --sr-bg: #fafbff;
    --sr-bg-2: #f0f2fa;
    --sr-ink: #0f172a;
    --sr-ink-soft: #334155;
    --sr-muted: #64748b;
    --sr-subtle: #94a3b8;
    --sr-line: rgba(99, 102, 241, 0.1);
    --sr-line-2: rgba(99, 102, 241, 0.22);
    --sr-accent: #6366f1;
    --sr-accent-2: #a855f7;
    --sr-accent-3: #06b6d4;
    --sr-success: #10b981;
    --sr-danger: #ef4444;

    background: var(--sr-bg);
    color: var(--sr-ink);
}

.sr-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 装饰背景 ===== */
.sr-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(168, 85, 247, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(6, 182, 212, 0.05), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--sr-bg-2) 100%);
}

.sr-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    pointer-events: none;
    animation: srFloat 14s ease-in-out infinite;
}

.sr-glow--a {
    width: 540px; height: 540px;
    left: -140px; top: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 70%);
}

.sr-glow--b {
    width: 600px; height: 600px;
    right: -160px; top: 30%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 70%);
    animation-delay: -5s;
    animation-duration: 18s;
}

.sr-glow--c {
    width: 480px; height: 480px;
    left: 30%; bottom: -160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
    animation-delay: -9s;
    animation-duration: 16s;
}

@keyframes srFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.sr-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(800px) rotateX(60deg);
    transform-origin: center top;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
    opacity: 0.7;
}

/* ===== 主体 ===== */
.sr-main {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

/* ===== Hero ===== */
.sr-hero {
    text-align: center;
    margin-bottom: 36px;
    animation: srFadeUp 0.8s ease both;
}

.sr-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--sr-accent);
    margin-bottom: 22px;
}

.sr-hero-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sr-success);
    box-shadow: 0 0 12px var(--sr-success);
}

.sr-hero-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--sr-success);
    opacity: 0.6;
    animation: srPing 1.6s ease-out infinite;
}

@keyframes srPing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.sr-hero-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--sr-ink);
}

.sr-hero-gradient {
    display: inline-block;
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-accent-2) 50%, var(--sr-accent-3) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: srGradShift 8s ease infinite;
}

@keyframes srGradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sr-hero-desc {
    margin: 0;
    color: var(--sr-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== 步骤指示器 ===== */
.sr-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    animation: srFadeUp 0.8s ease 0.1s both;
}

.sr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sr-step-dot {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--sr-line-2);
    color: var(--sr-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.sr-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sr-muted);
    transition: color 0.3s ease;
}

.sr-step.is-active .sr-step-dot {
    background: linear-gradient(135deg, var(--sr-accent), var(--sr-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.sr-step.is-active .sr-step-label {
    color: var(--sr-accent);
}

.sr-step.is-current .sr-step-dot {
    transform: scale(1.12);
}

.sr-step.is-current .sr-step-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--sr-accent);
    opacity: 0.5;
    animation: srPing 2s ease-out infinite;
}

.sr-step-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--sr-line-2), var(--sr-line));
    margin: 0 12px;
    align-self: flex-start;
    margin-top: 17px;
    border-radius: 999px;
}

/* ===== 表单卡 ===== */
.sr-card {
    position: relative;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--sr-line);
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    animation: srFadeUp 0.8s ease 0.2s both;
}

.sr-form {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== 表单分区 ===== */
.sr-section {
    border: 0;
    padding: 0 0 24px;
    margin: 0;
    position: relative;
    min-width: 0;
}

.sr-section + .sr-section {
    padding-top: 24px;
    border-top: 1px dashed var(--sr-line);
}

.sr-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.sr-section-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--c1, var(--sr-accent)), var(--c2, var(--sr-accent-2)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.sr-section-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sr-ink);
}

.sr-section-head p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--sr-muted);
    line-height: 1.55;
}

/* ===== 字段 ===== */
.sr-grid {
    display: grid;
    gap: 14px;
}

.sr-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sr-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
}

.sr-field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--sr-ink-soft);
}

.sr-field-required {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--sr-danger);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sr-field-optional {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.06);
    color: var(--sr-subtle);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sr-field input[type="text"],
.sr-field input[type="email"],
.sr-field input[type="tel"],
.sr-field input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--sr-line-2);
    background: #ffffff;
    color: var(--sr-ink);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sr-field input::placeholder {
    color: var(--sr-subtle);
}

.sr-field input:focus {
    outline: none;
    border-color: var(--sr-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.sr-field-hint {
    color: var(--sr-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 0 2px;
}

.sr-field-hint a {
    color: var(--sr-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* ===== 输入框带按钮 ===== */
.sr-input-with-action {
    position: relative;
    display: flex;
    gap: 10px;
}

.sr-input-with-action input {
    flex: 1;
    min-width: 0;
}

.sr-input-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sr-accent), var(--sr-accent-2));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sr-input-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.42);
    color: #fff;
}

.sr-input-action svg { flex-shrink: 0; }

/* ===== 密码可见切换 ===== */
.sr-input-with-toggle {
    position: relative;
}

.sr-input-with-toggle input {
    padding-right: 50px !important;
}

.sr-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--sr-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sr-pw-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--sr-accent);
}

.sr-pw-toggle.is-active {
    color: var(--sr-accent);
}

/* ===== 提交区 ===== */
.sr-foot {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--sr-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sr-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 36px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, var(--sr-accent) 0%, var(--sr-accent-2) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 16px 36px rgba(99, 102, 241, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sr-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.32), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.65s ease;
}

.sr-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 44px rgba(168, 85, 247, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.sr-submit:hover::before {
    transform: translateX(100%);
}

.sr-submit:active {
    transform: translateY(0);
}

.sr-submit-arrow {
    transition: transform 0.2s ease;
}

.sr-submit:hover .sr-submit-arrow {
    transform: translateX(4px);
}

.sr-foot-hint {
    margin: 0;
    color: var(--sr-muted);
    font-size: 0.82rem;
}

.sr-foot-hint a {
    color: var(--sr-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* ===== 信任徽章 ===== */
.sr-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 32px;
    animation: srFadeUp 0.8s ease 0.3s both;
}

.sr-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--sr-line);
    backdrop-filter: blur(10px);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sr-trust-item:hover {
    border-color: var(--sr-line-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

.sr-trust-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c1, var(--sr-accent)), var(--c2, var(--sr-accent-2)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-trust-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--sr-ink);
}

.sr-trust-item small {
    display: block;
    font-size: 0.76rem;
    color: var(--sr-muted);
    margin-top: 2px;
}

/* ===== 入场动画 ===== */
@keyframes srFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式 ===== */
@media (max-width: 720px) {
    .sr-main {
        padding: 24px 18px 60px;
    }

    .sr-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .sr-stepper {
        gap: 0;
    }

    .sr-step-line {
        width: 24px;
        margin: 0 6px;
        margin-top: 17px;
    }

    .sr-step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .sr-step-label {
        font-size: 0.7rem;
    }

    .sr-form {
        padding: 24px 22px;
    }

    .sr-section-head {
        gap: 12px;
    }

    .sr-section-icon {
        width: 36px;
        height: 36px;
    }

    .sr-grid-2 {
        grid-template-columns: 1fr;
    }

    .sr-input-with-action {
        flex-direction: column;
    }

    .sr-input-action {
        height: 42px;
        justify-content: center;
    }

    .sr-submit {
        width: 100%;
        height: 52px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .sr-step-line {
        width: 16px;
        margin: 0 4px;
    }

    .sr-step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .sr-step-label {
        font-size: 0.66rem;
    }

    .sr-form {
        padding: 20px 18px;
    }
}


/* ===== CSS 兜底：隐藏默认 site-header 和 site-footer ===== */
/* 即使 main.php 因 PHP OPcache 未更新仍然渲染了默认导航，也能用 CSS 把它藏起来 */
.school-register-page > body > .site-header,
.school-register-page > body > .site-footer,
.school-plans-page > body > .site-header,
.school-plans-page > body > .site-footer,
body.school-register-page > .site-header,
body.school-register-page > .site-footer,
body.school-plans-page > .site-header,
body.school-plans-page > .site-footer,
.school-register-page .site-header,
.school-register-page .site-footer,
.school-plans-page .site-header,
.school-plans-page .site-footer {
    display: none !important;
}


/* ============================================================
   /school/register · 输入框可见性强保险
   解决某些浏览器/缓存下输入框看不见的问题
   ============================================================ */

.school-register-page .sr-card,
.school-register-page .sr-card form,
.school-register-page .sr-form,
.school-register-page .sr-section {
    display: block !important;
}

.school-register-page .sr-grid {
    display: grid !important;
    gap: 14px;
}

.school-register-page .sr-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.school-register-page .sr-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    min-width: 0;
}

/* 强制输入框可见 - 高特异性 */
.school-register-page .sr-card input[type="text"],
.school-register-page .sr-card input[type="email"],
.school-register-page .sr-card input[type="tel"],
.school-register-page .sr-card input[type="password"],
.school-register-page .sr-card input[type="number"],
.school-register-page .sr-card input[type="search"],
.school-register-page .sr-card input[type="url"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 13px 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    outline: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.school-register-page .sr-card input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.school-register-page .sr-card input:focus,
.school-register-page .sr-card input:focus-visible {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
    outline: 0 !important;
}

/* 密码切换按钮场景 */
.school-register-page .sr-input-with-toggle {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.school-register-page .sr-input-with-toggle input {
    padding-right: 50px !important;
}

/* 授权码输入框 + 按钮场景 */
.school-register-page .sr-input-with-action {
    display: flex !important;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.school-register-page .sr-input-with-action > input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.school-register-page .sr-input-with-action > .sr-input-action {
    flex: 0 0 auto;
}

/* 标签 row */
.school-register-page .sr-field-row-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
    margin: 0 !important;
}

/* 修复 fieldset 残留问题（虽然已改用 div） */
.school-register-page fieldset.sr-section,
.school-register-page .sr-card fieldset {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 移除可能继承的奇怪样式 */
.school-register-page .sr-card,
.school-register-page .sr-card * {
    box-sizing: border-box;
}

/* 防止任何外部样式把输入框背景染成透明 */
.school-register-page .sr-form input,
.school-register-page .sr-form select,
.school-register-page .sr-form textarea {
    background: #fff !important;
    color: #0f172a !important;
}

/* 移动端 */
@media (max-width: 720px) {
    .school-register-page .sr-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .school-register-page .sr-input-with-action {
        flex-direction: column !important;
    }
    .school-register-page .sr-input-with-action > .sr-input-action {
        width: 100%;
        height: 42px;
        justify-content: center;
    }
}


/* ============================================================
   /school/register · v2 全新双列卡片设计
   命名空间: .sr2-*
   ============================================================ */

.school-register-page {
    --sr2-bg: #f7f8fc;
    --sr2-bg-2: #eef1fa;
    --sr2-card: #ffffff;
    --sr2-ink: #0f172a;
    --sr2-ink-soft: #334155;
    --sr2-muted: #64748b;
    --sr2-subtle: #94a3b8;
    --sr2-line: rgba(99, 102, 241, 0.1);
    --sr2-line-2: rgba(99, 102, 241, 0.18);
    --sr2-border: #e2e8f0;
    --sr2-accent: #6366f1;
    --sr2-accent-2: #a855f7;
    --sr2-accent-3: #06b6d4;
    --sr2-success: #10b981;
    --sr2-danger: #ef4444;
    --sr2-warm: #f59e0b;

    background: var(--sr2-bg);
    color: var(--sr2-ink);
    min-height: 100vh;
}

.sr2-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 装饰背景 */
.sr2-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(168, 85, 247, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(6, 182, 212, 0.05), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--sr2-bg-2) 100%);
}

.sr2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
    animation: sr2Float 14s ease-in-out infinite;
}

.sr2-glow--a {
    width: 540px; height: 540px;
    left: -140px; top: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 70%);
}

.sr2-glow--b {
    width: 600px; height: 600px;
    right: -180px; top: 30%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 70%);
    animation-delay: -5s;
    animation-duration: 18s;
}

.sr2-glow--c {
    width: 480px; height: 480px;
    left: 30%; bottom: -160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
    animation-delay: -9s;
    animation-duration: 16s;
}

@keyframes sr2Float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.sr2-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(800px) rotateX(60deg);
    transform-origin: center top;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
    opacity: 0.7;
}

/* ===== 主体 ===== */
.sr2-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

/* Hero */
.sr2-hero {
    text-align: center;
    margin-bottom: 36px;
    animation: sr2FadeUp 0.7s ease both;
}

.sr2-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--sr2-accent);
    margin-bottom: 20px;
}

.sr2-hero-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sr2-success);
    box-shadow: 0 0 12px var(--sr2-success);
}

.sr2-hero-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--sr2-success);
    opacity: 0.6;
    animation: sr2Ping 1.6s ease-out infinite;
}

@keyframes sr2Ping {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.sr2-hero-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--sr2-ink);
}

.sr2-hero-gradient {
    display: inline-block;
    background: linear-gradient(135deg, var(--sr2-accent) 0%, var(--sr2-accent-2) 50%, var(--sr2-accent-3) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: sr2GradShift 8s ease infinite;
}

@keyframes sr2GradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sr2-hero-desc {
    margin: 0;
    color: var(--sr2-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ===== 双列布局 ===== */
.sr2-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    animation: sr2FadeUp 0.7s ease 0.1s both;
}

/* ============================================================
   左侧：授权码强调卡 + 流程时间线
   ============================================================ */
.sr2-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

/* 授权码卡片（紫蓝渐变） */
.sr2-license-card {
    position: relative;
    border-radius: 22px;
    padding: 28px 24px;
    background: linear-gradient(160deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 24px 50px rgba(99, 102, 241, 0.32);
    overflow: hidden;
}

.sr2-license-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 50%);
    animation: sr2LicGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sr2LicGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, 10%); }
}

.sr2-license-card > * { position: relative; z-index: 1; }

.sr2-license-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.sr2-license-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.sr2-license-head h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.sr2-license-head small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.sr2-license-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sr2-license-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
}

.sr2-license-label em {
    font-style: normal;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sr2-license-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sr2-license-input-wrap.is-checking {
    border-color: rgba(255, 255, 255, 0.6);
}

.sr2-license-input-wrap.is-valid {
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.sr2-license-input-wrap.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

.sr2-license-input-wrap input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 13px 50px 13px 16px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
    letter-spacing: 0.04em;
    outline: 0;
}

.sr2-license-input-wrap input::placeholder {
    color: #94a3b8;
    font-family: inherit;
}

.sr2-license-status {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sr2-license-status-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
}

/* 校验中：旋转圈 */
.sr2-license-input-wrap.is-checking .sr2-license-status-dot {
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--sr2-accent);
    animation: sr2Spin 0.8s linear infinite;
}

@keyframes sr2Spin {
    to { transform: rotate(360deg); }
}

/* 校验通过：绿色对勾 */
.sr2-license-input-wrap.is-valid .sr2-license-status-dot {
    background: var(--sr2-success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.sr2-license-input-wrap.is-valid .sr2-license-status-dot::before {
    content: "";
    width: 12px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* 校验失败：红色叉 */
.sr2-license-input-wrap.is-invalid .sr2-license-status-dot {
    background: var(--sr2-danger);
}

.sr2-license-input-wrap.is-invalid .sr2-license-status-dot::before {
    content: "×";
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

/* 校验消息 */
.sr2-license-msg {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

.sr2-license-msg.is-checking,
.sr2-license-msg.is-valid,
.sr2-license-msg.is-invalid {
    display: flex;
}

.sr2-license-msg.is-checking {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.sr2-license-msg.is-valid {
    background: rgba(52, 211, 153, 0.2);
    color: #ecfdf5;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.sr2-license-msg.is-invalid {
    background: rgba(248, 113, 113, 0.2);
    color: #fef2f2;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.sr2-msg-ico {
    flex-shrink: 0;
}

.sr2-msg-ico.is-spin {
    animation: sr2Spin 0.8s linear infinite;
}

.sr2-msg-info {
    width: 100%;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
    font-size: 0.74rem;
    font-weight: 500;
    opacity: 0.92;
}

.sr2-license-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    transition: background 0.18s ease, border-color 0.18s ease;
    align-self: flex-start;
}

.sr2-license-cta:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* 流程时间线卡 */
.sr2-flow-card {
    border-radius: 20px;
    background: var(--sr2-card);
    border: 1px solid var(--sr2-line);
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sr2-flow-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--sr2-ink);
    letter-spacing: 0.02em;
}

.sr2-flow-title svg {
    color: var(--sr2-accent);
}

.sr2-flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sr2-flow;
    position: relative;
}

.sr2-flow-list li {
    position: relative;
    padding: 0 0 14px 38px;
    counter-increment: sr2-flow;
}

/* 步骤间的连接 bar */
.sr2-flow-bar {
    position: absolute;
    left: 13px;
    top: 26px;
    bottom: -2px;
    width: 2px;
    background: var(--sr2-line-2);
    opacity: 0.6;
    border-radius: 999px;
    transition: background 0.3s ease, opacity 0.3s ease;
}

/* 完成步骤的连接 bar 变绿 */
.sr2-flow-list li.is-done .sr2-flow-bar {
    background: linear-gradient(180deg, var(--sr2-success), rgba(16, 185, 129, 0.3));
    opacity: 1;
}

.sr2-flow-list li::before {
    content: counter(sr2-flow);
    position: absolute;
    left: 0;
    top: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sr2-card);
    border: 2px solid var(--sr2-line-2);
    color: var(--sr2-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

/* 已完成步骤：绿色对勾 */
.sr2-flow-list li.is-done::before {
    background: var(--sr2-success);
    border-color: transparent;
    color: #fff;
    content: "✓";
    font-size: 0.84rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 当前进行中：紫色脉冲圈 */
.sr2-flow-list li.is-current::before {
    background: linear-gradient(135deg, var(--sr2-accent), var(--sr2-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sr2-flow-list li.is-current::after {
    content: "";
    position: absolute;
    left: -3px;
    top: -5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--sr2-accent);
    opacity: 0.5;
    animation: sr2FlowPing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes sr2FlowPing {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* 当前步骤的标题高亮 */
.sr2-flow-list li.is-current strong {
    color: var(--sr2-accent);
}

/* 已完成步骤的副文 + 划过效果 */
.sr2-flow-list li.is-done strong {
    color: var(--sr2-ink);
}

.sr2-flow-list li.is-done span {
    color: var(--sr2-success);
}

.sr2-flow-list li.is-final::before {
    background: var(--sr2-card);
    border: 2px dashed var(--sr2-line-2);
    color: var(--sr2-muted);
    content: "✓";
    box-shadow: none;
}

/* 当所有前置步骤完成，最终步骤变成实心紫色 */
.sr2-flow-list li.is-final.is-ready::before {
    background: linear-gradient(135deg, var(--sr2-accent), var(--sr2-accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    animation: sr2FlowReady 2s ease-in-out infinite;
}

.sr2-flow-list li.is-final.is-ready strong {
    color: var(--sr2-accent);
}

.sr2-flow-list li.is-final.is-ready span {
    color: var(--sr2-ink-soft);
}

@keyframes sr2FlowReady {
    0%, 100% { box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6); }
}

.sr2-flow-list li:last-child {
    padding-bottom: 0;
}

.sr2-flow-list strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--sr2-ink);
    margin-bottom: 2px;
}

.sr2-flow-list span {
    display: block;
    font-size: 0.76rem;
    color: var(--sr2-muted);
    line-height: 1.55;
}

/* ============================================================
   右侧：表单卡
   ============================================================ */
.sr2-form-card {
    background: var(--sr2-card);
    border: 1px solid var(--sr2-line);
    border-radius: 22px;
    padding: 32px 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.sr2-card-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sr2-line);
}

.sr2-card-eyebrow {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--sr2-accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

.sr2-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sr2-ink);
    letter-spacing: -0.01em;
}

.sr2-card-head p {
    margin: 0;
    color: var(--sr2-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* 分块 */
.sr2-block {
    padding: 0 0 28px;
}

.sr2-block + .sr2-block {
    padding-top: 28px;
    border-top: 1px dashed var(--sr2-line);
}

.sr2-block-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sr2-block-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--c1, var(--sr2-accent)), var(--c2, var(--sr2-accent-2)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
}

.sr2-block-head h3 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sr2-ink);
}

.sr2-block-head small {
    font-size: 0.8rem;
    color: var(--sr2-muted);
}

/* 字段 */
.sr2-fields {
    display: grid;
    gap: 16px;
}

.sr2-fields--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sr2-fld {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px;
    min-width: 0;
}

.sr2-fld-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sr2-ink-soft);
    padding: 0 2px;
}

.sr2-fld-label em {
    font-style: normal;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.sr2-fld-label em.req {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sr2-danger);
}

.sr2-fld-label em.opt {
    background: rgba(99, 102, 241, 0.06);
    color: var(--sr2-subtle);
}

.sr2-fld input[type="text"],
.sr2-fld input[type="email"],
.sr2-fld input[type="tel"],
.sr2-fld input[type="password"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--sr2-border) !important;
    background: #ffffff !important;
    color: var(--sr2-ink) !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    outline: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sr2-fld input::placeholder {
    color: var(--sr2-subtle) !important;
    opacity: 1 !important;
}

.sr2-fld input:focus,
.sr2-fld input:focus-visible {
    border-color: var(--sr2-accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* 密码切换 */
.sr2-input-pw {
    position: relative;
}

.sr2-input-pw input {
    padding-right: 44px !important;
}

.sr2-pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--sr2-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sr2-pw-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--sr2-accent);
}

.sr2-pw-toggle.is-active {
    color: var(--sr2-accent);
}

/* 提交 */
.sr2-foot {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--sr2-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sr2-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 36px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, var(--sr2-accent), var(--sr2-accent-2));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.36);
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sr2-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.32), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sr2-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.46);
}

.sr2-submit:hover::before {
    transform: translateX(100%);
}

.sr2-submit svg {
    transition: transform 0.18s ease;
}

.sr2-submit:hover svg {
    transform: translateX(4px);
}

.sr2-foot-hint {
    margin: 0;
    color: var(--sr2-muted);
    font-size: 0.82rem;
}

.sr2-foot-hint a {
    color: var(--sr2-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* 入场动画 */
@keyframes sr2FadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 1024px) {
    .sr2-layout {
        grid-template-columns: 1fr;
    }

    .sr2-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .sr2-main { padding: 24px 16px 60px; }
    .sr2-form-card { padding: 24px 22px; }
    .sr2-license-card { padding: 24px 20px; }
    .sr2-fields--2col { grid-template-columns: 1fr !important; }

    .sr2-submit {
        width: 100%;
        justify-content: center;
        height: 50px;
    }
}
