﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --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: 4px;
}

* {
    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: var(--bg1);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}


a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 18px;
    display: flex;
    min-height: calc(100vh - 32px - env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 520px;
    border-radius: calc(var(--radius));
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(220px 140px at 15% 30%, rgba(255,255,255,.10), transparent 60%), radial-gradient(280px 180px at 85% 10%, rgba(255,255,255,.08), transparent 62%);
    pointer-events: none;
}

.inner {
    position: relative;
    padding: 16px 16px 14px;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.brand .t {
    font-weight: 980;
    letter-spacing: .2px;
    font-size: 13px;
    color: rgba(234,240,255,.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghost {
    flex: 0 0 auto;
    border-radius: 4px;
    padding: 10px 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;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ghost svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.hero {
    margin-top: 12px;
    padding: 14px 12px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    text-align: center;
}

.icon {
    width: 58px;
    height: 58px;
    margin: 2px auto 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.icon:after {
    content: "";
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.14), transparent 65%);
    transform: rotate(12deg);
    animation: shine 2.2s ease-in-out infinite;
    pointer-events: none;
    opacity: .7;
}

@keyframes shine {
    0% {
        transform: translateX(-40%) rotate(12deg);
        opacity: .15;
    }

    40% {
        opacity: .7;
    }

    100% {
        transform: translateX(40%) rotate(12deg);
        opacity: .15;
    }
}

h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .2px;
}

p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.chips {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.82);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.chip svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.progress {
    margin-top: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 10px 10px;
}

.prow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(234,240,255,.72);
    font-size: 12px;
}

.bar {
    margin-top: 8px;
    height: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.bar i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(124,92,255,.90), rgba(48,213,200,.85));
    animation: load 1.6s ease-in-out infinite;
}

@keyframes load {
    0% {
        width: 12%;
        opacity: .55;
    }

    40% {
        width: 72%;
        opacity: 1;
    }

    100% {
        width: 18%;
        opacity: .55;
    }
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 120px;
    border-radius: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.12));
    border-color: rgba(255,255,255,.18);
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: .92;
}

.footer {
    margin-top: 12px;
    text-align: center;
    color: rgba(234,240,255,.55);
    font-size: 12px;
    line-height: 1.6;
}

@media (min-width: 720px) {
    .wrap {
        padding: 18px 18px 22px;
    }

    h1 {
        font-size: 20px;
    }
}
.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;
}

/* footer compact mobile override */
@media (max-width: 640px) {
    .site-footer {
        padding: 12px 8px calc(14px + env(safe-area-inset-bottom));
    }

    .law-note {
        margin-bottom: 6px !important;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .footer-inner {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.4;
        padding-bottom: 1px;
    }

    .footer-links a,
    .footer-links .sep {
        flex: 0 0 auto;
    }

    .footer-links a {
        padding: 1px 2px;
        font-size: 11px;
    }

    .footer-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 0;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.3;
        font-size: 11px;
    }

    .footer-meta > div {
        flex: 0 0 auto;
    }

    .footer-meta .slogan {
        margin-top: 0;
        font-size: 10px;
    }

    .law-note::-webkit-scrollbar,
    .footer-links::-webkit-scrollbar,
    .footer-meta::-webkit-scrollbar {
        display: none;
    }

    .login-footer {
        padding: 0 8px calc(env(safe-area-inset-bottom) + 14px);
    }

    .login-footer .footer-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        font-size: 11px;
        line-height: 1.4;
    }

    .login-footer .footer-links a,
    .login-footer .sep {
        flex: 0 0 auto;
    }

    .login-footer .footer-note {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .login-footer .footer-links::-webkit-scrollbar,
    .login-footer .footer-note::-webkit-scrollbar {
        display: none;
    }
}

/* background repeat guard */
body {
    background-repeat: no-repeat;
}

