/* ============================================================
   个人导航 / 个人主页  ·  深色玻璃风
   响应式：手机全屏、PC 居中卡片列
   ============================================================ */

:root {
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.72);
    --text-3: rgba(255, 255, 255, 0.48);
    --accent: #22d3ee;
    --accent-2: #8b5cf6;
    --radius-card: 28px;
    --radius-box: 20px;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.10);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #070b16;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* ---------- 背景：渐变 + 光斑 + 网格 ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(1200px 800px at 50% -12%, #1e1b4b 0%, transparent 58%),
        linear-gradient(160deg, #0b1020 0%, #0d1226 46%, #0a1322 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(82px);
    will-change: transform;
}

.blob-1 {
    width: 420px;
    height: 420px;
    left: -130px;
    top: 4%;
    background: radial-gradient(circle, #22d3ee, transparent 70%);
    opacity: 0.45;
    animation: drift1 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 470px;
    height: 470px;
    right: -150px;
    top: 32%;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    opacity: 0.5;
    animation: drift2 22s ease-in-out infinite alternate;
}

.blob-3 {
    width: 380px;
    height: 380px;
    left: 28%;
    bottom: -140px;
    background: radial-gradient(circle, #fb923c, transparent 70%);
    opacity: 0.3;
    animation: drift3 20s ease-in-out infinite alternate;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}

@keyframes drift1 {
    to { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes drift2 {
    to { transform: translate(-46px, 24px) scale(1.05); }
}
@keyframes drift3 {
    to { transform: translate(24px, -30px) scale(1.1); }
}

/* ---------- 布局容器 ---------- */
.wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 34px 18px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------- 通用玻璃 ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        0 12px 44px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- 顶部时间胶囊 ---------- */
.clock-pill {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-2);
}

.clock-time {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.clock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ---------- 名片卡片 ---------- */
.card {
    border-radius: var(--radius-card);
    padding: 34px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg, #22d3ee, #8b5cf6, #ec4899, #22d3ee);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 10px 30px rgba(139, 92, 246, 0.35);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #0d1226;
}

.avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #a78bfa, #6366f1 55%, #4f46e5);
    overflow: hidden;
}

.avatar-default svg {
    width: 64%;
    height: 64%;
}

.verified {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.name {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 16px 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bio {
    margin: 0;
    font-size: 14px;
    color: var(--text-2);
}

/* ---------- 社交图标 ---------- */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.social:hover {
    transform: translateY(-3px);
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.1);
}

/* ---------- 主按钮 ---------- */
.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 999px;
    background: #ffffff;
    color: #131929;
    font-size: 15px;
    font-weight: 600;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.action-icon {
    width: 18px;
    height: 18px;
}

.action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

.action:active {
    transform: translateY(0);
}

/* ---------- 数据统计 ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: var(--radius-box);
    padding: 18px 6px;
}

.stat {
    position: relative;
    text-align: center;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-3);
}

/* ---------- 合作伙伴 ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 4px 4px 0;
}

.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.section-more {
    font-size: 13px;
    color: var(--text-3);
    transition: color 0.18s ease;
}

.section-more:hover {
    color: var(--accent);
}

.partners-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
    padding: 24px 14px;
    border-radius: 24px;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.18s ease;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.partner:hover .partner-logo {
    transform: translateY(-3px) scale(1.04);
}

.partner-name {
    font-size: 13px;
    color: var(--text-2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 0 6px;
    font-size: 12px;
    color: var(--text-3);
}

.footer a:hover {
    color: var(--accent);
}

/* ---------- 入场动画 ---------- */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.clock-pill,
.card,
.stats,
.partners,
.footer {
    animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.36, 1) both;
}

.card {
    animation-delay: 0.05s;
}
.stats {
    animation-delay: 0.12s;
}
.partners {
    animation-delay: 0.18s;
}
.footer {
    animation-delay: 0.24s;
}

/* ---------- 键盘可访问性 ---------- */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- PC 端 ---------- */
@media (min-width: 700px) {
    .wrap {
        max-width: 600px;
        padding: 56px 20px 48px;
        gap: 22px;
    }

    .card {
        padding: 44px 40px 32px;
    }

    .avatar-ring {
        width: 112px;
        height: 112px;
    }

    .verified {
        width: 32px;
        height: 32px;
    }

    .name {
        font-size: 29px;
    }

    .bio {
        font-size: 15px;
    }

    .action {
        height: 54px;
        font-size: 16px;
    }

    .partners-grid {
        gap: 26px 8px;
    }

    .partner-logo {
        width: 66px;
        height: 66px;
        font-size: 23px;
    }

    .blob-1 {
        width: 620px;
        height: 620px;
    }
    .blob-2 {
        width: 680px;
        height: 680px;
    }
    .blob-3 {
        width: 560px;
        height: 560px;
    }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 340px) {
    .social {
        width: 40px;
        height: 40px;
    }
    .action {
        height: 46px;
        font-size: 14px;
    }
    .partner-logo {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
    .clock-pill,
    .card,
    .stats,
    .partners,
    .footer {
        animation: none;
    }
}
