﻿: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);
    --shadow: 0 18px 40px rgba(0,0,0,.32);
    --radius: 16px;
    --danger1: #ff5c66;
    --danger2: #d91f3a;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* 核心：去掉滚动条 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 500px at 15% -10%, rgba(124,92,255,.16), transparent 60%), radial-gradient(900px 420px at 100% 0%, rgba(48,213,200,.10), transparent 60%), linear-gradient(180deg, var(--bg1), var(--bg0));
    margin: 0;
    padding: 0; /* ⚠️ 去掉原来的 padding */
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    height: 100vh;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center;
    padding: 12px; /* 用这里替代 body padding */
}

.card {
    border-radius: 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: 14px 14px 12px; /* 原来 18px → 缩小 */
}

.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.title h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .2px;
}

.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: rgba(234,240,255,.82);
    white-space: nowrap;
}

.field {
    margin-top: 10px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(234,240,255,.80);
    font-size: 12.5px;
}

.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: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
}

.input:focus-within {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.07);
}

.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);
}

.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-box {
    flex: 0 0 116px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff2f2;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    display: grid;
    place-items: center;
    padding: 0 8px;
    min-height: 48px;
}

.captcha-box:active {
    transform: scale(.98);
}

.msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    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;
}

.msg.ok {
    border-color: rgba(55,214,122,.30);
    background: rgba(55,214,122,.10);
    color: rgba(220,255,235,.92);
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 12px 12px;
    font-weight: 900;
    letter-spacing: .2px;
    transition: transform .12s ease, opacity .12s ease;
}

.btn:active {
    transform: scale(.99);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--danger1), var(--danger2));
    box-shadow: 0 16px 34px rgba(217,31,58,.28);
}

.btn-secondary {
    color: rgba(234,240,255,.92);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

.site-footer {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 12px;
    opacity: 0.6;
    text-align:center;
}

.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;
}

@media (max-width: 520px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card-inner {
        padding: 16px 14px 14px;
    }

    .title {
        align-items: flex-start;
        flex-direction: column;
    }

    .chip {
        white-space: normal;
    }

    .captcha-box {
        flex-basis: 104px;
        font-size: 20px;
        letter-spacing: 2px;
    }
}
