@font-face {
    font-family: "MiSans";
    src: url("../fonts/MiSans-Regular-web.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "MiSans";
    src: url("../fonts/MiSans-Bold-web.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #050707;
    --text: #f7f1f7;
    --muted: #d4c1d4;
    --card: rgba(49, 31, 50, 0.25);
    --border: rgba(139, 101, 139, 0.62);
    --btn-bg: rgba(139, 101, 139, 0.24);
    --btn-bg-hover: rgba(139, 101, 139, 0.99);
    --accent: #8b658b;
    --link: #e8c8e8;
    --font-ui: "MiSans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-tech: "MiSans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui), sans-serif;
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.glitch-layer {
    position: absolute;
    inset: 0;
}

.glitch-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.vignette-outer,
.vignette-center {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vignette-outer {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 66%);
}

.vignette-center {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 66%);
}

.content-layer {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 0 1px rgba(139, 101, 139, 0.18), 0 12px 40px rgba(11, 4, 12, 0.45);
    opacity: 1;
    transition: opacity 220ms ease;
}

.fonts-loading .content-layer {
    opacity: 0;
}

.fonts-ready .content-layer {
    opacity: 1;
}

.kicker {
    margin: 0 0 8px;
    letter-spacing: 0.28em;
    color: #c9adc9;
    font-size: 12px;
    font-family: var(--font-tech), sans-serif;
    text-transform: uppercase;
}

.title {
    margin: 0;
    font-size: clamp(30px, 6vw, 54px);
    line-height: 1.1;
    font-family: var(--font-tech), sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f1dff1;
    text-shadow: 0 0 14px rgba(139, 101, 139, 0.22);
}

.title-mobile {
    display: none;
}

.title-good {
    background: linear-gradient(120deg, #f6c7ff 0%, #a78bfa 52%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.title-desktop .title-good::after {
    content: "_";
    display: inline-block;
    margin-left: 0.06em;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    animation: title-cursor-blink 1s steps(1, end) infinite;
}

@keyframes title-cursor-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.title-mobile .title-good {
    font-size: 1.1em;
}

.copyright-break {
    display: inline;
}

.meta-block {
    margin-top: 18px;
    border-top: 1px solid rgba(139, 101, 139, 0.4);
    padding-top: 12px;
    font-size: 13px;
    color: #dcccdc;
    font-family: var(--font-tech), sans-serif;
}

.meta-line {
    margin: 8px 0;
}

.meta-beian {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.meta-line a {
    color: var(--link);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(139, 101, 139, 0.28);
    border-radius: 8px;
    background: rgba(139, 101, 139, 0.06);
    transition: text-shadow 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.meta-line a:hover,
.meta-line a:focus-visible {
    text-decoration: none;
    border-color: rgba(192, 146, 192, 0.62);
    background: rgba(139, 101, 139, 0.14);
    box-shadow: 0 0 10px rgba(139, 101, 139, 0.24);
    text-shadow: 0 0 7px rgba(226, 189, 226, 0.5);
}

.meta-line img {
    width: 16px;
    height: 16px;
    display: block;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 110px;
    background: var(--btn-bg);
    transition: transform 120ms ease, background-color 120ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
}


@media (max-width: 640px) {
    .content-layer {
        padding: 20px;
        text-align: center;
    }

    .title-desktop {
        display: none;
    }

    .title-mobile {
        display: inline;
    }

    .title-desktop .title-good::after {
        display: none;
    }

    .copyright-break {
        display: block;
    }

    .meta-beian {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}
