:root {
    --text-main: #f2f6ff;
    --text-soft: #d4e0ff;
    --text-muted: #97a4c4;
    --accent: #7dc9ff;
    --accent-strong: #58a8ff;
    --card-bg: rgba(8, 17, 30, 0.68);
    --card-border: rgba(167, 210, 255, 0.28);
    --card-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
    --link-bg: rgba(134, 181, 245, 0.12);
    --link-bg-hover: rgba(134, 181, 245, 0.22);
}

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

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    background: radial-gradient(circle at top right, #22375a 0%, #0b1323 58%, #050810 100%);
    overflow-x: hidden;
    position: relative;
    padding: 28px 16px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 520px;
    height: 520px;
    top: -220px;
    right: -130px;
    background: radial-gradient(circle, rgba(125, 201, 255, 0.3), rgba(125, 201, 255, 0));
    filter: blur(8px);
}

body::after {
    width: 600px;
    height: 600px;
    left: -220px;
    bottom: -320px;
    background: radial-gradient(circle, rgba(88, 168, 255, 0.16), rgba(88, 168, 255, 0));
}

.background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.2) brightness(0.52);
    transform: scale(1.03);
    z-index: -3;
    transition: opacity 0.8s ease, background-image 1s ease;
}

.container {
    width: min(920px, 100%);
    text-align: center;
    padding: 46px 30px 34px;
    background: var(--card-bg);
    border-radius: 26px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

body.is-ready .container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
}

.badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 24px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: var(--text-soft);
    border: 1px solid rgba(185, 218, 255, 0.28);
    background: rgba(144, 190, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #73ffb2;
    box-shadow: 0 0 10px rgba(115, 255, 178, 0.9);
    animation: pulse 1.8s ease-in-out infinite;
}

.avatar-container {
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.avatar:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.55);
}

.tagline {
    font-size: clamp(1.15rem, 3.8vw, 1.78rem);
    letter-spacing: 1px;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 680px;
    margin: 0 auto;
}

.quote-text {
    margin-bottom: 10px;
}

.quote-line {
    display: block;
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
}

body.is-ready .quote-line {
    animation: quote-rise 0.75s ease forwards;
}

body.is-ready .quote-line:nth-child(1) {
    animation-delay: 0.18s;
}

body.is-ready .quote-line:nth-child(2) {
    animation-delay: 0.44s;
}

.clock {
    margin: 8px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.6px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 600px;
    margin: 34px auto 0;
}

.social-link {
    --item-delay: 0ms;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 126px;
    min-height: 112px;
    border-radius: 16px;
    border: 1px solid rgba(181, 214, 255, 0.2);
    background: linear-gradient(155deg, var(--link-bg), rgba(120, 156, 214, 0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(18px);
}

body.is-ready .social-link {
    animation: rise-in 0.55s ease forwards;
    animation-delay: var(--item-delay);
}

.social-link:hover {
    transform: translateY(-6px);
    background: linear-gradient(155deg, var(--link-bg-hover), rgba(120, 156, 214, 0.12));
    border-color: rgba(190, 224, 255, 0.45);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.social-icon {
    font-size: 2rem;
}

.social-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.footer {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(205, 229, 255, 0.18);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.year-highlight {
    color: var(--accent);
    font-weight: 600;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quote-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 900px) {
    .social-links {
        max-width: 520px;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 36px 20px 28px;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .social-link {
        width: 108px;
        min-height: 96px;
    }

    .social-icon {
        font-size: 1.75rem;
    }

    .social-name {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .container,
    .social-link,
    .quote-line {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
