* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2d3d;
    background: #f7fbff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

#three-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fresh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 16%, rgba(113, 198, 255, .42), transparent 31%),
        radial-gradient(circle at 82% 18%, rgba(166, 238, 204, .48), transparent 28%),
        radial-gradient(circle at 50% 82%, rgba(255, 222, 188, .42), transparent 36%),
        linear-gradient(135deg, #f9fdff 0%, #eef9ff 42%, #fffaf3 100%);
}

.soft-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .32;
    background-image:
        linear-gradient(rgba(76, 142, 180, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 142, 180, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 84%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .72), transparent 84%);
}

.cursor-glow {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(81, 184, 255, .20), transparent 62%);
    transform: translate(-50%, -50%);
    opacity: .72;
    will-change: left, top;
}

.page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 18px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shell {
    width: min(1180px, 100%);
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
    box-shadow:
        0 34px 90px rgba(83, 147, 185, .10),
        inset 0 1px 0 rgba(255, 255, 255, .42);
    backdrop-filter: blur(1.5px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .24) 46%, transparent 74%);
    transform: translateX(-100%);
    animation: shellLight 9s ease-in-out infinite;
}

@keyframes shellLight {
    0%,
    72% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hero {
    position: relative;
    z-index: 2;
    padding: 48px 46px 18px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 42px;
    align-items: center;
    perspective: 1600px;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-left {
    transform-style: preserve-3d;
    will-change: transform;
}

.avatar-wrap {
    width: 118px;
    height: 118px;
    position: relative;
    margin-bottom: 28px;
}

.avatar-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg, #53b9ff, #8ce8be, #ffe1b8, #53b9ff);
    filter: drop-shadow(0 0 22px rgba(83, 185, 255, .32));
    animation: rotateRing 7s linear infinite;
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

.avatar {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 20px 45px rgba(83, 147, 185, .22);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .58);
    color: #628094;
    font-size: 13px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(88, 156, 196, .10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #53b9ff;
    box-shadow: 0 0 12px rgba(83, 185, 255, .7);
}

.title {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -3px;
    font-weight: 900;
    margin-bottom: 22px;
}

.title span {
    display: block;
    background: linear-gradient(120deg, #1f3d52 0%, #4298d0 48%, #4bc48c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    max-width: 610px;
    font-size: 16px;
    line-height: 1.95;
    color: #6d8494;
    margin-bottom: 30px;
}

.hero-actions {
    position: relative;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions a {
    position: relative;
    z-index: 31;
}

.btn-main,
.btn-ghost {
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, background .28s ease;
}

.btn-main {
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #4cb7ff, #55d69b);
    box-shadow: 0 18px 38px rgba(77, 183, 255, .24);
}

.btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(77, 183, 255, .34);
}

.btn-ghost {
    color: #3f6c84;
    border: 1px solid rgba(255, 255, 255, .64);
    background: rgba(255, 255, 255, .36);
    box-shadow: 0 12px 28px rgba(83, 147, 185, .09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .58);
}

.space-card {
    position: relative;
    min-height: 360px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 20%, rgba(94, 191, 255, .24), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(120, 229, 180, .24), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(239, 250, 255, .20));
    border: 1px solid rgba(255, 255, 255, .66);
    box-shadow:
        0 30px 70px rgba(87, 147, 185, .18),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    transform-style: preserve-3d;
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    will-change: transform;
}

.space-grid-card {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(67, 139, 180, .105) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 139, 180, .105) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(600px) rotateX(64deg) translateY(92px) scale(1.25);
    transform-origin: bottom;
    opacity: .46;
}

.orb {
    position: absolute;
    width: 210px;
    height: 210px;
    right: 36px;
    top: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 26%, rgba(255, 255, 255, .95), #9be6ff 22%, #7fd9b3 58%, #68bdf2 100%);
    box-shadow:
        0 0 46px rgba(103, 196, 255, .36),
        0 26px 80px rgba(91, 174, 222, .28);
    animation: floatOrb 5.8s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    from {
        transform: translate3d(0, 0, 55px);
    }

    to {
        transform: translate3d(-24px, 20px, 90px);
    }
}

.orbit {
    position: absolute;
    right: 16px;
    top: 4px;
    width: 278px;
    height: 278px;
    border: 1px solid rgba(73, 151, 198, .22);
    border-radius: 50%;
    transform: rotateX(66deg) rotateZ(-18deg);
    animation: orbitRotate 11s linear infinite;
}

@keyframes orbitRotate {
    to {
        transform: rotateX(66deg) rotateZ(342deg);
    }
}

.terminal {
    position: absolute;
    left: 26px;
    bottom: 26px;
    right: 26px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .38);
    border: 1px solid rgba(255, 255, 255, .58);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    font-family: Consolas, Monaco, monospace;
    box-shadow: 0 20px 50px rgba(79, 145, 185, .12);
}

.terminal-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(90, 148, 180, .32);
}

.terminal p {
    font-size: 13px;
    line-height: 1.8;
    color: #658191;
    word-break: break-all;
}

.terminal b {
    color: #2ca4e8;
    font-weight: 800;
}

.section {
    position: relative;
    z-index: 2;
    padding: 12px 46px 36px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: #263f52;
}

.section-desc {
    color: #8198a7;
    font-size: 13px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    perspective: 1400px;
}

.link-card {
    position: relative;
    min-height: 142px;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .46), rgba(245, 252, 255, .20));
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow: 0 18px 42px rgba(82, 145, 180, .11);
    transform-style: preserve-3d;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
    will-change: transform;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(81, 184, 255, .20), transparent 36%);
    opacity: 0;
    transition: opacity .25s ease;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    border-color: rgba(91, 190, 255, .46);
    box-shadow:
        0 28px 64px rgba(82, 145, 180, .19),
        0 0 34px rgba(81, 184, 255, .10);
}

.link-card.disabled {
    opacity: .68;
}

.link-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.link-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.link-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: 0 12px 25px rgba(83, 147, 185, .16);
    transform: translateZ(26px);
    background: rgba(255, 255, 255, .56);
}

.link-info {
    min-width: 0;
    transform: translateZ(20px);
}

.link-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 800;
    color: #2e475a;
}

.link-desc {
    font-size: 13px;
    color: #7f95a5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.badge.ok,
.badge.fast {
    color: #fff;
    background: linear-gradient(135deg, #4cb7ff, #55d69b);
    box-shadow: 0 8px 18px rgba(76, 183, 255, .20);
}

.badge.checking {
    color: #4d7c94;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .52);
}

.badge.normal {
    color: #fff;
    background: linear-gradient(135deg, #ffba5a, #ffcf75);
    box-shadow: 0 8px 18px rgba(255, 186, 90, .20);
}

.badge.slow {
    color: #fff;
    background: linear-gradient(135deg, #ff7a7a, #ff9b8a);
    box-shadow: 0 8px 18px rgba(255, 122, 122, .20);
}

.badge.error {
    color: #fff;
    background: linear-gradient(135deg, #9aa9b5, #b8c3cc);
}

.badge.wait {
    color: #7891a1;
    background: rgba(255, 255, 255, .34);
    border: 1px solid rgba(255, 255, 255, .48);
}

.link-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9aadb8;
    font-size: 12px;
    transform: translateZ(16px);
}

.arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #6d91a6;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .48);
    transition: .25s ease;
}

.link-card:hover .arrow {
    transform: translateX(4px);
    background: rgba(81, 184, 255, .16);
    color: #219de4;
}

.footer {
    width: min(1180px, 100%);
    padding: 18px 10px 0;
    text-align: center;
    color: #8ba1ad;
    font-size: 13px;
    line-height: 1.9;
}

.footer a {
    color: #6f8a9a;
    transition: .25s ease;
}

.footer a:hover {
    color: #259fe6;
}

/* 鼠标 */

@media (hover: hover) and (pointer: fine) {
    html,
    body,
    a,
    button,
    input,
    textarea,
    select,
    .link-card,
    .btn-main,
    .btn-ghost {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 99999;
        width: 0;
        height: 0;
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .custom-cursor.is-visible {
        opacity: 1;
    }

    .cursor-dot {
        position: fixed;
        left: 0;
        top: 0;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #1aa7ff;
        box-shadow: 0 0 10px rgba(26, 167, 255, .65);
        transform: translate3d(-50%, -50%, 0);
        will-change: transform;
        transition:
            width .18s ease,
            height .18s ease,
            background .18s ease;
    }

    .cursor-ring {
        position: fixed;
        left: 0;
        top: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 2px solid rgba(26, 167, 255, .9);
        background: transparent;
        box-shadow:
            0 0 12px rgba(26, 167, 255, .25),
            inset 0 0 10px rgba(26, 167, 255, .08);
        transform: translate3d(-50%, -50%, 0);
        will-change: transform, width, height, border-color;
        transition:
            width .22s cubic-bezier(.2, .8, .2, 1),
            height .22s cubic-bezier(.2, .8, .2, 1),
            border-color .22s ease,
            box-shadow .22s ease;
    }

    .custom-cursor.is-hover .cursor-ring {
        width: 48px;
        height: 48px;
        border-color: rgba(37, 202, 135, .95);
        box-shadow:
            0 0 16px rgba(37, 202, 135, .32),
            inset 0 0 12px rgba(37, 202, 135, .10);
    }

    .custom-cursor.is-hover .cursor-dot {
        width: 8px;
        height: 8px;
        background: #25ca87;
    }

    .custom-cursor.is-down .cursor-ring {
        width: 26px;
        height: 26px;
        border-color: rgba(255, 184, 55, .98);
        box-shadow:
            0 0 16px rgba(255, 184, 55, .38),
            inset 0 0 10px rgba(255, 184, 55, .12);
    }

    .custom-cursor.is-down .cursor-dot {
        width: 9px;
        height: 9px;
        background: #ffb837;
    }
}

/* 平板、手机、触摸屏关闭自定义鼠标 */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
    .custom-cursor {
        display: none !important;
    }
}

/* 平板、手机、触摸屏关闭自定义鼠标 */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
    .custom-cursor {
        display: none !important;
    }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .space-card {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 12px 12px 16px;
    }

    .shell {
        border-radius: 24px;
    }

    .hero {
        padding: 28px 20px 14px;
        gap: 24px;
    }

    .hero,
    .hero-left,
    .space-card {
        transform: none !important;
    }

    .avatar-wrap {
        width: 92px;
        height: 92px;
        margin-bottom: 22px;
    }

    .title {
        letter-spacing: -1.5px;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.85;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-main,
    .btn-ghost {
        flex: 1;
        min-width: 135px;
    }

    .space-card {
        min-height: 280px;
        border-radius: 24px;
    }

    .orb {
        width: 150px;
        height: 150px;
        right: 20px;
        top: 34px;
    }

    .orbit {
        width: 198px;
        height: 198px;
        right: -4px;
        top: 12px;
    }

    .terminal {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 16px;
    }

    .terminal p {
        font-size: 12px;
    }

    .section {
        padding: 14px 20px 26px;
    }

    .section-head {
        display: block;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

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

    .link-card {
        min-height: 128px;
    }

    .cursor-glow {
        display: none;
    }
}