:root {
    --page: #08090d;
    --surface: rgba(19, 21, 31, .8);
    --surface-solid: #141620;
    --text: #f7f7fb;
    --muted: #989ba9;
    --muted-light: #c6c8d1;
    --purple: #8c67ff;
    --purple-light: #beaaff;
    --blue: #54cfff;
    --green: #59e6ae;
    --orange: #ffb45b;
    --red: #ff7373;
    --line: rgba(255, 255, 255, .085);
    --line-light: rgba(255, 255, 255, .14);
    --shadow: 0 28px 80px rgba(0, 0, 0, .42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--page);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    z-index: -5;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(140, 103, 255, .16), transparent 30%),
        radial-gradient(circle at 92% 15%, rgba(84, 207, 255, .08), transparent 28%),
        linear-gradient(180deg, #08090d, #090a0f 55%, #07080b);
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    color: #fff;
    background: rgba(140, 103, 255, .7);
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.background-effects {
    position: fixed;
    z-index: -4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.background-orb {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbMove 15s ease-in-out infinite alternate;
}

.background-orb-one {
    top: -260px;
    left: -190px;
    background: rgba(140, 103, 255, .12);
}

.background-orb-two {
    top: 260px;
    right: -300px;
    background: rgba(84, 207, 255, .07);
    animation-delay: -7s;
}

@keyframes orbMove {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(70px, 40px, 0) scale(1.12);
    }
}

.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(
        circle,
        rgba(140, 103, 255, .1),
        rgba(84, 207, 255, .03) 36%,
        transparent 70%
    );
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .25s ease;
}

.header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    transition:
        background .25s ease,
        border-color .25s ease,
        backdrop-filter .25s ease;
}

.header.scrolled {
    border-color: var(--line);
    background: rgba(8, 9, 13, .8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: linear-gradient(145deg, #8c67ff, #54cfff);
    box-shadow: 0 12px 30px rgba(140, 103, 255, .22);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-x {
    color: var(--purple-light);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.navigation a {
    transition: color .2s ease;
}

.navigation a:hover,
.navigation a.active {
    color: #fff;
}

.navigation .nav-button {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(140, 103, 255, .3);
    border-radius: 12px;
    color: #dfd5ff;
    background: rgba(140, 103, 255, .1);
}

.navigation .nav-button:hover {
    border-color: rgba(140, 103, 255, .55);
    background: rgba(140, 103, 255, .18);
}

.subpage-hero {
    padding: 150px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #717583;
    font-size: 12px;
}

.breadcrumb a {
    transition: color .2s ease;
}

.breadcrumb a:hover {
    color: var(--purple-light);
}

.breadcrumb-separator {
    color: #484c59;
}

.page-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid rgba(140, 103, 255, .22);
    border-radius: 999px;
    color: #cbbfff;
    background: rgba(140, 103, 255, .08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
}

.page-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 0 5px rgba(140, 103, 255, .08);
}

.subpage-hero h1 {
    max-width: 820px;
    margin: 20px 0 16px;
    font-size: clamp(44px, 7vw, 74px);
    line-height: 1.08;
    letter-spacing: -2.7px;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(
        100deg,
        #fff 5%,
        #c9bbff 48%,
        #72ddff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
}

.page-description {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 23px;
    color: #686c79;
    font-size: 12px;
}

.page-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.page-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #555a68;
}

.page-content {
    padding: 12px 0 90px;
}

.content-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 35px;
}

.side-navigation {
    position: sticky;
    top: 105px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18, 20, 29, .7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.side-navigation-title {
    padding: 8px 10px 13px;
    color: #686c79;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.side-navigation a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 10px;
    color: #8d91a0;
    font-size: 13px;
    font-weight: 650;
    transition:
        color .2s ease,
        background .2s ease;
}

.side-navigation a:hover {
    color: #fff;
    background: rgba(140, 103, 255, .08);
}

.content-list {
    display: grid;
    gap: 18px;
}

.content-card {
    padding: 31px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(140, 103, 255, .055), transparent 34%),
        var(--surface);
}

.content-card h2 {
    margin: 0 0 15px;
    font-size: 25px;
    line-height: 1.3;
}

.content-card h3 {
    margin: 25px 0 10px;
    font-size: 17px;
}

.content-card p {
    margin: 0 0 15px;
    color: var(--muted);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol {
    margin: 14px 0 0;
    padding-left: 22px;
    color: var(--muted);
}

.content-card li {
    margin: 9px 0;
    padding-left: 4px;
}

.content-card strong {
    color: var(--muted-light);
}

.info-box {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(140, 103, 255, .18);
    border-radius: 14px;
    color: #b8accf;
    background: rgba(140, 103, 255, .06);
    font-size: 13px;
}

.warning-box {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 180, 91, .18);
    border-radius: 14px;
    color: #d3b184;
    background: rgba(255, 180, 91, .055);
    font-size: 13px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    min-height: 180px;
    position: relative;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition:
        transform .25s ease,
        border-color .25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(140, 103, 255, .28);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 21px;
    border: 1px solid rgba(140, 103, 255, .18);
    border-radius: 13px;
    color: var(--purple-light);
    background: rgba(140, 103, 255, .09);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-value {
    display: inline-block;
    margin-top: 17px;
    color: #d7ccff;
    font-size: 14px;
    font-weight: 750;
    word-break: break-all;
}

.contact-value:hover {
    color: #fff;
}

.action-panel {
    margin-top: 35px;
    padding: 40px;
    border: 1px solid rgba(140, 103, 255, .2);
    border-radius: 27px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(140, 103, 255, .16), transparent 55%),
        var(--surface);
}

.action-panel h2 {
    margin: 0 0 9px;
    font-size: 30px;
}

.action-panel p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 850;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.button-primary {
    color: #090a0f;
    background: linear-gradient(135deg, #baa6ff, #6adcf3);
    box-shadow: 0 17px 38px rgba(140, 103, 255, .2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(140, 103, 255, .3);
}

.button-secondary {
    border-color: var(--line-light);
    background: rgba(255, 255, 255, .04);
}

.button-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .07);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.error-page {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 130px 0 60px;
}

.error-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    position: relative;
    color: transparent;
    background: linear-gradient(135deg, #fff, #b7a3ff, #63d6f2);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(110px, 24vw, 240px);
    font-weight: 950;
    line-height: .85;
    letter-spacing: -12px;
}

.error-code::after {
    content: "404";
    position: absolute;
    z-index: -1;
    top: 16px;
    left: 50%;
    width: 100%;
    color: rgba(140, 103, 255, .16);
    filter: blur(25px);
    transform: translateX(-50%);
}

.error-content h1 {
    margin: 34px 0 12px;
    font-size: clamp(31px, 6vw, 48px);
    line-height: 1.2;
}

.error-content p {
    max-width: 580px;
    margin: 0 auto 27px;
    color: var(--muted);
}

.footer {
    margin-top: 60px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    color: #6e7280;
    font-size: 12px;
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    color: #c6c8d1;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a:hover {
    color: #fff;
}

.reveal {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(28px);
    transition:
        opacity .72s ease,
        filter .72s ease,
        transform .72s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (max-width: 820px) {
    .navigation a:not(.nav-button) {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .side-navigation {
        position: static;
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    .side-navigation::-webkit-scrollbar {
        display: none;
    }

    .side-navigation-title {
        display: none;
    }

    .side-navigation a {
        flex: 0 0 auto;
        padding: 0 13px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1080px);
    }

    .navbar {
        min-height: 66px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-icon {
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }

    .navigation .nav-button {
        min-height: 38px;
        padding: 0 14px;
    }

    .subpage-hero {
        padding: 115px 0 50px;
    }

    .subpage-hero h1 {
        letter-spacing: -1.8px;
    }

    .page-description {
        font-size: 15px;
    }

    .page-content {
        padding-bottom: 60px;
    }

    .content-card {
        padding: 22px;
        border-radius: 19px;
    }

    .content-card h2 {
        font-size: 21px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 160px;
    }

    .action-panel {
        padding: 32px 20px;
    }

    .button-group {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .error-code {
        letter-spacing: -7px;
    }

    .footer {
        margin-top: 40px;
    }
}

@media (pointer: coarse) {
    .cursor-light {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .cursor-light {
        display: none;
    }

    .reveal {
        opacity: 1;
        filter: none;
        transform: none;
    }
}