*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --ice: #4FBDE5;
    --ice-bright: #84D6F4;
    --ice-soft: rgba(105, 205, 242, 0.4);
    --ice-deep: #2C94BD;

    --bg: #E3EEF7;
    --panel: #FFFFFF;

    --text: #0F172A;
    --muted: rgba(15, 23, 42, 0.65);
    --faint: rgba(15, 23, 42, 0.4);

    --line: rgba(44, 148, 189, 0.26);
    --line-soft: rgba(44, 148, 189, 0.15);
    --grid: rgba(105, 205, 242, 0.08);

    --card-bg: #FBFDFF;
    --card-border: rgba(44, 148, 189, 0.2);
    --card-shadow: 0 6px 18px -10px rgba(44, 148, 189, 0.22);
    --card-hover: 0 12px 28px -8px rgba(105, 205, 242, 0.25);

    --pill-bg: #F6FAFD;
    --pill-border: rgba(44, 148, 189, 0.24);
    --pill-shadow: 0 2px 8px -2px rgba(105, 205, 242, 0.1);

    --tag-bg: rgba(105, 205, 242, 0.08);
    --tag-text: #2C94BD;
    --tag-border: rgba(105, 205, 242, 0.15);
    --tag-hover-bg: var(--ice);
    --tag-hover-text: #FFFFFF;

    --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    --radius: 26px;
}

[data-theme="dark"] {
    --bg: #09121F;
    --panel: rgba(12, 24, 42, 0.82);

    --text: #F0F8FF;
    --muted: rgba(240, 248, 255, 0.62);
    --faint: rgba(240, 248, 255, 0.34);

    --line: rgba(105, 205, 242, 0.16);
    --line-soft: rgba(105, 205, 242, 0.09);
    --grid: rgba(105, 205, 242, 0.04);

    --card-bg: rgba(12, 24, 42, 0.82);
    --card-border: rgba(105, 205, 242, 0.1);
    --card-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
    --card-hover: 0 16px 34px -20px rgba(0, 0, 0, 0.9);

    --pill-bg: rgba(12, 24, 42, 0.8);
    --pill-border: rgba(105, 205, 242, 0.2);
    --pill-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.5);

    --tag-bg: rgba(105, 205, 242, 0.1);
    --tag-text: #84D6F4;
    --tag-border: rgba(105, 205, 242, 0.15);
    --tag-hover-bg: rgba(105, 205, 242, 0.2);
    --tag-hover-text: #F0F8FF;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
    transition: background-color 0.6s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', Roboto, system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 22px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.6s ease, color 0.6s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    color: var(--text);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--ice);
    box-shadow: var(--card-hover);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg); }

[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg); }

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 640px at 16% -12%, rgba(105, 205, 242, 0.15), transparent 62%),
        radial-gradient(780px 560px at 88% 2%, rgba(105, 205, 242, 0.1), transparent 60%),
        radial-gradient(1100px 760px at 50% 120%, rgba(105, 205, 242, 0.05), transparent 64%),
        var(--bg);
    transition: background 0.6s ease;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 76%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 76%);
    transition: background-image 0.6s ease;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 45%, var(--bg) 100%);
    opacity: 0.8;
    transition: background 0.6s ease;
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 90;
    transition: opacity 0.45s ease 0.1s;
}

.progress > i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ice-soft), var(--ice));
    transition: width 0.35s var(--ease), background 0.6s ease;
}

.progress.is-done {
    opacity: 0;
}

.shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 940px;
    --pad-y: 50px;
    --pad-x: 46px;
    padding: var(--pad-y) var(--pad-x) 40px;
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

[data-theme="dark"] .shell {
    box-shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    background:
        radial-gradient(620px 230px at 50% -12%, rgba(105, 205, 242, 0.12), transparent 70%),
        var(--panel);
}

.shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(105, 205, 242, 0.5), transparent);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;
}

.skeleton {
    position: absolute;
    inset: 0;
    z-index: 6;
    padding: var(--pad-y) var(--pad-x) 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: inherit;
    overflow: hidden;
    transition: opacity 0.55s var(--ease);
    background: var(--panel);
}

.sk {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--tag-bg);
}

.sk::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-101%);
    background: linear-gradient(100deg,
            transparent 20%,
            rgba(255, 255, 255, 0.4) 44%,
            rgba(255, 255, 255, 0.8) 52%,
            rgba(255, 255, 255, 0.4) 60%,
            transparent 80%);
    animation: shimmer 1.7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 105ms);
}

[data-theme="dark"] .sk::after {
    background: linear-gradient(100deg,
            transparent 20%,
            rgba(105, 205, 242, 0.1) 44%,
            rgba(105, 205, 242, 0.2) 52%,
            rgba(105, 205, 242, 0.1) 60%,
            transparent 80%);
}

[data-theme="light"] .skeleton {
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F9FD 100%);
}

[data-theme="light"] .sk {
    background: rgba(79, 189, 229, 0.24);
}

[data-theme="light"] .sk-card {
    background: rgba(79, 189, 229, 0.07);
    border-color: rgba(79, 189, 229, 0.24);
}

[data-theme="light"] .sk::after {
    background: linear-gradient(100deg,
            transparent 18%,
            rgba(79, 189, 229, 0.14) 44%,
            rgba(79, 189, 229, 0.34) 52%,
            rgba(79, 189, 229, 0.14) 60%,
            transparent 82%);
}

[data-theme="light"] .shell {
    border-color: rgba(79, 189, 229, 0.28);
    box-shadow: 0 24px 60px -22px rgba(44, 148, 189, 0.28), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

@keyframes shimmer {
    to { transform: translateX(101%); }
}

.sk-eyebrow { width: 158px; height: 24px; border-radius: 999px; margin-bottom: 26px; }
.sk-avatar { width: 148px; height: 148px; border-radius: 50%; margin-bottom: 22px; }
.sk-name { width: 228px; height: 62px; border-radius: 12px; margin-bottom: 16px; }
.sk-sub { width: 246px; height: 18px; border-radius: 9px; margin-bottom: 18px; }
.sk-badge { width: 116px; height: 34px; border-radius: 999px; margin-bottom: 49px; }

.sk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; width: 100%; margin-bottom: 32px; }
.sk-card { padding: 24px 22px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--tag-bg); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 769px) { .sk-card { min-height: 276px; } }

.sk-tile { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px; }
.sk-line { height: 11px; width: 100%; border-radius: 6px; }
.w40 { width: 42%; } .w70 { width: 68%; } .w90 { width: 88%; }
.sk-tags { display: flex; gap: 7px; margin-top: 8px; }
.sk-tag { width: 52px; height: 20px; border-radius: 999px; }

.sk-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; width: 100%; margin-bottom: 32px; }
.sk-pill { width: 112px; height: 42px; border-radius: 999px; }
.sk-foot { width: 186px; height: 11px; border-radius: 6px; }

.no-js .skeleton, .no-js .progress { display: none; }
.js body.is-ready .skeleton { opacity: 0; visibility: hidden; pointer-events: none; }
.js body.is-ready .skeleton .sk::after { animation: none; }

.hero { margin-bottom: 34px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ice-deep);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    white-space: nowrap;
    transition: all 0.6s ease;
}

.eyebrow .pulse {
    width: 5px; height: 5px; border-radius: 50%; background: var(--ice);
    box-shadow: 0 0 9px 2px var(--ice-soft); animation: pulseDot 2.6s ease-in-out infinite;
}

@keyframes pulseDot { 50% { opacity: 0.35; transform: scale(0.7); } }

.avatar-wrap { display: flex; justify-content: center; margin-bottom: 22px; }

.avatar {
    position: relative;
    width: 148px; height: 148px;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 160deg, var(--ice) 0deg, var(--ice-soft) 70deg, var(--ice-bright) 160deg, var(--ice-soft) 240deg, var(--ice-deep) 320deg, var(--ice) 360deg);
    box-shadow: 0 10px 24px -6px var(--ice-soft);
    animation: floatY 7s ease-in-out infinite;
    transition: background 0.6s ease;
}

@keyframes floatY { 50% { transform: translate3d(0, -7px, 0); } }

.avatar-inner {
    display: block; position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    background: var(--bg); transition: background 0.6s ease;
}

.avatar-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 3rem; font-weight: 800; color: var(--ice-deep); transition: color 0.6s ease;
}

.avatar img {
    position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover;
    opacity: 0; transition: opacity 0.6s var(--ease);
}

.avatar.is-loaded img { opacity: 1; }

.name {
    font-size: clamp(2.7rem, 6.6vw, 4.3rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0.015em;
    background-image: linear-gradient(180deg, var(--text) 0%, var(--ice-deep) 70%, var(--ice) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: background-image 0.6s ease;
}

[data-theme="dark"] .name {
    background-image: linear-gradient(180deg, #FFFFFF 0%, var(--ice-bright) 40%, var(--ice) 100%);
}

.phrases { position: relative; height: 1.75rem; margin: 12px 0 16px; overflow: hidden; }

.phrases .track { display: flex; width: 400%; height: 100%; animation: phraseSlide 15s ease-in-out infinite; }

.phrases .phrase {
    flex: 0 0 25%; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 400; letter-spacing: 0.14em; color: var(--muted);
    white-space: nowrap; transition: color 0.6s ease;
}

@keyframes phraseSlide {
    0%, 22% { transform: translate3d(0, 0, 0); }
    25%, 47% { transform: translate3d(-25%, 0, 0); }
    50%, 72% { transform: translate3d(-50%, 0, 0); }
    75%, 100% { transform: translate3d(-75%, 0, 0); }
}

.status {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 17px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; color: var(--text);
    background: var(--pill-bg); border: 1px solid var(--line);
    transition: all 0.6s ease;
}

.status .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10B981; box-shadow: 0 0 6px 1px rgba(16, 185, 129, 0.4);
    animation: pulseDot 2.2s ease-in-out infinite;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; margin-bottom: 32px; text-align: left; }

.card {
    position: relative; overflow: hidden; padding: 24px 22px 22px; border-radius: 18px;
    border: 1px solid var(--card-border); background: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s var(--ease), border-color 0.4s ease, background 0.6s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: var(--ice);
    box-shadow: var(--card-hover);
}

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }

.icon-tile {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    color: var(--ice-deep); background: var(--tag-bg); border: 1px solid var(--tag-border);
    transition: all 0.6s ease;
}

.icon-tile svg { width: 21px; height: 21px; }

.card:hover .icon-tile {
    background: var(--ice); color: #FFF; border-color: var(--ice);
}

.card-no {
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em;
    color: var(--faint); font-variant-numeric: tabular-nums; transition: color 0.6s ease;
}

.card h3 {
    font-size: 1.04rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--text); margin-bottom: 9px; transition: color 0.6s ease;
}

.card p {
    font-size: 0.88rem; line-height: 1.78; font-weight: 350;
    color: var(--muted); transition: color 0.6s ease;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }

.tag {
    padding: 4px 11px; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.04em;
    color: var(--tag-text); background: var(--tag-bg); border: 1px solid var(--tag-border);
    transition: all 0.4s ease;
}

.card:hover .tag {
    color: var(--tag-hover-text); background: var(--tag-hover-bg); border-color: var(--tag-hover-bg);
}

.links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 11px; margin-bottom: 30px; }

.link-pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none;
    color: var(--text); background: var(--pill-bg); border: 1px solid var(--pill-border);
    box-shadow: var(--pill-shadow); transition: all 0.3s ease;
}

.link-pill svg { width: 17px; height: 17px; opacity: 0.7; color: var(--ice-deep); transition: color 0.6s ease; }

.link-pill:hover {
    transform: translate3d(0, -2px, 0); color: var(--ice-deep);
    background: var(--tag-bg); border-color: var(--ice); box-shadow: var(--card-hover);
}

.link-pill:focus-visible, .card:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px;
    padding-top: 20px; border-top: 1px solid var(--line-soft);
    font-size: 0.72rem; font-weight: 300; letter-spacing: 0.12em;
    color: var(--faint); transition: all 0.6s ease;
}

.footer .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ice-soft); }

.toast {
    position: fixed; left: 50%; bottom: 68px; z-index: 100;
    display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
    font-size: 0.88rem; color: var(--text); white-space: nowrap;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--card-hover); opacity: 0; transform: translate(-50%, 12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.6s ease, border-color 0.6s ease;
    pointer-events: none; backdrop-filter: blur(10px);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast .toast-ico { font-size: 1.05rem; line-height: 1; color: var(--ice-deep); transition: color 0.6s ease; }

.js .content { opacity: 0; }

.js body.is-ready .content { animation: revealIn 0.7s ease-out both; }

@keyframes revealIn {
    from { opacity: 0; filter: blur(9px); transform: translate3d(0, 12px, 0) scale(0.995); }
    to { opacity: 1; filter: blur(0); transform: none; }
}

.js .rv { opacity: 0; }

.js body.is-ready .rv {
    animation: riseIn 0.55s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 1ms);
}

@keyframes riseIn {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
}

.js body.is-settled .content,
.js body.is-settled .rv {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
}

@media (max-width: 900px) {
    .shell { --pad-y: 42px; --pad-x: 32px; }
}

@media (max-width: 768px) {
    body { padding: 20px 14px; }
    .shell { --pad-y: 32px; --pad-x: 20px; border-radius: 20px; }
    .eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; padding: 6px 13px; margin-bottom: 20px; }
    .avatar-wrap { margin-bottom: 18px; }
    .avatar, .sk-avatar { width: 112px; height: 112px; }
    .avatar-fallback { font-size: 2.3rem; }
    .sk-name { width: 172px; height: 44px; }
    .sk-sub { width: 200px; }
    .sk-badge { margin-bottom: 28px; }
    .phrases { height: 1.5rem; }
    .phrases .phrase { font-size: 0.9rem; letter-spacing: 0.08em; }
    .cards, .sk-cards { grid-template-columns: 1fr; gap: 13px; }
    .sk-card { min-height: 190px; }
    .card { padding: 20px 18px; }
    .card p { font-size: 0.86rem; }
    .link-pill { padding: 9px 14px; font-size: 0.78rem; }
    .toast { bottom: 40px; padding: 11px 18px; font-size: 0.8rem; }
    .theme-toggle { top: 16px; right: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    body { padding: 12px 9px; }
    .shell { --pad-y: 24px; --pad-x: 15px; border-radius: 17px; }
    .name { letter-spacing: 0; }
    .eyebrow { letter-spacing: 0.14em; font-size: 0.56rem; }
    .status { font-size: 0.66rem; padding: 6px 14px; }
    .footer { font-size: 0.66rem; letter-spacing: 0.06em; }
    .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
    .link-pill { justify-content: center; padding: 10px 8px; }
    .toast { border-radius: 14px; font-size: 0.78rem; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ice-soft); }

@media (prefers-reduced-motion: reduce) {
    .avatar, .phrases .track, .eyebrow .pulse, .status .dot, .sk::after { animation: none !important; }
    .phrases .track { transform: translate3d(0, 0, 0) !important; }
    .js .content, .js .rv { opacity: 1; filter: none; translate: none; transform: none; }
    .js body.is-ready .content, .js body.is-ready .rv { animation: none !important; }
    .progress { display: none !important; }
    .theme-toggle svg { transition: none; }
}

body {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 26px;
}
