:root {
    --bg: #0b1622;
    --panel: #132233;
    --line: rgba(255,255,255,0.08);
    --text: #eef3f8;
    --muted: #9eb0c3;
    --accent: #2bb673;
    --accent-2: #3d8bfd;
    --danger: #ef6b6b;
    --radius: 14px;
    --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(ellipse at 15% 10%, rgba(43,182,115,.18), transparent 42%),
        radial-gradient(ellipse at 85% 0%, rgba(61,139,253,.16), transparent 40%),
        linear-gradient(165deg, #0a1320, #101c2b 50%, #0d1826);
}

.wrap {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 100px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: 0.5px;
}
.hero p {
    margin: 0 0 28px;
    color: #a8b6c7;
    line-height: 1.6;
    max-width: 560px;
}

.panel {
    background: rgba(19, 34, 51, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
}
.panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #9eb0c3;
}
input {
    border: 1px solid var(--line);
    background: #0d1a28;
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}
button, .btn {
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--accent);
    color: #062315;
    font-weight: 650;
    cursor: pointer;
    font: inherit;
}
button:hover, .btn:hover { filter: brightness(1.06); }
.btn-ghost {
    background: transparent;
    color: #cfe0f0;
    border: 1px solid var(--line);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.msg {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}
.msg.ok { color: #74e0ad; }
.msg.err { color: var(--danger); }
.license-box {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,.2);
    font-size: 14px;
    line-height: 1.7;
}
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* 弹窗 */
.popup-mask {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 18, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.popup-mask.show { display: flex; }
.popup {
    width: min(460px, 100%);
    background: #15283c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    overflow: hidden;
    animation: popIn .28s ease;
}
@keyframes popIn {
    from { transform: translateY(12px) scale(.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.popup-head {
    padding: 16px 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.popup-head h3 {
    margin: 0;
    font-size: 18px;
}
.popup-close {
    background: transparent;
    border: none;
    color: #9eb0c3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.popup-body {
    padding: 12px 18px 8px;
    color: #c7d4e2;
    line-height: 1.7;
    font-size: 14px;
    max-height: 50vh;
    overflow: auto;
}
.popup-body p { margin: 0 0 8px; }
.popup-foot {
    padding: 8px 18px 18px;
    display: flex;
    justify-content: flex-end;
}
.popup-foot .btn { min-width: 110px; }

/* 底部公告条 */
.bottom-ann {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: linear-gradient(90deg, #0f6e56, #1a8f6e);
    color: #fff;
    padding: 10px 44px 10px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
    display: none;
}
.bottom-ann.show { display: block; }
.bottom-ann .bottom-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bottom-ann .bottom-title { font-weight: 700; white-space: nowrap; }
.bottom-ann .bottom-content { flex: 1; min-width: 160px; opacity: .95; }
.bottom-ann .bottom-content p { margin: 0; }
.bottom-ann .bottom-link {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}
.bottom-ann .bottom-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

@media (max-width: 720px) {
    .form-row { grid-template-columns: 1fr; }
}
